diff --git a/.apigentools-info b/.apigentools-info index 8fd2082b5e59..cc3d6fe193df 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-03-31 17:39:57.837620", - "spec_repo_commit": "3826157e" + "regenerated": "2025-04-01 16:28:05.429347", + "spec_repo_commit": "ad0591f6" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-03-31 17:39:57.854596", - "spec_repo_commit": "3826157e" + "regenerated": "2025-04-01 16:28:05.444990", + "spec_repo_commit": "ad0591f6" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 6c4f6966d1ad..faa68a8f984d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -24076,7 +24076,7 @@ components: an organization. Mute and unmute monitors. The ability to write monitors is not required to set downtimes. monitors_read: View monitors. - monitors_write: Edit and delete individual monitors. + monitors_write: Edit, delete, and resolve individual monitors. org_management: Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4aacf7eab58b..a826c938cf49 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -33942,7 +33942,7 @@ components: an organization. Mute and unmute monitors. The ability to write monitors is not required to set downtimes. monitors_read: View monitors. - monitors_write: Edit and delete individual monitors. + monitors_write: Edit, delete, and resolve individual monitors. org_management: Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing diff --git a/examples/v1/authentication/Validate.ts b/examples/v1/authentication/Validate.ts deleted file mode 100644 index 1851c19492da..000000000000 --- a/examples/v1/authentication/Validate.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Validate API key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AuthenticationApi(configuration); - -apiInstance - .validate() - .then((data: v1.AuthenticationValidationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/CreateAWSAccount.ts b/examples/v1/aws-integration/CreateAWSAccount.ts deleted file mode 100644 index 0dd8e3d2143e..000000000000 --- a/examples/v1/aws-integration/CreateAWSAccount.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create an AWS integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiCreateAWSAccountRequest = { - body: { - accountId: "163662907100", - accountSpecificNamespaceRules: { - auto_scaling: false, - }, - cspmResourceCollectionEnabled: true, - excludedRegions: ["us-east-1", "us-west-2"], - extendedResourceCollectionEnabled: true, - filterTags: ["$KEY:$VALUE"], - hostTags: ["$KEY:$VALUE"], - metricsCollectionEnabled: false, - roleName: "DatadogAWSIntegrationRole", - }, -}; - -apiInstance - .createAWSAccount(params) - .then((data: v1.AWSAccountCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/CreateAWSEventBridgeSource.ts b/examples/v1/aws-integration/CreateAWSEventBridgeSource.ts deleted file mode 100644 index 6e2534cca1e1..000000000000 --- a/examples/v1/aws-integration/CreateAWSEventBridgeSource.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Create an Amazon EventBridge source returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiCreateAWSEventBridgeSourceRequest = { - body: { - accountId: "123456789012", - createEventBus: true, - eventGeneratorName: "app-alerts", - region: "us-east-1", - }, -}; - -apiInstance - .createAWSEventBridgeSource(params) - .then((data: v1.AWSEventBridgeCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/CreateAWSTagFilter.ts b/examples/v1/aws-integration/CreateAWSTagFilter.ts deleted file mode 100644 index 1558ae1741eb..000000000000 --- a/examples/v1/aws-integration/CreateAWSTagFilter.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Set an AWS tag filter returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiCreateAWSTagFilterRequest = { - body: { - accountId: "123456789012", - namespace: "elb", - tagFilterStr: "prod*", - }, -}; - -apiInstance - .createAWSTagFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/CreateNewAWSExternalID.ts b/examples/v1/aws-integration/CreateNewAWSExternalID.ts deleted file mode 100644 index 6aa2162c4425..000000000000 --- a/examples/v1/aws-integration/CreateNewAWSExternalID.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Generate a new external ID returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiCreateNewAWSExternalIDRequest = { - body: { - accountId: "123456789012", - accountSpecificNamespaceRules: { - auto_scaling: false, - opswork: false, - }, - cspmResourceCollectionEnabled: true, - excludedRegions: ["us-east-1", "us-west-2"], - extendedResourceCollectionEnabled: true, - filterTags: ["$KEY:$VALUE"], - hostTags: ["$KEY:$VALUE"], - metricsCollectionEnabled: false, - resourceCollectionEnabled: true, - roleName: "DatadogAWSIntegrationRole", - }, -}; - -apiInstance - .createNewAWSExternalID(params) - .then((data: v1.AWSAccountCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/DeleteAWSAccount.ts b/examples/v1/aws-integration/DeleteAWSAccount.ts deleted file mode 100644 index a65ad825a069..000000000000 --- a/examples/v1/aws-integration/DeleteAWSAccount.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an AWS integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiDeleteAWSAccountRequest = { - body: { - accountId: "163662907100", - roleName: "DatadogAWSIntegrationRole", - }, -}; - -apiInstance - .deleteAWSAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/DeleteAWSEventBridgeSource.ts b/examples/v1/aws-integration/DeleteAWSEventBridgeSource.ts deleted file mode 100644 index a5dddcedfc70..000000000000 --- a/examples/v1/aws-integration/DeleteAWSEventBridgeSource.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an Amazon EventBridge source returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiDeleteAWSEventBridgeSourceRequest = { - body: { - accountId: "123456789012", - eventGeneratorName: "app-alerts-zyxw3210", - region: "us-east-1", - }, -}; - -apiInstance - .deleteAWSEventBridgeSource(params) - .then((data: v1.AWSEventBridgeDeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/DeleteAWSTagFilter.ts b/examples/v1/aws-integration/DeleteAWSTagFilter.ts deleted file mode 100644 index f16e0db7b5c0..000000000000 --- a/examples/v1/aws-integration/DeleteAWSTagFilter.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a tag filtering entry returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiDeleteAWSTagFilterRequest = { - body: { - accountId: "FAKEAC0FAKEAC2FAKEAC", - namespace: "elb", - }, -}; - -apiInstance - .deleteAWSTagFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/ListAWSAccounts.ts b/examples/v1/aws-integration/ListAWSAccounts.ts deleted file mode 100644 index 21fe77dbaffa..000000000000 --- a/examples/v1/aws-integration/ListAWSAccounts.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all AWS integrations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -apiInstance - .listAWSAccounts() - .then((data: v1.AWSAccountListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/ListAWSEventBridgeSources.ts b/examples/v1/aws-integration/ListAWSEventBridgeSources.ts deleted file mode 100644 index 7b1503ba8716..000000000000 --- a/examples/v1/aws-integration/ListAWSEventBridgeSources.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all Amazon EventBridge sources returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -apiInstance - .listAWSEventBridgeSources() - .then((data: v1.AWSEventBridgeListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/ListAWSTagFilters.ts b/examples/v1/aws-integration/ListAWSTagFilters.ts deleted file mode 100644 index ce18a0351c05..000000000000 --- a/examples/v1/aws-integration/ListAWSTagFilters.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all AWS tag filters returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiListAWSTagFiltersRequest = { - accountId: "account_id", -}; - -apiInstance - .listAWSTagFilters(params) - .then((data: v1.AWSTagFilterListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/ListAvailableAWSNamespaces.ts b/examples/v1/aws-integration/ListAvailableAWSNamespaces.ts deleted file mode 100644 index 00732ae9d697..000000000000 --- a/examples/v1/aws-integration/ListAvailableAWSNamespaces.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List namespace rules returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -apiInstance - .listAvailableAWSNamespaces() - .then((data: string[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-integration/UpdateAWSAccount.ts b/examples/v1/aws-integration/UpdateAWSAccount.ts deleted file mode 100644 index c4b9bcfd3570..000000000000 --- a/examples/v1/aws-integration/UpdateAWSAccount.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update an AWS integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSIntegrationApi(configuration); - -const params: v1.AWSIntegrationApiUpdateAWSAccountRequest = { - body: { - accountId: "163662907100", - accountSpecificNamespaceRules: { - auto_scaling: false, - }, - cspmResourceCollectionEnabled: false, - excludedRegions: ["us-east-1", "us-west-2"], - extendedResourceCollectionEnabled: true, - filterTags: ["$KEY:$VALUE"], - hostTags: ["$KEY:$VALUE"], - metricsCollectionEnabled: true, - roleName: "DatadogAWSIntegrationRole", - }, - accountId: "163662907100", - roleName: "DatadogAWSIntegrationRole", -}; - -apiInstance - .updateAWSAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.ts b/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.ts deleted file mode 100644 index 9ac8c5e0914a..000000000000 --- a/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Check that an AWS Lambda Function exists returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -const params: v1.AWSLogsIntegrationApiCheckAWSLogsLambdaAsyncRequest = { - body: { - accountId: "1234567", - lambdaArn: - "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest", - }, -}; - -apiInstance - .checkAWSLogsLambdaAsync(params) - .then((data: v1.AWSLogsAsyncResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.ts b/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.ts deleted file mode 100644 index 9f57802fe351..000000000000 --- a/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Check permissions for log services returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -const params: v1.AWSLogsIntegrationApiCheckAWSLogsServicesAsyncRequest = { - body: { - accountId: "1234567", - services: ["s3", "elb", "elbv2", "cloudfront", "redshift", "lambda"], - }, -}; - -apiInstance - .checkAWSLogsServicesAsync(params) - .then((data: v1.AWSLogsAsyncResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/CreateAWSLambdaARN.ts b/examples/v1/aws-logs-integration/CreateAWSLambdaARN.ts deleted file mode 100644 index d90c13b545f5..000000000000 --- a/examples/v1/aws-logs-integration/CreateAWSLambdaARN.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Add AWS Log Lambda ARN returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -const params: v1.AWSLogsIntegrationApiCreateAWSLambdaARNRequest = { - body: { - accountId: "1234567", - lambdaArn: - "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest", - }, -}; - -apiInstance - .createAWSLambdaARN(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.ts b/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.ts deleted file mode 100644 index e2e8cababad4..000000000000 --- a/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an AWS Logs integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -const params: v1.AWSLogsIntegrationApiDeleteAWSLambdaARNRequest = { - body: { - accountId: "1234567", - lambdaArn: - "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest", - }, -}; - -apiInstance - .deleteAWSLambdaARN(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/EnableAWSLogServices.ts b/examples/v1/aws-logs-integration/EnableAWSLogServices.ts deleted file mode 100644 index c0ea38d27faf..000000000000 --- a/examples/v1/aws-logs-integration/EnableAWSLogServices.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Enable an AWS Logs integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -const params: v1.AWSLogsIntegrationApiEnableAWSLogServicesRequest = { - body: { - accountId: "1234567", - services: ["s3", "elb", "elbv2", "cloudfront", "redshift", "lambda"], - }, -}; - -apiInstance - .enableAWSLogServices(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.ts b/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.ts deleted file mode 100644 index 455b2b0b6503..000000000000 --- a/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all AWS Logs integrations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -apiInstance - .listAWSLogsIntegrations() - .then((data: v1.AWSLogsListResponse[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/aws-logs-integration/ListAWSLogsServices.ts b/examples/v1/aws-logs-integration/ListAWSLogsServices.ts deleted file mode 100644 index 1b19238501f2..000000000000 --- a/examples/v1/aws-logs-integration/ListAWSLogsServices.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get list of AWS log ready services returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AWSLogsIntegrationApi(configuration); - -apiInstance - .listAWSLogsServices() - .then((data: v1.AWSLogsListServicesResponse[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/azure-integration/CreateAzureIntegration.ts b/examples/v1/azure-integration/CreateAzureIntegration.ts deleted file mode 100644 index 5521a094f356..000000000000 --- a/examples/v1/azure-integration/CreateAzureIntegration.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Create an Azure integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AzureIntegrationApi(configuration); - -const params: v1.AzureIntegrationApiCreateAzureIntegrationRequest = { - body: { - appServicePlanFilters: "key:value,filter:example", - automute: true, - clientId: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - clientSecret: "TestingRh2nx664kUy5dIApvM54T4AtO", - containerAppFilters: "key:value,filter:example", - cspmEnabled: true, - customMetricsEnabled: true, - errors: ["*"], - hostFilters: "key:value,filter:example", - newClientId: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - newTenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - resourceCollectionEnabled: true, - tenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - }, -}; - -apiInstance - .createAzureIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/azure-integration/DeleteAzureIntegration.ts b/examples/v1/azure-integration/DeleteAzureIntegration.ts deleted file mode 100644 index 443bbabc265d..000000000000 --- a/examples/v1/azure-integration/DeleteAzureIntegration.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an Azure integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AzureIntegrationApi(configuration); - -const params: v1.AzureIntegrationApiDeleteAzureIntegrationRequest = { - body: { - clientId: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - tenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - }, -}; - -apiInstance - .deleteAzureIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/azure-integration/ListAzureIntegration.ts b/examples/v1/azure-integration/ListAzureIntegration.ts deleted file mode 100644 index c0a5100a88e7..000000000000 --- a/examples/v1/azure-integration/ListAzureIntegration.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all Azure integrations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AzureIntegrationApi(configuration); - -apiInstance - .listAzureIntegration() - .then((data: v1.AzureAccount[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/azure-integration/UpdateAzureHostFilters.ts b/examples/v1/azure-integration/UpdateAzureHostFilters.ts deleted file mode 100644 index a1e4ab762662..000000000000 --- a/examples/v1/azure-integration/UpdateAzureHostFilters.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Update Azure integration host filters returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AzureIntegrationApi(configuration); - -const params: v1.AzureIntegrationApiUpdateAzureHostFiltersRequest = { - body: { - appServicePlanFilters: "key:value,filter:example", - automute: true, - clientId: "testc7f6-1234-5678-9101-3fcbf464test", - clientSecret: "TestingRh2nx664kUy5dIApvM54T4AtO", - containerAppFilters: "key:value,filter:example", - cspmEnabled: true, - customMetricsEnabled: true, - errors: ["*"], - hostFilters: "key:value,filter:example", - metricsEnabled: true, - metricsEnabledDefault: true, - newClientId: "new1c7f6-1234-5678-9101-3fcbf464test", - newTenantName: "new1c44-1234-5678-9101-cc00736ftest", - resourceCollectionEnabled: true, - resourceProviderConfigs: [ - { - metricsEnabled: true, - namespace: "Microsoft.Compute", - }, - ], - tenantName: "testc44-1234-5678-9101-cc00736ftest", - usageMetricsEnabled: true, - }, -}; - -apiInstance - .updateAzureHostFilters(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/azure-integration/UpdateAzureIntegration.ts b/examples/v1/azure-integration/UpdateAzureIntegration.ts deleted file mode 100644 index 68e8e88564a3..000000000000 --- a/examples/v1/azure-integration/UpdateAzureIntegration.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update an Azure integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.AzureIntegrationApi(configuration); - -const params: v1.AzureIntegrationApiUpdateAzureIntegrationRequest = { - body: { - appServicePlanFilters: "key:value,filter:example", - automute: true, - clientId: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - clientSecret: "TestingRh2nx664kUy5dIApvM54T4AtO", - containerAppFilters: "key:value,filter:example", - cspmEnabled: true, - customMetricsEnabled: true, - errors: ["*"], - hostFilters: "key:value,filter:example", - newClientId: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - newTenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - resourceCollectionEnabled: true, - tenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", - }, -}; - -apiInstance - .updateAzureIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboard-lists/CreateDashboardList.ts b/examples/v1/dashboard-lists/CreateDashboardList.ts deleted file mode 100644 index a8b5425e2d15..000000000000 --- a/examples/v1/dashboard-lists/CreateDashboardList.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Create a dashboard list returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardListsApi(configuration); - -const params: v1.DashboardListsApiCreateDashboardListRequest = { - body: { - name: "Example-Dashboard-List", - }, -}; - -apiInstance - .createDashboardList(params) - .then((data: v1.DashboardList) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboard-lists/DeleteDashboardList.ts b/examples/v1/dashboard-lists/DeleteDashboardList.ts deleted file mode 100644 index ca490d0566b0..000000000000 --- a/examples/v1/dashboard-lists/DeleteDashboardList.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a dashboard list returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -const params: v1.DashboardListsApiDeleteDashboardListRequest = { - listId: DASHBOARD_LIST_ID, -}; - -apiInstance - .deleteDashboardList(params) - .then((data: v1.DashboardListDeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboard-lists/GetDashboardList.ts b/examples/v1/dashboard-lists/GetDashboardList.ts deleted file mode 100644 index e2732aa2ae7f..000000000000 --- a/examples/v1/dashboard-lists/GetDashboardList.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a dashboard list returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -const params: v1.DashboardListsApiGetDashboardListRequest = { - listId: DASHBOARD_LIST_ID, -}; - -apiInstance - .getDashboardList(params) - .then((data: v1.DashboardList) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboard-lists/ListDashboardLists.ts b/examples/v1/dashboard-lists/ListDashboardLists.ts deleted file mode 100644 index 260301f8c7f7..000000000000 --- a/examples/v1/dashboard-lists/ListDashboardLists.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all dashboard lists returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardListsApi(configuration); - -apiInstance - .listDashboardLists() - .then((data: v1.DashboardListListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboard-lists/UpdateDashboardList.ts b/examples/v1/dashboard-lists/UpdateDashboardList.ts deleted file mode 100644 index 204a573953af..000000000000 --- a/examples/v1/dashboard-lists/UpdateDashboardList.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Update a dashboard list returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -const params: v1.DashboardListsApiUpdateDashboardListRequest = { - body: { - name: "updated Example-Dashboard-List", - }, - listId: DASHBOARD_LIST_ID, -}; - -apiInstance - .updateDashboardList(params) - .then((data: v1.DashboardList) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard.ts b/examples/v1/dashboards/CreateDashboard.ts deleted file mode 100644 index 229c40d789f3..000000000000 --- a/examples/v1/dashboards/CreateDashboard.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Create a new dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with Profile Metrics Query", - widgets: [ - { - definition: { - type: "timeseries", - requests: [ - { - profileMetricsQuery: { - compute: { - aggregation: "sum", - facet: "@prof_core_cpu_cores", - }, - search: { - query: "runtime:jvm", - }, - groupBy: [ - { - facet: "service", - limit: 10, - sort: { - aggregation: "sum", - order: "desc", - facet: "@prof_core_cpu_cores", - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1024858348.ts b/examples/v1/dashboards/CreateDashboard_1024858348.ts deleted file mode 100644 index 68a643d42bc1..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1024858348.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Create a new dashboard with a formulas and functions treemap widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - type: "treemap", - requests: [ - { - formulas: [ - { - formula: "hour_before(query1)", - }, - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "logs", - name: "query1", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - responseFormat: "scalar", - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1039800684.ts b/examples/v1/dashboards/CreateDashboard_1039800684.ts deleted file mode 100644 index e8f0bb5f525e..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1039800684.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Create a new dashboard with logs_pattern_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - { - width: "auto", - field: "message", - }, - ], - query: { - dataSource: "logs_pattern_stream", - queryString: "", - clusteringPatternFieldPath: "message", - groupBy: [ - { - facet: "service", - }, - ], - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_109450134.ts b/examples/v1/dashboards/CreateDashboard_109450134.ts deleted file mode 100644 index 9c247a5359aa..000000000000 --- a/examples/v1/dashboards/CreateDashboard_109450134.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Create a new dashboard with slo list widget with sort - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 60, - height: 21, - }, - definition: { - titleSize: "16", - titleAlign: "left", - type: "slo_list", - requests: [ - { - query: { - queryString: "env:prod AND service:my-app", - limit: 75, - sort: [ - { - column: "status.sli", - order: "asc", - }, - ], - }, - requestType: "slo_list", - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1094917386.ts b/examples/v1/dashboards/CreateDashboard_1094917386.ts deleted file mode 100644 index de4a28748db3..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1094917386.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Create a new dashboard with manage_status widget and show_priority parameter - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 50, - height: 25, - }, - definition: { - type: "manage_status", - summaryType: "monitors", - displayFormat: "countsAndList", - colorPreference: "text", - hideZeroCounts: true, - showLastTriggered: false, - query: "", - sort: "priority,asc", - count: 50, - start: 0, - showPriority: false, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1177423752.ts b/examples/v1/dashboards/CreateDashboard_1177423752.ts deleted file mode 100644 index d408c316bd8b..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1177423752.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Create a new dashboard with heatmap widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: undefined, - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "heatmap", - requests: [ - { - q: "avg:system.cpu.user{*} by {service}", - style: { - palette: "dog_classic", - }, - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1200099236.ts b/examples/v1/dashboards/CreateDashboard_1200099236.ts deleted file mode 100644 index b7839fd6c0f6..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1200099236.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Create a new dashboard with hostmap widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: undefined, - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 22, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "hostmap", - requests: { - fill: { - q: "avg:system.cpu.user{*} by {host}", - }, - }, - nodeType: "host", - noMetricHosts: true, - noGroupHosts: true, - style: { - palette: "green_to_orange", - paletteFlip: false, - }, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1213075383.ts b/examples/v1/dashboards/CreateDashboard_1213075383.ts deleted file mode 100644 index 7271940a6718..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1213075383.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Create a new dashboard with toplist widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - style: { - display: { - type: "stacked", - legend: "inline", - }, - scaling: "relative", - palette: "dog_classic", - }, - type: "toplist", - requests: [ - { - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {service}", - aggregator: "avg", - }, - ], - formulas: [ - { - formula: "query1", - }, - ], - sort: { - count: 10, - orderBy: [ - { - type: "formula", - index: 0, - order: "desc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1284514532.ts b/examples/v1/dashboards/CreateDashboard_1284514532.ts deleted file mode 100644 index 3a26908d1cbc..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1284514532.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Create a new dashboard with a timeseries widget using formulas and functions cloud cost query - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "Example Cloud Cost Query", - titleSize: "16", - titleAlign: "left", - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "cloud_cost", - name: "query1", - query: - "sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)", - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "bars", - }, - ], - time: { - liveSpan: "week_to_date", - }, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1307120899.ts b/examples/v1/dashboards/CreateDashboard_1307120899.ts deleted file mode 100644 index 02e91e475ccb..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1307120899.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Create a new timeseries widget with ci_tests data source - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with ci_tests datasource", - widgets: [ - { - definition: { - title: "", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: {}, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "ci_tests", - name: "query1", - search: { - query: "test_level:test", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1413226400.ts b/examples/v1/dashboards/CreateDashboard_1413226400.ts deleted file mode 100644 index be65c288061c..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1413226400.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Create a new dashboard with a toplist widget with stacked type and no legend specified - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - style: { - display: { - type: "stacked", - }, - scaling: "relative", - palette: "dog_classic", - }, - type: "toplist", - requests: [ - { - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {service}", - aggregator: "avg", - }, - ], - formulas: [ - { - formula: "query1", - }, - ], - sort: { - count: 10, - orderBy: [ - { - type: "group", - name: "service", - order: "asc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1423904722.ts b/examples/v1/dashboards/CreateDashboard_1423904722.ts deleted file mode 100644 index ce48918b76b6..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1423904722.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Create a new dashboard with slo list widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 60, - height: 21, - }, - definition: { - titleSize: "16", - titleAlign: "left", - type: "slo_list", - requests: [ - { - query: { - queryString: "env:prod AND service:my-app", - limit: 75, - }, - requestType: "slo_list", - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1433408735.ts b/examples/v1/dashboards/CreateDashboard_1433408735.ts deleted file mode 100644 index ad8a3dc3c66b..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1433408735.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Clients deserialize a dashboard with a empty time object - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "Example Cloud Cost Query", - titleSize: "16", - titleAlign: "left", - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "cloud_cost", - name: "query1", - query: - "sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)", - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "bars", - }, - ], - time: {}, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1442588603.ts b/examples/v1/dashboards/CreateDashboard_1442588603.ts deleted file mode 100644 index efc0e7375080..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1442588603.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Create a distribution widget using a histogram request containing a formulas and functions APM Stats query - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - definition: { - title: "APM Stats - Request latency HOP", - titleSize: "16", - titleAlign: "left", - showLegend: false, - type: "distribution", - xaxis: { - max: "auto", - includeZero: true, - scale: "linear", - min: "auto", - }, - yaxis: { - max: "auto", - includeZero: true, - scale: "linear", - min: "auto", - }, - requests: [ - { - query: { - primaryTagValue: "*", - stat: "latency_distribution", - dataSource: "apm_resource_stats", - name: "query1", - service: "azure-bill-import", - groupBy: ["resource_name"], - env: "staging", - primaryTagName: "datacenter", - operationName: "universal.http.client", - }, - requestType: "histogram", - style: { - palette: "dog_classic", - }, - }, - ], - }, - layout: { - x: 8, - y: 0, - width: 4, - height: 2, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_145494973.ts b/examples/v1/dashboards/CreateDashboard_145494973.ts deleted file mode 100644 index 8ebaffa6bf9c..000000000000 --- a/examples/v1/dashboards/CreateDashboard_145494973.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Create a new dashboard with apm resource stats widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "query_table", - requests: [ - { - responseFormat: "scalar", - queries: [ - { - primaryTagValue: "edge-eu1.prod.dog", - stat: "hits", - name: "query1", - service: "cassandra", - dataSource: "apm_resource_stats", - env: "ci", - primaryTagName: "datacenter", - operationName: "cassandra.query", - groupBy: ["resource_name"], - }, - ], - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1490099434.ts b/examples/v1/dashboards/CreateDashboard_1490099434.ts deleted file mode 100644 index 5e71a4181987..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1490099434.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Create a new dashboard with query_table widget and cell_display_mode is trend - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 54, - height: 32, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "query_table", - requests: [ - { - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {host}", - aggregator: "avg", - }, - ], - formulas: [ - { - formula: "query1", - conditionalFormats: [], - cellDisplayMode: "trend", - cellDisplayModeOptions: { - trendType: "line", - yScale: "shared", - }, - }, - ], - sort: { - count: 500, - orderBy: [ - { - type: "formula", - index: 0, - order: "desc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - hasSearchBar: "auto", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_173805046.ts b/examples/v1/dashboards/CreateDashboard_173805046.ts deleted file mode 100644 index 74051ace07d1..000000000000 --- a/examples/v1/dashboards/CreateDashboard_173805046.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Create a new dashboard with slo widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 60, - height: 21, - }, - definition: { - titleSize: "16", - titleAlign: "left", - type: "slo", - viewType: "detail", - timeWindows: ["7d"], - sloId: SLO_DATA_0_ID, - showErrorBudget: true, - viewMode: "overall", - globalTimeTarget: "0", - additionalQueryFilters: "!host:excluded_host", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1738608750.ts b/examples/v1/dashboards/CreateDashboard_1738608750.ts deleted file mode 100644 index f9a7b747305d..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1738608750.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Create a new dashboard with free_text widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: undefined, - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 24, - height: 6, - }, - definition: { - type: "free_text", - text: "Example free text", - color: "#4d4d4d", - fontSize: "auto", - textAlign: "left", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1754992756.ts b/examples/v1/dashboards/CreateDashboard_1754992756.ts deleted file mode 100644 index 9a17b67644cd..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1754992756.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Create a new dashboard with powerpack widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "powerpack" in the system -const POWERPACK_DATA_ID = process.env.POWERPACK_DATA_ID as string; - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with powerpack widget", - layoutType: "ordered", - widgets: [ - { - definition: { - type: "powerpack", - powerpackId: POWERPACK_DATA_ID, - templateVariables: { - controlledExternally: [], - controlledByPowerpack: [ - { - name: "foo", - prefix: "bar", - values: ["baz", "qux", "quuz"], - }, - ], - }, - }, - layout: { - x: 1, - y: 1, - width: 2, - height: 2, - isColumnBreak: false, - }, - }, - ], - description: "description", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_1877023900.ts b/examples/v1/dashboards/CreateDashboard_1877023900.ts deleted file mode 100644 index 9f876b7f9334..000000000000 --- a/examples/v1/dashboards/CreateDashboard_1877023900.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Create a new dashboard with list_stream widget with a valid sort parameter ASC - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "event_stream", - queryString: "", - eventSize: "l", - sort: { - column: "timestamp", - order: "asc", - }, - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2029850837.ts b/examples/v1/dashboards/CreateDashboard_2029850837.ts deleted file mode 100644 index 4b1a9aa1eb24..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2029850837.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Create a new dashboard with log_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 36, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "log_stream", - indexes: ["main"], - query: "", - sort: { - column: "time", - order: "desc", - }, - columns: ["host", "service"], - showDateColumn: true, - showMessageColumn: true, - messageDisplay: "expanded-md", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2034634967.ts b/examples/v1/dashboards/CreateDashboard_2034634967.ts deleted file mode 100644 index 171c3168fbf1..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2034634967.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Create a new dashboard with servicemap widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "servicemap", - service: "", - filters: ["env:none", "environment:*"], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2064651578.ts b/examples/v1/dashboards/CreateDashboard_2064651578.ts deleted file mode 100644 index f30ece721b15..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2064651578.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Create a new dashboard with team tags returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "change", - requests: [ - { - formulas: [ - { - formula: "hour_before(query1)", - }, - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "logs", - name: "query1", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - responseFormat: "scalar", - compareTo: "hour_before", - increaseGood: true, - orderBy: "change", - changeType: "absolute", - orderDir: "desc", - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - tags: ["team:foobar"], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2104498738.ts b/examples/v1/dashboards/CreateDashboard_2104498738.ts deleted file mode 100644 index b3f75b835c3b..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2104498738.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create a new dashboard with formulas and functions scatterplot widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - id: 5346764334358972, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "scatterplot", - requests: { - table: { - formulas: [ - { - formula: "query1", - dimension: "x", - alias: "my-query1", - }, - { - formula: "query2", - dimension: "y", - alias: "my-query2", - }, - ], - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {service}", - aggregator: "avg", - }, - { - dataSource: "metrics", - name: "query2", - query: "avg:system.mem.used{*} by {service}", - aggregator: "avg", - }, - ], - responseFormat: "scalar", - }, - }, - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 2, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2261785072.ts b/examples/v1/dashboards/CreateDashboard_2261785072.ts deleted file mode 100644 index 99171aa543c1..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2261785072.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Create a new dashboard with a timeseries widget and an overlay request - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard", - widgets: [ - { - definition: { - type: "timeseries", - requests: [ - { - onRightYaxis: false, - queries: [ - { - dataSource: "metrics", - name: "mymetric", - query: "avg:system.cpu.user{*}", - }, - ], - responseFormat: "timeseries", - displayType: "line", - }, - { - responseFormat: "timeseries", - queries: [ - { - dataSource: "metrics", - name: "mymetricoverlay", - query: "avg:system.cpu.user{*}", - }, - ], - style: { - palette: "purple", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "overlay", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2278756614.ts b/examples/v1/dashboards/CreateDashboard_2278756614.ts deleted file mode 100644 index d71621fc208b..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2278756614.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create a new dashboard with split graph widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 12, - height: 8, - }, - definition: { - title: "", - type: "split_group", - sourceWidgetDefinition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "timeseries", - requests: [ - { - responseFormat: "timeseries", - queries: [ - { - name: "query1", - dataSource: "metrics", - query: "avg:system.cpu.user{*}", - }, - ], - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - splitConfig: { - splitDimensions: [ - { - oneGraphPer: "service", - }, - ], - limit: 24, - sort: { - compute: { - aggregation: "sum", - metric: "system.cpu.user", - }, - order: "desc", - }, - staticSplits: [ - [ - { - tagKey: "service", - tagValues: ["cassandra"], - }, - { - tagKey: "datacenter", - tagValues: [], - }, - ], - [ - { - tagKey: "demo", - tagValues: ["env"], - }, - ], - ], - }, - size: "md", - hasUniformYAxes: true, - }, - }, - ], - templateVariables: [], - layoutType: "ordered", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2308247857.ts b/examples/v1/dashboards/CreateDashboard_2308247857.ts deleted file mode 100644 index d21a15af5f27..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2308247857.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Create a new dashboard with alert_graph widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "monitor" in the system - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "alert_graph", - alertId: "7", - vizType: "timeseries", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2316374332.ts b/examples/v1/dashboards/CreateDashboard_2316374332.ts deleted file mode 100644 index 7c99e1f495b2..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2316374332.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Create a new dashboard with alert_value widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "monitor" in the system - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 15, - height: 8, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "alert_value", - alertId: "7", - unit: "auto", - textAlign: "left", - precision: 2, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2336428357.ts b/examples/v1/dashboards/CreateDashboard_2336428357.ts deleted file mode 100644 index e87be598e31a..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2336428357.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Create a new dashboard with query_table widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 54, - height: 32, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "query_table", - requests: [ - { - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {host}", - aggregator: "avg", - }, - ], - formulas: [ - { - formula: "query1", - conditionalFormats: [], - cellDisplayMode: "bar", - }, - ], - sort: { - count: 500, - orderBy: [ - { - type: "formula", - index: 0, - order: "desc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - hasSearchBar: "auto", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2338918735.ts b/examples/v1/dashboards/CreateDashboard_2338918735.ts deleted file mode 100644 index ccd0a9e42125..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2338918735.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a new dashboard with list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "apm_issue_stream", - queryString: "", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2342457693.ts b/examples/v1/dashboards/CreateDashboard_2342457693.ts deleted file mode 100644 index 32692892b08d..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2342457693.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create a new dashboard with scatterplot widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "scatterplot", - requests: { - table: { - formulas: [ - { - formula: "query1", - dimension: "x", - alias: "", - }, - { - formula: "query2", - dimension: "y", - alias: "", - }, - ], - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {service}", - aggregator: "avg", - }, - { - dataSource: "metrics", - name: "query2", - query: "avg:system.mem.used{*} by {service}", - aggregator: "avg", - }, - ], - responseFormat: "scalar", - }, - }, - xaxis: { - scale: "linear", - includeZero: true, - min: "auto", - max: "auto", - }, - yaxis: { - scale: "linear", - includeZero: true, - min: "auto", - max: "auto", - }, - colorByGroups: [], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2349863258.ts b/examples/v1/dashboards/CreateDashboard_2349863258.ts deleted file mode 100644 index a8367c47aaaa..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2349863258.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a new dashboard with query_value widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "query_value", - requests: [ - { - responseFormat: "scalar", - queries: [ - { - name: "query1", - dataSource: "metrics", - query: "avg:system.cpu.user{*}", - aggregator: "avg", - }, - ], - }, - ], - autoscale: true, - precision: 2, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2361531620.ts b/examples/v1/dashboards/CreateDashboard_2361531620.ts deleted file mode 100644 index 3f798b99895c..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2361531620.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Create a new dashboard with list_stream widget with a valid sort parameter DESC - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "event_stream", - queryString: "", - eventSize: "l", - sort: { - column: "timestamp", - order: "desc", - }, - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2432046716.ts b/examples/v1/dashboards/CreateDashboard_2432046716.ts deleted file mode 100644 index 1f46633c8744..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2432046716.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Create a new dashboard with event_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "event_stream", - queryString: "", - eventSize: "l", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2490110261.ts b/examples/v1/dashboards/CreateDashboard_2490110261.ts deleted file mode 100644 index 3c115188d09a..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2490110261.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Create a new dashboard with an audit logs query - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with Audit Logs Query", - widgets: [ - { - definition: { - type: "timeseries", - requests: [ - { - responseFormat: "timeseries", - queries: [ - { - search: { - query: "", - }, - dataSource: "audit", - compute: { - aggregation: "count", - }, - name: "query1", - indexes: ["*"], - groupBy: [], - }, - ], - }, - ], - }, - layout: { - x: 2, - y: 0, - width: 4, - height: 2, - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_252716965.ts b/examples/v1/dashboards/CreateDashboard_252716965.ts deleted file mode 100644 index 108d5e9430f7..000000000000 --- a/examples/v1/dashboards/CreateDashboard_252716965.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create a distribution widget using a histogram request containing a formulas and functions metrics query - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "Metrics HOP", - titleSize: "16", - titleAlign: "left", - showLegend: false, - type: "distribution", - customLinks: [ - { - label: "Example", - link: "https://example.org/", - }, - ], - xaxis: { - max: "auto", - includeZero: true, - scale: "linear", - min: "auto", - }, - yaxis: { - max: "auto", - includeZero: true, - scale: "linear", - min: "auto", - }, - requests: [ - { - query: { - query: "histogram:trace.Load{*}", - dataSource: "metrics", - name: "query1", - }, - requestType: "histogram", - style: { - palette: "dog_classic", - }, - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 2, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2563642929.ts b/examples/v1/dashboards/CreateDashboard_2563642929.ts deleted file mode 100644 index f8f1f19bfdf2..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2563642929.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Create a new dashboard with a toplist widget sorted by group - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - style: { - display: { - type: "stacked", - legend: "inline", - }, - scaling: "relative", - palette: "dog_classic", - }, - type: "toplist", - requests: [ - { - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*} by {service}", - aggregator: "avg", - }, - ], - formulas: [ - { - formula: "query1", - }, - ], - sort: { - count: 10, - orderBy: [ - { - type: "group", - name: "service", - order: "asc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2607944105.ts b/examples/v1/dashboards/CreateDashboard_2607944105.ts deleted file mode 100644 index ca16aacc0c34..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2607944105.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Create a new dashboard with check_status widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 15, - height: 8, - }, - definition: { - titleSize: "16", - titleAlign: "left", - type: "check_status", - check: "datadog.agent.up", - grouping: "check", - tags: ["*"], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2610827685.ts b/examples/v1/dashboards/CreateDashboard_2610827685.ts deleted file mode 100644 index 92411277927a..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2610827685.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Create a new dashboard with run-workflow widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "Run workflow title", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "run_workflow", - workflowId: "2e055f16-8b6a-4cdd-b452-17a34c44b160", - inputs: [ - { - name: "environment", - value: "$env.value", - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2618036642.ts b/examples/v1/dashboards/CreateDashboard_2618036642.ts deleted file mode 100644 index 46d0279293b4..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2618036642.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Create a new dashboard with trace_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - { - width: "auto", - field: "service", - }, - ], - query: { - dataSource: "trace_stream", - queryString: "", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2634813877.ts b/examples/v1/dashboards/CreateDashboard_2634813877.ts deleted file mode 100644 index 95556a5763ce..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2634813877.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a new dashboard with event_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 38, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "event_stream", - query: "example-query", - tagsExecution: "and", - eventSize: "s", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2644712913.ts b/examples/v1/dashboards/CreateDashboard_2644712913.ts deleted file mode 100644 index 94df43a23a2d..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2644712913.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Create a new dashboard with a query value widget using the percentile aggregator - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with QVW Percentile Aggregator", - widgets: [ - { - definition: { - titleSize: "16", - title: "", - titleAlign: "left", - precision: 2, - time: {}, - autoscale: true, - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - responseFormat: "scalar", - queries: [ - { - query: "p90:dist.dd.dogweb.latency{*}", - dataSource: "metrics", - name: "query1", - aggregator: "percentile", - }, - ], - }, - ], - type: "query_value", - }, - layout: { - y: 0, - x: 0, - height: 2, - width: 2, - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2652180930.ts b/examples/v1/dashboards/CreateDashboard_2652180930.ts deleted file mode 100644 index 24404cb33f60..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2652180930.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Create a new dashboard with topology_map widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "topology_map", - requests: [ - { - requestType: "topology", - query: { - dataSource: "service_map", - service: "", - filters: ["env:none", "environment:*"], - }, - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2705593938.ts b/examples/v1/dashboards/CreateDashboard_2705593938.ts deleted file mode 100644 index 78a955112fba..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2705593938.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Create a new dashboard with sunburst widget and metrics data - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "sunburst", - requests: [ - { - responseFormat: "scalar", - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - query: "sum:system.mem.used{*} by {service}", - dataSource: "metrics", - name: "query1", - aggregator: "sum", - }, - ], - style: { - palette: "dog_classic", - }, - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2800096921.ts b/examples/v1/dashboards/CreateDashboard_2800096921.ts deleted file mode 100644 index 60e26c4be0b8..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2800096921.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Create a new timeseries widget with ci_pipelines data source - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with ci_pipelines datasource", - widgets: [ - { - definition: { - title: "", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: {}, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "ci_pipelines", - name: "query1", - search: { - query: "ci_level:job", - }, - indexes: ["*"], - compute: { - aggregation: "count", - metric: "@ci.queue_time", - }, - groupBy: [], - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2843286292.ts b/examples/v1/dashboards/CreateDashboard_2843286292.ts deleted file mode 100644 index 10f97281a290..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2843286292.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Create a new dashboard with logs_transaction_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "logs_transaction_stream", - queryString: "", - groupBy: [ - { - facet: "service", - }, - ], - compute: [ - { - facet: "service", - aggregation: "count", - }, - ], - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2850365602.ts b/examples/v1/dashboards/CreateDashboard_2850365602.ts deleted file mode 100644 index 98f347f871d3..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2850365602.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a new dashboard with template variable presets using values returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - description: undefined, - layoutType: "ordered", - notifyList: [], - reflowType: "auto", - restrictedRoles: [], - templateVariablePresets: [ - { - name: "my saved view", - templateVariables: [ - { - name: "datacenter", - values: ["*", "my-host"], - }, - ], - }, - ], - templateVariables: [ - { - availableValues: ["my-host", "host1", "host2"], - defaults: ["my-host"], - name: "host1", - prefix: "host", - }, - ], - title: "", - widgets: [ - { - definition: { - requests: { - fill: { - q: "avg:system.cpu.user{*}", - }, - }, - type: "hostmap", - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2917274132.ts b/examples/v1/dashboards/CreateDashboard_2917274132.ts deleted file mode 100644 index a9b22d079bb2..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2917274132.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Create a new dashboard with manage_status widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 50, - height: 25, - }, - definition: { - type: "manage_status", - summaryType: "monitors", - displayFormat: "countsAndList", - colorPreference: "text", - hideZeroCounts: true, - showLastTriggered: false, - query: "", - sort: "status,asc", - count: 50, - start: 0, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_2921337351.ts b/examples/v1/dashboards/CreateDashboard_2921337351.ts deleted file mode 100644 index 663dfb0de0cd..000000000000 --- a/examples/v1/dashboards/CreateDashboard_2921337351.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Create a new dashboard with trace_service widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 72, - height: 72, - }, - definition: { - title: "Service Summary", - time: {}, - type: "trace_service", - env: "none", - service: "", - spanName: "", - showHits: true, - showErrors: true, - showLatency: true, - showBreakdown: true, - showDistribution: true, - showResourceList: false, - sizeFormat: "medium", - displayFormat: "two_column", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3066042014.ts b/examples/v1/dashboards/CreateDashboard_3066042014.ts deleted file mode 100644 index 0e84b08fface..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3066042014.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create a new timeseries widget with new live span time format - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with new live span time", - widgets: [ - { - definition: { - title: "", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: { - type: "live", - unit: "minute", - value: 8, - }, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "ci_pipelines", - name: "query1", - search: { - query: "ci_level:job", - }, - indexes: ["*"], - compute: { - aggregation: "count", - metric: "@ci.queue_time", - }, - groupBy: [], - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3117424216.ts b/examples/v1/dashboards/CreateDashboard_3117424216.ts deleted file mode 100644 index 826c5fb7ba8b..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3117424216.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Create a new dashboard with logs_stream list_stream widget and storage parameter - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "logs_stream", - queryString: "", - storage: "hot", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3195475781.ts b/examples/v1/dashboards/CreateDashboard_3195475781.ts deleted file mode 100644 index 614a288db537..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3195475781.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a new dashboard with ci_test_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "ci_test_stream", - queryString: "test_level:suite", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3250131584.ts b/examples/v1/dashboards/CreateDashboard_3250131584.ts deleted file mode 100644 index 9f61df702869..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3250131584.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Create a new dashboard with event_timeline widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: undefined, - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 9, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "event_timeline", - query: "status:error priority:all", - tagsExecution: "and", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3298564989.ts b/examples/v1/dashboards/CreateDashboard_3298564989.ts deleted file mode 100644 index af76b07eee3f..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3298564989.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Create a new dashboard with llm_observability_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - responseFormat: "event_list", - query: { - dataSource: "llm_observability_stream", - queryString: "@event_type:span @parent_id:undefined", - indexes: [], - }, - columns: [ - { - field: "@status", - width: "compact", - }, - { - field: "@content.prompt", - width: "auto", - }, - { - field: "@content.response.content", - width: "auto", - }, - { - field: "timestamp", - width: "auto", - }, - { - field: "@ml_app", - width: "auto", - }, - { - field: "service", - width: "auto", - }, - { - field: "@meta.evaluations.quality", - width: "auto", - }, - { - field: "@meta.evaluations.security", - width: "auto", - }, - { - field: "@duration", - width: "auto", - }, - ], - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3451918078.ts b/examples/v1/dashboards/CreateDashboard_3451918078.ts deleted file mode 100644 index a92483154f0e..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3451918078.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create a new timeseries widget with new fixed span time format - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with new fixed span time", - widgets: [ - { - definition: { - title: "", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: { - type: "fixed", - from: 1712080128, - to: 1712083128, - }, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "ci_pipelines", - name: "query1", - search: { - query: "ci_level:job", - }, - indexes: ["*"], - compute: { - aggregation: "count", - metric: "@ci.queue_time", - }, - groupBy: [], - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3513586382.ts b/examples/v1/dashboards/CreateDashboard_3513586382.ts deleted file mode 100644 index bcc23d55bd26..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3513586382.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create a geomap widget using an event_list request - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "geomap", - requests: [ - { - responseFormat: "event_list", - query: { - dataSource: "logs_stream", - queryString: "", - indexes: [], - }, - columns: [ - { - field: "@network.client.geoip.location.latitude", - width: "auto", - }, - { - field: "@network.client.geoip.location.longitude", - width: "auto", - }, - { - field: "@network.client.geoip.country.iso_code", - width: "auto", - }, - { - field: "@network.client.geoip.subdivision.name", - width: "auto", - }, - { - field: "classic", - width: "auto", - }, - { - field: "", - width: "auto", - }, - ], - }, - ], - style: { - palette: "hostmap_blues", - paletteFlip: false, - }, - view: { - focus: "WORLD", - }, - }, - layout: { - x: 0, - y: 0, - width: 12, - height: 6, - }, - }, - ], - templateVariables: [], - layoutType: "ordered", - notifyList: [], - reflowType: "fixed", - tags: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3520534424.ts b/examples/v1/dashboards/CreateDashboard_3520534424.ts deleted file mode 100644 index cf13a9d64bd4..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3520534424.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Create a new dashboard with timeseries widget with custom_unit - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - showLegend: true, - legendLayout: "auto", - time: {}, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - numberFormat: { - unitScale: { - type: "canonical_unit", - unitName: "apdex", - }, - unit: { - type: "canonical_unit", - unitName: "fraction", - }, - }, - }, - ], - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*}", - }, - ], - responseFormat: "timeseries", - displayType: "line", - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 12, - height: 5, - }, - }, - ], - templateVariables: [], - layoutType: "ordered", - notifyList: [], - reflowType: "fixed", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3562282606.ts b/examples/v1/dashboards/CreateDashboard_3562282606.ts deleted file mode 100644 index 1000a45a0732..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3562282606.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create a new dashboard with a change widget using formulas and functions slo query - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "change", - requests: [ - { - formulas: [ - { - formula: "hour_before(query1)", - }, - { - formula: "query1", - }, - ], - queries: [ - { - name: "query1", - dataSource: "slo", - sloId: SLO_DATA_0_ID, - measure: "slo_status", - groupMode: "overall", - sloQueryType: "metric", - additionalQueryFilters: "*", - }, - ], - responseFormat: "scalar", - orderBy: "change", - changeType: "absolute", - increaseGood: true, - orderDir: "asc", - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 2, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3669695268.ts b/examples/v1/dashboards/CreateDashboard_3669695268.ts deleted file mode 100644 index 833fdcc7f09a..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3669695268.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Create a new dashboard with logs query table widget and storage parameter - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with query table widget and storage parameter", - widgets: [ - { - definition: { - type: "query_table", - requests: [ - { - queries: [ - { - dataSource: "logs", - name: "query1", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - storage: "online_archives", - }, - ], - formulas: [ - { - conditionalFormats: [], - cellDisplayMode: "bar", - formula: "query1", - }, - ], - sort: { - count: 50, - orderBy: [ - { - type: "formula", - index: 0, - order: "desc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3777304439.ts b/examples/v1/dashboards/CreateDashboard_3777304439.ts deleted file mode 100644 index def12ea4cce8..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3777304439.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Create a new dashboard with formula and function heatmap widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 15, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "heatmap", - requests: [ - { - responseFormat: "timeseries", - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "avg:system.cpu.user{*}", - }, - ], - formulas: [ - { - formula: "query1", - }, - ], - style: { - palette: "dog_classic", - }, - }, - ], - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3882428227.ts b/examples/v1/dashboards/CreateDashboard_3882428227.ts deleted file mode 100644 index 76d05ded6493..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3882428227.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create a distribution widget using a histogram request containing a formulas and functions events query - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "Example-Dashboard", - widgets: [ - { - definition: { - title: "Events Platform - Request latency HOP", - titleSize: "16", - titleAlign: "left", - showLegend: false, - type: "distribution", - xaxis: { - max: "auto", - includeZero: true, - scale: "linear", - min: "auto", - }, - yaxis: { - max: "auto", - includeZero: true, - scale: "linear", - min: "auto", - }, - requests: [ - { - query: { - search: { - query: "", - }, - dataSource: "events", - compute: { - metric: "@duration", - aggregation: "min", - }, - name: "query1", - indexes: ["*"], - groupBy: [], - }, - requestType: "histogram", - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 2, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_3982498788.ts b/examples/v1/dashboards/CreateDashboard_3982498788.ts deleted file mode 100644 index c5e4ca8a3c48..000000000000 --- a/examples/v1/dashboards/CreateDashboard_3982498788.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Create a new dashboard with timeseries widget containing style attributes - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with timeseries widget", - widgets: [ - { - definition: { - type: "timeseries", - requests: [ - { - q: "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()", - onRightYaxis: false, - style: { - palette: "warm", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "bars", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_4026341408.ts b/examples/v1/dashboards/CreateDashboard_4026341408.ts deleted file mode 100644 index b38ca8b4699e..000000000000 --- a/examples/v1/dashboards/CreateDashboard_4026341408.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a new dashboard with apm_issue_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "apm_issue_stream", - queryString: "", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_4076476470.ts b/examples/v1/dashboards/CreateDashboard_4076476470.ts deleted file mode 100644 index ad1e9a132889..000000000000 --- a/examples/v1/dashboards/CreateDashboard_4076476470.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a new dashboard with rum_issue_stream list_stream widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "rum_issue_stream", - queryString: "", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_41622531.ts b/examples/v1/dashboards/CreateDashboard_41622531.ts deleted file mode 100644 index 1361fd04a026..000000000000 --- a/examples/v1/dashboards/CreateDashboard_41622531.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Create a new dashboard with timeseries widget and formula style attributes - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with formula style", - widgets: [ - { - definition: { - title: "styled timeseries", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: {}, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - style: { - paletteIndex: 4, - palette: "classic", - }, - }, - ], - queries: [ - { - query: "avg:system.cpu.user{*}", - dataSource: "metrics", - name: "query1", - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_417992286.ts b/examples/v1/dashboards/CreateDashboard_417992286.ts deleted file mode 100644 index 1482352ee0e8..000000000000 --- a/examples/v1/dashboards/CreateDashboard_417992286.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Create a new dashboard with note widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 18, - height: 24, - }, - definition: { - type: "note", - content: "# Example Note", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_4262729673.ts b/examples/v1/dashboards/CreateDashboard_4262729673.ts deleted file mode 100644 index c99f442a75e1..000000000000 --- a/examples/v1/dashboards/CreateDashboard_4262729673.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Create a new timeseries widget with legacy live span time format - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with legacy live span time", - widgets: [ - { - definition: { - title: "", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: { - liveSpan: "5m", - }, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "ci_pipelines", - name: "query1", - search: { - query: "ci_level:job", - }, - indexes: ["*"], - compute: { - aggregation: "count", - metric: "@ci.queue_time", - }, - groupBy: [], - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_578885732.ts b/examples/v1/dashboards/CreateDashboard_578885732.ts deleted file mode 100644 index 9e3f01839225..000000000000 --- a/examples/v1/dashboards/CreateDashboard_578885732.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Create a new dashboard with a formulas and functions change widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "change", - requests: [ - { - formulas: [ - { - formula: "hour_before(query1)", - }, - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "logs", - name: "query1", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - responseFormat: "scalar", - compareTo: "hour_before", - increaseGood: true, - orderBy: "change", - changeType: "absolute", - orderDir: "desc", - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_651038379.ts b/examples/v1/dashboards/CreateDashboard_651038379.ts deleted file mode 100644 index 8c3e3cfa554a..000000000000 --- a/examples/v1/dashboards/CreateDashboard_651038379.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Create a new dashboard with image widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 12, - height: 12, - }, - definition: { - type: "image", - url: "https://example.com/image.png", - sizing: "cover", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_765140092.ts b/examples/v1/dashboards/CreateDashboard_765140092.ts deleted file mode 100644 index 21d186e5c25e..000000000000 --- a/examples/v1/dashboards/CreateDashboard_765140092.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Create a new dashboard with a query value widget using timeseries background - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with QVW Timeseries Background", - widgets: [ - { - definition: { - titleSize: "16", - title: "", - titleAlign: "left", - precision: 2, - time: {}, - autoscale: true, - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - responseFormat: "scalar", - queries: [ - { - query: "sum:my.cool.count.metric{*}", - dataSource: "metrics", - name: "query1", - aggregator: "percentile", - }, - ], - }, - ], - type: "query_value", - timeseriesBackground: { - type: "area", - yaxis: { - includeZero: true, - }, - }, - }, - layout: { - y: 0, - x: 0, - height: 2, - width: 2, - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_794302680.ts b/examples/v1/dashboards/CreateDashboard_794302680.ts deleted file mode 100644 index 6c95ac98f4ea..000000000000 --- a/examples/v1/dashboards/CreateDashboard_794302680.ts +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Create a new dashboard with query_table widget and text formatting - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "query_table", - requests: [ - { - queries: [ - { - aggregator: "avg", - dataSource: "metrics", - name: "query1", - query: - "avg:aws.stream.globalaccelerator.processed_bytes_in{*} by {aws_account,acceleratoripaddress}", - }, - { - aggregator: "avg", - dataSource: "metrics", - name: "query2", - query: - "avg:aws.stream.globalaccelerator.processed_bytes_out{*} by {aws_account,acceleratoripaddress}", - }, - ], - responseFormat: "scalar", - textFormats: [ - [ - { - match: { - type: "is", - value: "fruit", - }, - palette: "white_on_red", - replace: { - type: "all", - _with: "vegetable", - }, - }, - { - match: { - type: "is", - value: "animal", - }, - palette: "custom_bg", - customBgColor: "#632ca6", - }, - { - match: { - type: "is", - value: "robot", - }, - palette: "red_on_white", - }, - { - match: { - type: "is", - value: "ai", - }, - palette: "yellow_on_white", - }, - ], - [ - { - match: { - type: "is_not", - value: "xyz", - }, - palette: "white_on_yellow", - }, - ], - [ - { - match: { - type: "contains", - value: "test", - }, - palette: "white_on_green", - replace: { - type: "all", - _with: "vegetable", - }, - }, - ], - [ - { - match: { - type: "does_not_contain", - value: "blah", - }, - palette: "black_on_light_red", - }, - ], - [ - { - match: { - type: "starts_with", - value: "abc", - }, - palette: "black_on_light_yellow", - }, - ], - [ - { - match: { - type: "ends_with", - value: "xyz", - }, - palette: "black_on_light_green", - }, - { - match: { - type: "ends_with", - value: "zzz", - }, - palette: "green_on_white", - }, - { - match: { - type: "is", - value: "animal", - }, - palette: "custom_text", - customFgColor: "#632ca6", - }, - ], - ], - formulas: [], - }, - ], - hasSearchBar: "never", - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_798168180.ts b/examples/v1/dashboards/CreateDashboard_798168180.ts deleted file mode 100644 index 095439b2bbe0..000000000000 --- a/examples/v1/dashboards/CreateDashboard_798168180.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a new dashboard with apm dependency stats widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "query_table", - requests: [ - { - responseFormat: "scalar", - queries: [ - { - primaryTagValue: "edge-eu1.prod.dog", - stat: "avg_duration", - resourceName: - "DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?", - name: "query1", - service: "cassandra", - dataSource: "apm_dependency_stats", - env: "ci", - primaryTagName: "datacenter", - operationName: "cassandra.query", - }, - ], - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_803346562.ts b/examples/v1/dashboards/CreateDashboard_803346562.ts deleted file mode 100644 index 2a13389d829a..000000000000 --- a/examples/v1/dashboards/CreateDashboard_803346562.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Create a new dashboard with distribution widget and apm stats data - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - widgets: [ - { - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - type: "distribution", - requests: [ - { - apmStatsQuery: { - env: "prod", - service: "cassandra", - name: "cassandra.query", - primaryTag: "datacenter:dc1", - rowType: "service", - }, - }, - ], - }, - layout: { - x: 0, - y: 0, - width: 4, - height: 4, - }, - }, - ], - layoutType: "ordered", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_858397694.ts b/examples/v1/dashboards/CreateDashboard_858397694.ts deleted file mode 100644 index 37107838df58..000000000000 --- a/examples/v1/dashboards/CreateDashboard_858397694.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Create a new dashboard with template variable defaults returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - description: undefined, - layoutType: "ordered", - notifyList: [], - reflowType: "auto", - restrictedRoles: [], - templateVariables: [ - { - availableValues: ["my-host", "host1", "host2"], - defaults: ["my-host"], - name: "host1", - prefix: "host", - }, - ], - title: "", - widgets: [ - { - definition: { - requests: { - fill: { - q: "avg:system.cpu.user{*}", - }, - }, - type: "hostmap", - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_913313564.ts b/examples/v1/dashboards/CreateDashboard_913313564.ts deleted file mode 100644 index 61c7d1a67281..000000000000 --- a/examples/v1/dashboards/CreateDashboard_913313564.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Create a new dashboard with iframe widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: "", - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 12, - height: 12, - }, - definition: { - type: "iframe", - url: "https://docs.datadoghq.com/api/latest/", - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_915214113.ts b/examples/v1/dashboards/CreateDashboard_915214113.ts deleted file mode 100644 index 9b7f63a3992c..000000000000 --- a/examples/v1/dashboards/CreateDashboard_915214113.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Create a new dashboard with geomap widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard", - description: undefined, - widgets: [ - { - layout: { - x: 0, - y: 0, - width: 47, - height: 30, - }, - definition: { - title: "", - titleSize: "16", - titleAlign: "left", - time: {}, - type: "geomap", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - name: "query1", - dataSource: "rum", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [ - { - facet: "@geo.country_iso_code", - limit: 250, - sort: { - order: "desc", - aggregation: "count", - }, - }, - ], - }, - ], - sort: { - count: 250, - orderBy: [ - { - type: "formula", - index: 0, - order: "desc", - }, - ], - }, - responseFormat: "scalar", - }, - ], - style: { - palette: "hostmap_blues", - paletteFlip: false, - }, - view: { - focus: "WORLD", - }, - }, - }, - ], - templateVariables: [], - layoutType: "free", - notifyList: [], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_927141680.ts b/examples/v1/dashboards/CreateDashboard_927141680.ts deleted file mode 100644 index d997825d2369..000000000000 --- a/examples/v1/dashboards/CreateDashboard_927141680.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Create a new dashboard with funnel widget - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with funnel widget", - widgets: [ - { - definition: { - type: "funnel", - requests: [ - { - query: { - dataSource: "rum", - queryString: "", - steps: [], - }, - requestType: "funnel", - }, - ], - }, - }, - ], - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreateDashboard_985012506.ts b/examples/v1/dashboards/CreateDashboard_985012506.ts deleted file mode 100644 index f97dfa5a5e22..000000000000 --- a/examples/v1/dashboards/CreateDashboard_985012506.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Create a new timeseries widget with incident_analytics data source - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiCreateDashboardRequest = { - body: { - title: "Example-Dashboard with incident_analytics datasource", - widgets: [ - { - definition: { - title: "", - showLegend: true, - legendLayout: "auto", - legendColumns: ["avg", "min", "max", "value", "sum"], - time: {}, - type: "timeseries", - requests: [ - { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "incident_analytics", - name: "query1", - search: { - query: "test_level:test", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - responseFormat: "timeseries", - style: { - palette: "dog_classic", - lineType: "solid", - lineWidth: "normal", - }, - displayType: "line", - }, - ], - }, - }, - ], - layoutType: "ordered", - reflowType: "auto", - }, -}; - -apiInstance - .createDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/CreatePublicDashboard.ts b/examples/v1/dashboards/CreatePublicDashboard.ts deleted file mode 100644 index 37efa39e83c8..000000000000 --- a/examples/v1/dashboards/CreatePublicDashboard.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a shared dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiCreatePublicDashboardRequest = { - body: { - dashboardId: DASHBOARD_ID, - dashboardType: "custom_timeboard", - shareType: "open", - globalTime: { - liveSpan: "1h", - }, - }, -}; - -apiInstance - .createPublicDashboard(params) - .then((data: v1.SharedDashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/DeleteDashboard.ts b/examples/v1/dashboards/DeleteDashboard.ts deleted file mode 100644 index 5b18b5c0d27c..000000000000 --- a/examples/v1/dashboards/DeleteDashboard.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiDeleteDashboardRequest = { - dashboardId: DASHBOARD_ID, -}; - -apiInstance - .deleteDashboard(params) - .then((data: v1.DashboardDeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/DeleteDashboards.ts b/examples/v1/dashboards/DeleteDashboards.ts deleted file mode 100644 index cd5df30b87cb..000000000000 --- a/examples/v1/dashboards/DeleteDashboards.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Delete dashboards returns "No Content" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiDeleteDashboardsRequest = { - body: { - data: [ - { - id: DASHBOARD_ID, - type: "dashboard", - }, - ], - }, -}; - -apiInstance - .deleteDashboards(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/DeletePublicDashboard.ts b/examples/v1/dashboards/DeletePublicDashboard.ts deleted file mode 100644 index eeb0fea9b907..000000000000 --- a/examples/v1/dashboards/DeletePublicDashboard.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Revoke a shared dashboard URL returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiDeletePublicDashboardRequest = { - token: "token", -}; - -apiInstance - .deletePublicDashboard(params) - .then((data: v1.DeleteSharedDashboardResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/DeletePublicDashboardInvitation.ts b/examples/v1/dashboards/DeletePublicDashboardInvitation.ts deleted file mode 100644 index 3921e5d3c65d..000000000000 --- a/examples/v1/dashboards/DeletePublicDashboardInvitation.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Revoke shared dashboard invitations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiDeletePublicDashboardInvitationRequest = { - body: { - data: [ - { - attributes: { - email: "test@datadoghq.com", - }, - type: "public_dashboard_invitation", - }, - ], - }, - token: "token", -}; - -apiInstance - .deletePublicDashboardInvitation(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/GetDashboard.ts b/examples/v1/dashboards/GetDashboard.ts deleted file mode 100644 index da9f89ea5ff9..000000000000 --- a/examples/v1/dashboards/GetDashboard.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiGetDashboardRequest = { - dashboardId: DASHBOARD_ID, -}; - -apiInstance - .getDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/GetDashboard_4262333854.ts b/examples/v1/dashboards/GetDashboard_4262333854.ts deleted file mode 100644 index b6114b508e0e..000000000000 --- a/examples/v1/dashboards/GetDashboard_4262333854.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a dashboard returns 'author_name' - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiGetDashboardRequest = { - dashboardId: DASHBOARD_ID, -}; - -apiInstance - .getDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/GetPublicDashboard.ts b/examples/v1/dashboards/GetPublicDashboard.ts deleted file mode 100644 index d2c2687da722..000000000000 --- a/examples/v1/dashboards/GetPublicDashboard.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a shared dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "shared_dashboard" in the system -const SHARED_DASHBOARD_TOKEN = process.env.SHARED_DASHBOARD_TOKEN as string; - -const params: v1.DashboardsApiGetPublicDashboardRequest = { - token: SHARED_DASHBOARD_TOKEN, -}; - -apiInstance - .getPublicDashboard(params) - .then((data: v1.SharedDashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/GetPublicDashboardInvitations.ts b/examples/v1/dashboards/GetPublicDashboardInvitations.ts deleted file mode 100644 index 684281b333a0..000000000000 --- a/examples/v1/dashboards/GetPublicDashboardInvitations.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get all invitations for a shared dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "shared_dashboard" in the system -const SHARED_DASHBOARD_TOKEN = process.env.SHARED_DASHBOARD_TOKEN as string; - -const params: v1.DashboardsApiGetPublicDashboardInvitationsRequest = { - token: SHARED_DASHBOARD_TOKEN, -}; - -apiInstance - .getPublicDashboardInvitations(params) - .then((data: v1.SharedDashboardInvites) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/ListDashboards.ts b/examples/v1/dashboards/ListDashboards.ts deleted file mode 100644 index aa00398abd3d..000000000000 --- a/examples/v1/dashboards/ListDashboards.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all dashboards returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiListDashboardsRequest = { - filterShared: false, -}; - -apiInstance - .listDashboards(params) - .then((data: v1.DashboardSummary) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/ListDashboards_1062671515.ts b/examples/v1/dashboards/ListDashboards_1062671515.ts deleted file mode 100644 index b70748a1bb5a..000000000000 --- a/examples/v1/dashboards/ListDashboards_1062671515.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all dashboards returns "OK" response with pagination - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiListDashboardsRequest = { - count: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listDashboardsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v1/dashboards/ListDashboards_1773932563.ts b/examples/v1/dashboards/ListDashboards_1773932563.ts deleted file mode 100644 index 722d2a4973d0..000000000000 --- a/examples/v1/dashboards/ListDashboards_1773932563.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get deleted dashboards returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -const params: v1.DashboardsApiListDashboardsRequest = { - filterDeleted: true, -}; - -apiInstance - .listDashboards(params) - .then((data: v1.DashboardSummary) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/RestoreDashboards.ts b/examples/v1/dashboards/RestoreDashboards.ts deleted file mode 100644 index ba598d1e6d80..000000000000 --- a/examples/v1/dashboards/RestoreDashboards.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Restore deleted dashboards returns "No Content" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiRestoreDashboardsRequest = { - body: { - data: [ - { - id: DASHBOARD_ID, - type: "dashboard", - }, - ], - }, -}; - -apiInstance - .restoreDashboards(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/SendPublicDashboardInvitation.ts b/examples/v1/dashboards/SendPublicDashboardInvitation.ts deleted file mode 100644 index 39c2c89144f5..000000000000 --- a/examples/v1/dashboards/SendPublicDashboardInvitation.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Send shared dashboard invitation email returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "shared_dashboard" in the system -const SHARED_DASHBOARD_TOKEN = process.env.SHARED_DASHBOARD_TOKEN as string; - -const params: v1.DashboardsApiSendPublicDashboardInvitationRequest = { - body: { - data: { - attributes: { - email: "exampledashboard@datadoghq.com", - }, - type: "public_dashboard_invitation", - }, - }, - token: SHARED_DASHBOARD_TOKEN, -}; - -apiInstance - .sendPublicDashboardInvitation(params) - .then((data: v1.SharedDashboardInvites) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/UpdateDashboard.ts b/examples/v1/dashboards/UpdateDashboard.ts deleted file mode 100644 index c6c5605bced1..000000000000 --- a/examples/v1/dashboards/UpdateDashboard.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Update a dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiUpdateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - description: "Updated description", - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "apm_issue_stream", - queryString: "", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, - dashboardId: DASHBOARD_ID, -}; - -apiInstance - .updateDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/UpdateDashboard_3454865944.ts b/examples/v1/dashboards/UpdateDashboard_3454865944.ts deleted file mode 100644 index 18714ebb66e8..000000000000 --- a/examples/v1/dashboards/UpdateDashboard_3454865944.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Update a dashboard with tags returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v1.DashboardsApiUpdateDashboardRequest = { - body: { - layoutType: "ordered", - title: "Example-Dashboard with list_stream widget", - description: "Updated description", - tags: ["team:foo", "team:bar"], - widgets: [ - { - definition: { - type: "list_stream", - requests: [ - { - columns: [ - { - width: "auto", - field: "timestamp", - }, - ], - query: { - dataSource: "apm_issue_stream", - queryString: "", - }, - responseFormat: "event_list", - }, - ], - }, - }, - ], - }, - dashboardId: DASHBOARD_ID, -}; - -apiInstance - .updateDashboard(params) - .then((data: v1.Dashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/dashboards/UpdatePublicDashboard.ts b/examples/v1/dashboards/UpdatePublicDashboard.ts deleted file mode 100644 index 3e27151ac6ef..000000000000 --- a/examples/v1/dashboards/UpdatePublicDashboard.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Update a shared dashboard returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DashboardsApi(configuration); - -// there is a valid "shared_dashboard" in the system -const SHARED_DASHBOARD_TOKEN = process.env.SHARED_DASHBOARD_TOKEN as string; - -const params: v1.DashboardsApiUpdatePublicDashboardRequest = { - body: { - globalTime: { - liveSpan: "15m", - }, - shareList: [], - shareType: "open", - }, - token: SHARED_DASHBOARD_TOKEN, -}; - -apiInstance - .updatePublicDashboard(params) - .then((data: v1.SharedDashboard) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CancelDowntime.ts b/examples/v1/downtimes/CancelDowntime.ts deleted file mode 100644 index 6b1229e9f213..000000000000 --- a/examples/v1/downtimes/CancelDowntime.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Cancel a downtime returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -// there is a valid "downtime" in the system -const DOWNTIME_ID = parseInt(process.env.DOWNTIME_ID as string); - -const params: v1.DowntimesApiCancelDowntimeRequest = { - downtimeId: DOWNTIME_ID, -}; - -apiInstance - .cancelDowntime(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CancelDowntimesByScope.ts b/examples/v1/downtimes/CancelDowntimesByScope.ts deleted file mode 100644 index 71776cb7b968..000000000000 --- a/examples/v1/downtimes/CancelDowntimesByScope.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Cancel downtimes by scope returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -// there is a valid "downtime" in the system -const DOWNTIME_SCOPE_0 = process.env.DOWNTIME_SCOPE_0 as string; - -const params: v1.DowntimesApiCancelDowntimesByScopeRequest = { - body: { - scope: DOWNTIME_SCOPE_0, - }, -}; - -apiInstance - .cancelDowntimesByScope(params) - .then((data: v1.CanceledDowntimesIds) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CreateDowntime.ts b/examples/v1/downtimes/CreateDowntime.ts deleted file mode 100644 index 1ffc016a4688..000000000000 --- a/examples/v1/downtimes/CreateDowntime.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Schedule a downtime returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -const params: v1.DowntimesApiCreateDowntimeRequest = { - body: { - message: "Example-Downtime", - start: Math.round(new Date().getTime() / 1000), - end: Math.round( - new Date(new Date().getTime() + 1 * 3600 * 1000).getTime() / 1000 - ), - timezone: "Etc/UTC", - scope: ["test:exampledowntime"], - recurrence: { - type: "weeks", - period: 1, - weekDays: ["Mon", "Tue", "Wed", "Thu", "Fri"], - untilDate: Math.round( - new Date(new Date().getTime() + 21 * 86400 * 1000).getTime() / 1000 - ), - }, - notifyEndStates: ["alert", "no data", "warn"], - notifyEndTypes: ["canceled", "expired"], - }, -}; - -apiInstance - .createDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CreateDowntime_1393233946.ts b/examples/v1/downtimes/CreateDowntime_1393233946.ts deleted file mode 100644 index cafc854c0b56..000000000000 --- a/examples/v1/downtimes/CreateDowntime_1393233946.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Schedule a downtime with until occurrences - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -const params: v1.DowntimesApiCreateDowntimeRequest = { - body: { - message: "Example-Downtime", - recurrence: { - period: 1, - type: "weeks", - untilOccurrences: 3, - weekDays: ["Mon", "Tue", "Wed", "Thu", "Fri"], - }, - scope: ["*"], - start: Math.round(new Date().getTime() / 1000), - end: Math.round( - new Date(new Date().getTime() + 1 * 3600 * 1000).getTime() / 1000 - ), - timezone: "Etc/UTC", - monitorTags: ["tag0"], - }, -}; - -apiInstance - .createDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CreateDowntime_2908359488.ts b/examples/v1/downtimes/CreateDowntime_2908359488.ts deleted file mode 100644 index de746307b7d6..000000000000 --- a/examples/v1/downtimes/CreateDowntime_2908359488.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Schedule a downtime until date - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -const params: v1.DowntimesApiCreateDowntimeRequest = { - body: { - message: "Example-Downtime", - recurrence: { - period: 1, - type: "weeks", - untilDate: Math.round( - new Date(new Date().getTime() + 21 * 86400 * 1000).getTime() / 1000 - ), - weekDays: ["Mon", "Tue", "Wed", "Thu", "Fri"], - }, - scope: ["*"], - start: Math.round(new Date().getTime() / 1000), - end: Math.round( - new Date(new Date().getTime() + 1 * 3600 * 1000).getTime() / 1000 - ), - timezone: "Etc/UTC", - muteFirstRecoveryNotification: true, - monitorTags: ["tag0"], - notifyEndStates: ["alert"], - notifyEndTypes: ["canceled"], - }, -}; - -apiInstance - .createDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CreateDowntime_3059354445.ts b/examples/v1/downtimes/CreateDowntime_3059354445.ts deleted file mode 100644 index ab76773b7842..000000000000 --- a/examples/v1/downtimes/CreateDowntime_3059354445.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Schedule a downtime once a year - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -const params: v1.DowntimesApiCreateDowntimeRequest = { - body: { - message: "Example-Downtime", - recurrence: { - period: 1, - type: "years", - }, - scope: ["*"], - start: Math.round(new Date().getTime() / 1000), - end: Math.round( - new Date(new Date().getTime() + 1 * 3600 * 1000).getTime() / 1000 - ), - timezone: "Etc/UTC", - muteFirstRecoveryNotification: true, - monitorTags: ["tag0"], - notifyEndStates: ["alert", "warn"], - notifyEndTypes: ["expired"], - }, -}; - -apiInstance - .createDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/CreateDowntime_3355644446.ts b/examples/v1/downtimes/CreateDowntime_3355644446.ts deleted file mode 100644 index 426491255683..000000000000 --- a/examples/v1/downtimes/CreateDowntime_3355644446.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Schedule a monitor downtime returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.DowntimesApiCreateDowntimeRequest = { - body: { - message: "Example-Downtime", - start: Math.round(new Date().getTime() / 1000), - timezone: "Etc/UTC", - scope: ["test:exampledowntime"], - monitorId: MONITOR_ID, - }, -}; - -apiInstance - .createDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/GetDowntime.ts b/examples/v1/downtimes/GetDowntime.ts deleted file mode 100644 index 5c9ea0460c1c..000000000000 --- a/examples/v1/downtimes/GetDowntime.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a downtime returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -// there is a valid "downtime" in the system -const DOWNTIME_ID = parseInt(process.env.DOWNTIME_ID as string); - -const params: v1.DowntimesApiGetDowntimeRequest = { - downtimeId: DOWNTIME_ID, -}; - -apiInstance - .getDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/ListDowntimes.ts b/examples/v1/downtimes/ListDowntimes.ts deleted file mode 100644 index 6a6924a2435e..000000000000 --- a/examples/v1/downtimes/ListDowntimes.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all downtimes returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -const params: v1.DowntimesApiListDowntimesRequest = { - withCreator: true, -}; - -apiInstance - .listDowntimes(params) - .then((data: v1.Downtime[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/ListMonitorDowntimes.ts b/examples/v1/downtimes/ListMonitorDowntimes.ts deleted file mode 100644 index 68c5b6bdb0d8..000000000000 --- a/examples/v1/downtimes/ListMonitorDowntimes.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get active downtimes for a monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -const params: v1.DowntimesApiListMonitorDowntimesRequest = { - monitorId: 9223372036854775807, -}; - -apiInstance - .listMonitorDowntimes(params) - .then((data: v1.Downtime[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/downtimes/UpdateDowntime.ts b/examples/v1/downtimes/UpdateDowntime.ts deleted file mode 100644 index 29f63e310e5a..000000000000 --- a/examples/v1/downtimes/UpdateDowntime.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Update a downtime returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.DowntimesApi(configuration); - -// there is a valid "downtime" in the system -const DOWNTIME_ID = parseInt(process.env.DOWNTIME_ID as string); - -const params: v1.DowntimesApiUpdateDowntimeRequest = { - body: { - message: "Example-Downtime-updated", - muteFirstRecoveryNotification: true, - notifyEndStates: ["alert", "no data", "warn"], - notifyEndTypes: ["canceled", "expired"], - }, - downtimeId: DOWNTIME_ID, -}; - -apiInstance - .updateDowntime(params) - .then((data: v1.Downtime) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/events/CreateEvent.ts b/examples/v1/events/CreateEvent.ts deleted file mode 100644 index 9f33f5a27992..000000000000 --- a/examples/v1/events/CreateEvent.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Post an event returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.EventsApi(configuration); - -const params: v1.EventsApiCreateEventRequest = { - body: { - title: "Example-Event", - text: "A text message.", - tags: ["test:ExampleEvent"], - }, -}; - -apiInstance - .createEvent(params) - .then((data: v1.EventCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/events/CreateEvent_19927815.ts b/examples/v1/events/CreateEvent_19927815.ts deleted file mode 100644 index 825c32d9e8a1..000000000000 --- a/examples/v1/events/CreateEvent_19927815.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Post an event with a long title returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.EventsApi(configuration); - -const params: v1.EventsApiCreateEventRequest = { - body: { - title: - "Example-Event very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters", - text: "A text message.", - tags: ["test:ExampleEvent"], - }, -}; - -apiInstance - .createEvent(params) - .then((data: v1.EventCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/events/GetEvent.ts b/examples/v1/events/GetEvent.ts deleted file mode 100644 index ef13cc6ca365..000000000000 --- a/examples/v1/events/GetEvent.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an event returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.EventsApi(configuration); - -const params: v1.EventsApiGetEventRequest = { - eventId: 9223372036854775807, -}; - -apiInstance - .getEvent(params) - .then((data: v1.EventResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/events/ListEvents.ts b/examples/v1/events/ListEvents.ts deleted file mode 100644 index 9a40e393d221..000000000000 --- a/examples/v1/events/ListEvents.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a list of events returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.EventsApi(configuration); - -const params: v1.EventsApiListEventsRequest = { - start: 9223372036854775807, - end: 9223372036854775807, -}; - -apiInstance - .listEvents(params) - .then((data: v1.EventListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/gcp-integration/CreateGCPIntegration.ts b/examples/v1/gcp-integration/CreateGCPIntegration.ts deleted file mode 100644 index 2cbf16c87786..000000000000 --- a/examples/v1/gcp-integration/CreateGCPIntegration.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Create a GCP integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.GCPIntegrationApi(configuration); - -const params: v1.GCPIntegrationApiCreateGCPIntegrationRequest = { - body: { - authProviderX509CertUrl: "https://www.googleapis.com/oauth2/v1/certs", - authUri: "https://accounts.google.com/o/oauth2/auth", - clientEmail: "252bf553ef04b351@example.com", - clientId: "163662907116366290710", - clientX509CertUrl: - "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", - hostFilters: "key:value,filter:example", - cloudRunRevisionFilters: ["dr:dre"], - isCspmEnabled: true, - isSecurityCommandCenterEnabled: true, - isResourceChangeCollectionEnabled: true, - privateKey: "private_key", - privateKeyId: "123456789abcdefghi123456789abcdefghijklm", - projectId: "datadog-apitest", - resourceCollectionEnabled: true, - tokenUri: "https://accounts.google.com/o/oauth2/token", - type: "service_account", - }, -}; - -apiInstance - .createGCPIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/gcp-integration/DeleteGCPIntegration.ts b/examples/v1/gcp-integration/DeleteGCPIntegration.ts deleted file mode 100644 index 21442d6db208..000000000000 --- a/examples/v1/gcp-integration/DeleteGCPIntegration.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete a GCP integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.GCPIntegrationApi(configuration); - -const params: v1.GCPIntegrationApiDeleteGCPIntegrationRequest = { - body: { - clientEmail: "252bf553ef04b351@example.com", - clientId: "163662907116366290710", - projectId: "datadog-apitest", - }, -}; - -apiInstance - .deleteGCPIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/gcp-integration/ListGCPIntegration.ts b/examples/v1/gcp-integration/ListGCPIntegration.ts deleted file mode 100644 index 4ed558ed536f..000000000000 --- a/examples/v1/gcp-integration/ListGCPIntegration.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all GCP integrations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.GCPIntegrationApi(configuration); - -apiInstance - .listGCPIntegration() - .then((data: v1.GCPAccount[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/gcp-integration/UpdateGCPIntegration.ts b/examples/v1/gcp-integration/UpdateGCPIntegration.ts deleted file mode 100644 index c4770db7ec8c..000000000000 --- a/examples/v1/gcp-integration/UpdateGCPIntegration.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Update a GCP integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.GCPIntegrationApi(configuration); - -const params: v1.GCPIntegrationApiUpdateGCPIntegrationRequest = { - body: { - authProviderX509CertUrl: "https://www.googleapis.com/oauth2/v1/certs", - authUri: "https://accounts.google.com/o/oauth2/auth", - clientEmail: "252bf553ef04b351@example.com", - clientId: "163662907116366290710", - clientX509CertUrl: - "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", - hostFilters: "key:value,filter:example", - isCspmEnabled: true, - isSecurityCommandCenterEnabled: true, - isResourceChangeCollectionEnabled: true, - privateKey: "private_key", - privateKeyId: "123456789abcdefghi123456789abcdefghijklm", - projectId: "datadog-apitest", - resourceCollectionEnabled: true, - tokenUri: "https://accounts.google.com/o/oauth2/token", - type: "service_account", - }, -}; - -apiInstance - .updateGCPIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.ts b/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.ts deleted file mode 100644 index 0ec69fe191f9..000000000000 --- a/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Update a GCP integration cloud run revision filters returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.GCPIntegrationApi(configuration); - -const params: v1.GCPIntegrationApiUpdateGCPIntegrationRequest = { - body: { - authProviderX509CertUrl: "https://www.googleapis.com/oauth2/v1/certs", - authUri: "https://accounts.google.com/o/oauth2/auth", - clientEmail: "252bf553ef04b351@example.com", - clientId: "163662907116366290710", - clientX509CertUrl: - "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", - hostFilters: "key:value,filter:example", - cloudRunRevisionFilters: ["merp:derp"], - isCspmEnabled: true, - isSecurityCommandCenterEnabled: true, - isResourceChangeCollectionEnabled: true, - privateKey: "private_key", - privateKeyId: "123456789abcdefghi123456789abcdefghijklm", - projectId: "datadog-apitest", - resourceCollectionEnabled: true, - tokenUri: "https://accounts.google.com/o/oauth2/token", - type: "service_account", - }, -}; - -apiInstance - .updateGCPIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/hosts/GetHostTotals.ts b/examples/v1/hosts/GetHostTotals.ts deleted file mode 100644 index bb61d3bf7bcf..000000000000 --- a/examples/v1/hosts/GetHostTotals.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the total number of active hosts returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.HostsApi(configuration); - -apiInstance - .getHostTotals() - .then((data: v1.HostTotals) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/hosts/ListHosts.ts b/examples/v1/hosts/ListHosts.ts deleted file mode 100644 index a6366650a107..000000000000 --- a/examples/v1/hosts/ListHosts.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all hosts for your organization returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.HostsApi(configuration); - -const params: v1.HostsApiListHostsRequest = { - filter: "env:ci", -}; - -apiInstance - .listHosts(params) - .then((data: v1.HostListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/hosts/ListHosts_2975406675.ts b/examples/v1/hosts/ListHosts_2975406675.ts deleted file mode 100644 index 336ac5674b08..000000000000 --- a/examples/v1/hosts/ListHosts_2975406675.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all hosts with metadata for your organization returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.HostsApi(configuration); - -const params: v1.HostsApiListHostsRequest = { - includeHostsMetadata: true, -}; - -apiInstance - .listHosts(params) - .then((data: v1.HostListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/hosts/ListHosts_347346033.ts b/examples/v1/hosts/ListHosts_347346033.ts deleted file mode 100644 index 264dfada581f..000000000000 --- a/examples/v1/hosts/ListHosts_347346033.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all hosts with metadata deserializes successfully - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.HostsApi(configuration); - -const params: v1.HostsApiListHostsRequest = { - includeHostsMetadata: true, -}; - -apiInstance - .listHosts(params) - .then((data: v1.HostListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/hosts/MuteHost.ts b/examples/v1/hosts/MuteHost.ts deleted file mode 100644 index dbb381203f82..000000000000 --- a/examples/v1/hosts/MuteHost.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Mute a host returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.HostsApi(configuration); - -const params: v1.HostsApiMuteHostRequest = { - body: { - end: 1579098130, - message: "Muting this host for a test!", - override: false, - }, - hostName: "host_name", -}; - -apiInstance - .muteHost(params) - .then((data: v1.HostMuteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/hosts/UnmuteHost.ts b/examples/v1/hosts/UnmuteHost.ts deleted file mode 100644 index c57c72362c04..000000000000 --- a/examples/v1/hosts/UnmuteHost.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Unmute a host returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.HostsApi(configuration); - -const params: v1.HostsApiUnmuteHostRequest = { - hostName: "host_name", -}; - -apiInstance - .unmuteHost(params) - .then((data: v1.HostMuteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/ip-ranges/GetIPRanges.ts b/examples/v1/ip-ranges/GetIPRanges.ts deleted file mode 100644 index 8d5acb0527d1..000000000000 --- a/examples/v1/ip-ranges/GetIPRanges.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List IP Ranges returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.IPRangesApi(configuration); - -apiInstance - .getIPRanges() - .then((data: v1.IPRanges) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/CreateAPIKey.ts b/examples/v1/key-management/CreateAPIKey.ts deleted file mode 100644 index 01a7dd9f2e63..000000000000 --- a/examples/v1/key-management/CreateAPIKey.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Create an API key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiCreateAPIKeyRequest = { - body: { - name: "example user", - }, -}; - -apiInstance - .createAPIKey(params) - .then((data: v1.ApiKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/CreateApplicationKey.ts b/examples/v1/key-management/CreateApplicationKey.ts deleted file mode 100644 index 2c391f205878..000000000000 --- a/examples/v1/key-management/CreateApplicationKey.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Create an application key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiCreateApplicationKeyRequest = { - body: { - name: "example user", - }, -}; - -apiInstance - .createApplicationKey(params) - .then((data: v1.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/DeleteAPIKey.ts b/examples/v1/key-management/DeleteAPIKey.ts deleted file mode 100644 index 74754bf4d308..000000000000 --- a/examples/v1/key-management/DeleteAPIKey.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete an API key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiDeleteAPIKeyRequest = { - key: "key", -}; - -apiInstance - .deleteAPIKey(params) - .then((data: v1.ApiKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/DeleteApplicationKey.ts b/examples/v1/key-management/DeleteApplicationKey.ts deleted file mode 100644 index 0bae81b6e40b..000000000000 --- a/examples/v1/key-management/DeleteApplicationKey.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete an application key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiDeleteApplicationKeyRequest = { - key: "key", -}; - -apiInstance - .deleteApplicationKey(params) - .then((data: v1.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/GetAPIKey.ts b/examples/v1/key-management/GetAPIKey.ts deleted file mode 100644 index db0b96acfcef..000000000000 --- a/examples/v1/key-management/GetAPIKey.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get API key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiGetAPIKeyRequest = { - key: "key", -}; - -apiInstance - .getAPIKey(params) - .then((data: v1.ApiKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/GetApplicationKey.ts b/examples/v1/key-management/GetApplicationKey.ts deleted file mode 100644 index 9a462ded568f..000000000000 --- a/examples/v1/key-management/GetApplicationKey.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an application key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiGetApplicationKeyRequest = { - key: "key", -}; - -apiInstance - .getApplicationKey(params) - .then((data: v1.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/ListAPIKeys.ts b/examples/v1/key-management/ListAPIKeys.ts deleted file mode 100644 index 6c481da67e13..000000000000 --- a/examples/v1/key-management/ListAPIKeys.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all API keys returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -apiInstance - .listAPIKeys() - .then((data: v1.ApiKeyListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/ListApplicationKeys.ts b/examples/v1/key-management/ListApplicationKeys.ts deleted file mode 100644 index 1839636649bb..000000000000 --- a/examples/v1/key-management/ListApplicationKeys.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all application keys returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -apiInstance - .listApplicationKeys() - .then((data: v1.ApplicationKeyListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/UpdateAPIKey.ts b/examples/v1/key-management/UpdateAPIKey.ts deleted file mode 100644 index d61d8b0355cc..000000000000 --- a/examples/v1/key-management/UpdateAPIKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Edit an API key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiUpdateAPIKeyRequest = { - body: { - name: "example user", - }, - key: "key", -}; - -apiInstance - .updateAPIKey(params) - .then((data: v1.ApiKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/key-management/UpdateApplicationKey.ts b/examples/v1/key-management/UpdateApplicationKey.ts deleted file mode 100644 index 48476ac6648b..000000000000 --- a/examples/v1/key-management/UpdateApplicationKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Edit an application key returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.KeyManagementApi(configuration); - -const params: v1.KeyManagementApiUpdateApplicationKeyRequest = { - body: { - name: "example user", - }, - key: "key", -}; - -apiInstance - .updateApplicationKey(params) - .then((data: v1.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/CreateLogsIndex.ts b/examples/v1/logs-indexes/CreateLogsIndex.ts deleted file mode 100644 index f3da08f6645a..000000000000 --- a/examples/v1/logs-indexes/CreateLogsIndex.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Create an index returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -const params: v1.LogsIndexesApiCreateLogsIndexRequest = { - body: { - dailyLimit: 300000000, - dailyLimitReset: { - resetTime: "14:00", - resetUtcOffset: "+02:00", - }, - dailyLimitWarningThresholdPercentage: 70, - exclusionFilters: [ - { - filter: { - query: "*", - sampleRate: 1.0, - }, - name: "payment", - }, - ], - filter: { - query: "source:python", - }, - name: "main", - numFlexLogsRetentionDays: 360, - numRetentionDays: 15, - }, -}; - -apiInstance - .createLogsIndex(params) - .then((data: v1.LogsIndex) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/DeleteLogsIndex.ts b/examples/v1/logs-indexes/DeleteLogsIndex.ts deleted file mode 100644 index 65e9fdbd571c..000000000000 --- a/examples/v1/logs-indexes/DeleteLogsIndex.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete an index returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -const params: v1.LogsIndexesApiDeleteLogsIndexRequest = { - name: "name", -}; - -apiInstance - .deleteLogsIndex(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/GetLogsIndex.ts b/examples/v1/logs-indexes/GetLogsIndex.ts deleted file mode 100644 index 7092f15e4053..000000000000 --- a/examples/v1/logs-indexes/GetLogsIndex.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an index returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -const params: v1.LogsIndexesApiGetLogsIndexRequest = { - name: "name", -}; - -apiInstance - .getLogsIndex(params) - .then((data: v1.LogsIndex) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/GetLogsIndexOrder.ts b/examples/v1/logs-indexes/GetLogsIndexOrder.ts deleted file mode 100644 index 223a4ec8739b..000000000000 --- a/examples/v1/logs-indexes/GetLogsIndexOrder.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get indexes order returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -apiInstance - .getLogsIndexOrder() - .then((data: v1.LogsIndexesOrder) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/ListLogIndexes.ts b/examples/v1/logs-indexes/ListLogIndexes.ts deleted file mode 100644 index 1b51c588b968..000000000000 --- a/examples/v1/logs-indexes/ListLogIndexes.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all indexes returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -apiInstance - .listLogIndexes() - .then((data: v1.LogsIndexListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/UpdateLogsIndex.ts b/examples/v1/logs-indexes/UpdateLogsIndex.ts deleted file mode 100644 index 4c429dc47ef1..000000000000 --- a/examples/v1/logs-indexes/UpdateLogsIndex.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Update an index returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -const params: v1.LogsIndexesApiUpdateLogsIndexRequest = { - body: { - dailyLimit: 300000000, - dailyLimitReset: { - resetTime: "14:00", - resetUtcOffset: "+02:00", - }, - dailyLimitWarningThresholdPercentage: 70, - disableDailyLimit: false, - exclusionFilters: [ - { - filter: { - query: "*", - sampleRate: 1.0, - }, - name: "payment", - }, - ], - filter: { - query: "source:python", - }, - numFlexLogsRetentionDays: 360, - numRetentionDays: 15, - }, - name: "name", -}; - -apiInstance - .updateLogsIndex(params) - .then((data: v1.LogsIndex) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-indexes/UpdateLogsIndexOrder.ts b/examples/v1/logs-indexes/UpdateLogsIndexOrder.ts deleted file mode 100644 index b3a5b39ad68f..000000000000 --- a/examples/v1/logs-indexes/UpdateLogsIndexOrder.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Update indexes order returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsIndexesApi(configuration); - -const params: v1.LogsIndexesApiUpdateLogsIndexOrderRequest = { - body: { - indexNames: ["main", "payments", "web"], - }, -}; - -apiInstance - .updateLogsIndexOrder(params) - .then((data: v1.LogsIndexesOrder) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline.ts b/examples/v1/logs-pipelines/CreateLogsPipeline.ts deleted file mode 100644 index f61a47f79a1b..000000000000 --- a/examples/v1/logs-pipelines/CreateLogsPipeline.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Create a pipeline returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -const params: v1.LogsPipelinesApiCreateLogsPipelineRequest = { - body: { - filter: { - query: "source:python", - }, - name: "", - processors: [ - { - grok: { - matchRules: "rule_name_1 foo\nrule_name_2 bar\n", - supportRules: "rule_name_1 foo\nrule_name_2 bar\n", - }, - isEnabled: false, - samples: [], - source: "message", - type: "grok-parser", - }, - ], - tags: [], - }, -}; - -apiInstance - .createLogsPipeline(params) - .then((data: v1.LogsPipeline) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.ts b/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.ts deleted file mode 100644 index 77b7361639f7..000000000000 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Create a pipeline with Span Id Remapper returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -const params: v1.LogsPipelinesApiCreateLogsPipelineRequest = { - body: { - filter: { - query: "source:python", - }, - name: "testPipeline", - processors: [ - { - type: "span-id-remapper", - isEnabled: true, - name: "test_filter", - sources: ["dd.span_id"], - }, - ], - tags: [], - }, -}; - -apiInstance - .createLogsPipeline(params) - .then((data: v1.LogsPipeline) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/DeleteLogsPipeline.ts b/examples/v1/logs-pipelines/DeleteLogsPipeline.ts deleted file mode 100644 index 6ef4cceaee83..000000000000 --- a/examples/v1/logs-pipelines/DeleteLogsPipeline.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a pipeline returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -const params: v1.LogsPipelinesApiDeleteLogsPipelineRequest = { - pipelineId: "pipeline_id", -}; - -apiInstance - .deleteLogsPipeline(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/GetLogsPipeline.ts b/examples/v1/logs-pipelines/GetLogsPipeline.ts deleted file mode 100644 index f3eb3a4b51a3..000000000000 --- a/examples/v1/logs-pipelines/GetLogsPipeline.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a pipeline returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -const params: v1.LogsPipelinesApiGetLogsPipelineRequest = { - pipelineId: "pipeline_id", -}; - -apiInstance - .getLogsPipeline(params) - .then((data: v1.LogsPipeline) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/GetLogsPipelineOrder.ts b/examples/v1/logs-pipelines/GetLogsPipelineOrder.ts deleted file mode 100644 index 5e3c0d6b660d..000000000000 --- a/examples/v1/logs-pipelines/GetLogsPipelineOrder.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get pipeline order returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -apiInstance - .getLogsPipelineOrder() - .then((data: v1.LogsPipelinesOrder) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/ListLogsPipelines.ts b/examples/v1/logs-pipelines/ListLogsPipelines.ts deleted file mode 100644 index 1ed465bfa6d6..000000000000 --- a/examples/v1/logs-pipelines/ListLogsPipelines.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all pipelines returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -apiInstance - .listLogsPipelines() - .then((data: v1.LogsPipeline[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/UpdateLogsPipeline.ts b/examples/v1/logs-pipelines/UpdateLogsPipeline.ts deleted file mode 100644 index 3605ecd66513..000000000000 --- a/examples/v1/logs-pipelines/UpdateLogsPipeline.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Update a pipeline returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -const params: v1.LogsPipelinesApiUpdateLogsPipelineRequest = { - body: { - filter: { - query: "source:python", - }, - name: "", - processors: [ - { - grok: { - matchRules: "rule_name_1 foo\nrule_name_2 bar\n", - supportRules: "rule_name_1 foo\nrule_name_2 bar\n", - }, - isEnabled: false, - samples: [], - source: "message", - type: "grok-parser", - }, - ], - tags: [], - }, - pipelineId: "pipeline_id", -}; - -apiInstance - .updateLogsPipeline(params) - .then((data: v1.LogsPipeline) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.ts b/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.ts deleted file mode 100644 index 7b38eb347a65..000000000000 --- a/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Update pipeline order returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsPipelinesApi(configuration); - -const params: v1.LogsPipelinesApiUpdateLogsPipelineOrderRequest = { - body: { - pipelineIds: ["tags", "org_ids", "products"], - }, -}; - -apiInstance - .updateLogsPipelineOrder(params) - .then((data: v1.LogsPipelinesOrder) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs/ListLogs.ts b/examples/v1/logs/ListLogs.ts deleted file mode 100644 index af187b00d6a0..000000000000 --- a/examples/v1/logs/ListLogs.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Search logs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsApi(configuration); - -const params: v1.LogsApiListLogsRequest = { - body: { - index: "retention-3,retention-15", - query: "service:web* AND @http.status_code:[200 TO 299]", - sort: "asc", - time: { - from: new Date(2020, 2, 2, 2, 2, 2, 202000), - to: new Date(2020, 2, 20, 2, 2, 2, 202000), - }, - }, -}; - -apiInstance - .listLogs(params) - .then((data: v1.LogsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs/ListLogs_235998668.ts b/examples/v1/logs/ListLogs_235998668.ts deleted file mode 100644 index eef5c7e12ce9..000000000000 --- a/examples/v1/logs/ListLogs_235998668.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Search test logs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsApi(configuration); - -const params: v1.LogsApiListLogsRequest = { - body: { - index: "main", - query: "host:Test*", - sort: "asc", - time: { - from: new Date(new Date().getTime() + -1 * 3600 * 1000), - timezone: "Europe/Paris", - to: new Date(), - }, - }, -}; - -apiInstance - .listLogs(params) - .then((data: v1.LogsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs/SubmitLog.ts b/examples/v1/logs/SubmitLog.ts deleted file mode 100644 index 84f6b4cb4c27..000000000000 --- a/examples/v1/logs/SubmitLog.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Send logs returns "Response from server (always 200 empty JSON)." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsApi(configuration); - -const params: v1.LogsApiSubmitLogRequest = { - body: [ - { - message: "Example-Log", - ddtags: "host:ExampleLog", - }, - ], -}; - -apiInstance - .submitLog(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs/SubmitLog_1920474053.ts b/examples/v1/logs/SubmitLog_1920474053.ts deleted file mode 100644 index e70af6067d65..000000000000 --- a/examples/v1/logs/SubmitLog_1920474053.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Send gzip logs returns "Response from server (always 200 empty JSON)." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsApi(configuration); - -const params: v1.LogsApiSubmitLogRequest = { - body: [ - { - message: "Example-Log", - ddtags: "host:ExampleLog", - }, - ], - contentEncoding: "gzip", -}; - -apiInstance - .submitLog(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/logs/SubmitLog_3418823904.ts b/examples/v1/logs/SubmitLog_3418823904.ts deleted file mode 100644 index 62edfe176b83..000000000000 --- a/examples/v1/logs/SubmitLog_3418823904.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Send deflate logs returns "Response from server (always 200 empty JSON)." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.LogsApi(configuration); - -const params: v1.LogsApiSubmitLogRequest = { - body: [ - { - message: "Example-Log", - ddtags: "host:ExampleLog", - }, - ], - contentEncoding: "deflate", -}; - -apiInstance - .submitLog(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/GetMetricMetadata.ts b/examples/v1/metrics/GetMetricMetadata.ts deleted file mode 100644 index 1ce354c96330..000000000000 --- a/examples/v1/metrics/GetMetricMetadata.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get metric metadata returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiGetMetricMetadataRequest = { - metricName: "metric_name", -}; - -apiInstance - .getMetricMetadata(params) - .then((data: v1.MetricMetadata) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/ListActiveMetrics.ts b/examples/v1/metrics/ListActiveMetrics.ts deleted file mode 100644 index 91995e2e8fb7..000000000000 --- a/examples/v1/metrics/ListActiveMetrics.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get active metrics list returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiListActiveMetricsRequest = { - from: 9223372036854775807, -}; - -apiInstance - .listActiveMetrics(params) - .then((data: v1.MetricsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/ListMetrics.ts b/examples/v1/metrics/ListMetrics.ts deleted file mode 100644 index 8994abc136d9..000000000000 --- a/examples/v1/metrics/ListMetrics.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Search metrics returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiListMetricsRequest = { - q: "q", -}; - -apiInstance - .listMetrics(params) - .then((data: v1.MetricSearchResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/QueryMetrics.ts b/examples/v1/metrics/QueryMetrics.ts deleted file mode 100644 index a22f705c3b09..000000000000 --- a/examples/v1/metrics/QueryMetrics.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Query timeseries points returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiQueryMetricsRequest = { - from: Math.round( - new Date(new Date().getTime() + -1 * 86400 * 1000).getTime() / 1000 - ), - to: Math.round(new Date().getTime() / 1000), - query: "system.cpu.idle{*}", -}; - -apiInstance - .queryMetrics(params) - .then((data: v1.MetricsQueryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/SubmitDistributionPoints.ts b/examples/v1/metrics/SubmitDistributionPoints.ts deleted file mode 100644 index 651221ba9f9e..000000000000 --- a/examples/v1/metrics/SubmitDistributionPoints.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Submit distribution points returns "Payload accepted" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiSubmitDistributionPointsRequest = { - body: { - series: [ - { - metric: "system.load.1.dist", - points: [[Math.round(new Date().getTime() / 1000), [1.0, 2.0]]], - }, - ], - }, -}; - -apiInstance - .submitDistributionPoints(params) - .then((data: v1.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/SubmitDistributionPoints_3109558960.ts b/examples/v1/metrics/SubmitDistributionPoints_3109558960.ts deleted file mode 100644 index 9f268e797d38..000000000000 --- a/examples/v1/metrics/SubmitDistributionPoints_3109558960.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Submit deflate distribution points returns "Payload accepted" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiSubmitDistributionPointsRequest = { - body: { - series: [ - { - metric: "system.load.1.dist", - points: [[Math.round(new Date().getTime() / 1000), [1.0, 2.0]]], - }, - ], - }, - contentEncoding: "deflate", -}; - -apiInstance - .submitDistributionPoints(params) - .then((data: v1.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/SubmitMetrics.ts b/examples/v1/metrics/SubmitMetrics.ts deleted file mode 100644 index 3c70e209ed47..000000000000 --- a/examples/v1/metrics/SubmitMetrics.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Submit metrics returns "Payload accepted" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiSubmitMetricsRequest = { - body: { - series: [ - { - metric: "system.load.1", - type: "gauge", - points: [[Math.round(new Date().getTime() / 1000), 1.1]], - tags: ["test:ExampleMetric"], - }, - ], - }, -}; - -apiInstance - .submitMetrics(params) - .then((data: v1.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/SubmitMetrics_2203981258.ts b/examples/v1/metrics/SubmitMetrics_2203981258.ts deleted file mode 100644 index 73a206b146bd..000000000000 --- a/examples/v1/metrics/SubmitMetrics_2203981258.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Submit deflate metrics returns "Payload accepted" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiSubmitMetricsRequest = { - body: { - series: [ - { - metric: "system.load.1", - type: "gauge", - points: [[Math.round(new Date().getTime() / 1000), 1.1]], - tags: ["test:ExampleMetric"], - }, - ], - }, - contentEncoding: "deflate", -}; - -apiInstance - .submitMetrics(params) - .then((data: v1.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/metrics/UpdateMetricMetadata.ts b/examples/v1/metrics/UpdateMetricMetadata.ts deleted file mode 100644 index aaecc652a990..000000000000 --- a/examples/v1/metrics/UpdateMetricMetadata.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Edit metric metadata returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MetricsApi(configuration); - -const params: v1.MetricsApiUpdateMetricMetadataRequest = { - body: { - perUnit: "second", - type: "count", - unit: "byte", - }, - metricName: "metric_name", -}; - -apiInstance - .updateMetricMetadata(params) - .then((data: v1.MetricMetadata) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CheckCanDeleteMonitor.ts b/examples/v1/monitors/CheckCanDeleteMonitor.ts deleted file mode 100644 index 36b2ae0704bc..000000000000 --- a/examples/v1/monitors/CheckCanDeleteMonitor.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Check if a monitor can be deleted returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.MonitorsApiCheckCanDeleteMonitorRequest = { - monitorIds: [MONITOR_ID], -}; - -apiInstance - .checkCanDeleteMonitor(params) - .then((data: v1.CheckCanDeleteMonitorResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor.ts b/examples/v1/monitors/CreateMonitor.ts deleted file mode 100644 index 8c17163c8e43..000000000000 --- a/examples/v1/monitors/CreateMonitor.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create a monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "log alert", - query: `logs("service:foo AND type:error").index("main").rollup("count").by("source").last("5m") > 2`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - restrictedRoles: [ROLE_DATA_ID], - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_1303514967.ts b/examples/v1/monitors/CreateMonitor_1303514967.ts deleted file mode 100644 index 8fbb10f3aed5..000000000000 --- a/examples/v1/monitors/CreateMonitor_1303514967.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Create a Cost Monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example Monitor", - type: "cost alert", - query: `formula("exclude_null(query1)").last("7d").anomaly(direction="above", threshold=10) >= 5`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 5, - warning: 3, - }, - variables: [ - { - dataSource: "cloud_cost", - query: - "sum:aws.cost.net.amortized.shared.resources.allocated{aws_product IN (amplify ,athena, backup, bedrock ) } by {aws_product}.rollup(sum, 86400)", - name: "query1", - aggregator: "sum", - }, - ], - includeTags: true, - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_1539578087.ts b/examples/v1/monitors/CreateMonitor_1539578087.ts deleted file mode 100644 index f02c59d9f933..000000000000 --- a/examples/v1/monitors/CreateMonitor_1539578087.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Create a metric monitor with a custom schedule returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - message: "some message Notify: @hipchat-channel", - name: "Example-Monitor", - query: "avg(current_1mo):avg:system.load.5{*} > 0.5", - tags: [], - options: { - thresholds: { - critical: 0.5, - }, - notifyAudit: false, - includeTags: false, - schedulingOptions: { - evaluationWindow: { - dayStarts: "04:00", - monthStarts: 1, - }, - customSchedule: { - recurrences: [ - { - rrule: "FREQ=DAILY;INTERVAL=1", - timezone: "America/Los_Angeles", - start: "2024-10-26T09:13:00", - }, - ], - }, - }, - }, - type: "query alert", - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_1969035628.ts b/examples/v1/monitors/CreateMonitor_1969035628.ts deleted file mode 100644 index 0fa989fff9db..000000000000 --- a/examples/v1/monitors/CreateMonitor_1969035628.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a ci-tests formula and functions monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "ci-tests alert", - query: `formula("query1 / query2 * 100").last("15m") >= 0.8`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 0.8, - }, - variables: [ - { - dataSource: "ci_tests", - name: "query1", - search: { - query: "@test.status:fail", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - { - dataSource: "ci_tests", - name: "query2", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_2012680290.ts b/examples/v1/monitors/CreateMonitor_2012680290.ts deleted file mode 100644 index bd78d94f68f6..000000000000 --- a/examples/v1/monitors/CreateMonitor_2012680290.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Create a metric monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "metric alert", - query: "avg(current_1mo):avg:system.load.5{*} > 0.5", - message: "some message Notify: @hipchat-channel", - options: { - thresholds: { - critical: 0.5, - }, - schedulingOptions: { - evaluationWindow: { - dayStarts: "04:00", - monthStarts: 1, - }, - }, - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_2520912138.ts b/examples/v1/monitors/CreateMonitor_2520912138.ts deleted file mode 100644 index ced383c29984..000000000000 --- a/examples/v1/monitors/CreateMonitor_2520912138.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create a ci-tests monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "ci-tests alert", - query: `ci-tests("type:test @git.branch:staging* @test.status:fail").rollup("count").by("@test.name").last("5m") >= 1`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 1, - }, - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_3790803616.ts b/examples/v1/monitors/CreateMonitor_3790803616.ts deleted file mode 100644 index 5abb0d16005f..000000000000 --- a/examples/v1/monitors/CreateMonitor_3790803616.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create a ci-pipelines monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "ci-pipelines alert", - query: `ci-pipelines("ci_level:pipeline @git.branch:staging* @ci.status:error").rollup("count").by("@git.branch,@ci.pipeline.name").last("5m") >= 1`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 1, - }, - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_3824294658.ts b/examples/v1/monitors/CreateMonitor_3824294658.ts deleted file mode 100644 index 70878b9d652a..000000000000 --- a/examples/v1/monitors/CreateMonitor_3824294658.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a ci-pipelines formula and functions monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "ci-pipelines alert", - query: `formula("query1 / query2 * 100").last("15m") >= 0.8`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 0.8, - }, - variables: [ - { - dataSource: "ci_pipelines", - name: "query1", - search: { - query: "@ci.status:error", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - { - dataSource: "ci_pipelines", - name: "query2", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_3883669300.ts b/examples/v1/monitors/CreateMonitor_3883669300.ts deleted file mode 100644 index 13801e9a3cc3..000000000000 --- a/examples/v1/monitors/CreateMonitor_3883669300.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a RUM formula and functions monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "rum alert", - query: `formula("query2 / query1 * 100").last("15m") >= 0.8`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 0.8, - }, - variables: [ - { - dataSource: "rum", - name: "query2", - search: { - query: "", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - { - dataSource: "rum", - name: "query1", - search: { - query: "status:error", - }, - indexes: ["*"], - compute: { - aggregation: "count", - }, - groupBy: [], - }, - ], - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/CreateMonitor_440013737.ts b/examples/v1/monitors/CreateMonitor_440013737.ts deleted file mode 100644 index dc0712754e27..000000000000 --- a/examples/v1/monitors/CreateMonitor_440013737.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create an Error Tracking monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiCreateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "error-tracking alert", - query: `error-tracking-rum("service:foo AND @error.source:source").rollup("count").by("@issue.id").last("1h") >= 1`, - message: "some message", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - thresholds: { - critical: 1, - }, - }, - }, -}; - -apiInstance - .createMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/DeleteMonitor.ts b/examples/v1/monitors/DeleteMonitor.ts deleted file mode 100644 index 4f05ac6c7f29..000000000000 --- a/examples/v1/monitors/DeleteMonitor.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.MonitorsApiDeleteMonitorRequest = { - monitorId: MONITOR_ID, -}; - -apiInstance - .deleteMonitor(params) - .then((data: v1.DeletedMonitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/GetMonitor.ts b/examples/v1/monitors/GetMonitor.ts deleted file mode 100644 index 8d4e4fa4d29d..000000000000 --- a/examples/v1/monitors/GetMonitor.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a monitor's details returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.MonitorsApiGetMonitorRequest = { - monitorId: MONITOR_ID, - withDowntimes: true, -}; - -apiInstance - .getMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/GetMonitor_2200114573.ts b/examples/v1/monitors/GetMonitor_2200114573.ts deleted file mode 100644 index a221e1268a7b..000000000000 --- a/examples/v1/monitors/GetMonitor_2200114573.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a monitor's details with downtime returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.MonitorsApiGetMonitorRequest = { - monitorId: MONITOR_ID, - withDowntimes: true, -}; - -apiInstance - .getMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/GetMonitor_3691711704.ts b/examples/v1/monitors/GetMonitor_3691711704.ts deleted file mode 100644 index 7710756adbdc..000000000000 --- a/examples/v1/monitors/GetMonitor_3691711704.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get a synthetics monitor's details - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "synthetics_api_test" in the system -const SYNTHETICS_API_TEST_MONITOR_ID = parseInt( - process.env.SYNTHETICS_API_TEST_MONITOR_ID as string -); - -const params: v1.MonitorsApiGetMonitorRequest = { - monitorId: SYNTHETICS_API_TEST_MONITOR_ID, -}; - -apiInstance - .getMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/ListMonitors.ts b/examples/v1/monitors/ListMonitors.ts deleted file mode 100644 index 27178949cc59..000000000000 --- a/examples/v1/monitors/ListMonitors.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all monitors returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -apiInstance - .listMonitors() - .then((data: v1.Monitor[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/ListMonitors_2154432960.ts b/examples/v1/monitors/ListMonitors_2154432960.ts deleted file mode 100644 index e7fd9e93318b..000000000000 --- a/examples/v1/monitors/ListMonitors_2154432960.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all monitors with tags - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiListMonitorsRequest = { - tags: "test:examplemonitor", - pageSize: 1, -}; - -apiInstance - .listMonitors(params) - .then((data: v1.Monitor[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/ListMonitors_463213563.ts b/examples/v1/monitors/ListMonitors_463213563.ts deleted file mode 100644 index 6a8919a3c3fb..000000000000 --- a/examples/v1/monitors/ListMonitors_463213563.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all monitors returns "OK" response with pagination - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiListMonitorsRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listMonitorsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v1/monitors/SearchMonitorGroups.ts b/examples/v1/monitors/SearchMonitorGroups.ts deleted file mode 100644 index 92e0980ca377..000000000000 --- a/examples/v1/monitors/SearchMonitorGroups.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Monitors group search returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -apiInstance - .searchMonitorGroups() - .then((data: v1.MonitorGroupSearchResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/SearchMonitors.ts b/examples/v1/monitors/SearchMonitors.ts deleted file mode 100644 index 17f03894e80d..000000000000 --- a/examples/v1/monitors/SearchMonitors.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Monitors search returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -apiInstance - .searchMonitors() - .then((data: v1.MonitorSearchResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/UpdateMonitor.ts b/examples/v1/monitors/UpdateMonitor.ts deleted file mode 100644 index 8020c45430fc..000000000000 --- a/examples/v1/monitors/UpdateMonitor.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Edit a monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.MonitorsApiUpdateMonitorRequest = { - body: { - name: "My monitor-updated", - priority: undefined, - options: { - evaluationDelay: undefined, - newGroupDelay: 600, - newHostDelay: undefined, - renotifyInterval: undefined, - thresholds: { - critical: 2, - warning: undefined, - }, - timeoutH: undefined, - }, - }, - monitorId: MONITOR_ID, -}; - -apiInstance - .updateMonitor(params) - .then((data: v1.Monitor) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/ValidateExistingMonitor.ts b/examples/v1/monitors/ValidateExistingMonitor.ts deleted file mode 100644 index 2539fb4ab0eb..000000000000 --- a/examples/v1/monitors/ValidateExistingMonitor.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Validate an existing monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -// there is a valid "monitor" in the system -const MONITOR_ID = parseInt(process.env.MONITOR_ID as string); - -const params: v1.MonitorsApiValidateExistingMonitorRequest = { - body: { - name: "Example-Monitor", - type: "log alert", - query: `logs("service:foo AND type:error").index("main").rollup("count").by("source").last("5m") > 2`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - enableLogsSample: true, - escalationMessage: "the situation has escalated", - evaluationDelay: 700, - includeTags: true, - locked: false, - newHostDelay: 600, - noDataTimeframe: undefined, - notifyAudit: false, - notifyNoData: false, - onMissingData: "show_and_notify_no_data", - notificationPresetName: "hide_handles", - renotifyInterval: 60, - requireFullWindow: true, - timeoutH: 24, - thresholds: { - critical: 2, - warning: 1, - }, - }, - }, - monitorId: MONITOR_ID, -}; - -apiInstance - .validateExistingMonitor(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/ValidateMonitor.ts b/examples/v1/monitors/ValidateMonitor.ts deleted file mode 100644 index c01776d79b7b..000000000000 --- a/examples/v1/monitors/ValidateMonitor.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Validate a monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiValidateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "log alert", - query: `logs("service:foo AND type:error").index("main").rollup("count").by("source").last("5m") > 2`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - enableLogsSample: true, - escalationMessage: "the situation has escalated", - evaluationDelay: 700, - includeTags: true, - locked: false, - newHostDelay: 600, - noDataTimeframe: undefined, - notifyAudit: false, - notifyNoData: false, - onMissingData: "show_and_notify_no_data", - notificationPresetName: "hide_handles", - renotifyInterval: 60, - requireFullWindow: true, - timeoutH: 24, - thresholds: { - critical: 2, - warning: 1, - }, - }, - }, -}; - -apiInstance - .validateMonitor(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/monitors/ValidateMonitor_4247196452.ts b/examples/v1/monitors/ValidateMonitor_4247196452.ts deleted file mode 100644 index 068714c3e194..000000000000 --- a/examples/v1/monitors/ValidateMonitor_4247196452.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Validate a multi-alert monitor returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.MonitorsApi(configuration); - -const params: v1.MonitorsApiValidateMonitorRequest = { - body: { - name: "Example-Monitor", - type: "log alert", - query: `logs("service:foo AND type:error").index("main").rollup("count").by("source,status").last("5m") > 2`, - message: "some message Notify: @hipchat-channel", - tags: ["test:examplemonitor", "env:ci"], - priority: 3, - options: { - enableLogsSample: true, - escalationMessage: "the situation has escalated", - evaluationDelay: 700, - groupRetentionDuration: "2d", - includeTags: true, - locked: false, - newHostDelay: 600, - noDataTimeframe: undefined, - notifyAudit: false, - notifyBy: ["status"], - notifyNoData: false, - onMissingData: "show_and_notify_no_data", - renotifyInterval: 60, - requireFullWindow: true, - timeoutH: 24, - thresholds: { - critical: 2, - warning: 1, - }, - }, - }, -}; - -apiInstance - .validateMonitor(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/notebooks/CreateNotebook.ts b/examples/v1/notebooks/CreateNotebook.ts deleted file mode 100644 index 0e50bdc199fc..000000000000 --- a/examples/v1/notebooks/CreateNotebook.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Create a notebook returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.NotebooksApi(configuration); - -const params: v1.NotebooksApiCreateNotebookRequest = { - body: { - data: { - attributes: { - cells: [ - { - attributes: { - definition: { - text: - `## Some test markdown - -` + - "```" + - `js -var x, y; -x = 5; -y = 6; -` + - "```", - type: "markdown", - }, - }, - type: "notebook_cells", - }, - { - attributes: { - definition: { - requests: [ - { - displayType: "line", - q: "avg:system.load.1{*}", - style: { - lineType: "solid", - lineWidth: "normal", - palette: "dog_classic", - }, - }, - ], - showLegend: true, - type: "timeseries", - yaxis: { - scale: "linear", - }, - }, - graphSize: "m", - splitBy: { - keys: [], - tags: [], - }, - time: undefined, - }, - type: "notebook_cells", - }, - ], - name: "Example-Notebook", - status: "published", - time: { - liveSpan: "1h", - }, - }, - type: "notebooks", - }, - }, -}; - -apiInstance - .createNotebook(params) - .then((data: v1.NotebookResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/notebooks/DeleteNotebook.ts b/examples/v1/notebooks/DeleteNotebook.ts deleted file mode 100644 index 943273a9e26f..000000000000 --- a/examples/v1/notebooks/DeleteNotebook.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a notebook returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.NotebooksApi(configuration); - -// there is a valid "notebook" in the system -const NOTEBOOK_DATA_ID = parseInt(process.env.NOTEBOOK_DATA_ID as string); - -const params: v1.NotebooksApiDeleteNotebookRequest = { - notebookId: NOTEBOOK_DATA_ID, -}; - -apiInstance - .deleteNotebook(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/notebooks/GetNotebook.ts b/examples/v1/notebooks/GetNotebook.ts deleted file mode 100644 index 7ce18cbcba28..000000000000 --- a/examples/v1/notebooks/GetNotebook.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a notebook returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.NotebooksApi(configuration); - -// there is a valid "notebook" in the system -const NOTEBOOK_DATA_ID = parseInt(process.env.NOTEBOOK_DATA_ID as string); - -const params: v1.NotebooksApiGetNotebookRequest = { - notebookId: NOTEBOOK_DATA_ID, -}; - -apiInstance - .getNotebook(params) - .then((data: v1.NotebookResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/notebooks/ListNotebooks.ts b/examples/v1/notebooks/ListNotebooks.ts deleted file mode 100644 index d6475240ee12..000000000000 --- a/examples/v1/notebooks/ListNotebooks.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all notebooks returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.NotebooksApi(configuration); - -apiInstance - .listNotebooks() - .then((data: v1.NotebooksResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/notebooks/ListNotebooks_788665428.ts b/examples/v1/notebooks/ListNotebooks_788665428.ts deleted file mode 100644 index 670c6ecaacad..000000000000 --- a/examples/v1/notebooks/ListNotebooks_788665428.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all notebooks returns "OK" response with pagination - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.NotebooksApi(configuration); - -const params: v1.NotebooksApiListNotebooksRequest = { - count: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listNotebooksWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v1/notebooks/UpdateNotebook.ts b/examples/v1/notebooks/UpdateNotebook.ts deleted file mode 100644 index 2519d271a62e..000000000000 --- a/examples/v1/notebooks/UpdateNotebook.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Update a notebook returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.NotebooksApi(configuration); - -// there is a valid "notebook" in the system -const NOTEBOOK_DATA_ID = parseInt(process.env.NOTEBOOK_DATA_ID as string); - -const params: v1.NotebooksApiUpdateNotebookRequest = { - body: { - data: { - attributes: { - cells: [ - { - attributes: { - definition: { - text: - `## Some test markdown - -` + - "```" + - `js -var x, y; -x = 5; -y = 6; -` + - "```", - type: "markdown", - }, - }, - type: "notebook_cells", - }, - { - attributes: { - definition: { - requests: [ - { - displayType: "line", - q: "avg:system.load.1{*}", - style: { - lineType: "solid", - lineWidth: "normal", - palette: "dog_classic", - }, - }, - ], - showLegend: true, - type: "timeseries", - yaxis: { - scale: "linear", - }, - }, - graphSize: "m", - splitBy: { - keys: [], - tags: [], - }, - time: undefined, - }, - type: "notebook_cells", - }, - ], - name: "Example-Notebook-updated", - status: "published", - time: { - liveSpan: "1h", - }, - }, - type: "notebooks", - }, - }, - notebookId: NOTEBOOK_DATA_ID, -}; - -apiInstance - .updateNotebook(params) - .then((data: v1.NotebookResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/organizations/CreateChildOrg.ts b/examples/v1/organizations/CreateChildOrg.ts deleted file mode 100644 index 8dc776b7a613..000000000000 --- a/examples/v1/organizations/CreateChildOrg.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Create a child organization returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.OrganizationsApi(configuration); - -const params: v1.OrganizationsApiCreateChildOrgRequest = { - body: { - billing: { - type: "parent_billing", - }, - name: "New child org", - subscription: { - type: "pro", - }, - }, -}; - -apiInstance - .createChildOrg(params) - .then((data: v1.OrganizationCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/organizations/DowngradeOrg.ts b/examples/v1/organizations/DowngradeOrg.ts deleted file mode 100644 index 22fe867bd644..000000000000 --- a/examples/v1/organizations/DowngradeOrg.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Spin-off Child Organization returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.OrganizationsApi(configuration); - -const params: v1.OrganizationsApiDowngradeOrgRequest = { - publicId: "abc123", -}; - -apiInstance - .downgradeOrg(params) - .then((data: v1.OrgDowngradedResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/organizations/GetOrg.ts b/examples/v1/organizations/GetOrg.ts deleted file mode 100644 index 90adf02a7eb7..000000000000 --- a/examples/v1/organizations/GetOrg.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get organization information returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.OrganizationsApi(configuration); - -const params: v1.OrganizationsApiGetOrgRequest = { - publicId: "abc123", -}; - -apiInstance - .getOrg(params) - .then((data: v1.OrganizationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/organizations/ListOrgs.ts b/examples/v1/organizations/ListOrgs.ts deleted file mode 100644 index d8f7ebe765db..000000000000 --- a/examples/v1/organizations/ListOrgs.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List your managed organizations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.OrganizationsApi(configuration); - -apiInstance - .listOrgs() - .then((data: v1.OrganizationListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/organizations/UpdateOrg.ts b/examples/v1/organizations/UpdateOrg.ts deleted file mode 100644 index 23705a4966a6..000000000000 --- a/examples/v1/organizations/UpdateOrg.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Update your organization returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.OrganizationsApi(configuration); - -const params: v1.OrganizationsApiUpdateOrgRequest = { - body: { - billing: { - type: "parent_billing", - }, - description: "some description", - name: "New child org", - publicId: "abcdef12345", - settings: { - privateWidgetShare: false, - saml: { - enabled: false, - }, - samlAutocreateAccessRole: "ro", - samlAutocreateUsersDomains: { - domains: ["example.com"], - enabled: false, - }, - samlCanBeEnabled: false, - samlIdpEndpoint: "https://my.saml.endpoint", - samlIdpInitiatedLogin: { - enabled: false, - }, - samlIdpMetadataUploaded: false, - samlLoginUrl: "https://my.saml.login.url", - samlStrictMode: { - enabled: false, - }, - }, - subscription: { - type: "pro", - }, - trial: false, - }, - publicId: "abc123", -}; - -apiInstance - .updateOrg(params) - .then((data: v1.OrganizationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/organizations/UploadIdPForOrg.ts b/examples/v1/organizations/UploadIdPForOrg.ts deleted file mode 100644 index 2f55b2b7df4f..000000000000 --- a/examples/v1/organizations/UploadIdPForOrg.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Upload IdP metadata returns "OK" response - */ - -import * as fs from "fs"; -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.OrganizationsApi(configuration); - -const params: v1.OrganizationsApiUploadIdPForOrgRequest = { - publicId: "abc123", - idpFile: { - data: Buffer.from(fs.readFileSync("./idp_metadata.xml", "utf8")), - name: "./idp_metadata.xml", - }, -}; - -apiInstance - .uploadIdPForOrg(params) - .then((data: v1.IdpResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.ts b/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.ts deleted file mode 100644 index 1f3e0134118d..000000000000 --- a/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Create a new service object returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.PagerDutyIntegrationApi(configuration); - -const params: v1.PagerDutyIntegrationApiCreatePagerDutyIntegrationServiceRequest = - { - body: { - serviceKey: "", - serviceName: "", - }, - }; - -apiInstance - .createPagerDutyIntegrationService(params) - .then((data: v1.PagerDutyServiceName) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.ts b/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.ts deleted file mode 100644 index c9a29576be06..000000000000 --- a/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete a single service object returns "No Content" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.PagerDutyIntegrationApi(configuration); - -const params: v1.PagerDutyIntegrationApiDeletePagerDutyIntegrationServiceRequest = - { - serviceName: "service_name", - }; - -apiInstance - .deletePagerDutyIntegrationService(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.ts b/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.ts deleted file mode 100644 index 3934f1ad3469..000000000000 --- a/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a single service object returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.PagerDutyIntegrationApi(configuration); - -const params: v1.PagerDutyIntegrationApiGetPagerDutyIntegrationServiceRequest = - { - serviceName: "service_name", - }; - -apiInstance - .getPagerDutyIntegrationService(params) - .then((data: v1.PagerDutyServiceName) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.ts b/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.ts deleted file mode 100644 index f2f11d70b88c..000000000000 --- a/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Update a single service object returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.PagerDutyIntegrationApi(configuration); - -const params: v1.PagerDutyIntegrationApiUpdatePagerDutyIntegrationServiceRequest = - { - body: { - serviceKey: "", - }, - serviceName: "service_name", - }; - -apiInstance - .updatePagerDutyIntegrationService(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.ts b/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.ts deleted file mode 100644 index ae83d8ec965b..000000000000 --- a/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Add a security signal to an incident returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SecurityMonitoringApi(configuration); - -const params: v1.SecurityMonitoringApiAddSecurityMonitoringSignalToIncidentRequest = - { - body: { - incidentId: 2609, - }, - signalId: "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE", - }; - -apiInstance - .addSecurityMonitoringSignalToIncident(params) - .then((data: v1.SuccessfulSignalUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.ts b/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.ts deleted file mode 100644 index 904eab58e7d1..000000000000 --- a/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Modify the triage assignee of a security signal returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SecurityMonitoringApi(configuration); - -const params: v1.SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest = - { - body: { - assignee: "773b045d-ccf8-4808-bd3b-955ef6a8c940", - }, - signalId: "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE", - }; - -apiInstance - .editSecurityMonitoringSignalAssignee(params) - .then((data: v1.SuccessfulSignalUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.ts b/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.ts deleted file mode 100644 index 1adada6ced47..000000000000 --- a/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Change the triage state of a security signal returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SecurityMonitoringApi(configuration); - -const params: v1.SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest = - { - body: { - archiveReason: "none", - state: "open", - }, - signalId: "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE", - }; - -apiInstance - .editSecurityMonitoringSignalState(params) - .then((data: v1.SuccessfulSignalUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-checks/SubmitServiceCheck.ts b/examples/v1/service-checks/SubmitServiceCheck.ts deleted file mode 100644 index 96252f2af68a..000000000000 --- a/examples/v1/service-checks/SubmitServiceCheck.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Submit a Service Check returns "Payload accepted" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceChecksApi(configuration); - -const params: v1.ServiceChecksApiSubmitServiceCheckRequest = { - body: [ - { - check: "app.ok", - hostName: "host", - status: 0, - tags: ["test:ExampleServiceCheck"], - }, - ], -}; - -apiInstance - .submitServiceCheck(params) - .then((data: v1.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objective-corrections/CreateSLOCorrection.ts b/examples/v1/service-level-objective-corrections/CreateSLOCorrection.ts deleted file mode 100644 index c8555bd52b75..000000000000 --- a/examples/v1/service-level-objective-corrections/CreateSLOCorrection.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Create an SLO correction returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectiveCorrectionsApiCreateSLOCorrectionRequest = - { - body: { - data: { - attributes: { - category: "Scheduled Maintenance", - description: "Example-Service-Level-Objective-Correction", - end: Math.round( - new Date(new Date().getTime() + 1 * 3600 * 1000).getTime() / 1000 - ), - sloId: SLO_DATA_0_ID, - start: Math.round(new Date().getTime() / 1000), - timezone: "UTC", - }, - type: "correction", - }, - }, - }; - -apiInstance - .createSLOCorrection(params) - .then((data: v1.SLOCorrectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.ts b/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.ts deleted file mode 100644 index bb953166bc2e..000000000000 --- a/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Create an SLO correction with rrule returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectiveCorrectionsApiCreateSLOCorrectionRequest = - { - body: { - data: { - attributes: { - category: "Scheduled Maintenance", - description: "Example-Service-Level-Objective-Correction", - sloId: SLO_DATA_0_ID, - start: Math.round(new Date().getTime() / 1000), - duration: 3600, - rrule: "FREQ=DAILY;INTERVAL=10;COUNT=5", - timezone: "UTC", - }, - type: "correction", - }, - }, - }; - -apiInstance - .createSLOCorrection(params) - .then((data: v1.SLOCorrectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.ts b/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.ts deleted file mode 100644 index 6532deaa7dc4..000000000000 --- a/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete an SLO correction returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -const params: v1.ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest = - { - sloCorrectionId: "slo_correction_id", - }; - -apiInstance - .deleteSLOCorrection(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objective-corrections/GetSLOCorrection.ts b/examples/v1/service-level-objective-corrections/GetSLOCorrection.ts deleted file mode 100644 index abc5764f6ae1..000000000000 --- a/examples/v1/service-level-objective-corrections/GetSLOCorrection.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get an SLO correction for an SLO returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -// there is a valid "correction" for "slo" -const CORRECTION_DATA_ID = process.env.CORRECTION_DATA_ID as string; - -const params: v1.ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest = { - sloCorrectionId: CORRECTION_DATA_ID, -}; - -apiInstance - .getSLOCorrection(params) - .then((data: v1.SLOCorrectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objective-corrections/ListSLOCorrection.ts b/examples/v1/service-level-objective-corrections/ListSLOCorrection.ts deleted file mode 100644 index 30de0153e794..000000000000 --- a/examples/v1/service-level-objective-corrections/ListSLOCorrection.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all SLO corrections returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -const params: v1.ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest = { - offset: 1, - limit: 1, -}; - -apiInstance - .listSLOCorrection(params) - .then((data: v1.SLOCorrectionListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.ts b/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.ts deleted file mode 100644 index fa2a682b8e97..000000000000 --- a/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get all SLO corrections returns "OK" response with pagination - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -const params: v1.ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest = { - limit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listSLOCorrectionWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.ts b/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.ts deleted file mode 100644 index 6632555dce5c..000000000000 --- a/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Update an SLO correction returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration); - -// there is a valid "correction" for "slo" -const CORRECTION_DATA_ID = process.env.CORRECTION_DATA_ID as string; - -const params: v1.ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest = - { - body: { - data: { - attributes: { - category: "Deployment", - description: "Example-Service-Level-Objective-Correction", - end: Math.round( - new Date(new Date().getTime() + 1 * 3600 * 1000).getTime() / 1000 - ), - start: Math.round(new Date().getTime() / 1000), - timezone: "UTC", - }, - type: "correction", - }, - }, - sloCorrectionId: CORRECTION_DATA_ID, - }; - -apiInstance - .updateSLOCorrection(params) - .then((data: v1.SLOCorrectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/CheckCanDeleteSLO.ts b/examples/v1/service-level-objectives/CheckCanDeleteSLO.ts deleted file mode 100644 index 6af2f0f041c1..000000000000 --- a/examples/v1/service-level-objectives/CheckCanDeleteSLO.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Check if SLOs can be safely deleted returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -const params: v1.ServiceLevelObjectivesApiCheckCanDeleteSLORequest = { - ids: "ids", -}; - -apiInstance - .checkCanDeleteSLO(params) - .then((data: v1.CheckCanDeleteSLOResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/CreateSLO.ts b/examples/v1/service-level-objectives/CreateSLO.ts deleted file mode 100644 index 0045cbe88b06..000000000000 --- a/examples/v1/service-level-objectives/CreateSLO.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Create an SLO object returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -const params: v1.ServiceLevelObjectivesApiCreateSLORequest = { - body: { - type: "metric", - description: "string", - groups: ["env:test", "role:mysql"], - monitorIds: [], - name: "Example-Service-Level-Objective", - query: { - denominator: "sum:httpservice.hits{!code:3xx}.as_count()", - numerator: "sum:httpservice.hits{code:2xx}.as_count()", - }, - tags: ["env:prod", "app:core"], - thresholds: [ - { - target: 97.0, - targetDisplay: "97.0", - timeframe: "7d", - warning: 98, - warningDisplay: "98.0", - }, - ], - timeframe: "7d", - targetThreshold: 97.0, - warningThreshold: 98, - }, -}; - -apiInstance - .createSLO(params) - .then((data: v1.SLOListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/CreateSLO_3765703239.ts b/examples/v1/service-level-objectives/CreateSLO_3765703239.ts deleted file mode 100644 index 296c420abfe5..000000000000 --- a/examples/v1/service-level-objectives/CreateSLO_3765703239.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Create a time-slice SLO object returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -const params: v1.ServiceLevelObjectivesApiCreateSLORequest = { - body: { - type: "time_slice", - description: "string", - name: "Example-Service-Level-Objective", - sliSpecification: { - timeSlice: { - query: { - formulas: [ - { - formula: "query1", - }, - ], - queries: [ - { - dataSource: "metrics", - name: "query1", - query: "trace.servlet.request{env:prod}", - }, - ], - }, - comparator: ">", - threshold: 5, - }, - }, - tags: ["env:prod"], - thresholds: [ - { - target: 97.0, - targetDisplay: "97.0", - timeframe: "7d", - warning: 98, - warningDisplay: "98.0", - }, - ], - timeframe: "7d", - targetThreshold: 97.0, - warningThreshold: 98, - }, -}; - -apiInstance - .createSLO(params) - .then((data: v1.SLOListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/DeleteSLO.ts b/examples/v1/service-level-objectives/DeleteSLO.ts deleted file mode 100644 index eef223e246ce..000000000000 --- a/examples/v1/service-level-objectives/DeleteSLO.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an SLO returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectivesApiDeleteSLORequest = { - sloId: SLO_DATA_0_ID, -}; - -apiInstance - .deleteSLO(params) - .then((data: v1.SLODeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.ts b/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.ts deleted file mode 100644 index 2fb0a263d0f7..000000000000 --- a/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Bulk Delete SLO Timeframes returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -const params: v1.ServiceLevelObjectivesApiDeleteSLOTimeframeInBulkRequest = { - body: { - id1: ["7d", "30d"], - id2: ["7d", "30d"], - }, -}; - -apiInstance - .deleteSLOTimeframeInBulk(params) - .then((data: v1.SLOBulkDeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/GetSLO.ts b/examples/v1/service-level-objectives/GetSLO.ts deleted file mode 100644 index efcd9639bddc..000000000000 --- a/examples/v1/service-level-objectives/GetSLO.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get an SLO's details returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectivesApiGetSLORequest = { - sloId: SLO_DATA_0_ID, -}; - -apiInstance - .getSLO(params) - .then((data: v1.SLOResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/GetSLOCorrections.ts b/examples/v1/service-level-objectives/GetSLOCorrections.ts deleted file mode 100644 index 8774d4a7e189..000000000000 --- a/examples/v1/service-level-objectives/GetSLOCorrections.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get Corrections For an SLO returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectivesApiGetSLOCorrectionsRequest = { - sloId: SLO_DATA_0_ID, -}; - -apiInstance - .getSLOCorrections(params) - .then((data: v1.SLOCorrectionListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/GetSLOHistory.ts b/examples/v1/service-level-objectives/GetSLOHistory.ts deleted file mode 100644 index b4f1b5ced163..000000000000 --- a/examples/v1/service-level-objectives/GetSLOHistory.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Get an SLO's history returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectivesApiGetSLOHistoryRequest = { - sloId: SLO_DATA_0_ID, - fromTs: Math.round( - new Date(new Date().getTime() + -1 * 86400 * 1000).getTime() / 1000 - ), - toTs: Math.round(new Date().getTime() / 1000), -}; - -apiInstance - .getSLOHistory(params) - .then((data: v1.SLOHistoryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/ListSLOs.ts b/examples/v1/service-level-objectives/ListSLOs.ts deleted file mode 100644 index d53d15a70965..000000000000 --- a/examples/v1/service-level-objectives/ListSLOs.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get all SLOs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; - -const params: v1.ServiceLevelObjectivesApiListSLOsRequest = { - ids: SLO_DATA_0_ID, -}; - -apiInstance - .listSLOs(params) - .then((data: v1.SLOListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/ListSLOs_3036942817.ts b/examples/v1/service-level-objectives/ListSLOs_3036942817.ts deleted file mode 100644 index 75ba3274fc71..000000000000 --- a/examples/v1/service-level-objectives/ListSLOs_3036942817.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all SLOs returns "OK" response with pagination - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -const params: v1.ServiceLevelObjectivesApiListSLOsRequest = { - limit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listSLOsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v1/service-level-objectives/SearchSLO.ts b/examples/v1/service-level-objectives/SearchSLO.ts deleted file mode 100644 index c470546e8987..000000000000 --- a/examples/v1/service-level-objectives/SearchSLO.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Search for SLOs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_NAME = process.env.SLO_DATA_0_NAME as string; - -const params: v1.ServiceLevelObjectivesApiSearchSLORequest = { - query: SLO_DATA_0_NAME, - pageSize: 20, - pageNumber: 0, -}; - -apiInstance - .searchSLO(params) - .then((data: v1.SearchSLOResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/service-level-objectives/UpdateSLO.ts b/examples/v1/service-level-objectives/UpdateSLO.ts deleted file mode 100644 index 3e9c0fe497ac..000000000000 --- a/examples/v1/service-level-objectives/UpdateSLO.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Update an SLO returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.ServiceLevelObjectivesApi(configuration); - -// there is a valid "slo" in the system -const SLO_DATA_0_ID = process.env.SLO_DATA_0_ID as string; -const SLO_DATA_0_NAME = process.env.SLO_DATA_0_NAME as string; - -const params: v1.ServiceLevelObjectivesApiUpdateSLORequest = { - body: { - type: "metric", - name: SLO_DATA_0_NAME, - thresholds: [ - { - target: 97.0, - timeframe: "7d", - warning: 98.0, - }, - ], - timeframe: "7d", - targetThreshold: 97.0, - warningThreshold: 98, - query: { - numerator: "sum:httpservice.hits{code:2xx}.as_count()", - denominator: "sum:httpservice.hits{!code:3xx}.as_count()", - }, - }, - sloId: SLO_DATA_0_ID, -}; - -apiInstance - .updateSLO(params) - .then((data: v1.SLOListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/slack-integration/CreateSlackIntegrationChannel.ts b/examples/v1/slack-integration/CreateSlackIntegrationChannel.ts deleted file mode 100644 index 1837cb889326..000000000000 --- a/examples/v1/slack-integration/CreateSlackIntegrationChannel.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Create a Slack integration channel returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SlackIntegrationApi(configuration); - -const params: v1.SlackIntegrationApiCreateSlackIntegrationChannelRequest = { - body: { - display: { - message: true, - notified: true, - snapshot: true, - tags: true, - }, - name: "#general", - }, - accountName: "account_name", -}; - -apiInstance - .createSlackIntegrationChannel(params) - .then((data: v1.SlackIntegrationChannel) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/slack-integration/GetSlackIntegrationChannel.ts b/examples/v1/slack-integration/GetSlackIntegrationChannel.ts deleted file mode 100644 index aaf475970b50..000000000000 --- a/examples/v1/slack-integration/GetSlackIntegrationChannel.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a Slack integration channel returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SlackIntegrationApi(configuration); - -const params: v1.SlackIntegrationApiGetSlackIntegrationChannelRequest = { - accountName: "account_name", - channelName: "channel_name", -}; - -apiInstance - .getSlackIntegrationChannel(params) - .then((data: v1.SlackIntegrationChannel) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/slack-integration/GetSlackIntegrationChannels.ts b/examples/v1/slack-integration/GetSlackIntegrationChannels.ts deleted file mode 100644 index 5e86981e5274..000000000000 --- a/examples/v1/slack-integration/GetSlackIntegrationChannels.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all channels in a Slack integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SlackIntegrationApi(configuration); - -const params: v1.SlackIntegrationApiGetSlackIntegrationChannelsRequest = { - accountName: "account_name", -}; - -apiInstance - .getSlackIntegrationChannels(params) - .then((data: v1.SlackIntegrationChannel[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/slack-integration/RemoveSlackIntegrationChannel.ts b/examples/v1/slack-integration/RemoveSlackIntegrationChannel.ts deleted file mode 100644 index f9ff9d61bf0f..000000000000 --- a/examples/v1/slack-integration/RemoveSlackIntegrationChannel.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Remove a Slack integration channel returns "The channel was removed successfully." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SlackIntegrationApi(configuration); - -const params: v1.SlackIntegrationApiRemoveSlackIntegrationChannelRequest = { - accountName: "account_name", - channelName: "channel_name", -}; - -apiInstance - .removeSlackIntegrationChannel(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/slack-integration/UpdateSlackIntegrationChannel.ts b/examples/v1/slack-integration/UpdateSlackIntegrationChannel.ts deleted file mode 100644 index 209cc47b0f86..000000000000 --- a/examples/v1/slack-integration/UpdateSlackIntegrationChannel.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Update a Slack integration channel returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SlackIntegrationApi(configuration); - -const params: v1.SlackIntegrationApiUpdateSlackIntegrationChannelRequest = { - body: { - display: { - message: true, - notified: true, - snapshot: true, - tags: true, - }, - name: "#general", - }, - accountName: "account_name", - channelName: "channel_name", -}; - -apiInstance - .updateSlackIntegrationChannel(params) - .then((data: v1.SlackIntegrationChannel) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/snapshots/GetGraphSnapshot.ts b/examples/v1/snapshots/GetGraphSnapshot.ts deleted file mode 100644 index 0b7e9b2e7498..000000000000 --- a/examples/v1/snapshots/GetGraphSnapshot.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Take graph snapshots returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SnapshotsApi(configuration); - -const params: v1.SnapshotsApiGetGraphSnapshotRequest = { - metricQuery: "avg:system.load.1{*}", - start: Math.round( - new Date(new Date().getTime() + -1 * 86400 * 1000).getTime() / 1000 - ), - end: Math.round(new Date().getTime() / 1000), - title: "System load", - height: 400, - width: 600, -}; - -apiInstance - .getGraphSnapshot(params) - .then((data: v1.GraphSnapshot) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateGlobalVariable.ts b/examples/v1/synthetics/CreateGlobalVariable.ts deleted file mode 100644 index edc3bcb4c158..000000000000 --- a/examples/v1/synthetics/CreateGlobalVariable.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Create a global variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateGlobalVariableRequest = { - body: { - attributes: { - restrictedRoles: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], - }, - description: "Example description", - name: "MY_VARIABLE", - parseTestOptions: { - field: "content-type", - localVariableName: "LOCAL_VARIABLE", - parser: { - type: "regex", - value: ".*", - }, - type: "http_body", - }, - parseTestPublicId: "abc-def-123", - tags: ["team:front", "test:workflow-1"], - value: { - secure: true, - value: "value", - }, - }, -}; - -apiInstance - .createGlobalVariable(params) - .then((data: v1.SyntheticsGlobalVariable) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateGlobalVariable_1068962881.ts b/examples/v1/synthetics/CreateGlobalVariable_1068962881.ts deleted file mode 100644 index dd215307ed8c..000000000000 --- a/examples/v1/synthetics/CreateGlobalVariable_1068962881.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Create a global variable from test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_api_test_multi_step" in the system -const SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID = process.env - .SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID as string; - -const params: v1.SyntheticsApiCreateGlobalVariableRequest = { - body: { - description: "", - name: "GLOBAL_VARIABLE_FROM_TEST_PAYLOAD_EXAMPLESYNTHETIC", - tags: [], - value: { - secure: false, - value: "", - }, - parseTestPublicId: SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID, - parseTestOptions: { - type: "local_variable", - localVariableName: "EXTRACTED_VALUE", - }, - }, -}; - -apiInstance - .createGlobalVariable(params) - .then((data: v1.SyntheticsGlobalVariable) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateGlobalVariable_3298562511.ts b/examples/v1/synthetics/CreateGlobalVariable_3298562511.ts deleted file mode 100644 index 240f8eb1b598..000000000000 --- a/examples/v1/synthetics/CreateGlobalVariable_3298562511.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Create a FIDO global variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateGlobalVariableRequest = { - body: { - description: "", - isFido: true, - name: "GLOBAL_VARIABLE_FIDO_PAYLOAD_EXAMPLESYNTHETIC", - tags: [], - }, -}; - -apiInstance - .createGlobalVariable(params) - .then((data: v1.SyntheticsGlobalVariable) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateGlobalVariable_3397718516.ts b/examples/v1/synthetics/CreateGlobalVariable_3397718516.ts deleted file mode 100644 index 2f83cbe00990..000000000000 --- a/examples/v1/synthetics/CreateGlobalVariable_3397718516.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Create a TOTP global variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateGlobalVariableRequest = { - body: { - description: "", - isTotp: true, - name: "GLOBAL_VARIABLE_TOTP_PAYLOAD_EXAMPLESYNTHETIC", - tags: [], - value: { - secure: false, - value: "", - options: { - totpParameters: { - digits: 6, - refreshInterval: 30, - }, - }, - }, - }, -}; - -apiInstance - .createGlobalVariable(params) - .then((data: v1.SyntheticsGlobalVariable) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreatePrivateLocation.ts b/examples/v1/synthetics/CreatePrivateLocation.ts deleted file mode 100644 index a94896aedb1a..000000000000 --- a/examples/v1/synthetics/CreatePrivateLocation.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a private location returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v1.SyntheticsApiCreatePrivateLocationRequest = { - body: { - description: "Test Example-Synthetic description", - metadata: { - restrictedRoles: [ROLE_DATA_ID], - }, - name: "Example-Synthetic", - tags: ["test:examplesynthetic"], - }, -}; - -apiInstance - .createPrivateLocation(params) - .then((data: v1.SyntheticsPrivateLocationCreationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest.ts b/examples/v1/synthetics/CreateSyntheticsAPITest.ts deleted file mode 100644 index a13082eec18c..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Create an API test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "lessThan", - target: 1000, - type: "responseTime", - }, - ], - request: { - method: "GET", - url: "https://example.com", - }, - }, - locations: ["aws:eu-west-3"], - message: "Notification message", - name: "Example test name", - options: { - ci: { - executionRule: "blocking", - }, - deviceIds: ["chrome.laptop_large"], - httpVersion: "http1", - monitorOptions: { - notificationPresetName: "show_all", - }, - restrictedRoles: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], - retry: {}, - rumSettings: { - applicationId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - clientTokenId: 12345, - isEnabled: true, - }, - scheduling: { - timeframes: [ - { - day: 1, - from: "07:00", - to: "16:00", - }, - { - day: 3, - from: "07:00", - to: "16:00", - }, - ], - timezone: "America/New_York", - }, - }, - status: "live", - subtype: "http", - tags: ["env:production"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.ts deleted file mode 100644 index 2afa65bae4ea..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create an API SSL test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "isInMoreThan", - target: 10, - type: "certificate", - }, - ], - request: { - host: "datadoghq.com", - port: "{{ DATADOG_PORT }}", - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_ssl_test_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: true, - checkCertificateRevocation: true, - tickEvery: 60, - }, - subtype: "ssl", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.ts deleted file mode 100644 index 0d40b6f2210f..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Create an API test with a file payload returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - property: "{{ PROPERTY }}", - target: "text/html", - type: "header", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - timingsScope: "withoutDNS", - }, - { - operator: "validatesJSONPath", - target: { - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesXPath", - target: { - xPath: "target-xpath", - targetValue: "0", - operator: "contains", - }, - type: "body", - }, - ], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - request: { - certificate: { - cert: { - content: "cert-content", - filename: "cert-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - key: { - content: "key-content", - filename: "key-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - }, - headers: { - unique: "examplesynthetic", - }, - method: "GET", - timeout: 10, - url: "https://datadoghq.com", - proxy: { - url: "https://datadoghq.com", - headers: {}, - }, - bodyType: "application/octet-stream", - files: [ - { - name: "file name", - originalFileName: "image.png", - content: "file content", - type: "file type", - }, - ], - basicAuth: { - accessTokenUrl: "https://datadog-token.com", - audience: "audience", - clientId: "client-id", - clientSecret: "client-secret", - resource: "resource", - scope: "yoyo", - tokenApiAuthentication: "header", - type: "oauth-client", - }, - persistCookies: true, - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_http_test_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - httpVersion: "http2", - }, - subtype: "http", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts deleted file mode 100644 index 515a573430fa..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Create an API test with multi subtype returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - steps: [ - { - allowFailure: true, - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - exitIfSucceed: true, - extractedValues: [ - { - field: "server", - name: "EXTRACTED_VALUE", - parser: { - type: "raw", - }, - type: "http_header", - secure: true, - }, - ], - isCritical: true, - name: "request is sent", - request: { - method: "GET", - timeout: 10, - url: "https://datadoghq.com", - httpVersion: "http2", - }, - retry: { - count: 5, - interval: 1000, - }, - subtype: "http", - extractedValuesFromScript: - "dd.variable.set('STATUS_CODE', dd.response.statusCode);", - }, - { - name: "Wait", - subtype: "wait", - value: 1, - }, - { - name: "GRPC CALL", - subtype: "grpc", - extractedValues: [], - allowFailure: false, - isCritical: true, - retry: { - count: 0, - interval: 300, - }, - assertions: [ - { - operator: "lessThan", - type: "responseTime", - target: 1000, - }, - ], - request: { - host: "grpcbin.test.k6.io", - port: 9000, - service: "grpcbin.GRPCBin", - method: "Index", - message: "{}", - compressedJsonDescriptor: - "eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==", - metadata: {}, - callType: "unary", - }, - }, - ], - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_test_multi_step_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 1000, - }, - tickEvery: 60, - }, - subtype: "multi", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.ts deleted file mode 100644 index b9bdee00f34c..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Create an API GRPC test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - target: 1, - type: "grpcHealthcheckStatus", - }, - { - operator: "is", - target: "proto target", - type: "grpcProto", - }, - { - operator: "is", - target: "123", - property: "property", - type: "grpcMetadata", - }, - ], - request: { - host: "localhost", - port: 50051, - service: "Hello", - method: "GET", - message: "", - metadata: {}, - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_grpc_test_payload.json", - name: "Example-Synthetic", - options: { - minFailureDuration: 0, - minLocationFailed: 1, - monitorOptions: { - renotifyInterval: 0, - }, - monitorName: "Example-Synthetic", - tickEvery: 60, - }, - subtype: "grpc", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.ts deleted file mode 100644 index 0488decdda80..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.ts +++ /dev/null @@ -1,148 +0,0 @@ -/** - * Create an API HTTP test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - property: "{{ PROPERTY }}", - target: "text/html", - type: "header", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - timingsScope: "withoutDNS", - }, - { - operator: "validatesJSONPath", - target: { - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesJSONPath", - target: { - elementsOperator: "atLeastOneElementMatches", - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesJSONSchema", - target: { - metaSchema: "draft-07", - jsonSchema: `{"type": "object", "properties":{"slideshow":{"type":"object"}}}`, - }, - type: "body", - }, - { - operator: "validatesXPath", - target: { - xPath: "target-xpath", - targetValue: "0", - operator: "contains", - }, - type: "body", - }, - { - operator: "md5", - target: "a", - type: "bodyHash", - }, - { - code: "const hello = 'world';", - type: "javascript", - }, - ], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - variablesFromScript: `dd.variable.set("FOO", "foo")`, - request: { - certificate: { - cert: { - content: "cert-content", - filename: "cert-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - key: { - content: "key-content", - filename: "key-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - }, - headers: { - unique: "examplesynthetic", - }, - method: "GET", - timeout: 10, - url: "https://datadoghq.com", - proxy: { - url: "https://datadoghq.com", - headers: {}, - }, - basicAuth: { - accessTokenUrl: "https://datadog-token.com", - audience: "audience", - clientId: "client-id", - clientSecret: "client-secret", - resource: "resource", - scope: "yoyo", - tokenApiAuthentication: "header", - type: "oauth-client", - }, - persistCookies: true, - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_http_test_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - httpVersion: "http2", - }, - subtype: "http", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.ts deleted file mode 100644 index e227bd6f60d2..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.ts +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Create a multi-step api test with every type of basicAuth returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - steps: [ - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - password: "password", - username: "username", - }, - }, - subtype: "http", - }, - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - password: "password", - username: "username", - type: "web", - }, - }, - subtype: "http", - }, - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - accessKey: "accessKey", - secretKey: "secretKey", - type: "sigv4", - }, - }, - subtype: "http", - }, - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - type: "ntlm", - }, - }, - subtype: "http", - }, - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - password: "password", - username: "username", - type: "digest", - }, - }, - subtype: "http", - }, - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - accessTokenUrl: "accessTokenUrl", - tokenApiAuthentication: "header", - clientId: "clientId", - clientSecret: "clientSecret", - type: "oauth-client", - }, - }, - subtype: "http", - }, - { - assertions: [ - { - operator: "is", - type: "statusCode", - target: 200, - }, - ], - name: "request is sent", - request: { - url: "https://httpbin.org/status/200", - method: "GET", - basicAuth: { - accessTokenUrl: "accessTokenUrl", - password: "password", - tokenApiAuthentication: "header", - username: "username", - type: "oauth-rop", - }, - }, - subtype: "http", - }, - ], - }, - locations: ["aws:us-east-2"], - message: - "BDD test payload: synthetics_api_test_multi_step_with_every_type_of_basic_auth.json", - name: "Example-Synthetic", - options: { - tickEvery: 60, - }, - subtype: "multi", - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.ts deleted file mode 100644 index 70a87b402ac0..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.ts +++ /dev/null @@ -1,148 +0,0 @@ -/** - * Create an API HTTP test has bodyHash filled out - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - property: "{{ PROPERTY }}", - target: "text/html", - type: "header", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - timingsScope: "withoutDNS", - }, - { - operator: "validatesJSONPath", - target: { - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesJSONPath", - target: { - elementsOperator: "atLeastOneElementMatches", - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesJSONSchema", - target: { - metaSchema: "draft-07", - jsonSchema: `{"type": "object", "properties":{"slideshow":{"type":"object"}}}`, - }, - type: "body", - }, - { - operator: "validatesXPath", - target: { - xPath: "target-xpath", - targetValue: "0", - operator: "contains", - }, - type: "body", - }, - { - operator: "md5", - target: "a", - type: "bodyHash", - }, - { - code: "const hello = 'world';", - type: "javascript", - }, - ], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - variablesFromScript: `dd.variable.set("FOO", "foo")`, - request: { - certificate: { - cert: { - content: "cert-content", - filename: "cert-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - key: { - content: "key-content", - filename: "key-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - }, - headers: { - unique: "examplesynthetic", - }, - method: "GET", - timeout: 10, - url: "https://datadoghq.com", - proxy: { - url: "https://datadoghq.com", - headers: {}, - }, - basicAuth: { - accessTokenUrl: "https://datadog-token.com", - audience: "audience", - clientId: "client-id", - clientSecret: "client-secret", - resource: "resource", - scope: "yoyo", - tokenApiAuthentication: "header", - type: "oauth-client", - }, - persistCookies: true, - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_http_test_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - httpVersion: "http2", - }, - subtype: "http", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.ts deleted file mode 100644 index 9f0bf922f7a9..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Create an API test with WEBSOCKET subtype returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - target: "message", - type: "receivedMessage", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - }, - ], - configVariables: [], - request: { - url: "ws://datadoghq.com", - message: "message", - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_test_websocket_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - }, - subtype: "websocket", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.ts deleted file mode 100644 index c777d5b9b689..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Create an API test with UDP subtype returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - target: "message", - type: "receivedMessage", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - }, - ], - configVariables: [], - request: { - host: "https://datadoghq.com", - message: "message", - port: 443, - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_test_udp_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - }, - subtype: "udp", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.ts deleted file mode 100644 index 514d6daae4cb..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.ts +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Create an API HTTP with oauth-rop test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - property: "{{ PROPERTY }}", - target: "text/html", - type: "header", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - }, - { - operator: "validatesJSONPath", - target: { - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesJSONSchema", - target: { - metaSchema: "draft-07", - jsonSchema: `{"type": "object", "properties":{"slideshow":{"type":"object"}}}`, - }, - type: "body", - }, - { - operator: "validatesXPath", - target: { - xPath: "target-xpath", - targetValue: "0", - operator: "contains", - }, - type: "body", - }, - ], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - request: { - certificate: { - cert: { - content: "cert-content", - filename: "cert-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - key: { - content: "key-content", - filename: "key-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - }, - headers: { - unique: "examplesynthetic", - }, - method: "GET", - timeout: 10, - url: "https://datadoghq.com", - proxy: { - url: "https://datadoghq.com", - headers: {}, - }, - basicAuth: { - accessTokenUrl: "https://datadog-token.com", - audience: "audience", - clientId: "client-id", - clientSecret: "client-secret", - resource: "resource", - scope: "yoyo", - tokenApiAuthentication: "body", - type: "oauth-rop", - username: "oauth-usermame", - password: "oauth-password", - }, - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_http_test_payload.json", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Example-Synthetic", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - }, - subtype: "http", - tags: ["testing:api"], - type: "api", - }, -}; - -apiInstance - .createSyntheticsAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest.ts b/examples/v1/synthetics/CreateSyntheticsBrowserTest.ts deleted file mode 100644 index 145fef70093c..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Create a browser test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsBrowserTestRequest = { - body: { - config: { - assertions: [], - variables: [ - { - type: "text", - name: "TEST_VARIABLE", - pattern: "secret", - secure: true, - example: "secret", - }, - ], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - secure: true, - }, - ], - request: { - method: "GET", - url: "https://datadoghq.com", - }, - setCookie: "name:test", - }, - locations: ["aws:us-east-2"], - message: "Test message", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - deviceIds: ["chrome.laptop_large"], - disableCors: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - noScreenshot: true, - retry: { - count: 2, - interval: 10, - }, - tickEvery: 300, - enableProfiling: true, - enableSecurityTesting: true, - }, - tags: ["testing:browser"], - type: "browser", - steps: [ - { - allowFailure: false, - alwaysExecute: true, - exitIfSucceed: true, - isCritical: true, - name: "Refresh page", - params: {}, - type: "refresh", - }, - ], - }, -}; - -apiInstance - .createSyntheticsBrowserTest(params) - .then((data: v1.SyntheticsBrowserTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.ts b/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.ts deleted file mode 100644 index c942c1219379..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Create a browser test returns "OK - Returns saved rumSettings." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsBrowserTestRequest = { - body: { - config: { - assertions: [], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - request: { - method: "GET", - url: "https://datadoghq.com", - certificateDomains: ["https://datadoghq.com"], - }, - setCookie: "name:test", - }, - locations: ["aws:us-east-2"], - message: "Test message", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - deviceIds: ["tablet"], - disableCors: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - noScreenshot: true, - retry: { - count: 2, - interval: 10, - }, - rumSettings: { - isEnabled: true, - applicationId: "mockApplicationId", - clientTokenId: 12345, - }, - tickEvery: 300, - ci: { - executionRule: "skipped", - }, - ignoreServerCertificateError: true, - disableCsp: true, - initialNavigationTimeout: 200, - }, - tags: ["testing:browser"], - type: "browser", - steps: [ - { - allowFailure: false, - isCritical: true, - name: "Refresh page", - params: {}, - type: "refresh", - }, - ], - }, -}; - -apiInstance - .createSyntheticsBrowserTest(params) - .then((data: v1.SyntheticsBrowserTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.ts b/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.ts deleted file mode 100644 index 9bf339857717..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Create a browser test with advanced scheduling options returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsBrowserTestRequest = { - body: { - config: { - assertions: [], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - request: { - method: "GET", - url: "https://datadoghq.com", - }, - setCookie: "name:test", - }, - locations: ["aws:us-east-2"], - message: "Test message", - name: "Example-Synthetic", - options: { - acceptSelfSigned: false, - allowInsecure: true, - deviceIds: ["tablet"], - disableCors: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - noScreenshot: true, - retry: { - count: 2, - interval: 10, - }, - tickEvery: 300, - scheduling: { - timeframes: [ - { - day: 1, - from: "07:00", - to: "16:00", - }, - { - day: 3, - from: "07:00", - to: "16:00", - }, - ], - timezone: "America/New_York", - }, - }, - tags: ["testing:browser"], - type: "browser", - steps: [ - { - allowFailure: false, - isCritical: true, - name: "Refresh page", - params: {}, - type: "refresh", - }, - ], - }, -}; - -apiInstance - .createSyntheticsBrowserTest(params) - .then((data: v1.SyntheticsBrowserTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/CreateSyntheticsMobileTest.ts b/examples/v1/synthetics/CreateSyntheticsMobileTest.ts deleted file mode 100644 index 6974a8011930..000000000000 --- a/examples/v1/synthetics/CreateSyntheticsMobileTest.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Create a mobile test returns "OK - Returns the created test details." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiCreateSyntheticsMobileTestRequest = { - body: { - name: "Example-Synthetic", - status: "paused", - type: "mobile", - config: { - variables: [], - }, - message: "", - options: { - deviceIds: ["synthetics:mobile:device:iphone_15_ios_17"], - mobileApplication: { - applicationId: "ab0e0aed-536d-411a-9a99-5428c27d8f8e", - referenceId: "6115922a-5f5d-455e-bc7e-7955a57f3815", - referenceType: "version", - }, - tickEvery: 3600, - }, - steps: [], - }, -}; - -apiInstance - .createSyntheticsMobileTest(params) - .then((data: v1.SyntheticsMobileTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/DeleteGlobalVariable.ts b/examples/v1/synthetics/DeleteGlobalVariable.ts deleted file mode 100644 index 129697e96f86..000000000000 --- a/examples/v1/synthetics/DeleteGlobalVariable.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a global variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiDeleteGlobalVariableRequest = { - variableId: "variable_id", -}; - -apiInstance - .deleteGlobalVariable(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/DeletePrivateLocation.ts b/examples/v1/synthetics/DeletePrivateLocation.ts deleted file mode 100644 index 7a5a8c0866c8..000000000000 --- a/examples/v1/synthetics/DeletePrivateLocation.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a private location returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiDeletePrivateLocationRequest = { - locationId: "location_id", -}; - -apiInstance - .deletePrivateLocation(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/DeleteTests.ts b/examples/v1/synthetics/DeleteTests.ts deleted file mode 100644 index 86c5f185a510..000000000000 --- a/examples/v1/synthetics/DeleteTests.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Delete tests returns "OK." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_api_test" in the system -const SYNTHETICS_API_TEST_PUBLIC_ID = process.env - .SYNTHETICS_API_TEST_PUBLIC_ID as string; - -const params: v1.SyntheticsApiDeleteTestsRequest = { - body: { - publicIds: [SYNTHETICS_API_TEST_PUBLIC_ID], - }, -}; - -apiInstance - .deleteTests(params) - .then((data: v1.SyntheticsDeleteTestsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/EditGlobalVariable.ts b/examples/v1/synthetics/EditGlobalVariable.ts deleted file mode 100644 index 9cc1ed20cde0..000000000000 --- a/examples/v1/synthetics/EditGlobalVariable.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Edit a global variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiEditGlobalVariableRequest = { - body: { - attributes: { - restrictedRoles: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], - }, - description: "Example description", - name: "MY_VARIABLE", - parseTestOptions: { - field: "content-type", - localVariableName: "LOCAL_VARIABLE", - parser: { - type: "regex", - value: ".*", - }, - type: "http_body", - }, - parseTestPublicId: "abc-def-123", - tags: ["team:front", "test:workflow-1"], - value: { - secure: true, - value: "value", - }, - }, - variableId: "variable_id", -}; - -apiInstance - .editGlobalVariable(params) - .then((data: v1.SyntheticsGlobalVariable) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/FetchUptimes.ts b/examples/v1/synthetics/FetchUptimes.ts deleted file mode 100644 index 0babadff65e3..000000000000 --- a/examples/v1/synthetics/FetchUptimes.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Fetch uptime for multiple tests returns "OK." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiFetchUptimesRequest = { - body: { - fromTs: 1726041488, - publicIds: ["p8m-9gw-nte"], - toTs: 1726055954, - }, -}; - -apiInstance - .fetchUptimes(params) - .then((data: v1.SyntheticsTestUptime[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetAPITest.ts b/examples/v1/synthetics/GetAPITest.ts deleted file mode 100644 index 36fbfb575a14..000000000000 --- a/examples/v1/synthetics/GetAPITest.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an API test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetAPITestRequest = { - publicId: "public_id", -}; - -apiInstance - .getAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetAPITestLatestResults.ts b/examples/v1/synthetics/GetAPITestLatestResults.ts deleted file mode 100644 index 13d9c8dda42d..000000000000 --- a/examples/v1/synthetics/GetAPITestLatestResults.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an API test's latest results summaries returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetAPITestLatestResultsRequest = { - publicId: "hwb-332-3xe", -}; - -apiInstance - .getAPITestLatestResults(params) - .then((data: v1.SyntheticsGetAPITestLatestResultsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetAPITestResult.ts b/examples/v1/synthetics/GetAPITestResult.ts deleted file mode 100644 index 635621e143a6..000000000000 --- a/examples/v1/synthetics/GetAPITestResult.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get an API test result returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetAPITestResultRequest = { - publicId: "hwb-332-3xe", - resultId: "3420446318379485707", -}; - -apiInstance - .getAPITestResult(params) - .then((data: v1.SyntheticsAPITestResultFull) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetAPITestResult_1321866518.ts b/examples/v1/synthetics/GetAPITestResult_1321866518.ts deleted file mode 100644 index bd2b8b85b296..000000000000 --- a/examples/v1/synthetics/GetAPITestResult_1321866518.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Get an API test result returns result with failure object - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a "synthetics_api_test_with_wrong_dns" in the system -const SYNTHETICS_API_TEST_WITH_WRONG_DNS_PUBLIC_ID = process.env - .SYNTHETICS_API_TEST_WITH_WRONG_DNS_PUBLIC_ID as string; - -// the "synthetics_api_test_with_wrong_dns" is triggered -const SYNTHETICS_API_TEST_WITH_WRONG_DNS_RESULT_RESULTS_0_RESULT_ID = process - .env.SYNTHETICS_API_TEST_WITH_WRONG_DNS_RESULT_RESULTS_0_RESULT_ID as string; - -const params: v1.SyntheticsApiGetAPITestResultRequest = { - publicId: SYNTHETICS_API_TEST_WITH_WRONG_DNS_PUBLIC_ID, - resultId: SYNTHETICS_API_TEST_WITH_WRONG_DNS_RESULT_RESULTS_0_RESULT_ID, -}; - -apiInstance - .getAPITestResult(params) - .then((data: v1.SyntheticsAPITestResultFull) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetBrowserTest.ts b/examples/v1/synthetics/GetBrowserTest.ts deleted file mode 100644 index a9e568178fd7..000000000000 --- a/examples/v1/synthetics/GetBrowserTest.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a browser test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetBrowserTestRequest = { - publicId: "public_id", -}; - -apiInstance - .getBrowserTest(params) - .then((data: v1.SyntheticsBrowserTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetBrowserTestLatestResults.ts b/examples/v1/synthetics/GetBrowserTestLatestResults.ts deleted file mode 100644 index 95c8c8272f84..000000000000 --- a/examples/v1/synthetics/GetBrowserTestLatestResults.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a browser test's latest results summaries returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetBrowserTestLatestResultsRequest = { - publicId: "2yy-sem-mjh", -}; - -apiInstance - .getBrowserTestLatestResults(params) - .then((data: v1.SyntheticsGetBrowserTestLatestResultsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetBrowserTestResult.ts b/examples/v1/synthetics/GetBrowserTestResult.ts deleted file mode 100644 index 2f5e61e289b6..000000000000 --- a/examples/v1/synthetics/GetBrowserTestResult.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a browser test result returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetBrowserTestResultRequest = { - publicId: "2yy-sem-mjh", - resultId: "5671719892074090418", -}; - -apiInstance - .getBrowserTestResult(params) - .then((data: v1.SyntheticsBrowserTestResultFull) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetGlobalVariable.ts b/examples/v1/synthetics/GetGlobalVariable.ts deleted file mode 100644 index 34481460d39e..000000000000 --- a/examples/v1/synthetics/GetGlobalVariable.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a global variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetGlobalVariableRequest = { - variableId: "variable_id", -}; - -apiInstance - .getGlobalVariable(params) - .then((data: v1.SyntheticsGlobalVariable) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetMobileTest.ts b/examples/v1/synthetics/GetMobileTest.ts deleted file mode 100644 index 1e7d5886003f..000000000000 --- a/examples/v1/synthetics/GetMobileTest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a Mobile test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_mobile_test" in the system -const SYNTHETICS_MOBILE_TEST_PUBLIC_ID = process.env - .SYNTHETICS_MOBILE_TEST_PUBLIC_ID as string; - -const params: v1.SyntheticsApiGetMobileTestRequest = { - publicId: SYNTHETICS_MOBILE_TEST_PUBLIC_ID, -}; - -apiInstance - .getMobileTest(params) - .then((data: v1.SyntheticsMobileTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetPrivateLocation.ts b/examples/v1/synthetics/GetPrivateLocation.ts deleted file mode 100644 index e26e66aee596..000000000000 --- a/examples/v1/synthetics/GetPrivateLocation.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a private location returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetPrivateLocationRequest = { - locationId: "location_id", -}; - -apiInstance - .getPrivateLocation(params) - .then((data: v1.SyntheticsPrivateLocation) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetSyntheticsCIBatch.ts b/examples/v1/synthetics/GetSyntheticsCIBatch.ts deleted file mode 100644 index c4b25b3f10fe..000000000000 --- a/examples/v1/synthetics/GetSyntheticsCIBatch.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get details of batch returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetSyntheticsCIBatchRequest = { - batchId: "batch_id", -}; - -apiInstance - .getSyntheticsCIBatch(params) - .then((data: v1.SyntheticsBatchDetails) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetSyntheticsDefaultLocations.ts b/examples/v1/synthetics/GetSyntheticsDefaultLocations.ts deleted file mode 100644 index c0badbf66ef1..000000000000 --- a/examples/v1/synthetics/GetSyntheticsDefaultLocations.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the default locations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -apiInstance - .getSyntheticsDefaultLocations() - .then((data: string[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.ts b/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.ts deleted file mode 100644 index 59c97403ea67..000000000000 --- a/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the list of default locations returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -apiInstance - .getSyntheticsDefaultLocations() - .then((data: string[]) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/GetTest.ts b/examples/v1/synthetics/GetTest.ts deleted file mode 100644 index ab4a7e6542ed..000000000000 --- a/examples/v1/synthetics/GetTest.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a test configuration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiGetTestRequest = { - publicId: "public_id", -}; - -apiInstance - .getTest(params) - .then((data: v1.SyntheticsTestDetails) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/ListGlobalVariables.ts b/examples/v1/synthetics/ListGlobalVariables.ts deleted file mode 100644 index 0e794254e086..000000000000 --- a/examples/v1/synthetics/ListGlobalVariables.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all global variables returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -apiInstance - .listGlobalVariables() - .then((data: v1.SyntheticsListGlobalVariablesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/ListLocations.ts b/examples/v1/synthetics/ListLocations.ts deleted file mode 100644 index b4108fda6cc3..000000000000 --- a/examples/v1/synthetics/ListLocations.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all locations (public and private) returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -apiInstance - .listLocations() - .then((data: v1.SyntheticsLocations) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/ListTests.ts b/examples/v1/synthetics/ListTests.ts deleted file mode 100644 index aeb0fd80c938..000000000000 --- a/examples/v1/synthetics/ListTests.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the list of all Synthetic tests returns "OK - Returns the list of all Synthetic tests." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -apiInstance - .listTests() - .then((data: v1.SyntheticsListTestsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/ListTests_1938827783.ts b/examples/v1/synthetics/ListTests_1938827783.ts deleted file mode 100644 index f3362888a148..000000000000 --- a/examples/v1/synthetics/ListTests_1938827783.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get the list of all Synthetic tests returns "OK - Returns the list of all Synthetic tests." response with pagination - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiListTestsRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listTestsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v1/synthetics/ListTests_2779190961.ts b/examples/v1/synthetics/ListTests_2779190961.ts deleted file mode 100644 index 5d2eba5ad045..000000000000 --- a/examples/v1/synthetics/ListTests_2779190961.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Client is resilient to enum and oneOf deserialization errors - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -apiInstance - .listTests() - .then((data: v1.SyntheticsListTestsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/PatchTest.ts b/examples/v1/synthetics/PatchTest.ts deleted file mode 100644 index 86882007c3a4..000000000000 --- a/examples/v1/synthetics/PatchTest.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Patch a Synthetic test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_api_test" in the system -const SYNTHETICS_API_TEST_PUBLIC_ID = process.env - .SYNTHETICS_API_TEST_PUBLIC_ID as string; - -const params: v1.SyntheticsApiPatchTestRequest = { - body: { - data: [ - { - op: "replace", - path: "/name", - value: "New test name", - }, - { - op: "remove", - path: "/config/assertions/0", - }, - ], - }, - publicId: SYNTHETICS_API_TEST_PUBLIC_ID, -}; - -apiInstance - .patchTest(params) - .then((data: v1.SyntheticsTestDetails) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/TriggerCITests.ts b/examples/v1/synthetics/TriggerCITests.ts deleted file mode 100644 index 75b323229d1a..000000000000 --- a/examples/v1/synthetics/TriggerCITests.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Trigger tests from CI/CD pipelines returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiTriggerCITestsRequest = { - body: { - tests: [ - { - basicAuth: { - password: "PaSSw0RD!", - type: "web", - username: "my_username", - }, - deviceIds: ["chrome.laptop_large"], - locations: ["aws:eu-west-3"], - metadata: { - ci: { - pipeline: {}, - provider: {}, - }, - git: {}, - }, - publicId: "aaa-aaa-aaa", - retry: {}, - }, - ], - }, -}; - -apiInstance - .triggerCITests(params) - .then((data: v1.SyntheticsTriggerCITestsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/TriggerTests.ts b/examples/v1/synthetics/TriggerTests.ts deleted file mode 100644 index faf53e0e4a8c..000000000000 --- a/examples/v1/synthetics/TriggerTests.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Trigger Synthetic tests returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_api_test" in the system -const SYNTHETICS_API_TEST_PUBLIC_ID = process.env - .SYNTHETICS_API_TEST_PUBLIC_ID as string; - -const params: v1.SyntheticsApiTriggerTestsRequest = { - body: { - tests: [ - { - publicId: SYNTHETICS_API_TEST_PUBLIC_ID, - }, - ], - }, -}; - -apiInstance - .triggerTests(params) - .then((data: v1.SyntheticsTriggerCITestsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/UpdateAPITest.ts b/examples/v1/synthetics/UpdateAPITest.ts deleted file mode 100644 index 081c4217db94..000000000000 --- a/examples/v1/synthetics/UpdateAPITest.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Edit an API test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_api_test" in the system -const SYNTHETICS_API_TEST_PUBLIC_ID = process.env - .SYNTHETICS_API_TEST_PUBLIC_ID as string; - -const params: v1.SyntheticsApiUpdateAPITestRequest = { - body: { - config: { - assertions: [ - { - operator: "is", - property: "{{ PROPERTY }}", - target: "text/html", - type: "header", - }, - { - operator: "lessThan", - target: 2000, - type: "responseTime", - }, - { - operator: "validatesJSONPath", - target: { - jsonPath: "topKey", - operator: "isNot", - targetValue: "0", - }, - type: "body", - }, - { - operator: "validatesJSONSchema", - target: { - metaSchema: "draft-07", - jsonSchema: `{"type": "object", "properties":{"slideshow":{"type":"object"}}}`, - }, - type: "body", - }, - ], - configVariables: [ - { - example: "content-type", - name: "PROPERTY", - pattern: "content-type", - type: "text", - }, - ], - request: { - certificate: { - cert: { - filename: "cert-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - key: { - filename: "key-filename", - updatedAt: "2020-10-16T09:23:24.857Z", - }, - }, - headers: { - unique: "examplesynthetic", - }, - method: "GET", - timeout: 10, - url: "https://datadoghq.com", - }, - }, - locations: ["aws:us-east-2"], - message: "BDD test payload: synthetics_api_test_payload.json", - name: "Example-Synthetic-updated", - options: { - acceptSelfSigned: false, - allowInsecure: true, - followRedirects: true, - minFailureDuration: 10, - minLocationFailed: 1, - monitorName: "Test-TestSyntheticsAPITestLifecycle-1623076664", - monitorPriority: 5, - retry: { - count: 3, - interval: 10, - }, - tickEvery: 60, - }, - status: "live", - subtype: "http", - tags: ["testing:api"], - type: "api", - }, - publicId: SYNTHETICS_API_TEST_PUBLIC_ID, -}; - -apiInstance - .updateAPITest(params) - .then((data: v1.SyntheticsAPITest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/UpdateBrowserTest.ts b/examples/v1/synthetics/UpdateBrowserTest.ts deleted file mode 100644 index 738c2349cc62..000000000000 --- a/examples/v1/synthetics/UpdateBrowserTest.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Edit a browser test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiUpdateBrowserTestRequest = { - body: { - config: { - assertions: [], - configVariables: [ - { - name: "VARIABLE_NAME", - secure: false, - type: "text", - }, - ], - request: { - basicAuth: { - password: "PaSSw0RD!", - type: "web", - username: "my_username", - }, - bodyType: "text/plain", - callType: "unary", - certificate: { - cert: {}, - key: {}, - }, - certificateDomains: [], - files: [{}], - httpVersion: "http1", - proxy: { - url: "https://example.com", - }, - service: "Greeter", - url: "https://example.com", - }, - variables: [ - { - name: "VARIABLE_NAME", - type: "text", - }, - ], - }, - locations: ["aws:eu-west-3"], - message: "", - name: "Example test name", - options: { - ci: { - executionRule: "blocking", - }, - deviceIds: ["chrome.laptop_large"], - httpVersion: "http1", - monitorOptions: { - notificationPresetName: "show_all", - }, - restrictedRoles: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], - retry: {}, - rumSettings: { - applicationId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - clientTokenId: 12345, - isEnabled: true, - }, - scheduling: { - timeframes: [ - { - day: 1, - from: "07:00", - to: "16:00", - }, - { - day: 3, - from: "07:00", - to: "16:00", - }, - ], - timezone: "America/New_York", - }, - }, - status: "live", - steps: [ - { - type: "assertElementContent", - }, - ], - tags: ["env:prod"], - type: "browser", - }, - publicId: "public_id", -}; - -apiInstance - .updateBrowserTest(params) - .then((data: v1.SyntheticsBrowserTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/UpdateMobileTest.ts b/examples/v1/synthetics/UpdateMobileTest.ts deleted file mode 100644 index c87b2ec0eda7..000000000000 --- a/examples/v1/synthetics/UpdateMobileTest.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Edit a Mobile test returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -// there is a valid "synthetics_mobile_test" in the system -const SYNTHETICS_MOBILE_TEST_PUBLIC_ID = process.env - .SYNTHETICS_MOBILE_TEST_PUBLIC_ID as string; - -const params: v1.SyntheticsApiUpdateMobileTestRequest = { - body: { - name: "Example-Synthetic-updated", - status: "paused", - type: "mobile", - config: { - variables: [], - }, - message: "", - options: { - deviceIds: ["synthetics:mobile:device:iphone_15_ios_17"], - mobileApplication: { - applicationId: "ab0e0aed-536d-411a-9a99-5428c27d8f8e", - referenceId: "6115922a-5f5d-455e-bc7e-7955a57f3815", - referenceType: "version", - }, - tickEvery: 3600, - }, - steps: [], - }, - publicId: SYNTHETICS_MOBILE_TEST_PUBLIC_ID, -}; - -apiInstance - .updateMobileTest(params) - .then((data: v1.SyntheticsMobileTest) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/UpdatePrivateLocation.ts b/examples/v1/synthetics/UpdatePrivateLocation.ts deleted file mode 100644 index db94ac7833f1..000000000000 --- a/examples/v1/synthetics/UpdatePrivateLocation.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Edit a private location returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiUpdatePrivateLocationRequest = { - body: { - description: "Description of private location", - metadata: { - restrictedRoles: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], - }, - name: "New private location", - tags: ["team:front"], - }, - locationId: "location_id", -}; - -apiInstance - .updatePrivateLocation(params) - .then((data: v1.SyntheticsPrivateLocation) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/synthetics/UpdateTestPauseStatus.ts b/examples/v1/synthetics/UpdateTestPauseStatus.ts deleted file mode 100644 index 0783ce1db4f7..000000000000 --- a/examples/v1/synthetics/UpdateTestPauseStatus.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Pause or start a test returns "OK - Returns a boolean indicating if the update was successful." response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiUpdateTestPauseStatusRequest = { - body: { - newStatus: "live", - }, - publicId: "public_id", -}; - -apiInstance - .updateTestPauseStatus(params) - .then((data: boolean) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/tags/CreateHostTags.ts b/examples/v1/tags/CreateHostTags.ts deleted file mode 100644 index 0dd319e377c5..000000000000 --- a/examples/v1/tags/CreateHostTags.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Add tags to a host returns "Created" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.TagsApi(configuration); - -const params: v1.TagsApiCreateHostTagsRequest = { - body: { - host: "test.host", - tags: ["environment:production"], - }, - hostName: "host_name", -}; - -apiInstance - .createHostTags(params) - .then((data: v1.HostTags) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/tags/DeleteHostTags.ts b/examples/v1/tags/DeleteHostTags.ts deleted file mode 100644 index 6217540a416d..000000000000 --- a/examples/v1/tags/DeleteHostTags.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Remove host tags returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.TagsApi(configuration); - -const params: v1.TagsApiDeleteHostTagsRequest = { - hostName: "host_name", -}; - -apiInstance - .deleteHostTags(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/tags/GetHostTags.ts b/examples/v1/tags/GetHostTags.ts deleted file mode 100644 index e96c5c517606..000000000000 --- a/examples/v1/tags/GetHostTags.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get host tags returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.TagsApi(configuration); - -const params: v1.TagsApiGetHostTagsRequest = { - hostName: "host_name", -}; - -apiInstance - .getHostTags(params) - .then((data: v1.HostTags) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/tags/ListHostTags.ts b/examples/v1/tags/ListHostTags.ts deleted file mode 100644 index 683847aec607..000000000000 --- a/examples/v1/tags/ListHostTags.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get Tags returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.TagsApi(configuration); - -apiInstance - .listHostTags() - .then((data: v1.TagToHosts) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/tags/UpdateHostTags.ts b/examples/v1/tags/UpdateHostTags.ts deleted file mode 100644 index f49b7d612a43..000000000000 --- a/examples/v1/tags/UpdateHostTags.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Update host tags returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.TagsApi(configuration); - -const params: v1.TagsApiUpdateHostTagsRequest = { - body: { - host: "test.host", - tags: ["environment:production"], - }, - hostName: "host_name", -}; - -apiInstance - .updateHostTags(params) - .then((data: v1.HostTags) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetDailyCustomReports.ts b/examples/v1/usage-metering/GetDailyCustomReports.ts deleted file mode 100644 index f5275efe1f1c..000000000000 --- a/examples/v1/usage-metering/GetDailyCustomReports.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the list of available daily custom reports returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -apiInstance - .getDailyCustomReports() - .then((data: v1.UsageCustomReportsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetHourlyUsageAttribution.ts b/examples/v1/usage-metering/GetHourlyUsageAttribution.ts deleted file mode 100644 index 189577f75284..000000000000 --- a/examples/v1/usage-metering/GetHourlyUsageAttribution.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage attribution returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetHourlyUsageAttributionRequest = { - startHr: new Date(new Date().getTime() + -3 * 86400 * 1000), - usageType: "infra_host_usage", -}; - -apiInstance - .getHourlyUsageAttribution(params) - .then((data: v1.HourlyUsageAttributionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetIncidentManagement.ts b/examples/v1/usage-metering/GetIncidentManagement.ts deleted file mode 100644 index 0efca1c74569..000000000000 --- a/examples/v1/usage-metering/GetIncidentManagement.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for incident management returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetIncidentManagementRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getIncidentManagement(params) - .then((data: v1.UsageIncidentManagementResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetIngestedSpans.ts b/examples/v1/usage-metering/GetIngestedSpans.ts deleted file mode 100644 index 306b92f23861..000000000000 --- a/examples/v1/usage-metering/GetIngestedSpans.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for ingested spans returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetIngestedSpansRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getIngestedSpans(params) - .then((data: v1.UsageIngestedSpansResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetMonthlyCustomReports.ts b/examples/v1/usage-metering/GetMonthlyCustomReports.ts deleted file mode 100644 index 3ce1e9eafcc2..000000000000 --- a/examples/v1/usage-metering/GetMonthlyCustomReports.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the list of available monthly custom reports returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -apiInstance - .getMonthlyCustomReports() - .then((data: v1.UsageCustomReportsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetMonthlyUsageAttribution.ts b/examples/v1/usage-metering/GetMonthlyUsageAttribution.ts deleted file mode 100644 index d025bbf94a28..000000000000 --- a/examples/v1/usage-metering/GetMonthlyUsageAttribution.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get monthly usage attribution returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetMonthlyUsageAttributionRequest = { - startMonth: new Date(new Date().getTime() + -3 * 86400 * 1000), - fields: "infra_host_usage", -}; - -apiInstance - .getMonthlyUsageAttribution(params) - .then((data: v1.MonthlyUsageAttributionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.ts b/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.ts deleted file mode 100644 index 24894f8c87f7..000000000000 --- a/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Paginate monthly usage attribution - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -// there is a valid "monthly_usage_attribution" response -const MONTHLY_USAGE_ATTRIBUTION_METADATA_PAGINATION_NEXT_RECORD_ID = process.env - .MONTHLY_USAGE_ATTRIBUTION_METADATA_PAGINATION_NEXT_RECORD_ID as string; - -const params: v1.UsageMeteringApiGetMonthlyUsageAttributionRequest = { - startMonth: new Date(new Date().getTime() + -3 * 86400 * 1000), - fields: "infra_host_usage", - nextRecordId: MONTHLY_USAGE_ATTRIBUTION_METADATA_PAGINATION_NEXT_RECORD_ID, -}; - -apiInstance - .getMonthlyUsageAttribution(params) - .then((data: v1.MonthlyUsageAttributionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.ts b/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.ts deleted file mode 100644 index e36b48740f96..000000000000 --- a/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get specified daily custom reports returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetSpecifiedDailyCustomReportsRequest = { - reportId: "2022-03-20", -}; - -apiInstance - .getSpecifiedDailyCustomReports(params) - .then((data: v1.UsageSpecifiedCustomReportsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.ts b/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.ts deleted file mode 100644 index a90ebd499ad5..000000000000 --- a/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get specified monthly custom reports returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest = { - reportId: "2021-05-01", -}; - -apiInstance - .getSpecifiedMonthlyCustomReports(params) - .then((data: v1.UsageSpecifiedCustomReportsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageAnalyzedLogs.ts b/examples/v1/usage-metering/GetUsageAnalyzedLogs.ts deleted file mode 100644 index fe704eaf4006..000000000000 --- a/examples/v1/usage-metering/GetUsageAnalyzedLogs.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for analyzed logs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageAnalyzedLogsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageAnalyzedLogs(params) - .then((data: v1.UsageAnalyzedLogsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageAuditLogs.ts b/examples/v1/usage-metering/GetUsageAuditLogs.ts deleted file mode 100644 index fb0d7a567950..000000000000 --- a/examples/v1/usage-metering/GetUsageAuditLogs.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for audit logs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageAuditLogsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageAuditLogs(params) - .then((data: v1.UsageAuditLogsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageBillableSummary.ts b/examples/v1/usage-metering/GetUsageBillableSummary.ts deleted file mode 100644 index 592b4b0b7975..000000000000 --- a/examples/v1/usage-metering/GetUsageBillableSummary.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get billable usage across your account returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -apiInstance - .getUsageBillableSummary() - .then((data: v1.UsageBillableSummaryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageCIApp.ts b/examples/v1/usage-metering/GetUsageCIApp.ts deleted file mode 100644 index 1c416d8f4adf..000000000000 --- a/examples/v1/usage-metering/GetUsageCIApp.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for CI visibility returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageCIAppRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageCIApp(params) - .then((data: v1.UsageCIVisibilityResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageCWS.ts b/examples/v1/usage-metering/GetUsageCWS.ts deleted file mode 100644 index 9cc3b64fb728..000000000000 --- a/examples/v1/usage-metering/GetUsageCWS.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for cloud workload security returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageCWSRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageCWS(params) - .then((data: v1.UsageCWSResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.ts b/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.ts deleted file mode 100644 index 8438e565889b..000000000000 --- a/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for CSM Pro returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest = - { - startHr: new Date(new Date().getTime() + -3 * 86400 * 1000), - }; - -apiInstance - .getUsageCloudSecurityPostureManagement(params) - .then((data: v1.UsageCloudSecurityPostureManagementResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageDBM.ts b/examples/v1/usage-metering/GetUsageDBM.ts deleted file mode 100644 index 5b47c0efd931..000000000000 --- a/examples/v1/usage-metering/GetUsageDBM.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for database monitoring returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageDBMRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageDBM(params) - .then((data: v1.UsageDBMResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageDBM_3446806203.ts b/examples/v1/usage-metering/GetUsageDBM_3446806203.ts deleted file mode 100644 index 06d60ea8dfa5..000000000000 --- a/examples/v1/usage-metering/GetUsageDBM_3446806203.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Database Monitoring returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageDBMRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageDBM(params) - .then((data: v1.UsageDBMResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageFargate.ts b/examples/v1/usage-metering/GetUsageFargate.ts deleted file mode 100644 index c714101f37b8..000000000000 --- a/examples/v1/usage-metering/GetUsageFargate.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Fargate returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageFargateRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageFargate(params) - .then((data: v1.UsageFargateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageHosts.ts b/examples/v1/usage-metering/GetUsageHosts.ts deleted file mode 100644 index 0dc9dbda199d..000000000000 --- a/examples/v1/usage-metering/GetUsageHosts.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for hosts and containers returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageHostsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageHosts(params) - .then((data: v1.UsageHostsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageIndexedSpans.ts b/examples/v1/usage-metering/GetUsageIndexedSpans.ts deleted file mode 100644 index 7c3fb10ec963..000000000000 --- a/examples/v1/usage-metering/GetUsageIndexedSpans.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for indexed spans returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageIndexedSpansRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageIndexedSpans(params) - .then((data: v1.UsageIndexedSpansResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageInternetOfThings.ts b/examples/v1/usage-metering/GetUsageInternetOfThings.ts deleted file mode 100644 index e996e1620e14..000000000000 --- a/examples/v1/usage-metering/GetUsageInternetOfThings.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for IoT returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageInternetOfThingsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageInternetOfThings(params) - .then((data: v1.UsageIoTResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageLambda.ts b/examples/v1/usage-metering/GetUsageLambda.ts deleted file mode 100644 index 22679f9bb598..000000000000 --- a/examples/v1/usage-metering/GetUsageLambda.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Lambda returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageLambdaRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageLambda(params) - .then((data: v1.UsageLambdaResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageLogs.ts b/examples/v1/usage-metering/GetUsageLogs.ts deleted file mode 100644 index 776082806715..000000000000 --- a/examples/v1/usage-metering/GetUsageLogs.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for logs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageLogsRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageLogs(params) - .then((data: v1.UsageLogsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageLogsByIndex.ts b/examples/v1/usage-metering/GetUsageLogsByIndex.ts deleted file mode 100644 index 1131da725629..000000000000 --- a/examples/v1/usage-metering/GetUsageLogsByIndex.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for logs by index returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageLogsByIndexRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageLogsByIndex(params) - .then((data: v1.UsageLogsByIndexResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.ts b/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.ts deleted file mode 100644 index 2f5e9364bab1..000000000000 --- a/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Logs by Index returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageLogsByIndexRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageLogsByIndex(params) - .then((data: v1.UsageLogsByIndexResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageLogsByRetention.ts b/examples/v1/usage-metering/GetUsageLogsByRetention.ts deleted file mode 100644 index 6b32f36330c4..000000000000 --- a/examples/v1/usage-metering/GetUsageLogsByRetention.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly logs usage by retention returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageLogsByRetentionRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageLogsByRetention(params) - .then((data: v1.UsageLogsByRetentionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageLogs_2562396405.ts b/examples/v1/usage-metering/GetUsageLogs_2562396405.ts deleted file mode 100644 index 4fc7de045403..000000000000 --- a/examples/v1/usage-metering/GetUsageLogs_2562396405.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Logs returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageLogsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageLogs(params) - .then((data: v1.UsageLogsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageNetworkFlows.ts b/examples/v1/usage-metering/GetUsageNetworkFlows.ts deleted file mode 100644 index 82c68f91cd67..000000000000 --- a/examples/v1/usage-metering/GetUsageNetworkFlows.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * get hourly usage for network flows returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageNetworkFlowsRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageNetworkFlows(params) - .then((data: v1.UsageNetworkFlowsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.ts b/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.ts deleted file mode 100644 index 4b5daf202d8a..000000000000 --- a/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Network Flows returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageNetworkFlowsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageNetworkFlows(params) - .then((data: v1.UsageNetworkFlowsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageNetworkHosts.ts b/examples/v1/usage-metering/GetUsageNetworkHosts.ts deleted file mode 100644 index 9ba893b06c60..000000000000 --- a/examples/v1/usage-metering/GetUsageNetworkHosts.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for network hosts returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageNetworkHostsRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageNetworkHosts(params) - .then((data: v1.UsageNetworkHostsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.ts b/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.ts deleted file mode 100644 index b9a1d9cd706f..000000000000 --- a/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Network Hosts returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageNetworkHostsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageNetworkHosts(params) - .then((data: v1.UsageNetworkHostsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageOnlineArchive.ts b/examples/v1/usage-metering/GetUsageOnlineArchive.ts deleted file mode 100644 index 213688495cb1..000000000000 --- a/examples/v1/usage-metering/GetUsageOnlineArchive.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for online archive returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageOnlineArchiveRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageOnlineArchive(params) - .then((data: v1.UsageOnlineArchiveResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.ts b/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.ts deleted file mode 100644 index 217a05d2eba1..000000000000 --- a/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Online Archive returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageOnlineArchiveRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageOnlineArchive(params) - .then((data: v1.UsageOnlineArchiveResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageProfiling.ts b/examples/v1/usage-metering/GetUsageProfiling.ts deleted file mode 100644 index eeb9c548f60b..000000000000 --- a/examples/v1/usage-metering/GetUsageProfiling.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for profiled hosts returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageProfilingRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageProfiling(params) - .then((data: v1.UsageProfilingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageRumSessions.ts b/examples/v1/usage-metering/GetUsageRumSessions.ts deleted file mode 100644 index 9d26809c4cd0..000000000000 --- a/examples/v1/usage-metering/GetUsageRumSessions.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for RUM sessions returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageRumSessionsRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageRumSessions(params) - .then((data: v1.UsageRumSessionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageRumSessions_3271366243.ts b/examples/v1/usage-metering/GetUsageRumSessions_3271366243.ts deleted file mode 100644 index d9e3bc8fd9c1..000000000000 --- a/examples/v1/usage-metering/GetUsageRumSessions_3271366243.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get mobile hourly usage for RUM Sessions returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageRumSessionsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), - type: "mobile", -}; - -apiInstance - .getUsageRumSessions(params) - .then((data: v1.UsageRumSessionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageRumSessions_714937291.ts b/examples/v1/usage-metering/GetUsageRumSessions_714937291.ts deleted file mode 100644 index 4d5473de91f1..000000000000 --- a/examples/v1/usage-metering/GetUsageRumSessions_714937291.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for RUM Sessions returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageRumSessionsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageRumSessions(params) - .then((data: v1.UsageRumSessionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageRumUnits.ts b/examples/v1/usage-metering/GetUsageRumUnits.ts deleted file mode 100644 index a5d7b6d26d1f..000000000000 --- a/examples/v1/usage-metering/GetUsageRumUnits.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for RUM units returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageRumUnitsRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageRumUnits(params) - .then((data: v1.UsageRumUnitsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageRumUnits_3959755399.ts b/examples/v1/usage-metering/GetUsageRumUnits_3959755399.ts deleted file mode 100644 index 973a61c10af8..000000000000 --- a/examples/v1/usage-metering/GetUsageRumUnits_3959755399.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for RUM Units returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageRumUnitsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageRumUnits(params) - .then((data: v1.UsageRumUnitsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSDS.ts b/examples/v1/usage-metering/GetUsageSDS.ts deleted file mode 100644 index 4a60bf814b52..000000000000 --- a/examples/v1/usage-metering/GetUsageSDS.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for sensitive data scanner returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSDSRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageSDS(params) - .then((data: v1.UsageSDSResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSDS_271128478.ts b/examples/v1/usage-metering/GetUsageSDS_271128478.ts deleted file mode 100644 index fb51e13cd3f3..000000000000 --- a/examples/v1/usage-metering/GetUsageSDS_271128478.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Sensitive Data Scanner returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSDSRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageSDS(params) - .then((data: v1.UsageSDSResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSNMP.ts b/examples/v1/usage-metering/GetUsageSNMP.ts deleted file mode 100644 index a16b39fbbc8a..000000000000 --- a/examples/v1/usage-metering/GetUsageSNMP.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for SNMP devices returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSNMPRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageSNMP(params) - .then((data: v1.UsageSNMPResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSummary.ts b/examples/v1/usage-metering/GetUsageSummary.ts deleted file mode 100644 index fc60692a1fb9..000000000000 --- a/examples/v1/usage-metering/GetUsageSummary.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get usage across your account returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSummaryRequest = { - startMonth: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageSummary(params) - .then((data: v1.UsageSummaryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSynthetics.ts b/examples/v1/usage-metering/GetUsageSynthetics.ts deleted file mode 100644 index c00296534c3f..000000000000 --- a/examples/v1/usage-metering/GetUsageSynthetics.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for synthetics checks returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSyntheticsRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageSynthetics(params) - .then((data: v1.UsageSyntheticsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSyntheticsAPI.ts b/examples/v1/usage-metering/GetUsageSyntheticsAPI.ts deleted file mode 100644 index 144643c2dd7a..000000000000 --- a/examples/v1/usage-metering/GetUsageSyntheticsAPI.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for synthetics API checks returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSyntheticsAPIRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageSyntheticsAPI(params) - .then((data: v1.UsageSyntheticsAPIResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.ts b/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.ts deleted file mode 100644 index 5c936969cb32..000000000000 --- a/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Synthetics API Checks returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSyntheticsAPIRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageSyntheticsAPI(params) - .then((data: v1.UsageSyntheticsAPIResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSyntheticsBrowser.ts b/examples/v1/usage-metering/GetUsageSyntheticsBrowser.ts deleted file mode 100644 index baa476b6c361..000000000000 --- a/examples/v1/usage-metering/GetUsageSyntheticsBrowser.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get hourly usage for synthetics browser checks returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSyntheticsBrowserRequest = { - startHr: new Date(2021, 11, 11, 11, 11, 11, 111000), -}; - -apiInstance - .getUsageSyntheticsBrowser(params) - .then((data: v1.UsageSyntheticsBrowserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.ts b/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.ts deleted file mode 100644 index fa4e1bd096e3..000000000000 --- a/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Synthetics Browser Checks returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageSyntheticsBrowserRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageSyntheticsBrowser(params) - .then((data: v1.UsageSyntheticsBrowserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageTimeseries.ts b/examples/v1/usage-metering/GetUsageTimeseries.ts deleted file mode 100644 index d5ffab81e4c3..000000000000 --- a/examples/v1/usage-metering/GetUsageTimeseries.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for custom metrics returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageTimeseriesRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageTimeseries(params) - .then((data: v1.UsageTimeseriesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/usage-metering/GetUsageTopAvgMetrics.ts b/examples/v1/usage-metering/GetUsageTopAvgMetrics.ts deleted file mode 100644 index f294a57cdded..000000000000 --- a/examples/v1/usage-metering/GetUsageTopAvgMetrics.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all custom metrics by hourly average returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsageMeteringApi(configuration); - -const params: v1.UsageMeteringApiGetUsageTopAvgMetricsRequest = { - day: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageTopAvgMetrics(params) - .then((data: v1.UsageTopAvgMetricsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/users/CreateUser.ts b/examples/v1/users/CreateUser.ts deleted file mode 100644 index 0626b788256f..000000000000 --- a/examples/v1/users/CreateUser.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Create a user returns "User created" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsersApi(configuration); - -const params: v1.UsersApiCreateUserRequest = { - body: { - accessRole: "ro", - disabled: false, - email: "test@datadoghq.com", - handle: "test@datadoghq.com", - name: "test user", - }, -}; - -apiInstance - .createUser(params) - .then((data: v1.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/users/CreateUser_266604071.ts b/examples/v1/users/CreateUser_266604071.ts deleted file mode 100644 index 5582bd0094b3..000000000000 --- a/examples/v1/users/CreateUser_266604071.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Create a user returns null access role - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsersApi(configuration); - -const params: v1.UsersApiCreateUserRequest = { - body: { - accessRole: undefined, - disabled: false, - email: "test@datadoghq.com", - handle: "test@datadoghq.com", - name: "test user", - }, -}; - -apiInstance - .createUser(params) - .then((data: v1.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/users/DisableUser.ts b/examples/v1/users/DisableUser.ts deleted file mode 100644 index f3052c71e714..000000000000 --- a/examples/v1/users/DisableUser.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Disable a user returns "User disabled" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsersApi(configuration); - -const params: v1.UsersApiDisableUserRequest = { - userHandle: "test@datadoghq.com", -}; - -apiInstance - .disableUser(params) - .then((data: v1.UserDisableResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/users/GetUser.ts b/examples/v1/users/GetUser.ts deleted file mode 100644 index 15e1b2c154f2..000000000000 --- a/examples/v1/users/GetUser.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get user details returns "OK for get user" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsersApi(configuration); - -const params: v1.UsersApiGetUserRequest = { - userHandle: "test@datadoghq.com", -}; - -apiInstance - .getUser(params) - .then((data: v1.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/users/ListUsers.ts b/examples/v1/users/ListUsers.ts deleted file mode 100644 index 4b00789babef..000000000000 --- a/examples/v1/users/ListUsers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all users returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsersApi(configuration); - -apiInstance - .listUsers() - .then((data: v1.UserListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/users/UpdateUser.ts b/examples/v1/users/UpdateUser.ts deleted file mode 100644 index 756ccdc8a01e..000000000000 --- a/examples/v1/users/UpdateUser.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Update a user returns "User updated" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.UsersApi(configuration); - -const params: v1.UsersApiUpdateUserRequest = { - body: { - accessRole: "ro", - disabled: false, - email: "test@datadoghq.com", - handle: "test@datadoghq.com", - name: "test user", - }, - userHandle: "test@datadoghq.com", -}; - -apiInstance - .updateUser(params) - .then((data: v1.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/CreateWebhooksIntegration.ts b/examples/v1/webhooks-integration/CreateWebhooksIntegration.ts deleted file mode 100644 index 043f05406dfa..000000000000 --- a/examples/v1/webhooks-integration/CreateWebhooksIntegration.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Create a webhooks integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -const params: v1.WebhooksIntegrationApiCreateWebhooksIntegrationRequest = { - body: { - name: "Example-Webhooks-Integration", - url: "https://example.com/webhook", - }, -}; - -apiInstance - .createWebhooksIntegration(params) - .then((data: v1.WebhooksIntegration) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.ts b/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.ts deleted file mode 100644 index 87e19e336a30..000000000000 --- a/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Create a custom variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -const params: v1.WebhooksIntegrationApiCreateWebhooksIntegrationCustomVariableRequest = - { - body: { - isSecret: true, - name: "EXAMPLEWEBHOOKSINTEGRATION", - value: "CUSTOM_VARIABLE_VALUE", - }, - }; - -apiInstance - .createWebhooksIntegrationCustomVariable(params) - .then((data: v1.WebhooksIntegrationCustomVariableResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/DeleteWebhooksIntegration.ts b/examples/v1/webhooks-integration/DeleteWebhooksIntegration.ts deleted file mode 100644 index e6a18c0efc15..000000000000 --- a/examples/v1/webhooks-integration/DeleteWebhooksIntegration.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a webhook returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -// there is a valid "webhook" in the system -const WEBHOOK_NAME = process.env.WEBHOOK_NAME as string; - -const params: v1.WebhooksIntegrationApiDeleteWebhooksIntegrationRequest = { - webhookName: WEBHOOK_NAME, -}; - -apiInstance - .deleteWebhooksIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.ts b/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.ts deleted file mode 100644 index 6aa67fac1599..000000000000 --- a/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Delete a custom variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -// there is a valid "webhook_custom_variable" in the system -const WEBHOOK_CUSTOM_VARIABLE_NAME = process.env - .WEBHOOK_CUSTOM_VARIABLE_NAME as string; - -const params: v1.WebhooksIntegrationApiDeleteWebhooksIntegrationCustomVariableRequest = - { - customVariableName: WEBHOOK_CUSTOM_VARIABLE_NAME, - }; - -apiInstance - .deleteWebhooksIntegrationCustomVariable(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/GetWebhooksIntegration.ts b/examples/v1/webhooks-integration/GetWebhooksIntegration.ts deleted file mode 100644 index fc44e4772fd3..000000000000 --- a/examples/v1/webhooks-integration/GetWebhooksIntegration.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a webhook integration returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -// there is a valid "webhook" in the system -const WEBHOOK_NAME = process.env.WEBHOOK_NAME as string; - -const params: v1.WebhooksIntegrationApiGetWebhooksIntegrationRequest = { - webhookName: WEBHOOK_NAME, -}; - -apiInstance - .getWebhooksIntegration(params) - .then((data: v1.WebhooksIntegration) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.ts b/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.ts deleted file mode 100644 index 497b770939c9..000000000000 --- a/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a custom variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -const params: v1.WebhooksIntegrationApiGetWebhooksIntegrationCustomVariableRequest = - { - customVariableName: "custom_variable_name", - }; - -apiInstance - .getWebhooksIntegrationCustomVariable(params) - .then((data: v1.WebhooksIntegrationCustomVariableResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/UpdateWebhooksIntegration.ts b/examples/v1/webhooks-integration/UpdateWebhooksIntegration.ts deleted file mode 100644 index dbf69e50cfdb..000000000000 --- a/examples/v1/webhooks-integration/UpdateWebhooksIntegration.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Update a webhook returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -// there is a valid "webhook" in the system -const WEBHOOK_NAME = process.env.WEBHOOK_NAME as string; - -const params: v1.WebhooksIntegrationApiUpdateWebhooksIntegrationRequest = { - body: { - url: "https://example.com/webhook-updated", - }, - webhookName: WEBHOOK_NAME, -}; - -apiInstance - .updateWebhooksIntegration(params) - .then((data: v1.WebhooksIntegration) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.ts b/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.ts deleted file mode 100644 index df3ad6c745fe..000000000000 --- a/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Update a custom variable returns "OK" response - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.WebhooksIntegrationApi(configuration); - -// there is a valid "webhook_custom_variable" in the system -const WEBHOOK_CUSTOM_VARIABLE_NAME = process.env - .WEBHOOK_CUSTOM_VARIABLE_NAME as string; - -const params: v1.WebhooksIntegrationApiUpdateWebhooksIntegrationCustomVariableRequest = - { - body: { - value: "variable-updated", - }, - customVariableName: WEBHOOK_CUSTOM_VARIABLE_NAME, - }; - -apiInstance - .updateWebhooksIntegrationCustomVariable(params) - .then((data: v1.WebhooksIntegrationCustomVariableResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/action-connection/CreateActionConnection.ts b/examples/v2/action-connection/CreateActionConnection.ts deleted file mode 100644 index 8d6a74944f97..000000000000 --- a/examples/v2/action-connection/CreateActionConnection.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Create a new Action Connection returns "Successfully created Action Connection" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ActionConnectionApi(configuration); - -const params: v2.ActionConnectionApiCreateActionConnectionRequest = { - body: { - data: { - type: "action_connection", - attributes: { - name: "Cassette Connection DELETE_ME", - integration: { - type: "AWS", - credentials: { - type: "AWSAssumeRole", - role: "MyRoleUpdated", - accountId: "123456789123", - }, - }, - }, - }, - }, -}; - -apiInstance - .createActionConnection(params) - .then((data: v2.CreateActionConnectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/action-connection/DeleteActionConnection.ts b/examples/v2/action-connection/DeleteActionConnection.ts deleted file mode 100644 index 67a3517fa321..000000000000 --- a/examples/v2/action-connection/DeleteActionConnection.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete an existing Action Connection returns "The resource was deleted successfully." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ActionConnectionApi(configuration); - -const params: v2.ActionConnectionApiDeleteActionConnectionRequest = { - connectionId: "connection_id", -}; - -apiInstance - .deleteActionConnection(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/action-connection/DeleteActionConnection_2142905164.ts b/examples/v2/action-connection/DeleteActionConnection_2142905164.ts deleted file mode 100644 index f000b4fc5500..000000000000 --- a/examples/v2/action-connection/DeleteActionConnection_2142905164.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an existing Action Connection returns "Successfully deleted Action Connection" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ActionConnectionApi(configuration); - -// there is a valid "action_connection" in the system -const ACTION_CONNECTION_DATA_ID = process.env - .ACTION_CONNECTION_DATA_ID as string; - -const params: v2.ActionConnectionApiDeleteActionConnectionRequest = { - connectionId: ACTION_CONNECTION_DATA_ID, -}; - -apiInstance - .deleteActionConnection(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/action-connection/GetActionConnection.ts b/examples/v2/action-connection/GetActionConnection.ts deleted file mode 100644 index 2643345d06e5..000000000000 --- a/examples/v2/action-connection/GetActionConnection.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an existing Action Connection returns "Successfully get Action Connection" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ActionConnectionApi(configuration); - -const params: v2.ActionConnectionApiGetActionConnectionRequest = { - connectionId: "cb460d51-3c88-4e87-adac-d47131d0423d", -}; - -apiInstance - .getActionConnection(params) - .then((data: v2.GetActionConnectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/action-connection/UpdateActionConnection.ts b/examples/v2/action-connection/UpdateActionConnection.ts deleted file mode 100644 index c034f6834183..000000000000 --- a/examples/v2/action-connection/UpdateActionConnection.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Update an existing Action Connection returns "Successfully updated Action Connection" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ActionConnectionApi(configuration); - -const params: v2.ActionConnectionApiUpdateActionConnectionRequest = { - body: { - data: { - type: "action_connection", - attributes: { - name: "Cassette Connection", - integration: { - type: "AWS", - credentials: { - type: "AWSAssumeRole", - role: "MyRoleUpdated", - accountId: "123456789123", - }, - }, - }, - }, - }, - connectionId: "cb460d51-3c88-4e87-adac-d47131d0423d", -}; - -apiInstance - .updateActionConnection(params) - .then((data: v2.UpdateActionConnectionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/CreateAwsOnDemandTask.ts b/examples/v2/agentless-scanning/CreateAwsOnDemandTask.ts deleted file mode 100644 index e56f98afeb20..000000000000 --- a/examples/v2/agentless-scanning/CreateAwsOnDemandTask.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Post an AWS on demand task returns "AWS on demand task created successfully." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -const params: v2.AgentlessScanningApiCreateAwsOnDemandTaskRequest = { - body: { - data: { - attributes: { - arn: "arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test", - }, - type: "aws_resource", - }, - }, -}; - -apiInstance - .createAwsOnDemandTask(params) - .then((data: v2.AwsOnDemandResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/CreateAwsScanOptions.ts b/examples/v2/agentless-scanning/CreateAwsScanOptions.ts deleted file mode 100644 index 7443874b6684..000000000000 --- a/examples/v2/agentless-scanning/CreateAwsScanOptions.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Post AWS Scan Options returns "Agentless scan options enabled successfully." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -const params: v2.AgentlessScanningApiCreateAwsScanOptionsRequest = { - body: { - data: { - id: "000000000003", - type: "aws_scan_options", - attributes: { - lambda: true, - sensitiveData: false, - vulnContainersOs: true, - vulnHostOs: true, - }, - }, - }, -}; - -apiInstance - .createAwsScanOptions(params) - .then((data: v2.AwsScanOptionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/DeleteAwsScanOptions.ts b/examples/v2/agentless-scanning/DeleteAwsScanOptions.ts deleted file mode 100644 index d600bbb2f0ab..000000000000 --- a/examples/v2/agentless-scanning/DeleteAwsScanOptions.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete AWS Scan Options returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -const params: v2.AgentlessScanningApiDeleteAwsScanOptionsRequest = { - accountId: "account_id", -}; - -apiInstance - .deleteAwsScanOptions(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/GetAwsOnDemandTask.ts b/examples/v2/agentless-scanning/GetAwsOnDemandTask.ts deleted file mode 100644 index 5a7a496b4a8e..000000000000 --- a/examples/v2/agentless-scanning/GetAwsOnDemandTask.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get AWS On Demand task by id returns "OK." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -const params: v2.AgentlessScanningApiGetAwsOnDemandTaskRequest = { - taskId: "63d6b4f5-e5d0-4d90-824a-9580f05f026a", -}; - -apiInstance - .getAwsOnDemandTask(params) - .then((data: v2.AwsOnDemandResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/ListAwsOnDemandTasks.ts b/examples/v2/agentless-scanning/ListAwsOnDemandTasks.ts deleted file mode 100644 index adad7be415a7..000000000000 --- a/examples/v2/agentless-scanning/ListAwsOnDemandTasks.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get AWS On Demand tasks returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -apiInstance - .listAwsOnDemandTasks() - .then((data: v2.AwsOnDemandListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/ListAwsScanOptions.ts b/examples/v2/agentless-scanning/ListAwsScanOptions.ts deleted file mode 100644 index 9e95df602acd..000000000000 --- a/examples/v2/agentless-scanning/ListAwsScanOptions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get AWS Scan Options returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -apiInstance - .listAwsScanOptions() - .then((data: v2.AwsScanOptionsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/agentless-scanning/UpdateAwsScanOptions.ts b/examples/v2/agentless-scanning/UpdateAwsScanOptions.ts deleted file mode 100644 index 7d724672d349..000000000000 --- a/examples/v2/agentless-scanning/UpdateAwsScanOptions.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Patch AWS Scan Options returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AgentlessScanningApi(configuration); - -const params: v2.AgentlessScanningApiUpdateAwsScanOptionsRequest = { - body: { - data: { - type: "aws_scan_options", - id: "000000000002", - attributes: { - vulnHostOs: true, - vulnContainersOs: true, - lambda: false, - }, - }, - }, - accountId: "000000000002", -}; - -apiInstance - .updateAwsScanOptions(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/api-management/CreateOpenAPI.ts b/examples/v2/api-management/CreateOpenAPI.ts deleted file mode 100644 index e106491934d3..000000000000 --- a/examples/v2/api-management/CreateOpenAPI.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Create a new API returns "API created successfully" response - */ - -import * as fs from "fs"; -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createOpenAPI"] = true; -const apiInstance = new v2.APIManagementApi(configuration); - -const params: v2.APIManagementApiCreateOpenAPIRequest = { - openapiSpecFile: { - data: Buffer.from(fs.readFileSync("openapi-spec.yaml", "utf8")), - name: "openapi-spec.yaml", - }, -}; - -apiInstance - .createOpenAPI(params) - .then((data: v2.CreateOpenAPIResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/api-management/DeleteOpenAPI.ts b/examples/v2/api-management/DeleteOpenAPI.ts deleted file mode 100644 index 4f6e3c5b00ec..000000000000 --- a/examples/v2/api-management/DeleteOpenAPI.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an API returns "API deleted successfully" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteOpenAPI"] = true; -const apiInstance = new v2.APIManagementApi(configuration); - -// there is a valid "managed_api" in the system -const MANAGED_API_DATA_ID = process.env.MANAGED_API_DATA_ID as string; - -const params: v2.APIManagementApiDeleteOpenAPIRequest = { - id: MANAGED_API_DATA_ID, -}; - -apiInstance - .deleteOpenAPI(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/api-management/GetOpenAPI.ts b/examples/v2/api-management/GetOpenAPI.ts deleted file mode 100644 index 3645ea7d0ea0..000000000000 --- a/examples/v2/api-management/GetOpenAPI.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get an API returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getOpenAPI"] = true; -const apiInstance = new v2.APIManagementApi(configuration); - -// there is a valid "managed_api" in the system -const MANAGED_API_DATA_ID = process.env.MANAGED_API_DATA_ID as string; - -const params: v2.APIManagementApiGetOpenAPIRequest = { - id: MANAGED_API_DATA_ID, -}; - -apiInstance - .getOpenAPI(params) - .then((data: client.HttpFile) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/api-management/ListAPIs.ts b/examples/v2/api-management/ListAPIs.ts deleted file mode 100644 index 9a5e27b2b0ef..000000000000 --- a/examples/v2/api-management/ListAPIs.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List APIs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listAPIs"] = true; -const apiInstance = new v2.APIManagementApi(configuration); - -apiInstance - .listAPIs() - .then((data: v2.ListAPIsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/api-management/UpdateOpenAPI.ts b/examples/v2/api-management/UpdateOpenAPI.ts deleted file mode 100644 index 564049956e3a..000000000000 --- a/examples/v2/api-management/UpdateOpenAPI.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Update an API returns "API updated successfully" response - */ - -import * as fs from "fs"; -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateOpenAPI"] = true; -const apiInstance = new v2.APIManagementApi(configuration); - -// there is a valid "managed_api" in the system -const MANAGED_API_DATA_ID = process.env.MANAGED_API_DATA_ID as string; - -const params: v2.APIManagementApiUpdateOpenAPIRequest = { - id: MANAGED_API_DATA_ID, - openapiSpecFile: { - data: Buffer.from(fs.readFileSync("openapi-spec.yaml", "utf8")), - name: "openapi-spec.yaml", - }, -}; - -apiInstance - .updateOpenAPI(params) - .then((data: v2.UpdateOpenAPIResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/apm-retention-filters/CreateApmRetentionFilter.ts b/examples/v2/apm-retention-filters/CreateApmRetentionFilter.ts deleted file mode 100644 index fc5255a42160..000000000000 --- a/examples/v2/apm-retention-filters/CreateApmRetentionFilter.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Create a retention filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.APMRetentionFiltersApi(configuration); - -const params: v2.APMRetentionFiltersApiCreateApmRetentionFilterRequest = { - body: { - data: { - attributes: { - enabled: true, - filter: { - query: "@http.status_code:200 service:my-service", - }, - filterType: "spans-sampling-processor", - name: "my retention filter", - rate: 1.0, - }, - type: "apm_retention_filter", - }, - }, -}; - -apiInstance - .createApmRetentionFilter(params) - .then((data: v2.RetentionFilterCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.ts b/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.ts deleted file mode 100644 index 0b757bc5f272..000000000000 --- a/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a retention filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.APMRetentionFiltersApi(configuration); - -// there is a valid "retention_filter" in the system -const RETENTION_FILTER_DATA_ID = process.env.RETENTION_FILTER_DATA_ID as string; - -const params: v2.APMRetentionFiltersApiDeleteApmRetentionFilterRequest = { - filterId: RETENTION_FILTER_DATA_ID, -}; - -apiInstance - .deleteApmRetentionFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/apm-retention-filters/GetApmRetentionFilter.ts b/examples/v2/apm-retention-filters/GetApmRetentionFilter.ts deleted file mode 100644 index 68d1fde3b8f5..000000000000 --- a/examples/v2/apm-retention-filters/GetApmRetentionFilter.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a given APM retention filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.APMRetentionFiltersApi(configuration); - -// there is a valid "retention_filter" in the system -const RETENTION_FILTER_DATA_ID = process.env.RETENTION_FILTER_DATA_ID as string; - -const params: v2.APMRetentionFiltersApiGetApmRetentionFilterRequest = { - filterId: RETENTION_FILTER_DATA_ID, -}; - -apiInstance - .getApmRetentionFilter(params) - .then((data: v2.RetentionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/apm-retention-filters/ListApmRetentionFilters.ts b/examples/v2/apm-retention-filters/ListApmRetentionFilters.ts deleted file mode 100644 index 717845d92745..000000000000 --- a/examples/v2/apm-retention-filters/ListApmRetentionFilters.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all APM retention filters returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.APMRetentionFiltersApi(configuration); - -apiInstance - .listApmRetentionFilters() - .then((data: v2.RetentionFiltersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.ts b/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.ts deleted file mode 100644 index 1e98c9e58e2e..000000000000 --- a/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Re-order retention filters returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.APMRetentionFiltersApi(configuration); - -const params: v2.APMRetentionFiltersApiReorderApmRetentionFiltersRequest = { - body: { - data: [ - { - id: "jdZrilSJQLqzb6Cu7aub9Q", - type: "apm_retention_filter", - }, - { - id: "7RBOb7dLSYWI01yc3pIH8w", - type: "apm_retention_filter", - }, - ], - }, -}; - -apiInstance - .reorderApmRetentionFilters(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.ts b/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.ts deleted file mode 100644 index c1945d717f52..000000000000 --- a/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Update a retention filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.APMRetentionFiltersApi(configuration); - -// there is a valid "retention_filter" in the system -const RETENTION_FILTER_DATA_ID = process.env.RETENTION_FILTER_DATA_ID as string; - -const params: v2.APMRetentionFiltersApiUpdateApmRetentionFilterRequest = { - body: { - data: { - attributes: { - name: "test", - rate: 0.9, - filter: { - query: "@_top_level:1 test:service-demo", - }, - enabled: true, - filterType: "spans-sampling-processor", - }, - id: "test-id", - type: "apm_retention_filter", - }, - }, - filterId: RETENTION_FILTER_DATA_ID, -}; - -apiInstance - .updateApmRetentionFilter(params) - .then((data: v2.RetentionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/CreateApp.ts b/examples/v2/app-builder/CreateApp.ts deleted file mode 100644 index fbb399827450..000000000000 --- a/examples/v2/app-builder/CreateApp.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Create App returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -const params: v2.AppBuilderApiCreateAppRequest = { - body: { - data: { - type: "appDefinitions", - attributes: { - rootInstanceName: "grid0", - components: [ - { - name: "grid0", - type: "grid", - properties: { - children: [ - { - type: "gridCell", - name: "gridCell0", - properties: { - children: [ - { - name: "text0", - type: "text", - properties: { - isVisible: true, - }, - events: [], - }, - ], - isVisible: "true", - }, - events: [], - }, - { - type: "gridCell", - name: "gridCell2", - properties: { - children: [ - { - name: "table0", - type: "table", - properties: { - isVisible: true, - }, - events: [], - }, - ], - isVisible: "true", - }, - events: [], - }, - { - type: "gridCell", - name: "gridCell1", - properties: { - children: [ - { - name: "text1", - type: "text", - properties: { - isVisible: true, - }, - events: [], - }, - ], - isVisible: "true", - }, - events: [], - }, - { - type: "gridCell", - name: "gridCell3", - properties: { - children: [ - { - name: "button0", - type: "button", - properties: { - isVisible: true, - }, - events: [ - { - name: "click", - type: "setStateVariableValue", - }, - ], - }, - ], - isVisible: "true", - }, - events: [], - }, - { - type: "gridCell", - name: "gridCell4", - properties: { - children: [ - { - name: "button1", - type: "button", - properties: { - isVisible: true, - }, - events: [ - { - name: "click", - type: "setStateVariableValue", - }, - ], - }, - ], - isVisible: "true", - }, - events: [], - }, - ], - backgroundColor: "default", - }, - events: [], - }, - ], - queries: [ - { - id: "92ff0bb8-553b-4f31-87c7-ef5bd16d47d5", - type: "action", - name: "fetchFacts", - events: [], - properties: { - spec: { - fqn: "com.datadoghq.http.request", - connectionId: "5e63f4a8-4ce6-47de-ba11-f6617c1d54f3", - inputs: { - verb: "GET", - url: "https://catfact.ninja/facts", - urlParams: - "[{'key': 'limit', 'value': '${pageSize.value.toString()}'}, {'key': 'page', 'value': '${(table0.pageIndex + 1).toString()}'}]", - }, - }, - }, - }, - { - type: "stateVariable", - name: "pageSize", - properties: { - defaultValue: "${20}", - }, - id: "afd03c81-4075-4432-8618-ba09d52d2f2d", - }, - { - type: "dataTransform", - name: "randomFact", - properties: { - outputs: - "${(() => {const facts = fetchFacts.outputs.body.data\nreturn facts[Math.floor(Math.random()*facts.length)]\n})()}", - }, - id: "0fb22859-47dc-4137-9e41-7b67d04c525c", - }, - ], - name: "Example Cat Facts Viewer", - description: - "This is a slightly complicated example app that fetches and displays cat facts", - }, - }, - }, -}; - -apiInstance - .createApp(params) - .then((data: v2.CreateAppResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/DeleteApp.ts b/examples/v2/app-builder/DeleteApp.ts deleted file mode 100644 index 4a2d66c99343..000000000000 --- a/examples/v2/app-builder/DeleteApp.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete App returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -// there is a valid "app" in the system -const APP_DATA_ID = process.env.APP_DATA_ID as string; - -const params: v2.AppBuilderApiDeleteAppRequest = { - appId: APP_DATA_ID, -}; - -apiInstance - .deleteApp(params) - .then((data: v2.DeleteAppResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/DeleteApps.ts b/examples/v2/app-builder/DeleteApps.ts deleted file mode 100644 index 3cc9ad58d30b..000000000000 --- a/examples/v2/app-builder/DeleteApps.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Delete Multiple Apps returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -// there is a valid "app" in the system -const APP_DATA_ID = process.env.APP_DATA_ID as string; - -const params: v2.AppBuilderApiDeleteAppsRequest = { - body: { - data: [ - { - id: APP_DATA_ID, - type: "appDefinitions", - }, - ], - }, -}; - -apiInstance - .deleteApps(params) - .then((data: v2.DeleteAppsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/GetApp.ts b/examples/v2/app-builder/GetApp.ts deleted file mode 100644 index e95250b63947..000000000000 --- a/examples/v2/app-builder/GetApp.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get App returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -// there is a valid "app" in the system -const APP_DATA_ID = process.env.APP_DATA_ID as string; - -const params: v2.AppBuilderApiGetAppRequest = { - appId: APP_DATA_ID, -}; - -apiInstance - .getApp(params) - .then((data: v2.GetAppResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/ListApps.ts b/examples/v2/app-builder/ListApps.ts deleted file mode 100644 index 198a0f236e0f..000000000000 --- a/examples/v2/app-builder/ListApps.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Apps returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -apiInstance - .listApps() - .then((data: v2.ListAppsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/PublishApp.ts b/examples/v2/app-builder/PublishApp.ts deleted file mode 100644 index 6b5a6c7505ae..000000000000 --- a/examples/v2/app-builder/PublishApp.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Publish App returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -// there is a valid "app" in the system -const APP_DATA_ID = process.env.APP_DATA_ID as string; - -const params: v2.AppBuilderApiPublishAppRequest = { - appId: APP_DATA_ID, -}; - -apiInstance - .publishApp(params) - .then((data: v2.PublishAppResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/UnpublishApp.ts b/examples/v2/app-builder/UnpublishApp.ts deleted file mode 100644 index 712fdf96a9e4..000000000000 --- a/examples/v2/app-builder/UnpublishApp.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Unpublish App returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -// there is a valid "app" in the system -const APP_DATA_ID = process.env.APP_DATA_ID as string; - -const params: v2.AppBuilderApiUnpublishAppRequest = { - appId: APP_DATA_ID, -}; - -apiInstance - .unpublishApp(params) - .then((data: v2.UnpublishAppResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/app-builder/UpdateApp.ts b/examples/v2/app-builder/UpdateApp.ts deleted file mode 100644 index 60779dc90bcf..000000000000 --- a/examples/v2/app-builder/UpdateApp.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update App returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AppBuilderApi(configuration); - -// there is a valid "app" in the system -const APP_DATA_ID = process.env.APP_DATA_ID as string; - -const params: v2.AppBuilderApiUpdateAppRequest = { - body: { - data: { - attributes: { - name: "Updated Name", - rootInstanceName: "grid0", - }, - id: APP_DATA_ID, - type: "appDefinitions", - }, - }, - appId: APP_DATA_ID, -}; - -apiInstance - .updateApp(params) - .then((data: v2.UpdateAppResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.ts b/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.ts deleted file mode 100644 index 2455d8fe8dfb..000000000000 --- a/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Create a WAF custom rule returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -const params: v2.ApplicationSecurityApiCreateApplicationSecurityWafCustomRuleRequest = - { - body: { - data: { - attributes: { - action: { - action: "block_request", - parameters: { - location: "/blocking", - statusCode: 403, - }, - }, - blocking: false, - conditions: [ - { - operator: "match_regex", - parameters: { - data: "blocked_users", - inputs: [ - { - address: "server.db.statement", - keyPath: [], - }, - ], - list: [], - options: { - caseSensitive: false, - minLength: 0, - }, - regex: "path.*", - value: "custom_tag", - }, - }, - ], - enabled: false, - name: "Block request from a bad useragent", - pathGlob: "/api/search/*", - scope: [ - { - env: "prod", - service: "billing-service", - }, - ], - tags: { - category: "business_logic", - type: "users.login.success", - }, - }, - type: "custom_rule", - }, - }, - }; - -apiInstance - .createApplicationSecurityWafCustomRule(params) - .then((data: v2.ApplicationSecurityWafCustomRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.ts b/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.ts deleted file mode 100644 index d967e275b719..000000000000 --- a/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a WAF exclusion filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -const params: v2.ApplicationSecurityApiCreateApplicationSecurityWafExclusionFilterRequest = - { - body: { - data: { - attributes: { - description: "Exclude false positives on a path", - enabled: true, - parameters: ["list.search.query"], - pathGlob: "/accounts/*", - rulesTarget: [ - { - tags: { - category: "attack_attempt", - type: "lfi", - }, - }, - ], - scope: [ - { - env: "www", - service: "prod", - }, - ], - }, - type: "exclusion_filter", - }, - }, - }; - -apiInstance - .createApplicationSecurityWafExclusionFilter(params) - .then((data: v2.ApplicationSecurityWafExclusionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.ts b/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.ts deleted file mode 100644 index 753cbc60fb46..000000000000 --- a/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete a WAF Custom Rule returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -const params: v2.ApplicationSecurityApiDeleteApplicationSecurityWafCustomRuleRequest = - { - customRuleId: "custom_rule_id", - }; - -apiInstance - .deleteApplicationSecurityWafCustomRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.ts b/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.ts deleted file mode 100644 index 261fc7e98d47..000000000000 --- a/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete a WAF exclusion filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -// there is a valid "exclusion_filter" in the system -const EXCLUSION_FILTER_DATA_ID = process.env.EXCLUSION_FILTER_DATA_ID as string; - -const params: v2.ApplicationSecurityApiDeleteApplicationSecurityWafExclusionFilterRequest = - { - exclusionFilterId: EXCLUSION_FILTER_DATA_ID, - }; - -apiInstance - .deleteApplicationSecurityWafExclusionFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/GetApplicationSecurityWafCustomRule.ts b/examples/v2/application-security/GetApplicationSecurityWafCustomRule.ts deleted file mode 100644 index 92b51fda673b..000000000000 --- a/examples/v2/application-security/GetApplicationSecurityWafCustomRule.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a WAF custom rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -const params: v2.ApplicationSecurityApiGetApplicationSecurityWafCustomRuleRequest = - { - customRuleId: "custom_rule_id", - }; - -apiInstance - .getApplicationSecurityWafCustomRule(params) - .then((data: v2.ApplicationSecurityWafCustomRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.ts b/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.ts deleted file mode 100644 index 60a252876bcb..000000000000 --- a/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a WAF exclusion filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -// there is a valid "exclusion_filter" in the system -const EXCLUSION_FILTER_DATA_ID = process.env.EXCLUSION_FILTER_DATA_ID as string; - -const params: v2.ApplicationSecurityApiGetApplicationSecurityWafExclusionFilterRequest = - { - exclusionFilterId: EXCLUSION_FILTER_DATA_ID, - }; - -apiInstance - .getApplicationSecurityWafExclusionFilter(params) - .then((data: v2.ApplicationSecurityWafExclusionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.ts b/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.ts deleted file mode 100644 index dc40b42c238b..000000000000 --- a/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all WAF custom rules returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -apiInstance - .listApplicationSecurityWAFCustomRules() - .then((data: v2.ApplicationSecurityWafCustomRuleListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.ts b/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.ts deleted file mode 100644 index 4d106b2386ca..000000000000 --- a/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all WAF exclusion filters returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -apiInstance - .listApplicationSecurityWafExclusionFilters() - .then((data: v2.ApplicationSecurityWafExclusionFiltersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.ts b/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.ts deleted file mode 100644 index 4ff26d58d00a..000000000000 --- a/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Update a WAF Custom Rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -// there is a valid "custom_rule" in the system -const CUSTOM_RULE_DATA_ID = process.env.CUSTOM_RULE_DATA_ID as string; - -const params: v2.ApplicationSecurityApiUpdateApplicationSecurityWafCustomRuleRequest = - { - body: { - data: { - type: "custom_rule", - attributes: { - blocking: false, - conditions: [ - { - operator: "match_regex", - parameters: { - inputs: [ - { - address: "server.request.query", - keyPath: ["id"], - }, - ], - regex: "badactor", - }, - }, - ], - enabled: false, - name: "test", - pathGlob: "/test", - scope: [ - { - env: "test", - service: "test", - }, - ], - tags: { - category: "attack_attempt", - type: "test", - }, - }, - }, - }, - customRuleId: CUSTOM_RULE_DATA_ID, - }; - -apiInstance - .updateApplicationSecurityWafCustomRule(params) - .then((data: v2.ApplicationSecurityWafCustomRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.ts b/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.ts deleted file mode 100644 index 8882375d7039..000000000000 --- a/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Update a WAF exclusion filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ApplicationSecurityApi(configuration); - -// there is a valid "exclusion_filter" in the system -const EXCLUSION_FILTER_DATA_ID = process.env.EXCLUSION_FILTER_DATA_ID as string; - -const params: v2.ApplicationSecurityApiUpdateApplicationSecurityWafExclusionFilterRequest = - { - body: { - data: { - attributes: { - description: "Exclude false positives on a path", - enabled: false, - ipList: ["198.51.100.72"], - onMatch: "monitor", - }, - type: "exclusion_filter", - }, - }, - exclusionFilterId: EXCLUSION_FILTER_DATA_ID, - }; - -apiInstance - .updateApplicationSecurityWafExclusionFilter(params) - .then((data: v2.ApplicationSecurityWafExclusionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/audit/ListAuditLogs.ts b/examples/v2/audit/ListAuditLogs.ts deleted file mode 100644 index e1230acdb3ed..000000000000 --- a/examples/v2/audit/ListAuditLogs.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a list of Audit Logs events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuditApi(configuration); - -apiInstance - .listAuditLogs() - .then((data: v2.AuditLogsEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/audit/ListAuditLogs_1275402458.ts b/examples/v2/audit/ListAuditLogs_1275402458.ts deleted file mode 100644 index 5107d159c953..000000000000 --- a/examples/v2/audit/ListAuditLogs_1275402458.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a list of Audit Logs events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuditApi(configuration); - -const params: v2.AuditApiListAuditLogsRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listAuditLogsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/audit/SearchAuditLogs.ts b/examples/v2/audit/SearchAuditLogs.ts deleted file mode 100644 index 891c92bd82d1..000000000000 --- a/examples/v2/audit/SearchAuditLogs.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Search Audit Logs events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuditApi(configuration); - -const params: v2.AuditApiSearchAuditLogsRequest = { - body: { - filter: { - from: "now-15m", - query: "@type:session AND @session.type:user", - to: "now", - }, - options: { - timeOffset: 0, - timezone: "GMT", - }, - page: { - limit: 25, - }, - sort: "timestamp", - }, -}; - -apiInstance - .searchAuditLogs(params) - .then((data: v2.AuditLogsEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/audit/SearchAuditLogs_3215529662.ts b/examples/v2/audit/SearchAuditLogs_3215529662.ts deleted file mode 100644 index b0fb3ff22071..000000000000 --- a/examples/v2/audit/SearchAuditLogs_3215529662.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Search Audit Logs events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuditApi(configuration); - -const params: v2.AuditApiSearchAuditLogsRequest = { - body: { - filter: { - from: "now-15m", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.searchAuditLogsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/authn-mappings/CreateAuthNMapping.ts b/examples/v2/authn-mappings/CreateAuthNMapping.ts deleted file mode 100644 index 506808c6a2e9..000000000000 --- a/examples/v2/authn-mappings/CreateAuthNMapping.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Create an AuthN Mapping returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuthNMappingsApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.AuthNMappingsApiCreateAuthNMappingRequest = { - body: { - data: { - attributes: { - attributeKey: "exampleauthnmapping", - attributeValue: "Example-AuthN-Mapping", - }, - relationships: { - role: { - data: { - id: ROLE_DATA_ID, - type: "roles", - }, - }, - }, - type: "authn_mappings", - }, - }, -}; - -apiInstance - .createAuthNMapping(params) - .then((data: v2.AuthNMappingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/authn-mappings/DeleteAuthNMapping.ts b/examples/v2/authn-mappings/DeleteAuthNMapping.ts deleted file mode 100644 index 8f0fb167f6e4..000000000000 --- a/examples/v2/authn-mappings/DeleteAuthNMapping.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an AuthN Mapping returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuthNMappingsApi(configuration); - -// there is a valid "authn_mapping" in the system -const AUTHN_MAPPING_DATA_ID = process.env.AUTHN_MAPPING_DATA_ID as string; - -const params: v2.AuthNMappingsApiDeleteAuthNMappingRequest = { - authnMappingId: AUTHN_MAPPING_DATA_ID, -}; - -apiInstance - .deleteAuthNMapping(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/authn-mappings/GetAuthNMapping.ts b/examples/v2/authn-mappings/GetAuthNMapping.ts deleted file mode 100644 index 9d291e2454eb..000000000000 --- a/examples/v2/authn-mappings/GetAuthNMapping.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get an AuthN Mapping by UUID returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuthNMappingsApi(configuration); - -// there is a valid "authn_mapping" in the system -const AUTHN_MAPPING_DATA_ID = process.env.AUTHN_MAPPING_DATA_ID as string; - -const params: v2.AuthNMappingsApiGetAuthNMappingRequest = { - authnMappingId: AUTHN_MAPPING_DATA_ID, -}; - -apiInstance - .getAuthNMapping(params) - .then((data: v2.AuthNMappingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/authn-mappings/ListAuthNMappings.ts b/examples/v2/authn-mappings/ListAuthNMappings.ts deleted file mode 100644 index c5a58891bb84..000000000000 --- a/examples/v2/authn-mappings/ListAuthNMappings.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all AuthN Mappings returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuthNMappingsApi(configuration); - -apiInstance - .listAuthNMappings() - .then((data: v2.AuthNMappingsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/authn-mappings/UpdateAuthNMapping.ts b/examples/v2/authn-mappings/UpdateAuthNMapping.ts deleted file mode 100644 index 753b15d35621..000000000000 --- a/examples/v2/authn-mappings/UpdateAuthNMapping.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Edit an AuthN Mapping returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.AuthNMappingsApi(configuration); - -// there is a valid "authn_mapping" in the system -const AUTHN_MAPPING_DATA_ID = process.env.AUTHN_MAPPING_DATA_ID as string; - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.AuthNMappingsApiUpdateAuthNMappingRequest = { - body: { - data: { - attributes: { - attributeKey: "member-of", - attributeValue: "Development", - }, - id: AUTHN_MAPPING_DATA_ID, - relationships: { - role: { - data: { - id: ROLE_DATA_ID, - type: "roles", - }, - }, - }, - type: "authn_mappings", - }, - }, - authnMappingId: AUTHN_MAPPING_DATA_ID, -}; - -apiInstance - .updateAuthNMapping(params) - .then((data: v2.AuthNMappingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/CreateAWSAccount.ts b/examples/v2/aws-integration/CreateAWSAccount.ts deleted file mode 100644 index 9c42b4906806..000000000000 --- a/examples/v2/aws-integration/CreateAWSAccount.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Create an AWS integration returns "AWS Account object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createAWSAccount"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -const params: v2.AWSIntegrationApiCreateAWSAccountRequest = { - body: { - data: { - attributes: { - accountTags: ["key:value"], - authConfig: { - accessKeyId: "AKIAIOSFODNN7EXAMPLE", - secretAccessKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", - }, - awsAccountId: "123456789012", - awsPartition: "aws", - logsConfig: { - lambdaForwarder: { - lambdas: [ - "arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder", - ], - sources: ["s3"], - }, - }, - metricsConfig: { - automuteEnabled: true, - collectCloudwatchAlarms: true, - collectCustomMetrics: true, - enabled: true, - tagFilters: [ - { - namespace: "AWS/EC2", - tags: ["key:value"], - }, - ], - }, - resourcesConfig: { - cloudSecurityPostureManagementCollection: false, - extendedCollection: false, - }, - tracesConfig: {}, - }, - type: "account", - }, - }, -}; - -apiInstance - .createAWSAccount(params) - .then((data: v2.AWSAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/CreateAWSAccount_1716720881.ts b/examples/v2/aws-integration/CreateAWSAccount_1716720881.ts deleted file mode 100644 index 86992d33bda8..000000000000 --- a/examples/v2/aws-integration/CreateAWSAccount_1716720881.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create an AWS account returns "AWS Account object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createAWSAccount"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -const params: v2.AWSIntegrationApiCreateAWSAccountRequest = { - body: { - data: { - attributes: { - accountTags: ["key:value"], - authConfig: { - roleName: "DatadogIntegrationRole", - }, - awsAccountId: "123456789012", - awsPartition: "aws", - logsConfig: { - lambdaForwarder: { - lambdas: [ - "arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder", - ], - sources: ["s3"], - }, - }, - metricsConfig: { - automuteEnabled: true, - collectCloudwatchAlarms: true, - collectCustomMetrics: true, - enabled: true, - tagFilters: [ - { - namespace: "AWS/EC2", - tags: ["key:value"], - }, - ], - }, - resourcesConfig: { - cloudSecurityPostureManagementCollection: false, - extendedCollection: false, - }, - tracesConfig: {}, - }, - type: "account", - }, - }, -}; - -apiInstance - .createAWSAccount(params) - .then((data: v2.AWSAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/CreateNewAWSExternalID.ts b/examples/v2/aws-integration/CreateNewAWSExternalID.ts deleted file mode 100644 index ab45625f1bab..000000000000 --- a/examples/v2/aws-integration/CreateNewAWSExternalID.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Generate a new external ID returns "AWS External ID object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createNewAWSExternalID"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -apiInstance - .createNewAWSExternalID() - .then((data: v2.AWSNewExternalIDResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.ts b/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.ts deleted file mode 100644 index 25af4e41ec8b..000000000000 --- a/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Generate new external ID returns "AWS External ID object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createNewAWSExternalID"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -apiInstance - .createNewAWSExternalID() - .then((data: v2.AWSNewExternalIDResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/DeleteAWSAccount.ts b/examples/v2/aws-integration/DeleteAWSAccount.ts deleted file mode 100644 index 54a64b1948d7..000000000000 --- a/examples/v2/aws-integration/DeleteAWSAccount.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an AWS integration returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteAWSAccount"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -// there is a valid "aws_account_v2" in the system -const AWS_ACCOUNT_V2_DATA_ID = process.env.AWS_ACCOUNT_V2_DATA_ID as string; - -const params: v2.AWSIntegrationApiDeleteAWSAccountRequest = { - awsAccountConfigId: AWS_ACCOUNT_V2_DATA_ID, -}; - -apiInstance - .deleteAWSAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/GetAWSAccount.ts b/examples/v2/aws-integration/GetAWSAccount.ts deleted file mode 100644 index a1dfef1741f8..000000000000 --- a/examples/v2/aws-integration/GetAWSAccount.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get an AWS integration by config ID returns "AWS Account object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getAWSAccount"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -// there is a valid "aws_account_v2" in the system -const AWS_ACCOUNT_V2_DATA_ID = process.env.AWS_ACCOUNT_V2_DATA_ID as string; - -const params: v2.AWSIntegrationApiGetAWSAccountRequest = { - awsAccountConfigId: AWS_ACCOUNT_V2_DATA_ID, -}; - -apiInstance - .getAWSAccount(params) - .then((data: v2.AWSAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/ListAWSAccounts.ts b/examples/v2/aws-integration/ListAWSAccounts.ts deleted file mode 100644 index 4fb28e210cde..000000000000 --- a/examples/v2/aws-integration/ListAWSAccounts.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List all AWS integrations returns "AWS Accounts List object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listAWSAccounts"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -apiInstance - .listAWSAccounts() - .then((data: v2.AWSAccountsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/ListAWSNamespaces.ts b/examples/v2/aws-integration/ListAWSNamespaces.ts deleted file mode 100644 index 2b6b6fa69389..000000000000 --- a/examples/v2/aws-integration/ListAWSNamespaces.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List available namespaces returns "AWS Namespaces List object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listAWSNamespaces"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -apiInstance - .listAWSNamespaces() - .then((data: v2.AWSNamespacesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/ListAWSNamespaces_3031307873.ts b/examples/v2/aws-integration/ListAWSNamespaces_3031307873.ts deleted file mode 100644 index 69fc0958a435..000000000000 --- a/examples/v2/aws-integration/ListAWSNamespaces_3031307873.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List namespaces returns "AWS Namespaces List object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listAWSNamespaces"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -apiInstance - .listAWSNamespaces() - .then((data: v2.AWSNamespacesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/UpdateAWSAccount.ts b/examples/v2/aws-integration/UpdateAWSAccount.ts deleted file mode 100644 index 3993de710099..000000000000 --- a/examples/v2/aws-integration/UpdateAWSAccount.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Update an AWS integration returns "AWS Account object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateAWSAccount"] = true; -const apiInstance = new v2.AWSIntegrationApi(configuration); - -// there is a valid "aws_account_v2" in the system -const AWS_ACCOUNT_V2_DATA_ID = process.env.AWS_ACCOUNT_V2_DATA_ID as string; - -const params: v2.AWSIntegrationApiUpdateAWSAccountRequest = { - body: { - data: { - attributes: { - accountTags: ["key:value"], - authConfig: { - roleName: "DatadogIntegrationRole", - }, - awsAccountId: "123456789012", - awsPartition: "aws", - logsConfig: { - lambdaForwarder: { - lambdas: [ - "arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder", - ], - sources: ["s3"], - }, - }, - metricsConfig: { - automuteEnabled: true, - collectCloudwatchAlarms: true, - collectCustomMetrics: true, - enabled: true, - tagFilters: [ - { - namespace: "AWS/EC2", - tags: ["key:value"], - }, - ], - }, - resourcesConfig: { - cloudSecurityPostureManagementCollection: false, - extendedCollection: false, - }, - tracesConfig: {}, - }, - type: "account", - }, - }, - awsAccountConfigId: AWS_ACCOUNT_V2_DATA_ID, -}; - -apiInstance - .updateAWSAccount(params) - .then((data: v2.AWSAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-logs-integration/ListAWSLogsServices.ts b/examples/v2/aws-logs-integration/ListAWSLogsServices.ts deleted file mode 100644 index 5b9f863d723f..000000000000 --- a/examples/v2/aws-logs-integration/ListAWSLogsServices.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Get list of AWS log ready services returns "AWS Logs Services List object" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listAWSLogsServices"] = true; -const apiInstance = new v2.AWSLogsIntegrationApi(configuration); - -apiInstance - .listAWSLogsServices() - .then((data: v2.AWSLogsServicesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/ArchiveCase.ts b/examples/v2/case-management/ArchiveCase.ts deleted file mode 100644 index eec5a55c0d43..000000000000 --- a/examples/v2/case-management/ArchiveCase.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Archive case returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -const params: v2.CaseManagementApiArchiveCaseRequest = { - body: { - data: { - type: "case", - }, - }, - caseId: CASE_ID, -}; - -apiInstance - .archiveCase(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/AssignCase.ts b/examples/v2/case-management/AssignCase.ts deleted file mode 100644 index 40acf786b28f..000000000000 --- a/examples/v2/case-management/AssignCase.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Assign case returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.CaseManagementApiAssignCaseRequest = { - body: { - data: { - attributes: { - assigneeId: USER_DATA_ID, - }, - type: "case", - }, - }, - caseId: CASE_ID, -}; - -apiInstance - .assignCase(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/CreateCase.ts b/examples/v2/case-management/CreateCase.ts deleted file mode 100644 index fd8f695cae63..000000000000 --- a/examples/v2/case-management/CreateCase.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Create a case returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.CaseManagementApiCreateCaseRequest = { - body: { - data: { - attributes: { - priority: "NOT_DEFINED", - title: "Security breach investigation in 0cfbc5cbc676ee71", - type: "STANDARD", - }, - relationships: { - assignee: { - data: { - id: USER_DATA_ID, - type: "user", - }, - }, - project: { - data: { - id: "d4bbe1af-f36e-42f1-87c1-493ca35c320e", - type: "project", - }, - }, - }, - type: "case", - }, - }, -}; - -apiInstance - .createCase(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/CreateProject.ts b/examples/v2/case-management/CreateProject.ts deleted file mode 100644 index 251a6db71814..000000000000 --- a/examples/v2/case-management/CreateProject.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Create a project returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -const params: v2.CaseManagementApiCreateProjectRequest = { - body: { - data: { - attributes: { - key: "SEC", - name: "Security Investigation", - }, - type: "project", - }, - }, -}; - -apiInstance - .createProject(params) - .then((data: v2.ProjectResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/DeleteProject.ts b/examples/v2/case-management/DeleteProject.ts deleted file mode 100644 index 1142a458fea6..000000000000 --- a/examples/v2/case-management/DeleteProject.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Remove a project returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -const params: v2.CaseManagementApiDeleteProjectRequest = { - projectId: "project_id", -}; - -apiInstance - .deleteProject(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/GetCase.ts b/examples/v2/case-management/GetCase.ts deleted file mode 100644 index f3b526dca121..000000000000 --- a/examples/v2/case-management/GetCase.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get the details of a case returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -const params: v2.CaseManagementApiGetCaseRequest = { - caseId: CASE_ID, -}; - -apiInstance - .getCase(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/GetProject.ts b/examples/v2/case-management/GetProject.ts deleted file mode 100644 index c1f8a0ecc085..000000000000 --- a/examples/v2/case-management/GetProject.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get the details of a project returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -const params: v2.CaseManagementApiGetProjectRequest = { - projectId: "project_id", -}; - -apiInstance - .getProject(params) - .then((data: v2.ProjectResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/GetProjects.ts b/examples/v2/case-management/GetProjects.ts deleted file mode 100644 index bb5e21c612a3..000000000000 --- a/examples/v2/case-management/GetProjects.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all projects returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -apiInstance - .getProjects() - .then((data: v2.ProjectsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/SearchCases.ts b/examples/v2/case-management/SearchCases.ts deleted file mode 100644 index 3ce4c2ddd7c2..000000000000 --- a/examples/v2/case-management/SearchCases.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Search cases returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -apiInstance - .searchCases() - .then((data: v2.CasesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/SearchCases_3433960044.ts b/examples/v2/case-management/SearchCases_3433960044.ts deleted file mode 100644 index d73cef958bb5..000000000000 --- a/examples/v2/case-management/SearchCases_3433960044.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Search cases returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -(async () => { - try { - for await (const item of apiInstance.searchCasesWithPagination()) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/case-management/UnarchiveCase.ts b/examples/v2/case-management/UnarchiveCase.ts deleted file mode 100644 index 2d19f363ebe4..000000000000 --- a/examples/v2/case-management/UnarchiveCase.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Unarchive case returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -const params: v2.CaseManagementApiUnarchiveCaseRequest = { - body: { - data: { - type: "case", - }, - }, - caseId: CASE_ID, -}; - -apiInstance - .unarchiveCase(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/UnassignCase.ts b/examples/v2/case-management/UnassignCase.ts deleted file mode 100644 index 7a7cf5f8e39f..000000000000 --- a/examples/v2/case-management/UnassignCase.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Unassign case returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -const params: v2.CaseManagementApiUnassignCaseRequest = { - body: { - data: { - type: "case", - }, - }, - caseId: CASE_ID, -}; - -apiInstance - .unassignCase(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/UpdatePriority.ts b/examples/v2/case-management/UpdatePriority.ts deleted file mode 100644 index e7a3620ceffb..000000000000 --- a/examples/v2/case-management/UpdatePriority.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Update case priority returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -const params: v2.CaseManagementApiUpdatePriorityRequest = { - body: { - data: { - attributes: { - priority: "P3", - }, - type: "case", - }, - }, - caseId: CASE_ID, -}; - -apiInstance - .updatePriority(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/UpdateStatus.ts b/examples/v2/case-management/UpdateStatus.ts deleted file mode 100644 index 78c5e23f6fcf..000000000000 --- a/examples/v2/case-management/UpdateStatus.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Update case status returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CaseManagementApi(configuration); - -// there is a valid "case" in the system -const CASE_ID = process.env.CASE_ID as string; - -const params: v2.CaseManagementApiUpdateStatusRequest = { - body: { - data: { - attributes: { - status: "IN_PROGRESS", - }, - type: "case", - }, - }, - caseId: CASE_ID, -}; - -apiInstance - .updateStatus(params) - .then((data: v2.CaseResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.ts b/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.ts deleted file mode 100644 index 2f1bfa389318..000000000000 --- a/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Aggregate pipelines events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiAggregateCIAppPipelineEventsRequest = { - body: { - compute: [ - { - aggregation: "pc90", - metric: "@duration", - type: "total", - }, - ], - filter: { - from: "now-15m", - query: "@ci.provider.name:(gitlab OR github)", - to: "now", - }, - groupBy: [ - { - facet: "@ci.status", - limit: 10, - total: false, - }, - ], - options: { - timezone: "GMT", - }, - }, -}; - -apiInstance - .aggregateCIAppPipelineEvents(params) - .then((data: v2.CIAppPipelinesAnalyticsAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.ts b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.ts deleted file mode 100644 index 89bbb223a711..000000000000 --- a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Send pipeline event returns "Request accepted for processing" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest = { - body: { - data: { - attributes: { - resource: { - level: "pipeline", - uniqueId: "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", - name: "Deploy to AWS", - url: "https://my-ci-provider.example/pipelines/my-pipeline/run/1", - start: new Date(new Date().getTime() + -120 * 1000), - end: new Date(new Date().getTime() + -30 * 1000), - status: "success", - partialRetry: false, - git: { - repositoryUrl: "https://github.com/DataDog/datadog-agent", - sha: "7f263865994b76066c4612fd1965215e7dcb4cd2", - authorEmail: "john.doe@email.com", - }, - }, - }, - type: "cipipeline_resource_request", - }, - }, -}; - -apiInstance - .createCIAppPipelineEvent(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.ts b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.ts deleted file mode 100644 index 39c384f232ed..000000000000 --- a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Send pipeline job event returns "Request accepted for processing" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest = { - body: { - data: { - attributes: { - resource: { - level: "job", - id: "cf9456de-8b9e-4c27-aa79-27b1e78c1a33", - name: "Build image", - pipelineUniqueId: "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", - pipelineName: "Deploy to AWS", - start: new Date(new Date().getTime() + -120 * 1000), - end: new Date(new Date().getTime() + -30 * 1000), - status: "error", - url: "https://my-ci-provider.example/jobs/my-jobs/run/1", - }, - }, - type: "cipipeline_resource_request", - }, - }, -}; - -apiInstance - .createCIAppPipelineEvent(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_2341150096.ts b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_2341150096.ts deleted file mode 100644 index c650efb84abf..000000000000 --- a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_2341150096.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Send running pipeline event returns "Request accepted for processing" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest = { - body: { - data: { - attributes: { - resource: { - level: "pipeline", - uniqueId: "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", - name: "Deploy to AWS", - url: "https://my-ci-provider.example/pipelines/my-pipeline/run/1", - start: new Date(new Date().getTime() + -120 * 1000), - status: "running", - partialRetry: false, - git: { - repositoryUrl: "https://github.com/DataDog/datadog-agent", - sha: "7f263865994b76066c4612fd1965215e7dcb4cd2", - authorEmail: "john.doe@email.com", - }, - }, - }, - type: "cipipeline_resource_request", - }, - }, -}; - -apiInstance - .createCIAppPipelineEvent(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_819339921.ts b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_819339921.ts deleted file mode 100644 index eb4c1a4244df..000000000000 --- a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_819339921.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Send pipeline event with custom provider returns "Request accepted for processing" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest = { - body: { - data: { - attributes: { - providerName: "example-provider", - resource: { - level: "pipeline", - uniqueId: "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", - name: "Deploy to AWS", - url: "https://my-ci-provider.example/pipelines/my-pipeline/run/1", - start: new Date(new Date().getTime() + -120 * 1000), - end: new Date(new Date().getTime() + -30 * 1000), - status: "success", - partialRetry: false, - git: { - repositoryUrl: "https://github.com/DataDog/datadog-agent", - sha: "7f263865994b76066c4612fd1965215e7dcb4cd2", - authorEmail: "john.doe@email.com", - }, - }, - }, - type: "cipipeline_resource_request", - }, - }, -}; - -apiInstance - .createCIAppPipelineEvent(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.ts b/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.ts deleted file mode 100644 index b5cf4a664d04..000000000000 --- a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a list of pipelines events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = { - filterQuery: "@ci.provider.name:circleci", - filterFrom: new Date(new Date().getTime() + -30 * 60 * 1000), - filterTo: new Date(), - pageLimit: 5, -}; - -apiInstance - .listCIAppPipelineEvents(params) - .then((data: v2.CIAppPipelineEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.ts b/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.ts deleted file mode 100644 index 33837cc46e8b..000000000000 --- a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get a list of pipelines events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = { - filterFrom: new Date(new Date().getTime() + -30 * 1000), - filterTo: new Date(), - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listCIAppPipelineEventsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.ts b/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.ts deleted file mode 100644 index ca24ac5fc2dd..000000000000 --- a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Search pipelines events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest = { - body: { - filter: { - from: "now-15m", - query: "@ci.provider.name:github AND @ci.status:error", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 5, - }, - sort: "timestamp", - }, -}; - -apiInstance - .searchCIAppPipelineEvents(params) - .then((data: v2.CIAppPipelineEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.ts b/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.ts deleted file mode 100644 index 48fb6380ddf0..000000000000 --- a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Search pipelines events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityPipelinesApi(configuration); - -const params: v2.CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest = { - body: { - filter: { - from: "now-30s", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.searchCIAppPipelineEventsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.ts b/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.ts deleted file mode 100644 index c7f6a1e412c4..000000000000 --- a/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Aggregate tests events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityTestsApi(configuration); - -const params: v2.CIVisibilityTestsApiAggregateCIAppTestEventsRequest = { - body: { - compute: [ - { - aggregation: "count", - metric: "@test.is_flaky", - type: "total", - }, - ], - filter: { - from: "now-15m", - query: "@language:(python OR go)", - to: "now", - }, - groupBy: [ - { - facet: "@git.branch", - limit: 10, - sort: { - order: "asc", - }, - total: false, - }, - ], - options: { - timezone: "GMT", - }, - }, -}; - -apiInstance - .aggregateCIAppTestEvents(params) - .then((data: v2.CIAppTestsAnalyticsAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-tests/ListCIAppTestEvents.ts b/examples/v2/ci-visibility-tests/ListCIAppTestEvents.ts deleted file mode 100644 index ae33ff0c5659..000000000000 --- a/examples/v2/ci-visibility-tests/ListCIAppTestEvents.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a list of tests events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityTestsApi(configuration); - -const params: v2.CIVisibilityTestsApiListCIAppTestEventsRequest = { - filterQuery: "@test.service:web-ui-tests", - filterFrom: new Date(new Date().getTime() + -30 * 1000), - filterTo: new Date(), - pageLimit: 5, -}; - -apiInstance - .listCIAppTestEvents(params) - .then((data: v2.CIAppTestEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.ts b/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.ts deleted file mode 100644 index 6eddd90db64d..000000000000 --- a/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get a list of tests events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityTestsApi(configuration); - -const params: v2.CIVisibilityTestsApiListCIAppTestEventsRequest = { - filterFrom: new Date(new Date().getTime() + -30 * 1000), - filterTo: new Date(), - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listCIAppTestEventsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.ts b/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.ts deleted file mode 100644 index 74bfa85882ad..000000000000 --- a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Search tests events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityTestsApi(configuration); - -const params: v2.CIVisibilityTestsApiSearchCIAppTestEventsRequest = { - body: { - filter: { - from: "now-15m", - query: "@test.service:web-ui-tests AND @test.status:skip", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 25, - }, - sort: "timestamp", - }, -}; - -apiInstance - .searchCIAppTestEvents(params) - .then((data: v2.CIAppTestEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.ts b/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.ts deleted file mode 100644 index 9d92459424de..000000000000 --- a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Search tests events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CIVisibilityTestsApi(configuration); - -const params: v2.CIVisibilityTestsApiSearchCIAppTestEventsRequest = { - body: { - filter: { - from: "now-15m", - query: "@test.status:pass AND -@language:python", - to: "now", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.searchCIAppTestEventsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.ts b/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.ts deleted file mode 100644 index 5947e67fb811..000000000000 --- a/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create Cloud Cost Management AWS CUR config returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiCreateCostAWSCURConfigRequest = { - body: { - data: { - attributes: { - accountId: "123456789123", - bucketName: "dd-cost-bucket", - bucketRegion: "us-east-1", - reportName: "dd-report-name", - reportPrefix: "dd-report-prefix", - }, - type: "aws_cur_config_post_request", - }, - }, -}; - -apiInstance - .createCostAWSCURConfig(params) - .then((data: v2.AwsCURConfigResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.ts b/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.ts deleted file mode 100644 index ec8a763cf660..000000000000 --- a/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Create Cloud Cost Management Azure configs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiCreateCostAzureUCConfigsRequest = { - body: { - data: { - attributes: { - accountId: "1234abcd-1234-abcd-1234-1234abcd1234", - actualBillConfig: { - exportName: "dd-actual-export", - exportPath: "dd-export-path", - storageAccount: "dd-storage-account", - storageContainer: "dd-storage-container", - }, - amortizedBillConfig: { - exportName: "dd-actual-export", - exportPath: "dd-export-path", - storageAccount: "dd-storage-account", - storageContainer: "dd-storage-container", - }, - clientId: "1234abcd-1234-abcd-1234-1234abcd1234", - isEnabled: true, - scope: "subscriptions/1234abcd-1234-abcd-1234-1234abcd1234", - }, - type: "azure_uc_config_post_request", - }, - }, -}; - -apiInstance - .createCostAzureUCConfigs(params) - .then((data: v2.AzureUCConfigPairsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.ts b/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.ts deleted file mode 100644 index 74583efe2559..000000000000 --- a/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Cloud Cost Management AWS CUR config returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiDeleteCostAWSCURConfigRequest = { - cloudAccountId: "100", -}; - -apiInstance - .deleteCostAWSCURConfig(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.ts b/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.ts deleted file mode 100644 index a63d089fcd02..000000000000 --- a/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Cloud Cost Management Azure config returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiDeleteCostAzureUCConfigRequest = { - cloudAccountId: "100", -}; - -apiInstance - .deleteCostAzureUCConfig(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/DeleteCustomCostsFile.ts b/examples/v2/cloud-cost-management/DeleteCustomCostsFile.ts deleted file mode 100644 index 9e192695398b..000000000000 --- a/examples/v2/cloud-cost-management/DeleteCustomCostsFile.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Custom Costs file returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiDeleteCustomCostsFileRequest = { - fileId: "file_id", -}; - -apiInstance - .deleteCustomCostsFile(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.ts b/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.ts deleted file mode 100644 index 91c2a9ace79f..000000000000 --- a/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Custom Costs File returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiDeleteCustomCostsFileRequest = { - fileId: "9d055d22-a838-4e9f-bc34-a4f9ab66280c", -}; - -apiInstance - .deleteCustomCostsFile(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/GetCustomCostsFile.ts b/examples/v2/cloud-cost-management/GetCustomCostsFile.ts deleted file mode 100644 index e17db4bf3d32..000000000000 --- a/examples/v2/cloud-cost-management/GetCustomCostsFile.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get Custom Costs file returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiGetCustomCostsFileRequest = { - fileId: "file_id", -}; - -apiInstance - .getCustomCostsFile(params) - .then((data: v2.CustomCostsFileGetResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.ts b/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.ts deleted file mode 100644 index d187205addb8..000000000000 --- a/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get Custom Costs File returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiGetCustomCostsFileRequest = { - fileId: "9d055d22-a838-4e9f-bc34-a4f9ab66280c", -}; - -apiInstance - .getCustomCostsFile(params) - .then((data: v2.CustomCostsFileGetResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.ts b/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.ts deleted file mode 100644 index f3c493c29f0d..000000000000 --- a/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Cloud Cost Management AWS CUR configs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -apiInstance - .listCostAWSCURConfigs() - .then((data: v2.AwsCURConfigsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.ts b/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.ts deleted file mode 100644 index a50f4966e041..000000000000 --- a/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Cloud Cost Management Azure configs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -apiInstance - .listCostAzureUCConfigs() - .then((data: v2.AzureUCConfigsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/ListCustomCostsFiles.ts b/examples/v2/cloud-cost-management/ListCustomCostsFiles.ts deleted file mode 100644 index 04a9cab3b8f3..000000000000 --- a/examples/v2/cloud-cost-management/ListCustomCostsFiles.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Custom Costs files returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -apiInstance - .listCustomCostsFiles() - .then((data: v2.CustomCostsFileListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.ts b/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.ts deleted file mode 100644 index 64d7a2f12ded..000000000000 --- a/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Custom Costs Files returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -apiInstance - .listCustomCostsFiles() - .then((data: v2.CustomCostsFileListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.ts b/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.ts deleted file mode 100644 index dafbf300022b..000000000000 --- a/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Update Cloud Cost Management AWS CUR config returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiUpdateCostAWSCURConfigRequest = { - body: { - data: { - attributes: { - isEnabled: true, - }, - type: "aws_cur_config_patch_request", - }, - }, - cloudAccountId: "100", -}; - -apiInstance - .updateCostAWSCURConfig(params) - .then((data: v2.AwsCURConfigsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.ts b/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.ts deleted file mode 100644 index f33a9b7cf043..000000000000 --- a/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Update Cloud Cost Management Azure config returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiUpdateCostAzureUCConfigsRequest = { - body: { - data: { - attributes: { - isEnabled: true, - }, - type: "azure_uc_config_patch_request", - }, - }, - cloudAccountId: "100", -}; - -apiInstance - .updateCostAzureUCConfigs(params) - .then((data: v2.AzureUCConfigPairsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/UploadCustomCostsFile.ts b/examples/v2/cloud-cost-management/UploadCustomCostsFile.ts deleted file mode 100644 index 8a095e743ef5..000000000000 --- a/examples/v2/cloud-cost-management/UploadCustomCostsFile.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Upload Custom Costs file returns "Accepted" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiUploadCustomCostsFileRequest = { - body: [ - { - billedCost: 100.5, - billingCurrency: "USD", - chargeDescription: "Monthly usage charge for my service", - chargePeriodEnd: "2023-02-28", - chargePeriodStart: "2023-02-01", - }, - ], -}; - -apiInstance - .uploadCustomCostsFile(params) - .then((data: v2.CustomCostsFileUploadResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.ts b/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.ts deleted file mode 100644 index 889a765dcf43..000000000000 --- a/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Upload Custom Costs File returns "Accepted" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudCostManagementApi(configuration); - -const params: v2.CloudCostManagementApiUploadCustomCostsFileRequest = { - body: [ - { - providerName: "my_provider", - chargePeriodStart: "2023-05-06", - chargePeriodEnd: "2023-06-06", - chargeDescription: "my_description", - billedCost: 250, - billingCurrency: "USD", - tags: { - key: "value", - }, - }, - ], -}; - -apiInstance - .uploadCustomCostsFile(params) - .then((data: v2.CustomCostsFileUploadResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloudflare-integration/CreateCloudflareAccount.ts b/examples/v2/cloudflare-integration/CreateCloudflareAccount.ts deleted file mode 100644 index 0e392cb43183..000000000000 --- a/examples/v2/cloudflare-integration/CreateCloudflareAccount.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Add Cloudflare account returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudflareIntegrationApi(configuration); - -const params: v2.CloudflareIntegrationApiCreateCloudflareAccountRequest = { - body: { - data: { - attributes: { - apiKey: "fakekey", - email: "dev@datadoghq.com", - name: "examplecloudflareintegration", - }, - type: "cloudflare-accounts", - }, - }, -}; - -apiInstance - .createCloudflareAccount(params) - .then((data: v2.CloudflareAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloudflare-integration/DeleteCloudflareAccount.ts b/examples/v2/cloudflare-integration/DeleteCloudflareAccount.ts deleted file mode 100644 index c347386d0bc2..000000000000 --- a/examples/v2/cloudflare-integration/DeleteCloudflareAccount.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Cloudflare account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudflareIntegrationApi(configuration); - -const params: v2.CloudflareIntegrationApiDeleteCloudflareAccountRequest = { - accountId: "account_id", -}; - -apiInstance - .deleteCloudflareAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloudflare-integration/GetCloudflareAccount.ts b/examples/v2/cloudflare-integration/GetCloudflareAccount.ts deleted file mode 100644 index d2569f91a6cd..000000000000 --- a/examples/v2/cloudflare-integration/GetCloudflareAccount.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get Cloudflare account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudflareIntegrationApi(configuration); - -// there is a valid "cloudflare_account" in the system -const CLOUDFLARE_ACCOUNT_DATA_ID = process.env - .CLOUDFLARE_ACCOUNT_DATA_ID as string; - -const params: v2.CloudflareIntegrationApiGetCloudflareAccountRequest = { - accountId: CLOUDFLARE_ACCOUNT_DATA_ID, -}; - -apiInstance - .getCloudflareAccount(params) - .then((data: v2.CloudflareAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloudflare-integration/ListCloudflareAccounts.ts b/examples/v2/cloudflare-integration/ListCloudflareAccounts.ts deleted file mode 100644 index 03687ac75dae..000000000000 --- a/examples/v2/cloudflare-integration/ListCloudflareAccounts.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Cloudflare accounts returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudflareIntegrationApi(configuration); - -apiInstance - .listCloudflareAccounts() - .then((data: v2.CloudflareAccountsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloudflare-integration/UpdateCloudflareAccount.ts b/examples/v2/cloudflare-integration/UpdateCloudflareAccount.ts deleted file mode 100644 index 7f24e172ad48..000000000000 --- a/examples/v2/cloudflare-integration/UpdateCloudflareAccount.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update Cloudflare account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CloudflareIntegrationApi(configuration); - -// there is a valid "cloudflare_account" in the system -const CLOUDFLARE_ACCOUNT_DATA_ID = process.env - .CLOUDFLARE_ACCOUNT_DATA_ID as string; - -const params: v2.CloudflareIntegrationApiUpdateCloudflareAccountRequest = { - body: { - data: { - attributes: { - apiKey: "fakekey", - email: "dev@datadoghq.com", - zones: ["zone-id-3"], - }, - type: "cloudflare-accounts", - }, - }, - accountId: CLOUDFLARE_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateCloudflareAccount(params) - .then((data: v2.CloudflareAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/CreateConfluentAccount.ts b/examples/v2/confluent-cloud/CreateConfluentAccount.ts deleted file mode 100644 index 7ff24845fa76..000000000000 --- a/examples/v2/confluent-cloud/CreateConfluentAccount.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Add Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -const params: v2.ConfluentCloudApiCreateConfluentAccountRequest = { - body: { - data: { - attributes: { - apiKey: "TESTAPIKEY123", - apiSecret: "test-api-secret-123", - resources: [ - { - enableCustomMetrics: false, - id: "resource-id-123", - resourceType: "kafka", - tags: ["myTag", "myTag2:myValue"], - }, - ], - tags: ["myTag", "myTag2:myValue"], - }, - type: "confluent-cloud-accounts", - }, - }, -}; - -apiInstance - .createConfluentAccount(params) - .then((data: v2.ConfluentAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/CreateConfluentResource.ts b/examples/v2/confluent-cloud/CreateConfluentResource.ts deleted file mode 100644 index 1abbd06b1bcf..000000000000 --- a/examples/v2/confluent-cloud/CreateConfluentResource.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Add resource to Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -// there is a valid "confluent_account" in the system -const CONFLUENT_ACCOUNT_DATA_ID = process.env - .CONFLUENT_ACCOUNT_DATA_ID as string; - -const params: v2.ConfluentCloudApiCreateConfluentResourceRequest = { - body: { - data: { - attributes: { - resourceType: "kafka", - tags: ["myTag", "myTag2:myValue"], - enableCustomMetrics: false, - }, - id: "exampleconfluentcloud", - type: "confluent-cloud-resources", - }, - }, - accountId: CONFLUENT_ACCOUNT_DATA_ID, -}; - -apiInstance - .createConfluentResource(params) - .then((data: v2.ConfluentResourceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/DeleteConfluentAccount.ts b/examples/v2/confluent-cloud/DeleteConfluentAccount.ts deleted file mode 100644 index 859168fe5dc5..000000000000 --- a/examples/v2/confluent-cloud/DeleteConfluentAccount.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -// there is a valid "confluent_account" in the system -const CONFLUENT_ACCOUNT_DATA_ID = process.env - .CONFLUENT_ACCOUNT_DATA_ID as string; - -const params: v2.ConfluentCloudApiDeleteConfluentAccountRequest = { - accountId: CONFLUENT_ACCOUNT_DATA_ID, -}; - -apiInstance - .deleteConfluentAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/DeleteConfluentResource.ts b/examples/v2/confluent-cloud/DeleteConfluentResource.ts deleted file mode 100644 index 3c92b98c2441..000000000000 --- a/examples/v2/confluent-cloud/DeleteConfluentResource.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete resource from Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -const params: v2.ConfluentCloudApiDeleteConfluentResourceRequest = { - accountId: "account_id", - resourceId: "resource_id", -}; - -apiInstance - .deleteConfluentResource(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/GetConfluentAccount.ts b/examples/v2/confluent-cloud/GetConfluentAccount.ts deleted file mode 100644 index c059eb847059..000000000000 --- a/examples/v2/confluent-cloud/GetConfluentAccount.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -// there is a valid "confluent_account" in the system -const CONFLUENT_ACCOUNT_DATA_ID = process.env - .CONFLUENT_ACCOUNT_DATA_ID as string; - -const params: v2.ConfluentCloudApiGetConfluentAccountRequest = { - accountId: CONFLUENT_ACCOUNT_DATA_ID, -}; - -apiInstance - .getConfluentAccount(params) - .then((data: v2.ConfluentAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/GetConfluentResource.ts b/examples/v2/confluent-cloud/GetConfluentResource.ts deleted file mode 100644 index dabe63d59c72..000000000000 --- a/examples/v2/confluent-cloud/GetConfluentResource.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get resource from Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -const params: v2.ConfluentCloudApiGetConfluentResourceRequest = { - accountId: "account_id", - resourceId: "resource_id", -}; - -apiInstance - .getConfluentResource(params) - .then((data: v2.ConfluentResourceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/ListConfluentAccount.ts b/examples/v2/confluent-cloud/ListConfluentAccount.ts deleted file mode 100644 index 044a252db317..000000000000 --- a/examples/v2/confluent-cloud/ListConfluentAccount.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Confluent accounts returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -apiInstance - .listConfluentAccount() - .then((data: v2.ConfluentAccountsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/ListConfluentResource.ts b/examples/v2/confluent-cloud/ListConfluentResource.ts deleted file mode 100644 index 12c1b5a6d3f0..000000000000 --- a/examples/v2/confluent-cloud/ListConfluentResource.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * List Confluent Account resources returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -const params: v2.ConfluentCloudApiListConfluentResourceRequest = { - accountId: "account_id", -}; - -apiInstance - .listConfluentResource(params) - .then((data: v2.ConfluentResourcesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/UpdateConfluentAccount.ts b/examples/v2/confluent-cloud/UpdateConfluentAccount.ts deleted file mode 100644 index e6b24aab1039..000000000000 --- a/examples/v2/confluent-cloud/UpdateConfluentAccount.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Update Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -// there is a valid "confluent_account" in the system -const CONFLUENT_ACCOUNT_DATA_ATTRIBUTES_API_KEY = process.env - .CONFLUENT_ACCOUNT_DATA_ATTRIBUTES_API_KEY as string; -const CONFLUENT_ACCOUNT_DATA_ID = process.env - .CONFLUENT_ACCOUNT_DATA_ID as string; - -const params: v2.ConfluentCloudApiUpdateConfluentAccountRequest = { - body: { - data: { - attributes: { - apiKey: CONFLUENT_ACCOUNT_DATA_ATTRIBUTES_API_KEY, - apiSecret: "update-secret", - tags: ["updated_tag:val"], - }, - type: "confluent-cloud-accounts", - }, - }, - accountId: CONFLUENT_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateConfluentAccount(params) - .then((data: v2.ConfluentAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/confluent-cloud/UpdateConfluentResource.ts b/examples/v2/confluent-cloud/UpdateConfluentResource.ts deleted file mode 100644 index 7e43c2080ff6..000000000000 --- a/examples/v2/confluent-cloud/UpdateConfluentResource.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update resource in Confluent account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ConfluentCloudApi(configuration); - -const params: v2.ConfluentCloudApiUpdateConfluentResourceRequest = { - body: { - data: { - attributes: { - enableCustomMetrics: false, - resourceType: "kafka", - tags: ["myTag", "myTag2:myValue"], - }, - id: "resource-id-123", - type: "confluent-cloud-resources", - }, - }, - accountId: "account_id", - resourceId: "resource_id", -}; - -apiInstance - .updateConfluentResource(params) - .then((data: v2.ConfluentResourceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/container-images/ListContainerImages.ts b/examples/v2/container-images/ListContainerImages.ts deleted file mode 100644 index 2d332d184f8f..000000000000 --- a/examples/v2/container-images/ListContainerImages.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all Container Images returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ContainerImagesApi(configuration); - -apiInstance - .listContainerImages() - .then((data: v2.ContainerImagesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/container-images/ListContainerImages_3088586393.ts b/examples/v2/container-images/ListContainerImages_3088586393.ts deleted file mode 100644 index 5353521ca7fe..000000000000 --- a/examples/v2/container-images/ListContainerImages_3088586393.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get all Container Images returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ContainerImagesApi(configuration); - -const params: v2.ContainerImagesApiListContainerImagesRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listContainerImagesWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/container-images/ListContainerImages_3974828736.ts b/examples/v2/container-images/ListContainerImages_3974828736.ts deleted file mode 100644 index d352cb08d539..000000000000 --- a/examples/v2/container-images/ListContainerImages_3974828736.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all Container Image groups returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ContainerImagesApi(configuration); - -const params: v2.ContainerImagesApiListContainerImagesRequest = { - groupBy: "short_image", -}; - -apiInstance - .listContainerImages(params) - .then((data: v2.ContainerImagesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/containers/ListContainers.ts b/examples/v2/containers/ListContainers.ts deleted file mode 100644 index 53910ac0ee11..000000000000 --- a/examples/v2/containers/ListContainers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get All Containers returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ContainersApi(configuration); - -apiInstance - .listContainers() - .then((data: v2.ContainersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/containers/ListContainers_2175733917.ts b/examples/v2/containers/ListContainers_2175733917.ts deleted file mode 100644 index 0a32a6774ef8..000000000000 --- a/examples/v2/containers/ListContainers_2175733917.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get All Container groups returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ContainersApi(configuration); - -const params: v2.ContainersApiListContainersRequest = { - groupBy: "short_image", -}; - -apiInstance - .listContainers(params) - .then((data: v2.ContainersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/containers/ListContainers_931009654.ts b/examples/v2/containers/ListContainers_931009654.ts deleted file mode 100644 index 93ff3e212887..000000000000 --- a/examples/v2/containers/ListContainers_931009654.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get All Containers returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ContainersApi(configuration); - -const params: v2.ContainersApiListContainersRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listContainersWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/csm-agents/ListAllCSMAgents.ts b/examples/v2/csm-agents/ListAllCSMAgents.ts deleted file mode 100644 index b9d99ac59f15..000000000000 --- a/examples/v2/csm-agents/ListAllCSMAgents.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all CSM Agents returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMAgentsApi(configuration); - -apiInstance - .listAllCSMAgents() - .then((data: v2.CsmAgentsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-agents/ListAllCSMServerlessAgents.ts b/examples/v2/csm-agents/ListAllCSMServerlessAgents.ts deleted file mode 100644 index 55e3bae718e5..000000000000 --- a/examples/v2/csm-agents/ListAllCSMServerlessAgents.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all CSM Serverless Agents returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMAgentsApi(configuration); - -apiInstance - .listAllCSMServerlessAgents() - .then((data: v2.CsmAgentsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.ts b/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.ts deleted file mode 100644 index 02ac213ca287..000000000000 --- a/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the CSM Cloud Accounts Coverage Analysis returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMCoverageAnalysisApi(configuration); - -apiInstance - .getCSMCloudAccountsCoverageAnalysis() - .then((data: v2.CsmCloudAccountsCoverageAnalysisResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.ts b/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.ts deleted file mode 100644 index dc7b0cfd334f..000000000000 --- a/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the CSM Hosts and Containers Coverage Analysis returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMCoverageAnalysisApi(configuration); - -apiInstance - .getCSMHostsAndContainersCoverageAnalysis() - .then((data: v2.CsmHostsAndContainersCoverageAnalysisResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.ts b/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.ts deleted file mode 100644 index 32b70bd2d334..000000000000 --- a/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the CSM Serverless Coverage Analysis returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMCoverageAnalysisApi(configuration); - -apiInstance - .getCSMServerlessCoverageAnalysis() - .then((data: v2.CsmServerlessCoverageAnalysisResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/CreateCSMThreatsAgentRule.ts b/examples/v2/csm-threats/CreateCSMThreatsAgentRule.ts deleted file mode 100644 index f52497673ff3..000000000000 --- a/examples/v2/csm-threats/CreateCSMThreatsAgentRule.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create a CSM Threats Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -const params: v2.CSMThreatsApiCreateCSMThreatsAgentRuleRequest = { - body: { - data: { - attributes: { - description: "My Agent rule", - enabled: true, - expression: `exec.file.name == "sh"`, - filters: [`os == "linux"`], - name: "examplecsmthreat", - }, - type: "agent_rule", - }, - }, -}; - -apiInstance - .createCSMThreatsAgentRule(params) - .then((data: v2.CloudWorkloadSecurityAgentRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.ts b/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.ts deleted file mode 100644 index 11371da96b9c..000000000000 --- a/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a Cloud Workload Security Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -const params: v2.CSMThreatsApiCreateCloudWorkloadSecurityAgentRuleRequest = { - body: { - data: { - attributes: { - description: "Test Agent rule", - enabled: true, - expression: `exec.file.name == "sh"`, - name: "examplecsmthreat", - }, - type: "agent_rule", - }, - }, -}; - -apiInstance - .createCloudWorkloadSecurityAgentRule(params) - .then((data: v2.CloudWorkloadSecurityAgentRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.ts b/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.ts deleted file mode 100644 index dc6e5019ed78..000000000000 --- a/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a CSM Threats Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -// there is a valid "agent_rule_rc" in the system -const AGENT_RULE_DATA_ID = process.env.AGENT_RULE_DATA_ID as string; - -const params: v2.CSMThreatsApiDeleteCSMThreatsAgentRuleRequest = { - agentRuleId: AGENT_RULE_DATA_ID, -}; - -apiInstance - .deleteCSMThreatsAgentRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.ts b/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.ts deleted file mode 100644 index 0fcdb291b511..000000000000 --- a/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a Cloud Workload Security Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -// there is a valid "agent_rule" in the system -const AGENT_RULE_DATA_ID = process.env.AGENT_RULE_DATA_ID as string; - -const params: v2.CSMThreatsApiDeleteCloudWorkloadSecurityAgentRuleRequest = { - agentRuleId: AGENT_RULE_DATA_ID, -}; - -apiInstance - .deleteCloudWorkloadSecurityAgentRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/DownloadCSMThreatsPolicy.ts b/examples/v2/csm-threats/DownloadCSMThreatsPolicy.ts deleted file mode 100644 index 1f4cf506a18f..000000000000 --- a/examples/v2/csm-threats/DownloadCSMThreatsPolicy.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the latest CSM Threats policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -apiInstance - .downloadCSMThreatsPolicy() - .then((data: client.HttpFile) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.ts b/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.ts deleted file mode 100644 index b0c588a31008..000000000000 --- a/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the latest Cloud Workload Security policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -apiInstance - .downloadCloudWorkloadPolicyFile() - .then((data: client.HttpFile) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/GetCSMThreatsAgentRule.ts b/examples/v2/csm-threats/GetCSMThreatsAgentRule.ts deleted file mode 100644 index d8a58f3a4fbf..000000000000 --- a/examples/v2/csm-threats/GetCSMThreatsAgentRule.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a CSM Threats Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -// there is a valid "agent_rule_rc" in the system -const AGENT_RULE_DATA_ID = process.env.AGENT_RULE_DATA_ID as string; - -const params: v2.CSMThreatsApiGetCSMThreatsAgentRuleRequest = { - agentRuleId: AGENT_RULE_DATA_ID, -}; - -apiInstance - .getCSMThreatsAgentRule(params) - .then((data: v2.CloudWorkloadSecurityAgentRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.ts b/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.ts deleted file mode 100644 index e960ff657875..000000000000 --- a/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a Cloud Workload Security Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -// there is a valid "agent_rule" in the system -const AGENT_RULE_DATA_ID = process.env.AGENT_RULE_DATA_ID as string; - -const params: v2.CSMThreatsApiGetCloudWorkloadSecurityAgentRuleRequest = { - agentRuleId: AGENT_RULE_DATA_ID, -}; - -apiInstance - .getCloudWorkloadSecurityAgentRule(params) - .then((data: v2.CloudWorkloadSecurityAgentRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/ListCSMThreatsAgentRules.ts b/examples/v2/csm-threats/ListCSMThreatsAgentRules.ts deleted file mode 100644 index 6438d4152632..000000000000 --- a/examples/v2/csm-threats/ListCSMThreatsAgentRules.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all CSM Threats Agent rules returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -apiInstance - .listCSMThreatsAgentRules() - .then((data: v2.CloudWorkloadSecurityAgentRulesListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.ts b/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.ts deleted file mode 100644 index 668296fd49ce..000000000000 --- a/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all Cloud Workload Security Agent rules returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -apiInstance - .listCloudWorkloadSecurityAgentRules() - .then((data: v2.CloudWorkloadSecurityAgentRulesListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.ts b/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.ts deleted file mode 100644 index e52451983114..000000000000 --- a/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update a CSM Threats Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -// there is a valid "agent_rule_rc" in the system -const AGENT_RULE_DATA_ID = process.env.AGENT_RULE_DATA_ID as string; - -const params: v2.CSMThreatsApiUpdateCSMThreatsAgentRuleRequest = { - body: { - data: { - attributes: { - description: "Test Agent rule", - enabled: true, - expression: `exec.file.name == "sh"`, - }, - type: "agent_rule", - id: AGENT_RULE_DATA_ID, - }, - }, - agentRuleId: AGENT_RULE_DATA_ID, -}; - -apiInstance - .updateCSMThreatsAgentRule(params) - .then((data: v2.CloudWorkloadSecurityAgentRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.ts b/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.ts deleted file mode 100644 index b3e0618d8045..000000000000 --- a/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update a Cloud Workload Security Agent rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.CSMThreatsApi(configuration); - -// there is a valid "agent_rule" in the system -const AGENT_RULE_DATA_ID = process.env.AGENT_RULE_DATA_ID as string; - -const params: v2.CSMThreatsApiUpdateCloudWorkloadSecurityAgentRuleRequest = { - body: { - data: { - attributes: { - description: "Test Agent rule", - enabled: true, - expression: `exec.file.name == "sh"`, - }, - type: "agent_rule", - id: AGENT_RULE_DATA_ID, - }, - }, - agentRuleId: AGENT_RULE_DATA_ID, -}; - -apiInstance - .updateCloudWorkloadSecurityAgentRule(params) - .then((data: v2.CloudWorkloadSecurityAgentRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/CreateDashboardListItems.ts b/examples/v2/dashboard-lists/CreateDashboardListItems.ts deleted file mode 100644 index 3c94ea973cd7..000000000000 --- a/examples/v2/dashboard-lists/CreateDashboardListItems.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Add Items to a Dashboard List returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -const params: v2.DashboardListsApiCreateDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: "q5j-nti-fv6", - type: "host_timeboard", - }, - ], - }, - dashboardListId: 9223372036854775807, -}; - -apiInstance - .createDashboardListItems(params) - .then((data: v2.DashboardListAddItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.ts b/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.ts deleted file mode 100644 index 6963f9c508ac..000000000000 --- a/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Add custom timeboard dashboard to an existing dashboard list returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v2.DashboardListsApiCreateDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: DASHBOARD_ID, - type: "custom_timeboard", - }, - ], - }, - dashboardListId: DASHBOARD_LIST_ID, -}; - -apiInstance - .createDashboardListItems(params) - .then((data: v2.DashboardListAddItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.ts b/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.ts deleted file mode 100644 index 8a8d114550f6..000000000000 --- a/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Add custom screenboard dashboard to an existing dashboard list returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -// there is a valid "screenboard_dashboard" in the system -const SCREENBOARD_DASHBOARD_ID = process.env.SCREENBOARD_DASHBOARD_ID as string; - -const params: v2.DashboardListsApiCreateDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: SCREENBOARD_DASHBOARD_ID, - type: "custom_screenboard", - }, - ], - }, - dashboardListId: DASHBOARD_LIST_ID, -}; - -apiInstance - .createDashboardListItems(params) - .then((data: v2.DashboardListAddItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems.ts b/examples/v2/dashboard-lists/DeleteDashboardListItems.ts deleted file mode 100644 index 5316f00f9949..000000000000 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Delete items from a dashboard list returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -const params: v2.DashboardListsApiDeleteDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: "q5j-nti-fv6", - type: "host_timeboard", - }, - ], - }, - dashboardListId: 9223372036854775807, -}; - -apiInstance - .deleteDashboardListItems(params) - .then((data: v2.DashboardListDeleteItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.ts b/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.ts deleted file mode 100644 index 66190e15c3bb..000000000000 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Delete custom timeboard dashboard from an existing dashboard list returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -// there is a valid "dashboard" in the system -const DASHBOARD_ID = process.env.DASHBOARD_ID as string; - -const params: v2.DashboardListsApiDeleteDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: DASHBOARD_ID, - type: "custom_timeboard", - }, - ], - }, - dashboardListId: DASHBOARD_LIST_ID, -}; - -apiInstance - .deleteDashboardListItems(params) - .then((data: v2.DashboardListDeleteItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.ts b/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.ts deleted file mode 100644 index f7b59ace7193..000000000000 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Delete custom screenboard dashboard from an existing dashboard list returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -// there is a valid "screenboard_dashboard" in the system -const SCREENBOARD_DASHBOARD_ID = process.env.SCREENBOARD_DASHBOARD_ID as string; - -const params: v2.DashboardListsApiDeleteDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: SCREENBOARD_DASHBOARD_ID, - type: "custom_screenboard", - }, - ], - }, - dashboardListId: DASHBOARD_LIST_ID, -}; - -apiInstance - .deleteDashboardListItems(params) - .then((data: v2.DashboardListDeleteItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/GetDashboardListItems.ts b/examples/v2/dashboard-lists/GetDashboardListItems.ts deleted file mode 100644 index 5ce1fd56fa84..000000000000 --- a/examples/v2/dashboard-lists/GetDashboardListItems.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get items of a Dashboard List returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -const params: v2.DashboardListsApiGetDashboardListItemsRequest = { - dashboardListId: DASHBOARD_LIST_ID, -}; - -apiInstance - .getDashboardListItems(params) - .then((data: v2.DashboardListItems) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dashboard-lists/UpdateDashboardListItems.ts b/examples/v2/dashboard-lists/UpdateDashboardListItems.ts deleted file mode 100644 index 64d694768b45..000000000000 --- a/examples/v2/dashboard-lists/UpdateDashboardListItems.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update items of a dashboard list returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DashboardListsApi(configuration); - -// there is a valid "dashboard_list" in the system -const DASHBOARD_LIST_ID = parseInt(process.env.DASHBOARD_LIST_ID as string); - -// there is a valid "screenboard_dashboard" in the system -const SCREENBOARD_DASHBOARD_ID = process.env.SCREENBOARD_DASHBOARD_ID as string; - -const params: v2.DashboardListsApiUpdateDashboardListItemsRequest = { - body: { - dashboards: [ - { - id: SCREENBOARD_DASHBOARD_ID, - type: "custom_screenboard", - }, - ], - }, - dashboardListId: DASHBOARD_LIST_ID, -}; - -apiInstance - .updateDashboardListItems(params) - .then((data: v2.DashboardListUpdateItemsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/data-deletion/CancelDataDeletionRequest.ts b/examples/v2/data-deletion/CancelDataDeletionRequest.ts deleted file mode 100644 index 2da703302334..000000000000 --- a/examples/v2/data-deletion/CancelDataDeletionRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Cancels a data deletion request returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.cancelDataDeletionRequest"] = true; -const apiInstance = new v2.DataDeletionApi(configuration); - -// there is a valid "deletion_request" in the system -const DELETION_REQUEST_DATA_ID = process.env.DELETION_REQUEST_DATA_ID as string; - -const params: v2.DataDeletionApiCancelDataDeletionRequestRequest = { - id: DELETION_REQUEST_DATA_ID, -}; - -apiInstance - .cancelDataDeletionRequest(params) - .then((data: v2.CancelDataDeletionResponseBody) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/data-deletion/CreateDataDeletionRequest.ts b/examples/v2/data-deletion/CreateDataDeletionRequest.ts deleted file mode 100644 index 925ffd2db189..000000000000 --- a/examples/v2/data-deletion/CreateDataDeletionRequest.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Creates a data deletion request returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createDataDeletionRequest"] = true; -const apiInstance = new v2.DataDeletionApi(configuration); - -const params: v2.DataDeletionApiCreateDataDeletionRequestRequest = { - body: { - data: { - attributes: { - from: 1672527600000, - indexes: ["test-index", "test-index-2"], - query: { - host: "abc", - service: "xyz", - }, - to: 1704063600000, - }, - type: "create_deletion_req", - }, - }, - product: "logs", -}; - -apiInstance - .createDataDeletionRequest(params) - .then((data: v2.CreateDataDeletionResponseBody) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/data-deletion/GetDataDeletionRequests.ts b/examples/v2/data-deletion/GetDataDeletionRequests.ts deleted file mode 100644 index 53ca95e3421b..000000000000 --- a/examples/v2/data-deletion/GetDataDeletionRequests.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Gets a list of data deletion requests returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getDataDeletionRequests"] = true; -const apiInstance = new v2.DataDeletionApi(configuration); - -apiInstance - .getDataDeletionRequests() - .then((data: v2.GetDataDeletionsResponseBody) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/domain-allowlist/GetDomainAllowlist.ts b/examples/v2/domain-allowlist/GetDomainAllowlist.ts deleted file mode 100644 index 94cea69b5965..000000000000 --- a/examples/v2/domain-allowlist/GetDomainAllowlist.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get Domain Allowlist returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DomainAllowlistApi(configuration); - -apiInstance - .getDomainAllowlist() - .then((data: v2.DomainAllowlistResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/domain-allowlist/PatchDomainAllowlist.ts b/examples/v2/domain-allowlist/PatchDomainAllowlist.ts deleted file mode 100644 index d35791ffabd1..000000000000 --- a/examples/v2/domain-allowlist/PatchDomainAllowlist.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Sets Domain Allowlist returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DomainAllowlistApi(configuration); - -const params: v2.DomainAllowlistApiPatchDomainAllowlistRequest = { - body: { - data: { - attributes: { - domains: ["@static-test-domain.test"], - enabled: false, - }, - type: "domain_allowlist", - }, - }, -}; - -apiInstance - .patchDomainAllowlist(params) - .then((data: v2.DomainAllowlistResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dora-metrics/CreateDORADeployment.ts b/examples/v2/dora-metrics/CreateDORADeployment.ts deleted file mode 100644 index 114737642696..000000000000 --- a/examples/v2/dora-metrics/CreateDORADeployment.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Send a deployment event for DORA Metrics returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createDORADeployment"] = true; -const apiInstance = new v2.DORAMetricsApi(configuration); - -const params: v2.DORAMetricsApiCreateDORADeploymentRequest = { - body: { - data: { - attributes: { - finishedAt: 1693491984000000000, - git: { - commitSha: "66adc9350f2cc9b250b69abddab733dd55e1a588", - repositoryUrl: "https://github.com/organization/example-repository", - }, - service: "shopist", - startedAt: 1693491974000000000, - version: "v1.12.07", - }, - }, - }, -}; - -apiInstance - .createDORADeployment(params) - .then((data: v2.DORADeploymentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/dora-metrics/CreateDORAIncident.ts b/examples/v2/dora-metrics/CreateDORAIncident.ts deleted file mode 100644 index 213e39fa9d02..000000000000 --- a/examples/v2/dora-metrics/CreateDORAIncident.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Send an incident event for DORA Metrics returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createDORAIncident"] = true; -const apiInstance = new v2.DORAMetricsApi(configuration); - -const params: v2.DORAMetricsApiCreateDORAIncidentRequest = { - body: { - data: { - attributes: { - finishedAt: 1707842944600000000, - git: { - commitSha: "66adc9350f2cc9b250b69abddab733dd55e1a588", - repositoryUrl: "https://github.com/organization/example-repository", - }, - name: "Webserver is down failing all requests", - services: ["shopist"], - severity: "High", - startedAt: 1707842944500000000, - team: "backend", - version: "v1.12.07", - }, - }, - }, -}; - -apiInstance - .createDORAIncident(params) - .then((data: v2.DORAIncidentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/downtimes/CancelDowntime.ts b/examples/v2/downtimes/CancelDowntime.ts deleted file mode 100644 index 3983f9a93fb2..000000000000 --- a/examples/v2/downtimes/CancelDowntime.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Cancel a downtime returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -// there is a valid "downtime_v2" in the system -const DOWNTIME_V2_DATA_ID = process.env.DOWNTIME_V2_DATA_ID as string; - -const params: v2.DowntimesApiCancelDowntimeRequest = { - downtimeId: DOWNTIME_V2_DATA_ID, -}; - -apiInstance - .cancelDowntime(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/downtimes/CreateDowntime.ts b/examples/v2/downtimes/CreateDowntime.ts deleted file mode 100644 index 6eeeb3143b3e..000000000000 --- a/examples/v2/downtimes/CreateDowntime.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Schedule a downtime returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -const params: v2.DowntimesApiCreateDowntimeRequest = { - body: { - data: { - attributes: { - message: "dark forest", - monitorIdentifier: { - monitorTags: ["cat:hat"], - }, - scope: "test:exampledowntime", - schedule: { - start: undefined, - }, - }, - type: "downtime", - }, - }, -}; - -apiInstance - .createDowntime(params) - .then((data: v2.DowntimeResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/downtimes/GetDowntime.ts b/examples/v2/downtimes/GetDowntime.ts deleted file mode 100644 index 07a996bec127..000000000000 --- a/examples/v2/downtimes/GetDowntime.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a downtime returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -// there is a valid "downtime_v2" in the system -const DOWNTIME_V2_DATA_ID = process.env.DOWNTIME_V2_DATA_ID as string; - -const params: v2.DowntimesApiGetDowntimeRequest = { - downtimeId: DOWNTIME_V2_DATA_ID, -}; - -apiInstance - .getDowntime(params) - .then((data: v2.DowntimeResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/downtimes/ListDowntimes.ts b/examples/v2/downtimes/ListDowntimes.ts deleted file mode 100644 index 5502111f266e..000000000000 --- a/examples/v2/downtimes/ListDowntimes.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all downtimes returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -apiInstance - .listDowntimes() - .then((data: v2.ListDowntimesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/downtimes/ListDowntimes_805770330.ts b/examples/v2/downtimes/ListDowntimes_805770330.ts deleted file mode 100644 index cabd5147d146..000000000000 --- a/examples/v2/downtimes/ListDowntimes_805770330.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all downtimes returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -const params: v2.DowntimesApiListDowntimesRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listDowntimesWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/downtimes/ListMonitorDowntimes.ts b/examples/v2/downtimes/ListMonitorDowntimes.ts deleted file mode 100644 index c6a30d3084d6..000000000000 --- a/examples/v2/downtimes/ListMonitorDowntimes.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get active downtimes for a monitor returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -const params: v2.DowntimesApiListMonitorDowntimesRequest = { - monitorId: 35534610, -}; - -apiInstance - .listMonitorDowntimes(params) - .then((data: v2.MonitorDowntimeMatchResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/downtimes/ListMonitorDowntimes_3316718253.ts b/examples/v2/downtimes/ListMonitorDowntimes_3316718253.ts deleted file mode 100644 index b7c1cf1bfba3..000000000000 --- a/examples/v2/downtimes/ListMonitorDowntimes_3316718253.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get active downtimes for a monitor returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -const params: v2.DowntimesApiListMonitorDowntimesRequest = { - monitorId: 9223372036854775807, -}; - -(async () => { - try { - for await (const item of apiInstance.listMonitorDowntimesWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/downtimes/UpdateDowntime.ts b/examples/v2/downtimes/UpdateDowntime.ts deleted file mode 100644 index 82733cd861ee..000000000000 --- a/examples/v2/downtimes/UpdateDowntime.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update a downtime returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.DowntimesApi(configuration); - -// there is a valid "downtime_v2" in the system -const DOWNTIME_V2_DATA_ID = process.env.DOWNTIME_V2_DATA_ID as string; - -const params: v2.DowntimesApiUpdateDowntimeRequest = { - body: { - data: { - attributes: { - message: "light speed", - }, - id: DOWNTIME_V2_DATA_ID, - type: "downtime", - }, - }, - downtimeId: DOWNTIME_V2_DATA_ID, -}; - -apiInstance - .updateDowntime(params) - .then((data: v2.DowntimeResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/events/CreateEvent.ts b/examples/v2/events/CreateEvent.ts deleted file mode 100644 index b08a4499b3f0..000000000000 --- a/examples/v2/events/CreateEvent.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Post an event returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.EventsApi(configuration); - -const params: v2.EventsApiCreateEventRequest = { - body: { - data: { - attributes: { - attributes: { - author: { - name: "datadog@datadog.com", - type: "user", - }, - changeMetadata: { - dd: "{'team': 'datadog_team', 'user_email': 'datadog@datadog.com', 'user_id': 'datadog_user_id', 'user_name': 'datadog_username'}", - resource_link: "datadog.com/feature/fallback_payments_test", - }, - changedResource: { - name: "fallback_payments_test", - type: "feature_flag", - }, - impactedResources: [ - { - name: "payments_api", - type: "service", - }, - ], - newValue: { - enabled: "True", - percentage: "50%", - rule: "{'datacenter': 'devcycle.us1.prod'}", - }, - prevValue: { - enabled: "True", - percentage: "10%", - rule: "{'datacenter': 'devcycle.us1.prod'}", - }, - }, - category: "change", - message: "payment_processed feature flag has been enabled", - tags: ["env:test"], - title: "payment_processed feature flag updated", - }, - type: "event", - }, - }, -}; - -apiInstance - .createEvent(params) - .then((data: v2.EventCreateResponsePayload) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/events/ListEvents.ts b/examples/v2/events/ListEvents.ts deleted file mode 100644 index b8437f59a6a7..000000000000 --- a/examples/v2/events/ListEvents.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a list of events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.EventsApi(configuration); - -apiInstance - .listEvents() - .then((data: v2.EventsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/events/ListEvents_1527584014.ts b/examples/v2/events/ListEvents_1527584014.ts deleted file mode 100644 index b1a4dbfb5288..000000000000 --- a/examples/v2/events/ListEvents_1527584014.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a list of events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.EventsApi(configuration); - -const params: v2.EventsApiListEventsRequest = { - filterFrom: "now-15m", - filterTo: "now", - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listEventsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/events/ListEvents_2663715109.ts b/examples/v2/events/ListEvents_2663715109.ts deleted file mode 100644 index b565a14d71ee..000000000000 --- a/examples/v2/events/ListEvents_2663715109.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a quick list of events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.EventsApi(configuration); - -const params: v2.EventsApiListEventsRequest = { - filterQuery: "datadog-agent", - filterFrom: "2020-09-17T11:48:36+01:00", - filterTo: "2020-09-17T12:48:36+01:00", - pageLimit: 5, -}; - -apiInstance - .listEvents(params) - .then((data: v2.EventsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/events/SearchEvents.ts b/examples/v2/events/SearchEvents.ts deleted file mode 100644 index 7e40250bb7c0..000000000000 --- a/examples/v2/events/SearchEvents.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Search events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.EventsApi(configuration); - -const params: v2.EventsApiSearchEventsRequest = { - body: { - filter: { - query: "datadog-agent", - from: "2020-09-17T11:48:36+01:00", - to: "2020-09-17T12:48:36+01:00", - }, - sort: "timestamp", - page: { - limit: 5, - }, - }, -}; - -apiInstance - .searchEvents(params) - .then((data: v2.EventsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/events/SearchEvents_3856995058.ts b/examples/v2/events/SearchEvents_3856995058.ts deleted file mode 100644 index ee33f6d068c9..000000000000 --- a/examples/v2/events/SearchEvents_3856995058.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Search events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.EventsApi(configuration); - -const params: v2.EventsApiSearchEventsRequest = { - body: { - filter: { - from: "now-15m", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.searchEventsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/fastly-integration/CreateFastlyAccount.ts b/examples/v2/fastly-integration/CreateFastlyAccount.ts deleted file mode 100644 index e80dac420162..000000000000 --- a/examples/v2/fastly-integration/CreateFastlyAccount.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Add Fastly account returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiCreateFastlyAccountRequest = { - body: { - data: { - attributes: { - apiKey: "ExampleFastlyIntegration", - name: "Example-Fastly-Integration", - services: [], - }, - type: "fastly-accounts", - }, - }, -}; - -apiInstance - .createFastlyAccount(params) - .then((data: v2.FastlyAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/CreateFastlyService.ts b/examples/v2/fastly-integration/CreateFastlyService.ts deleted file mode 100644 index 76039ba6cb5d..000000000000 --- a/examples/v2/fastly-integration/CreateFastlyService.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Add Fastly service returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiCreateFastlyServiceRequest = { - body: { - data: { - attributes: { - tags: ["myTag", "myTag2:myValue"], - }, - id: "abc123", - type: "fastly-services", - }, - }, - accountId: "account_id", -}; - -apiInstance - .createFastlyService(params) - .then((data: v2.FastlyServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/DeleteFastlyAccount.ts b/examples/v2/fastly-integration/DeleteFastlyAccount.ts deleted file mode 100644 index dc301545825c..000000000000 --- a/examples/v2/fastly-integration/DeleteFastlyAccount.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Fastly account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiDeleteFastlyAccountRequest = { - accountId: "account_id", -}; - -apiInstance - .deleteFastlyAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/DeleteFastlyService.ts b/examples/v2/fastly-integration/DeleteFastlyService.ts deleted file mode 100644 index 4188bc34fb59..000000000000 --- a/examples/v2/fastly-integration/DeleteFastlyService.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete Fastly service returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiDeleteFastlyServiceRequest = { - accountId: "account_id", - serviceId: "service_id", -}; - -apiInstance - .deleteFastlyService(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/GetFastlyAccount.ts b/examples/v2/fastly-integration/GetFastlyAccount.ts deleted file mode 100644 index 6457a8d204ce..000000000000 --- a/examples/v2/fastly-integration/GetFastlyAccount.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get Fastly account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -// there is a valid "fastly_account" in the system -const FASTLY_ACCOUNT_DATA_ID = process.env.FASTLY_ACCOUNT_DATA_ID as string; - -const params: v2.FastlyIntegrationApiGetFastlyAccountRequest = { - accountId: FASTLY_ACCOUNT_DATA_ID, -}; - -apiInstance - .getFastlyAccount(params) - .then((data: v2.FastlyAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/GetFastlyService.ts b/examples/v2/fastly-integration/GetFastlyService.ts deleted file mode 100644 index 65360b2accfc..000000000000 --- a/examples/v2/fastly-integration/GetFastlyService.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get Fastly service returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiGetFastlyServiceRequest = { - accountId: "account_id", - serviceId: "service_id", -}; - -apiInstance - .getFastlyService(params) - .then((data: v2.FastlyServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/ListFastlyAccounts.ts b/examples/v2/fastly-integration/ListFastlyAccounts.ts deleted file mode 100644 index bc4018a37835..000000000000 --- a/examples/v2/fastly-integration/ListFastlyAccounts.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Fastly accounts returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -apiInstance - .listFastlyAccounts() - .then((data: v2.FastlyAccountsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/ListFastlyServices.ts b/examples/v2/fastly-integration/ListFastlyServices.ts deleted file mode 100644 index 37850ffb52db..000000000000 --- a/examples/v2/fastly-integration/ListFastlyServices.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * List Fastly services returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiListFastlyServicesRequest = { - accountId: "account_id", -}; - -apiInstance - .listFastlyServices(params) - .then((data: v2.FastlyServicesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/UpdateFastlyAccount.ts b/examples/v2/fastly-integration/UpdateFastlyAccount.ts deleted file mode 100644 index 266eae6934cf..000000000000 --- a/examples/v2/fastly-integration/UpdateFastlyAccount.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Update Fastly account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -// there is a valid "fastly_account" in the system -const FASTLY_ACCOUNT_DATA_ID = process.env.FASTLY_ACCOUNT_DATA_ID as string; - -const params: v2.FastlyIntegrationApiUpdateFastlyAccountRequest = { - body: { - data: { - attributes: { - apiKey: "update-secret", - }, - type: "fastly-accounts", - }, - }, - accountId: FASTLY_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateFastlyAccount(params) - .then((data: v2.FastlyAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/fastly-integration/UpdateFastlyService.ts b/examples/v2/fastly-integration/UpdateFastlyService.ts deleted file mode 100644 index 656efd74096d..000000000000 --- a/examples/v2/fastly-integration/UpdateFastlyService.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Update Fastly service returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.FastlyIntegrationApi(configuration); - -const params: v2.FastlyIntegrationApiUpdateFastlyServiceRequest = { - body: { - data: { - attributes: { - tags: ["myTag", "myTag2:myValue"], - }, - id: "abc123", - type: "fastly-services", - }, - }, - accountId: "account_id", - serviceId: "service_id", -}; - -apiInstance - .updateFastlyService(params) - .then((data: v2.FastlyServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount.ts b/examples/v2/gcp-integration/CreateGCPSTSAccount.ts deleted file mode 100644 index 494ef9d902ec..000000000000 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Create a new entry for your service account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiCreateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - clientEmail: - "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com", - hostFilters: [], - }, - type: "gcp_service_account", - }, - }, -}; - -apiInstance - .createGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.ts b/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.ts deleted file mode 100644 index 93c5be3a62a1..000000000000 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a new entry for your service account with account_tags returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiCreateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - accountTags: ["lorem", "ipsum"], - clientEmail: - "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com", - hostFilters: [], - }, - type: "gcp_service_account", - }, - }, -}; - -apiInstance - .createGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.ts b/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.ts deleted file mode 100644 index 179daf9f9e89..000000000000 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a new entry for your service account with resource collection enabled returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiCreateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - resourceCollectionEnabled: true, - clientEmail: - "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com", - hostFilters: [], - }, - type: "gcp_service_account", - }, - }, -}; - -apiInstance - .createGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.ts b/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.ts deleted file mode 100644 index e09b1fd9a691..000000000000 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a new entry for your service account with cloud run revision filters enabled returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiCreateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - cloudRunRevisionFilters: ["meh:bleh"], - clientEmail: - "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com", - hostFilters: [], - }, - type: "gcp_service_account", - }, - }, -}; - -apiInstance - .createGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.ts b/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.ts deleted file mode 100644 index 0b7570638edf..000000000000 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create a new entry for your service account with security command center enabled returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiCreateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - isSecurityCommandCenterEnabled: true, - isResourceChangeCollectionEnabled: true, - clientEmail: - "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com", - hostFilters: [], - }, - type: "gcp_service_account", - }, - }, -}; - -apiInstance - .createGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.ts b/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.ts deleted file mode 100644 index edbe0a1aaebc..000000000000 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create a new entry for your service account with cspm enabled returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiCreateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - isCspmEnabled: true, - resourceCollectionEnabled: true, - clientEmail: - "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com", - hostFilters: [], - }, - type: "gcp_service_account", - }, - }, -}; - -apiInstance - .createGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/DeleteGCPSTSAccount.ts b/examples/v2/gcp-integration/DeleteGCPSTSAccount.ts deleted file mode 100644 index d2345c91887b..000000000000 --- a/examples/v2/gcp-integration/DeleteGCPSTSAccount.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete an STS enabled GCP Account returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiDeleteGCPSTSAccountRequest = { - accountId: "account_id", -}; - -apiInstance - .deleteGCPSTSAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/GetGCPSTSDelegate.ts b/examples/v2/gcp-integration/GetGCPSTSDelegate.ts deleted file mode 100644 index 6cb7ea311840..000000000000 --- a/examples/v2/gcp-integration/GetGCPSTSDelegate.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List delegate account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -apiInstance - .getGCPSTSDelegate() - .then((data: v2.GCPSTSDelegateAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/ListGCPSTSAccounts.ts b/examples/v2/gcp-integration/ListGCPSTSAccounts.ts deleted file mode 100644 index bf68ecb0065a..000000000000 --- a/examples/v2/gcp-integration/ListGCPSTSAccounts.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all GCP STS-enabled service accounts returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -apiInstance - .listGCPSTSAccounts() - .then((data: v2.GCPSTSServiceAccountsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/MakeGCPSTSDelegate.ts b/examples/v2/gcp-integration/MakeGCPSTSDelegate.ts deleted file mode 100644 index 3675bf7d8bf0..000000000000 --- a/examples/v2/gcp-integration/MakeGCPSTSDelegate.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Create a Datadog GCP principal returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -apiInstance - .makeGCPSTSDelegate() - .then((data: v2.GCPSTSDelegateAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.ts b/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.ts deleted file mode 100644 index f45f6f8d61e9..000000000000 --- a/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Create a Datadog GCP principal with empty body returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -const params: v2.GCPIntegrationApiMakeGCPSTSDelegateRequest = { - body: {}, -}; - -apiInstance - .makeGCPSTSDelegate(params) - .then((data: v2.GCPSTSDelegateAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount.ts b/examples/v2/gcp-integration/UpdateGCPSTSAccount.ts deleted file mode 100644 index bc02ea229251..000000000000 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update STS Service Account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -// there is a valid "gcp_sts_account" in the system -const GCP_STS_ACCOUNT_DATA_ID = process.env.GCP_STS_ACCOUNT_DATA_ID as string; - -const params: v2.GCPIntegrationApiUpdateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - clientEmail: "Test-252bf553ef04b351@example.com", - hostFilters: ["foo:bar"], - }, - id: GCP_STS_ACCOUNT_DATA_ID, - type: "gcp_service_account", - }, - }, - accountId: GCP_STS_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.ts b/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.ts deleted file mode 100644 index c0100ad21921..000000000000 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update STS Service Account returns "OK" response with cloud run revision filters - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -// there is a valid "gcp_sts_account" in the system -const GCP_STS_ACCOUNT_DATA_ID = process.env.GCP_STS_ACCOUNT_DATA_ID as string; - -const params: v2.GCPIntegrationApiUpdateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - clientEmail: "Test-252bf553ef04b351@example.com", - cloudRunRevisionFilters: ["merp:derp"], - }, - id: GCP_STS_ACCOUNT_DATA_ID, - type: "gcp_service_account", - }, - }, - accountId: GCP_STS_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.ts b/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.ts deleted file mode 100644 index 96688e520c44..000000000000 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update STS Service Account returns "OK" response with enable resource collection turned on - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.GCPIntegrationApi(configuration); - -// there is a valid "gcp_sts_account" in the system -const GCP_STS_ACCOUNT_DATA_ID = process.env.GCP_STS_ACCOUNT_DATA_ID as string; - -const params: v2.GCPIntegrationApiUpdateGCPSTSAccountRequest = { - body: { - data: { - attributes: { - clientEmail: "Test-252bf553ef04b351@example.com", - resourceCollectionEnabled: true, - }, - id: GCP_STS_ACCOUNT_DATA_ID, - type: "gcp_service_account", - }, - }, - accountId: GCP_STS_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateGCPSTSAccount(params) - .then((data: v2.GCPSTSServiceAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-services/CreateIncidentService.ts b/examples/v2/incident-services/CreateIncidentService.ts deleted file mode 100644 index d06299453b3a..000000000000 --- a/examples/v2/incident-services/CreateIncidentService.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Create a new incident service returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createIncidentService"] = true; -const apiInstance = new v2.IncidentServicesApi(configuration); - -const params: v2.IncidentServicesApiCreateIncidentServiceRequest = { - body: { - data: { - type: "services", - attributes: { - name: "Example-Incident-Service", - }, - }, - }, -}; - -apiInstance - .createIncidentService(params) - .then((data: v2.IncidentServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-services/DeleteIncidentService.ts b/examples/v2/incident-services/DeleteIncidentService.ts deleted file mode 100644 index 9ffea2a24898..000000000000 --- a/examples/v2/incident-services/DeleteIncidentService.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an existing incident service returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteIncidentService"] = true; -const apiInstance = new v2.IncidentServicesApi(configuration); - -// there is a valid "service" in the system -const SERVICE_DATA_ID = process.env.SERVICE_DATA_ID as string; - -const params: v2.IncidentServicesApiDeleteIncidentServiceRequest = { - serviceId: SERVICE_DATA_ID, -}; - -apiInstance - .deleteIncidentService(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-services/GetIncidentService.ts b/examples/v2/incident-services/GetIncidentService.ts deleted file mode 100644 index f4d8fc4cbe36..000000000000 --- a/examples/v2/incident-services/GetIncidentService.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get details of an incident service returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getIncidentService"] = true; -const apiInstance = new v2.IncidentServicesApi(configuration); - -// there is a valid "service" in the system -const SERVICE_DATA_ID = process.env.SERVICE_DATA_ID as string; - -const params: v2.IncidentServicesApiGetIncidentServiceRequest = { - serviceId: SERVICE_DATA_ID, -}; - -apiInstance - .getIncidentService(params) - .then((data: v2.IncidentServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-services/ListIncidentServices.ts b/examples/v2/incident-services/ListIncidentServices.ts deleted file mode 100644 index 65a0ef91b29a..000000000000 --- a/examples/v2/incident-services/ListIncidentServices.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get a list of all incident services returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentServices"] = true; -const apiInstance = new v2.IncidentServicesApi(configuration); - -// there is a valid "service" in the system -const SERVICE_DATA_ATTRIBUTES_NAME = process.env - .SERVICE_DATA_ATTRIBUTES_NAME as string; - -const params: v2.IncidentServicesApiListIncidentServicesRequest = { - filter: SERVICE_DATA_ATTRIBUTES_NAME, -}; - -apiInstance - .listIncidentServices(params) - .then((data: v2.IncidentServicesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-services/UpdateIncidentService.ts b/examples/v2/incident-services/UpdateIncidentService.ts deleted file mode 100644 index 5d86d221695a..000000000000 --- a/examples/v2/incident-services/UpdateIncidentService.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update an existing incident service returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentService"] = true; -const apiInstance = new v2.IncidentServicesApi(configuration); - -// there is a valid "service" in the system -const SERVICE_DATA_ID = process.env.SERVICE_DATA_ID as string; - -const params: v2.IncidentServicesApiUpdateIncidentServiceRequest = { - body: { - data: { - type: "services", - attributes: { - name: "service name-updated", - }, - }, - }, - serviceId: SERVICE_DATA_ID, -}; - -apiInstance - .updateIncidentService(params) - .then((data: v2.IncidentServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-teams/CreateIncidentTeam.ts b/examples/v2/incident-teams/CreateIncidentTeam.ts deleted file mode 100644 index 53c68f0ce5e0..000000000000 --- a/examples/v2/incident-teams/CreateIncidentTeam.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Create a new incident team returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createIncidentTeam"] = true; -const apiInstance = new v2.IncidentTeamsApi(configuration); - -const params: v2.IncidentTeamsApiCreateIncidentTeamRequest = { - body: { - data: { - type: "teams", - attributes: { - name: "Example-Incident-Team", - }, - }, - }, -}; - -apiInstance - .createIncidentTeam(params) - .then((data: v2.IncidentTeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-teams/DeleteIncidentTeam.ts b/examples/v2/incident-teams/DeleteIncidentTeam.ts deleted file mode 100644 index 3977906bcad6..000000000000 --- a/examples/v2/incident-teams/DeleteIncidentTeam.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an existing incident team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteIncidentTeam"] = true; -const apiInstance = new v2.IncidentTeamsApi(configuration); - -// there is a valid "team" in the system -const TEAM_DATA_ID = process.env.TEAM_DATA_ID as string; - -const params: v2.IncidentTeamsApiDeleteIncidentTeamRequest = { - teamId: TEAM_DATA_ID, -}; - -apiInstance - .deleteIncidentTeam(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-teams/GetIncidentTeam.ts b/examples/v2/incident-teams/GetIncidentTeam.ts deleted file mode 100644 index b1d9fa7cea2d..000000000000 --- a/examples/v2/incident-teams/GetIncidentTeam.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get details of an incident team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getIncidentTeam"] = true; -const apiInstance = new v2.IncidentTeamsApi(configuration); - -// there is a valid "team" in the system -const TEAM_DATA_ID = process.env.TEAM_DATA_ID as string; - -const params: v2.IncidentTeamsApiGetIncidentTeamRequest = { - teamId: TEAM_DATA_ID, -}; - -apiInstance - .getIncidentTeam(params) - .then((data: v2.IncidentTeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-teams/ListIncidentTeams.ts b/examples/v2/incident-teams/ListIncidentTeams.ts deleted file mode 100644 index caaab7f94f5b..000000000000 --- a/examples/v2/incident-teams/ListIncidentTeams.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get a list of all incident teams returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentTeams"] = true; -const apiInstance = new v2.IncidentTeamsApi(configuration); - -// there is a valid "team" in the system -const TEAM_DATA_ATTRIBUTES_NAME = process.env - .TEAM_DATA_ATTRIBUTES_NAME as string; - -const params: v2.IncidentTeamsApiListIncidentTeamsRequest = { - filter: TEAM_DATA_ATTRIBUTES_NAME, -}; - -apiInstance - .listIncidentTeams(params) - .then((data: v2.IncidentTeamsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incident-teams/UpdateIncidentTeam.ts b/examples/v2/incident-teams/UpdateIncidentTeam.ts deleted file mode 100644 index e136ae9271c8..000000000000 --- a/examples/v2/incident-teams/UpdateIncidentTeam.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update an existing incident team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentTeam"] = true; -const apiInstance = new v2.IncidentTeamsApi(configuration); - -// there is a valid "team" in the system -const TEAM_DATA_ID = process.env.TEAM_DATA_ID as string; - -const params: v2.IncidentTeamsApiUpdateIncidentTeamRequest = { - body: { - data: { - type: "teams", - attributes: { - name: "team name-updated", - }, - }, - }, - teamId: TEAM_DATA_ID, -}; - -apiInstance - .updateIncidentTeam(params) - .then((data: v2.IncidentTeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/CreateIncident.ts b/examples/v2/incidents/CreateIncident.ts deleted file mode 100644 index 471305497fa7..000000000000 --- a/examples/v2/incidents/CreateIncident.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Create an incident returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createIncident"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.IncidentsApiCreateIncidentRequest = { - body: { - data: { - type: "incidents", - attributes: { - title: "Example-Incident", - customerImpacted: false, - fields: { - state: { - type: "dropdown", - value: "resolved", - }, - }, - }, - relationships: { - commanderUser: { - data: { - type: "users", - id: USER_DATA_ID, - }, - }, - }, - }, - }, -}; - -apiInstance - .createIncident(params) - .then((data: v2.IncidentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/CreateIncidentIntegration.ts b/examples/v2/incidents/CreateIncidentIntegration.ts deleted file mode 100644 index e0976eeb27cf..000000000000 --- a/examples/v2/incidents/CreateIncidentIntegration.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Create an incident integration metadata returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createIncidentIntegration"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiCreateIncidentIntegrationRequest = { - body: { - data: { - attributes: { - incidentId: INCIDENT_DATA_ID, - integrationType: 1, - metadata: { - channels: [ - { - channelId: "C0123456789", - channelName: "#new-channel", - teamId: "T01234567", - redirectUrl: - "https://slack.com/app_redirect?channel=C0123456789&team=T01234567", - }, - ], - }, - }, - type: "incident_integrations", - }, - }, - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .createIncidentIntegration(params) - .then((data: v2.IncidentIntegrationMetadataResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/CreateIncidentTodo.ts b/examples/v2/incidents/CreateIncidentTodo.ts deleted file mode 100644 index 9d13335f9293..000000000000 --- a/examples/v2/incidents/CreateIncidentTodo.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Create an incident todo returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createIncidentTodo"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiCreateIncidentTodoRequest = { - body: { - data: { - attributes: { - assignees: ["@test.user@test.com"], - content: "Restore lost data.", - }, - type: "incident_todos", - }, - }, - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .createIncidentTodo(params) - .then((data: v2.IncidentTodoResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/CreateIncidentType.ts b/examples/v2/incidents/CreateIncidentType.ts deleted file mode 100644 index 3253f36bd7e0..000000000000 --- a/examples/v2/incidents/CreateIncidentType.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create an incident type returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createIncidentType"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiCreateIncidentTypeRequest = { - body: { - data: { - attributes: { - description: - "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", - isDefault: false, - name: "Security Incident", - }, - type: "incident_types", - }, - }, -}; - -apiInstance - .createIncidentType(params) - .then((data: v2.IncidentTypeResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/DeleteIncident.ts b/examples/v2/incidents/DeleteIncident.ts deleted file mode 100644 index 082339f842c0..000000000000 --- a/examples/v2/incidents/DeleteIncident.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an existing incident returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteIncident"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiDeleteIncidentRequest = { - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .deleteIncident(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/DeleteIncidentIntegration.ts b/examples/v2/incidents/DeleteIncidentIntegration.ts deleted file mode 100644 index ead2225efed5..000000000000 --- a/examples/v2/incidents/DeleteIncidentIntegration.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Delete an incident integration metadata returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteIncidentIntegration"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// the "incident" has an "incident_integration_metadata" -const INCIDENT_INTEGRATION_METADATA_DATA_ID = process.env - .INCIDENT_INTEGRATION_METADATA_DATA_ID as string; - -const params: v2.IncidentsApiDeleteIncidentIntegrationRequest = { - incidentId: INCIDENT_DATA_ID, - integrationMetadataId: INCIDENT_INTEGRATION_METADATA_DATA_ID, -}; - -apiInstance - .deleteIncidentIntegration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/DeleteIncidentTodo.ts b/examples/v2/incidents/DeleteIncidentTodo.ts deleted file mode 100644 index 4f0fe1246fcf..000000000000 --- a/examples/v2/incidents/DeleteIncidentTodo.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Delete an incident todo returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteIncidentTodo"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// the "incident" has an "incident_todo" -const INCIDENT_TODO_DATA_ID = process.env.INCIDENT_TODO_DATA_ID as string; - -const params: v2.IncidentsApiDeleteIncidentTodoRequest = { - incidentId: INCIDENT_DATA_ID, - todoId: INCIDENT_TODO_DATA_ID, -}; - -apiInstance - .deleteIncidentTodo(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/DeleteIncidentType.ts b/examples/v2/incidents/DeleteIncidentType.ts deleted file mode 100644 index 6a622815b346..000000000000 --- a/examples/v2/incidents/DeleteIncidentType.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete an incident type returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteIncidentType"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident_type" in the system -const INCIDENT_TYPE_DATA_ID = process.env.INCIDENT_TYPE_DATA_ID as string; - -const params: v2.IncidentsApiDeleteIncidentTypeRequest = { - incidentTypeId: INCIDENT_TYPE_DATA_ID, -}; - -apiInstance - .deleteIncidentType(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/GetIncident.ts b/examples/v2/incidents/GetIncident.ts deleted file mode 100644 index cba0c9cc4117..000000000000 --- a/examples/v2/incidents/GetIncident.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get the details of an incident returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getIncident"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiGetIncidentRequest = { - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .getIncident(params) - .then((data: v2.IncidentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/GetIncidentIntegration.ts b/examples/v2/incidents/GetIncidentIntegration.ts deleted file mode 100644 index ab3391e2475e..000000000000 --- a/examples/v2/incidents/GetIncidentIntegration.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Get incident integration metadata details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getIncidentIntegration"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// the "incident" has an "incident_integration_metadata" -const INCIDENT_INTEGRATION_METADATA_DATA_ID = process.env - .INCIDENT_INTEGRATION_METADATA_DATA_ID as string; - -const params: v2.IncidentsApiGetIncidentIntegrationRequest = { - incidentId: INCIDENT_DATA_ID, - integrationMetadataId: INCIDENT_INTEGRATION_METADATA_DATA_ID, -}; - -apiInstance - .getIncidentIntegration(params) - .then((data: v2.IncidentIntegrationMetadataResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/GetIncidentTodo.ts b/examples/v2/incidents/GetIncidentTodo.ts deleted file mode 100644 index 7be2ede05b13..000000000000 --- a/examples/v2/incidents/GetIncidentTodo.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Get incident todo details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getIncidentTodo"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// the "incident" has an "incident_todo" -const INCIDENT_TODO_DATA_ID = process.env.INCIDENT_TODO_DATA_ID as string; - -const params: v2.IncidentsApiGetIncidentTodoRequest = { - incidentId: INCIDENT_DATA_ID, - todoId: INCIDENT_TODO_DATA_ID, -}; - -apiInstance - .getIncidentTodo(params) - .then((data: v2.IncidentTodoResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/GetIncidentType.ts b/examples/v2/incidents/GetIncidentType.ts deleted file mode 100644 index fa706603f160..000000000000 --- a/examples/v2/incidents/GetIncidentType.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get incident type details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getIncidentType"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiGetIncidentTypeRequest = { - incidentTypeId: "incident_type_id", -}; - -apiInstance - .getIncidentType(params) - .then((data: v2.IncidentTypeResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidentAttachments.ts b/examples/v2/incidents/ListIncidentAttachments.ts deleted file mode 100644 index 677570486855..000000000000 --- a/examples/v2/incidents/ListIncidentAttachments.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a list of attachments returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentAttachments"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiListIncidentAttachmentsRequest = { - incidentId: "incident_id", -}; - -apiInstance - .listIncidentAttachments(params) - .then((data: v2.IncidentAttachmentsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidentAttachments_2457735435.ts b/examples/v2/incidents/ListIncidentAttachments_2457735435.ts deleted file mode 100644 index 8e728502881c..000000000000 --- a/examples/v2/incidents/ListIncidentAttachments_2457735435.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get incident attachments returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentAttachments"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiListIncidentAttachmentsRequest = { - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .listIncidentAttachments(params) - .then((data: v2.IncidentAttachmentsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidentIntegrations.ts b/examples/v2/incidents/ListIncidentIntegrations.ts deleted file mode 100644 index a1ddb41cdbc0..000000000000 --- a/examples/v2/incidents/ListIncidentIntegrations.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a list of an incident's integration metadata returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentIntegrations"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiListIncidentIntegrationsRequest = { - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .listIncidentIntegrations(params) - .then((data: v2.IncidentIntegrationMetadataListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidentTodos.ts b/examples/v2/incidents/ListIncidentTodos.ts deleted file mode 100644 index 487ea5448087..000000000000 --- a/examples/v2/incidents/ListIncidentTodos.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a list of an incident's todos returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentTodos"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiListIncidentTodosRequest = { - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .listIncidentTodos(params) - .then((data: v2.IncidentTodoListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidentTypes.ts b/examples/v2/incidents/ListIncidentTypes.ts deleted file mode 100644 index ec45e243ccdd..000000000000 --- a/examples/v2/incidents/ListIncidentTypes.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Get a list of incident types returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidentTypes"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -apiInstance - .listIncidentTypes() - .then((data: v2.IncidentTypeListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidents.ts b/examples/v2/incidents/ListIncidents.ts deleted file mode 100644 index 08186bbcf970..000000000000 --- a/examples/v2/incidents/ListIncidents.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Get a list of incidents returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidents"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -apiInstance - .listIncidents() - .then((data: v2.IncidentsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/ListIncidents_2665616954.ts b/examples/v2/incidents/ListIncidents_2665616954.ts deleted file mode 100644 index ded2d6cf6f4b..000000000000 --- a/examples/v2/incidents/ListIncidents_2665616954.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get a list of incidents returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listIncidents"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiListIncidentsRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listIncidentsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/incidents/SearchIncidents.ts b/examples/v2/incidents/SearchIncidents.ts deleted file mode 100644 index 6762c94bf9f8..000000000000 --- a/examples/v2/incidents/SearchIncidents.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Search for incidents returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.searchIncidents"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiSearchIncidentsRequest = { - query: "state:(active OR stable OR resolved)", -}; - -apiInstance - .searchIncidents(params) - .then((data: v2.IncidentSearchResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/SearchIncidents_1931679109.ts b/examples/v2/incidents/SearchIncidents_1931679109.ts deleted file mode 100644 index 9f9b531fd296..000000000000 --- a/examples/v2/incidents/SearchIncidents_1931679109.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Search for incidents returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.searchIncidents"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiSearchIncidentsRequest = { - query: "state:(active OR stable OR resolved)", - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.searchIncidentsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/incidents/UpdateIncident.ts b/examples/v2/incidents/UpdateIncident.ts deleted file mode 100644 index fb9fc05ab4a5..000000000000 --- a/examples/v2/incidents/UpdateIncident.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Update an existing incident returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncident"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentRequest = { - body: { - data: { - id: INCIDENT_DATA_ID, - type: "incidents", - attributes: { - fields: { - state: { - type: "dropdown", - value: "resolved", - }, - }, - title: "A test incident title-updated", - }, - }, - }, - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .updateIncident(params) - .then((data: v2.IncidentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncidentAttachments.ts b/examples/v2/incidents/UpdateIncidentAttachments.ts deleted file mode 100644 index 00dc1964e9db..000000000000 --- a/examples/v2/incidents/UpdateIncidentAttachments.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Create, update, and delete incident attachments returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentAttachments"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -const params: v2.IncidentsApiUpdateIncidentAttachmentsRequest = { - body: { - data: [ - { - attributes: { - attachment: { - documentUrl: "https://app.datadoghq.com/notebook/123", - title: "Postmortem IR-123", - }, - attachmentType: "postmortem", - }, - id: "00000000-abcd-0002-0000-000000000000", - type: "incident_attachments", - }, - { - attributes: { - attachment: { - documentUrl: "https://www.example.com/webstore-failure-runbook", - title: "Runbook for webstore service failures", - }, - attachmentType: "link", - }, - type: "incident_attachments", - }, - { - id: "00000000-abcd-0003-0000-000000000000", - type: "incident_attachments", - }, - ], - }, - incidentId: "incident_id", -}; - -apiInstance - .updateIncidentAttachments(params) - .then((data: v2.IncidentAttachmentUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncidentAttachments_3881702075.ts b/examples/v2/incidents/UpdateIncidentAttachments_3881702075.ts deleted file mode 100644 index 30f093c5c79d..000000000000 --- a/examples/v2/incidents/UpdateIncidentAttachments_3881702075.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Create an incident attachment returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentAttachments"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentAttachmentsRequest = { - body: { - data: [ - { - type: "incident_attachments", - attributes: { - attachmentType: "link", - attachment: { - documentUrl: "https://www.example.com/doc", - title: "Example-Incident", - }, - }, - }, - ], - }, - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .updateIncidentAttachments(params) - .then((data: v2.IncidentAttachmentUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncidentIntegration.ts b/examples/v2/incidents/UpdateIncidentIntegration.ts deleted file mode 100644 index 7fe6a54ad5d5..000000000000 --- a/examples/v2/incidents/UpdateIncidentIntegration.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Update an existing incident integration metadata returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentIntegration"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// the "incident" has an "incident_integration_metadata" -const INCIDENT_INTEGRATION_METADATA_DATA_ID = process.env - .INCIDENT_INTEGRATION_METADATA_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentIntegrationRequest = { - body: { - data: { - attributes: { - incidentId: INCIDENT_DATA_ID, - integrationType: 1, - metadata: { - channels: [ - { - channelId: "C0123456789", - channelName: "#updated-channel-name", - teamId: "T01234567", - redirectUrl: - "https://slack.com/app_redirect?channel=C0123456789&team=T01234567", - }, - ], - }, - }, - type: "incident_integrations", - }, - }, - incidentId: INCIDENT_DATA_ID, - integrationMetadataId: INCIDENT_INTEGRATION_METADATA_DATA_ID, -}; - -apiInstance - .updateIncidentIntegration(params) - .then((data: v2.IncidentIntegrationMetadataResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncidentTodo.ts b/examples/v2/incidents/UpdateIncidentTodo.ts deleted file mode 100644 index 53fc9f501856..000000000000 --- a/examples/v2/incidents/UpdateIncidentTodo.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Update an incident todo returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentTodo"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// the "incident" has an "incident_todo" -const INCIDENT_TODO_DATA_ID = process.env.INCIDENT_TODO_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentTodoRequest = { - body: { - data: { - attributes: { - assignees: ["@test.user@test.com"], - content: "Restore lost data.", - completed: "2023-03-06T22:00:00.000000+00:00", - dueDate: "2023-07-10T05:00:00.000000+00:00", - }, - type: "incident_todos", - }, - }, - incidentId: INCIDENT_DATA_ID, - todoId: INCIDENT_TODO_DATA_ID, -}; - -apiInstance - .updateIncidentTodo(params) - .then((data: v2.IncidentTodoResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncidentType.ts b/examples/v2/incidents/UpdateIncidentType.ts deleted file mode 100644 index 27d7b358fd1a..000000000000 --- a/examples/v2/incidents/UpdateIncidentType.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update an incident type returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncidentType"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident_type" in the system -const INCIDENT_TYPE_DATA_ID = process.env.INCIDENT_TYPE_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentTypeRequest = { - body: { - data: { - id: INCIDENT_TYPE_DATA_ID, - attributes: { - name: "Security Incident-updated", - }, - type: "incident_types", - }, - }, - incidentTypeId: INCIDENT_TYPE_DATA_ID, -}; - -apiInstance - .updateIncidentType(params) - .then((data: v2.IncidentTypeResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncident_1009194038.ts b/examples/v2/incidents/UpdateIncident_1009194038.ts deleted file mode 100644 index c5bfa9ece89b..000000000000 --- a/examples/v2/incidents/UpdateIncident_1009194038.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Remove commander from an incident returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncident"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentRequest = { - body: { - data: { - id: INCIDENT_DATA_ID, - type: "incidents", - relationships: { - commanderUser: { - data: null, - }, - }, - }, - }, - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .updateIncident(params) - .then((data: v2.IncidentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/incidents/UpdateIncident_3369341440.ts b/examples/v2/incidents/UpdateIncident_3369341440.ts deleted file mode 100644 index 4048d8b350f8..000000000000 --- a/examples/v2/incidents/UpdateIncident_3369341440.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Add commander to an incident returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateIncident"] = true; -const apiInstance = new v2.IncidentsApi(configuration); - -// there is a valid "incident" in the system -const INCIDENT_DATA_ID = process.env.INCIDENT_DATA_ID as string; - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.IncidentsApiUpdateIncidentRequest = { - body: { - data: { - id: INCIDENT_DATA_ID, - type: "incidents", - relationships: { - commanderUser: { - data: { - id: USER_DATA_ID, - type: "users", - }, - }, - }, - }, - }, - incidentId: INCIDENT_DATA_ID, -}; - -apiInstance - .updateIncident(params) - .then((data: v2.IncidentResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ip-allowlist/GetIPAllowlist.ts b/examples/v2/ip-allowlist/GetIPAllowlist.ts deleted file mode 100644 index 601e073c644d..000000000000 --- a/examples/v2/ip-allowlist/GetIPAllowlist.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get IP Allowlist returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.IPAllowlistApi(configuration); - -apiInstance - .getIPAllowlist() - .then((data: v2.IPAllowlistResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/ip-allowlist/UpdateIPAllowlist.ts b/examples/v2/ip-allowlist/UpdateIPAllowlist.ts deleted file mode 100644 index 664418463eff..000000000000 --- a/examples/v2/ip-allowlist/UpdateIPAllowlist.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Update IP Allowlist returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.IPAllowlistApi(configuration); - -const params: v2.IPAllowlistApiUpdateIPAllowlistRequest = { - body: { - data: { - attributes: { - entries: [ - { - data: { - attributes: { - note: "Example-IP-Allowlist", - cidrBlock: "127.0.0.1", - }, - type: "ip_allowlist_entry", - }, - }, - ], - enabled: false, - }, - type: "ip_allowlist", - }, - }, -}; - -apiInstance - .updateIPAllowlist(params) - .then((data: v2.IPAllowlistResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/CreateAPIKey.ts b/examples/v2/key-management/CreateAPIKey.ts deleted file mode 100644 index ca238e7a192e..000000000000 --- a/examples/v2/key-management/CreateAPIKey.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Create an API key returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -const params: v2.KeyManagementApiCreateAPIKeyRequest = { - body: { - data: { - type: "api_keys", - attributes: { - name: "Example-Key-Management", - }, - }, - }, -}; - -apiInstance - .createAPIKey(params) - .then((data: v2.APIKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/CreateCurrentUserApplicationKey.ts b/examples/v2/key-management/CreateCurrentUserApplicationKey.ts deleted file mode 100644 index 3e4845ddff9a..000000000000 --- a/examples/v2/key-management/CreateCurrentUserApplicationKey.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Create an application key for current user returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -const params: v2.KeyManagementApiCreateCurrentUserApplicationKeyRequest = { - body: { - data: { - type: "application_keys", - attributes: { - name: "Example-Key-Management", - }, - }, - }, -}; - -apiInstance - .createCurrentUserApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.ts b/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.ts deleted file mode 100644 index 7f7f7f0f9d30..000000000000 --- a/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create an Application key with scopes for current user returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -const params: v2.KeyManagementApiCreateCurrentUserApplicationKeyRequest = { - body: { - data: { - type: "application_keys", - attributes: { - name: "Example-Key-Management", - scopes: [ - "dashboards_read", - "dashboards_write", - "dashboards_public_share", - ], - }, - }, - }, -}; - -apiInstance - .createCurrentUserApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/DeleteAPIKey.ts b/examples/v2/key-management/DeleteAPIKey.ts deleted file mode 100644 index 0dd74b4ae51f..000000000000 --- a/examples/v2/key-management/DeleteAPIKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an API key returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "api_key" in the system -const API_KEY_DATA_ID = process.env.API_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiDeleteAPIKeyRequest = { - apiKeyId: API_KEY_DATA_ID, -}; - -apiInstance - .deleteAPIKey(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/DeleteApplicationKey.ts b/examples/v2/key-management/DeleteApplicationKey.ts deleted file mode 100644 index e5e8690d7b59..000000000000 --- a/examples/v2/key-management/DeleteApplicationKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an application key returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "application_key" in the system -const APPLICATION_KEY_DATA_ID = process.env.APPLICATION_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiDeleteApplicationKeyRequest = { - appKeyId: APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .deleteApplicationKey(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/DeleteCurrentUserApplicationKey.ts b/examples/v2/key-management/DeleteCurrentUserApplicationKey.ts deleted file mode 100644 index 4bb550e9ba16..000000000000 --- a/examples/v2/key-management/DeleteCurrentUserApplicationKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an application key owned by current user returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "application_key" in the system -const APPLICATION_KEY_DATA_ID = process.env.APPLICATION_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiDeleteCurrentUserApplicationKeyRequest = { - appKeyId: APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .deleteCurrentUserApplicationKey(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/GetAPIKey.ts b/examples/v2/key-management/GetAPIKey.ts deleted file mode 100644 index 49d1d93bdae3..000000000000 --- a/examples/v2/key-management/GetAPIKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get API key returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "api_key" in the system -const API_KEY_DATA_ID = process.env.API_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiGetAPIKeyRequest = { - apiKeyId: API_KEY_DATA_ID, -}; - -apiInstance - .getAPIKey(params) - .then((data: v2.APIKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/GetApplicationKey.ts b/examples/v2/key-management/GetApplicationKey.ts deleted file mode 100644 index 6c7d6d4dee22..000000000000 --- a/examples/v2/key-management/GetApplicationKey.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get an application key returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "application_key" in the system -const APPLICATION_KEY_DATA_ID = process.env.APPLICATION_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiGetApplicationKeyRequest = { - appKeyId: APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .getApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/GetCurrentUserApplicationKey.ts b/examples/v2/key-management/GetCurrentUserApplicationKey.ts deleted file mode 100644 index 802f48aac73b..000000000000 --- a/examples/v2/key-management/GetCurrentUserApplicationKey.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get one application key owned by current user returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -const params: v2.KeyManagementApiGetCurrentUserApplicationKeyRequest = { - appKeyId: "app_key_id", -}; - -apiInstance - .getCurrentUserApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/ListAPIKeys.ts b/examples/v2/key-management/ListAPIKeys.ts deleted file mode 100644 index 7cd44b755be1..000000000000 --- a/examples/v2/key-management/ListAPIKeys.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get all API keys returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "api_key" in the system -const API_KEY_DATA_ATTRIBUTES_NAME = process.env - .API_KEY_DATA_ATTRIBUTES_NAME as string; - -const params: v2.KeyManagementApiListAPIKeysRequest = { - filter: API_KEY_DATA_ATTRIBUTES_NAME, -}; - -apiInstance - .listAPIKeys(params) - .then((data: v2.APIKeysResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/ListApplicationKeys.ts b/examples/v2/key-management/ListApplicationKeys.ts deleted file mode 100644 index 7986f447b038..000000000000 --- a/examples/v2/key-management/ListApplicationKeys.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all application keys returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -apiInstance - .listApplicationKeys() - .then((data: v2.ListApplicationKeysResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/ListCurrentUserApplicationKeys.ts b/examples/v2/key-management/ListCurrentUserApplicationKeys.ts deleted file mode 100644 index dd5da8bda319..000000000000 --- a/examples/v2/key-management/ListCurrentUserApplicationKeys.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all application keys owned by current user returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -apiInstance - .listCurrentUserApplicationKeys() - .then((data: v2.ListApplicationKeysResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/UpdateAPIKey.ts b/examples/v2/key-management/UpdateAPIKey.ts deleted file mode 100644 index c9426e9814d8..000000000000 --- a/examples/v2/key-management/UpdateAPIKey.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Edit an API key returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "api_key" in the system -const API_KEY_DATA_ID = process.env.API_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiUpdateAPIKeyRequest = { - body: { - data: { - type: "api_keys", - id: API_KEY_DATA_ID, - attributes: { - name: "Example-Key-Management", - }, - }, - }, - apiKeyId: API_KEY_DATA_ID, -}; - -apiInstance - .updateAPIKey(params) - .then((data: v2.APIKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/UpdateApplicationKey.ts b/examples/v2/key-management/UpdateApplicationKey.ts deleted file mode 100644 index 34a2e96cea29..000000000000 --- a/examples/v2/key-management/UpdateApplicationKey.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Edit an application key returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "application_key" in the system -const APPLICATION_KEY_DATA_ID = process.env.APPLICATION_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiUpdateApplicationKeyRequest = { - body: { - data: { - id: APPLICATION_KEY_DATA_ID, - type: "application_keys", - attributes: { - name: "Application Key for managing dashboards-updated", - }, - }, - }, - appKeyId: APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .updateApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/key-management/UpdateCurrentUserApplicationKey.ts b/examples/v2/key-management/UpdateCurrentUserApplicationKey.ts deleted file mode 100644 index 696227416d9c..000000000000 --- a/examples/v2/key-management/UpdateCurrentUserApplicationKey.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Edit an application key owned by current user returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.KeyManagementApi(configuration); - -// there is a valid "application_key" in the system -const APPLICATION_KEY_DATA_ID = process.env.APPLICATION_KEY_DATA_ID as string; - -const params: v2.KeyManagementApiUpdateCurrentUserApplicationKeyRequest = { - body: { - data: { - id: APPLICATION_KEY_DATA_ID, - type: "application_keys", - attributes: { - name: "Application Key for managing dashboards-updated", - }, - }, - }, - appKeyId: APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .updateCurrentUserApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/AddReadRoleToArchive.ts b/examples/v2/logs-archives/AddReadRoleToArchive.ts deleted file mode 100644 index 5dcfc4aa3dce..000000000000 --- a/examples/v2/logs-archives/AddReadRoleToArchive.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Grant role to an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiAddReadRoleToArchiveRequest = { - body: { - data: { - id: "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", - type: "roles", - }, - }, - archiveId: "archive_id", -}; - -apiInstance - .addReadRoleToArchive(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/CreateLogsArchive.ts b/examples/v2/logs-archives/CreateLogsArchive.ts deleted file mode 100644 index aabcc0da01c6..000000000000 --- a/examples/v2/logs-archives/CreateLogsArchive.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Create an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiCreateLogsArchiveRequest = { - body: { - data: { - attributes: { - destination: { - container: "container-name", - integration: { - clientId: "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", - tenantId: "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", - }, - storageAccount: "account-name", - type: "azure", - }, - includeTags: false, - name: "Nginx Archive", - query: "source:nginx", - rehydrationMaxScanSizeInGb: 100, - rehydrationTags: ["team:intake", "team:app"], - }, - type: "archives", - }, - }, -}; - -apiInstance - .createLogsArchive(params) - .then((data: v2.LogsArchive) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/DeleteLogsArchive.ts b/examples/v2/logs-archives/DeleteLogsArchive.ts deleted file mode 100644 index bf3ad5355a5e..000000000000 --- a/examples/v2/logs-archives/DeleteLogsArchive.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiDeleteLogsArchiveRequest = { - archiveId: "archive_id", -}; - -apiInstance - .deleteLogsArchive(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/GetLogsArchive.ts b/examples/v2/logs-archives/GetLogsArchive.ts deleted file mode 100644 index 992bd540861e..000000000000 --- a/examples/v2/logs-archives/GetLogsArchive.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiGetLogsArchiveRequest = { - archiveId: "archive_id", -}; - -apiInstance - .getLogsArchive(params) - .then((data: v2.LogsArchive) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/GetLogsArchiveOrder.ts b/examples/v2/logs-archives/GetLogsArchiveOrder.ts deleted file mode 100644 index 41b11891b046..000000000000 --- a/examples/v2/logs-archives/GetLogsArchiveOrder.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get archive order returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -apiInstance - .getLogsArchiveOrder() - .then((data: v2.LogsArchiveOrder) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/ListArchiveReadRoles.ts b/examples/v2/logs-archives/ListArchiveReadRoles.ts deleted file mode 100644 index a6ebbaaec151..000000000000 --- a/examples/v2/logs-archives/ListArchiveReadRoles.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * List read roles for an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiListArchiveReadRolesRequest = { - archiveId: "archive_id", -}; - -apiInstance - .listArchiveReadRoles(params) - .then((data: v2.RolesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/ListLogsArchives.ts b/examples/v2/logs-archives/ListLogsArchives.ts deleted file mode 100644 index 009084a6783e..000000000000 --- a/examples/v2/logs-archives/ListLogsArchives.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all archives returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -apiInstance - .listLogsArchives() - .then((data: v2.LogsArchives) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/RemoveRoleFromArchive.ts b/examples/v2/logs-archives/RemoveRoleFromArchive.ts deleted file mode 100644 index 59bb8d8b236f..000000000000 --- a/examples/v2/logs-archives/RemoveRoleFromArchive.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Revoke role from an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiRemoveRoleFromArchiveRequest = { - body: { - data: { - id: "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", - type: "roles", - }, - }, - archiveId: "archive_id", -}; - -apiInstance - .removeRoleFromArchive(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/UpdateLogsArchive.ts b/examples/v2/logs-archives/UpdateLogsArchive.ts deleted file mode 100644 index 55b9f0440d41..000000000000 --- a/examples/v2/logs-archives/UpdateLogsArchive.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Update an archive returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiUpdateLogsArchiveRequest = { - body: { - data: { - attributes: { - destination: { - container: "container-name", - integration: { - clientId: "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", - tenantId: "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", - }, - storageAccount: "account-name", - type: "azure", - }, - includeTags: false, - name: "Nginx Archive", - query: "source:nginx", - rehydrationMaxScanSizeInGb: 100, - rehydrationTags: ["team:intake", "team:app"], - }, - type: "archives", - }, - }, - archiveId: "archive_id", -}; - -apiInstance - .updateLogsArchive(params) - .then((data: v2.LogsArchive) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-archives/UpdateLogsArchiveOrder.ts b/examples/v2/logs-archives/UpdateLogsArchiveOrder.ts deleted file mode 100644 index 5fbceb2132b1..000000000000 --- a/examples/v2/logs-archives/UpdateLogsArchiveOrder.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Update archive order returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsArchivesApi(configuration); - -const params: v2.LogsArchivesApiUpdateLogsArchiveOrderRequest = { - body: { - data: { - attributes: { - archiveIds: [ - "a2zcMylnM4OCHpYusxIi1g", - "a2zcMylnM4OCHpYusxIi2g", - "a2zcMylnM4OCHpYusxIi3g", - ], - }, - type: "archive_order", - }, - }, -}; - -apiInstance - .updateLogsArchiveOrder(params) - .then((data: v2.LogsArchiveOrder) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.ts b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.ts deleted file mode 100644 index f5f446a8ade6..000000000000 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Create a custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -const params: v2.LogsCustomDestinationsApiCreateLogsCustomDestinationRequest = { - body: { - data: { - attributes: { - enabled: true, - forwardTags: true, - forwardTagsRestrictionList: ["datacenter", "host"], - forwardTagsRestrictionListType: "ALLOW_LIST", - forwarderDestination: { - auth: { - password: "datadog-custom-destination-password", - type: "basic", - username: "datadog-custom-destination-username", - }, - endpoint: "https://example.com", - type: "http", - }, - name: "Nginx logs", - query: "source:nginx", - }, - type: "custom_destination", - }, - }, -}; - -apiInstance - .createLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.ts b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.ts deleted file mode 100644 index 75b6bd09b97d..000000000000 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Create a Custom Header HTTP custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -const params: v2.LogsCustomDestinationsApiCreateLogsCustomDestinationRequest = { - body: { - data: { - attributes: { - enabled: false, - forwardTags: false, - forwardTagsRestrictionList: ["datacenter", "host"], - forwardTagsRestrictionListType: "ALLOW_LIST", - forwarderDestination: { - auth: { - headerValue: "my-secret", - type: "custom_header", - headerName: "MY-AUTHENTICATION-HEADER", - }, - endpoint: "https://example.com", - type: "http", - }, - name: "Nginx logs", - query: "source:nginx", - }, - type: "custom_destination", - }, - }, -}; - -apiInstance - .createLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.ts b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.ts deleted file mode 100644 index c40358f5e303..000000000000 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Create a Splunk custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -const params: v2.LogsCustomDestinationsApiCreateLogsCustomDestinationRequest = { - body: { - data: { - attributes: { - enabled: false, - forwardTags: false, - forwardTagsRestrictionList: ["datacenter", "host"], - forwardTagsRestrictionListType: "ALLOW_LIST", - forwarderDestination: { - accessToken: "my-access-token", - endpoint: "https://example.com", - type: "splunk_hec", - }, - name: "Nginx logs", - query: "source:nginx", - }, - type: "custom_destination", - }, - }, -}; - -apiInstance - .createLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.ts b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.ts deleted file mode 100644 index 5137af5df1d5..000000000000 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Create an Elasticsearch custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -const params: v2.LogsCustomDestinationsApiCreateLogsCustomDestinationRequest = { - body: { - data: { - attributes: { - enabled: false, - forwardTags: false, - forwardTagsRestrictionList: ["datacenter", "host"], - forwardTagsRestrictionListType: "ALLOW_LIST", - forwarderDestination: { - auth: { - username: "my-username", - password: "my-password", - }, - indexName: "nginx-logs", - indexRotation: "yyyy-MM-dd", - endpoint: "https://example.com", - type: "elasticsearch", - }, - name: "Nginx logs", - query: "source:nginx", - }, - type: "custom_destination", - }, - }, -}; - -apiInstance - .createLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.ts b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.ts deleted file mode 100644 index e0aa8dcd2344..000000000000 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Create a Basic HTTP custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -const params: v2.LogsCustomDestinationsApiCreateLogsCustomDestinationRequest = { - body: { - data: { - attributes: { - enabled: false, - forwardTags: false, - forwardTagsRestrictionList: ["datacenter", "host"], - forwardTagsRestrictionListType: "ALLOW_LIST", - forwarderDestination: { - auth: { - password: "datadog-custom-destination-password", - type: "basic", - username: "datadog-custom-destination-username", - }, - endpoint: "https://example.com", - type: "http", - }, - name: "Nginx logs", - query: "source:nginx", - }, - type: "custom_destination", - }, - }, -}; - -apiInstance - .createLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.ts b/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.ts deleted file mode 100644 index f88a54ed21ef..000000000000 --- a/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete a custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -// there is a valid "custom_destination" in the system -const CUSTOM_DESTINATION_DATA_ID = process.env - .CUSTOM_DESTINATION_DATA_ID as string; - -const params: v2.LogsCustomDestinationsApiDeleteLogsCustomDestinationRequest = { - customDestinationId: CUSTOM_DESTINATION_DATA_ID, -}; - -apiInstance - .deleteLogsCustomDestination(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/GetLogsCustomDestination.ts b/examples/v2/logs-custom-destinations/GetLogsCustomDestination.ts deleted file mode 100644 index e2ed6c354f60..000000000000 --- a/examples/v2/logs-custom-destinations/GetLogsCustomDestination.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -// there is a valid "custom_destination" in the system -const CUSTOM_DESTINATION_DATA_ID = process.env - .CUSTOM_DESTINATION_DATA_ID as string; - -const params: v2.LogsCustomDestinationsApiGetLogsCustomDestinationRequest = { - customDestinationId: CUSTOM_DESTINATION_DATA_ID, -}; - -apiInstance - .getLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.ts b/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.ts deleted file mode 100644 index 45dd92bd677e..000000000000 --- a/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all custom destinations returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -apiInstance - .listLogsCustomDestinations() - .then((data: v2.CustomDestinationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.ts b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.ts deleted file mode 100644 index f613a5196259..000000000000 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Update a custom destination returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsCustomDestinationsApi(configuration); - -// there is a valid "custom_destination" in the system -const CUSTOM_DESTINATION_DATA_ID = process.env - .CUSTOM_DESTINATION_DATA_ID as string; - -const params: v2.LogsCustomDestinationsApiUpdateLogsCustomDestinationRequest = { - body: { - data: { - attributes: { - name: "Nginx logs (Updated)", - query: "source:nginx", - enabled: false, - forwardTags: false, - forwardTagsRestrictionListType: "BLOCK_LIST", - }, - type: "custom_destination", - id: CUSTOM_DESTINATION_DATA_ID, - }, - }, - customDestinationId: CUSTOM_DESTINATION_DATA_ID, -}; - -apiInstance - .updateLogsCustomDestination(params) - .then((data: v2.CustomDestinationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-metrics/CreateLogsMetric.ts b/examples/v2/logs-metrics/CreateLogsMetric.ts deleted file mode 100644 index 005207c3d485..000000000000 --- a/examples/v2/logs-metrics/CreateLogsMetric.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create a log-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -const params: v2.LogsMetricsApiCreateLogsMetricRequest = { - body: { - data: { - id: "ExampleLogsMetric", - type: "logs_metrics", - attributes: { - compute: { - aggregationType: "distribution", - includePercentiles: true, - path: "@duration", - }, - }, - }, - }, -}; - -apiInstance - .createLogsMetric(params) - .then((data: v2.LogsMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-metrics/DeleteLogsMetric.ts b/examples/v2/logs-metrics/DeleteLogsMetric.ts deleted file mode 100644 index 062a1820fd59..000000000000 --- a/examples/v2/logs-metrics/DeleteLogsMetric.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a log-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -// there is a valid "logs_metric" in the system -const LOGS_METRIC_DATA_ID = process.env.LOGS_METRIC_DATA_ID as string; - -const params: v2.LogsMetricsApiDeleteLogsMetricRequest = { - metricId: LOGS_METRIC_DATA_ID, -}; - -apiInstance - .deleteLogsMetric(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-metrics/GetLogsMetric.ts b/examples/v2/logs-metrics/GetLogsMetric.ts deleted file mode 100644 index 20ece725a370..000000000000 --- a/examples/v2/logs-metrics/GetLogsMetric.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a log-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -// there is a valid "logs_metric" in the system -const LOGS_METRIC_DATA_ID = process.env.LOGS_METRIC_DATA_ID as string; - -const params: v2.LogsMetricsApiGetLogsMetricRequest = { - metricId: LOGS_METRIC_DATA_ID, -}; - -apiInstance - .getLogsMetric(params) - .then((data: v2.LogsMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-metrics/ListLogsMetrics.ts b/examples/v2/logs-metrics/ListLogsMetrics.ts deleted file mode 100644 index 3b7ee47a24b2..000000000000 --- a/examples/v2/logs-metrics/ListLogsMetrics.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all log-based metrics returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -apiInstance - .listLogsMetrics() - .then((data: v2.LogsMetricsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-metrics/UpdateLogsMetric.ts b/examples/v2/logs-metrics/UpdateLogsMetric.ts deleted file mode 100644 index fa2e56306b37..000000000000 --- a/examples/v2/logs-metrics/UpdateLogsMetric.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update a log-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -// there is a valid "logs_metric" in the system -const LOGS_METRIC_DATA_ID = process.env.LOGS_METRIC_DATA_ID as string; - -const params: v2.LogsMetricsApiUpdateLogsMetricRequest = { - body: { - data: { - type: "logs_metrics", - attributes: { - filter: { - query: "service:web* AND @http.status_code:[200 TO 299]-updated", - }, - }, - }, - }, - metricId: LOGS_METRIC_DATA_ID, -}; - -apiInstance - .updateLogsMetric(params) - .then((data: v2.LogsMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts b/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts deleted file mode 100644 index 376567a527e6..000000000000 --- a/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update a log-based metric with include_percentiles field returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -// there is a valid "logs_metric_percentile" in the system -const LOGS_METRIC_PERCENTILE_DATA_ID = process.env - .LOGS_METRIC_PERCENTILE_DATA_ID as string; - -const params: v2.LogsMetricsApiUpdateLogsMetricRequest = { - body: { - data: { - type: "logs_metrics", - attributes: { - compute: { - includePercentiles: false, - }, - }, - }, - }, - metricId: LOGS_METRIC_PERCENTILE_DATA_ID, -}; - -apiInstance - .updateLogsMetric(params) - .then((data: v2.LogsMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/AggregateLogs.ts b/examples/v2/logs/AggregateLogs.ts deleted file mode 100644 index 2b7ec5e5d5e0..000000000000 --- a/examples/v2/logs/AggregateLogs.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Aggregate events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiAggregateLogsRequest = { - body: { - filter: { - from: "now-15m", - indexes: ["main"], - query: "*", - to: "now", - }, - }, -}; - -apiInstance - .aggregateLogs(params) - .then((data: v2.LogsAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/AggregateLogs_2527007002.ts b/examples/v2/logs/AggregateLogs_2527007002.ts deleted file mode 100644 index 71d9d6236228..000000000000 --- a/examples/v2/logs/AggregateLogs_2527007002.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Aggregate compute events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiAggregateLogsRequest = { - body: { - compute: [ - { - aggregation: "count", - interval: "5m", - type: "timeseries", - }, - ], - filter: { - from: "now-15m", - indexes: ["main"], - query: "*", - to: "now", - }, - }, -}; - -apiInstance - .aggregateLogs(params) - .then((data: v2.LogsAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/AggregateLogs_2955613758.ts b/examples/v2/logs/AggregateLogs_2955613758.ts deleted file mode 100644 index 7cba53ddafe1..000000000000 --- a/examples/v2/logs/AggregateLogs_2955613758.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Aggregate compute events with group by returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiAggregateLogsRequest = { - body: { - compute: [ - { - aggregation: "count", - interval: "5m", - type: "timeseries", - }, - ], - filter: { - from: "now-15m", - indexes: ["main"], - query: "*", - to: "now", - }, - groupBy: [ - { - facet: "host", - missing: "miss", - sort: { - type: "measure", - order: "asc", - aggregation: "pc90", - metric: "@duration", - }, - }, - ], - }, -}; - -apiInstance - .aggregateLogs(params) - .then((data: v2.LogsAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/ListLogs.ts b/examples/v2/logs/ListLogs.ts deleted file mode 100644 index 760e1ed53f97..000000000000 --- a/examples/v2/logs/ListLogs.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Search logs (POST) returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiListLogsRequest = { - body: { - filter: { - from: "now-15m", - indexes: ["main", "web"], - query: "service:web* AND @http.status_code:[200 TO 299]", - storageTier: "indexes", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - cursor: - "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", - limit: 25, - }, - sort: "timestamp", - }, -}; - -apiInstance - .listLogs(params) - .then((data: v2.LogsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/ListLogsGet.ts b/examples/v2/logs/ListLogsGet.ts deleted file mode 100644 index 3a0a8aa709b4..000000000000 --- a/examples/v2/logs/ListLogsGet.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Search logs (GET) returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -apiInstance - .listLogsGet() - .then((data: v2.LogsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/ListLogsGet_175182691.ts b/examples/v2/logs/ListLogsGet_175182691.ts deleted file mode 100644 index 7b2dd839938e..000000000000 --- a/examples/v2/logs/ListLogsGet_175182691.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Search logs (GET) returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -(async () => { - try { - for await (const item of apiInstance.listLogsGetWithPagination()) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/logs/ListLogsGet_2034110533.ts b/examples/v2/logs/ListLogsGet_2034110533.ts deleted file mode 100644 index a0d37da5b70f..000000000000 --- a/examples/v2/logs/ListLogsGet_2034110533.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a quick list of logs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiListLogsGetRequest = { - filterQuery: "datadog-agent", - filterIndexes: ["main"], - filterFrom: new Date(2020, 9, 17, 11, 48, 36, 0), - filterTo: new Date(2020, 9, 17, 12, 48, 36, 0), - pageLimit: 5, -}; - -apiInstance - .listLogsGet(params) - .then((data: v2.LogsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/ListLogsGet_738202670.ts b/examples/v2/logs/ListLogsGet_738202670.ts deleted file mode 100644 index 8cb53b04052d..000000000000 --- a/examples/v2/logs/ListLogsGet_738202670.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a list of logs returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiListLogsGetRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listLogsGetWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/logs/ListLogs_3138392594.ts b/examples/v2/logs/ListLogs_3138392594.ts deleted file mode 100644 index 6b74f6ec615e..000000000000 --- a/examples/v2/logs/ListLogs_3138392594.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Search logs returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiListLogsRequest = { - body: { - filter: { - from: "now-15m", - indexes: ["main"], - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.listLogsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/logs/ListLogs_3400928236.ts b/examples/v2/logs/ListLogs_3400928236.ts deleted file mode 100644 index 1116514a2090..000000000000 --- a/examples/v2/logs/ListLogs_3400928236.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Search logs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiListLogsRequest = { - body: { - filter: { - query: "datadog-agent", - indexes: ["main"], - from: "2020-09-17T11:48:36+01:00", - to: "2020-09-17T12:48:36+01:00", - }, - sort: "timestamp", - page: { - limit: 5, - }, - }, -}; - -apiInstance - .listLogs(params) - .then((data: v2.LogsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/ListLogs_534975433.ts b/examples/v2/logs/ListLogs_534975433.ts deleted file mode 100644 index 36cb33239cc4..000000000000 --- a/examples/v2/logs/ListLogs_534975433.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Search logs (POST) returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiListLogsRequest = { - body: { - filter: { - from: "now-15m", - indexes: ["main", "web"], - query: "service:web* AND @http.status_code:[200 TO 299]", - storageTier: "indexes", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - cursor: - "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", - limit: 25, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.listLogsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/logs/SubmitLog.ts b/examples/v2/logs/SubmitLog.ts deleted file mode 100644 index 61bf6eca781f..000000000000 --- a/examples/v2/logs/SubmitLog.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Send logs returns "Request accepted for processing (always 202 empty JSON)." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiSubmitLogRequest = { - body: [ - { - ddsource: "nginx", - ddtags: "env:staging,version:5.1", - hostname: "i-012345678", - message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", - service: "payment", - additionalProperties: { - status: "info", - }, - }, - ], -}; - -apiInstance - .submitLog(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/SubmitLog_3496222707.ts b/examples/v2/logs/SubmitLog_3496222707.ts deleted file mode 100644 index f419d3583e4f..000000000000 --- a/examples/v2/logs/SubmitLog_3496222707.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Send gzip logs returns "Request accepted for processing (always 202 empty JSON)." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiSubmitLogRequest = { - body: [ - { - ddsource: "nginx", - ddtags: "env:staging,version:5.1", - hostname: "i-012345678", - message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", - service: "payment", - }, - ], - contentEncoding: "gzip", -}; - -apiInstance - .submitLog(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/logs/SubmitLog_904601870.ts b/examples/v2/logs/SubmitLog_904601870.ts deleted file mode 100644 index c98978acf3aa..000000000000 --- a/examples/v2/logs/SubmitLog_904601870.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Send deflate logs returns "Request accepted for processing (always 202 empty JSON)." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsApi(configuration); - -const params: v2.LogsApiSubmitLogRequest = { - body: [ - { - ddsource: "nginx", - ddtags: "env:staging,version:5.1", - hostname: "i-012345678", - message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", - service: "payment", - }, - ], - contentEncoding: "deflate", -}; - -apiInstance - .submitLog(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.ts b/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.ts deleted file mode 100644 index fe2af18be2a1..000000000000 --- a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Configure tags for multiple metrics returns "Accepted" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ATTRIBUTES_EMAIL = process.env - .USER_DATA_ATTRIBUTES_EMAIL as string; - -const params: v2.MetricsApiCreateBulkTagsMetricsConfigurationRequest = { - body: { - data: { - attributes: { - emails: [USER_DATA_ATTRIBUTES_EMAIL], - tags: ["test", "examplemetric"], - }, - id: "system.load.1", - type: "metric_bulk_configure_tags", - }, - }, -}; - -apiInstance - .createBulkTagsMetricsConfiguration(params) - .then((data: v2.MetricBulkTagConfigResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/CreateTagConfiguration.ts b/examples/v2/metrics/CreateTagConfiguration.ts deleted file mode 100644 index db70794fd3d2..000000000000 --- a/examples/v2/metrics/CreateTagConfiguration.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a tag configuration returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiCreateTagConfigurationRequest = { - body: { - data: { - type: "manage_tags", - id: "ExampleMetric", - attributes: { - tags: ["app", "datacenter"], - metricType: "gauge", - }, - }, - }, - metricName: "ExampleMetric", -}; - -apiInstance - .createTagConfiguration(params) - .then((data: v2.MetricTagConfigurationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.ts b/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.ts deleted file mode 100644 index e75804626e9d..000000000000 --- a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Delete tags for multiple metrics returns "Accepted" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiDeleteBulkTagsMetricsConfigurationRequest = { - body: { - data: { - attributes: { - emails: ["sue@example.com", "bob@example.com"], - }, - id: "kafka.lag", - type: "metric_bulk_configure_tags", - }, - }, -}; - -apiInstance - .deleteBulkTagsMetricsConfiguration(params) - .then((data: v2.MetricBulkTagConfigResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/DeleteTagConfiguration.ts b/examples/v2/metrics/DeleteTagConfiguration.ts deleted file mode 100644 index 116daeeb5185..000000000000 --- a/examples/v2/metrics/DeleteTagConfiguration.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a tag configuration returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiDeleteTagConfigurationRequest = { - metricName: "ExampleMetric", -}; - -apiInstance - .deleteTagConfiguration(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/EstimateMetricsOutputSeries.ts b/examples/v2/metrics/EstimateMetricsOutputSeries.ts deleted file mode 100644 index cd3feb2ed142..000000000000 --- a/examples/v2/metrics/EstimateMetricsOutputSeries.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Tag Configuration Cardinality Estimator returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiEstimateMetricsOutputSeriesRequest = { - metricName: "system.cpu.idle", - filterGroups: "app,host", - filterNumAggregations: 4, -}; - -apiInstance - .estimateMetricsOutputSeries(params) - .then((data: v2.MetricEstimateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListActiveMetricConfigurations.ts b/examples/v2/metrics/ListActiveMetricConfigurations.ts deleted file mode 100644 index e28ef8e6de61..000000000000 --- a/examples/v2/metrics/ListActiveMetricConfigurations.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * List active tags and aggregations returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiListActiveMetricConfigurationsRequest = { - metricName: "static_test_metric_donotdelete", -}; - -apiInstance - .listActiveMetricConfigurations(params) - .then((data: v2.MetricSuggestedTagsAndAggregationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListMetricAssets.ts b/examples/v2/metrics/ListMetricAssets.ts deleted file mode 100644 index a35de4bb772a..000000000000 --- a/examples/v2/metrics/ListMetricAssets.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Related Assets to a Metric returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiListMetricAssetsRequest = { - metricName: "system.cpu.user", -}; - -apiInstance - .listMetricAssets(params) - .then((data: v2.MetricAssetsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListTagConfigurationByName.ts b/examples/v2/metrics/ListTagConfigurationByName.ts deleted file mode 100644 index 50f848926c6c..000000000000 --- a/examples/v2/metrics/ListTagConfigurationByName.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * List tag configuration by name returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -// there is a valid "metric_tag_configuration" in the system -const METRIC_TAG_CONFIGURATION_DATA_ID = process.env - .METRIC_TAG_CONFIGURATION_DATA_ID as string; - -const params: v2.MetricsApiListTagConfigurationByNameRequest = { - metricName: METRIC_TAG_CONFIGURATION_DATA_ID, -}; - -apiInstance - .listTagConfigurationByName(params) - .then((data: v2.MetricTagConfigurationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListTagConfigurations.ts b/examples/v2/metrics/ListTagConfigurations.ts deleted file mode 100644 index 3af2dbb1843a..000000000000 --- a/examples/v2/metrics/ListTagConfigurations.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a list of metrics returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -apiInstance - .listTagConfigurations() - .then((data: v2.MetricsAndMetricTagConfigurationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListTagConfigurations_265033704.ts b/examples/v2/metrics/ListTagConfigurations_265033704.ts deleted file mode 100644 index e92685d67f68..000000000000 --- a/examples/v2/metrics/ListTagConfigurations_265033704.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a list of metrics with a tag filter returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiListTagConfigurationsRequest = { - filterTags: "ExampleMetric", -}; - -apiInstance - .listTagConfigurations(params) - .then((data: v2.MetricsAndMetricTagConfigurationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListTagConfigurations_2739018321.ts b/examples/v2/metrics/ListTagConfigurations_2739018321.ts deleted file mode 100644 index 5cc78d1a6249..000000000000 --- a/examples/v2/metrics/ListTagConfigurations_2739018321.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a list of metrics with configured filter returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiListTagConfigurationsRequest = { - filterConfigured: true, -}; - -apiInstance - .listTagConfigurations(params) - .then((data: v2.MetricsAndMetricTagConfigurationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListTagConfigurations_3969783727.ts b/examples/v2/metrics/ListTagConfigurations_3969783727.ts deleted file mode 100644 index 1578681abcd5..000000000000 --- a/examples/v2/metrics/ListTagConfigurations_3969783727.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a list of metrics returns "Success" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiListTagConfigurationsRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listTagConfigurationsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/metrics/ListTagsByMetricName.ts b/examples/v2/metrics/ListTagsByMetricName.ts deleted file mode 100644 index 831529fb5273..000000000000 --- a/examples/v2/metrics/ListTagsByMetricName.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * List tags by metric name returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -// there is a valid "metric_tag_configuration" in the system -const METRIC_TAG_CONFIGURATION_DATA_ID = process.env - .METRIC_TAG_CONFIGURATION_DATA_ID as string; - -const params: v2.MetricsApiListTagsByMetricNameRequest = { - metricName: METRIC_TAG_CONFIGURATION_DATA_ID, -}; - -apiInstance - .listTagsByMetricName(params) - .then((data: v2.MetricAllTagsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/ListVolumesByMetricName.ts b/examples/v2/metrics/ListVolumesByMetricName.ts deleted file mode 100644 index 3cc00491725a..000000000000 --- a/examples/v2/metrics/ListVolumesByMetricName.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * List distinct metric volumes by metric name returns "Success" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiListVolumesByMetricNameRequest = { - metricName: "static_test_metric_donotdelete", -}; - -apiInstance - .listVolumesByMetricName(params) - .then((data: v2.MetricVolumesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/QueryScalarData.ts b/examples/v2/metrics/QueryScalarData.ts deleted file mode 100644 index 7895b507bcb5..000000000000 --- a/examples/v2/metrics/QueryScalarData.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Query scalar data across multiple products returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiQueryScalarDataRequest = { - body: { - data: { - attributes: { - formulas: [ - { - formula: "a+b", - limit: { - count: 10, - order: "desc", - }, - }, - ], - from: 1568899800000, - queries: [ - { - aggregator: "avg", - dataSource: "metrics", - query: "avg:system.cpu.user{*} by {env}", - }, - ], - to: 1568923200000, - }, - type: "scalar_request", - }, - }, -}; - -apiInstance - .queryScalarData(params) - .then((data: v2.ScalarFormulaQueryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/QueryScalarData_3112571352.ts b/examples/v2/metrics/QueryScalarData_3112571352.ts deleted file mode 100644 index 4732b9630a3a..000000000000 --- a/examples/v2/metrics/QueryScalarData_3112571352.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Scalar cross product query returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiQueryScalarDataRequest = { - body: { - data: { - attributes: { - formulas: [ - { - formula: "a", - limit: { - count: 10, - order: "desc", - }, - }, - ], - from: 1636625471000, - queries: [ - { - aggregator: "avg", - dataSource: "metrics", - query: "avg:system.cpu.user{*}", - name: "a", - }, - ], - to: 1636629071000, - }, - type: "scalar_request", - }, - }, -}; - -apiInstance - .queryScalarData(params) - .then((data: v2.ScalarFormulaQueryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/QueryTimeseriesData.ts b/examples/v2/metrics/QueryTimeseriesData.ts deleted file mode 100644 index ab8d47152862..000000000000 --- a/examples/v2/metrics/QueryTimeseriesData.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Query timeseries data across multiple products returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiQueryTimeseriesDataRequest = { - body: { - data: { - attributes: { - formulas: [ - { - formula: "a+b", - limit: { - count: 10, - order: "desc", - }, - }, - ], - from: 1568899800000, - interval: 5000, - queries: [ - { - dataSource: "metrics", - query: "avg:system.cpu.user{*} by {env}", - }, - ], - to: 1568923200000, - }, - type: "timeseries_request", - }, - }, -}; - -apiInstance - .queryTimeseriesData(params) - .then((data: v2.TimeseriesFormulaQueryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/QueryTimeseriesData_301142940.ts b/examples/v2/metrics/QueryTimeseriesData_301142940.ts deleted file mode 100644 index 7e23c0bb5eb1..000000000000 --- a/examples/v2/metrics/QueryTimeseriesData_301142940.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Timeseries cross product query returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiQueryTimeseriesDataRequest = { - body: { - data: { - attributes: { - formulas: [ - { - formula: "a", - limit: { - count: 10, - order: "desc", - }, - }, - ], - from: 1636625471000, - interval: 5000, - queries: [ - { - dataSource: "metrics", - query: "avg:datadog.estimated_usage.metrics.custom{*}", - name: "a", - }, - ], - to: 1636629071000, - }, - type: "timeseries_request", - }, - }, -}; - -apiInstance - .queryTimeseriesData(params) - .then((data: v2.TimeseriesFormulaQueryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/SubmitMetrics.ts b/examples/v2/metrics/SubmitMetrics.ts deleted file mode 100644 index f56312174559..000000000000 --- a/examples/v2/metrics/SubmitMetrics.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Submit metrics returns "Payload accepted" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiSubmitMetricsRequest = { - body: { - series: [ - { - metric: "system.load.1", - type: 0, - points: [ - { - timestamp: Math.round(new Date().getTime() / 1000), - value: 0.7, - }, - ], - resources: [ - { - name: "dummyhost", - type: "host", - }, - ], - }, - ], - }, -}; - -apiInstance - .submitMetrics(params) - .then((data: v2.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/SubmitMetrics_1762007427.ts b/examples/v2/metrics/SubmitMetrics_1762007427.ts deleted file mode 100644 index 2f91e217f0dd..000000000000 --- a/examples/v2/metrics/SubmitMetrics_1762007427.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Submit metrics with compression returns "Payload accepted" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -const params: v2.MetricsApiSubmitMetricsRequest = { - body: { - series: [ - { - metric: "system.load.1", - type: 0, - points: [ - { - timestamp: Math.round(new Date().getTime() / 1000), - value: 0.7, - }, - ], - }, - ], - }, - contentEncoding: "zstd1", -}; - -apiInstance - .submitMetrics(params) - .then((data: v2.IntakePayloadAccepted) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/metrics/UpdateTagConfiguration.ts b/examples/v2/metrics/UpdateTagConfiguration.ts deleted file mode 100644 index fcbb20c88afb..000000000000 --- a/examples/v2/metrics/UpdateTagConfiguration.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update a tag configuration returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MetricsApi(configuration); - -// there is a valid "metric_tag_configuration" in the system -const METRIC_TAG_CONFIGURATION_DATA_ID = process.env - .METRIC_TAG_CONFIGURATION_DATA_ID as string; - -const params: v2.MetricsApiUpdateTagConfigurationRequest = { - body: { - data: { - type: "manage_tags", - id: METRIC_TAG_CONFIGURATION_DATA_ID, - attributes: { - tags: ["app"], - }, - }, - }, - metricName: METRIC_TAG_CONFIGURATION_DATA_ID, -}; - -apiInstance - .updateTagConfiguration(params) - .then((data: v2.MetricTagConfigurationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.ts b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.ts deleted file mode 100644 index a6ee973e1e84..000000000000 --- a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create tenant-based handle returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiCreateTenantBasedHandleRequest = { - body: { - data: { - attributes: { - channelId: "fake-channel-id", - name: "fake-handle-name", - teamId: "00000000-0000-0000-0000-000000000000", - tenantId: "00000000-0000-0000-0000-000000000001", - }, - type: "tenant-based-handle", - }, - }, -}; - -apiInstance - .createTenantBasedHandle(params) - .then((data: v2.MicrosoftTeamsTenantBasedHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.ts b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.ts deleted file mode 100644 index aea329d6c699..000000000000 --- a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create api handle returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiCreateTenantBasedHandleRequest = { - body: { - data: { - attributes: { - channelId: - "19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2", - name: "Example-Microsoft-Teams-Integration", - teamId: "e5f50a58-c929-4fb3-8866-e2cd836de3c2", - tenantId: "4d3bac44-0230-4732-9e70-cc00736f0a97", - }, - type: "tenant-based-handle", - }, - }, -}; - -apiInstance - .createTenantBasedHandle(params) - .then((data: v2.MicrosoftTeamsTenantBasedHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.ts b/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.ts deleted file mode 100644 index dc2612d72c63..000000000000 --- a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Create Workflows webhook handle returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest = - { - body: { - data: { - attributes: { - name: "fake-handle-name", - url: "https://fake.url.com", - }, - type: "workflows-webhook-handle", - }, - }, - }; - -apiInstance - .createWorkflowsWebhookHandle(params) - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.ts b/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.ts deleted file mode 100644 index 1c737d1cbe40..000000000000 --- a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Create workflow webhook handle returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest = - { - body: { - data: { - attributes: { - name: "Example-Microsoft-Teams-Integration", - url: "https://fake.url.com", - }, - type: "workflows-webhook-handle", - }, - }, - }; - -apiInstance - .createWorkflowsWebhookHandle(params) - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.ts b/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.ts deleted file mode 100644 index 47c1617e334d..000000000000 --- a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete tenant-based handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiDeleteTenantBasedHandleRequest = { - handleId: "handle_id", -}; - -apiInstance - .deleteTenantBasedHandle(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.ts b/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.ts deleted file mode 100644 index e3432db31e58..000000000000 --- a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete api handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -// there is a valid "tenant_based_handle" in the system -const TENANT_BASED_HANDLE_DATA_ID = process.env - .TENANT_BASED_HANDLE_DATA_ID as string; - -const params: v2.MicrosoftTeamsIntegrationApiDeleteTenantBasedHandleRequest = { - handleId: TENANT_BASED_HANDLE_DATA_ID, -}; - -apiInstance - .deleteTenantBasedHandle(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.ts b/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.ts deleted file mode 100644 index 13324924866d..000000000000 --- a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete Workflows webhook handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiDeleteWorkflowsWebhookHandleRequest = - { - handleId: "handle_id", - }; - -apiInstance - .deleteWorkflowsWebhookHandle(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.ts b/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.ts deleted file mode 100644 index 3503061ec9ff..000000000000 --- a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Delete workflow webhook handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -// there is a valid "workflows_webhook_handle" in the system -const WORKFLOWS_WEBHOOK_HANDLE_DATA_ID = process.env - .WORKFLOWS_WEBHOOK_HANDLE_DATA_ID as string; - -const params: v2.MicrosoftTeamsIntegrationApiDeleteWorkflowsWebhookHandleRequest = - { - handleId: WORKFLOWS_WEBHOOK_HANDLE_DATA_ID, - }; - -apiInstance - .deleteWorkflowsWebhookHandle(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/GetChannelByName.ts b/examples/v2/microsoft-teams-integration/GetChannelByName.ts deleted file mode 100644 index 2905e7e562f0..000000000000 --- a/examples/v2/microsoft-teams-integration/GetChannelByName.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get channel information by name returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiGetChannelByNameRequest = { - tenantName: "tenant_name", - teamName: "team_name", - channelName: "channel_name", -}; - -apiInstance - .getChannelByName(params) - .then((data: v2.MicrosoftTeamsGetChannelByNameResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.ts b/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.ts deleted file mode 100644 index e2d59affb32c..000000000000 --- a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get tenant-based handle information returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiGetTenantBasedHandleRequest = { - handleId: "handle_id", -}; - -apiInstance - .getTenantBasedHandle(params) - .then((data: v2.MicrosoftTeamsTenantBasedHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.ts b/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.ts deleted file mode 100644 index b9ffc94ab349..000000000000 --- a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get api handle information returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -// there is a valid "tenant_based_handle" in the system -const TENANT_BASED_HANDLE_DATA_ID = process.env - .TENANT_BASED_HANDLE_DATA_ID as string; - -const params: v2.MicrosoftTeamsIntegrationApiGetTenantBasedHandleRequest = { - handleId: TENANT_BASED_HANDLE_DATA_ID, -}; - -apiInstance - .getTenantBasedHandle(params) - .then((data: v2.MicrosoftTeamsTenantBasedHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.ts b/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.ts deleted file mode 100644 index a1d012a828da..000000000000 --- a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get Workflows webhook handle information returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiGetWorkflowsWebhookHandleRequest = - { - handleId: "handle_id", - }; - -apiInstance - .getWorkflowsWebhookHandle(params) - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.ts b/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.ts deleted file mode 100644 index 32a2b1dc26c5..000000000000 --- a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get workflow webhook handle information returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -// there is a valid "workflows_webhook_handle" in the system -const WORKFLOWS_WEBHOOK_HANDLE_DATA_ID = process.env - .WORKFLOWS_WEBHOOK_HANDLE_DATA_ID as string; - -const params: v2.MicrosoftTeamsIntegrationApiGetWorkflowsWebhookHandleRequest = - { - handleId: WORKFLOWS_WEBHOOK_HANDLE_DATA_ID, - }; - -apiInstance - .getWorkflowsWebhookHandle(params) - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.ts b/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.ts deleted file mode 100644 index 103befb17cd5..000000000000 --- a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all tenant-based handles returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -apiInstance - .listTenantBasedHandles() - .then((data: v2.MicrosoftTeamsTenantBasedHandlesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.ts b/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.ts deleted file mode 100644 index 21dabb883e8c..000000000000 --- a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all api handles returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -apiInstance - .listTenantBasedHandles() - .then((data: v2.MicrosoftTeamsTenantBasedHandlesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.ts b/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.ts deleted file mode 100644 index 14e5fc6ecdbe..000000000000 --- a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all Workflows webhook handles returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -apiInstance - .listWorkflowsWebhookHandles() - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandlesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.ts b/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.ts deleted file mode 100644 index 21b36f001767..000000000000 --- a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all workflow webhook handles returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -apiInstance - .listWorkflowsWebhookHandles() - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandlesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.ts b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.ts deleted file mode 100644 index fecd976df803..000000000000 --- a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Update tenant-based handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest = { - body: { - data: { - attributes: { - channelId: "fake-channel-id", - name: "fake-handle-name", - teamId: "00000000-0000-0000-0000-000000000000", - tenantId: "00000000-0000-0000-0000-000000000001", - }, - type: "tenant-based-handle", - }, - }, - handleId: "handle_id", -}; - -apiInstance - .updateTenantBasedHandle(params) - .then((data: v2.MicrosoftTeamsTenantBasedHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.ts b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.ts deleted file mode 100644 index cf99b2b9706a..000000000000 --- a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update api handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -// there is a valid "tenant_based_handle" in the system -const TENANT_BASED_HANDLE_DATA_ID = process.env - .TENANT_BASED_HANDLE_DATA_ID as string; - -const params: v2.MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest = { - body: { - data: { - attributes: { - name: "fake-handle-name--updated", - }, - type: "tenant-based-handle", - }, - }, - handleId: TENANT_BASED_HANDLE_DATA_ID, -}; - -apiInstance - .updateTenantBasedHandle(params) - .then((data: v2.MicrosoftTeamsTenantBasedHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.ts b/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.ts deleted file mode 100644 index f7fababb4f8e..000000000000 --- a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Update Workflows webhook handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -const params: v2.MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest = - { - body: { - data: { - attributes: { - name: "fake-handle-name", - url: "https://fake.url.com", - }, - type: "workflows-webhook-handle", - }, - }, - handleId: "handle_id", - }; - -apiInstance - .updateWorkflowsWebhookHandle(params) - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.ts b/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.ts deleted file mode 100644 index 0e57eaa2d0a2..000000000000 --- a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update workflow webhook handle returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MicrosoftTeamsIntegrationApi(configuration); - -// there is a valid "workflows_webhook_handle" in the system -const WORKFLOWS_WEBHOOK_HANDLE_DATA_ID = process.env - .WORKFLOWS_WEBHOOK_HANDLE_DATA_ID as string; - -const params: v2.MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest = - { - body: { - data: { - attributes: { - name: "fake-handle-name--updated", - }, - type: "workflows-webhook-handle", - }, - }, - handleId: WORKFLOWS_WEBHOOK_HANDLE_DATA_ID, - }; - -apiInstance - .updateWorkflowsWebhookHandle(params) - .then((data: v2.MicrosoftTeamsWorkflowsWebhookHandleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/monitors/CreateMonitorConfigPolicy.ts b/examples/v2/monitors/CreateMonitorConfigPolicy.ts deleted file mode 100644 index 585471409f5f..000000000000 --- a/examples/v2/monitors/CreateMonitorConfigPolicy.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create a monitor configuration policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MonitorsApi(configuration); - -const params: v2.MonitorsApiCreateMonitorConfigPolicyRequest = { - body: { - data: { - attributes: { - policyType: "tag", - policy: { - tagKey: "examplemonitor", - tagKeyRequired: false, - validTagValues: ["prod", "staging"], - }, - }, - type: "monitor-config-policy", - }, - }, -}; - -apiInstance - .createMonitorConfigPolicy(params) - .then((data: v2.MonitorConfigPolicyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/monitors/DeleteMonitorConfigPolicy.ts b/examples/v2/monitors/DeleteMonitorConfigPolicy.ts deleted file mode 100644 index afa110aee0eb..000000000000 --- a/examples/v2/monitors/DeleteMonitorConfigPolicy.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete a monitor configuration policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MonitorsApi(configuration); - -// there is a valid "monitor_configuration_policy" in the system -const MONITOR_CONFIGURATION_POLICY_DATA_ID = process.env - .MONITOR_CONFIGURATION_POLICY_DATA_ID as string; - -const params: v2.MonitorsApiDeleteMonitorConfigPolicyRequest = { - policyId: MONITOR_CONFIGURATION_POLICY_DATA_ID, -}; - -apiInstance - .deleteMonitorConfigPolicy(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/monitors/GetMonitorConfigPolicy.ts b/examples/v2/monitors/GetMonitorConfigPolicy.ts deleted file mode 100644 index b83866d1225b..000000000000 --- a/examples/v2/monitors/GetMonitorConfigPolicy.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a monitor configuration policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MonitorsApi(configuration); - -// there is a valid "monitor_configuration_policy" in the system -const MONITOR_CONFIGURATION_POLICY_DATA_ID = process.env - .MONITOR_CONFIGURATION_POLICY_DATA_ID as string; - -const params: v2.MonitorsApiGetMonitorConfigPolicyRequest = { - policyId: MONITOR_CONFIGURATION_POLICY_DATA_ID, -}; - -apiInstance - .getMonitorConfigPolicy(params) - .then((data: v2.MonitorConfigPolicyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/monitors/ListMonitorConfigPolicies.ts b/examples/v2/monitors/ListMonitorConfigPolicies.ts deleted file mode 100644 index 16bc52bd4464..000000000000 --- a/examples/v2/monitors/ListMonitorConfigPolicies.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all monitor configuration policies returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MonitorsApi(configuration); - -apiInstance - .listMonitorConfigPolicies() - .then((data: v2.MonitorConfigPolicyListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/monitors/UpdateMonitorConfigPolicy.ts b/examples/v2/monitors/UpdateMonitorConfigPolicy.ts deleted file mode 100644 index b52b95e34bcf..000000000000 --- a/examples/v2/monitors/UpdateMonitorConfigPolicy.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Edit a monitor configuration policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.MonitorsApi(configuration); - -// there is a valid "monitor_configuration_policy" in the system -const MONITOR_CONFIGURATION_POLICY_DATA_ID = process.env - .MONITOR_CONFIGURATION_POLICY_DATA_ID as string; - -const params: v2.MonitorsApiUpdateMonitorConfigPolicyRequest = { - body: { - data: { - attributes: { - policy: { - tagKey: "examplemonitor", - tagKeyRequired: false, - validTagValues: ["prod", "staging"], - }, - policyType: "tag", - }, - id: MONITOR_CONFIGURATION_POLICY_DATA_ID, - type: "monitor-config-policy", - }, - }, - policyId: MONITOR_CONFIGURATION_POLICY_DATA_ID, -}; - -apiInstance - .updateMonitorConfigPolicy(params) - .then((data: v2.MonitorConfigPolicyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/network-device-monitoring/GetDevice.ts b/examples/v2/network-device-monitoring/GetDevice.ts deleted file mode 100644 index abe9ed451f70..000000000000 --- a/examples/v2/network-device-monitoring/GetDevice.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get the device details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.NetworkDeviceMonitoringApi(configuration); - -const params: v2.NetworkDeviceMonitoringApiGetDeviceRequest = { - deviceId: "default_device", -}; - -apiInstance - .getDevice(params) - .then((data: v2.GetDeviceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/network-device-monitoring/GetInterfaces.ts b/examples/v2/network-device-monitoring/GetInterfaces.ts deleted file mode 100644 index 5a16791861a8..000000000000 --- a/examples/v2/network-device-monitoring/GetInterfaces.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get the list of interfaces of the device returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.NetworkDeviceMonitoringApi(configuration); - -const params: v2.NetworkDeviceMonitoringApiGetInterfacesRequest = { - deviceId: "default:1.2.3.4", -}; - -apiInstance - .getInterfaces(params) - .then((data: v2.GetInterfacesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/network-device-monitoring/ListDeviceUserTags.ts b/examples/v2/network-device-monitoring/ListDeviceUserTags.ts deleted file mode 100644 index 5d4f01ca8065..000000000000 --- a/examples/v2/network-device-monitoring/ListDeviceUserTags.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get the list of tags for a device returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.NetworkDeviceMonitoringApi(configuration); - -const params: v2.NetworkDeviceMonitoringApiListDeviceUserTagsRequest = { - deviceId: "default_device", -}; - -apiInstance - .listDeviceUserTags(params) - .then((data: v2.ListTagsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/network-device-monitoring/ListDevices.ts b/examples/v2/network-device-monitoring/ListDevices.ts deleted file mode 100644 index 8dba3755f4f8..000000000000 --- a/examples/v2/network-device-monitoring/ListDevices.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get the list of devices returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.NetworkDeviceMonitoringApi(configuration); - -const params: v2.NetworkDeviceMonitoringApiListDevicesRequest = { - pageNumber: 0, - pageSize: 1, - filterTag: "device_namespace:default", -}; - -apiInstance - .listDevices(params) - .then((data: v2.ListDevicesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/network-device-monitoring/UpdateDeviceUserTags.ts b/examples/v2/network-device-monitoring/UpdateDeviceUserTags.ts deleted file mode 100644 index 8b92aa2c42e5..000000000000 --- a/examples/v2/network-device-monitoring/UpdateDeviceUserTags.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Update the tags for a device returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.NetworkDeviceMonitoringApi(configuration); - -const params: v2.NetworkDeviceMonitoringApiUpdateDeviceUserTagsRequest = { - body: { - data: { - attributes: { - tags: ["tag:test", "tag:testbis"], - }, - id: "default_device", - type: "tags", - }, - }, - deviceId: "default_device", -}; - -apiInstance - .updateDeviceUserTags(params) - .then((data: v2.ListTagsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/okta-integration/CreateOktaAccount.ts b/examples/v2/okta-integration/CreateOktaAccount.ts deleted file mode 100644 index 34e9564d2c3c..000000000000 --- a/examples/v2/okta-integration/CreateOktaAccount.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Add Okta account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OktaIntegrationApi(configuration); - -const params: v2.OktaIntegrationApiCreateOktaAccountRequest = { - body: { - data: { - attributes: { - authMethod: "oauth", - domain: "https://example.okta.com/", - name: "exampleoktaintegration", - clientId: "client_id", - clientSecret: "client_secret", - }, - id: "f749daaf-682e-4208-a38d-c9b43162c609", - type: "okta-accounts", - }, - }, -}; - -apiInstance - .createOktaAccount(params) - .then((data: v2.OktaAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/okta-integration/DeleteOktaAccount.ts b/examples/v2/okta-integration/DeleteOktaAccount.ts deleted file mode 100644 index 6598e0049fb3..000000000000 --- a/examples/v2/okta-integration/DeleteOktaAccount.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete Okta account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OktaIntegrationApi(configuration); - -const params: v2.OktaIntegrationApiDeleteOktaAccountRequest = { - accountId: "account_id", -}; - -apiInstance - .deleteOktaAccount(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/okta-integration/GetOktaAccount.ts b/examples/v2/okta-integration/GetOktaAccount.ts deleted file mode 100644 index b1327cb64472..000000000000 --- a/examples/v2/okta-integration/GetOktaAccount.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get Okta account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OktaIntegrationApi(configuration); - -// there is a valid "okta_account" in the system -const OKTA_ACCOUNT_DATA_ID = process.env.OKTA_ACCOUNT_DATA_ID as string; - -const params: v2.OktaIntegrationApiGetOktaAccountRequest = { - accountId: OKTA_ACCOUNT_DATA_ID, -}; - -apiInstance - .getOktaAccount(params) - .then((data: v2.OktaAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/okta-integration/ListOktaAccounts.ts b/examples/v2/okta-integration/ListOktaAccounts.ts deleted file mode 100644 index 6c1360374aaa..000000000000 --- a/examples/v2/okta-integration/ListOktaAccounts.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Okta accounts returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OktaIntegrationApi(configuration); - -apiInstance - .listOktaAccounts() - .then((data: v2.OktaAccountsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/okta-integration/UpdateOktaAccount.ts b/examples/v2/okta-integration/UpdateOktaAccount.ts deleted file mode 100644 index 27fde49c9d20..000000000000 --- a/examples/v2/okta-integration/UpdateOktaAccount.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update Okta account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OktaIntegrationApi(configuration); - -// there is a valid "okta_account" in the system -const OKTA_ACCOUNT_DATA_ID = process.env.OKTA_ACCOUNT_DATA_ID as string; - -const params: v2.OktaIntegrationApiUpdateOktaAccountRequest = { - body: { - data: { - attributes: { - authMethod: "oauth", - domain: "https://example.okta.com/", - clientId: "client_id", - clientSecret: "client_secret", - }, - type: "okta-accounts", - }, - }, - accountId: OKTA_ACCOUNT_DATA_ID, -}; - -apiInstance - .updateOktaAccount(params) - .then((data: v2.OktaAccountResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/opsgenie-integration/CreateOpsgenieService.ts b/examples/v2/opsgenie-integration/CreateOpsgenieService.ts deleted file mode 100644 index 276bd601ebcb..000000000000 --- a/examples/v2/opsgenie-integration/CreateOpsgenieService.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Create a new service object returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OpsgenieIntegrationApi(configuration); - -const params: v2.OpsgenieIntegrationApiCreateOpsgenieServiceRequest = { - body: { - data: { - attributes: { - name: "Example-Opsgenie-Integration", - opsgenieApiKey: "00000000-0000-0000-0000-000000000000", - region: "us", - }, - type: "opsgenie-service", - }, - }, -}; - -apiInstance - .createOpsgenieService(params) - .then((data: v2.OpsgenieServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/opsgenie-integration/DeleteOpsgenieService.ts b/examples/v2/opsgenie-integration/DeleteOpsgenieService.ts deleted file mode 100644 index 766e5522e82e..000000000000 --- a/examples/v2/opsgenie-integration/DeleteOpsgenieService.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a single service object returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OpsgenieIntegrationApi(configuration); - -// there is a valid "opsgenie_service" in the system -const OPSGENIE_SERVICE_DATA_ID = process.env.OPSGENIE_SERVICE_DATA_ID as string; - -const params: v2.OpsgenieIntegrationApiDeleteOpsgenieServiceRequest = { - integrationServiceId: OPSGENIE_SERVICE_DATA_ID, -}; - -apiInstance - .deleteOpsgenieService(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/opsgenie-integration/GetOpsgenieService.ts b/examples/v2/opsgenie-integration/GetOpsgenieService.ts deleted file mode 100644 index edfeacc4c970..000000000000 --- a/examples/v2/opsgenie-integration/GetOpsgenieService.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a single service object returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OpsgenieIntegrationApi(configuration); - -// there is a valid "opsgenie_service" in the system -const OPSGENIE_SERVICE_DATA_ID = process.env.OPSGENIE_SERVICE_DATA_ID as string; - -const params: v2.OpsgenieIntegrationApiGetOpsgenieServiceRequest = { - integrationServiceId: OPSGENIE_SERVICE_DATA_ID, -}; - -apiInstance - .getOpsgenieService(params) - .then((data: v2.OpsgenieServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/opsgenie-integration/ListOpsgenieServices.ts b/examples/v2/opsgenie-integration/ListOpsgenieServices.ts deleted file mode 100644 index 8b0df42e99bb..000000000000 --- a/examples/v2/opsgenie-integration/ListOpsgenieServices.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all service objects returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OpsgenieIntegrationApi(configuration); - -apiInstance - .listOpsgenieServices() - .then((data: v2.OpsgenieServicesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/opsgenie-integration/UpdateOpsgenieService.ts b/examples/v2/opsgenie-integration/UpdateOpsgenieService.ts deleted file mode 100644 index 9e622323f6d1..000000000000 --- a/examples/v2/opsgenie-integration/UpdateOpsgenieService.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update a single service object returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OpsgenieIntegrationApi(configuration); - -// there is a valid "opsgenie_service" in the system -const OPSGENIE_SERVICE_DATA_ID = process.env.OPSGENIE_SERVICE_DATA_ID as string; - -const params: v2.OpsgenieIntegrationApiUpdateOpsgenieServiceRequest = { - body: { - data: { - attributes: { - name: "fake-opsgenie-service-name--updated", - opsgenieApiKey: "00000000-0000-0000-0000-000000000000", - region: "eu", - }, - id: OPSGENIE_SERVICE_DATA_ID, - type: "opsgenie-service", - }, - }, - integrationServiceId: OPSGENIE_SERVICE_DATA_ID, -}; - -apiInstance - .updateOpsgenieService(params) - .then((data: v2.OpsgenieServiceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/organizations/GetOrgConfig.ts b/examples/v2/organizations/GetOrgConfig.ts deleted file mode 100644 index 89f508790506..000000000000 --- a/examples/v2/organizations/GetOrgConfig.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a specific Org Config value returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OrganizationsApi(configuration); - -const params: v2.OrganizationsApiGetOrgConfigRequest = { - orgConfigName: "custom_roles", -}; - -apiInstance - .getOrgConfig(params) - .then((data: v2.OrgConfigGetResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/organizations/ListOrgConfigs.ts b/examples/v2/organizations/ListOrgConfigs.ts deleted file mode 100644 index 4cd9dd65b504..000000000000 --- a/examples/v2/organizations/ListOrgConfigs.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Org Configs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OrganizationsApi(configuration); - -apiInstance - .listOrgConfigs() - .then((data: v2.OrgConfigListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/organizations/UpdateOrgConfig.ts b/examples/v2/organizations/UpdateOrgConfig.ts deleted file mode 100644 index 3bb81f6d412a..000000000000 --- a/examples/v2/organizations/UpdateOrgConfig.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Update a specific Org Config returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OrganizationsApi(configuration); - -const params: v2.OrganizationsApiUpdateOrgConfigRequest = { - body: { - data: { - attributes: { - value: "UTC", - }, - type: "org_configs", - }, - }, - orgConfigName: "monitor_timezone", -}; - -apiInstance - .updateOrgConfig(params) - .then((data: v2.OrgConfigGetResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/organizations/UploadIdPMetadata.ts b/examples/v2/organizations/UploadIdPMetadata.ts deleted file mode 100644 index 2beaa54c3165..000000000000 --- a/examples/v2/organizations/UploadIdPMetadata.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Upload IdP metadata returns "OK" response - */ - -import * as fs from "fs"; -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.OrganizationsApi(configuration); - -const params: v2.OrganizationsApiUploadIdPMetadataRequest = { - idpFile: { - data: Buffer.from( - fs.readFileSync( - "fixtures/organizations/saml_configurations/valid_idp_metadata.xml", - "utf8" - ) - ), - name: "fixtures/organizations/saml_configurations/valid_idp_metadata.xml", - }, -}; - -apiInstance - .uploadIdPMetadata(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/powerpack/CreatePowerpack.ts b/examples/v2/powerpack/CreatePowerpack.ts deleted file mode 100644 index 8bad53bb2896..000000000000 --- a/examples/v2/powerpack/CreatePowerpack.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a new powerpack returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.PowerpackApi(configuration); - -const params: v2.PowerpackApiCreatePowerpackRequest = { - body: { - data: { - attributes: { - description: "Sample powerpack", - groupWidget: { - definition: { - layoutType: "ordered", - showTitle: true, - title: "Sample Powerpack", - type: "group", - widgets: [ - { - definition: { - content: "test", - type: "note", - }, - }, - ], - }, - layout: { - height: 3, - width: 12, - x: 0, - y: 0, - }, - liveSpan: "1h", - }, - name: "Example-Powerpack", - tags: ["tag:sample"], - templateVariables: [ - { - defaults: ["*"], - name: "sample", - }, - ], - }, - type: "powerpack", - }, - }, -}; - -apiInstance - .createPowerpack(params) - .then((data: v2.PowerpackResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/powerpack/DeletePowerpack.ts b/examples/v2/powerpack/DeletePowerpack.ts deleted file mode 100644 index 6acdc2129fdb..000000000000 --- a/examples/v2/powerpack/DeletePowerpack.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a powerpack returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.PowerpackApi(configuration); - -// there is a valid "powerpack" in the system -const POWERPACK_DATA_ID = process.env.POWERPACK_DATA_ID as string; - -const params: v2.PowerpackApiDeletePowerpackRequest = { - powerpackId: POWERPACK_DATA_ID, -}; - -apiInstance - .deletePowerpack(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/powerpack/GetPowerpack.ts b/examples/v2/powerpack/GetPowerpack.ts deleted file mode 100644 index 9e58c1d6a9e9..000000000000 --- a/examples/v2/powerpack/GetPowerpack.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a Powerpack returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.PowerpackApi(configuration); - -// there is a valid "powerpack" in the system -const POWERPACK_DATA_ID = process.env.POWERPACK_DATA_ID as string; - -const params: v2.PowerpackApiGetPowerpackRequest = { - powerpackId: POWERPACK_DATA_ID, -}; - -apiInstance - .getPowerpack(params) - .then((data: v2.PowerpackResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/powerpack/ListPowerpacks.ts b/examples/v2/powerpack/ListPowerpacks.ts deleted file mode 100644 index 1be1b86a0bb3..000000000000 --- a/examples/v2/powerpack/ListPowerpacks.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all powerpacks returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.PowerpackApi(configuration); - -const params: v2.PowerpackApiListPowerpacksRequest = { - pageLimit: 1000, -}; - -apiInstance - .listPowerpacks(params) - .then((data: v2.ListPowerpacksResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/powerpack/ListPowerpacks_1173755071.ts b/examples/v2/powerpack/ListPowerpacks_1173755071.ts deleted file mode 100644 index c43ba91873cc..000000000000 --- a/examples/v2/powerpack/ListPowerpacks_1173755071.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all powerpacks returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.PowerpackApi(configuration); - -const params: v2.PowerpackApiListPowerpacksRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listPowerpacksWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/powerpack/UpdatePowerpack.ts b/examples/v2/powerpack/UpdatePowerpack.ts deleted file mode 100644 index 98a17d51b919..000000000000 --- a/examples/v2/powerpack/UpdatePowerpack.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Update a powerpack returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.PowerpackApi(configuration); - -// there is a valid "powerpack" in the system -const POWERPACK_DATA_ID = process.env.POWERPACK_DATA_ID as string; - -const params: v2.PowerpackApiUpdatePowerpackRequest = { - body: { - data: { - attributes: { - description: "Sample powerpack", - groupWidget: { - definition: { - layoutType: "ordered", - showTitle: true, - title: "Sample Powerpack", - type: "group", - widgets: [ - { - definition: { - content: "test", - type: "note", - }, - }, - ], - }, - layout: { - height: 3, - width: 12, - x: 0, - y: 0, - }, - liveSpan: "1h", - }, - name: "Example-Powerpack", - tags: ["tag:sample"], - templateVariables: [ - { - defaults: ["*"], - name: "sample", - }, - ], - }, - type: "powerpack", - }, - }, - powerpackId: POWERPACK_DATA_ID, -}; - -apiInstance - .updatePowerpack(params) - .then((data: v2.PowerpackResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/processes/ListProcesses.ts b/examples/v2/processes/ListProcesses.ts deleted file mode 100644 index 562d9569c789..000000000000 --- a/examples/v2/processes/ListProcesses.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get all processes returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ProcessesApi(configuration); - -const params: v2.ProcessesApiListProcessesRequest = { - search: "process-agent", - tags: "testing:true", - pageLimit: 2, -}; - -apiInstance - .listProcesses(params) - .then((data: v2.ProcessSummariesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/processes/ListProcesses_797840471.ts b/examples/v2/processes/ListProcesses_797840471.ts deleted file mode 100644 index d75c9669803a..000000000000 --- a/examples/v2/processes/ListProcesses_797840471.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all processes returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ProcessesApi(configuration); - -const params: v2.ProcessesApiListProcessesRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listProcessesWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/restriction-policies/DeleteRestrictionPolicy.ts b/examples/v2/restriction-policies/DeleteRestrictionPolicy.ts deleted file mode 100644 index c5adeb772548..000000000000 --- a/examples/v2/restriction-policies/DeleteRestrictionPolicy.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a restriction policy returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RestrictionPoliciesApi(configuration); - -const params: v2.RestrictionPoliciesApiDeleteRestrictionPolicyRequest = { - resourceId: "dashboard:test-delete", -}; - -apiInstance - .deleteRestrictionPolicy(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/restriction-policies/GetRestrictionPolicy.ts b/examples/v2/restriction-policies/GetRestrictionPolicy.ts deleted file mode 100644 index f63f9b02c489..000000000000 --- a/examples/v2/restriction-policies/GetRestrictionPolicy.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a restriction policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RestrictionPoliciesApi(configuration); - -const params: v2.RestrictionPoliciesApiGetRestrictionPolicyRequest = { - resourceId: "dashboard:test-get", -}; - -apiInstance - .getRestrictionPolicy(params) - .then((data: v2.RestrictionPolicyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/restriction-policies/UpdateRestrictionPolicy.ts b/examples/v2/restriction-policies/UpdateRestrictionPolicy.ts deleted file mode 100644 index 8d1d0201283e..000000000000 --- a/examples/v2/restriction-policies/UpdateRestrictionPolicy.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Update a restriction policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RestrictionPoliciesApi(configuration); - -// there is a valid "user" in the system - -const params: v2.RestrictionPoliciesApiUpdateRestrictionPolicyRequest = { - body: { - data: { - id: "dashboard:test-update", - type: "restriction_policy", - attributes: { - bindings: [ - { - relation: "editor", - principals: ["org:00000000-0000-beef-0000-000000000000"], - }, - ], - }, - }, - }, - resourceId: "dashboard:test-update", -}; - -apiInstance - .updateRestrictionPolicy(params) - .then((data: v2.RestrictionPolicyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/AddPermissionToRole.ts b/examples/v2/roles/AddPermissionToRole.ts deleted file mode 100644 index 832bf848da89..000000000000 --- a/examples/v2/roles/AddPermissionToRole.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Grant permission to a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -// there is a valid "permission" in the system -const PERMISSION_ID = process.env.PERMISSION_ID as string; - -const params: v2.RolesApiAddPermissionToRoleRequest = { - body: { - data: { - id: PERMISSION_ID, - type: "permissions", - }, - }, - roleId: ROLE_DATA_ID, -}; - -apiInstance - .addPermissionToRole(params) - .then((data: v2.PermissionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/AddUserToRole.ts b/examples/v2/roles/AddUserToRole.ts deleted file mode 100644 index de44954b6c8c..000000000000 --- a/examples/v2/roles/AddUserToRole.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Add a user to a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.RolesApiAddUserToRoleRequest = { - body: { - data: { - id: USER_DATA_ID, - type: "users", - }, - }, - roleId: ROLE_DATA_ID, -}; - -apiInstance - .addUserToRole(params) - .then((data: v2.UsersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/CloneRole.ts b/examples/v2/roles/CloneRole.ts deleted file mode 100644 index f6e376229d02..000000000000 --- a/examples/v2/roles/CloneRole.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Create a new role by cloning an existing role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.RolesApiCloneRoleRequest = { - body: { - data: { - attributes: { - name: "Example-Role clone", - }, - type: "roles", - }, - }, - roleId: ROLE_DATA_ID, -}; - -apiInstance - .cloneRole(params) - .then((data: v2.RoleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/CreateRole.ts b/examples/v2/roles/CreateRole.ts deleted file mode 100644 index 4ac989a50b2c..000000000000 --- a/examples/v2/roles/CreateRole.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Create role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -const params: v2.RolesApiCreateRoleRequest = { - body: { - data: { - attributes: { - name: "developers", - }, - relationships: { - permissions: { - data: [ - { - type: "permissions", - }, - ], - }, - }, - type: "roles", - }, - }, -}; - -apiInstance - .createRole(params) - .then((data: v2.RoleCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/CreateRole_3862893229.ts b/examples/v2/roles/CreateRole_3862893229.ts deleted file mode 100644 index 6fd21f49db12..000000000000 --- a/examples/v2/roles/CreateRole_3862893229.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Create role with a permission returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "permission" in the system -const PERMISSION_ID = process.env.PERMISSION_ID as string; - -const params: v2.RolesApiCreateRoleRequest = { - body: { - data: { - type: "roles", - attributes: { - name: "Example-Role", - }, - relationships: { - permissions: { - data: [ - { - id: PERMISSION_ID, - type: "permissions", - }, - ], - }, - }, - }, - }, -}; - -apiInstance - .createRole(params) - .then((data: v2.RoleCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/DeleteRole.ts b/examples/v2/roles/DeleteRole.ts deleted file mode 100644 index 4f9923d91344..000000000000 --- a/examples/v2/roles/DeleteRole.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.RolesApiDeleteRoleRequest = { - roleId: ROLE_DATA_ID, -}; - -apiInstance - .deleteRole(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/GetRole.ts b/examples/v2/roles/GetRole.ts deleted file mode 100644 index 30ee7b4ef1cb..000000000000 --- a/examples/v2/roles/GetRole.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.RolesApiGetRoleRequest = { - roleId: ROLE_DATA_ID, -}; - -apiInstance - .getRole(params) - .then((data: v2.RoleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/ListPermissions.ts b/examples/v2/roles/ListPermissions.ts deleted file mode 100644 index ac887646d92b..000000000000 --- a/examples/v2/roles/ListPermissions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List permissions returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -apiInstance - .listPermissions() - .then((data: v2.PermissionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/ListRolePermissions.ts b/examples/v2/roles/ListRolePermissions.ts deleted file mode 100644 index 9a1848631db3..000000000000 --- a/examples/v2/roles/ListRolePermissions.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * List permissions for a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.RolesApiListRolePermissionsRequest = { - roleId: ROLE_DATA_ID, -}; - -apiInstance - .listRolePermissions(params) - .then((data: v2.PermissionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/ListRoleUsers.ts b/examples/v2/roles/ListRoleUsers.ts deleted file mode 100644 index 955a8302b438..000000000000 --- a/examples/v2/roles/ListRoleUsers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get all users of a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.RolesApiListRoleUsersRequest = { - roleId: ROLE_DATA_ID, -}; - -apiInstance - .listRoleUsers(params) - .then((data: v2.UsersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/ListRoles.ts b/examples/v2/roles/ListRoles.ts deleted file mode 100644 index c2ec02cb6dfe..000000000000 --- a/examples/v2/roles/ListRoles.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * List roles returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ATTRIBUTES_NAME = process.env - .ROLE_DATA_ATTRIBUTES_NAME as string; - -const params: v2.RolesApiListRolesRequest = { - filter: ROLE_DATA_ATTRIBUTES_NAME, -}; - -apiInstance - .listRoles(params) - .then((data: v2.RolesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/RemovePermissionFromRole.ts b/examples/v2/roles/RemovePermissionFromRole.ts deleted file mode 100644 index baf0d191bffc..000000000000 --- a/examples/v2/roles/RemovePermissionFromRole.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Revoke permission returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -// there is a valid "permission" in the system -const PERMISSION_ID = process.env.PERMISSION_ID as string; - -const params: v2.RolesApiRemovePermissionFromRoleRequest = { - body: { - data: { - id: PERMISSION_ID, - type: "permissions", - }, - }, - roleId: ROLE_DATA_ID, -}; - -apiInstance - .removePermissionFromRole(params) - .then((data: v2.PermissionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/RemoveUserFromRole.ts b/examples/v2/roles/RemoveUserFromRole.ts deleted file mode 100644 index 7db2c705af29..000000000000 --- a/examples/v2/roles/RemoveUserFromRole.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Remove a user from a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.RolesApiRemoveUserFromRoleRequest = { - body: { - data: { - id: USER_DATA_ID, - type: "users", - }, - }, - roleId: ROLE_DATA_ID, -}; - -apiInstance - .removeUserFromRole(params) - .then((data: v2.UsersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/roles/UpdateRole.ts b/examples/v2/roles/UpdateRole.ts deleted file mode 100644 index 0875e9fdca32..000000000000 --- a/examples/v2/roles/UpdateRole.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Update a role returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RolesApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -// there is a valid "permission" in the system -const PERMISSION_ID = process.env.PERMISSION_ID as string; - -const params: v2.RolesApiUpdateRoleRequest = { - body: { - data: { - id: ROLE_DATA_ID, - type: "roles", - attributes: { - name: "developers-updated", - }, - relationships: { - permissions: { - data: [ - { - id: PERMISSION_ID, - type: "permissions", - }, - ], - }, - }, - }, - }, - roleId: ROLE_DATA_ID, -}; - -apiInstance - .updateRole(params) - .then((data: v2.RoleUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-metrics/CreateRumMetric.ts b/examples/v2/rum-metrics/CreateRumMetric.ts deleted file mode 100644 index c85e020ca0db..000000000000 --- a/examples/v2/rum-metrics/CreateRumMetric.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Create a rum-based metric returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumMetricsApi(configuration); - -const params: v2.RumMetricsApiCreateRumMetricRequest = { - body: { - data: { - attributes: { - compute: { - aggregationType: "distribution", - includePercentiles: true, - path: "@duration", - }, - eventType: "session", - filter: { - query: "@service:web-ui", - }, - groupBy: [ - { - path: "@browser.name", - tagName: "browser_name", - }, - ], - uniqueness: { - when: "match", - }, - }, - id: "rum.sessions.webui.count", - type: "rum_metrics", - }, - }, -}; - -apiInstance - .createRumMetric(params) - .then((data: v2.RumMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-metrics/DeleteRumMetric.ts b/examples/v2/rum-metrics/DeleteRumMetric.ts deleted file mode 100644 index a192cbf7feb1..000000000000 --- a/examples/v2/rum-metrics/DeleteRumMetric.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a rum-based metric returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumMetricsApi(configuration); - -// there is a valid "rum_metric" in the system -const RUM_METRIC_DATA_ID = process.env.RUM_METRIC_DATA_ID as string; - -const params: v2.RumMetricsApiDeleteRumMetricRequest = { - metricId: RUM_METRIC_DATA_ID, -}; - -apiInstance - .deleteRumMetric(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-metrics/GetRumMetric.ts b/examples/v2/rum-metrics/GetRumMetric.ts deleted file mode 100644 index 265e53e5a3ab..000000000000 --- a/examples/v2/rum-metrics/GetRumMetric.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a rum-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumMetricsApi(configuration); - -// there is a valid "rum_metric" in the system -const RUM_METRIC_DATA_ID = process.env.RUM_METRIC_DATA_ID as string; - -const params: v2.RumMetricsApiGetRumMetricRequest = { - metricId: RUM_METRIC_DATA_ID, -}; - -apiInstance - .getRumMetric(params) - .then((data: v2.RumMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-metrics/ListRumMetrics.ts b/examples/v2/rum-metrics/ListRumMetrics.ts deleted file mode 100644 index ec6656fb8355..000000000000 --- a/examples/v2/rum-metrics/ListRumMetrics.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all rum-based metrics returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumMetricsApi(configuration); - -apiInstance - .listRumMetrics() - .then((data: v2.RumMetricsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-metrics/UpdateRumMetric.ts b/examples/v2/rum-metrics/UpdateRumMetric.ts deleted file mode 100644 index 8ac1b608e960..000000000000 --- a/examples/v2/rum-metrics/UpdateRumMetric.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Update a rum-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumMetricsApi(configuration); - -// there is a valid "rum_metric" in the system -const RUM_METRIC_DATA_ID = process.env.RUM_METRIC_DATA_ID as string; - -const params: v2.RumMetricsApiUpdateRumMetricRequest = { - body: { - data: { - id: RUM_METRIC_DATA_ID, - type: "rum_metrics", - attributes: { - compute: { - includePercentiles: false, - }, - filter: { - query: "@service:rum-config", - }, - groupBy: [ - { - path: "@browser.version", - tagName: "browser_version", - }, - ], - }, - }, - }, - metricId: RUM_METRIC_DATA_ID, -}; - -apiInstance - .updateRumMetric(params) - .then((data: v2.RumMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-retention-filters/CreateRetentionFilter.ts b/examples/v2/rum-retention-filters/CreateRetentionFilter.ts deleted file mode 100644 index 39f28c8528fe..000000000000 --- a/examples/v2/rum-retention-filters/CreateRetentionFilter.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create a RUM retention filter returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumRetentionFiltersApi(configuration); - -const params: v2.RumRetentionFiltersApiCreateRetentionFilterRequest = { - body: { - data: { - type: "retention_filters", - attributes: { - name: "Test creating retention filter", - eventType: "session", - query: "custom_query", - sampleRate: 50, - enabled: true, - }, - }, - }, - appId: "a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", -}; - -apiInstance - .createRetentionFilter(params) - .then((data: v2.RumRetentionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-retention-filters/DeleteRetentionFilter.ts b/examples/v2/rum-retention-filters/DeleteRetentionFilter.ts deleted file mode 100644 index ff0cc90e5a7b..000000000000 --- a/examples/v2/rum-retention-filters/DeleteRetentionFilter.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete a RUM retention filter returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumRetentionFiltersApi(configuration); - -const params: v2.RumRetentionFiltersApiDeleteRetentionFilterRequest = { - appId: "a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", - rfId: "fe34ee09-14cf-4976-9362-08044c0dea80", -}; - -apiInstance - .deleteRetentionFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-retention-filters/GetRetentionFilter.ts b/examples/v2/rum-retention-filters/GetRetentionFilter.ts deleted file mode 100644 index 065b96c3d42c..000000000000 --- a/examples/v2/rum-retention-filters/GetRetentionFilter.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a RUM retention filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumRetentionFiltersApi(configuration); - -const params: v2.RumRetentionFiltersApiGetRetentionFilterRequest = { - appId: "a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", - rfId: "4b95d361-f65d-4515-9824-c9aaeba5ac2a", -}; - -apiInstance - .getRetentionFilter(params) - .then((data: v2.RumRetentionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-retention-filters/ListRetentionFilters.ts b/examples/v2/rum-retention-filters/ListRetentionFilters.ts deleted file mode 100644 index 896f3419bb57..000000000000 --- a/examples/v2/rum-retention-filters/ListRetentionFilters.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all RUM retention filters returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumRetentionFiltersApi(configuration); - -const params: v2.RumRetentionFiltersApiListRetentionFiltersRequest = { - appId: "1d4b9c34-7ac4-423a-91cf-9902d926e9b3", -}; - -apiInstance - .listRetentionFilters(params) - .then((data: v2.RumRetentionFiltersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-retention-filters/OrderRetentionFilters.ts b/examples/v2/rum-retention-filters/OrderRetentionFilters.ts deleted file mode 100644 index 1c07a7cc9575..000000000000 --- a/examples/v2/rum-retention-filters/OrderRetentionFilters.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Order RUM retention filters returns "Ordered" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumRetentionFiltersApi(configuration); - -const params: v2.RumRetentionFiltersApiOrderRetentionFiltersRequest = { - body: { - data: [ - { - type: "retention_filters", - id: "325631eb-94c9-49c0-93f9-ab7e4fd24529", - }, - { - type: "retention_filters", - id: "42d89430-5b80-426e-a44b-ba3b417ece25", - }, - { - type: "retention_filters", - id: "bff0bc34-99e9-4c16-adce-f47e71948c23", - }, - ], - }, - appId: "1d4b9c34-7ac4-423a-91cf-9902d926e9b3", -}; - -apiInstance - .orderRetentionFilters(params) - .then((data: v2.RumRetentionFiltersOrderResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum-retention-filters/UpdateRetentionFilter.ts b/examples/v2/rum-retention-filters/UpdateRetentionFilter.ts deleted file mode 100644 index 63f5403c7922..000000000000 --- a/examples/v2/rum-retention-filters/UpdateRetentionFilter.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update a RUM retention filter returns "Updated" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RumRetentionFiltersApi(configuration); - -const params: v2.RumRetentionFiltersApiUpdateRetentionFilterRequest = { - body: { - data: { - id: "4b95d361-f65d-4515-9824-c9aaeba5ac2a", - type: "retention_filters", - attributes: { - name: "Test updating retention filter", - eventType: "view", - query: "view_query", - sampleRate: 100, - enabled: true, - }, - }, - }, - appId: "a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", - rfId: "4b95d361-f65d-4515-9824-c9aaeba5ac2a", -}; - -apiInstance - .updateRetentionFilter(params) - .then((data: v2.RumRetentionFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/AggregateRUMEvents.ts b/examples/v2/rum/AggregateRUMEvents.ts deleted file mode 100644 index 5b3bb93c3404..000000000000 --- a/examples/v2/rum/AggregateRUMEvents.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Aggregate RUM events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -const params: v2.RUMApiAggregateRUMEventsRequest = { - body: { - compute: [ - { - aggregation: "pc90", - metric: "@view.time_spent", - type: "total", - }, - ], - filter: { - from: "now-15m", - query: "@type:view AND @session.type:user", - to: "now", - }, - groupBy: [ - { - facet: "@view.time_spent", - limit: 10, - total: false, - }, - ], - options: { - timezone: "GMT", - }, - page: { - limit: 25, - }, - }, -}; - -apiInstance - .aggregateRUMEvents(params) - .then((data: v2.RUMAnalyticsAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/CreateRUMApplication.ts b/examples/v2/rum/CreateRUMApplication.ts deleted file mode 100644 index 46be6c47c836..000000000000 --- a/examples/v2/rum/CreateRUMApplication.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Create a new RUM application returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -const params: v2.RUMApiCreateRUMApplicationRequest = { - body: { - data: { - attributes: { - name: "test-rum-5c67ebb32077e1d9", - type: "ios", - }, - type: "rum_application_create", - }, - }, -}; - -apiInstance - .createRUMApplication(params) - .then((data: v2.RUMApplicationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/DeleteRUMApplication.ts b/examples/v2/rum/DeleteRUMApplication.ts deleted file mode 100644 index cd6faccd070c..000000000000 --- a/examples/v2/rum/DeleteRUMApplication.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a RUM application returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -// there is a valid "rum_application" in the system -const RUM_APPLICATION_DATA_ID = process.env.RUM_APPLICATION_DATA_ID as string; - -const params: v2.RUMApiDeleteRUMApplicationRequest = { - id: RUM_APPLICATION_DATA_ID, -}; - -apiInstance - .deleteRUMApplication(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/GetRUMApplication.ts b/examples/v2/rum/GetRUMApplication.ts deleted file mode 100644 index c5b54942dbe1..000000000000 --- a/examples/v2/rum/GetRUMApplication.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a RUM application returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -// there is a valid "rum_application" in the system -const RUM_APPLICATION_DATA_ID = process.env.RUM_APPLICATION_DATA_ID as string; - -const params: v2.RUMApiGetRUMApplicationRequest = { - id: RUM_APPLICATION_DATA_ID, -}; - -apiInstance - .getRUMApplication(params) - .then((data: v2.RUMApplicationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/GetRUMApplications.ts b/examples/v2/rum/GetRUMApplications.ts deleted file mode 100644 index c10920b27b00..000000000000 --- a/examples/v2/rum/GetRUMApplications.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List all the RUM applications returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -apiInstance - .getRUMApplications() - .then((data: v2.RUMApplicationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/ListRUMEvents.ts b/examples/v2/rum/ListRUMEvents.ts deleted file mode 100644 index 58de35d83a8c..000000000000 --- a/examples/v2/rum/ListRUMEvents.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a list of RUM events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -apiInstance - .listRUMEvents() - .then((data: v2.RUMEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/ListRUMEvents_2680821282.ts b/examples/v2/rum/ListRUMEvents_2680821282.ts deleted file mode 100644 index c674cc22a743..000000000000 --- a/examples/v2/rum/ListRUMEvents_2680821282.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a list of RUM events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -const params: v2.RUMApiListRUMEventsRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listRUMEventsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/rum/SearchRUMEvents.ts b/examples/v2/rum/SearchRUMEvents.ts deleted file mode 100644 index 33ae75733e1c..000000000000 --- a/examples/v2/rum/SearchRUMEvents.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Search RUM events returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -const params: v2.RUMApiSearchRUMEventsRequest = { - body: { - filter: { - from: "now-15m", - query: "@type:session AND @session.type:user", - to: "now", - }, - options: { - timeOffset: 0, - timezone: "GMT", - }, - page: { - limit: 25, - }, - sort: "timestamp", - }, -}; - -apiInstance - .searchRUMEvents(params) - .then((data: v2.RUMEventsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/rum/SearchRUMEvents_574690310.ts b/examples/v2/rum/SearchRUMEvents_574690310.ts deleted file mode 100644 index 671f0940c5e6..000000000000 --- a/examples/v2/rum/SearchRUMEvents_574690310.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Search RUM events returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -const params: v2.RUMApiSearchRUMEventsRequest = { - body: { - filter: { - from: "now-15m", - query: "@type:session AND @session.type:user", - to: "now", - }, - options: { - timeOffset: 0, - timezone: "GMT", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.searchRUMEventsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/rum/UpdateRUMApplication.ts b/examples/v2/rum/UpdateRUMApplication.ts deleted file mode 100644 index 869b1b053e50..000000000000 --- a/examples/v2/rum/UpdateRUMApplication.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update a RUM application returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.RUMApi(configuration); - -// there is a valid "rum_application" in the system -const RUM_APPLICATION_DATA_ID = process.env.RUM_APPLICATION_DATA_ID as string; - -const params: v2.RUMApiUpdateRUMApplicationRequest = { - body: { - data: { - attributes: { - name: "updated_name_for_my_existing_rum_application", - type: "browser", - }, - id: RUM_APPLICATION_DATA_ID, - type: "rum_application_update", - }, - }, - id: RUM_APPLICATION_DATA_ID, -}; - -apiInstance - .updateRUMApplication(params) - .then((data: v2.RUMApplicationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CancelHistoricalJob.ts b/examples/v2/security-monitoring/CancelHistoricalJob.ts deleted file mode 100644 index 6bff4c4b9632..000000000000 --- a/examples/v2/security-monitoring/CancelHistoricalJob.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Cancel a historical job returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.cancelHistoricalJob"] = true; -configuration.unstableOperations["v2.runHistoricalJob"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "historical_job" in the system -const HISTORICAL_JOB_DATA_ID = process.env.HISTORICAL_JOB_DATA_ID as string; - -const params: v2.SecurityMonitoringApiCancelHistoricalJobRequest = { - jobId: HISTORICAL_JOB_DATA_ID, -}; - -apiInstance - .cancelHistoricalJob(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.ts b/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.ts deleted file mode 100644 index 981ff3c9b298..000000000000 --- a/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Convert an existing rule from JSON to Terraform returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_rule" in the system -const SECURITY_RULE_ID = process.env.SECURITY_RULE_ID as string; - -const params: v2.SecurityMonitoringApiConvertExistingSecurityMonitoringRuleRequest = - { - ruleId: SECURITY_RULE_ID, - }; - -apiInstance - .convertExistingSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleConvertResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ConvertJobResultToSignal.ts b/examples/v2/security-monitoring/ConvertJobResultToSignal.ts deleted file mode 100644 index c83441afd493..000000000000 --- a/examples/v2/security-monitoring/ConvertJobResultToSignal.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Convert a job result to a signal returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.convertJobResultToSignal"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiConvertJobResultToSignalRequest = { - body: { - data: { - attributes: { - jobResultIds: [""], - notifications: [""], - signalMessage: "A large number of failed login attempts.", - signalSeverity: "critical", - }, - type: "historicalDetectionsJobResultSignalConversion", - }, - }, -}; - -apiInstance - .convertJobResultToSignal(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.ts b/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.ts deleted file mode 100644 index 9fce7dc96e56..000000000000 --- a/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Convert a rule from JSON to Terraform returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiConvertSecurityMonitoringRuleFromJSONToTerraformRequest = - { - body: { - name: "Example-Security-Monitoring", - queries: [ - { - query: "@test:true", - aggregation: "count", - groupByFields: [], - distinctFields: [], - metric: "", - }, - ], - filters: [], - cases: [ - { - name: "", - status: "info", - condition: "a > 0", - notifications: [], - }, - ], - options: { - evaluationWindow: 900, - keepAlive: 3600, - maxSignalDuration: 86400, - }, - message: "Test rule", - tags: [], - isEnabled: true, - type: "log_detection", - }, - }; - -apiInstance - .convertSecurityMonitoringRuleFromJSONToTerraform(params) - .then((data: v2.SecurityMonitoringRuleConvertResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityFilter.ts b/examples/v2/security-monitoring/CreateSecurityFilter.ts deleted file mode 100644 index dac1a2e95f90..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityFilter.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Create a security filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityFilterRequest = { - body: { - data: { - attributes: { - exclusionFilters: [ - { - name: "Exclude staging", - query: "source:staging", - }, - ], - filteredDataType: "logs", - isEnabled: true, - name: "Example-Security-Monitoring", - query: "service:ExampleSecurityMonitoring", - }, - type: "security_filters", - }, - }, -}; - -apiInstance - .createSecurityFilter(params) - .then((data: v2.SecurityFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule.ts deleted file mode 100644 index dcc83ea36446..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a detection rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - name: "Example-Security-Monitoring", - queries: [ - { - query: "@test:true", - aggregation: "count", - groupByFields: [], - distinctFields: [], - metric: "", - }, - ], - filters: [], - cases: [ - { - name: "", - status: "info", - condition: "a > 0", - notifications: [], - }, - ], - options: { - evaluationWindow: 900, - keepAlive: 3600, - maxSignalDuration: 86400, - }, - message: "Test rule", - tags: [], - isEnabled: true, - type: "log_detection", - referenceTables: [ - { - tableName: "synthetics_test_reference_table_dont_delete", - columnName: "value", - logFieldPath: "testtag", - checkPresence: true, - ruleQueryName: "a", - }, - ], - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.ts deleted file mode 100644 index 0dd5c36e50e6..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Create a cloud_configuration rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - type: "cloud_configuration", - name: "Example-Security-Monitoring_cloud", - isEnabled: false, - cases: [ - { - status: "info", - notifications: ["channel"], - }, - ], - options: { - complianceRuleOptions: { - resourceType: "gcp_compute_disk", - complexRule: false, - regoRule: { - policy: `package datadog - -import data.datadog.output as dd_output - -import future.keywords.contains -import future.keywords.if -import future.keywords.in - -milliseconds_in_a_day := ((1000 * 60) * 60) * 24 - -eval(iam_service_account_key) = "skip" if { - iam_service_account_key.disabled -} else = "pass" if { - (iam_service_account_key.resource_seen_at / milliseconds_in_a_day) - (iam_service_account_key.valid_after_time / milliseconds_in_a_day) <= 90 -} else = "fail" - -# This part remains unchanged for all rules -results contains result if { - some resource in input.resources[input.main_resource_type] - result := dd_output.format(resource, eval(resource)) -} -`, - resourceTypes: ["gcp_compute_disk"], - }, - }, - }, - message: "ddd", - tags: ["my:tag"], - complianceSignalOptions: { - userActivationStatus: true, - userGroupByFields: ["@account_id"], - }, - filters: [ - { - action: "require", - query: "resource_id:helo*", - }, - { - action: "suppress", - query: "control:helo*", - }, - ], - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.ts deleted file mode 100644 index b24646772edf..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Create a detection rule with type 'application_security 'returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - type: "application_security", - name: "Example-Security-Monitoring_appsec_rule", - queries: [ - { - query: "@appsec.security_activity:business_logic.users.login.failure", - aggregation: "count", - groupByFields: ["service", "@http.client_ip"], - distinctFields: [], - }, - ], - filters: [], - cases: [ - { - name: "", - status: "info", - notifications: [], - condition: "a > 100000", - actions: [ - { - type: "block_ip", - options: { - duration: 900, - }, - }, - ], - }, - ], - options: { - keepAlive: 3600, - maxSignalDuration: 86400, - evaluationWindow: 900, - detectionMethod: "threshold", - }, - isEnabled: true, - message: "Test rule", - tags: [], - groupSignalsBy: ["service"], - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.ts deleted file mode 100644 index 6e778d2cd8ee..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Create a detection rule with detection method 'third_party' returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - name: "Example-Security-Monitoring", - type: "log_detection", - isEnabled: true, - thirdPartyCases: [ - { - query: "status:error", - name: "high", - status: "high", - }, - { - query: "status:info", - name: "low", - status: "low", - }, - ], - queries: [], - cases: [], - message: "This is a third party rule", - options: { - detectionMethod: "third_party", - keepAlive: 0, - maxSignalDuration: 600, - thirdPartyRuleOptions: { - defaultStatus: "info", - rootQueries: [ - { - query: "source:guardduty @details.alertType:*EC2*", - groupByFields: ["instance-id"], - }, - { - query: "source:guardduty", - groupByFields: [], - }, - ], - }, - }, - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.ts deleted file mode 100644 index 0f24106fc278..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Create a detection rule with type 'impossible_travel' returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - queries: [ - { - aggregation: "geo_data", - groupByFields: ["@usr.id"], - distinctFields: [], - metric: "@network.client.geoip", - query: "*", - }, - ], - cases: [ - { - name: "", - status: "info", - notifications: [], - }, - ], - hasExtendedTitle: true, - message: "test", - isEnabled: true, - options: { - maxSignalDuration: 86400, - evaluationWindow: 900, - keepAlive: 3600, - detectionMethod: "impossible_travel", - impossibleTravelOptions: { - baselineUserLocations: false, - }, - }, - name: "Example-Security-Monitoring", - type: "log_detection", - tags: [], - filters: [], - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.ts deleted file mode 100644 index 007dfd7b4ab7..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Create a detection rule with type 'workload_security' returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - name: "Example-Security-Monitoring", - queries: [ - { - query: "@test:true", - aggregation: "count", - groupByFields: [], - distinctFields: [], - metric: "", - }, - ], - filters: [], - cases: [ - { - name: "", - status: "info", - condition: "a > 0", - notifications: [], - }, - ], - options: { - evaluationWindow: 900, - keepAlive: 3600, - maxSignalDuration: 86400, - }, - message: "Test rule", - tags: [], - isEnabled: true, - type: "workload_security", - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.ts deleted file mode 100644 index 844d04de7cc4..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Create a detection rule with type 'signal_correlation' returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_rule" in the system -const SECURITY_RULE_ID = process.env.SECURITY_RULE_ID as string; - -// there is a valid "security_rule_bis" in the system -const SECURITY_RULE_BIS_ID = process.env.SECURITY_RULE_BIS_ID as string; - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringRuleRequest = { - body: { - name: "Example-Security-Monitoring_signal_rule", - queries: [ - { - ruleId: SECURITY_RULE_ID, - aggregation: "event_count", - correlatedByFields: ["host"], - correlatedQueryIndex: 1, - }, - { - ruleId: SECURITY_RULE_BIS_ID, - aggregation: "event_count", - correlatedByFields: ["host"], - }, - ], - filters: [], - cases: [ - { - name: "", - status: "info", - condition: "a > 0 && b > 0", - notifications: [], - }, - ], - options: { - evaluationWindow: 900, - keepAlive: 3600, - maxSignalDuration: 86400, - }, - message: "Test signal correlation rule", - tags: [], - isEnabled: true, - type: "signal_correlation", - }, -}; - -apiInstance - .createSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.ts deleted file mode 100644 index 0b819b3f231c..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Create a suppression rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest = - { - body: { - data: { - attributes: { - description: - "This rule suppresses low-severity signals in staging environments.", - enabled: true, - startDate: 1637493071000, - expirationDate: 1638443471000, - name: "Example-Security-Monitoring", - ruleQuery: "type:log_detection source:cloudtrail", - suppressionQuery: "env:staging status:low", - }, - type: "suppressions", - }, - }, - }; - -apiInstance - .createSecurityMonitoringSuppression(params) - .then((data: v2.SecurityMonitoringSuppressionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.ts b/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.ts deleted file mode 100644 index bd915509d8b0..000000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Create a suppression rule with an exclusion query returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest = - { - body: { - data: { - attributes: { - description: - "This rule suppresses low-severity signals in staging environments.", - enabled: true, - startDate: 1637493071000, - expirationDate: 1638443471000, - name: "Example-Security-Monitoring", - ruleQuery: "type:log_detection source:cloudtrail", - dataExclusionQuery: "account_id:12345", - }, - type: "suppressions", - }, - }, - }; - -apiInstance - .createSecurityMonitoringSuppression(params) - .then((data: v2.SecurityMonitoringSuppressionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateSignalNotificationRule.ts b/examples/v2/security-monitoring/CreateSignalNotificationRule.ts deleted file mode 100644 index 4b6961baf615..000000000000 --- a/examples/v2/security-monitoring/CreateSignalNotificationRule.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Create a new signal-based notification rule returns "Successfully created the notification rule." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateSignalNotificationRuleRequest = { - body: { - data: { - attributes: { - enabled: true, - name: "Rule 1", - selectors: { - query: "(source:production_service OR env:prod)", - ruleTypes: ["misconfiguration", "attack_path"], - severities: ["critical"], - triggerSource: "security_findings", - }, - targets: ["@john.doe@email.com"], - timeAggregation: 86400, - }, - type: "notification_rules", - }, - }, -}; - -apiInstance - .createSignalNotificationRule(params) - .then((data: v2.NotificationRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.ts b/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.ts deleted file mode 100644 index 1a2eb480e89c..000000000000 --- a/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Create a new vulnerability-based notification rule returns "Successfully created the notification rule." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiCreateVulnerabilityNotificationRuleRequest = - { - body: { - data: { - attributes: { - enabled: true, - name: "Rule 1", - selectors: { - query: "(source:production_service OR env:prod)", - ruleTypes: ["misconfiguration", "attack_path"], - severities: ["critical"], - triggerSource: "security_findings", - }, - targets: ["@john.doe@email.com"], - timeAggregation: 86400, - }, - type: "notification_rules", - }, - }, - }; - -apiInstance - .createVulnerabilityNotificationRule(params) - .then((data: v2.NotificationRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteHistoricalJob.ts b/examples/v2/security-monitoring/DeleteHistoricalJob.ts deleted file mode 100644 index f2cfd17873f5..000000000000 --- a/examples/v2/security-monitoring/DeleteHistoricalJob.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Delete an existing job returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteHistoricalJob"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiDeleteHistoricalJobRequest = { - jobId: "job_id", -}; - -apiInstance - .deleteHistoricalJob(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteSecurityFilter.ts b/examples/v2/security-monitoring/DeleteSecurityFilter.ts deleted file mode 100644 index ed3c6b04da68..000000000000 --- a/examples/v2/security-monitoring/DeleteSecurityFilter.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a security filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiDeleteSecurityFilterRequest = { - securityFilterId: "security_filter_id", -}; - -apiInstance - .deleteSecurityFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.ts b/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.ts deleted file mode 100644 index 6bde015c2afe..000000000000 --- a/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a security filter returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_filter" in the system -const SECURITY_FILTER_DATA_ID = process.env.SECURITY_FILTER_DATA_ID as string; - -const params: v2.SecurityMonitoringApiDeleteSecurityFilterRequest = { - securityFilterId: SECURITY_FILTER_DATA_ID, -}; - -apiInstance - .deleteSecurityFilter(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.ts b/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.ts deleted file mode 100644 index 8eb328b49f81..000000000000 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an existing rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_rule" in the system -const SECURITY_RULE_ID = process.env.SECURITY_RULE_ID as string; - -const params: v2.SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest = { - ruleId: SECURITY_RULE_ID, -}; - -apiInstance - .deleteSecurityMonitoringRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.ts b/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.ts deleted file mode 100644 index 7b69910374aa..000000000000 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete a suppression rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "suppression" in the system -const SUPPRESSION_DATA_ID = process.env.SUPPRESSION_DATA_ID as string; - -const params: v2.SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest = - { - suppressionId: SUPPRESSION_DATA_ID, - }; - -apiInstance - .deleteSecurityMonitoringSuppression(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteSignalNotificationRule.ts b/examples/v2/security-monitoring/DeleteSignalNotificationRule.ts deleted file mode 100644 index 35ccc76e5609..000000000000 --- a/examples/v2/security-monitoring/DeleteSignalNotificationRule.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Delete a signal-based notification rule returns "Rule successfully deleted." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "valid_signal_notification_rule" in the system -const VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID = process.env - .VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID as string; - -const params: v2.SecurityMonitoringApiDeleteSignalNotificationRuleRequest = { - id: VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID, -}; - -apiInstance - .deleteSignalNotificationRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.ts b/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.ts deleted file mode 100644 index 51ca156f34ef..000000000000 --- a/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Delete a vulnerability-based notification rule returns "Rule successfully deleted." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "valid_vulnerability_notification_rule" in the system -const VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID = process.env - .VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID as string; - -const params: v2.SecurityMonitoringApiDeleteVulnerabilityNotificationRuleRequest = - { - id: VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID, - }; - -apiInstance - .deleteVulnerabilityNotificationRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.ts b/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.ts deleted file mode 100644 index f7fccf032e80..000000000000 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Modify the triage assignee of a security signal returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest = - { - body: { - data: { - attributes: { - assignee: { - uuid: "", - }, - }, - }, - }, - signalId: "AQAAAYG1bl5K4HuUewAAAABBWUcxYmw1S0FBQmt2RmhRN0V4ZUVnQUE", - }; - -apiInstance - .editSecurityMonitoringSignalAssignee(params) - .then((data: v2.SecurityMonitoringSignalTriageUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.ts b/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.ts deleted file mode 100644 index e78ea4383855..000000000000 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Change the related incidents of a security signal returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiEditSecurityMonitoringSignalIncidentsRequest = - { - body: { - data: { - attributes: { - incidentIds: [2066], - }, - }, - }, - signalId: "AQAAAYG1bl5K4HuUewAAAABBWUcxYmw1S0FBQmt2RmhRN0V4ZUVnQUE", - }; - -apiInstance - .editSecurityMonitoringSignalIncidents(params) - .then((data: v2.SecurityMonitoringSignalTriageUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.ts b/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.ts deleted file mode 100644 index bb5415ef241b..000000000000 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Change the triage state of a security signal returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest = - { - body: { - data: { - attributes: { - archiveReason: "none", - state: "open", - }, - }, - }, - signalId: "AQAAAYG1bl5K4HuUewAAAABBWUcxYmw1S0FBQmt2RmhRN0V4ZUVnQUE", - }; - -apiInstance - .editSecurityMonitoringSignalState(params) - .then((data: v2.SecurityMonitoringSignalTriageUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetFinding.ts b/examples/v2/security-monitoring/GetFinding.ts deleted file mode 100644 index 5d07e341635b..000000000000 --- a/examples/v2/security-monitoring/GetFinding.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get a finding returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getFinding"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiGetFindingRequest = { - findingId: - "AgAAAYd59gjghzF52gAAAAAAAAAYAAAAAEFZZDU5Z2pnQUFCRTRvV1lFeEo4SlFBQQAAACQAAAAAMDE4NzdhMDEtMDRiYS00NTZlLWFmMzMtNTIxNmNkNjVlNDMz", -}; - -apiInstance - .getFinding(params) - .then((data: v2.GetFindingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetHistoricalJob.ts b/examples/v2/security-monitoring/GetHistoricalJob.ts deleted file mode 100644 index a4f838106502..000000000000 --- a/examples/v2/security-monitoring/GetHistoricalJob.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get a job's details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getHistoricalJob"] = true; -configuration.unstableOperations["v2.runHistoricalJob"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "historical_job" in the system -const HISTORICAL_JOB_DATA_ID = process.env.HISTORICAL_JOB_DATA_ID as string; - -const params: v2.SecurityMonitoringApiGetHistoricalJobRequest = { - jobId: HISTORICAL_JOB_DATA_ID, -}; - -apiInstance - .getHistoricalJob(params) - .then((data: v2.HistoricalJobResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetRuleVersionHistory.ts b/examples/v2/security-monitoring/GetRuleVersionHistory.ts deleted file mode 100644 index 6e21ecab0fdb..000000000000 --- a/examples/v2/security-monitoring/GetRuleVersionHistory.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a rule's version history returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getRuleVersionHistory"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiGetRuleVersionHistoryRequest = { - ruleId: "rule_id", -}; - -apiInstance - .getRuleVersionHistory(params) - .then((data: v2.GetRuleVersionHistoryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.ts b/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.ts deleted file mode 100644 index 00042175714b..000000000000 --- a/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get rule version history returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getRuleVersionHistory"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_rule" in the system -const SECURITY_RULE_ID = process.env.SECURITY_RULE_ID as string; - -const params: v2.SecurityMonitoringApiGetRuleVersionHistoryRequest = { - ruleId: SECURITY_RULE_ID, -}; - -apiInstance - .getRuleVersionHistory(params) - .then((data: v2.GetRuleVersionHistoryResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSBOM.ts b/examples/v2/security-monitoring/GetSBOM.ts deleted file mode 100644 index 93cd9c00b007..000000000000 --- a/examples/v2/security-monitoring/GetSBOM.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get SBOM returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getSBOM"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiGetSBOMRequest = { - assetType: "Repository", - filterAssetName: "github.com/datadog/datadog-agent", -}; - -apiInstance - .getSBOM(params) - .then((data: v2.GetSBOMResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSecurityFilter.ts b/examples/v2/security-monitoring/GetSecurityFilter.ts deleted file mode 100644 index ad42b3d5aecd..000000000000 --- a/examples/v2/security-monitoring/GetSecurityFilter.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a security filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_filter" in the system -const SECURITY_FILTER_DATA_ID = process.env.SECURITY_FILTER_DATA_ID as string; - -const params: v2.SecurityMonitoringApiGetSecurityFilterRequest = { - securityFilterId: SECURITY_FILTER_DATA_ID, -}; - -apiInstance - .getSecurityFilter(params) - .then((data: v2.SecurityFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringRule.ts b/examples/v2/security-monitoring/GetSecurityMonitoringRule.ts deleted file mode 100644 index f56273bd1fd8..000000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringRule.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a rule's details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_rule" in the system -const SECURITY_RULE_ID = process.env.SECURITY_RULE_ID as string; - -const params: v2.SecurityMonitoringApiGetSecurityMonitoringRuleRequest = { - ruleId: SECURITY_RULE_ID, -}; - -apiInstance - .getSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.ts b/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.ts deleted file mode 100644 index 6d6d38459ca5..000000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a cloud configuration rule's details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "cloud_configuration_rule" in the system -const CLOUD_CONFIGURATION_RULE_ID = process.env - .CLOUD_CONFIGURATION_RULE_ID as string; - -const params: v2.SecurityMonitoringApiGetSecurityMonitoringRuleRequest = { - ruleId: CLOUD_CONFIGURATION_RULE_ID, -}; - -apiInstance - .getSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringSignal.ts b/examples/v2/security-monitoring/GetSecurityMonitoringSignal.ts deleted file mode 100644 index f096f85ab6b1..000000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringSignal.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a signal's details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiGetSecurityMonitoringSignalRequest = { - signalId: "AQAAAYNqUBVU4-rffwAAAABBWU5xVUJWVUFBQjJBd3ptMDdQUnF3QUE", -}; - -apiInstance - .getSecurityMonitoringSignal(params) - .then((data: v2.SecurityMonitoringSignalResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.ts b/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.ts deleted file mode 100644 index 2696043866a0..000000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get a suppression rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "suppression" in the system -const SUPPRESSION_DATA_ID = process.env.SUPPRESSION_DATA_ID as string; - -const params: v2.SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest = - { - suppressionId: SUPPRESSION_DATA_ID, - }; - -apiInstance - .getSecurityMonitoringSuppression(params) - .then((data: v2.SecurityMonitoringSuppressionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSignalNotificationRule.ts b/examples/v2/security-monitoring/GetSignalNotificationRule.ts deleted file mode 100644 index c94870ccaa62..000000000000 --- a/examples/v2/security-monitoring/GetSignalNotificationRule.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get details of a signal-based notification rule returns "Notification rule details." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "valid_signal_notification_rule" in the system -const VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID = process.env - .VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID as string; - -const params: v2.SecurityMonitoringApiGetSignalNotificationRuleRequest = { - id: VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID, -}; - -apiInstance - .getSignalNotificationRule(params) - .then((data: v2.NotificationRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetSignalNotificationRules.ts b/examples/v2/security-monitoring/GetSignalNotificationRules.ts deleted file mode 100644 index d270be23fbaf..000000000000 --- a/examples/v2/security-monitoring/GetSignalNotificationRules.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the list of signal-based notification rules returns "The list of notification rules." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -apiInstance - .getSignalNotificationRules() - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.ts b/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.ts deleted file mode 100644 index af7aebe0b3f5..000000000000 --- a/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Get details of a vulnerability notification rule returns "Notification rule details." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "valid_vulnerability_notification_rule" in the system -const VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID = process.env - .VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID as string; - -const params: v2.SecurityMonitoringApiGetVulnerabilityNotificationRuleRequest = - { - id: VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID, - }; - -apiInstance - .getVulnerabilityNotificationRule(params) - .then((data: v2.NotificationRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.ts b/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.ts deleted file mode 100644 index 27634ca4bdc7..000000000000 --- a/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the list of vulnerability notification rules returns "The list of notification rules." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -apiInstance - .getVulnerabilityNotificationRules() - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListFindings.ts b/examples/v2/security-monitoring/ListFindings.ts deleted file mode 100644 index 299dc172d21e..000000000000 --- a/examples/v2/security-monitoring/ListFindings.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List findings 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); - -apiInstance - .listFindings() - .then((data: v2.ListFindingsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListFindings_1668290866.ts b/examples/v2/security-monitoring/ListFindings_1668290866.ts deleted file mode 100644 index fbf9444f1afc..000000000000 --- a/examples/v2/security-monitoring/ListFindings_1668290866.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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/examples/v2/security-monitoring/ListFindings_3865842421.ts b/examples/v2/security-monitoring/ListFindings_3865842421.ts deleted file mode 100644 index 14249b19284e..000000000000 --- a/examples/v2/security-monitoring/ListFindings_3865842421.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * List findings returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listFindings"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -(async () => { - try { - for await (const item of apiInstance.listFindingsWithPagination()) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/security-monitoring/ListHistoricalJobs.ts b/examples/v2/security-monitoring/ListHistoricalJobs.ts deleted file mode 100644 index ec286a2ba6df..000000000000 --- a/examples/v2/security-monitoring/ListHistoricalJobs.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * List historical jobs returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listHistoricalJobs"] = true; -configuration.unstableOperations["v2.runHistoricalJob"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "historical_job" in the system - -const params: v2.SecurityMonitoringApiListHistoricalJobsRequest = { - filterQuery: "id:string", -}; - -apiInstance - .listHistoricalJobs(params) - .then((data: v2.ListHistoricalJobsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListSecurityFilters.ts b/examples/v2/security-monitoring/ListSecurityFilters.ts deleted file mode 100644 index 8b2f9830c45a..000000000000 --- a/examples/v2/security-monitoring/ListSecurityFilters.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all security filters returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -apiInstance - .listSecurityFilters() - .then((data: v2.SecurityFiltersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringRules.ts b/examples/v2/security-monitoring/ListSecurityMonitoringRules.ts deleted file mode 100644 index f6ef9bee9a07..000000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringRules.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List rules returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -apiInstance - .listSecurityMonitoringRules() - .then((data: v2.SecurityMonitoringListRulesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSignals.ts b/examples/v2/security-monitoring/ListSecurityMonitoringSignals.ts deleted file mode 100644 index 93534571411d..000000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSignals.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a quick list of security signals returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -apiInstance - .listSecurityMonitoringSignals() - .then((data: v2.SecurityMonitoringSignalsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.ts b/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.ts deleted file mode 100644 index 18f28c41f5cf..000000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a quick list of security signals returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiListSecurityMonitoringSignalsRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listSecurityMonitoringSignalsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.ts b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.ts deleted file mode 100644 index f00fc87aeb9c..000000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all suppression rules returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -apiInstance - .listSecurityMonitoringSuppressions() - .then((data: v2.SecurityMonitoringSuppressionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListVulnerabilities.ts b/examples/v2/security-monitoring/ListVulnerabilities.ts deleted file mode 100644 index 5f1b9ebef8a2..000000000000 --- a/examples/v2/security-monitoring/ListVulnerabilities.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * List vulnerabilities returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listVulnerabilities"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiListVulnerabilitiesRequest = { - filterCvssBaseSeverity: "High", - filterTool: "Infra", - filterAssetType: "Service", -}; - -apiInstance - .listVulnerabilities(params) - .then((data: v2.ListVulnerabilitiesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ListVulnerableAssets.ts b/examples/v2/security-monitoring/ListVulnerableAssets.ts deleted file mode 100644 index c6c18a7e6ebd..000000000000 --- a/examples/v2/security-monitoring/ListVulnerableAssets.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * List vulnerable assets returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listVulnerableAssets"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiListVulnerableAssetsRequest = { - filterType: "Host", - filterRepositoryUrl: "github.com/datadog/dd-go", - filterRisksInProduction: true, -}; - -apiInstance - .listVulnerableAssets(params) - .then((data: v2.ListVulnerableAssetsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/MuteFindings.ts b/examples/v2/security-monitoring/MuteFindings.ts deleted file mode 100644 index d8f1eb277e22..000000000000 --- a/examples/v2/security-monitoring/MuteFindings.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Mute or unmute a batch of findings returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.muteFindings"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiMuteFindingsRequest = { - body: { - data: { - attributes: { - mute: { - expirationDate: 1778721573794, - muted: true, - reason: "ACCEPTED_RISK", - }, - }, - id: "dbe5f567-192b-4404-b908-29b70e1c9f76", - meta: { - findings: [ - { - findingId: "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", - }, - ], - }, - type: "finding", - }, - }, -}; - -apiInstance - .muteFindings(params) - .then((data: v2.BulkMuteFindingsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/PatchSignalNotificationRule.ts b/examples/v2/security-monitoring/PatchSignalNotificationRule.ts deleted file mode 100644 index 395529eca9a5..000000000000 --- a/examples/v2/security-monitoring/PatchSignalNotificationRule.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Patch a signal-based notification rule returns "Notification rule successfully patched." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "valid_signal_notification_rule" in the system -const VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID = process.env - .VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID as string; - -const params: v2.SecurityMonitoringApiPatchSignalNotificationRuleRequest = { - body: { - data: { - attributes: { - enabled: true, - name: "Rule 1", - selectors: { - query: "(source:production_service OR env:prod)", - ruleTypes: ["misconfiguration", "attack_path"], - severities: ["critical"], - triggerSource: "security_findings", - }, - targets: ["@john.doe@email.com"], - timeAggregation: 86400, - version: 1, - }, - id: VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID, - type: "notification_rules", - }, - }, - id: VALID_SIGNAL_NOTIFICATION_RULE_DATA_ID, -}; - -apiInstance - .patchSignalNotificationRule(params) - .then((data: v2.NotificationRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.ts b/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.ts deleted file mode 100644 index 2f6745174ea2..000000000000 --- a/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Patch a vulnerability-based notification rule returns "Notification rule successfully patched." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "valid_vulnerability_notification_rule" in the system -const VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID = process.env - .VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID as string; - -const params: v2.SecurityMonitoringApiPatchVulnerabilityNotificationRuleRequest = - { - body: { - data: { - attributes: { - enabled: true, - name: "Rule 1", - selectors: { - query: "(source:production_service OR env:prod)", - ruleTypes: ["misconfiguration", "attack_path"], - severities: ["critical"], - triggerSource: "security_findings", - }, - targets: ["@john.doe@email.com"], - timeAggregation: 86400, - version: 1, - }, - id: VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID, - type: "notification_rules", - }, - }, - id: VALID_VULNERABILITY_NOTIFICATION_RULE_DATA_ID, - }; - -apiInstance - .patchVulnerabilityNotificationRule(params) - .then((data: v2.NotificationRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/RunHistoricalJob.ts b/examples/v2/security-monitoring/RunHistoricalJob.ts deleted file mode 100644 index 93d2ec9bdc9a..000000000000 --- a/examples/v2/security-monitoring/RunHistoricalJob.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Run a historical job returns "Status created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.runHistoricalJob"] = true; -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiRunHistoricalJobRequest = { - body: { - data: { - type: "historicalDetectionsJobCreate", - attributes: { - jobDefinition: { - type: "log_detection", - name: "Excessive number of failed attempts.", - queries: [ - { - query: "source:non_existing_src_weekend", - aggregation: "count", - groupByFields: [], - distinctFields: [], - }, - ], - cases: [ - { - name: "Condition 1", - status: "info", - notifications: [], - condition: "a > 1", - }, - ], - options: { - keepAlive: 3600, - maxSignalDuration: 86400, - evaluationWindow: 900, - }, - message: "A large number of failed login attempts.", - tags: [], - from: 1730387522611, - to: 1730387532611, - index: "main", - }, - }, - }, - }, -}; - -apiInstance - .runHistoricalJob(params) - .then((data: v2.JobCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.ts b/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.ts deleted file mode 100644 index 145163db478e..000000000000 --- a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Get a list of security signals returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest = { - body: { - filter: { - from: new Date(2019, 1, 2, 9, 42, 36, 320000), - query: "security:attack status:high", - to: new Date(2019, 1, 3, 9, 42, 36, 320000), - }, - page: { - cursor: - "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", - limit: 25, - }, - sort: "timestamp", - }, -}; - -apiInstance - .searchSecurityMonitoringSignals(params) - .then((data: v2.SecurityMonitoringSignalsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.ts b/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.ts deleted file mode 100644 index 36e1aec0d379..000000000000 --- a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Get a list of security signals returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest = { - body: { - filter: { - from: new Date(new Date().getTime() + -15 * 60 * 1000), - query: "security:attack status:high", - to: new Date(), - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, -}; - -(async () => { - try { - for await (const item of apiInstance.searchSecurityMonitoringSignalsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.ts b/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.ts deleted file mode 100644 index 7608d6a58976..000000000000 --- a/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Test an existing rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiTestExistingSecurityMonitoringRuleRequest = - { - body: { - ruleQueryPayloads: [ - { - expectedResult: true, - index: 0, - payload: { - ddsource: "nginx", - ddtags: "env:staging,version:5.1", - hostname: "i-012345678", - message: - "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", - service: "payment", - }, - }, - ], - }, - ruleId: "rule_id", - }; - -apiInstance - .testExistingSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleTestResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/TestSecurityMonitoringRule.ts b/examples/v2/security-monitoring/TestSecurityMonitoringRule.ts deleted file mode 100644 index ca1297d5eb61..000000000000 --- a/examples/v2/security-monitoring/TestSecurityMonitoringRule.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Test a rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiTestSecurityMonitoringRuleRequest = { - body: { - rule: { - cases: [ - { - name: "", - status: "info", - notifications: [], - condition: "a > 0", - }, - ], - hasExtendedTitle: true, - isEnabled: true, - message: "My security monitoring rule message.", - name: "My security monitoring rule.", - options: { - decreaseCriticalityBasedOnEnv: false, - detectionMethod: "threshold", - evaluationWindow: 0, - keepAlive: 0, - maxSignalDuration: 0, - }, - queries: [ - { - query: "source:source_here", - groupByFields: ["@userIdentity.assumed_role"], - distinctFields: [], - aggregation: "count", - name: "", - }, - ], - tags: ["env:prod", "team:security"], - type: "log_detection", - }, - ruleQueryPayloads: [ - { - expectedResult: true, - index: 0, - payload: { - ddsource: "source_here", - ddtags: "env:staging,version:5.1", - hostname: "i-012345678", - message: - "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", - service: "payment", - }, - }, - ], - }, -}; - -apiInstance - .testSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleTestResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/UpdateSecurityFilter.ts b/examples/v2/security-monitoring/UpdateSecurityFilter.ts deleted file mode 100644 index 274850b135d1..000000000000 --- a/examples/v2/security-monitoring/UpdateSecurityFilter.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Update a security filter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_filter" in the system -const SECURITY_FILTER_DATA_ID = process.env.SECURITY_FILTER_DATA_ID as string; - -const params: v2.SecurityMonitoringApiUpdateSecurityFilterRequest = { - body: { - data: { - attributes: { - exclusionFilters: [], - filteredDataType: "logs", - isEnabled: true, - name: "Example-Security-Monitoring", - query: "service:ExampleSecurityMonitoring", - version: 1, - }, - type: "security_filters", - }, - }, - securityFilterId: SECURITY_FILTER_DATA_ID, -}; - -apiInstance - .updateSecurityFilter(params) - .then((data: v2.SecurityFilterResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.ts b/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.ts deleted file mode 100644 index 6629e5966c3d..000000000000 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Update an existing rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "security_rule" in the system -const SECURITY_RULE_ID = process.env.SECURITY_RULE_ID as string; - -const params: v2.SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest = { - body: { - name: "Example-Security-Monitoring-Updated", - queries: [ - { - query: "@test:true", - aggregation: "count", - groupByFields: [], - distinctFields: [], - metrics: [], - }, - ], - filters: [], - cases: [ - { - name: "", - status: "info", - condition: "a > 0", - notifications: [], - }, - ], - options: { - evaluationWindow: 900, - keepAlive: 3600, - maxSignalDuration: 86400, - }, - message: "Test rule", - tags: [], - isEnabled: true, - }, - ruleId: SECURITY_RULE_ID, -}; - -apiInstance - .updateSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.ts b/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.ts deleted file mode 100644 index 389de9c63411..000000000000 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Update a cloud configuration rule's details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "cloud_configuration_rule" in the system -const CLOUD_CONFIGURATION_RULE_ID = process.env - .CLOUD_CONFIGURATION_RULE_ID as string; - -const params: v2.SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest = { - body: { - name: "Example-Security-Monitoring_cloud_updated", - isEnabled: false, - cases: [ - { - status: "info", - notifications: [], - }, - ], - options: { - complianceRuleOptions: { - resourceType: "gcp_compute_disk", - regoRule: { - policy: `package datadog - -import data.datadog.output as dd_output - -import future.keywords.contains -import future.keywords.if -import future.keywords.in - -milliseconds_in_a_day := ((1000 * 60) * 60) * 24 - -eval(iam_service_account_key) = "skip" if { - iam_service_account_key.disabled -} else = "pass" if { - (iam_service_account_key.resource_seen_at / milliseconds_in_a_day) - (iam_service_account_key.valid_after_time / milliseconds_in_a_day) <= 90 -} else = "fail" - -# This part remains unchanged for all rules -results contains result if { - some resource in input.resources[input.main_resource_type] - result := dd_output.format(resource, eval(resource)) -} -`, - resourceTypes: ["gcp_compute_disk"], - }, - }, - }, - message: "ddd", - tags: [], - complianceSignalOptions: { - userActivationStatus: false, - userGroupByFields: [], - }, - }, - ruleId: CLOUD_CONFIGURATION_RULE_ID, -}; - -apiInstance - .updateSecurityMonitoringRule(params) - .then((data: v2.SecurityMonitoringRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.ts b/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.ts deleted file mode 100644 index 825ee7b9cc2b..000000000000 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update a suppression rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -// there is a valid "suppression" in the system -const SUPPRESSION_DATA_ID = process.env.SUPPRESSION_DATA_ID as string; - -const params: v2.SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest = - { - body: { - data: { - attributes: { - suppressionQuery: "env:staging status:low", - }, - type: "suppressions", - }, - }, - suppressionId: SUPPRESSION_DATA_ID, - }; - -apiInstance - .updateSecurityMonitoringSuppression(params) - .then((data: v2.SecurityMonitoringSuppressionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.ts b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.ts deleted file mode 100644 index e3d4c14d3424..000000000000 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Validate a detection rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SecurityMonitoringApi(configuration); - -const params: v2.SecurityMonitoringApiValidateSecurityMonitoringRuleRequest = { - body: { - cases: [ - { - name: "", - status: "info", - notifications: [], - condition: "a > 0", - }, - ], - hasExtendedTitle: true, - isEnabled: true, - message: "My security monitoring rule", - name: "My security monitoring rule", - options: { - evaluationWindow: 1800, - keepAlive: 1800, - maxSignalDuration: 1800, - detectionMethod: "threshold", - }, - queries: [ - { - query: "source:source_here", - groupByFields: ["@userIdentity.assumed_role"], - distinctFields: [], - aggregation: "count", - name: "", - }, - ], - tags: ["env:prod", "team:security"], - type: "log_detection", - }, -}; - -apiInstance - .validateSecurityMonitoringRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/CreateScanningGroup.ts b/examples/v2/sensitive-data-scanner/CreateScanningGroup.ts deleted file mode 100644 index f90661e462d4..000000000000 --- a/examples/v2/sensitive-data-scanner/CreateScanningGroup.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Create Scanning Group returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// a valid "configuration" in the system -const CONFIGURATION_DATA_ID = process.env.CONFIGURATION_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiCreateScanningGroupRequest = { - body: { - meta: {}, - data: { - type: "sensitive_data_scanner_group", - attributes: { - name: "Example-Sensitive-Data-Scanner", - isEnabled: false, - productList: ["logs"], - filter: { - query: "*", - }, - }, - relationships: { - configuration: { - data: { - type: "sensitive_data_scanner_configuration", - id: CONFIGURATION_DATA_ID, - }, - }, - rules: { - data: [], - }, - }, - }, - }, -}; - -apiInstance - .createScanningGroup(params) - .then((data: v2.SensitiveDataScannerCreateGroupResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/CreateScanningRule.ts b/examples/v2/sensitive-data-scanner/CreateScanningRule.ts deleted file mode 100644 index 1294bf6f925a..000000000000 --- a/examples/v2/sensitive-data-scanner/CreateScanningRule.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Create Scanning Rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// there is a valid "scanning_group" in the system -const GROUP_DATA_ID = process.env.GROUP_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiCreateScanningRuleRequest = { - body: { - meta: {}, - data: { - type: "sensitive_data_scanner_rule", - attributes: { - name: "Example-Sensitive-Data-Scanner", - pattern: "pattern", - namespaces: ["admin"], - excludedNamespaces: ["admin.name"], - textReplacement: { - type: "none", - }, - tags: ["sensitive_data:true"], - isEnabled: true, - priority: 1, - includedKeywordConfiguration: { - keywords: ["credit card"], - characterCount: 35, - }, - }, - relationships: { - group: { - data: { - type: "sensitive_data_scanner_group", - id: GROUP_DATA_ID, - }, - }, - }, - }, - }, -}; - -apiInstance - .createScanningRule(params) - .then((data: v2.SensitiveDataScannerCreateRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/DeleteScanningGroup.ts b/examples/v2/sensitive-data-scanner/DeleteScanningGroup.ts deleted file mode 100644 index cc28cedeb979..000000000000 --- a/examples/v2/sensitive-data-scanner/DeleteScanningGroup.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Delete Scanning Group returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// there is a valid "scanning_group" in the system -const GROUP_DATA_ID = process.env.GROUP_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiDeleteScanningGroupRequest = { - body: { - meta: {}, - }, - groupId: GROUP_DATA_ID, -}; - -apiInstance - .deleteScanningGroup(params) - .then((data: v2.SensitiveDataScannerGroupDeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/DeleteScanningRule.ts b/examples/v2/sensitive-data-scanner/DeleteScanningRule.ts deleted file mode 100644 index 002a12b049e7..000000000000 --- a/examples/v2/sensitive-data-scanner/DeleteScanningRule.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Delete Scanning Rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// the "scanning_group" has a "scanning_rule" -const RULE_DATA_ID = process.env.RULE_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiDeleteScanningRuleRequest = { - body: { - meta: {}, - }, - ruleId: RULE_DATA_ID, -}; - -apiInstance - .deleteScanningRule(params) - .then((data: v2.SensitiveDataScannerRuleDeleteResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/ListScanningGroups.ts b/examples/v2/sensitive-data-scanner/ListScanningGroups.ts deleted file mode 100644 index caeb6f57a648..000000000000 --- a/examples/v2/sensitive-data-scanner/ListScanningGroups.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List Scanning Groups returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -apiInstance - .listScanningGroups() - .then((data: v2.SensitiveDataScannerGetConfigResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/ListStandardPatterns.ts b/examples/v2/sensitive-data-scanner/ListStandardPatterns.ts deleted file mode 100644 index 19c46f613d79..000000000000 --- a/examples/v2/sensitive-data-scanner/ListStandardPatterns.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * List standard patterns returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -apiInstance - .listStandardPatterns() - .then((data: v2.SensitiveDataScannerStandardPatternsResponseData) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/ReorderScanningGroups.ts b/examples/v2/sensitive-data-scanner/ReorderScanningGroups.ts deleted file mode 100644 index 8a080c25e44a..000000000000 --- a/examples/v2/sensitive-data-scanner/ReorderScanningGroups.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Reorder Groups returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// there is a valid "scanning_group" in the system -const GROUP_DATA_ID = process.env.GROUP_DATA_ID as string; - -// a valid "configuration" in the system -const CONFIGURATION_DATA_ID = process.env.CONFIGURATION_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiReorderScanningGroupsRequest = { - body: { - data: { - relationships: { - groups: { - data: [ - { - type: "sensitive_data_scanner_group", - id: GROUP_DATA_ID, - }, - ], - }, - }, - type: "sensitive_data_scanner_configuration", - id: CONFIGURATION_DATA_ID, - }, - meta: {}, - }, -}; - -apiInstance - .reorderScanningGroups(params) - .then((data: v2.SensitiveDataScannerReorderGroupsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/UpdateScanningGroup.ts b/examples/v2/sensitive-data-scanner/UpdateScanningGroup.ts deleted file mode 100644 index 6a204c9f969c..000000000000 --- a/examples/v2/sensitive-data-scanner/UpdateScanningGroup.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Update Scanning Group returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// there is a valid "scanning_group" in the system -const GROUP_DATA_ID = process.env.GROUP_DATA_ID as string; - -// a valid "configuration" in the system -const CONFIGURATION_DATA_ID = process.env.CONFIGURATION_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiUpdateScanningGroupRequest = { - body: { - meta: {}, - data: { - id: GROUP_DATA_ID, - type: "sensitive_data_scanner_group", - attributes: { - name: "Example-Sensitive-Data-Scanner", - isEnabled: false, - productList: ["logs"], - filter: { - query: "*", - }, - }, - relationships: { - configuration: { - data: { - type: "sensitive_data_scanner_configuration", - id: CONFIGURATION_DATA_ID, - }, - }, - rules: { - data: [], - }, - }, - }, - }, - groupId: GROUP_DATA_ID, -}; - -apiInstance - .updateScanningGroup(params) - .then((data: v2.SensitiveDataScannerGroupUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/sensitive-data-scanner/UpdateScanningRule.ts b/examples/v2/sensitive-data-scanner/UpdateScanningRule.ts deleted file mode 100644 index e2fb723dca8a..000000000000 --- a/examples/v2/sensitive-data-scanner/UpdateScanningRule.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Update Scanning Rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SensitiveDataScannerApi(configuration); - -// the "scanning_group" has a "scanning_rule" -const RULE_DATA_ID = process.env.RULE_DATA_ID as string; - -const params: v2.SensitiveDataScannerApiUpdateScanningRuleRequest = { - body: { - meta: {}, - data: { - id: RULE_DATA_ID, - type: "sensitive_data_scanner_rule", - attributes: { - name: "Example-Sensitive-Data-Scanner", - pattern: "pattern", - textReplacement: { - type: "none", - }, - tags: ["sensitive_data:true"], - isEnabled: true, - priority: 5, - includedKeywordConfiguration: { - keywords: ["credit card", "cc"], - characterCount: 35, - }, - }, - }, - }, - ruleId: RULE_DATA_ID, -}; - -apiInstance - .updateScanningRule(params) - .then((data: v2.SensitiveDataScannerRuleUpdateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/CreateServiceAccount.ts b/examples/v2/service-accounts/CreateServiceAccount.ts deleted file mode 100644 index d3b1b43550eb..000000000000 --- a/examples/v2/service-accounts/CreateServiceAccount.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Create a service account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "role" in the system -const ROLE_DATA_ID = process.env.ROLE_DATA_ID as string; - -const params: v2.ServiceAccountsApiCreateServiceAccountRequest = { - body: { - data: { - type: "users", - attributes: { - name: "Test API Client", - email: "Example-Service-Account@datadoghq.com", - serviceAccount: true, - }, - relationships: { - roles: { - data: [ - { - id: ROLE_DATA_ID, - type: "roles", - }, - ], - }, - }, - }, - }, -}; - -apiInstance - .createServiceAccount(params) - .then((data: v2.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/CreateServiceAccountApplicationKey.ts b/examples/v2/service-accounts/CreateServiceAccountApplicationKey.ts deleted file mode 100644 index 11ad0089d81e..000000000000 --- a/examples/v2/service-accounts/CreateServiceAccountApplicationKey.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create an application key for this service account returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "service_account_user" in the system -const SERVICE_ACCOUNT_USER_DATA_ID = process.env - .SERVICE_ACCOUNT_USER_DATA_ID as string; - -const params: v2.ServiceAccountsApiCreateServiceAccountApplicationKeyRequest = { - body: { - data: { - attributes: { - name: "Example-Service-Account", - }, - type: "application_keys", - }, - }, - serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, -}; - -apiInstance - .createServiceAccountApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.ts b/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.ts deleted file mode 100644 index 77c3c138ad2b..000000000000 --- a/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Create an application key with scopes for this service account returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "service_account_user" in the system -const SERVICE_ACCOUNT_USER_DATA_ID = process.env - .SERVICE_ACCOUNT_USER_DATA_ID as string; - -const params: v2.ServiceAccountsApiCreateServiceAccountApplicationKeyRequest = { - body: { - data: { - attributes: { - name: "Example-Service-Account", - scopes: [ - "dashboards_read", - "dashboards_write", - "dashboards_public_share", - ], - }, - type: "application_keys", - }, - }, - serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, -}; - -apiInstance - .createServiceAccountApplicationKey(params) - .then((data: v2.ApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.ts b/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.ts deleted file mode 100644 index 38e8075bcf7c..000000000000 --- a/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Delete an application key for this service account returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "service_account_user" in the system -const SERVICE_ACCOUNT_USER_DATA_ID = process.env - .SERVICE_ACCOUNT_USER_DATA_ID as string; - -// there is a valid "service_account_application_key" for "service_account_user" -const SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID = process.env - .SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID as string; - -const params: v2.ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest = { - serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, - appKeyId: SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .deleteServiceAccountApplicationKey(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/GetServiceAccountApplicationKey.ts b/examples/v2/service-accounts/GetServiceAccountApplicationKey.ts deleted file mode 100644 index f1a0efb82f38..000000000000 --- a/examples/v2/service-accounts/GetServiceAccountApplicationKey.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Get one application key for this service account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "service_account_user" in the system -const SERVICE_ACCOUNT_USER_DATA_ID = process.env - .SERVICE_ACCOUNT_USER_DATA_ID as string; - -// there is a valid "service_account_application_key" for "service_account_user" -const SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID = process.env - .SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID as string; - -const params: v2.ServiceAccountsApiGetServiceAccountApplicationKeyRequest = { - serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, - appKeyId: SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .getServiceAccountApplicationKey(params) - .then((data: v2.PartialApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/ListServiceAccountApplicationKeys.ts b/examples/v2/service-accounts/ListServiceAccountApplicationKeys.ts deleted file mode 100644 index 8fc6e5f0c3ad..000000000000 --- a/examples/v2/service-accounts/ListServiceAccountApplicationKeys.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * List application keys for this service account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "service_account_user" in the system -const SERVICE_ACCOUNT_USER_DATA_ID = process.env - .SERVICE_ACCOUNT_USER_DATA_ID as string; - -const params: v2.ServiceAccountsApiListServiceAccountApplicationKeysRequest = { - serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, -}; - -apiInstance - .listServiceAccountApplicationKeys(params) - .then((data: v2.ListApplicationKeysResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.ts b/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.ts deleted file mode 100644 index 92cdd6842aa0..000000000000 --- a/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Edit an application key for this service account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceAccountsApi(configuration); - -// there is a valid "service_account_user" in the system -const SERVICE_ACCOUNT_USER_DATA_ID = process.env - .SERVICE_ACCOUNT_USER_DATA_ID as string; - -// there is a valid "service_account_application_key" for "service_account_user" -const SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID = process.env - .SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID as string; - -const params: v2.ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest = { - body: { - data: { - id: SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID, - type: "application_keys", - attributes: { - name: "Application Key for managing dashboards-updated", - }, - }, - }, - serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, - appKeyId: SERVICE_ACCOUNT_APPLICATION_KEY_DATA_ID, -}; - -apiInstance - .updateServiceAccountApplicationKey(params) - .then((data: v2.PartialApplicationKeyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.ts b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.ts deleted file mode 100644 index ab0fe8f5ff91..000000000000 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Create or update service definition returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest = { - body: { - application: "my-app", - ciPipelineFingerprints: ["j88xdEy0J5lc", "eZ7LMljCk8vo"], - contacts: [ - { - contact: "https://teams.microsoft.com/myteam", - name: "My team channel", - type: "slack", - }, - ], - ddService: "my-service", - description: "My service description", - extensions: { - "myorg/extension": "extensionValue", - }, - integrations: { - opsgenie: { - region: "US", - serviceUrl: - "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000", - }, - pagerduty: { - serviceUrl: "https://my-org.pagerduty.com/service-directory/PMyService", - }, - }, - languages: ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], - lifecycle: "sandbox", - links: [ - { - name: "Runbook", - provider: "Github", - type: "runbook", - url: "https://my-runbook", - }, - ], - schemaVersion: "v2.2", - tags: ["my:tag", "service:tag"], - team: "my-team", - tier: "High", - type: "web", - }, -}; - -apiInstance - .createOrUpdateServiceDefinitions(params) - .then((data: v2.ServiceDefinitionCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.ts b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.ts deleted file mode 100644 index b9060662628f..000000000000 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Create or update service definition using schema v2 returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest = { - body: { - contacts: [ - { - contact: "contact@datadoghq.com", - name: "Team Email", - type: "email", - }, - ], - ddService: "service-exampleservicedefinition", - ddTeam: "my-team", - docs: [ - { - name: "Architecture", - provider: "google drive", - url: "https://gdrive/mydoc", - }, - ], - extensions: { - myorgextension: "extensionvalue", - }, - integrations: { - opsgenie: { - region: "US", - serviceUrl: - "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000", - }, - pagerduty: "https://my-org.pagerduty.com/service-directory/PMyService", - }, - links: [ - { - name: "Runbook", - type: "runbook", - url: "https://my-runbook", - }, - ], - repos: [ - { - name: "Source Code", - provider: "GitHub", - url: "https://github.com/DataDog/schema", - }, - ], - schemaVersion: "v2", - tags: ["my:tag", "service:tag"], - team: "my-team", - }, -}; - -apiInstance - .createOrUpdateServiceDefinitions(params) - .then((data: v2.ServiceDefinitionCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.ts b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.ts deleted file mode 100644 index 0a1f3e7de976..000000000000 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Create or update service definition using schema v2-1 returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest = { - body: { - contacts: [ - { - contact: "contact@datadoghq.com", - name: "Team Email", - type: "email", - }, - ], - ddService: "service-exampleservicedefinition", - extensions: { - myorgextension: "extensionvalue", - }, - integrations: { - opsgenie: { - region: "US", - serviceUrl: - "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000", - }, - pagerduty: { - serviceUrl: "https://my-org.pagerduty.com/service-directory/PMyService", - }, - }, - links: [ - { - name: "Runbook", - type: "runbook", - url: "https://my-runbook", - }, - { - name: "Source Code", - type: "repo", - provider: "GitHub", - url: "https://github.com/DataDog/schema", - }, - { - name: "Architecture", - type: "doc", - provider: "Gigoogle drivetHub", - url: "https://my-runbook", - }, - ], - schemaVersion: "v2.1", - tags: ["my:tag", "service:tag"], - team: "my-team", - }, -}; - -apiInstance - .createOrUpdateServiceDefinitions(params) - .then((data: v2.ServiceDefinitionCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.ts b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.ts deleted file mode 100644 index b282caeb1337..000000000000 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Create or update service definition using schema v2-2 returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest = { - body: { - contacts: [ - { - contact: "contact@datadoghq.com", - name: "Team Email", - type: "email", - }, - ], - ddService: "service-exampleservicedefinition", - extensions: { - myorgextension: "extensionvalue", - }, - integrations: { - opsgenie: { - region: "US", - serviceUrl: - "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000", - }, - pagerduty: { - serviceUrl: "https://my-org.pagerduty.com/service-directory/PMyService", - }, - }, - links: [ - { - name: "Runbook", - type: "runbook", - url: "https://my-runbook", - }, - { - name: "Source Code", - type: "repo", - provider: "GitHub", - url: "https://github.com/DataDog/schema", - }, - { - name: "Architecture", - type: "doc", - provider: "Gigoogle drivetHub", - url: "https://my-runbook", - }, - ], - schemaVersion: "v2.2", - tags: ["my:tag", "service:tag"], - team: "my-team", - }, -}; - -apiInstance - .createOrUpdateServiceDefinitions(params) - .then((data: v2.ServiceDefinitionCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/DeleteServiceDefinition.ts b/examples/v2/service-definition/DeleteServiceDefinition.ts deleted file mode 100644 index 6f45a8cfd764..000000000000 --- a/examples/v2/service-definition/DeleteServiceDefinition.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a single service definition returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiDeleteServiceDefinitionRequest = { - serviceName: "service-definition-test", -}; - -apiInstance - .deleteServiceDefinition(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/GetServiceDefinition.ts b/examples/v2/service-definition/GetServiceDefinition.ts deleted file mode 100644 index 5d369df76589..000000000000 --- a/examples/v2/service-definition/GetServiceDefinition.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a single service definition returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiGetServiceDefinitionRequest = { - serviceName: "service-definition-test", - schemaVersion: "v2.1", -}; - -apiInstance - .getServiceDefinition(params) - .then((data: v2.ServiceDefinitionGetResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/ListServiceDefinitions.ts b/examples/v2/service-definition/ListServiceDefinitions.ts deleted file mode 100644 index 017a2d2a611e..000000000000 --- a/examples/v2/service-definition/ListServiceDefinitions.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all service definitions returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiListServiceDefinitionsRequest = { - schemaVersion: "v2.1", -}; - -apiInstance - .listServiceDefinitions(params) - .then((data: v2.ServiceDefinitionsListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-definition/ListServiceDefinitions_336468013.ts b/examples/v2/service-definition/ListServiceDefinitions_336468013.ts deleted file mode 100644 index a8294fb6779b..000000000000 --- a/examples/v2/service-definition/ListServiceDefinitions_336468013.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get all service definitions returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.ServiceDefinitionApi(configuration); - -const params: v2.ServiceDefinitionApiListServiceDefinitionsRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listServiceDefinitionsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/service-level-objectives/CreateSLOReportJob.ts b/examples/v2/service-level-objectives/CreateSLOReportJob.ts deleted file mode 100644 index 6606e740b423..000000000000 --- a/examples/v2/service-level-objectives/CreateSLOReportJob.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Create a new SLO report returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createSLOReportJob"] = true; -const apiInstance = new v2.ServiceLevelObjectivesApi(configuration); - -const params: v2.ServiceLevelObjectivesApiCreateSLOReportJobRequest = { - body: { - data: { - attributes: { - fromTs: Math.round( - new Date(new Date().getTime() + -40 * 86400 * 1000).getTime() / 1000 - ), - toTs: Math.round(new Date().getTime() / 1000), - query: `slo_type:metric "SLO Reporting Test"`, - interval: "monthly", - timezone: "America/New_York", - }, - }, - }, -}; - -apiInstance - .createSLOReportJob(params) - .then((data: v2.SLOReportPostResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-level-objectives/GetSLOReport.ts b/examples/v2/service-level-objectives/GetSLOReport.ts deleted file mode 100644 index 4c179f22130d..000000000000 --- a/examples/v2/service-level-objectives/GetSLOReport.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get SLO report returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getSLOReport"] = true; -const apiInstance = new v2.ServiceLevelObjectivesApi(configuration); - -const params: v2.ServiceLevelObjectivesApiGetSLOReportRequest = { - reportId: "9fb2dc2a-ead0-11ee-a174-9fe3a9d7627f", -}; - -apiInstance - .getSLOReport(params) - .then((data: string) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-level-objectives/GetSLOReportJobStatus.ts b/examples/v2/service-level-objectives/GetSLOReportJobStatus.ts deleted file mode 100644 index b94ab5988fc7..000000000000 --- a/examples/v2/service-level-objectives/GetSLOReportJobStatus.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get SLO report status returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getSLOReportJobStatus"] = true; -const apiInstance = new v2.ServiceLevelObjectivesApi(configuration); - -// there is a valid "report" in the system -const REPORT_DATA_ID = process.env.REPORT_DATA_ID as string; - -const params: v2.ServiceLevelObjectivesApiGetSLOReportJobStatusRequest = { - reportId: REPORT_DATA_ID, -}; - -apiInstance - .getSLOReportJobStatus(params) - .then((data: v2.SLOReportStatusGetResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.ts b/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.ts deleted file mode 100644 index 716fcea679e6..000000000000 --- a/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Create outcomes batch returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createScorecardOutcomesBatch"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -// there is a valid "create_scorecard_rule" in the system -const CREATE_SCORECARD_RULE_DATA_ID = process.env - .CREATE_SCORECARD_RULE_DATA_ID as string; - -const params: v2.ServiceScorecardsApiCreateScorecardOutcomesBatchRequest = { - body: { - data: { - attributes: { - results: [ - { - remarks: `See: Services`, - ruleId: CREATE_SCORECARD_RULE_DATA_ID, - serviceName: "my-service", - state: "pass", - }, - ], - }, - type: "batched-outcome", - }, - }, -}; - -apiInstance - .createScorecardOutcomesBatch(params) - .then((data: v2.OutcomesBatchResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-scorecards/CreateScorecardRule.ts b/examples/v2/service-scorecards/CreateScorecardRule.ts deleted file mode 100644 index 84569295c9c5..000000000000 --- a/examples/v2/service-scorecards/CreateScorecardRule.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Create a new rule returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.createScorecardRule"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -const params: v2.ServiceScorecardsApiCreateScorecardRuleRequest = { - body: { - data: { - attributes: { - enabled: true, - name: "Example-Service-Scorecard", - scorecardName: "Observability Best Practices", - }, - type: "rule", - }, - }, -}; - -apiInstance - .createScorecardRule(params) - .then((data: v2.CreateRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-scorecards/DeleteScorecardRule.ts b/examples/v2/service-scorecards/DeleteScorecardRule.ts deleted file mode 100644 index f142d65663f8..000000000000 --- a/examples/v2/service-scorecards/DeleteScorecardRule.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Delete a rule returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.deleteScorecardRule"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -// there is a valid "create_scorecard_rule" in the system -const CREATE_SCORECARD_RULE_DATA_ID = process.env - .CREATE_SCORECARD_RULE_DATA_ID as string; - -const params: v2.ServiceScorecardsApiDeleteScorecardRuleRequest = { - ruleId: CREATE_SCORECARD_RULE_DATA_ID, -}; - -apiInstance - .deleteScorecardRule(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-scorecards/ListScorecardOutcomes.ts b/examples/v2/service-scorecards/ListScorecardOutcomes.ts deleted file mode 100644 index 73c6c26160b2..000000000000 --- a/examples/v2/service-scorecards/ListScorecardOutcomes.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List all rule outcomes returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listScorecardOutcomes"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -apiInstance - .listScorecardOutcomes() - .then((data: v2.OutcomesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.ts b/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.ts deleted file mode 100644 index a7bca0c77d11..000000000000 --- a/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * List all rule outcomes returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listScorecardOutcomes"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -const params: v2.ServiceScorecardsApiListScorecardOutcomesRequest = { - pageSize: 2, - fieldsOutcome: "state", - filterOutcomeServiceName: "my-service", -}; - -(async () => { - try { - for await (const item of apiInstance.listScorecardOutcomesWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/service-scorecards/ListScorecardRules.ts b/examples/v2/service-scorecards/ListScorecardRules.ts deleted file mode 100644 index 242cc89ff42d..000000000000 --- a/examples/v2/service-scorecards/ListScorecardRules.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * List all rules returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listScorecardRules"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -apiInstance - .listScorecardRules() - .then((data: v2.ListRulesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/service-scorecards/ListScorecardRules_4057666343.ts b/examples/v2/service-scorecards/ListScorecardRules_4057666343.ts deleted file mode 100644 index 5bdbf06edfee..000000000000 --- a/examples/v2/service-scorecards/ListScorecardRules_4057666343.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * List all rules returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.listScorecardRules"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -const params: v2.ServiceScorecardsApiListScorecardRulesRequest = { - pageSize: 2, - filterRuleCustom: true, - fieldsRule: "name", -}; - -(async () => { - try { - for await (const item of apiInstance.listScorecardRulesWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/service-scorecards/UpdateScorecardRule.ts b/examples/v2/service-scorecards/UpdateScorecardRule.ts deleted file mode 100644 index 484c7282316a..000000000000 --- a/examples/v2/service-scorecards/UpdateScorecardRule.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Update an existing rule returns "Rule updated successfully" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.updateScorecardRule"] = true; -const apiInstance = new v2.ServiceScorecardsApi(configuration); - -// there is a valid "create_scorecard_rule" in the system -const CREATE_SCORECARD_RULE_DATA_ATTRIBUTES_NAME = process.env - .CREATE_SCORECARD_RULE_DATA_ATTRIBUTES_NAME as string; -const CREATE_SCORECARD_RULE_DATA_ATTRIBUTES_SCORECARD_NAME = process.env - .CREATE_SCORECARD_RULE_DATA_ATTRIBUTES_SCORECARD_NAME as string; -const CREATE_SCORECARD_RULE_DATA_ID = process.env - .CREATE_SCORECARD_RULE_DATA_ID as string; - -const params: v2.ServiceScorecardsApiUpdateScorecardRuleRequest = { - body: { - data: { - attributes: { - enabled: true, - name: CREATE_SCORECARD_RULE_DATA_ATTRIBUTES_NAME, - scorecardName: CREATE_SCORECARD_RULE_DATA_ATTRIBUTES_SCORECARD_NAME, - description: "Updated description via test", - }, - }, - }, - ruleId: CREATE_SCORECARD_RULE_DATA_ID, -}; - -apiInstance - .updateScorecardRule(params) - .then((data: v2.UpdateRuleResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/software-catalog/DeleteCatalogEntity.ts b/examples/v2/software-catalog/DeleteCatalogEntity.ts deleted file mode 100644 index 03a387733261..000000000000 --- a/examples/v2/software-catalog/DeleteCatalogEntity.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Delete a single entity returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SoftwareCatalogApi(configuration); - -const params: v2.SoftwareCatalogApiDeleteCatalogEntityRequest = { - entityId: "service:myservice", -}; - -apiInstance - .deleteCatalogEntity(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/software-catalog/ListCatalogEntity.ts b/examples/v2/software-catalog/ListCatalogEntity.ts deleted file mode 100644 index e820d2a38963..000000000000 --- a/examples/v2/software-catalog/ListCatalogEntity.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a list of entities returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SoftwareCatalogApi(configuration); - -apiInstance - .listCatalogEntity() - .then((data: v2.ListEntityCatalogResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/software-catalog/ListCatalogEntity_2305103326.ts b/examples/v2/software-catalog/ListCatalogEntity_2305103326.ts deleted file mode 100644 index 5984c9b96c2e..000000000000 --- a/examples/v2/software-catalog/ListCatalogEntity_2305103326.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Get a list of entities returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SoftwareCatalogApi(configuration); - -(async () => { - try { - for await (const item of apiInstance.listCatalogEntityWithPagination()) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/software-catalog/UpsertCatalogEntity.ts b/examples/v2/software-catalog/UpsertCatalogEntity.ts deleted file mode 100644 index 05a2b1d7a37b..000000000000 --- a/examples/v2/software-catalog/UpsertCatalogEntity.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Create or update entities returns "ACCEPTED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SoftwareCatalogApi(configuration); - -const params: v2.SoftwareCatalogApiUpsertCatalogEntityRequest = { - body: { - apiVersion: "v3", - datadog: { - codeLocations: [ - { - paths: [], - }, - ], - events: [{}], - logs: [{}], - performanceData: { - tags: [], - }, - pipelines: { - fingerprints: [], - }, - }, - integrations: { - opsgenie: { - serviceUrl: "https://www.opsgenie.com/service/shopping-cart", - }, - pagerduty: { - serviceUrl: - "https://www.pagerduty.com/service-directory/Pshopping-cart", - }, - }, - kind: "service", - metadata: { - additionalOwners: [ - { - name: "", - }, - ], - contacts: [ - { - contact: "https://slack/", - type: "slack", - }, - ], - id: "4b163705-23c0-4573-b2fb-f6cea2163fcb", - inheritFrom: "application:default/myapp", - links: [ - { - name: "mylink", - type: "link", - url: "https://mylink", - }, - ], - name: "myService", - namespace: "default", - tags: ["this:tag", "that:tag"], - }, - spec: { - dependsOn: [], - languages: [], - }, - }, -}; - -apiInstance - .upsertCatalogEntity(params) - .then((data: v2.UpsertCatalogEntityResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/software-catalog/UpsertCatalogEntity_586948155.ts b/examples/v2/software-catalog/UpsertCatalogEntity_586948155.ts deleted file mode 100644 index 4cd717d9fd2d..000000000000 --- a/examples/v2/software-catalog/UpsertCatalogEntity_586948155.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Create or update software catalog entity using schema v3 returns "ACCEPTED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SoftwareCatalogApi(configuration); - -const params: v2.SoftwareCatalogApiUpsertCatalogEntityRequest = { - body: { - apiVersion: "v3", - datadog: { - codeLocations: [ - { - paths: [], - }, - ], - events: [{}], - logs: [{}], - performanceData: { - tags: [], - }, - pipelines: { - fingerprints: [], - }, - }, - integrations: { - opsgenie: { - serviceUrl: "https://www.opsgenie.com/service/shopping-cart", - }, - pagerduty: { - serviceUrl: - "https://www.pagerduty.com/service-directory/Pshopping-cart", - }, - }, - kind: "service", - metadata: { - additionalOwners: [], - contacts: [ - { - contact: "https://slack/", - type: "slack", - }, - ], - id: "4b163705-23c0-4573-b2fb-f6cea2163fcb", - inheritFrom: "application:default/myapp", - links: [ - { - name: "mylink", - type: "link", - url: "https://mylink", - }, - ], - name: "service-examplesoftwarecatalog", - tags: ["this:tag", "that:tag"], - }, - spec: { - dependsOn: [], - languages: [], - }, - }, -}; - -apiInstance - .upsertCatalogEntity(params) - .then((data: v2.UpsertCatalogEntityResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans-metrics/CreateSpansMetric.ts b/examples/v2/spans-metrics/CreateSpansMetric.ts deleted file mode 100644 index 783734df9f86..000000000000 --- a/examples/v2/spans-metrics/CreateSpansMetric.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Create a span-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansMetricsApi(configuration); - -const params: v2.SpansMetricsApiCreateSpansMetricRequest = { - body: { - data: { - attributes: { - compute: { - aggregationType: "distribution", - includePercentiles: false, - path: "@duration", - }, - filter: { - query: "@http.status_code:200 service:my-service", - }, - groupBy: [ - { - path: "resource_name", - tagName: "resource_name", - }, - ], - }, - id: "ExampleSpansMetric", - type: "spans_metrics", - }, - }, -}; - -apiInstance - .createSpansMetric(params) - .then((data: v2.SpansMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans-metrics/DeleteSpansMetric.ts b/examples/v2/spans-metrics/DeleteSpansMetric.ts deleted file mode 100644 index dcce85a5eef4..000000000000 --- a/examples/v2/spans-metrics/DeleteSpansMetric.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete a span-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansMetricsApi(configuration); - -// there is a valid "spans_metric" in the system -const SPANS_METRIC_DATA_ID = process.env.SPANS_METRIC_DATA_ID as string; - -const params: v2.SpansMetricsApiDeleteSpansMetricRequest = { - metricId: SPANS_METRIC_DATA_ID, -}; - -apiInstance - .deleteSpansMetric(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans-metrics/GetSpansMetric.ts b/examples/v2/spans-metrics/GetSpansMetric.ts deleted file mode 100644 index 8c6e2bdebf0d..000000000000 --- a/examples/v2/spans-metrics/GetSpansMetric.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a span-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansMetricsApi(configuration); - -// there is a valid "spans_metric" in the system -const SPANS_METRIC_DATA_ID = process.env.SPANS_METRIC_DATA_ID as string; - -const params: v2.SpansMetricsApiGetSpansMetricRequest = { - metricId: SPANS_METRIC_DATA_ID, -}; - -apiInstance - .getSpansMetric(params) - .then((data: v2.SpansMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans-metrics/ListSpansMetrics.ts b/examples/v2/spans-metrics/ListSpansMetrics.ts deleted file mode 100644 index 02568d184134..000000000000 --- a/examples/v2/spans-metrics/ListSpansMetrics.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all span-based metrics returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansMetricsApi(configuration); - -apiInstance - .listSpansMetrics() - .then((data: v2.SpansMetricsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans-metrics/UpdateSpansMetric.ts b/examples/v2/spans-metrics/UpdateSpansMetric.ts deleted file mode 100644 index a4f34c615bb6..000000000000 --- a/examples/v2/spans-metrics/UpdateSpansMetric.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Update a span-based metric returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansMetricsApi(configuration); - -// there is a valid "spans_metric" in the system -const SPANS_METRIC_DATA_ID = process.env.SPANS_METRIC_DATA_ID as string; - -const params: v2.SpansMetricsApiUpdateSpansMetricRequest = { - body: { - data: { - attributes: { - compute: { - includePercentiles: false, - }, - filter: { - query: "@http.status_code:200 service:my-service-updated", - }, - groupBy: [ - { - path: "resource_name", - tagName: "resource_name", - }, - ], - }, - type: "spans_metrics", - }, - }, - metricId: SPANS_METRIC_DATA_ID, -}; - -apiInstance - .updateSpansMetric(params) - .then((data: v2.SpansMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans/AggregateSpans.ts b/examples/v2/spans/AggregateSpans.ts deleted file mode 100644 index b03b183b9317..000000000000 --- a/examples/v2/spans/AggregateSpans.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Aggregate spans returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansApi(configuration); - -const params: v2.SpansApiAggregateSpansRequest = { - body: { - data: { - attributes: { - compute: [ - { - aggregation: "count", - interval: "5m", - type: "timeseries", - }, - ], - filter: { - from: "now-15m", - query: "*", - to: "now", - }, - }, - type: "aggregate_request", - }, - }, -}; - -apiInstance - .aggregateSpans(params) - .then((data: v2.SpansAggregateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans/ListSpans.ts b/examples/v2/spans/ListSpans.ts deleted file mode 100644 index dbc6562350ac..000000000000 --- a/examples/v2/spans/ListSpans.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Search spans returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansApi(configuration); - -const params: v2.SpansApiListSpansRequest = { - body: { - data: { - attributes: { - filter: { - from: "now-15m", - query: "*", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 25, - }, - sort: "timestamp", - }, - type: "search_request", - }, - }, -}; - -apiInstance - .listSpans(params) - .then((data: v2.SpansListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans/ListSpansGet.ts b/examples/v2/spans/ListSpansGet.ts deleted file mode 100644 index 1591b6d7e007..000000000000 --- a/examples/v2/spans/ListSpansGet.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get a list of spans returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansApi(configuration); - -apiInstance - .listSpansGet() - .then((data: v2.SpansListResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/spans/ListSpansGet_1130763422.ts b/examples/v2/spans/ListSpansGet_1130763422.ts deleted file mode 100644 index 47b2fb33b5a1..000000000000 --- a/examples/v2/spans/ListSpansGet_1130763422.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a list of spans returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansApi(configuration); - -const params: v2.SpansApiListSpansGetRequest = { - pageLimit: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listSpansGetWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/spans/ListSpans_3495563906.ts b/examples/v2/spans/ListSpans_3495563906.ts deleted file mode 100644 index 7370761f9876..000000000000 --- a/examples/v2/spans/ListSpans_3495563906.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Search spans returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SpansApi(configuration); - -const params: v2.SpansApiListSpansRequest = { - body: { - data: { - attributes: { - filter: { - from: "now-15m", - query: "service:python*", - to: "now", - }, - options: { - timezone: "GMT", - }, - page: { - limit: 2, - }, - sort: "timestamp", - }, - type: "search_request", - }, - }, -}; - -(async () => { - try { - for await (const item of apiInstance.listSpansWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/synthetics/GetOnDemandConcurrencyCap.ts b/examples/v2/synthetics/GetOnDemandConcurrencyCap.ts deleted file mode 100644 index 3c9a4923d17a..000000000000 --- a/examples/v2/synthetics/GetOnDemandConcurrencyCap.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get the on-demand concurrency cap returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SyntheticsApi(configuration); - -apiInstance - .getOnDemandConcurrencyCap() - .then((data: v2.OnDemandConcurrencyCapResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/synthetics/SetOnDemandConcurrencyCap.ts b/examples/v2/synthetics/SetOnDemandConcurrencyCap.ts deleted file mode 100644 index 64db66446cef..000000000000 --- a/examples/v2/synthetics/SetOnDemandConcurrencyCap.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Save new value for on-demand concurrency cap returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.SyntheticsApi(configuration); - -const params: v2.SyntheticsApiSetOnDemandConcurrencyCapRequest = { - body: { - onDemandConcurrencyCap: 20, - }, -}; - -apiInstance - .setOnDemandConcurrencyCap(params) - .then((data: v2.OnDemandConcurrencyCapResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/CreateTeam.ts b/examples/v2/teams/CreateTeam.ts deleted file mode 100644 index b086c9aac684..000000000000 --- a/examples/v2/teams/CreateTeam.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Create a team returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiCreateTeamRequest = { - body: { - data: { - attributes: { - handle: "test-handle-a0fc0297eb519635", - name: "test-name-a0fc0297eb519635", - }, - relationships: { - users: { - data: [], - }, - }, - type: "team", - }, - }, -}; - -apiInstance - .createTeam(params) - .then((data: v2.TeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/CreateTeamLink.ts b/examples/v2/teams/CreateTeamLink.ts deleted file mode 100644 index 8f0a19ad6c89..000000000000 --- a/examples/v2/teams/CreateTeamLink.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Create a team link returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiCreateTeamLinkRequest = { - body: { - data: { - attributes: { - label: "Link label", - url: "https://example.com", - position: 0, - }, - type: "team_links", - }, - }, - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .createTeamLink(params) - .then((data: v2.TeamLinkResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/CreateTeamMembership.ts b/examples/v2/teams/CreateTeamMembership.ts deleted file mode 100644 index 6bf9fb48d12c..000000000000 --- a/examples/v2/teams/CreateTeamMembership.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Add a user to a team returns "Represents a user's association to a team" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiCreateTeamMembershipRequest = { - body: { - data: { - attributes: { - role: "admin", - }, - relationships: { - team: { - data: { - id: "d7e15d9d-d346-43da-81d8-3d9e71d9a5e9", - type: "team", - }, - }, - user: { - data: { - id: "b8626d7e-cedd-11eb-abf5-da7ad0900001", - type: "users", - }, - }, - }, - type: "team_memberships", - }, - }, - teamId: "team_id", -}; - -apiInstance - .createTeamMembership(params) - .then((data: v2.UserTeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/CreateTeam_252121814.ts b/examples/v2/teams/CreateTeam_252121814.ts deleted file mode 100644 index ca312762298c..000000000000 --- a/examples/v2/teams/CreateTeam_252121814.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Create a team with V2 fields returns "CREATED" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiCreateTeamRequest = { - body: { - data: { - attributes: { - handle: "test-handle-a0fc0297eb519635", - name: "test-name-a0fc0297eb519635", - avatar: "🥑", - banner: 7, - visibleModules: ["m1", "m2"], - hiddenModules: ["m3"], - }, - type: "team", - }, - }, -}; - -apiInstance - .createTeam(params) - .then((data: v2.TeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/DeleteTeam.ts b/examples/v2/teams/DeleteTeam.ts deleted file mode 100644 index b3a1f58c88aa..000000000000 --- a/examples/v2/teams/DeleteTeam.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Remove a team returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiDeleteTeamRequest = { - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .deleteTeam(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/DeleteTeamLink.ts b/examples/v2/teams/DeleteTeamLink.ts deleted file mode 100644 index ad27b000ef63..000000000000 --- a/examples/v2/teams/DeleteTeamLink.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Remove a team link returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -// there is a valid "team_link" in the system -const TEAM_LINK_DATA_ID = process.env.TEAM_LINK_DATA_ID as string; - -const params: v2.TeamsApiDeleteTeamLinkRequest = { - teamId: DD_TEAM_DATA_ID, - linkId: TEAM_LINK_DATA_ID, -}; - -apiInstance - .deleteTeamLink(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/DeleteTeamMembership.ts b/examples/v2/teams/DeleteTeamMembership.ts deleted file mode 100644 index 27093f1d0b12..000000000000 --- a/examples/v2/teams/DeleteTeamMembership.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Remove a user from a team returns "No Content" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiDeleteTeamMembershipRequest = { - teamId: DD_TEAM_DATA_ID, - userId: "user_id", -}; - -apiInstance - .deleteTeamMembership(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/GetTeam.ts b/examples/v2/teams/GetTeam.ts deleted file mode 100644 index 35f34e4d8a94..000000000000 --- a/examples/v2/teams/GetTeam.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiGetTeamRequest = { - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .getTeam(params) - .then((data: v2.TeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/GetTeamLink.ts b/examples/v2/teams/GetTeamLink.ts deleted file mode 100644 index 48efe938aa85..000000000000 --- a/examples/v2/teams/GetTeamLink.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Get a team link returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -// there is a valid "team_link" in the system -const TEAM_LINK_DATA_ID = process.env.TEAM_LINK_DATA_ID as string; - -const params: v2.TeamsApiGetTeamLinkRequest = { - teamId: DD_TEAM_DATA_ID, - linkId: TEAM_LINK_DATA_ID, -}; - -apiInstance - .getTeamLink(params) - .then((data: v2.TeamLinkResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/GetTeamLinks.ts b/examples/v2/teams/GetTeamLinks.ts deleted file mode 100644 index ab7e85e5d106..000000000000 --- a/examples/v2/teams/GetTeamLinks.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get links for a team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiGetTeamLinksRequest = { - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .getTeamLinks(params) - .then((data: v2.TeamLinksResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/GetTeamMemberships.ts b/examples/v2/teams/GetTeamMemberships.ts deleted file mode 100644 index 80c28abd8d39..000000000000 --- a/examples/v2/teams/GetTeamMemberships.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get team memberships returns "Represents a user's association to a team" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiGetTeamMembershipsRequest = { - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .getTeamMemberships(params) - .then((data: v2.UserTeamsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/GetTeamMemberships_3799131168.ts b/examples/v2/teams/GetTeamMemberships_3799131168.ts deleted file mode 100644 index f14af753abe2..000000000000 --- a/examples/v2/teams/GetTeamMemberships_3799131168.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Get team memberships returns "Represents a user's association to a team" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiGetTeamMembershipsRequest = { - teamId: "2e06bf2c-193b-41d4-b3c2-afccc080458f", - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.getTeamMembershipsWithPagination( - params - )) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/teams/GetTeamPermissionSettings.ts b/examples/v2/teams/GetTeamPermissionSettings.ts deleted file mode 100644 index 15e225203797..000000000000 --- a/examples/v2/teams/GetTeamPermissionSettings.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get permission settings for a team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiGetTeamPermissionSettingsRequest = { - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .getTeamPermissionSettings(params) - .then((data: v2.TeamPermissionSettingsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/GetUserMemberships.ts b/examples/v2/teams/GetUserMemberships.ts deleted file mode 100644 index ff129b5f617f..000000000000 --- a/examples/v2/teams/GetUserMemberships.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get user memberships returns "Represents a user's association to a team" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.TeamsApiGetUserMembershipsRequest = { - userUuid: USER_DATA_ID, -}; - -apiInstance - .getUserMemberships(params) - .then((data: v2.UserTeamsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/ListTeams.ts b/examples/v2/teams/ListTeams.ts deleted file mode 100644 index 2b3062b4ea8f..000000000000 --- a/examples/v2/teams/ListTeams.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get all teams returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -apiInstance - .listTeams() - .then((data: v2.TeamsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/ListTeams_3429963470.ts b/examples/v2/teams/ListTeams_3429963470.ts deleted file mode 100644 index cca6df742eda..000000000000 --- a/examples/v2/teams/ListTeams_3429963470.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get all teams with fields_team parameter returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiListTeamsRequest = { - fieldsTeam: ["id", "name", "handle"], -}; - -apiInstance - .listTeams(params) - .then((data: v2.TeamsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/ListTeams_3592098458.ts b/examples/v2/teams/ListTeams_3592098458.ts deleted file mode 100644 index 710665bfa972..000000000000 --- a/examples/v2/teams/ListTeams_3592098458.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get all teams returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiListTeamsRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listTeamsWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/teams/UpdateTeam.ts b/examples/v2/teams/UpdateTeam.ts deleted file mode 100644 index 35a1e2cfbeb9..000000000000 --- a/examples/v2/teams/UpdateTeam.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Update a team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ATTRIBUTES_HANDLE = process.env - .DD_TEAM_DATA_ATTRIBUTES_HANDLE as string; -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiUpdateTeamRequest = { - body: { - data: { - attributes: { - handle: DD_TEAM_DATA_ATTRIBUTES_HANDLE, - name: "Example Team updated", - avatar: "🥑", - banner: 7, - hiddenModules: ["m3"], - visibleModules: ["m1", "m2"], - }, - type: "team", - }, - }, - teamId: DD_TEAM_DATA_ID, -}; - -apiInstance - .updateTeam(params) - .then((data: v2.TeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/UpdateTeamLink.ts b/examples/v2/teams/UpdateTeamLink.ts deleted file mode 100644 index 6c3f10934e8b..000000000000 --- a/examples/v2/teams/UpdateTeamLink.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Update a team link returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -// there is a valid "team_link" in the system -const TEAM_LINK_DATA_ID = process.env.TEAM_LINK_DATA_ID as string; - -const params: v2.TeamsApiUpdateTeamLinkRequest = { - body: { - data: { - attributes: { - label: "New Label", - url: "https://example.com", - }, - type: "team_links", - }, - }, - teamId: DD_TEAM_DATA_ID, - linkId: TEAM_LINK_DATA_ID, -}; - -apiInstance - .updateTeamLink(params) - .then((data: v2.TeamLinkResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/UpdateTeamMembership.ts b/examples/v2/teams/UpdateTeamMembership.ts deleted file mode 100644 index bdd710f23e8b..000000000000 --- a/examples/v2/teams/UpdateTeamMembership.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Update a user's membership attributes on a team returns "Represents a user's association to a team" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -const params: v2.TeamsApiUpdateTeamMembershipRequest = { - body: { - data: { - attributes: { - role: "admin", - }, - type: "team_memberships", - }, - }, - teamId: "team_id", - userId: "user_id", -}; - -apiInstance - .updateTeamMembership(params) - .then((data: v2.UserTeamResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/UpdateTeamPermissionSetting.ts b/examples/v2/teams/UpdateTeamPermissionSetting.ts deleted file mode 100644 index 02a7c49255a7..000000000000 --- a/examples/v2/teams/UpdateTeamPermissionSetting.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Update permission setting for team returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.TeamsApi(configuration); - -// there is a valid "dd_team" in the system -const DD_TEAM_DATA_ID = process.env.DD_TEAM_DATA_ID as string; - -const params: v2.TeamsApiUpdateTeamPermissionSettingRequest = { - body: { - data: { - attributes: { - value: "admins", - }, - type: "team_permission_settings", - }, - }, - teamId: DD_TEAM_DATA_ID, - action: "manage_membership", -}; - -apiInstance - .updateTeamPermissionSetting(params) - .then((data: v2.TeamPermissionSettingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetActiveBillingDimensions.ts b/examples/v2/usage-metering/GetActiveBillingDimensions.ts deleted file mode 100644 index 0c5fa3756a67..000000000000 --- a/examples/v2/usage-metering/GetActiveBillingDimensions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get active billing dimensions for cost attribution returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -apiInstance - .getActiveBillingDimensions() - .then((data: v2.ActiveBillingDimensionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetBillingDimensionMapping.ts b/examples/v2/usage-metering/GetBillingDimensionMapping.ts deleted file mode 100644 index 67afd626e06e..000000000000 --- a/examples/v2/usage-metering/GetBillingDimensionMapping.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get billing dimension mapping for usage endpoints returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -apiInstance - .getBillingDimensionMapping() - .then((data: v2.BillingDimensionsMappingResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetCostByOrg.ts b/examples/v2/usage-metering/GetCostByOrg.ts deleted file mode 100644 index 999256c25357..000000000000 --- a/examples/v2/usage-metering/GetCostByOrg.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get cost across multi-org account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetCostByOrgRequest = { - startMonth: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getCostByOrg(params) - .then((data: v2.CostByOrgResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetEstimatedCostByOrg.ts b/examples/v2/usage-metering/GetEstimatedCostByOrg.ts deleted file mode 100644 index e97a258a0cb2..000000000000 --- a/examples/v2/usage-metering/GetEstimatedCostByOrg.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Get estimated cost across your account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -apiInstance - .getEstimatedCostByOrg() - .then((data: v2.CostByOrgResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.ts b/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.ts deleted file mode 100644 index a5f058a87e1a..000000000000 --- a/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * GetEstimatedCostByOrg with start_month returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetEstimatedCostByOrgRequest = { - view: "sub-org", - startMonth: new Date(), -}; - -apiInstance - .getEstimatedCostByOrg(params) - .then((data: v2.CostByOrgResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetHistoricalCostByOrg.ts b/examples/v2/usage-metering/GetHistoricalCostByOrg.ts deleted file mode 100644 index e3fb19834b3c..000000000000 --- a/examples/v2/usage-metering/GetHistoricalCostByOrg.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get historical cost across your account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetHistoricalCostByOrgRequest = { - view: "sub-org", - startMonth: new Date(new Date().getTime() + -2 * 86400 * 30 * 1000), -}; - -apiInstance - .getHistoricalCostByOrg(params) - .then((data: v2.CostByOrgResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetHourlyUsage.ts b/examples/v2/usage-metering/GetHourlyUsage.ts deleted file mode 100644 index 3f8819ca2c99..000000000000 --- a/examples/v2/usage-metering/GetHourlyUsage.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage by product family returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetHourlyUsageRequest = { - filterTimestampStart: new Date(new Date().getTime() + -3 * 86400 * 1000), - filterProductFamilies: "infra_hosts", -}; - -apiInstance - .getHourlyUsage(params) - .then((data: v2.HourlyUsageResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetMonthlyCostAttribution.ts b/examples/v2/usage-metering/GetMonthlyCostAttribution.ts deleted file mode 100644 index 66d1389f0e9b..000000000000 --- a/examples/v2/usage-metering/GetMonthlyCostAttribution.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get Monthly Cost Attribution returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetMonthlyCostAttributionRequest = { - startMonth: new Date(new Date().getTime() + -5 * 86400 * 1000), - endMonth: new Date(new Date().getTime() + -3 * 86400 * 1000), - fields: "infra_host_total_cost", -}; - -apiInstance - .getMonthlyCostAttribution(params) - .then((data: v2.MonthlyCostAttributionResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetProjectedCost.ts b/examples/v2/usage-metering/GetProjectedCost.ts deleted file mode 100644 index 95cbc5334b82..000000000000 --- a/examples/v2/usage-metering/GetProjectedCost.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get projected cost across your account returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetProjectedCostRequest = { - view: "sub-org", -}; - -apiInstance - .getProjectedCost(params) - .then((data: v2.ProjectedCostResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.ts b/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.ts deleted file mode 100644 index e077beec2e8f..000000000000 --- a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Get hourly usage for application security returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest = - { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), - }; - -apiInstance - .getUsageApplicationSecurityMonitoring(params) - .then((data: v2.UsageApplicationSecurityMonitoringResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.ts b/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.ts deleted file mode 100644 index a3cfc3134c59..000000000000 --- a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for Lambda traced invocations returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetUsageLambdaTracedInvocationsRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageLambdaTracedInvocations(params) - .then((data: v2.UsageLambdaTracedInvocationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetUsageObservabilityPipelines.ts b/examples/v2/usage-metering/GetUsageObservabilityPipelines.ts deleted file mode 100644 index 238cee2d3920..000000000000 --- a/examples/v2/usage-metering/GetUsageObservabilityPipelines.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get hourly usage for observability pipelines returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsageMeteringApi(configuration); - -const params: v2.UsageMeteringApiGetUsageObservabilityPipelinesRequest = { - startHr: new Date(new Date().getTime() + -5 * 86400 * 1000), - endHr: new Date(new Date().getTime() + -3 * 86400 * 1000), -}; - -apiInstance - .getUsageObservabilityPipelines(params) - .then((data: v2.UsageObservabilityPipelinesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/CreateUser.ts b/examples/v2/users/CreateUser.ts deleted file mode 100644 index c39c5b859d98..000000000000 --- a/examples/v2/users/CreateUser.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Create a user returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -const params: v2.UsersApiCreateUserRequest = { - body: { - data: { - type: "users", - attributes: { - name: "Datadog API Client Python", - email: "Example-User@datadoghq.com", - }, - }, - }, -}; - -apiInstance - .createUser(params) - .then((data: v2.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/DisableUser.ts b/examples/v2/users/DisableUser.ts deleted file mode 100644 index 003134d4bf52..000000000000 --- a/examples/v2/users/DisableUser.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Disable a user returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.UsersApiDisableUserRequest = { - userId: USER_DATA_ID, -}; - -apiInstance - .disableUser(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/GetInvitation.ts b/examples/v2/users/GetInvitation.ts deleted file mode 100644 index 2afd507fa192..000000000000 --- a/examples/v2/users/GetInvitation.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a user invitation returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// the "user" has a "user_invitation" -const USER_INVITATION_ID = process.env.USER_INVITATION_ID as string; - -const params: v2.UsersApiGetInvitationRequest = { - userInvitationUuid: USER_INVITATION_ID, -}; - -apiInstance - .getInvitation(params) - .then((data: v2.UserInvitationResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/GetUser.ts b/examples/v2/users/GetUser.ts deleted file mode 100644 index b69325ca3130..000000000000 --- a/examples/v2/users/GetUser.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get user details returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.UsersApiGetUserRequest = { - userId: USER_DATA_ID, -}; - -apiInstance - .getUser(params) - .then((data: v2.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/ListUserOrganizations.ts b/examples/v2/users/ListUserOrganizations.ts deleted file mode 100644 index 8e3ddcafe675..000000000000 --- a/examples/v2/users/ListUserOrganizations.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Get a user organization returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -const params: v2.UsersApiListUserOrganizationsRequest = { - userId: "00000000-0000-9999-0000-000000000000", -}; - -apiInstance - .listUserOrganizations(params) - .then((data: v2.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/ListUserPermissions.ts b/examples/v2/users/ListUserPermissions.ts deleted file mode 100644 index 4c9702e69999..000000000000 --- a/examples/v2/users/ListUserPermissions.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get a user permissions returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.UsersApiListUserPermissionsRequest = { - userId: USER_DATA_ID, -}; - -apiInstance - .listUserPermissions(params) - .then((data: v2.PermissionsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/ListUsers.ts b/examples/v2/users/ListUsers.ts deleted file mode 100644 index 23b770e617ce..000000000000 --- a/examples/v2/users/ListUsers.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * List all users returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ATTRIBUTES_EMAIL = process.env - .USER_DATA_ATTRIBUTES_EMAIL as string; - -const params: v2.UsersApiListUsersRequest = { - filter: USER_DATA_ATTRIBUTES_EMAIL, -}; - -apiInstance - .listUsers(params) - .then((data: v2.UsersResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/ListUsers_4075885358.ts b/examples/v2/users/ListUsers_4075885358.ts deleted file mode 100644 index 2e10025c3d21..000000000000 --- a/examples/v2/users/ListUsers_4075885358.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * List all users returns "OK" response with pagination - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -const params: v2.UsersApiListUsersRequest = { - pageSize: 2, -}; - -(async () => { - try { - for await (const item of apiInstance.listUsersWithPagination(params)) { - console.log(item); - } - } catch (error) { - console.error(error); - } -})(); diff --git a/examples/v2/users/SendInvitations.ts b/examples/v2/users/SendInvitations.ts deleted file mode 100644 index da20d78d2a69..000000000000 --- a/examples/v2/users/SendInvitations.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Send invitation emails returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.UsersApiSendInvitationsRequest = { - body: { - data: [ - { - type: "user_invitations", - relationships: { - user: { - data: { - type: "users", - id: USER_DATA_ID, - }, - }, - }, - }, - ], - }, -}; - -apiInstance - .sendInvitations(params) - .then((data: v2.UserInvitationsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/users/UpdateUser.ts b/examples/v2/users/UpdateUser.ts deleted file mode 100644 index 97d8d93e7e99..000000000000 --- a/examples/v2/users/UpdateUser.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Update a user returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.UsersApi(configuration); - -// there is a valid "user" in the system -const USER_DATA_ID = process.env.USER_DATA_ID as string; - -const params: v2.UsersApiUpdateUserRequest = { - body: { - data: { - id: USER_DATA_ID, - type: "users", - attributes: { - name: "updated", - disabled: true, - }, - }, - }, - userId: USER_DATA_ID, -}; - -apiInstance - .updateUser(params) - .then((data: v2.UserResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/CancelWorkflowInstance.ts b/examples/v2/workflow-automation/CancelWorkflowInstance.ts deleted file mode 100644 index 8cb1ce3d1389..000000000000 --- a/examples/v2/workflow-automation/CancelWorkflowInstance.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Cancel a workflow instance returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -const params: v2.WorkflowAutomationApiCancelWorkflowInstanceRequest = { - workflowId: "ccf73164-1998-4785-a7a3-8d06c7e5f558", - instanceId: "305a472b-71ab-4ce8-8f8d-75db635627b5", -}; - -apiInstance - .cancelWorkflowInstance(params) - .then((data: v2.WorklflowCancelInstanceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/CreateWorkflow.ts b/examples/v2/workflow-automation/CreateWorkflow.ts deleted file mode 100644 index 53666a02c9e1..000000000000 --- a/examples/v2/workflow-automation/CreateWorkflow.ts +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Create a Workflow returns "Successfully created a workflow." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -const params: v2.WorkflowAutomationApiCreateWorkflowRequest = { - body: { - data: { - attributes: { - description: "A sample workflow.", - name: "Example Workflow", - published: true, - spec: { - connectionEnvs: [ - { - connections: [ - { - connectionId: "11111111-1111-1111-1111-111111111111", - label: "INTEGRATION_DATADOG", - }, - ], - env: "default", - }, - ], - handle: "my-handle", - inputSchema: { - parameters: [ - { - defaultValue: "default", - name: "input", - type: "STRING", - }, - ], - }, - outputSchema: { - parameters: [ - { - name: "output", - type: "ARRAY_OBJECT", - value: "outputValue", - }, - ], - }, - steps: [ - { - actionId: "com.datadoghq.dd.monitor.listMonitors", - connectionLabel: "INTEGRATION_DATADOG", - name: "Step1", - outboundEdges: [ - { - branchName: "main", - nextStepName: "Step2", - }, - ], - parameters: [ - { - name: "tags", - value: "service:monitoring", - }, - ], - }, - { - actionId: "com.datadoghq.core.noop", - name: "Step2", - }, - ], - triggers: [ - { - monitorTrigger: { - rateLimit: { - count: 1, - interval: "3600s", - }, - }, - startStepNames: ["Step1"], - }, - { - startStepNames: ["Step1"], - githubWebhookTrigger: {}, - }, - ], - }, - tags: ["team:infra", "service:monitoring", "foo:bar"], - }, - type: "workflows", - }, - }, -}; - -apiInstance - .createWorkflow(params) - .then((data: v2.CreateWorkflowResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/CreateWorkflowInstance.ts b/examples/v2/workflow-automation/CreateWorkflowInstance.ts deleted file mode 100644 index 9ef83ec95c88..000000000000 --- a/examples/v2/workflow-automation/CreateWorkflowInstance.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Execute a workflow returns "Created" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -const params: v2.WorkflowAutomationApiCreateWorkflowInstanceRequest = { - body: { - meta: { - payload: { - input: "value", - }, - }, - }, - workflowId: "ccf73164-1998-4785-a7a3-8d06c7e5f558", -}; - -apiInstance - .createWorkflowInstance(params) - .then((data: v2.WorkflowInstanceCreateResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/DeleteWorkflow.ts b/examples/v2/workflow-automation/DeleteWorkflow.ts deleted file mode 100644 index ff5dd344f7ec..000000000000 --- a/examples/v2/workflow-automation/DeleteWorkflow.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Delete an existing Workflow returns "Successfully deleted a workflow." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -// there is a valid "workflow" in the system -const WORKFLOW_DATA_ID = process.env.WORKFLOW_DATA_ID as string; - -const params: v2.WorkflowAutomationApiDeleteWorkflowRequest = { - workflowId: WORKFLOW_DATA_ID, -}; - -apiInstance - .deleteWorkflow(params) - .then((data: any) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/GetWorkflow.ts b/examples/v2/workflow-automation/GetWorkflow.ts deleted file mode 100644 index 3fc77f75a518..000000000000 --- a/examples/v2/workflow-automation/GetWorkflow.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Get an existing Workflow returns "Successfully got a workflow." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -// there is a valid "workflow" in the system -const WORKFLOW_DATA_ID = process.env.WORKFLOW_DATA_ID as string; - -const params: v2.WorkflowAutomationApiGetWorkflowRequest = { - workflowId: WORKFLOW_DATA_ID, -}; - -apiInstance - .getWorkflow(params) - .then((data: v2.GetWorkflowResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/GetWorkflowInstance.ts b/examples/v2/workflow-automation/GetWorkflowInstance.ts deleted file mode 100644 index 0e7249025d08..000000000000 --- a/examples/v2/workflow-automation/GetWorkflowInstance.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get a workflow instance returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -const params: v2.WorkflowAutomationApiGetWorkflowInstanceRequest = { - workflowId: "ccf73164-1998-4785-a7a3-8d06c7e5f558", - instanceId: "305a472b-71ab-4ce8-8f8d-75db635627b5", -}; - -apiInstance - .getWorkflowInstance(params) - .then((data: v2.WorklflowGetInstanceResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/ListWorkflowInstances.ts b/examples/v2/workflow-automation/ListWorkflowInstances.ts deleted file mode 100644 index 40c79843e6de..000000000000 --- a/examples/v2/workflow-automation/ListWorkflowInstances.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * List workflow instances returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -const params: v2.WorkflowAutomationApiListWorkflowInstancesRequest = { - workflowId: "ccf73164-1998-4785-a7a3-8d06c7e5f558", -}; - -apiInstance - .listWorkflowInstances(params) - .then((data: v2.WorkflowListInstancesResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/workflow-automation/UpdateWorkflow.ts b/examples/v2/workflow-automation/UpdateWorkflow.ts deleted file mode 100644 index 63157bbfcee1..000000000000 --- a/examples/v2/workflow-automation/UpdateWorkflow.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Update an existing Workflow returns "Successfully updated a workflow." response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.WorkflowAutomationApi(configuration); - -// there is a valid "workflow" in the system -const WORKFLOW_DATA_ID = process.env.WORKFLOW_DATA_ID as string; - -const params: v2.WorkflowAutomationApiUpdateWorkflowRequest = { - body: { - data: { - attributes: { - description: "A sample workflow.", - name: "Example Workflow", - published: true, - spec: { - connectionEnvs: [ - { - connections: [ - { - connectionId: "11111111-1111-1111-1111-111111111111", - label: "INTEGRATION_DATADOG", - }, - ], - env: "default", - }, - ], - handle: "my-handle", - inputSchema: { - parameters: [ - { - defaultValue: "default", - name: "input", - type: "STRING", - }, - ], - }, - outputSchema: { - parameters: [ - { - name: "output", - type: "ARRAY_OBJECT", - value: "outputValue", - }, - ], - }, - steps: [ - { - actionId: "com.datadoghq.dd.monitor.listMonitors", - connectionLabel: "INTEGRATION_DATADOG", - name: "Step1", - outboundEdges: [ - { - branchName: "main", - nextStepName: "Step2", - }, - ], - parameters: [ - { - name: "tags", - value: "service:monitoring", - }, - ], - }, - { - actionId: "com.datadoghq.core.noop", - name: "Step2", - }, - ], - triggers: [ - { - monitorTrigger: { - rateLimit: { - count: 1, - interval: "3600s", - }, - }, - startStepNames: ["Step1"], - }, - { - startStepNames: ["Step1"], - githubWebhookTrigger: {}, - }, - ], - }, - tags: ["team:infra", "service:monitoring", "foo:bar"], - }, - id: "22222222-2222-2222-2222-222222222222", - type: "workflows", - }, - }, - workflowId: WORKFLOW_DATA_ID, -}; - -apiInstance - .updateWorkflow(params) - .then((data: v2.UpdateWorkflowResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/packages/datadog-api-client-common/auth.ts b/packages/datadog-api-client-common/auth.ts index af56abc8962c..afceba34e287 100644 --- a/packages/datadog-api-client-common/auth.ts +++ b/packages/datadog-api-client-common/auth.ts @@ -82,30 +82,28 @@ export class AppKeyAuthAuthentication implements SecurityAuthentication { } export type AuthMethods = { - AuthZ?: SecurityAuthentication; - apiKeyAuth?: SecurityAuthentication; - appKeyAuth?: SecurityAuthentication; -}; + "AuthZ"?: SecurityAuthentication, + "apiKeyAuth"?: SecurityAuthentication, + "appKeyAuth"?: SecurityAuthentication +} export type ApiKeyConfiguration = string; -export type HttpBasicConfiguration = { username: string; password: string }; +export type HttpBasicConfiguration = { "username": string, "password": string }; export type HttpBearerConfiguration = { tokenProvider: TokenProvider }; export type OAuth2Configuration = { accessToken: string }; export type AuthMethodsConfiguration = { - AuthZ?: OAuth2Configuration; - apiKeyAuth?: ApiKeyConfiguration; - appKeyAuth?: ApiKeyConfiguration; -}; + "AuthZ"?: OAuth2Configuration, + "apiKeyAuth"?: ApiKeyConfiguration, + "appKeyAuth"?: ApiKeyConfiguration +} /** * Creates the authentication methods from a swagger description. * */ -export function configureAuthMethods( - config: AuthMethodsConfiguration | undefined -): AuthMethods { - const authMethods: AuthMethods = {}; +export function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods { + let authMethods: AuthMethods = {} if (!config) { return authMethods; @@ -113,21 +111,33 @@ export function configureAuthMethods( if (config["AuthZ"]) { authMethods["AuthZ"] = new AuthZAuthentication( + + + + config["AuthZ"]["accessToken"] ); } if (config["apiKeyAuth"]) { authMethods["apiKeyAuth"] = new ApiKeyAuthAuthentication( + config["apiKeyAuth"] + + + ); } if (config["appKeyAuth"]) { authMethods["appKeyAuth"] = new AppKeyAuthAuthentication( + config["appKeyAuth"] + + + ); } return authMethods; -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-common/baseapi.ts b/packages/datadog-api-client-common/baseapi.ts index 8a757d1f1e0e..556360c1a2b9 100644 --- a/packages/datadog-api-client-common/baseapi.ts +++ b/packages/datadog-api-client-common/baseapi.ts @@ -27,13 +27,8 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - constructor( - public field: string, - operation: string - ) { - super( - `Required parameter ${field} was null or undefined when calling ${operation}.` - ); + constructor(public field: string, operation: string) { + super(`Required parameter ${field} was null or undefined when calling ${operation}.`); this.name = "RequiredError"; } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-common/configuration.ts b/packages/datadog-api-client-common/configuration.ts index 06fdea6fec4c..e5ee6ef15bd3 100644 --- a/packages/datadog-api-client-common/configuration.ts +++ b/packages/datadog-api-client-common/configuration.ts @@ -1,21 +1,7 @@ -import { - HttpLibrary, - HttpConfiguration, - RequestContext, - ZstdCompressorCallback, -} from "./http/http"; +import { HttpLibrary, HttpConfiguration, RequestContext, ZstdCompressorCallback } from "./http/http"; import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch"; -import { - BaseServerConfiguration, - server1, - servers, - operationServers, -} from "./servers"; -import { - configureAuthMethods, - AuthMethods, - AuthMethodsConfiguration, -} from "./auth"; +import { BaseServerConfiguration, server1, servers, operationServers } from "./servers"; +import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth"; import { logger } from "../../logger"; export class Configuration { @@ -46,7 +32,7 @@ export class Configuration { maxRetries: number | undefined, backoffBase: number | undefined, backoffMultiplier: number | undefined, - unstableOperations: { [name: string]: boolean } + unstableOperations: { [name: string]: boolean }, ) { this.baseServer = baseServer; this.serverIndex = serverIndex; @@ -55,21 +41,21 @@ export class Configuration { this.authMethods = authMethods; this.httpConfig = httpConfig; this.debug = debug; - this.enableRetry = enableRetry; + this.enableRetry= enableRetry; this.maxRetries = maxRetries; this.backoffBase = backoffBase; this.backoffMultiplier = backoffMultiplier; this.unstableOperations = unstableOperations; this.servers = []; for (const server of servers) { - this.servers.push(server.clone()); + this.servers.push(server.clone()); } this.operationServers = {}; for (const endpoint in operationServers) { - this.operationServers[endpoint] = []; - for (const server of operationServers[endpoint]) { - this.operationServers[endpoint].push(server.clone()); - } + this.operationServers[endpoint] = []; + for (const server of operationServers[endpoint]) { + this.operationServers[endpoint].push(server.clone()); + } } if (backoffBase && backoffBase < 2) { throw new Error("Backoff base must be at least 2"); @@ -123,7 +109,7 @@ export interface ConfigurationParameters { /** * Default index of a server to use for an operation from the predefined server operation map */ - operationServerIndices?: { [name: string]: number }; + operationServerIndices?: { [ name: string ]: number }; /** * Custom `fetch` function */ @@ -139,15 +125,15 @@ export interface ConfigurationParameters { /** * Configuration for HTTP transport */ - httpConfig?: HttpConfiguration; + httpConfig?: HttpConfiguration /** * Flag to enable requests tracing */ - debug?: boolean; + debug?: boolean /** * Callback method to compress string body with zstd */ - zstdCompressorCallback?: ZstdCompressorCallback; + zstdCompressorCallback?: ZstdCompressorCallback /** * Maximum of retry attempts allowed */ @@ -180,32 +166,20 @@ export interface ConfigurationParameters { * * @param conf partial configuration */ -export function createConfiguration( - conf: ConfigurationParameters = {} -): Configuration { +export function createConfiguration(conf: ConfigurationParameters = {}): Configuration { if (typeof process !== "undefined" && process.env && process.env.DD_SITE) { const serverConf = server1.getConfiguration(); - server1.setVariables({ site: process.env.DD_SITE } as typeof serverConf); + server1.setVariables({"site": process.env.DD_SITE} as (typeof serverConf)); for (const op in operationServers) { operationServers[op][0].setVariables({ site: process.env.DD_SITE }); } } const authMethods = conf.authMethods || {}; - if ( - !("apiKeyAuth" in authMethods) && - typeof process !== "undefined" && - process.env && - process.env.DD_API_KEY - ) { + if (!("apiKeyAuth" in authMethods) && typeof process !== "undefined" && process.env && process.env.DD_API_KEY) { authMethods["apiKeyAuth"] = process.env.DD_API_KEY; } - if ( - !("appKeyAuth" in authMethods) && - typeof process !== "undefined" && - process.env && - process.env.DD_APP_KEY - ) { + if (!("appKeyAuth" in authMethods) && typeof process !== "undefined" && process.env && process.env.DD_APP_KEY) { authMethods["appKeyAuth"] = process.env.DD_APP_KEY; } @@ -222,98 +196,93 @@ export function createConfiguration( conf.backoffBase || 2, conf.backoffMultiplier || 2, { - "v2.createOpenAPI": false, - "v2.deleteOpenAPI": false, - "v2.getOpenAPI": false, - "v2.listAPIs": false, - "v2.updateOpenAPI": false, - "v2.cancelDataDeletionRequest": false, - "v2.createDataDeletionRequest": false, - "v2.getDataDeletionRequests": false, - "v2.createDORADeployment": false, - "v2.createDORAIncident": false, - "v2.createIncident": false, - "v2.createIncidentIntegration": false, - "v2.createIncidentTodo": false, - "v2.createIncidentType": false, - "v2.deleteIncident": false, - "v2.deleteIncidentIntegration": false, - "v2.deleteIncidentTodo": false, - "v2.deleteIncidentType": false, - "v2.getIncident": false, - "v2.getIncidentIntegration": false, - "v2.getIncidentTodo": false, - "v2.getIncidentType": false, - "v2.listIncidentAttachments": false, - "v2.listIncidentIntegrations": false, - "v2.listIncidents": false, - "v2.listIncidentTodos": false, - "v2.listIncidentTypes": false, - "v2.searchIncidents": false, - "v2.updateIncident": false, - "v2.updateIncidentAttachments": false, - "v2.updateIncidentIntegration": false, - "v2.updateIncidentTodo": false, - "v2.updateIncidentType": false, - "v2.createAWSAccount": false, - "v2.createNewAWSExternalID": false, - "v2.deleteAWSAccount": false, - "v2.getAWSAccount": false, - "v2.listAWSAccounts": false, - "v2.listAWSNamespaces": false, - "v2.updateAWSAccount": false, - "v2.listAWSLogsServices": false, - "v2.cancelHistoricalJob": false, - "v2.convertJobResultToSignal": false, - "v2.deleteHistoricalJob": false, - "v2.getFinding": false, - "v2.getHistoricalJob": false, - "v2.getRuleVersionHistory": false, - "v2.getSBOM": false, - "v2.listFindings": false, - "v2.listHistoricalJobs": false, - "v2.listVulnerabilities": false, - "v2.listVulnerableAssets": false, - "v2.muteFindings": false, - "v2.runHistoricalJob": false, - "v2.createScorecardOutcomesBatch": false, - "v2.createScorecardRule": false, - "v2.deleteScorecardRule": false, - "v2.listScorecardOutcomes": false, - "v2.listScorecardRules": false, - "v2.updateScorecardRule": false, - "v2.createIncidentService": false, - "v2.deleteIncidentService": false, - "v2.getIncidentService": false, - "v2.listIncidentServices": false, - "v2.updateIncidentService": false, - "v2.createSLOReportJob": false, - "v2.getSLOReport": false, - "v2.getSLOReportJobStatus": false, - "v2.createIncidentTeam": false, - "v2.deleteIncidentTeam": false, - "v2.getIncidentTeam": false, - "v2.listIncidentTeams": false, - "v2.updateIncidentTeam": false, - } + "v2.createOpenAPI": false, + "v2.deleteOpenAPI": false, + "v2.getOpenAPI": false, + "v2.listAPIs": false, + "v2.updateOpenAPI": false, + "v2.cancelDataDeletionRequest": false, + "v2.createDataDeletionRequest": false, + "v2.getDataDeletionRequests": false, + "v2.createDORADeployment": false, + "v2.createDORAIncident": false, + "v2.createIncident": false, + "v2.createIncidentIntegration": false, + "v2.createIncidentTodo": false, + "v2.createIncidentType": false, + "v2.deleteIncident": false, + "v2.deleteIncidentIntegration": false, + "v2.deleteIncidentTodo": false, + "v2.deleteIncidentType": false, + "v2.getIncident": false, + "v2.getIncidentIntegration": false, + "v2.getIncidentTodo": false, + "v2.getIncidentType": false, + "v2.listIncidentAttachments": false, + "v2.listIncidentIntegrations": false, + "v2.listIncidents": false, + "v2.listIncidentTodos": false, + "v2.listIncidentTypes": false, + "v2.searchIncidents": false, + "v2.updateIncident": false, + "v2.updateIncidentAttachments": false, + "v2.updateIncidentIntegration": false, + "v2.updateIncidentTodo": false, + "v2.updateIncidentType": false, + "v2.createAWSAccount": false, + "v2.createNewAWSExternalID": false, + "v2.deleteAWSAccount": false, + "v2.getAWSAccount": false, + "v2.listAWSAccounts": false, + "v2.listAWSNamespaces": false, + "v2.updateAWSAccount": false, + "v2.listAWSLogsServices": false, + "v2.cancelHistoricalJob": false, + "v2.convertJobResultToSignal": false, + "v2.deleteHistoricalJob": false, + "v2.getFinding": false, + "v2.getHistoricalJob": false, + "v2.getRuleVersionHistory": false, + "v2.getSBOM": false, + "v2.listFindings": false, + "v2.listHistoricalJobs": false, + "v2.listVulnerabilities": false, + "v2.listVulnerableAssets": false, + "v2.muteFindings": false, + "v2.runHistoricalJob": false, + "v2.createScorecardOutcomesBatch": false, + "v2.createScorecardRule": false, + "v2.deleteScorecardRule": false, + "v2.listScorecardOutcomes": false, + "v2.listScorecardRules": false, + "v2.updateScorecardRule": false, + "v2.createIncidentService": false, + "v2.deleteIncidentService": false, + "v2.getIncidentService": false, + "v2.listIncidentServices": false, + "v2.updateIncidentService": false, + "v2.createSLOReportJob": false, + "v2.getSLOReport": false, + "v2.getSLOReportJobStatus": false, + "v2.createIncidentTeam": false, + "v2.deleteIncidentTeam": false, + "v2.getIncidentTeam": false, + "v2.listIncidentTeams": false, + "v2.updateIncidentTeam": false, + }, ); - configuration.httpApi.zstdCompressorCallback = conf.zstdCompressorCallback; + configuration.httpApi.zstdCompressorCallback = conf.zstdCompressorCallback configuration.httpApi.debug = configuration.debug; configuration.httpApi.enableRetry = configuration.enableRetry; configuration.httpApi.maxRetries = configuration.maxRetries; - configuration.httpApi.backoffBase = configuration.backoffBase; + configuration.httpApi.backoffBase = configuration.backoffBase; configuration.httpApi.backoffMultiplier = configuration.backoffMultiplier; configuration.httpApi.fetch = conf.fetch; return configuration; } -export function getServer( - conf: Configuration, - endpoint: string -): BaseServerConfiguration { - logger.warn( - "getServer is deprecated, please use Configuration.getServer instead." - ); +export function getServer(conf: Configuration, endpoint: string): BaseServerConfiguration { + logger.warn("getServer is deprecated, please use Configuration.getServer instead."); return conf.getServer(endpoint); } @@ -322,22 +291,15 @@ export function getServer( * * @param serverVariables key/value object representing the server variables (site, name, protocol, ...) */ -export function setServerVariables( - conf: Configuration, - serverVariables: { [key: string]: string } -): void { - logger.warn( - "setServerVariables is deprecated, please use Configuration.setServerVariables instead." - ); +export function setServerVariables(conf: Configuration, serverVariables: { [key: string]: string }): void { + logger.warn("setServerVariables is deprecated, please use Configuration.setServerVariables instead."); return conf.setServerVariables(serverVariables); } /** * Apply given security authentication method if avaiable in configuration. */ -export function applySecurityAuthentication< - AuthMethodKey extends keyof AuthMethods, ->( +export function applySecurityAuthentication ( conf: Configuration, requestContext: RequestContext, authMethods: AuthMethodKey[] @@ -348,4 +310,4 @@ export function applySecurityAuthentication< authMethod.applySecurityAuthentication(requestContext); } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-common/exception.ts b/packages/datadog-api-client-common/exception.ts index f4dbd80ab5b8..0327294ed683 100644 --- a/packages/datadog-api-client-common/exception.ts +++ b/packages/datadog-api-client-common/exception.ts @@ -8,13 +8,10 @@ * */ export class ApiException extends Error { - public constructor( - public code: number, - public body: T - ) { + public constructor(public code: number, public body: T) { super("HTTP-Code: " + code + "\nMessage: " + JSON.stringify(body)); Object.setPrototypeOf(this, ApiException.prototype); this.code = code; this.body = body; } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-common/http/http.ts b/packages/datadog-api-client-common/http/http.ts index af839059fb63..ea1299c9bd75 100644 --- a/packages/datadog-api-client-common/http/http.ts +++ b/packages/datadog-api-client-common/http/http.ts @@ -97,10 +97,7 @@ export class RequestContext { * @param url url of the requested resource * @param httpMethod http method */ - public constructor( - url: string, - private httpMethod: HttpMethod - ) { + public constructor(url: string, private httpMethod: HttpMethod) { this.url = new URL(url); if (!isBrowser) { this.headers = { "user-agent": userAgent }; @@ -154,12 +151,8 @@ export class RequestContext { * @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 { + */ + public setQueryParam(name: string, value: string | string[], collectionFormat: string): void { if (collectionFormat === "multi") { for (const val of value) { this.url.searchParams.append(name, val); @@ -168,8 +161,7 @@ export class RequestContext { } if (Array.isArray(value)) { - const delimiter = - COLLECTION_FORMATS[collectionFormat as keyof typeof COLLECTION_FORMATS]; + const delimiter = COLLECTION_FORMATS[collectionFormat as keyof typeof COLLECTION_FORMATS]; value = value.join(delimiter); } @@ -277,4 +269,4 @@ export interface HttpLibrary { fetch?: any; zstdCompressorCallback?: ZstdCompressorCallback; send(request: RequestContext): Promise; -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-common/http/isomorphic-fetch.ts b/packages/datadog-api-client-common/http/isomorphic-fetch.ts index 67a1e3957a4a..891dca54cc2d 100644 --- a/packages/datadog-api-client-common/http/isomorphic-fetch.ts +++ b/packages/datadog-api-client-common/http/isomorphic-fetch.ts @@ -1,9 +1,4 @@ -import { - HttpLibrary, - RequestContext, - ResponseContext, - ZstdCompressorCallback, -} from "./http"; +import { HttpLibrary, RequestContext, ResponseContext, ZstdCompressorCallback } from "./http"; import { fetch as crossFetch } from "cross-fetch"; import pako from "pako"; import bufferFrom from "buffer-from"; @@ -14,8 +9,8 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { public debug = false; public zstdCompressorCallback: ZstdCompressorCallback | undefined; public enableRetry!: boolean; - public maxRetries!: number; - public backoffBase!: number; + public maxRetries!: number ; + public backoffBase!: number ; public backoffMultiplier!: number; public fetch: any; @@ -42,7 +37,7 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { if (this.zstdCompressorCallback) { body = this.zstdCompressorCallback(body); } else { - throw new Error("zstdCompressorCallback method missing"); + throw new Error("zstdCompressorCallback method missing") } } } @@ -57,7 +52,7 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { } } } - + return this.executeRequest(request, body, 0, headers); } @@ -65,28 +60,27 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { request: RequestContext, body: any, currentAttempt: number, - headers: { [key: string]: string } + headers: {[key: string]: string} ): Promise { const fetchOptions = { method: request.getHttpMethod().toString(), body: body, headers: headers, signal: request.getHttpConfig().signal, - }; + } try { - const fetchFunction = - this.fetch || + const fetchFunction = this.fetch || // On non-node environments, use native fetch if available. // `cross-fetch` incorrectly assumes all browsers have XHR available. // See https://github.com/lquixada/cross-fetch/issues/78 // TODO: Remove once once above issue is resolved. - (!isNode && typeof fetch === "function" ? fetch : crossFetch); + ((!isNode && typeof fetch === "function") ? fetch : crossFetch); - const resp = await fetchFunction(request.getUrl(), fetchOptions); + const resp = await fetchFunction(request.getUrl(),fetchOptions); const responseHeaders: { [name: string]: string } = {}; - resp.headers.forEach((value: string, name: string) => { - responseHeaders[name] = value; - }); + resp.headers.forEach((value: string, name: string) => { + responseHeaders[name] = value; + }); const responseBody = { text: () => resp.text(), @@ -112,8 +106,8 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { currentAttempt, this.maxRetries, response.httpStatusCode - ) - ) { + ) + ) { const delay = this.calculateRetryInterval( currentAttempt, this.backoffBase, @@ -137,31 +131,17 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { }); } - private shouldRetry( - enableRetry: boolean, - currentAttempt: number, - maxRetries: number, - responseCode: number - ): boolean { - return ( - (responseCode === 429 || responseCode >= 500) && - maxRetries > currentAttempt && - enableRetry - ); + private shouldRetry(enableRetry:boolean, currentAttempt:number, maxRetries:number, responseCode:number):boolean{ + return (responseCode === 429 || responseCode >= 500 ) && maxRetries > currentAttempt && enableRetry } - private calculateRetryInterval( - currentAttempt: number, - backoffBase: number, - backoffMultiplier: number, - headers: { [name: string]: string } - ): number { + private calculateRetryInterval(currentAttempt:number, backoffBase:number, backoffMultiplier:number, headers: {[name: string]: string}) : number{ if ("x-ratelimit-reset" in headers) { - const rateLimitHeaderString = headers["x-ratelimit-reset"]; - const retryIntervalFromHeader = parseInt(rateLimitHeaderString, 10); - return retryIntervalFromHeader; + const rateLimitHeaderString = headers["x-ratelimit-reset"] + const retryIntervalFromHeader = parseInt(rateLimitHeaderString,10); + return retryIntervalFromHeader } else { - return backoffMultiplier ** currentAttempt * backoffBase; + return (backoffMultiplier ** currentAttempt) * backoffBase } } @@ -211,4 +191,4 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { `\theaders: ${headers}\n` ); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-common/index.ts b/packages/datadog-api-client-common/index.ts index acd4f8f6b99b..36149fa6761f 100644 --- a/packages/datadog-api-client-common/index.ts +++ b/packages/datadog-api-client-common/index.ts @@ -1,8 +1,8 @@ export * from "./http/http"; export * from "./http/isomorphic-fetch"; export * from "./auth"; -export { createConfiguration } from "./configuration"; -export { setServerVariables } from "./configuration"; -export { Configuration } from "./configuration"; +export { createConfiguration } from "./configuration" +export { setServerVariables } from "./configuration" +export { Configuration } from "./configuration" export * from "./exception"; -export * from "./servers"; +export * from "./servers"; \ No newline at end of file diff --git a/packages/datadog-api-client-common/servers.ts b/packages/datadog-api-client-common/servers.ts index 00f033949a1b..f09c505966a0 100644 --- a/packages/datadog-api-client-common/servers.ts +++ b/packages/datadog-api-client-common/servers.ts @@ -6,10 +6,7 @@ import { RequestContext, HttpMethod } from "./http/http"; * */ export class BaseServerConfiguration { - public constructor( - private url: string, - private variableConfiguration: { [key: string]: string } - ) {} + public constructor(private url: string, private variableConfiguration: { [key: string]: string }) {} /** * Sets the value of the variables of this server. @@ -21,22 +18,20 @@ export class BaseServerConfiguration { } public getConfiguration(): { [key: string]: string } { - return this.variableConfiguration; + return this.variableConfiguration } public clone(): BaseServerConfiguration { - return new BaseServerConfiguration(this.url, { - ...this.variableConfiguration, - }); + return new BaseServerConfiguration(this.url, {...this.variableConfiguration}); } private getUrl() { let replacedUrl = this.url; for (const key in this.variableConfiguration) { - const re = new RegExp("{" + key + "}", "g"); + var re = new RegExp("{" + key + "}","g"); replacedUrl = replacedUrl.replace(re, this.variableConfiguration[key]); } - return replacedUrl; + return replacedUrl } /** @@ -47,10 +42,7 @@ export class BaseServerConfiguration { * @param httpMethod httpMethod to be used * */ - public makeRequestContext( - endpoint: string, - httpMethod: HttpMethod - ): RequestContext { + public makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext { return new RequestContext(this.getUrl() + endpoint, httpMethod); } } @@ -61,125 +53,88 @@ export class BaseServerConfiguration { * url template and variable configuration based on the url. * */ -export class ServerConfiguration< - T extends { [key: string]: string }, -> extends BaseServerConfiguration {} +export class ServerConfiguration extends BaseServerConfiguration {} export const server1 = new ServerConfiguration<{ - site: - | "datadoghq.com" - | "us3.datadoghq.com" - | "us5.datadoghq.com" - | "ap1.datadoghq.com" - | "datadoghq.eu" - | "ddog-gov.com"; - subdomain: string; -}>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "api", -}); + "site":"datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "ap1.datadoghq.com" | "datadoghq.eu" | "ddog-gov.com", + "subdomain":string + }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "api" +}) export const server2 = new ServerConfiguration<{ - name: string; - protocol: string; -}>("{protocol}://{name}", { - name: "api.datadoghq.com", - protocol: "https", -}); + "name":string, + "protocol":string + }>("{protocol}://{name}", { + "name": "api.datadoghq.com", + "protocol": "https" +}) export const server3 = new ServerConfiguration<{ - site: string; - subdomain: string; -}>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "api", -}); + "site":string, + "subdomain":string + }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "api" +}) export const servers = [server1, server2, server3]; -export const operationServers: { - [endpoint: string]: BaseServerConfiguration[]; -} = { +export const operationServers: { [endpoint: string]: BaseServerConfiguration[] } = { "v1.IPRangesApi.getIPRanges": [ new ServerConfiguration<{ - site: - | "datadoghq.com" - | "us3.datadoghq.com" - | "us5.datadoghq.com" - | "ap1.datadoghq.com" - | "datadoghq.eu" - | "ddog-gov.com"; - subdomain: string; - }>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "ip-ranges", + "site":"datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "ap1.datadoghq.com" | "datadoghq.eu" | "ddog-gov.com", + "subdomain":string }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "ip-ranges" }), new ServerConfiguration<{ - name: string; - protocol: string; - }>("{protocol}://{name}", { - name: "ip-ranges.datadoghq.com", - protocol: "https", + "name":string, + "protocol":string }>("{protocol}://{name}", { + "name": "ip-ranges.datadoghq.com", + "protocol": "https" }), new ServerConfiguration<{ - subdomain: string; - }>("https://{subdomain}.datadoghq.com", { - subdomain: "ip-ranges", + "subdomain":string }>("https://{subdomain}.datadoghq.com", { + "subdomain": "ip-ranges" }), - ], + ], "v1.LogsApi.submitLog": [ new ServerConfiguration<{ - site: - | "datadoghq.com" - | "us3.datadoghq.com" - | "us5.datadoghq.com" - | "ap1.datadoghq.com" - | "datadoghq.eu" - | "ddog-gov.com"; - subdomain: string; - }>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "http-intake.logs", + "site":"datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "ap1.datadoghq.com" | "datadoghq.eu" | "ddog-gov.com", + "subdomain":string }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "http-intake.logs" }), new ServerConfiguration<{ - name: string; - protocol: string; - }>("{protocol}://{name}", { - name: "http-intake.logs.datadoghq.com", - protocol: "https", + "name":string, + "protocol":string }>("{protocol}://{name}", { + "name": "http-intake.logs.datadoghq.com", + "protocol": "https" }), new ServerConfiguration<{ - site: string; - subdomain: string; - }>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "http-intake.logs", + "site":string, + "subdomain":string }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "http-intake.logs" }), - ], + ], "v2.LogsApi.submitLog": [ new ServerConfiguration<{ - site: - | "datadoghq.com" - | "us3.datadoghq.com" - | "us5.datadoghq.com" - | "ap1.datadoghq.com" - | "datadoghq.eu" - | "ddog-gov.com"; - subdomain: string; - }>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "http-intake.logs", + "site":"datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "ap1.datadoghq.com" | "datadoghq.eu" | "ddog-gov.com", + "subdomain":string }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "http-intake.logs" }), new ServerConfiguration<{ - name: string; - protocol: string; - }>("{protocol}://{name}", { - name: "http-intake.logs.datadoghq.com", - protocol: "https", + "name":string, + "protocol":string }>("{protocol}://{name}", { + "name": "http-intake.logs.datadoghq.com", + "protocol": "https" }), new ServerConfiguration<{ - site: string; - subdomain: string; - }>("https://{subdomain}.{site}", { - site: "datadoghq.com", - subdomain: "http-intake.logs", + "site":string, + "subdomain":string }>("https://{subdomain}.{site}", { + "site": "datadoghq.com", + "subdomain": "http-intake.logs" }), - ], -}; + ], +} diff --git a/packages/datadog-api-client-common/util.ts b/packages/datadog-api-client-common/util.ts index c0e165491584..fa1b7cbb945b 100644 --- a/packages/datadog-api-client-common/util.ts +++ b/packages/datadog-api-client-common/util.ts @@ -40,8 +40,8 @@ export function dateFromRFC3339String(date: string): DDate { } export function dateToRFC3339String(date: Date | DDate): string { - if (date instanceof DDate && date.originalDate) { - return date.originalDate; - } - return date.toISOString().split(".")[0] + "Z"; -} + if (date instanceof DDate && date.originalDate) { + return date.originalDate; + } + return date.toISOString().split('.')[0] + "Z"; +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts b/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts index 1946fa71683c..f1efa5414ed4 100644 --- a/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AWSAccount } from "../models/AWSAccount"; import { AWSAccountCreateResponse } from "../models/AWSAccountCreateResponse"; @@ -31,31 +29,26 @@ import { AWSTagFilterDeleteRequest } from "../models/AWSTagFilterDeleteRequest"; import { AWSTagFilterListResponse } from "../models/AWSTagFilterListResponse"; export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createAWSAccount( - body: AWSAccount, - _options?: Configuration - ): Promise { + + public async createAWSAccount(body: AWSAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAWSAccount"); + throw new RequiredError('body', 'createAWSAccount'); } // Path Params - const localVarPath = "/api/v1/integration/aws"; + const localVarPath = '/api/v1/integration/aws'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.createAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSIntegrationApi.createAWSAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccount", ""), @@ -64,39 +57,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createAWSEventBridgeSource( - body: AWSEventBridgeCreateRequest, - _options?: Configuration - ): Promise { + public async createAWSEventBridgeSource(body: AWSEventBridgeCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAWSEventBridgeSource"); + throw new RequiredError('body', 'createAWSEventBridgeSource'); } // Path Params - const localVarPath = "/api/v1/integration/aws/event_bridge"; + const localVarPath = '/api/v1/integration/aws/event_bridge'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.createAWSEventBridgeSource") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSIntegrationApi.createAWSEventBridgeSource').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSEventBridgeCreateRequest", ""), @@ -105,39 +89,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createAWSTagFilter( - body: AWSTagFilterCreateRequest, - _options?: Configuration - ): Promise { + public async createAWSTagFilter(body: AWSTagFilterCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAWSTagFilter"); + throw new RequiredError('body', 'createAWSTagFilter'); } // Path Params - const localVarPath = "/api/v1/integration/aws/filtering"; + const localVarPath = '/api/v1/integration/aws/filtering'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.createAWSTagFilter") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSIntegrationApi.createAWSTagFilter').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSTagFilterCreateRequest", ""), @@ -146,39 +121,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createNewAWSExternalID( - body: AWSAccount, - _options?: Configuration - ): Promise { + public async createNewAWSExternalID(body: AWSAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createNewAWSExternalID"); + throw new RequiredError('body', 'createNewAWSExternalID'); } // Path Params - const localVarPath = "/api/v1/integration/aws/generate_new_external_id"; + const localVarPath = '/api/v1/integration/aws/generate_new_external_id'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.createNewAWSExternalID") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.AWSIntegrationApi.createNewAWSExternalID').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccount", ""), @@ -187,39 +153,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAWSAccount( - body: AWSAccountDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteAWSAccount(body: AWSAccountDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteAWSAccount"); + throw new RequiredError('body', 'deleteAWSAccount'); } // Path Params - const localVarPath = "/api/v1/integration/aws"; + const localVarPath = '/api/v1/integration/aws'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.deleteAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.AWSIntegrationApi.deleteAWSAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccountDeleteRequest", ""), @@ -228,39 +185,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAWSEventBridgeSource( - body: AWSEventBridgeDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteAWSEventBridgeSource(body: AWSEventBridgeDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteAWSEventBridgeSource"); + throw new RequiredError('body', 'deleteAWSEventBridgeSource'); } // Path Params - const localVarPath = "/api/v1/integration/aws/event_bridge"; + const localVarPath = '/api/v1/integration/aws/event_bridge'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.deleteAWSEventBridgeSource") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.AWSIntegrationApi.deleteAWSEventBridgeSource').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSEventBridgeDeleteRequest", ""), @@ -269,39 +217,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAWSTagFilter( - body: AWSTagFilterDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteAWSTagFilter(body: AWSTagFilterDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteAWSTagFilter"); + throw new RequiredError('body', 'deleteAWSTagFilter'); } // Path Params - const localVarPath = "/api/v1/integration/aws/filtering"; + const localVarPath = '/api/v1/integration/aws/filtering'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.deleteAWSTagFilter") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.AWSIntegrationApi.deleteAWSTagFilter').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSTagFilterDeleteRequest", ""), @@ -310,202 +249,130 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAvailableAWSNamespaces( - _options?: Configuration - ): Promise { + public async listAvailableAWSNamespaces(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/aws/available_namespace_rules"; + const localVarPath = '/api/v1/integration/aws/available_namespace_rules'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.listAvailableAWSNamespaces") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AWSIntegrationApi.listAvailableAWSNamespaces').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSAccounts( - accountId?: string, - roleName?: string, - accessKeyId?: string, - _options?: Configuration - ): Promise { + public async listAWSAccounts(accountId?: string,roleName?: string,accessKeyId?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/aws"; + const localVarPath = '/api/v1/integration/aws'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.listAWSAccounts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AWSIntegrationApi.listAWSAccounts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (accountId !== undefined) { - requestContext.setQueryParam( - "account_id", - ObjectSerializer.serialize(accountId, "string", ""), - "" - ); + requestContext.setQueryParam("account_id", ObjectSerializer.serialize(accountId, "string", ""), ""); } if (roleName !== undefined) { - requestContext.setQueryParam( - "role_name", - ObjectSerializer.serialize(roleName, "string", ""), - "" - ); + requestContext.setQueryParam("role_name", ObjectSerializer.serialize(roleName, "string", ""), ""); } if (accessKeyId !== undefined) { - requestContext.setQueryParam( - "access_key_id", - ObjectSerializer.serialize(accessKeyId, "string", ""), - "" - ); + requestContext.setQueryParam("access_key_id", ObjectSerializer.serialize(accessKeyId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSEventBridgeSources( - _options?: Configuration - ): Promise { + public async listAWSEventBridgeSources(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/aws/event_bridge"; + const localVarPath = '/api/v1/integration/aws/event_bridge'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.listAWSEventBridgeSources") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AWSIntegrationApi.listAWSEventBridgeSources').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSTagFilters( - accountId: string, - _options?: Configuration - ): Promise { + public async listAWSTagFilters(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "listAWSTagFilters"); + throw new RequiredError('accountId', 'listAWSTagFilters'); } // Path Params - const localVarPath = "/api/v1/integration/aws/filtering"; + const localVarPath = '/api/v1/integration/aws/filtering'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.listAWSTagFilters") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AWSIntegrationApi.listAWSTagFilters').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (accountId !== undefined) { - requestContext.setQueryParam( - "account_id", - ObjectSerializer.serialize(accountId, "string", ""), - "" - ); + requestContext.setQueryParam("account_id", ObjectSerializer.serialize(accountId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAWSAccount( - body: AWSAccount, - accountId?: string, - roleName?: string, - accessKeyId?: string, - _options?: Configuration - ): Promise { + public async updateAWSAccount(body: AWSAccount,accountId?: string,roleName?: string,accessKeyId?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAWSAccount"); + throw new RequiredError('body', 'updateAWSAccount'); } // Path Params - const localVarPath = "/api/v1/integration/aws"; + const localVarPath = '/api/v1/integration/aws'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSIntegrationApi.updateAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.AWSIntegrationApi.updateAWSAccount').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (accountId !== undefined) { - requestContext.setQueryParam( - "account_id", - ObjectSerializer.serialize(accountId, "string", ""), - "" - ); + requestContext.setQueryParam("account_id", ObjectSerializer.serialize(accountId, "string", ""), ""); } if (roleName !== undefined) { - requestContext.setQueryParam( - "role_name", - ObjectSerializer.serialize(roleName, "string", ""), - "" - ); + requestContext.setQueryParam("role_name", ObjectSerializer.serialize(roleName, "string", ""), ""); } if (accessKeyId !== undefined) { - requestContext.setQueryParam( - "access_key_id", - ObjectSerializer.serialize(accessKeyId, "string", ""), - "" - ); + requestContext.setQueryParam("access_key_id", ObjectSerializer.serialize(accessKeyId, "string", ""), ""); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccount", ""), @@ -514,16 +381,14 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AWSIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -531,12 +396,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createAWSAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -544,16 +405,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -562,11 +415,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -574,17 +424,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountCreateResponse", - "" + "AWSAccountCreateResponse", "" ) as AWSAccountCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -594,12 +440,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createAWSEventBridgeSource * @throws ApiException if the response code was not in [200, 299] */ - public async createAWSEventBridgeSource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAWSEventBridgeSource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSEventBridgeCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -607,15 +449,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSEventBridgeCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -624,11 +459,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -636,17 +468,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSEventBridgeCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSEventBridgeCreateResponse", - "" + "AWSEventBridgeCreateResponse", "" ) as AWSEventBridgeCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -656,10 +484,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createAWSTagFilter * @throws ApiException if the response code was not in [200, 299] */ - public async createAWSTagFilter(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAWSTagFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -667,15 +493,8 @@ export class AWSIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -684,11 +503,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -696,17 +512,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -716,12 +528,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createNewAWSExternalID * @throws ApiException if the response code was not in [200, 299] */ - public async createNewAWSExternalID( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createNewAWSExternalID(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -729,15 +537,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -746,11 +547,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -758,17 +556,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountCreateResponse", - "" + "AWSAccountCreateResponse", "" ) as AWSAccountCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -778,10 +572,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAWSAccount(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -789,16 +581,8 @@ export class AWSIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -807,11 +591,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -819,17 +600,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -839,12 +616,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteAWSEventBridgeSource * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAWSEventBridgeSource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAWSEventBridgeSource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSEventBridgeDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -852,15 +625,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSEventBridgeDeleteResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -869,11 +635,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -881,17 +644,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSEventBridgeDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSEventBridgeDeleteResponse", - "" + "AWSEventBridgeDeleteResponse", "" ) as AWSEventBridgeDeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -901,10 +660,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteAWSTagFilter * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAWSTagFilter(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAWSTagFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -912,15 +669,8 @@ export class AWSIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -929,11 +679,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -941,17 +688,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -961,12 +704,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAvailableAWSNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listAvailableAWSNamespaces( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAvailableAWSNamespaces(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -974,11 +713,8 @@ export class AWSIntegrationApiResponseProcessor { ) as Array; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -987,11 +723,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -999,17 +732,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1019,12 +748,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSAccounts * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSAccounts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSAccounts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1032,15 +757,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1049,11 +767,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1061,17 +776,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountListResponse", - "" + "AWSAccountListResponse", "" ) as AWSAccountListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1081,12 +792,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSEventBridgeSources * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSEventBridgeSources( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSEventBridgeSources(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSEventBridgeListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1094,15 +801,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSEventBridgeListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1111,11 +811,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1123,17 +820,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSEventBridgeListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSEventBridgeListResponse", - "" + "AWSEventBridgeListResponse", "" ) as AWSEventBridgeListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1143,12 +836,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSTagFilters * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSTagFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSTagFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSTagFilterListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1156,15 +845,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSTagFilterListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1173,11 +855,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1185,17 +864,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSTagFilterListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSTagFilterListResponse", - "" + "AWSTagFilterListResponse", "" ) as AWSTagFilterListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1205,10 +880,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateAWSAccount(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1216,16 +889,8 @@ export class AWSIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1234,11 +899,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1246,17 +908,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1265,7 +923,7 @@ export interface AWSIntegrationApiCreateAWSAccountRequest { * AWS Request Object * @type AWSAccount */ - body: AWSAccount; + body: AWSAccount } export interface AWSIntegrationApiCreateAWSEventBridgeSourceRequest { @@ -1273,7 +931,7 @@ export interface AWSIntegrationApiCreateAWSEventBridgeSourceRequest { * Create an Amazon EventBridge source for an AWS account with a given name and region. * @type AWSEventBridgeCreateRequest */ - body: AWSEventBridgeCreateRequest; + body: AWSEventBridgeCreateRequest } export interface AWSIntegrationApiCreateAWSTagFilterRequest { @@ -1282,7 +940,7 @@ export interface AWSIntegrationApiCreateAWSTagFilterRequest { * Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. * @type AWSTagFilterCreateRequest */ - body: AWSTagFilterCreateRequest; + body: AWSTagFilterCreateRequest } export interface AWSIntegrationApiCreateNewAWSExternalIDRequest { @@ -1292,7 +950,7 @@ export interface AWSIntegrationApiCreateNewAWSExternalIDRequest { * see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). * @type AWSAccount */ - body: AWSAccount; + body: AWSAccount } export interface AWSIntegrationApiDeleteAWSAccountRequest { @@ -1300,7 +958,7 @@ export interface AWSIntegrationApiDeleteAWSAccountRequest { * AWS request object * @type AWSAccountDeleteRequest */ - body: AWSAccountDeleteRequest; + body: AWSAccountDeleteRequest } export interface AWSIntegrationApiDeleteAWSEventBridgeSourceRequest { @@ -1308,7 +966,7 @@ export interface AWSIntegrationApiDeleteAWSEventBridgeSourceRequest { * Delete the Amazon EventBridge source with the given name, region, and associated AWS account. * @type AWSEventBridgeDeleteRequest */ - body: AWSEventBridgeDeleteRequest; + body: AWSEventBridgeDeleteRequest } export interface AWSIntegrationApiDeleteAWSTagFilterRequest { @@ -1316,7 +974,7 @@ export interface AWSIntegrationApiDeleteAWSTagFilterRequest { * Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. * @type AWSTagFilterDeleteRequest */ - body: AWSTagFilterDeleteRequest; + body: AWSTagFilterDeleteRequest } export interface AWSIntegrationApiListAWSAccountsRequest { @@ -1324,17 +982,17 @@ export interface AWSIntegrationApiListAWSAccountsRequest { * Only return AWS accounts that matches this `account_id`. * @type string */ - accountId?: string; + accountId?: string /** * Only return AWS accounts that matches this role_name. * @type string */ - roleName?: string; + roleName?: string /** * Only return AWS accounts that matches this `access_key_id`. * @type string */ - accessKeyId?: string; + accessKeyId?: string } export interface AWSIntegrationApiListAWSTagFiltersRequest { @@ -1342,7 +1000,7 @@ export interface AWSIntegrationApiListAWSTagFiltersRequest { * Only return AWS filters that matches this `account_id`. * @type string */ - accountId: string; + accountId: string } export interface AWSIntegrationApiUpdateAWSAccountRequest { @@ -1350,24 +1008,24 @@ export interface AWSIntegrationApiUpdateAWSAccountRequest { * AWS request object * @type AWSAccount */ - body: AWSAccount; + body: AWSAccount /** * Only return AWS accounts that matches this `account_id`. * @type string */ - accountId?: string; + accountId?: string /** * Only return AWS accounts that match this `role_name`. * Required if `account_id` is specified. * @type string */ - roleName?: string; + roleName?: string /** * Only return AWS accounts that matches this `access_key_id`. * Required if none of the other two options are specified. * @type string */ - accessKeyId?: string; + accessKeyId?: string } export class AWSIntegrationApi { @@ -1375,16 +1033,10 @@ export class AWSIntegrationApi { private responseProcessor: AWSIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AWSIntegrationApiRequestFactory, - responseProcessor?: AWSIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AWSIntegrationApiRequestFactory, responseProcessor?: AWSIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AWSIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AWSIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new AWSIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AWSIntegrationApiResponseProcessor(); } /** @@ -1394,19 +1046,11 @@ export class AWSIntegrationApi { * A unique AWS Account ID for role based authentication. * @param param The request object */ - public createAWSAccount( - param: AWSIntegrationApiCreateAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAWSAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAWSAccount(responseContext); + public createAWSAccount(param: AWSIntegrationApiCreateAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAWSAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAWSAccount(responseContext); }); }); } @@ -1415,19 +1059,11 @@ export class AWSIntegrationApi { * Create an Amazon EventBridge source. * @param param The request object */ - public createAWSEventBridgeSource( - param: AWSIntegrationApiCreateAWSEventBridgeSourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createAWSEventBridgeSource(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAWSEventBridgeSource( - responseContext - ); + public createAWSEventBridgeSource(param: AWSIntegrationApiCreateAWSEventBridgeSourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAWSEventBridgeSource(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAWSEventBridgeSource(responseContext); }); }); } @@ -1436,19 +1072,11 @@ export class AWSIntegrationApi { * Set an AWS tag filter. * @param param The request object */ - public createAWSTagFilter( - param: AWSIntegrationApiCreateAWSTagFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAWSTagFilter( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAWSTagFilter(responseContext); + public createAWSTagFilter(param: AWSIntegrationApiCreateAWSTagFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAWSTagFilter(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAWSTagFilter(responseContext); }); }); } @@ -1457,19 +1085,11 @@ export class AWSIntegrationApi { * Generate a new AWS external ID for a given AWS account ID and role name pair. * @param param The request object */ - public createNewAWSExternalID( - param: AWSIntegrationApiCreateNewAWSExternalIDRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createNewAWSExternalID( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createNewAWSExternalID(responseContext); + public createNewAWSExternalID(param: AWSIntegrationApiCreateNewAWSExternalIDRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createNewAWSExternalID(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createNewAWSExternalID(responseContext); }); }); } @@ -1478,19 +1098,11 @@ export class AWSIntegrationApi { * Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`. * @param param The request object */ - public deleteAWSAccount( - param: AWSIntegrationApiDeleteAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAWSAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAWSAccount(responseContext); + public deleteAWSAccount(param: AWSIntegrationApiDeleteAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAWSAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAWSAccount(responseContext); }); }); } @@ -1499,19 +1111,11 @@ export class AWSIntegrationApi { * Delete an Amazon EventBridge source. * @param param The request object */ - public deleteAWSEventBridgeSource( - param: AWSIntegrationApiDeleteAWSEventBridgeSourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteAWSEventBridgeSource(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAWSEventBridgeSource( - responseContext - ); + public deleteAWSEventBridgeSource(param: AWSIntegrationApiDeleteAWSEventBridgeSourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAWSEventBridgeSource(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAWSEventBridgeSource(responseContext); }); }); } @@ -1520,19 +1124,11 @@ export class AWSIntegrationApi { * Delete a tag filtering entry. * @param param The request object */ - public deleteAWSTagFilter( - param: AWSIntegrationApiDeleteAWSTagFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAWSTagFilter( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAWSTagFilter(responseContext); + public deleteAWSTagFilter(param: AWSIntegrationApiDeleteAWSTagFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAWSTagFilter(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAWSTagFilter(responseContext); }); }); } @@ -1541,18 +1137,11 @@ export class AWSIntegrationApi { * List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments. * @param param The request object */ - public listAvailableAWSNamespaces( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.listAvailableAWSNamespaces(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAvailableAWSNamespaces( - responseContext - ); + public listAvailableAWSNamespaces( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listAvailableAWSNamespaces(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAvailableAWSNamespaces(responseContext); }); }); } @@ -1561,21 +1150,11 @@ export class AWSIntegrationApi { * List all Datadog-AWS integrations available in your Datadog organization. * @param param The request object */ - public listAWSAccounts( - param: AWSIntegrationApiListAWSAccountsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAWSAccounts( - param.accountId, - param.roleName, - param.accessKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSAccounts(responseContext); + public listAWSAccounts(param: AWSIntegrationApiListAWSAccountsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAWSAccounts(param.accountId,param.roleName,param.accessKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSAccounts(responseContext); }); }); } @@ -1584,18 +1163,11 @@ export class AWSIntegrationApi { * Get all Amazon EventBridge sources. * @param param The request object */ - public listAWSEventBridgeSources( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listAWSEventBridgeSources(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSEventBridgeSources( - responseContext - ); + public listAWSEventBridgeSources( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAWSEventBridgeSources(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSEventBridgeSources(responseContext); }); }); } @@ -1604,19 +1176,11 @@ export class AWSIntegrationApi { * Get all AWS tag filters. * @param param The request object */ - public listAWSTagFilters( - param: AWSIntegrationApiListAWSTagFiltersRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAWSTagFilters( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSTagFilters(responseContext); + public listAWSTagFilters(param: AWSIntegrationApiListAWSTagFiltersRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAWSTagFilters(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSTagFilters(responseContext); }); }); } @@ -1625,23 +1189,12 @@ export class AWSIntegrationApi { * Update a Datadog-Amazon Web Services integration. * @param param The request object */ - public updateAWSAccount( - param: AWSIntegrationApiUpdateAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAWSAccount( - param.body, - param.accountId, - param.roleName, - param.accessKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAWSAccount(responseContext); + public updateAWSAccount(param: AWSIntegrationApiUpdateAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAWSAccount(param.body,param.accountId,param.roleName,param.accessKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAWSAccount(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.ts b/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.ts index e67642ff6edd..812f51cc013e 100644 --- a/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AWSAccountAndLambdaRequest } from "../models/AWSAccountAndLambdaRequest"; import { AWSLogsAsyncResponse } from "../models/AWSLogsAsyncResponse"; @@ -24,31 +22,26 @@ import { AWSLogsListServicesResponse } from "../models/AWSLogsListServicesRespon import { AWSLogsServicesRequest } from "../models/AWSLogsServicesRequest"; export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async checkAWSLogsLambdaAsync( - body: AWSAccountAndLambdaRequest, - _options?: Configuration - ): Promise { + + public async checkAWSLogsLambdaAsync(body: AWSAccountAndLambdaRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "checkAWSLogsLambdaAsync"); + throw new RequiredError('body', 'checkAWSLogsLambdaAsync'); } // Path Params - const localVarPath = "/api/v1/integration/aws/logs/check_async"; + const localVarPath = '/api/v1/integration/aws/logs/check_async'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.checkAWSLogsLambdaAsync") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.checkAWSLogsLambdaAsync').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccountAndLambdaRequest", ""), @@ -57,39 +50,30 @@ export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async checkAWSLogsServicesAsync( - body: AWSLogsServicesRequest, - _options?: Configuration - ): Promise { + public async checkAWSLogsServicesAsync(body: AWSLogsServicesRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "checkAWSLogsServicesAsync"); + throw new RequiredError('body', 'checkAWSLogsServicesAsync'); } // Path Params - const localVarPath = "/api/v1/integration/aws/logs/services_async"; + const localVarPath = '/api/v1/integration/aws/logs/services_async'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.checkAWSLogsServicesAsync") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.checkAWSLogsServicesAsync').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSLogsServicesRequest", ""), @@ -98,39 +82,30 @@ export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createAWSLambdaARN( - body: AWSAccountAndLambdaRequest, - _options?: Configuration - ): Promise { + public async createAWSLambdaARN(body: AWSAccountAndLambdaRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAWSLambdaARN"); + throw new RequiredError('body', 'createAWSLambdaARN'); } // Path Params - const localVarPath = "/api/v1/integration/aws/logs"; + const localVarPath = '/api/v1/integration/aws/logs'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.createAWSLambdaARN") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.createAWSLambdaARN').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccountAndLambdaRequest", ""), @@ -139,39 +114,30 @@ export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAWSLambdaARN( - body: AWSAccountAndLambdaRequest, - _options?: Configuration - ): Promise { + public async deleteAWSLambdaARN(body: AWSAccountAndLambdaRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteAWSLambdaARN"); + throw new RequiredError('body', 'deleteAWSLambdaARN'); } // Path Params - const localVarPath = "/api/v1/integration/aws/logs"; + const localVarPath = '/api/v1/integration/aws/logs'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.deleteAWSLambdaARN") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.deleteAWSLambdaARN').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccountAndLambdaRequest", ""), @@ -180,39 +146,30 @@ export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async enableAWSLogServices( - body: AWSLogsServicesRequest, - _options?: Configuration - ): Promise { + public async enableAWSLogServices(body: AWSLogsServicesRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "enableAWSLogServices"); + throw new RequiredError('body', 'enableAWSLogServices'); } // Path Params - const localVarPath = "/api/v1/integration/aws/logs/services"; + const localVarPath = '/api/v1/integration/aws/logs/services'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.enableAWSLogServices") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.enableAWSLogServices').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSLogsServicesRequest", ""), @@ -221,64 +178,48 @@ export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSLogsIntegrations( - _options?: Configuration - ): Promise { + public async listAWSLogsIntegrations(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/aws/logs"; + const localVarPath = '/api/v1/integration/aws/logs'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.listAWSLogsIntegrations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.listAWSLogsIntegrations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSLogsServices( - _options?: Configuration - ): Promise { + public async listAWSLogsServices(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/aws/logs/services"; + const localVarPath = '/api/v1/integration/aws/logs/services'; // Make Request Context - const requestContext = _config - .getServer("v1.AWSLogsIntegrationApi.listAWSLogsServices") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AWSLogsIntegrationApi.listAWSLogsServices').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AWSLogsIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -286,12 +227,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to checkAWSLogsLambdaAsync * @throws ApiException if the response code was not in [200, 299] */ - public async checkAWSLogsLambdaAsync( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async checkAWSLogsLambdaAsync(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSLogsAsyncResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -299,15 +236,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as AWSLogsAsyncResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -316,11 +246,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -328,17 +255,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSLogsAsyncResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSLogsAsyncResponse", - "" + "AWSLogsAsyncResponse", "" ) as AWSLogsAsyncResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -348,12 +271,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to checkAWSLogsServicesAsync * @throws ApiException if the response code was not in [200, 299] */ - public async checkAWSLogsServicesAsync( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async checkAWSLogsServicesAsync(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSLogsAsyncResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -361,15 +280,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as AWSLogsAsyncResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -378,11 +290,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -390,17 +299,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSLogsAsyncResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSLogsAsyncResponse", - "" + "AWSLogsAsyncResponse", "" ) as AWSLogsAsyncResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -410,10 +315,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createAWSLambdaARN * @throws ApiException if the response code was not in [200, 299] */ - public async createAWSLambdaARN(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAWSLambdaARN(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -421,15 +324,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -438,11 +334,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -450,17 +343,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -470,10 +359,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteAWSLambdaARN * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAWSLambdaARN(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAWSLambdaARN(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -481,15 +368,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -498,11 +378,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -510,17 +387,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -530,10 +403,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to enableAWSLogServices * @throws ApiException if the response code was not in [200, 299] */ - public async enableAWSLogServices(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async enableAWSLogServices(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -541,15 +412,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -558,11 +422,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -570,17 +431,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -590,12 +447,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSLogsIntegrations * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSLogsIntegrations( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSLogsIntegrations(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -603,15 +456,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -620,11 +466,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -632,17 +475,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -652,25 +491,17 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSLogsServices * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSLogsServices( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSLogsServices(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: Array = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "Array" - ) as Array; + const body: Array = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Array" + ) as Array; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -679,30 +510,22 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: Array = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" - ) as Array; + const body: Array = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Array", "" + ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -711,7 +534,7 @@ export interface AWSLogsIntegrationApiCheckAWSLogsLambdaAsyncRequest { * Check AWS Log Lambda Async request body. * @type AWSAccountAndLambdaRequest */ - body: AWSAccountAndLambdaRequest; + body: AWSAccountAndLambdaRequest } export interface AWSLogsIntegrationApiCheckAWSLogsServicesAsyncRequest { @@ -719,7 +542,7 @@ export interface AWSLogsIntegrationApiCheckAWSLogsServicesAsyncRequest { * Check AWS Logs Async Services request body. * @type AWSLogsServicesRequest */ - body: AWSLogsServicesRequest; + body: AWSLogsServicesRequest } export interface AWSLogsIntegrationApiCreateAWSLambdaARNRequest { @@ -727,7 +550,7 @@ export interface AWSLogsIntegrationApiCreateAWSLambdaARNRequest { * AWS Log Lambda Async request body. * @type AWSAccountAndLambdaRequest */ - body: AWSAccountAndLambdaRequest; + body: AWSAccountAndLambdaRequest } export interface AWSLogsIntegrationApiDeleteAWSLambdaARNRequest { @@ -735,7 +558,7 @@ export interface AWSLogsIntegrationApiDeleteAWSLambdaARNRequest { * Delete AWS Lambda ARN request body. * @type AWSAccountAndLambdaRequest */ - body: AWSAccountAndLambdaRequest; + body: AWSAccountAndLambdaRequest } export interface AWSLogsIntegrationApiEnableAWSLogServicesRequest { @@ -743,7 +566,7 @@ export interface AWSLogsIntegrationApiEnableAWSLogServicesRequest { * Enable AWS Log Services request body. * @type AWSLogsServicesRequest */ - body: AWSLogsServicesRequest; + body: AWSLogsServicesRequest } export class AWSLogsIntegrationApi { @@ -751,44 +574,28 @@ export class AWSLogsIntegrationApi { private responseProcessor: AWSLogsIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AWSLogsIntegrationApiRequestFactory, - responseProcessor?: AWSLogsIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AWSLogsIntegrationApiRequestFactory, responseProcessor?: AWSLogsIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AWSLogsIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AWSLogsIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new AWSLogsIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AWSLogsIntegrationApiResponseProcessor(); } /** * Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input * is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this * endpoint can be polled intermittently instead of blocking. - * + * * - Returns a status of 'created' when it's checking if the Lambda exists in the account. * - Returns a status of 'waiting' while checking. * - Returns a status of 'checked and ok' if the Lambda exists. * - Returns a status of 'error' if the Lambda does not exist. * @param param The request object */ - public checkAWSLogsLambdaAsync( - param: AWSLogsIntegrationApiCheckAWSLogsLambdaAsyncRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.checkAWSLogsLambdaAsync( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.checkAWSLogsLambdaAsync( - responseContext - ); + public checkAWSLogsLambdaAsync(param: AWSLogsIntegrationApiCheckAWSLogsLambdaAsyncRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.checkAWSLogsLambdaAsync(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.checkAWSLogsLambdaAsync(responseContext); }); }); } @@ -798,7 +605,7 @@ export class AWSLogsIntegrationApi { * given services and AWS account. Input is the same as for `EnableAWSLogServices`. * Done async, so can be repeatedly polled in a non-blocking fashion until * the async request completes. - * + * * - Returns a status of `created` when it's checking if the permissions exists * in the AWS account. * - Returns a status of `waiting` while checking. @@ -806,21 +613,11 @@ export class AWSLogsIntegrationApi { * - Returns a status of `error` if the Lambda does not exist. * @param param The request object */ - public checkAWSLogsServicesAsync( - param: AWSLogsIntegrationApiCheckAWSLogsServicesAsyncRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.checkAWSLogsServicesAsync( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.checkAWSLogsServicesAsync( - responseContext - ); + public checkAWSLogsServicesAsync(param: AWSLogsIntegrationApiCheckAWSLogsServicesAsyncRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.checkAWSLogsServicesAsync(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.checkAWSLogsServicesAsync(responseContext); }); }); } @@ -829,19 +626,11 @@ export class AWSLogsIntegrationApi { * Attach the Lambda ARN of the Lambda created for the Datadog-AWS log collection to your AWS account ID to enable log collection. * @param param The request object */ - public createAWSLambdaARN( - param: AWSLogsIntegrationApiCreateAWSLambdaARNRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAWSLambdaARN( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAWSLambdaARN(responseContext); + public createAWSLambdaARN(param: AWSLogsIntegrationApiCreateAWSLambdaARNRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAWSLambdaARN(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAWSLambdaARN(responseContext); }); }); } @@ -850,19 +639,11 @@ export class AWSLogsIntegrationApi { * Delete a Datadog-AWS logs configuration by removing the specific Lambda ARN associated with a given AWS account. * @param param The request object */ - public deleteAWSLambdaARN( - param: AWSLogsIntegrationApiDeleteAWSLambdaARNRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAWSLambdaARN( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAWSLambdaARN(responseContext); + public deleteAWSLambdaARN(param: AWSLogsIntegrationApiDeleteAWSLambdaARNRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAWSLambdaARN(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAWSLambdaARN(responseContext); }); }); } @@ -871,19 +652,11 @@ export class AWSLogsIntegrationApi { * Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration. * @param param The request object */ - public enableAWSLogServices( - param: AWSLogsIntegrationApiEnableAWSLogServicesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.enableAWSLogServices( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.enableAWSLogServices(responseContext); + public enableAWSLogServices(param: AWSLogsIntegrationApiEnableAWSLogServicesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.enableAWSLogServices(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.enableAWSLogServices(responseContext); }); }); } @@ -892,18 +665,11 @@ export class AWSLogsIntegrationApi { * List all Datadog-AWS Logs integrations configured in your Datadog account. * @param param The request object */ - public listAWSLogsIntegrations( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.listAWSLogsIntegrations(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSLogsIntegrations( - responseContext - ); + public listAWSLogsIntegrations( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listAWSLogsIntegrations(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSLogsIntegrations(responseContext); }); }); } @@ -912,17 +678,12 @@ export class AWSLogsIntegrationApi { * Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint. * @param param The request object */ - public listAWSLogsServices( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.listAWSLogsServices(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSLogsServices(responseContext); + public listAWSLogsServices( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listAWSLogsServices(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSLogsServices(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/AuthenticationApi.ts b/packages/datadog-api-client-v1/apis/AuthenticationApi.ts index 6155b12e490b..215c68be7d32 100644 --- a/packages/datadog-api-client-v1/apis/AuthenticationApi.ts +++ b/packages/datadog-api-client-v1/apis/AuthenticationApi.ts @@ -1,32 +1,32 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AuthenticationValidationResponse } from "../models/AuthenticationValidationResponse"; export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { + public async validate(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/validate"; + const localVarPath = '/api/v1/validate'; // Make Request Context - const requestContext = _config - .getServer("v1.AuthenticationApi.validate") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AuthenticationApi.validate').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); @@ -38,6 +38,7 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { } export class AuthenticationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -45,25 +46,17 @@ export class AuthenticationApiResponseProcessor { * @params response Response returned by the server for a request to validate * @throws ApiException if the response code was not in [200, 299] */ - public async validate( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async validate(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: AuthenticationValidationResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AuthenticationValidationResponse" - ) as AuthenticationValidationResponse; + const body: AuthenticationValidationResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AuthenticationValidationResponse" + ) as AuthenticationValidationResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -72,30 +65,22 @@ export class AuthenticationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AuthenticationValidationResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AuthenticationValidationResponse", - "" - ) as AuthenticationValidationResponse; + const body: AuthenticationValidationResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AuthenticationValidationResponse", "" + ) as AuthenticationValidationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -104,32 +89,22 @@ export class AuthenticationApi { private responseProcessor: AuthenticationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AuthenticationApiRequestFactory, - responseProcessor?: AuthenticationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AuthenticationApiRequestFactory, responseProcessor?: AuthenticationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AuthenticationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AuthenticationApiResponseProcessor(); + this.requestFactory = requestFactory || new AuthenticationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AuthenticationApiResponseProcessor(); } /** * Check if the API key (not the APP key) is valid. If invalid, a 403 is returned. * @param param The request object */ - public validate( - options?: Configuration - ): Promise { + public validate( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.validate(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.validate(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.validate(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/AzureIntegrationApi.ts b/packages/datadog-api-client-v1/apis/AzureIntegrationApi.ts index fa4615024bf0..3a02434a6b02 100644 --- a/packages/datadog-api-client-v1/apis/AzureIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/AzureIntegrationApi.ts @@ -1,50 +1,44 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AzureAccount } from "../models/AzureAccount"; +import { AzureAccountListResponse } from "../models/AzureAccountListResponse"; export class AzureIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createAzureIntegration( - body: AzureAccount, - _options?: Configuration - ): Promise { + + public async createAzureIntegration(body: AzureAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAzureIntegration"); + throw new RequiredError('body', 'createAzureIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/azure"; + const localVarPath = '/api/v1/integration/azure'; // Make Request Context - const requestContext = _config - .getServer("v1.AzureIntegrationApi.createAzureIntegration") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AzureIntegrationApi.createAzureIntegration').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AzureAccount", ""), @@ -53,39 +47,30 @@ export class AzureIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAzureIntegration( - body: AzureAccount, - _options?: Configuration - ): Promise { + public async deleteAzureIntegration(body: AzureAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteAzureIntegration"); + throw new RequiredError('body', 'deleteAzureIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/azure"; + const localVarPath = '/api/v1/integration/azure'; // Make Request Context - const requestContext = _config - .getServer("v1.AzureIntegrationApi.deleteAzureIntegration") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.AzureIntegrationApi.deleteAzureIntegration').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AzureAccount", ""), @@ -94,63 +79,47 @@ export class AzureIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAzureIntegration( - _options?: Configuration - ): Promise { + public async listAzureIntegration(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/azure"; + const localVarPath = '/api/v1/integration/azure'; // Make Request Context - const requestContext = _config - .getServer("v1.AzureIntegrationApi.listAzureIntegration") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.AzureIntegrationApi.listAzureIntegration').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAzureHostFilters( - body: AzureAccount, - _options?: Configuration - ): Promise { + public async updateAzureHostFilters(body: AzureAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAzureHostFilters"); + throw new RequiredError('body', 'updateAzureHostFilters'); } // Path Params - const localVarPath = "/api/v1/integration/azure/host_filters"; + const localVarPath = '/api/v1/integration/azure/host_filters'; // Make Request Context - const requestContext = _config - .getServer("v1.AzureIntegrationApi.updateAzureHostFilters") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.AzureIntegrationApi.updateAzureHostFilters').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AzureAccount", ""), @@ -159,39 +128,30 @@ export class AzureIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAzureIntegration( - body: AzureAccount, - _options?: Configuration - ): Promise { + public async updateAzureIntegration(body: AzureAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAzureIntegration"); + throw new RequiredError('body', 'updateAzureIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/azure"; + const localVarPath = '/api/v1/integration/azure'; // Make Request Context - const requestContext = _config - .getServer("v1.AzureIntegrationApi.updateAzureIntegration") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.AzureIntegrationApi.updateAzureIntegration').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AzureAccount", ""), @@ -200,16 +160,14 @@ export class AzureIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AzureIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -217,10 +175,8 @@ export class AzureIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createAzureIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async createAzureIntegration(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAzureIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -228,15 +184,8 @@ export class AzureIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -245,11 +194,8 @@ export class AzureIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -257,17 +203,13 @@ export class AzureIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -277,10 +219,8 @@ export class AzureIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteAzureIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAzureIntegration(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAzureIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -288,15 +228,8 @@ export class AzureIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -305,11 +238,8 @@ export class AzureIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -317,17 +247,13 @@ export class AzureIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -337,12 +263,8 @@ export class AzureIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAzureIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async listAzureIntegration( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAzureIntegration(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -350,15 +272,8 @@ export class AzureIntegrationApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -367,11 +282,8 @@ export class AzureIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -379,17 +291,13 @@ export class AzureIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -399,10 +307,8 @@ export class AzureIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateAzureHostFilters * @throws ApiException if the response code was not in [200, 299] */ - public async updateAzureHostFilters(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAzureHostFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -410,15 +316,8 @@ export class AzureIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -427,11 +326,8 @@ export class AzureIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -439,17 +335,13 @@ export class AzureIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -459,10 +351,8 @@ export class AzureIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateAzureIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async updateAzureIntegration(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAzureIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -470,15 +360,8 @@ export class AzureIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -487,11 +370,8 @@ export class AzureIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -499,17 +379,13 @@ export class AzureIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -518,7 +394,7 @@ export interface AzureIntegrationApiCreateAzureIntegrationRequest { * Create a Datadog-Azure integration for your Datadog account request body. * @type AzureAccount */ - body: AzureAccount; + body: AzureAccount } export interface AzureIntegrationApiDeleteAzureIntegrationRequest { @@ -526,7 +402,7 @@ export interface AzureIntegrationApiDeleteAzureIntegrationRequest { * Delete a given Datadog-Azure integration request body. * @type AzureAccount */ - body: AzureAccount; + body: AzureAccount } export interface AzureIntegrationApiUpdateAzureHostFiltersRequest { @@ -534,7 +410,7 @@ export interface AzureIntegrationApiUpdateAzureHostFiltersRequest { * Update a Datadog-Azure integration's host filters request body. * @type AzureAccount */ - body: AzureAccount; + body: AzureAccount } export interface AzureIntegrationApiUpdateAzureIntegrationRequest { @@ -542,7 +418,7 @@ export interface AzureIntegrationApiUpdateAzureIntegrationRequest { * Update a Datadog-Azure integration request body. * @type AzureAccount */ - body: AzureAccount; + body: AzureAccount } export class AzureIntegrationApi { @@ -550,41 +426,27 @@ export class AzureIntegrationApi { private responseProcessor: AzureIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AzureIntegrationApiRequestFactory, - responseProcessor?: AzureIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AzureIntegrationApiRequestFactory, responseProcessor?: AzureIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AzureIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AzureIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new AzureIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AzureIntegrationApiResponseProcessor(); } /** * Create a Datadog-Azure integration. - * + * * Using the `POST` method updates your integration configuration by adding your new * configuration to the existing one in your Datadog organization. - * + * * Using the `PUT` method updates your integration configuration by replacing your * current configuration with the new one sent to your Datadog organization. * @param param The request object */ - public createAzureIntegration( - param: AzureIntegrationApiCreateAzureIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAzureIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAzureIntegration(responseContext); + public createAzureIntegration(param: AzureIntegrationApiCreateAzureIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAzureIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAzureIntegration(responseContext); }); }); } @@ -593,19 +455,11 @@ export class AzureIntegrationApi { * Delete a given Datadog-Azure integration from your Datadog account. * @param param The request object */ - public deleteAzureIntegration( - param: AzureIntegrationApiDeleteAzureIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAzureIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAzureIntegration(responseContext); + public deleteAzureIntegration(param: AzureIntegrationApiDeleteAzureIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAzureIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAzureIntegration(responseContext); }); }); } @@ -614,16 +468,11 @@ export class AzureIntegrationApi { * List all Datadog-Azure integrations configured in your Datadog account. * @param param The request object */ - public listAzureIntegration( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.listAzureIntegration(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAzureIntegration(responseContext); + public listAzureIntegration( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listAzureIntegration(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAzureIntegration(responseContext); }); }); } @@ -632,19 +481,11 @@ export class AzureIntegrationApi { * Update the defined list of host filters for a given Datadog-Azure integration. * @param param The request object */ - public updateAzureHostFilters( - param: AzureIntegrationApiUpdateAzureHostFiltersRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAzureHostFilters( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAzureHostFilters(responseContext); + public updateAzureHostFilters(param: AzureIntegrationApiUpdateAzureHostFiltersRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAzureHostFilters(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAzureHostFilters(responseContext); }); }); } @@ -655,20 +496,12 @@ export class AzureIntegrationApi { * use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. * @param param The request object */ - public updateAzureIntegration( - param: AzureIntegrationApiUpdateAzureIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAzureIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAzureIntegration(responseContext); + public updateAzureIntegration(param: AzureIntegrationApiUpdateAzureIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAzureIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAzureIntegration(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/DashboardListsApi.ts b/packages/datadog-api-client-v1/apis/DashboardListsApi.ts index 6405cb01d721..199146b068b8 100644 --- a/packages/datadog-api-client-v1/apis/DashboardListsApi.ts +++ b/packages/datadog-api-client-v1/apis/DashboardListsApi.ts @@ -1,52 +1,45 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { DashboardList } from "../models/DashboardList"; import { DashboardListDeleteResponse } from "../models/DashboardListDeleteResponse"; import { DashboardListListResponse } from "../models/DashboardListListResponse"; export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { - public async createDashboardList( - body: DashboardList, - _options?: Configuration - ): Promise { + + public async createDashboardList(body: DashboardList,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDashboardList"); + throw new RequiredError('body', 'createDashboardList'); } // Path Params - const localVarPath = "/api/v1/dashboard/lists/manual"; + const localVarPath = '/api/v1/dashboard/lists/manual'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardListsApi.createDashboardList") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.DashboardListsApi.createDashboardList').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardList", ""), @@ -55,142 +48,99 @@ export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteDashboardList( - listId: number, - _options?: Configuration - ): Promise { + public async deleteDashboardList(listId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'listId' is not null or undefined if (listId === null || listId === undefined) { - throw new RequiredError("listId", "deleteDashboardList"); + throw new RequiredError('listId', 'deleteDashboardList'); } // Path Params - const localVarPath = "/api/v1/dashboard/lists/manual/{list_id}".replace( - "{list_id}", - encodeURIComponent(String(listId)) - ); + const localVarPath = '/api/v1/dashboard/lists/manual/{list_id}' + .replace('{list_id}', encodeURIComponent(String(listId))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardListsApi.deleteDashboardList") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.DashboardListsApi.deleteDashboardList').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getDashboardList( - listId: number, - _options?: Configuration - ): Promise { + public async getDashboardList(listId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'listId' is not null or undefined if (listId === null || listId === undefined) { - throw new RequiredError("listId", "getDashboardList"); + throw new RequiredError('listId', 'getDashboardList'); } // Path Params - const localVarPath = "/api/v1/dashboard/lists/manual/{list_id}".replace( - "{list_id}", - encodeURIComponent(String(listId)) - ); + const localVarPath = '/api/v1/dashboard/lists/manual/{list_id}' + .replace('{list_id}', encodeURIComponent(String(listId))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardListsApi.getDashboardList") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DashboardListsApi.getDashboardList').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listDashboardLists( - _options?: Configuration - ): Promise { + public async listDashboardLists(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/dashboard/lists/manual"; + const localVarPath = '/api/v1/dashboard/lists/manual'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardListsApi.listDashboardLists") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DashboardListsApi.listDashboardLists').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateDashboardList( - listId: number, - body: DashboardList, - _options?: Configuration - ): Promise { + public async updateDashboardList(listId: number,body: DashboardList,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'listId' is not null or undefined if (listId === null || listId === undefined) { - throw new RequiredError("listId", "updateDashboardList"); + throw new RequiredError('listId', 'updateDashboardList'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateDashboardList"); + throw new RequiredError('body', 'updateDashboardList'); } // Path Params - const localVarPath = "/api/v1/dashboard/lists/manual/{list_id}".replace( - "{list_id}", - encodeURIComponent(String(listId)) - ); + const localVarPath = '/api/v1/dashboard/lists/manual/{list_id}' + .replace('{list_id}', encodeURIComponent(String(listId))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardListsApi.updateDashboardList") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.DashboardListsApi.updateDashboardList').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardList", ""), @@ -199,17 +149,14 @@ export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DashboardListsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -217,12 +164,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to createDashboardList * @throws ApiException if the response code was not in [200, 299] */ - public async createDashboardList( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createDashboardList(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -230,15 +173,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardList; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -247,11 +183,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -259,17 +192,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardList", - "" + "DashboardList", "" ) as DashboardList; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -279,12 +208,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to deleteDashboardList * @throws ApiException if the response code was not in [200, 299] */ - public async deleteDashboardList( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteDashboardList(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardListDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -292,15 +217,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardListDeleteResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -309,11 +227,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -321,17 +236,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardListDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListDeleteResponse", - "" + "DashboardListDeleteResponse", "" ) as DashboardListDeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -341,12 +252,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to getDashboardList * @throws ApiException if the response code was not in [200, 299] */ - public async getDashboardList( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDashboardList(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -354,15 +261,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardList; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -371,11 +271,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -383,17 +280,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardList", - "" + "DashboardList", "" ) as DashboardList; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -403,12 +296,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to listDashboardLists * @throws ApiException if the response code was not in [200, 299] */ - public async listDashboardLists( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listDashboardLists(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardListListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -416,11 +305,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardListListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -429,11 +315,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -441,17 +324,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardListListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListListResponse", - "" + "DashboardListListResponse", "" ) as DashboardListListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -461,12 +340,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to updateDashboardList * @throws ApiException if the response code was not in [200, 299] */ - public async updateDashboardList( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateDashboardList(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -474,16 +349,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardList; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -492,11 +359,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -504,17 +368,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardList", - "" + "DashboardList", "" ) as DashboardList; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -523,7 +383,7 @@ export interface DashboardListsApiCreateDashboardListRequest { * Create a dashboard list request body. * @type DashboardList */ - body: DashboardList; + body: DashboardList } export interface DashboardListsApiDeleteDashboardListRequest { @@ -531,7 +391,7 @@ export interface DashboardListsApiDeleteDashboardListRequest { * ID of the dashboard list to delete. * @type number */ - listId: number; + listId: number } export interface DashboardListsApiGetDashboardListRequest { @@ -539,7 +399,7 @@ export interface DashboardListsApiGetDashboardListRequest { * ID of the dashboard list to fetch. * @type number */ - listId: number; + listId: number } export interface DashboardListsApiUpdateDashboardListRequest { @@ -547,12 +407,12 @@ export interface DashboardListsApiUpdateDashboardListRequest { * ID of the dashboard list to update. * @type number */ - listId: number; + listId: number /** * Update a dashboard list request body. * @type DashboardList */ - body: DashboardList; + body: DashboardList } export class DashboardListsApi { @@ -560,35 +420,21 @@ export class DashboardListsApi { private responseProcessor: DashboardListsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DashboardListsApiRequestFactory, - responseProcessor?: DashboardListsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DashboardListsApiRequestFactory, responseProcessor?: DashboardListsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DashboardListsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DashboardListsApiResponseProcessor(); + this.requestFactory = requestFactory || new DashboardListsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DashboardListsApiResponseProcessor(); } /** * Create an empty dashboard list. * @param param The request object */ - public createDashboardList( - param: DashboardListsApiCreateDashboardListRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDashboardList( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDashboardList(responseContext); + public createDashboardList(param: DashboardListsApiCreateDashboardListRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDashboardList(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDashboardList(responseContext); }); }); } @@ -597,19 +443,11 @@ export class DashboardListsApi { * Delete a dashboard list. * @param param The request object */ - public deleteDashboardList( - param: DashboardListsApiDeleteDashboardListRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteDashboardList( - param.listId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteDashboardList(responseContext); + public deleteDashboardList(param: DashboardListsApiDeleteDashboardListRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteDashboardList(param.listId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteDashboardList(responseContext); }); }); } @@ -618,19 +456,11 @@ export class DashboardListsApi { * Fetch an existing dashboard list's definition. * @param param The request object */ - public getDashboardList( - param: DashboardListsApiGetDashboardListRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDashboardList( - param.listId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDashboardList(responseContext); + public getDashboardList(param: DashboardListsApiGetDashboardListRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDashboardList(param.listId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDashboardList(responseContext); }); }); } @@ -639,16 +469,11 @@ export class DashboardListsApi { * Fetch all of your existing dashboard list definitions. * @param param The request object */ - public listDashboardLists( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listDashboardLists(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listDashboardLists(responseContext); + public listDashboardLists( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listDashboardLists(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listDashboardLists(responseContext); }); }); } @@ -657,21 +482,12 @@ export class DashboardListsApi { * Update the name of a dashboard list. * @param param The request object */ - public updateDashboardList( - param: DashboardListsApiUpdateDashboardListRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateDashboardList( - param.listId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateDashboardList(responseContext); + public updateDashboardList(param: DashboardListsApiUpdateDashboardListRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateDashboardList(param.listId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateDashboardList(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/DashboardsApi.ts b/packages/datadog-api-client-v1/apis/DashboardsApi.ts index 4cc63f1b2e5c..10c1e0544d5e 100644 --- a/packages/datadog-api-client-v1/apis/DashboardsApi.ts +++ b/packages/datadog-api-client-v1/apis/DashboardsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { Dashboard } from "../models/Dashboard"; import { DashboardBulkDeleteRequest } from "../models/DashboardBulkDeleteRequest"; @@ -29,31 +27,26 @@ import { SharedDashboardInvites } from "../models/SharedDashboardInvites"; import { SharedDashboardUpdateRequest } from "../models/SharedDashboardUpdateRequest"; export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { - public async createDashboard( - body: Dashboard, - _options?: Configuration - ): Promise { + + public async createDashboard(body: Dashboard,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDashboard"); + throw new RequiredError('body', 'createDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard"; + const localVarPath = '/api/v1/dashboard'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.createDashboard") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.DashboardsApi.createDashboard').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Dashboard", ""), @@ -62,40 +55,30 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createPublicDashboard( - body: SharedDashboard, - _options?: Configuration - ): Promise { + public async createPublicDashboard(body: SharedDashboard,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createPublicDashboard"); + throw new RequiredError('body', 'createPublicDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/public"; + const localVarPath = '/api/v1/dashboard/public'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.createPublicDashboard") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.DashboardsApi.createPublicDashboard').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SharedDashboard", ""), @@ -104,74 +87,53 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteDashboard( - dashboardId: string, - _options?: Configuration - ): Promise { + public async deleteDashboard(dashboardId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardId' is not null or undefined if (dashboardId === null || dashboardId === undefined) { - throw new RequiredError("dashboardId", "deleteDashboard"); + throw new RequiredError('dashboardId', 'deleteDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/{dashboard_id}".replace( - "{dashboard_id}", - encodeURIComponent(String(dashboardId)) - ); + const localVarPath = '/api/v1/dashboard/{dashboard_id}' + .replace('{dashboard_id}', encodeURIComponent(String(dashboardId))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.deleteDashboard") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.DashboardsApi.deleteDashboard').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteDashboards( - body: DashboardBulkDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteDashboards(body: DashboardBulkDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteDashboards"); + throw new RequiredError('body', 'deleteDashboards'); } // Path Params - const localVarPath = "/api/v1/dashboard"; + const localVarPath = '/api/v1/dashboard'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.deleteDashboards") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.DashboardsApi.deleteDashboards').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardBulkDeleteRequest", ""), @@ -180,83 +142,59 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deletePublicDashboard( - token: string, - _options?: Configuration - ): Promise { + public async deletePublicDashboard(token: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'token' is not null or undefined if (token === null || token === undefined) { - throw new RequiredError("token", "deletePublicDashboard"); + throw new RequiredError('token', 'deletePublicDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/public/{token}".replace( - "{token}", - encodeURIComponent(String(token)) - ); + const localVarPath = '/api/v1/dashboard/public/{token}' + .replace('{token}', encodeURIComponent(String(token))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.deletePublicDashboard") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.DashboardsApi.deletePublicDashboard').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deletePublicDashboardInvitation( - token: string, - body: SharedDashboardInvites, - _options?: Configuration - ): Promise { + public async deletePublicDashboardInvitation(token: string,body: SharedDashboardInvites,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'token' is not null or undefined if (token === null || token === undefined) { - throw new RequiredError("token", "deletePublicDashboardInvitation"); + throw new RequiredError('token', 'deletePublicDashboardInvitation'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deletePublicDashboardInvitation"); + throw new RequiredError('body', 'deletePublicDashboardInvitation'); } // Path Params - const localVarPath = "/api/v1/dashboard/public/{token}/invitation".replace( - "{token}", - encodeURIComponent(String(token)) - ); + const localVarPath = '/api/v1/dashboard/public/{token}/invitation' + .replace('{token}', encodeURIComponent(String(token))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.deletePublicDashboardInvitation") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.DashboardsApi.deletePublicDashboardInvitation').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SharedDashboardInvites", ""), @@ -265,219 +203,138 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getDashboard( - dashboardId: string, - _options?: Configuration - ): Promise { + public async getDashboard(dashboardId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardId' is not null or undefined if (dashboardId === null || dashboardId === undefined) { - throw new RequiredError("dashboardId", "getDashboard"); + throw new RequiredError('dashboardId', 'getDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/{dashboard_id}".replace( - "{dashboard_id}", - encodeURIComponent(String(dashboardId)) - ); + const localVarPath = '/api/v1/dashboard/{dashboard_id}' + .replace('{dashboard_id}', encodeURIComponent(String(dashboardId))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.getDashboard") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DashboardsApi.getDashboard').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getPublicDashboard( - token: string, - _options?: Configuration - ): Promise { + public async getPublicDashboard(token: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'token' is not null or undefined if (token === null || token === undefined) { - throw new RequiredError("token", "getPublicDashboard"); + throw new RequiredError('token', 'getPublicDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/public/{token}".replace( - "{token}", - encodeURIComponent(String(token)) - ); + const localVarPath = '/api/v1/dashboard/public/{token}' + .replace('{token}', encodeURIComponent(String(token))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.getPublicDashboard") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DashboardsApi.getPublicDashboard').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getPublicDashboardInvitations( - token: string, - pageSize?: number, - pageNumber?: number, - _options?: Configuration - ): Promise { + public async getPublicDashboardInvitations(token: string,pageSize?: number,pageNumber?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'token' is not null or undefined if (token === null || token === undefined) { - throw new RequiredError("token", "getPublicDashboardInvitations"); + throw new RequiredError('token', 'getPublicDashboardInvitations'); } // Path Params - const localVarPath = "/api/v1/dashboard/public/{token}/invitation".replace( - "{token}", - encodeURIComponent(String(token)) - ); + const localVarPath = '/api/v1/dashboard/public/{token}/invitation' + .replace('{token}', encodeURIComponent(String(token))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.getPublicDashboardInvitations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DashboardsApi.getPublicDashboardInvitations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page_size", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page_size", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page_number", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page_number", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listDashboards( - filterShared?: boolean, - filterDeleted?: boolean, - count?: number, - start?: number, - _options?: Configuration - ): Promise { + public async listDashboards(filterShared?: boolean,filterDeleted?: boolean,count?: number,start?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/dashboard"; + const localVarPath = '/api/v1/dashboard'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.listDashboards") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DashboardsApi.listDashboards').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterShared !== undefined) { - requestContext.setQueryParam( - "filter[shared]", - ObjectSerializer.serialize(filterShared, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[shared]", ObjectSerializer.serialize(filterShared, "boolean", ""), ""); } if (filterDeleted !== undefined) { - requestContext.setQueryParam( - "filter[deleted]", - ObjectSerializer.serialize(filterDeleted, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[deleted]", ObjectSerializer.serialize(filterDeleted, "boolean", ""), ""); } if (count !== undefined) { - requestContext.setQueryParam( - "count", - ObjectSerializer.serialize(count, "number", "int64"), - "" - ); + requestContext.setQueryParam("count", ObjectSerializer.serialize(count, "number", "int64"), ""); } if (start !== undefined) { - requestContext.setQueryParam( - "start", - ObjectSerializer.serialize(start, "number", "int64"), - "" - ); + requestContext.setQueryParam("start", ObjectSerializer.serialize(start, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async restoreDashboards( - body: DashboardRestoreRequest, - _options?: Configuration - ): Promise { + public async restoreDashboards(body: DashboardRestoreRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "restoreDashboards"); + throw new RequiredError('body', 'restoreDashboards'); } // Path Params - const localVarPath = "/api/v1/dashboard"; + const localVarPath = '/api/v1/dashboard'; // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.restoreDashboards") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.DashboardsApi.restoreDashboards').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardRestoreRequest", ""), @@ -486,49 +343,36 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async sendPublicDashboardInvitation( - token: string, - body: SharedDashboardInvites, - _options?: Configuration - ): Promise { + public async sendPublicDashboardInvitation(token: string,body: SharedDashboardInvites,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'token' is not null or undefined if (token === null || token === undefined) { - throw new RequiredError("token", "sendPublicDashboardInvitation"); + throw new RequiredError('token', 'sendPublicDashboardInvitation'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "sendPublicDashboardInvitation"); + throw new RequiredError('body', 'sendPublicDashboardInvitation'); } // Path Params - const localVarPath = "/api/v1/dashboard/public/{token}/invitation".replace( - "{token}", - encodeURIComponent(String(token)) - ); + const localVarPath = '/api/v1/dashboard/public/{token}/invitation' + .replace('{token}', encodeURIComponent(String(token))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.sendPublicDashboardInvitation") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.DashboardsApi.sendPublicDashboardInvitation').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SharedDashboardInvites", ""), @@ -537,49 +381,36 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateDashboard( - dashboardId: string, - body: Dashboard, - _options?: Configuration - ): Promise { + public async updateDashboard(dashboardId: string,body: Dashboard,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardId' is not null or undefined if (dashboardId === null || dashboardId === undefined) { - throw new RequiredError("dashboardId", "updateDashboard"); + throw new RequiredError('dashboardId', 'updateDashboard'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateDashboard"); + throw new RequiredError('body', 'updateDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/{dashboard_id}".replace( - "{dashboard_id}", - encodeURIComponent(String(dashboardId)) - ); + const localVarPath = '/api/v1/dashboard/{dashboard_id}' + .replace('{dashboard_id}', encodeURIComponent(String(dashboardId))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.updateDashboard") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.DashboardsApi.updateDashboard').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Dashboard", ""), @@ -588,49 +419,36 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updatePublicDashboard( - token: string, - body: SharedDashboardUpdateRequest, - _options?: Configuration - ): Promise { + public async updatePublicDashboard(token: string,body: SharedDashboardUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'token' is not null or undefined if (token === null || token === undefined) { - throw new RequiredError("token", "updatePublicDashboard"); + throw new RequiredError('token', 'updatePublicDashboard'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updatePublicDashboard"); + throw new RequiredError('body', 'updatePublicDashboard'); } // Path Params - const localVarPath = "/api/v1/dashboard/public/{token}".replace( - "{token}", - encodeURIComponent(String(token)) - ); + const localVarPath = '/api/v1/dashboard/public/{token}' + .replace('{token}', encodeURIComponent(String(token))); // Make Request Context - const requestContext = _config - .getServer("v1.DashboardsApi.updatePublicDashboard") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.DashboardsApi.updatePublicDashboard').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SharedDashboardUpdateRequest", ""), @@ -639,17 +457,14 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DashboardsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -657,10 +472,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to createDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async createDashboard(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Dashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -668,15 +481,8 @@ export class DashboardsApiResponseProcessor { ) as Dashboard; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -685,11 +491,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -697,17 +500,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Dashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Dashboard", - "" + "Dashboard", "" ) as Dashboard; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -717,12 +516,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to createPublicDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async createPublicDashboard( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createPublicDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SharedDashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -730,16 +525,8 @@ export class DashboardsApiResponseProcessor { ) as SharedDashboard; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -748,11 +535,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -760,17 +544,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SharedDashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SharedDashboard", - "" + "SharedDashboard", "" ) as SharedDashboard; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -780,12 +560,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to deleteDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async deleteDashboard( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -793,15 +569,8 @@ export class DashboardsApiResponseProcessor { ) as DashboardDeleteResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -810,11 +579,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -822,17 +588,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardDeleteResponse", - "" + "DashboardDeleteResponse", "" ) as DashboardDeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -842,23 +604,13 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to deleteDashboards * @throws ApiException if the response code was not in [200, 299] */ - public async deleteDashboards(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteDashboards(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -867,11 +619,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -879,17 +628,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -899,12 +644,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to deletePublicDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async deletePublicDashboard( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deletePublicDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DeleteSharedDashboardResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -912,15 +653,8 @@ export class DashboardsApiResponseProcessor { ) as DeleteSharedDashboardResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -929,11 +663,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -941,17 +672,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DeleteSharedDashboardResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DeleteSharedDashboardResponse", - "" + "DeleteSharedDashboardResponse", "" ) as DeleteSharedDashboardResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -961,24 +688,13 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to deletePublicDashboardInvitation * @throws ApiException if the response code was not in [200, 299] */ - public async deletePublicDashboardInvitation( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deletePublicDashboardInvitation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -987,11 +703,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -999,17 +712,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1019,10 +728,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to getDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async getDashboard(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Dashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1030,15 +737,8 @@ export class DashboardsApiResponseProcessor { ) as Dashboard; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1047,11 +747,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1059,17 +756,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Dashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Dashboard", - "" + "Dashboard", "" ) as Dashboard; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1079,12 +772,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to getPublicDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async getPublicDashboard( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getPublicDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SharedDashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1092,15 +781,8 @@ export class DashboardsApiResponseProcessor { ) as SharedDashboard; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1109,11 +791,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1121,17 +800,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SharedDashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SharedDashboard", - "" + "SharedDashboard", "" ) as SharedDashboard; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1141,12 +816,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to getPublicDashboardInvitations * @throws ApiException if the response code was not in [200, 299] */ - public async getPublicDashboardInvitations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getPublicDashboardInvitations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SharedDashboardInvites = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1154,15 +825,8 @@ export class DashboardsApiResponseProcessor { ) as SharedDashboardInvites; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1171,11 +835,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1183,17 +844,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SharedDashboardInvites = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SharedDashboardInvites", - "" + "SharedDashboardInvites", "" ) as SharedDashboardInvites; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1203,12 +860,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to listDashboards * @throws ApiException if the response code was not in [200, 299] */ - public async listDashboards( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listDashboards(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardSummary = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1216,11 +869,8 @@ export class DashboardsApiResponseProcessor { ) as DashboardSummary; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1229,11 +879,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1241,17 +888,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardSummary = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardSummary", - "" + "DashboardSummary", "" ) as DashboardSummary; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1261,23 +904,13 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to restoreDashboards * @throws ApiException if the response code was not in [200, 299] */ - public async restoreDashboards(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async restoreDashboards(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1286,11 +919,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1298,17 +928,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1318,12 +944,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to sendPublicDashboardInvitation * @throws ApiException if the response code was not in [200, 299] */ - public async sendPublicDashboardInvitation( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async sendPublicDashboardInvitation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: SharedDashboardInvites = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1331,16 +953,8 @@ export class DashboardsApiResponseProcessor { ) as SharedDashboardInvites; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1349,11 +963,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1361,17 +972,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SharedDashboardInvites = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SharedDashboardInvites", - "" + "SharedDashboardInvites", "" ) as SharedDashboardInvites; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1381,10 +988,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to updateDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async updateDashboard(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Dashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1392,16 +997,8 @@ export class DashboardsApiResponseProcessor { ) as Dashboard; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1410,11 +1007,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1422,17 +1016,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Dashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Dashboard", - "" + "Dashboard", "" ) as Dashboard; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1442,12 +1032,8 @@ export class DashboardsApiResponseProcessor { * @params response Response returned by the server for a request to updatePublicDashboard * @throws ApiException if the response code was not in [200, 299] */ - public async updatePublicDashboard( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updatePublicDashboard(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SharedDashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1455,16 +1041,8 @@ export class DashboardsApiResponseProcessor { ) as SharedDashboard; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1473,11 +1051,8 @@ export class DashboardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1485,17 +1060,13 @@ export class DashboardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SharedDashboard = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SharedDashboard", - "" + "SharedDashboard", "" ) as SharedDashboard; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1504,7 +1075,7 @@ export interface DashboardsApiCreateDashboardRequest { * Create a dashboard request body. * @type Dashboard */ - body: Dashboard; + body: Dashboard } export interface DashboardsApiCreatePublicDashboardRequest { @@ -1512,7 +1083,7 @@ export interface DashboardsApiCreatePublicDashboardRequest { * Create a shared dashboard request body. * @type SharedDashboard */ - body: SharedDashboard; + body: SharedDashboard } export interface DashboardsApiDeleteDashboardRequest { @@ -1520,7 +1091,7 @@ export interface DashboardsApiDeleteDashboardRequest { * The ID of the dashboard. * @type string */ - dashboardId: string; + dashboardId: string } export interface DashboardsApiDeleteDashboardsRequest { @@ -1528,7 +1099,7 @@ export interface DashboardsApiDeleteDashboardsRequest { * Delete dashboards request body. * @type DashboardBulkDeleteRequest */ - body: DashboardBulkDeleteRequest; + body: DashboardBulkDeleteRequest } export interface DashboardsApiDeletePublicDashboardRequest { @@ -1536,7 +1107,7 @@ export interface DashboardsApiDeletePublicDashboardRequest { * The token of the shared dashboard. * @type string */ - token: string; + token: string } export interface DashboardsApiDeletePublicDashboardInvitationRequest { @@ -1544,12 +1115,12 @@ export interface DashboardsApiDeletePublicDashboardInvitationRequest { * The token of the shared dashboard. * @type string */ - token: string; + token: string /** * Shared Dashboard Invitation deletion request body. * @type SharedDashboardInvites */ - body: SharedDashboardInvites; + body: SharedDashboardInvites } export interface DashboardsApiGetDashboardRequest { @@ -1557,7 +1128,7 @@ export interface DashboardsApiGetDashboardRequest { * The ID of the dashboard. * @type string */ - dashboardId: string; + dashboardId: string } export interface DashboardsApiGetPublicDashboardRequest { @@ -1565,7 +1136,7 @@ export interface DashboardsApiGetPublicDashboardRequest { * The token of the shared dashboard. Generated when a dashboard is shared. * @type string */ - token: string; + token: string } export interface DashboardsApiGetPublicDashboardInvitationsRequest { @@ -1573,17 +1144,17 @@ export interface DashboardsApiGetPublicDashboardInvitationsRequest { * Token of the shared dashboard for which to fetch invitations. * @type string */ - token: string; + token: string /** * The number of records to return in a single request. * @type number */ - pageSize?: number; + pageSize?: number /** * The page to access (base 0). * @type number */ - pageNumber?: number; + pageNumber?: number } export interface DashboardsApiListDashboardsRequest { @@ -1592,23 +1163,23 @@ export interface DashboardsApiListDashboardsRequest { * or cloned dashboards. * @type boolean */ - filterShared?: boolean; + filterShared?: boolean /** * When `true`, this query returns only deleted custom-created * or cloned dashboards. This parameter is incompatible with `filter[shared]`. * @type boolean */ - filterDeleted?: boolean; + filterDeleted?: boolean /** * The maximum number of dashboards returned in the list. * @type number */ - count?: number; + count?: number /** * The specific offset to use as the beginning of the returned response. * @type number */ - start?: number; + start?: number } export interface DashboardsApiRestoreDashboardsRequest { @@ -1616,7 +1187,7 @@ export interface DashboardsApiRestoreDashboardsRequest { * Restore dashboards request body. * @type DashboardRestoreRequest */ - body: DashboardRestoreRequest; + body: DashboardRestoreRequest } export interface DashboardsApiSendPublicDashboardInvitationRequest { @@ -1624,12 +1195,12 @@ export interface DashboardsApiSendPublicDashboardInvitationRequest { * The token of the shared dashboard. * @type string */ - token: string; + token: string /** * Shared Dashboard Invitation request body. * @type SharedDashboardInvites */ - body: SharedDashboardInvites; + body: SharedDashboardInvites } export interface DashboardsApiUpdateDashboardRequest { @@ -1637,12 +1208,12 @@ export interface DashboardsApiUpdateDashboardRequest { * The ID of the dashboard. * @type string */ - dashboardId: string; + dashboardId: string /** * Update Dashboard request body. * @type Dashboard */ - body: Dashboard; + body: Dashboard } export interface DashboardsApiUpdatePublicDashboardRequest { @@ -1650,12 +1221,12 @@ export interface DashboardsApiUpdatePublicDashboardRequest { * The token of the shared dashboard. * @type string */ - token: string; + token: string /** * Update Dashboard request body. * @type SharedDashboardUpdateRequest */ - body: SharedDashboardUpdateRequest; + body: SharedDashboardUpdateRequest } export class DashboardsApi { @@ -1663,16 +1234,10 @@ export class DashboardsApi { private responseProcessor: DashboardsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DashboardsApiRequestFactory, - responseProcessor?: DashboardsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DashboardsApiRequestFactory, responseProcessor?: DashboardsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DashboardsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DashboardsApiResponseProcessor(); + this.requestFactory = requestFactory || new DashboardsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DashboardsApiResponseProcessor(); } /** @@ -1680,19 +1245,11 @@ export class DashboardsApi { * Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. * @param param The request object */ - public createDashboard( - param: DashboardsApiCreateDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDashboard( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDashboard(responseContext); + public createDashboard(param: DashboardsApiCreateDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDashboard(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDashboard(responseContext); }); }); } @@ -1701,19 +1258,11 @@ export class DashboardsApi { * Share a specified private dashboard, generating a URL at which it can be publicly viewed. * @param param The request object */ - public createPublicDashboard( - param: DashboardsApiCreatePublicDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createPublicDashboard( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createPublicDashboard(responseContext); + public createPublicDashboard(param: DashboardsApiCreatePublicDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createPublicDashboard(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createPublicDashboard(responseContext); }); }); } @@ -1722,19 +1271,11 @@ export class DashboardsApi { * Delete a dashboard using the specified ID. * @param param The request object */ - public deleteDashboard( - param: DashboardsApiDeleteDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteDashboard( - param.dashboardId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteDashboard(responseContext); + public deleteDashboard(param: DashboardsApiDeleteDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteDashboard(param.dashboardId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteDashboard(responseContext); }); }); } @@ -1743,19 +1284,11 @@ export class DashboardsApi { * Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed). * @param param The request object */ - public deleteDashboards( - param: DashboardsApiDeleteDashboardsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteDashboards( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteDashboards(responseContext); + public deleteDashboards(param: DashboardsApiDeleteDashboardsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteDashboards(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteDashboards(responseContext); }); }); } @@ -1764,19 +1297,11 @@ export class DashboardsApi { * Revoke the public URL for a dashboard (rendering it private) associated with the specified token. * @param param The request object */ - public deletePublicDashboard( - param: DashboardsApiDeletePublicDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deletePublicDashboard( - param.token, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deletePublicDashboard(responseContext); + public deletePublicDashboard(param: DashboardsApiDeletePublicDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deletePublicDashboard(param.token,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deletePublicDashboard(responseContext); }); }); } @@ -1785,23 +1310,11 @@ export class DashboardsApi { * Revoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses. * @param param The request object */ - public deletePublicDashboardInvitation( - param: DashboardsApiDeletePublicDashboardInvitationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deletePublicDashboardInvitation( - param.token, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deletePublicDashboardInvitation( - responseContext - ); + public deletePublicDashboardInvitation(param: DashboardsApiDeletePublicDashboardInvitationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deletePublicDashboardInvitation(param.token,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deletePublicDashboardInvitation(responseContext); }); }); } @@ -1810,19 +1323,11 @@ export class DashboardsApi { * Get a dashboard using the specified ID. * @param param The request object */ - public getDashboard( - param: DashboardsApiGetDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDashboard( - param.dashboardId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDashboard(responseContext); + public getDashboard(param: DashboardsApiGetDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDashboard(param.dashboardId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDashboard(responseContext); }); }); } @@ -1831,19 +1336,11 @@ export class DashboardsApi { * Fetch an existing shared dashboard's sharing metadata associated with the specified token. * @param param The request object */ - public getPublicDashboard( - param: DashboardsApiGetPublicDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getPublicDashboard( - param.token, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getPublicDashboard(responseContext); + public getPublicDashboard(param: DashboardsApiGetPublicDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getPublicDashboard(param.token,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getPublicDashboard(responseContext); }); }); } @@ -1852,51 +1349,27 @@ export class DashboardsApi { * Describe the invitations that exist for the given shared dashboard (paginated). * @param param The request object */ - public getPublicDashboardInvitations( - param: DashboardsApiGetPublicDashboardInvitationsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getPublicDashboardInvitations( - param.token, - param.pageSize, - param.pageNumber, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getPublicDashboardInvitations( - responseContext - ); + public getPublicDashboardInvitations(param: DashboardsApiGetPublicDashboardInvitationsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getPublicDashboardInvitations(param.token,param.pageSize,param.pageNumber,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getPublicDashboardInvitations(responseContext); }); }); } /** * Get all dashboards. - * + * * **Note**: This query will only return custom created or cloned dashboards. * This query will not return preset dashboards. * @param param The request object */ - public listDashboards( - param: DashboardsApiListDashboardsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listDashboards( - param.filterShared, - param.filterDeleted, - param.count, - param.start, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listDashboards(responseContext); + public listDashboards(param: DashboardsApiListDashboardsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listDashboards(param.filterShared,param.filterDeleted,param.count,param.start,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listDashboards(responseContext); }); }); } @@ -1904,30 +1377,18 @@ export class DashboardsApi { /** * Provide a paginated version of listDashboards returning a generator with all the items. */ - public async *listDashboardsWithPagination( - param: DashboardsApiListDashboardsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listDashboardsWithPagination(param: DashboardsApiListDashboardsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 100; if (param.count !== undefined) { pageSize = param.count; } param.count = pageSize; while (true) { - const requestContext = await this.requestFactory.listDashboards( - param.filterShared, - param.filterDeleted, - param.count, - param.start, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listDashboards( - responseContext - ); + const requestContext = await this.requestFactory.listDashboards(param.filterShared,param.filterDeleted,param.count,param.start,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listDashboards(responseContext); const responseDashboards = response.dashboards; if (responseDashboards === undefined) { break; @@ -1951,19 +1412,11 @@ export class DashboardsApi { * Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed). * @param param The request object */ - public restoreDashboards( - param: DashboardsApiRestoreDashboardsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.restoreDashboards( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.restoreDashboards(responseContext); + public restoreDashboards(param: DashboardsApiRestoreDashboardsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.restoreDashboards(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.restoreDashboards(responseContext); }); }); } @@ -1972,23 +1425,11 @@ export class DashboardsApi { * Send emails to specified email addresses containing links to access a given authenticated shared dashboard. Email addresses must already belong to the authenticated shared dashboard's share_list. * @param param The request object */ - public sendPublicDashboardInvitation( - param: DashboardsApiSendPublicDashboardInvitationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.sendPublicDashboardInvitation( - param.token, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.sendPublicDashboardInvitation( - responseContext - ); + public sendPublicDashboardInvitation(param: DashboardsApiSendPublicDashboardInvitationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.sendPublicDashboardInvitation(param.token,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.sendPublicDashboardInvitation(responseContext); }); }); } @@ -1997,20 +1438,11 @@ export class DashboardsApi { * Update a dashboard using the specified ID. * @param param The request object */ - public updateDashboard( - param: DashboardsApiUpdateDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateDashboard( - param.dashboardId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateDashboard(responseContext); + public updateDashboard(param: DashboardsApiUpdateDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateDashboard(param.dashboardId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateDashboard(responseContext); }); }); } @@ -2019,21 +1451,12 @@ export class DashboardsApi { * Update a shared dashboard associated with the specified token. * @param param The request object */ - public updatePublicDashboard( - param: DashboardsApiUpdatePublicDashboardRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updatePublicDashboard( - param.token, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updatePublicDashboard(responseContext); + public updatePublicDashboard(param: DashboardsApiUpdatePublicDashboardRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updatePublicDashboard(param.token,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updatePublicDashboard(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/DowntimesApi.ts b/packages/datadog-api-client-v1/apis/DowntimesApi.ts index 33256fb7d5a9..79e86fe79950 100644 --- a/packages/datadog-api-client-v1/apis/DowntimesApi.ts +++ b/packages/datadog-api-client-v1/apis/DowntimesApi.ts @@ -1,86 +1,68 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CancelDowntimesByScopeRequest } from "../models/CancelDowntimesByScopeRequest"; import { CanceledDowntimesIds } from "../models/CanceledDowntimesIds"; import { Downtime } from "../models/Downtime"; export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { - public async cancelDowntime( - downtimeId: number, - _options?: Configuration - ): Promise { + + public async cancelDowntime(downtimeId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'downtimeId' is not null or undefined if (downtimeId === null || downtimeId === undefined) { - throw new RequiredError("downtimeId", "cancelDowntime"); + throw new RequiredError('downtimeId', 'cancelDowntime'); } // Path Params - const localVarPath = "/api/v1/downtime/{downtime_id}".replace( - "{downtime_id}", - encodeURIComponent(String(downtimeId)) - ); + const localVarPath = '/api/v1/downtime/{downtime_id}' + .replace('{downtime_id}', encodeURIComponent(String(downtimeId))); // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.cancelDowntime") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.DowntimesApi.cancelDowntime').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async cancelDowntimesByScope( - body: CancelDowntimesByScopeRequest, - _options?: Configuration - ): Promise { + public async cancelDowntimesByScope(body: CancelDowntimesByScopeRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "cancelDowntimesByScope"); + throw new RequiredError('body', 'cancelDowntimesByScope'); } // Path Params - const localVarPath = "/api/v1/downtime/cancel/by_scope"; + const localVarPath = '/api/v1/downtime/cancel/by_scope'; // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.cancelDowntimesByScope") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.DowntimesApi.cancelDowntimesByScope').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CancelDowntimesByScopeRequest", ""), @@ -89,40 +71,30 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createDowntime( - body: Downtime, - _options?: Configuration - ): Promise { + public async createDowntime(body: Downtime,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDowntime"); + throw new RequiredError('body', 'createDowntime'); } // Path Params - const localVarPath = "/api/v1/downtime"; + const localVarPath = '/api/v1/downtime'; // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.createDowntime") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.DowntimesApi.createDowntime').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Downtime", ""), @@ -131,160 +103,107 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getDowntime( - downtimeId: number, - _options?: Configuration - ): Promise { + public async getDowntime(downtimeId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'downtimeId' is not null or undefined if (downtimeId === null || downtimeId === undefined) { - throw new RequiredError("downtimeId", "getDowntime"); + throw new RequiredError('downtimeId', 'getDowntime'); } // Path Params - const localVarPath = "/api/v1/downtime/{downtime_id}".replace( - "{downtime_id}", - encodeURIComponent(String(downtimeId)) - ); + const localVarPath = '/api/v1/downtime/{downtime_id}' + .replace('{downtime_id}', encodeURIComponent(String(downtimeId))); // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.getDowntime") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DowntimesApi.getDowntime').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listDowntimes( - currentOnly?: boolean, - withCreator?: boolean, - _options?: Configuration - ): Promise { + public async listDowntimes(currentOnly?: boolean,withCreator?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/downtime"; + const localVarPath = '/api/v1/downtime'; // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.listDowntimes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DowntimesApi.listDowntimes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (currentOnly !== undefined) { - requestContext.setQueryParam( - "current_only", - ObjectSerializer.serialize(currentOnly, "boolean", ""), - "" - ); + requestContext.setQueryParam("current_only", ObjectSerializer.serialize(currentOnly, "boolean", ""), ""); } if (withCreator !== undefined) { - requestContext.setQueryParam( - "with_creator", - ObjectSerializer.serialize(withCreator, "boolean", ""), - "" - ); + requestContext.setQueryParam("with_creator", ObjectSerializer.serialize(withCreator, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listMonitorDowntimes( - monitorId: number, - _options?: Configuration - ): Promise { + public async listMonitorDowntimes(monitorId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorId' is not null or undefined if (monitorId === null || monitorId === undefined) { - throw new RequiredError("monitorId", "listMonitorDowntimes"); + throw new RequiredError('monitorId', 'listMonitorDowntimes'); } // Path Params - const localVarPath = "/api/v1/monitor/{monitor_id}/downtimes".replace( - "{monitor_id}", - encodeURIComponent(String(monitorId)) - ); + const localVarPath = '/api/v1/monitor/{monitor_id}/downtimes' + .replace('{monitor_id}', encodeURIComponent(String(monitorId))); // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.listMonitorDowntimes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.DowntimesApi.listMonitorDowntimes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateDowntime( - downtimeId: number, - body: Downtime, - _options?: Configuration - ): Promise { + public async updateDowntime(downtimeId: number,body: Downtime,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'downtimeId' is not null or undefined if (downtimeId === null || downtimeId === undefined) { - throw new RequiredError("downtimeId", "updateDowntime"); + throw new RequiredError('downtimeId', 'updateDowntime'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateDowntime"); + throw new RequiredError('body', 'updateDowntime'); } // Path Params - const localVarPath = "/api/v1/downtime/{downtime_id}".replace( - "{downtime_id}", - encodeURIComponent(String(downtimeId)) - ); + const localVarPath = '/api/v1/downtime/{downtime_id}' + .replace('{downtime_id}', encodeURIComponent(String(downtimeId))); // Make Request Context - const requestContext = _config - .getServer("v1.DowntimesApi.updateDowntime") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.DowntimesApi.updateDowntime').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Downtime", ""), @@ -293,17 +212,14 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DowntimesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -311,22 +227,13 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to cancelDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async cancelDowntime(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cancelDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -335,11 +242,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -347,17 +251,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -367,12 +267,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to cancelDowntimesByScope * @throws ApiException if the response code was not in [200, 299] */ - public async cancelDowntimesByScope( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cancelDowntimesByScope(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CanceledDowntimesIds = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -380,16 +276,8 @@ export class DowntimesApiResponseProcessor { ) as CanceledDowntimesIds; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -398,11 +286,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -410,17 +295,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CanceledDowntimesIds = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CanceledDowntimesIds", - "" + "CanceledDowntimesIds", "" ) as CanceledDowntimesIds; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -430,10 +311,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to createDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async createDowntime(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Downtime = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -441,15 +320,8 @@ export class DowntimesApiResponseProcessor { ) as Downtime; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -458,11 +330,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -470,17 +339,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Downtime = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Downtime", - "" + "Downtime", "" ) as Downtime; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -490,10 +355,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to getDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async getDowntime(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Downtime = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -501,15 +364,8 @@ export class DowntimesApiResponseProcessor { ) as Downtime; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -518,11 +374,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -530,17 +383,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Downtime = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Downtime", - "" + "Downtime", "" ) as Downtime; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -550,12 +399,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to listDowntimes * @throws ApiException if the response code was not in [200, 299] */ - public async listDowntimes( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listDowntimes(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -563,11 +408,8 @@ export class DowntimesApiResponseProcessor { ) as Array; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -576,11 +418,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -588,17 +427,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -608,12 +443,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to listMonitorDowntimes * @throws ApiException if the response code was not in [200, 299] */ - public async listMonitorDowntimes( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listMonitorDowntimes(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -621,15 +452,8 @@ export class DowntimesApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -638,11 +462,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -650,17 +471,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -670,10 +487,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to updateDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async updateDowntime(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Downtime = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -681,16 +496,8 @@ export class DowntimesApiResponseProcessor { ) as Downtime; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -699,11 +506,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -711,17 +515,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Downtime = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Downtime", - "" + "Downtime", "" ) as Downtime; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -730,7 +530,7 @@ export interface DowntimesApiCancelDowntimeRequest { * ID of the downtime to cancel. * @type number */ - downtimeId: number; + downtimeId: number } export interface DowntimesApiCancelDowntimesByScopeRequest { @@ -738,7 +538,7 @@ export interface DowntimesApiCancelDowntimesByScopeRequest { * Scope to cancel downtimes for. * @type CancelDowntimesByScopeRequest */ - body: CancelDowntimesByScopeRequest; + body: CancelDowntimesByScopeRequest } export interface DowntimesApiCreateDowntimeRequest { @@ -746,7 +546,7 @@ export interface DowntimesApiCreateDowntimeRequest { * Schedule a downtime request body. * @type Downtime */ - body: Downtime; + body: Downtime } export interface DowntimesApiGetDowntimeRequest { @@ -754,7 +554,7 @@ export interface DowntimesApiGetDowntimeRequest { * ID of the downtime to fetch. * @type number */ - downtimeId: number; + downtimeId: number } export interface DowntimesApiListDowntimesRequest { @@ -762,12 +562,12 @@ export interface DowntimesApiListDowntimesRequest { * Only return downtimes that are active when the request is made. * @type boolean */ - currentOnly?: boolean; + currentOnly?: boolean /** * Return creator information. * @type boolean */ - withCreator?: boolean; + withCreator?: boolean } export interface DowntimesApiListMonitorDowntimesRequest { @@ -775,7 +575,7 @@ export interface DowntimesApiListMonitorDowntimesRequest { * The id of the monitor * @type number */ - monitorId: number; + monitorId: number } export interface DowntimesApiUpdateDowntimeRequest { @@ -783,12 +583,12 @@ export interface DowntimesApiUpdateDowntimeRequest { * ID of the downtime to update. * @type number */ - downtimeId: number; + downtimeId: number /** * Update a downtime request body. * @type Downtime */ - body: Downtime; + body: Downtime } export class DowntimesApi { @@ -796,35 +596,21 @@ export class DowntimesApi { private responseProcessor: DowntimesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DowntimesApiRequestFactory, - responseProcessor?: DowntimesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DowntimesApiRequestFactory, responseProcessor?: DowntimesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DowntimesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DowntimesApiResponseProcessor(); + this.requestFactory = requestFactory || new DowntimesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DowntimesApiResponseProcessor(); } /** * Cancel a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints. * @param param The request object */ - public cancelDowntime( - param: DowntimesApiCancelDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cancelDowntime( - param.downtimeId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cancelDowntime(responseContext); + public cancelDowntime(param: DowntimesApiCancelDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cancelDowntime(param.downtimeId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cancelDowntime(responseContext); }); }); } @@ -833,19 +619,11 @@ export class DowntimesApi { * Delete all downtimes that match the scope of `X`. **Note:** This only interacts with Downtimes created using v1 endpoints. This endpoint has been deprecated and will not be replaced. Please use v2 endpoints to find and cancel downtimes. * @param param The request object */ - public cancelDowntimesByScope( - param: DowntimesApiCancelDowntimesByScopeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cancelDowntimesByScope( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cancelDowntimesByScope(responseContext); + public cancelDowntimesByScope(param: DowntimesApiCancelDowntimesByScopeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cancelDowntimesByScope(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cancelDowntimesByScope(responseContext); }); }); } @@ -854,19 +632,11 @@ export class DowntimesApi { * Schedule a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints. * @param param The request object */ - public createDowntime( - param: DowntimesApiCreateDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDowntime( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDowntime(responseContext); + public createDowntime(param: DowntimesApiCreateDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDowntime(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDowntime(responseContext); }); }); } @@ -875,19 +645,11 @@ export class DowntimesApi { * Get downtime detail by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints. * @param param The request object */ - public getDowntime( - param: DowntimesApiGetDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDowntime( - param.downtimeId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDowntime(responseContext); + public getDowntime(param: DowntimesApiGetDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDowntime(param.downtimeId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDowntime(responseContext); }); }); } @@ -896,20 +658,11 @@ export class DowntimesApi { * Get all scheduled downtimes. **Note:** This endpoint has been deprecated. Please use v2 endpoints. * @param param The request object */ - public listDowntimes( - param: DowntimesApiListDowntimesRequest = {}, - options?: Configuration - ): Promise> { - const requestContextPromise = this.requestFactory.listDowntimes( - param.currentOnly, - param.withCreator, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listDowntimes(responseContext); + public listDowntimes(param: DowntimesApiListDowntimesRequest = {}, options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listDowntimes(param.currentOnly,param.withCreator,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listDowntimes(responseContext); }); }); } @@ -918,19 +671,11 @@ export class DowntimesApi { * Get all active v1 downtimes for the specified monitor. **Note:** This endpoint has been deprecated. Please use v2 endpoints. * @param param The request object */ - public listMonitorDowntimes( - param: DowntimesApiListMonitorDowntimesRequest, - options?: Configuration - ): Promise> { - const requestContextPromise = this.requestFactory.listMonitorDowntimes( - param.monitorId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listMonitorDowntimes(responseContext); + public listMonitorDowntimes(param: DowntimesApiListMonitorDowntimesRequest, options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listMonitorDowntimes(param.monitorId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listMonitorDowntimes(responseContext); }); }); } @@ -939,21 +684,12 @@ export class DowntimesApi { * Update a single downtime by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints. * @param param The request object */ - public updateDowntime( - param: DowntimesApiUpdateDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateDowntime( - param.downtimeId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateDowntime(responseContext); + public updateDowntime(param: DowntimesApiUpdateDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateDowntime(param.downtimeId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateDowntime(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/EventsApi.ts b/packages/datadog-api-client-v1/apis/EventsApi.ts index f0a00430a045..11bb66b8afb7 100644 --- a/packages/datadog-api-client-v1/apis/EventsApi.ts +++ b/packages/datadog-api-client-v1/apis/EventsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { EventCreateRequest } from "../models/EventCreateRequest"; import { EventCreateResponse } from "../models/EventCreateResponse"; @@ -24,31 +22,26 @@ import { EventPriority } from "../models/EventPriority"; import { EventResponse } from "../models/EventResponse"; export class EventsApiRequestFactory extends BaseAPIRequestFactory { - public async createEvent( - body: EventCreateRequest, - _options?: Configuration - ): Promise { + + public async createEvent(body: EventCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createEvent"); + throw new RequiredError('body', 'createEvent'); } // Path Params - const localVarPath = "/api/v1/events"; + const localVarPath = '/api/v1/events'; // Make Request Context - const requestContext = _config - .getServer("v1.EventsApi.createEvent") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.EventsApi.createEvent').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "EventCreateRequest", ""), @@ -62,143 +55,85 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async getEvent( - eventId: number, - _options?: Configuration - ): Promise { + public async getEvent(eventId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'eventId' is not null or undefined if (eventId === null || eventId === undefined) { - throw new RequiredError("eventId", "getEvent"); + throw new RequiredError('eventId', 'getEvent'); } // Path Params - const localVarPath = "/api/v1/events/{event_id}".replace( - "{event_id}", - encodeURIComponent(String(eventId)) - ); + const localVarPath = '/api/v1/events/{event_id}' + .replace('{event_id}', encodeURIComponent(String(eventId))); // Make Request Context - const requestContext = _config - .getServer("v1.EventsApi.getEvent") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.EventsApi.getEvent').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listEvents( - start: number, - end: number, - priority?: EventPriority, - sources?: string, - tags?: string, - unaggregated?: boolean, - excludeAggregate?: boolean, - page?: number, - _options?: Configuration - ): Promise { + public async listEvents(start: number,end: number,priority?: EventPriority,sources?: string,tags?: string,unaggregated?: boolean,excludeAggregate?: boolean,page?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'start' is not null or undefined if (start === null || start === undefined) { - throw new RequiredError("start", "listEvents"); + throw new RequiredError('start', 'listEvents'); } // verify required parameter 'end' is not null or undefined if (end === null || end === undefined) { - throw new RequiredError("end", "listEvents"); + throw new RequiredError('end', 'listEvents'); } // Path Params - const localVarPath = "/api/v1/events"; + const localVarPath = '/api/v1/events'; // Make Request Context - const requestContext = _config - .getServer("v1.EventsApi.listEvents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.EventsApi.listEvents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (start !== undefined) { - requestContext.setQueryParam( - "start", - ObjectSerializer.serialize(start, "number", "int64"), - "" - ); + requestContext.setQueryParam("start", ObjectSerializer.serialize(start, "number", "int64"), ""); } if (end !== undefined) { - requestContext.setQueryParam( - "end", - ObjectSerializer.serialize(end, "number", "int64"), - "" - ); + requestContext.setQueryParam("end", ObjectSerializer.serialize(end, "number", "int64"), ""); } if (priority !== undefined) { - requestContext.setQueryParam( - "priority", - ObjectSerializer.serialize(priority, "EventPriority", ""), - "" - ); + requestContext.setQueryParam("priority", ObjectSerializer.serialize(priority, "EventPriority", ""), ""); } if (sources !== undefined) { - requestContext.setQueryParam( - "sources", - ObjectSerializer.serialize(sources, "string", ""), - "" - ); + requestContext.setQueryParam("sources", ObjectSerializer.serialize(sources, "string", ""), ""); } if (tags !== undefined) { - requestContext.setQueryParam( - "tags", - ObjectSerializer.serialize(tags, "string", ""), - "" - ); + requestContext.setQueryParam("tags", ObjectSerializer.serialize(tags, "string", ""), ""); } if (unaggregated !== undefined) { - requestContext.setQueryParam( - "unaggregated", - ObjectSerializer.serialize(unaggregated, "boolean", ""), - "" - ); + requestContext.setQueryParam("unaggregated", ObjectSerializer.serialize(unaggregated, "boolean", ""), ""); } if (excludeAggregate !== undefined) { - requestContext.setQueryParam( - "exclude_aggregate", - ObjectSerializer.serialize(excludeAggregate, "boolean", ""), - "" - ); + requestContext.setQueryParam("exclude_aggregate", ObjectSerializer.serialize(excludeAggregate, "boolean", ""), ""); } if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int32"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class EventsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -206,12 +141,8 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to createEvent * @throws ApiException if the response code was not in [200, 299] */ - public async createEvent( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createEvent(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: EventCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -219,11 +150,8 @@ export class EventsApiResponseProcessor { ) as EventCreateResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -232,11 +160,8 @@ export class EventsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -244,17 +169,13 @@ export class EventsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: EventCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "EventCreateResponse", - "" + "EventCreateResponse", "" ) as EventCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -264,10 +185,8 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to getEvent * @throws ApiException if the response code was not in [200, 299] */ - public async getEvent(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getEvent(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: EventResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -275,15 +194,8 @@ export class EventsApiResponseProcessor { ) as EventResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -292,11 +204,8 @@ export class EventsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -304,17 +213,13 @@ export class EventsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: EventResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "EventResponse", - "" + "EventResponse", "" ) as EventResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -324,12 +229,8 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to listEvents * @throws ApiException if the response code was not in [200, 299] */ - public async listEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: EventListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -337,15 +238,8 @@ export class EventsApiResponseProcessor { ) as EventListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -354,11 +248,8 @@ export class EventsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -366,17 +257,13 @@ export class EventsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: EventListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "EventListResponse", - "" + "EventListResponse", "" ) as EventListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -385,7 +272,7 @@ export interface EventsApiCreateEventRequest { * Event request object * @type EventCreateRequest */ - body: EventCreateRequest; + body: EventCreateRequest } export interface EventsApiGetEventRequest { @@ -393,7 +280,7 @@ export interface EventsApiGetEventRequest { * The ID of the event. * @type number */ - eventId: number; + eventId: number } export interface EventsApiListEventsRequest { @@ -401,46 +288,46 @@ export interface EventsApiListEventsRequest { * POSIX timestamp. * @type number */ - start: number; + start: number /** * POSIX timestamp. * @type number */ - end: number; + end: number /** * Priority of your events, either `low` or `normal`. * @type EventPriority */ - priority?: EventPriority; + priority?: EventPriority /** * A comma separated string of sources. * @type string */ - sources?: string; + sources?: string /** * A comma separated list indicating what tags, if any, should be used to filter the list of events. * @type string */ - tags?: string; + tags?: string /** * Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. * Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, * it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` * @type boolean */ - unaggregated?: boolean; + unaggregated?: boolean /** * Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, * then the unaggregated parameter is ignored and will be `true` by default. * @type boolean */ - excludeAggregate?: boolean; + excludeAggregate?: boolean /** * By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used * when either unaggregated or exclude_aggregate is set to `true.` * @type number */ - page?: number; + page?: number } export class EventsApi { @@ -448,16 +335,10 @@ export class EventsApi { private responseProcessor: EventsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: EventsApiRequestFactory, - responseProcessor?: EventsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: EventsApiRequestFactory, responseProcessor?: EventsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new EventsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new EventsApiResponseProcessor(); + this.requestFactory = requestFactory || new EventsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new EventsApiResponseProcessor(); } /** @@ -465,80 +346,49 @@ export class EventsApi { * Tag them, set priority and event aggregate them with other events. * @param param The request object */ - public createEvent( - param: EventsApiCreateEventRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createEvent( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createEvent(responseContext); + public createEvent(param: EventsApiCreateEventRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createEvent(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createEvent(responseContext); }); }); } /** * This endpoint allows you to query for event details. - * + * * **Note**: If the event you’re querying contains markdown formatting of any kind, * you may see characters such as `%`,`\`,`n` in your output. * @param param The request object */ - public getEvent( - param: EventsApiGetEventRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getEvent( - param.eventId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getEvent(responseContext); + public getEvent(param: EventsApiGetEventRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getEvent(param.eventId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getEvent(responseContext); }); }); } /** * The event stream can be queried and filtered by time, priority, sources and tags. - * + * * **Notes**: * - If the event you’re querying contains markdown formatting of any kind, * you may see characters such as `%`,`\`,`n` in your output. - * + * * - This endpoint returns a maximum of `1000` most recent results. To return additional results, * identify the last timestamp of the last result and set that as the `end` query time to * paginate the results. You can also use the page parameter to specify which set of `1000` results to return. * @param param The request object */ - public listEvents( - param: EventsApiListEventsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listEvents( - param.start, - param.end, - param.priority, - param.sources, - param.tags, - param.unaggregated, - param.excludeAggregate, - param.page, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listEvents(responseContext); + public listEvents(param: EventsApiListEventsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listEvents(param.start,param.end,param.priority,param.sources,param.tags,param.unaggregated,param.excludeAggregate,param.page,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listEvents(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/GCPIntegrationApi.ts b/packages/datadog-api-client-v1/apis/GCPIntegrationApi.ts index 561d59d862ae..aacd4421510c 100644 --- a/packages/datadog-api-client-v1/apis/GCPIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/GCPIntegrationApi.ts @@ -1,50 +1,44 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { GCPAccount } from "../models/GCPAccount"; +import { GCPAccountListResponse } from "../models/GCPAccountListResponse"; export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createGCPIntegration( - body: GCPAccount, - _options?: Configuration - ): Promise { + + public async createGCPIntegration(body: GCPAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createGCPIntegration"); + throw new RequiredError('body', 'createGCPIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/gcp"; + const localVarPath = '/api/v1/integration/gcp'; // Make Request Context - const requestContext = _config - .getServer("v1.GCPIntegrationApi.createGCPIntegration") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.GCPIntegrationApi.createGCPIntegration').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "GCPAccount", ""), @@ -53,39 +47,30 @@ export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteGCPIntegration( - body: GCPAccount, - _options?: Configuration - ): Promise { + public async deleteGCPIntegration(body: GCPAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteGCPIntegration"); + throw new RequiredError('body', 'deleteGCPIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/gcp"; + const localVarPath = '/api/v1/integration/gcp'; // Make Request Context - const requestContext = _config - .getServer("v1.GCPIntegrationApi.deleteGCPIntegration") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.GCPIntegrationApi.deleteGCPIntegration').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "GCPAccount", ""), @@ -94,63 +79,47 @@ export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listGCPIntegration( - _options?: Configuration - ): Promise { + public async listGCPIntegration(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/integration/gcp"; + const localVarPath = '/api/v1/integration/gcp'; // Make Request Context - const requestContext = _config - .getServer("v1.GCPIntegrationApi.listGCPIntegration") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.GCPIntegrationApi.listGCPIntegration').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateGCPIntegration( - body: GCPAccount, - _options?: Configuration - ): Promise { + public async updateGCPIntegration(body: GCPAccount,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateGCPIntegration"); + throw new RequiredError('body', 'updateGCPIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/gcp"; + const localVarPath = '/api/v1/integration/gcp'; // Make Request Context - const requestContext = _config - .getServer("v1.GCPIntegrationApi.updateGCPIntegration") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.GCPIntegrationApi.updateGCPIntegration').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "GCPAccount", ""), @@ -159,16 +128,14 @@ export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class GCPIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -176,10 +143,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createGCPIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async createGCPIntegration(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createGCPIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -187,15 +152,8 @@ export class GCPIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -204,11 +162,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -216,17 +171,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -236,10 +187,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteGCPIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteGCPIntegration(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteGCPIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -247,15 +196,8 @@ export class GCPIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -264,11 +206,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -276,17 +215,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -296,12 +231,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listGCPIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async listGCPIntegration( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listGCPIntegration(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -309,15 +240,8 @@ export class GCPIntegrationApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -326,11 +250,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -338,17 +259,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -358,10 +275,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateGCPIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async updateGCPIntegration(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateGCPIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -369,15 +284,8 @@ export class GCPIntegrationApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -386,11 +294,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -398,17 +303,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -417,7 +318,7 @@ export interface GCPIntegrationApiCreateGCPIntegrationRequest { * Create a Datadog-GCP integration. * @type GCPAccount */ - body: GCPAccount; + body: GCPAccount } export interface GCPIntegrationApiDeleteGCPIntegrationRequest { @@ -425,7 +326,7 @@ export interface GCPIntegrationApiDeleteGCPIntegrationRequest { * Delete a given Datadog-GCP integration. * @type GCPAccount */ - body: GCPAccount; + body: GCPAccount } export interface GCPIntegrationApiUpdateGCPIntegrationRequest { @@ -433,7 +334,7 @@ export interface GCPIntegrationApiUpdateGCPIntegrationRequest { * Update a Datadog-GCP integration. * @type GCPAccount */ - body: GCPAccount; + body: GCPAccount } export class GCPIntegrationApi { @@ -441,35 +342,21 @@ export class GCPIntegrationApi { private responseProcessor: GCPIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: GCPIntegrationApiRequestFactory, - responseProcessor?: GCPIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: GCPIntegrationApiRequestFactory, responseProcessor?: GCPIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new GCPIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new GCPIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new GCPIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new GCPIntegrationApiResponseProcessor(); } /** * This endpoint is deprecated – use the V2 endpoints instead. Create a Datadog-GCP integration. * @param param The request object */ - public createGCPIntegration( - param: GCPIntegrationApiCreateGCPIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createGCPIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createGCPIntegration(responseContext); + public createGCPIntegration(param: GCPIntegrationApiCreateGCPIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createGCPIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createGCPIntegration(responseContext); }); }); } @@ -478,19 +365,11 @@ export class GCPIntegrationApi { * This endpoint is deprecated – use the V2 endpoints instead. Delete a given Datadog-GCP integration. * @param param The request object */ - public deleteGCPIntegration( - param: GCPIntegrationApiDeleteGCPIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteGCPIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteGCPIntegration(responseContext); + public deleteGCPIntegration(param: GCPIntegrationApiDeleteGCPIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteGCPIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteGCPIntegration(responseContext); }); }); } @@ -499,16 +378,11 @@ export class GCPIntegrationApi { * This endpoint is deprecated – use the V2 endpoints instead. List all Datadog-GCP integrations configured in your Datadog account. * @param param The request object */ - public listGCPIntegration( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.listGCPIntegration(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listGCPIntegration(responseContext); + public listGCPIntegration( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listGCPIntegration(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listGCPIntegration(responseContext); }); }); } @@ -520,20 +394,12 @@ export class GCPIntegrationApi { * The unspecified fields will keep their original values. * @param param The request object */ - public updateGCPIntegration( - param: GCPIntegrationApiUpdateGCPIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateGCPIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateGCPIntegration(responseContext); + public updateGCPIntegration(param: GCPIntegrationApiUpdateGCPIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateGCPIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateGCPIntegration(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/HostsApi.ts b/packages/datadog-api-client-v1/apis/HostsApi.ts index fa932576be9f..3b23859c01c3 100644 --- a/packages/datadog-api-client-v1/apis/HostsApi.ts +++ b/packages/datadog-api-client-v1/apis/HostsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { HostListResponse } from "../models/HostListResponse"; import { HostMuteResponse } from "../models/HostMuteResponse"; @@ -23,166 +21,97 @@ import { HostMuteSettings } from "../models/HostMuteSettings"; import { HostTotals } from "../models/HostTotals"; export class HostsApiRequestFactory extends BaseAPIRequestFactory { - public async getHostTotals( - from?: number, - _options?: Configuration - ): Promise { + + public async getHostTotals(from?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/hosts/totals"; + const localVarPath = '/api/v1/hosts/totals'; // Make Request Context - const requestContext = _config - .getServer("v1.HostsApi.getHostTotals") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.HostsApi.getHostTotals').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (from !== undefined) { - requestContext.setQueryParam( - "from", - ObjectSerializer.serialize(from, "number", "int64"), - "" - ); + requestContext.setQueryParam("from", ObjectSerializer.serialize(from, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listHosts( - filter?: string, - sortField?: string, - sortDir?: string, - start?: number, - count?: number, - from?: number, - includeMutedHostsData?: boolean, - includeHostsMetadata?: boolean, - _options?: Configuration - ): Promise { + public async listHosts(filter?: string,sortField?: string,sortDir?: string,start?: number,count?: number,from?: number,includeMutedHostsData?: boolean,includeHostsMetadata?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/hosts"; + const localVarPath = '/api/v1/hosts'; // Make Request Context - const requestContext = _config - .getServer("v1.HostsApi.listHosts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.HostsApi.listHosts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (sortField !== undefined) { - requestContext.setQueryParam( - "sort_field", - ObjectSerializer.serialize(sortField, "string", ""), - "" - ); + requestContext.setQueryParam("sort_field", ObjectSerializer.serialize(sortField, "string", ""), ""); } if (sortDir !== undefined) { - requestContext.setQueryParam( - "sort_dir", - ObjectSerializer.serialize(sortDir, "string", ""), - "" - ); + requestContext.setQueryParam("sort_dir", ObjectSerializer.serialize(sortDir, "string", ""), ""); } if (start !== undefined) { - requestContext.setQueryParam( - "start", - ObjectSerializer.serialize(start, "number", "int64"), - "" - ); + requestContext.setQueryParam("start", ObjectSerializer.serialize(start, "number", "int64"), ""); } if (count !== undefined) { - requestContext.setQueryParam( - "count", - ObjectSerializer.serialize(count, "number", "int64"), - "" - ); + requestContext.setQueryParam("count", ObjectSerializer.serialize(count, "number", "int64"), ""); } if (from !== undefined) { - requestContext.setQueryParam( - "from", - ObjectSerializer.serialize(from, "number", "int64"), - "" - ); + requestContext.setQueryParam("from", ObjectSerializer.serialize(from, "number", "int64"), ""); } if (includeMutedHostsData !== undefined) { - requestContext.setQueryParam( - "include_muted_hosts_data", - ObjectSerializer.serialize(includeMutedHostsData, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_muted_hosts_data", ObjectSerializer.serialize(includeMutedHostsData, "boolean", ""), ""); } if (includeHostsMetadata !== undefined) { - requestContext.setQueryParam( - "include_hosts_metadata", - ObjectSerializer.serialize(includeHostsMetadata, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_hosts_metadata", ObjectSerializer.serialize(includeHostsMetadata, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async muteHost( - hostName: string, - body: HostMuteSettings, - _options?: Configuration - ): Promise { + public async muteHost(hostName: string,body: HostMuteSettings,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'hostName' is not null or undefined if (hostName === null || hostName === undefined) { - throw new RequiredError("hostName", "muteHost"); + throw new RequiredError('hostName', 'muteHost'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "muteHost"); + throw new RequiredError('body', 'muteHost'); } // Path Params - const localVarPath = "/api/v1/host/{host_name}/mute".replace( - "{host_name}", - encodeURIComponent(String(hostName)) - ); + const localVarPath = '/api/v1/host/{host_name}/mute' + .replace('{host_name}', encodeURIComponent(String(hostName))); // Make Request Context - const requestContext = _config - .getServer("v1.HostsApi.muteHost") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.HostsApi.muteHost').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "HostMuteSettings", ""), @@ -191,49 +120,37 @@ export class HostsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async unmuteHost( - hostName: string, - _options?: Configuration - ): Promise { + public async unmuteHost(hostName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'hostName' is not null or undefined if (hostName === null || hostName === undefined) { - throw new RequiredError("hostName", "unmuteHost"); + throw new RequiredError('hostName', 'unmuteHost'); } // Path Params - const localVarPath = "/api/v1/host/{host_name}/unmute".replace( - "{host_name}", - encodeURIComponent(String(hostName)) - ); + const localVarPath = '/api/v1/host/{host_name}/unmute' + .replace('{host_name}', encodeURIComponent(String(hostName))); // Make Request Context - const requestContext = _config - .getServer("v1.HostsApi.unmuteHost") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.HostsApi.unmuteHost').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class HostsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -241,10 +158,8 @@ export class HostsApiResponseProcessor { * @params response Response returned by the server for a request to getHostTotals * @throws ApiException if the response code was not in [200, 299] */ - public async getHostTotals(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getHostTotals(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HostTotals = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -252,15 +167,8 @@ export class HostsApiResponseProcessor { ) as HostTotals; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -269,11 +177,8 @@ export class HostsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -281,17 +186,13 @@ export class HostsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostTotals = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostTotals", - "" + "HostTotals", "" ) as HostTotals; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -301,10 +202,8 @@ export class HostsApiResponseProcessor { * @params response Response returned by the server for a request to listHosts * @throws ApiException if the response code was not in [200, 299] */ - public async listHosts(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listHosts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HostListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -312,15 +211,8 @@ export class HostsApiResponseProcessor { ) as HostListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -329,11 +221,8 @@ export class HostsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -341,17 +230,13 @@ export class HostsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostListResponse", - "" + "HostListResponse", "" ) as HostListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -361,10 +246,8 @@ export class HostsApiResponseProcessor { * @params response Response returned by the server for a request to muteHost * @throws ApiException if the response code was not in [200, 299] */ - public async muteHost(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async muteHost(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HostMuteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -372,15 +255,8 @@ export class HostsApiResponseProcessor { ) as HostMuteResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -389,11 +265,8 @@ export class HostsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -401,17 +274,13 @@ export class HostsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostMuteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostMuteResponse", - "" + "HostMuteResponse", "" ) as HostMuteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -421,12 +290,8 @@ export class HostsApiResponseProcessor { * @params response Response returned by the server for a request to unmuteHost * @throws ApiException if the response code was not in [200, 299] */ - public async unmuteHost( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async unmuteHost(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HostMuteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -434,15 +299,8 @@ export class HostsApiResponseProcessor { ) as HostMuteResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -451,11 +309,8 @@ export class HostsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -463,17 +318,13 @@ export class HostsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostMuteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostMuteResponse", - "" + "HostMuteResponse", "" ) as HostMuteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -482,7 +333,7 @@ export interface HostsApiGetHostTotalsRequest { * Number of seconds from which you want to get total number of active hosts. * @type number */ - from?: number; + from?: number } export interface HostsApiListHostsRequest { @@ -490,42 +341,42 @@ export interface HostsApiListHostsRequest { * String to filter search results. * @type string */ - filter?: string; + filter?: string /** * Sort hosts by this field. * @type string */ - sortField?: string; + sortField?: string /** * Direction of sort. Options include `asc` and `desc`. * @type string */ - sortDir?: string; + sortDir?: string /** * Specify the starting point for the host search results. For example, if you set `count` to 100 and the first 100 results have already been returned, you can set `start` to `101` to get the next 100 results. * @type number */ - start?: number; + start?: number /** * Number of hosts to return. Max 1000. * @type number */ - count?: number; + count?: number /** * Number of seconds since UNIX epoch from which you want to search your hosts. * @type number */ - from?: number; + from?: number /** * Include information on the muted status of hosts and when the mute expires. * @type boolean */ - includeMutedHostsData?: boolean; + includeMutedHostsData?: boolean /** * Include additional metadata about the hosts (agent_version, machine, platform, processor, etc.). * @type boolean */ - includeHostsMetadata?: boolean; + includeHostsMetadata?: boolean } export interface HostsApiMuteHostRequest { @@ -533,12 +384,12 @@ export interface HostsApiMuteHostRequest { * Name of the host to mute. * @type string */ - hostName: string; + hostName: string /** * Mute a host request body. * @type HostMuteSettings */ - body: HostMuteSettings; + body: HostMuteSettings } export interface HostsApiUnmuteHostRequest { @@ -546,7 +397,7 @@ export interface HostsApiUnmuteHostRequest { * Name of the host to unmute. * @type string */ - hostName: string; + hostName: string } export class HostsApi { @@ -554,16 +405,10 @@ export class HostsApi { private responseProcessor: HostsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: HostsApiRequestFactory, - responseProcessor?: HostsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: HostsApiRequestFactory, responseProcessor?: HostsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new HostsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new HostsApiResponseProcessor(); + this.requestFactory = requestFactory || new HostsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new HostsApiResponseProcessor(); } /** @@ -571,19 +416,11 @@ export class HostsApi { * Active means the host has reported in the past hour, and up means it has reported in the past two hours. * @param param The request object */ - public getHostTotals( - param: HostsApiGetHostTotalsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getHostTotals( - param.from, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getHostTotals(responseContext); + public getHostTotals(param: HostsApiGetHostTotalsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getHostTotals(param.from,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getHostTotals(responseContext); }); }); } @@ -595,26 +432,11 @@ export class HostsApi { * Results are paginated with a max of 1000 results at a time. * @param param The request object */ - public listHosts( - param: HostsApiListHostsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listHosts( - param.filter, - param.sortField, - param.sortDir, - param.start, - param.count, - param.from, - param.includeMutedHostsData, - param.includeHostsMetadata, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listHosts(responseContext); + public listHosts(param: HostsApiListHostsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listHosts(param.filter,param.sortField,param.sortDir,param.start,param.count,param.from,param.includeMutedHostsData,param.includeHostsMetadata,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listHosts(responseContext); }); }); } @@ -623,20 +445,11 @@ export class HostsApi { * Mute a host. **Note:** This creates a [Downtime V2](https://docs.datadoghq.com/api/latest/downtimes/#schedule-a-downtime) for the host. * @param param The request object */ - public muteHost( - param: HostsApiMuteHostRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.muteHost( - param.hostName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.muteHost(responseContext); + public muteHost(param: HostsApiMuteHostRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.muteHost(param.hostName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.muteHost(responseContext); }); }); } @@ -645,20 +458,12 @@ export class HostsApi { * Unmutes a host. This endpoint takes no JSON arguments. * @param param The request object */ - public unmuteHost( - param: HostsApiUnmuteHostRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.unmuteHost( - param.hostName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.unmuteHost(responseContext); + public unmuteHost(param: HostsApiUnmuteHostRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.unmuteHost(param.hostName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.unmuteHost(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/IPRangesApi.ts b/packages/datadog-api-client-v1/apis/IPRangesApi.ts index 25a4b039e49e..a81147ef6d45 100644 --- a/packages/datadog-api-client-v1/apis/IPRangesApi.ts +++ b/packages/datadog-api-client-v1/apis/IPRangesApi.ts @@ -1,29 +1,32 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { Configuration } from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IPRanges } from "../models/IPRanges"; export class IPRangesApiRequestFactory extends BaseAPIRequestFactory { + public async getIPRanges(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/"; + const localVarPath = '/'; // Make Request Context - const requestContext = _config - .getServer("v1.IPRangesApi.getIPRanges") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.IPRangesApi.getIPRanges').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); @@ -32,6 +35,7 @@ export class IPRangesApiRequestFactory extends BaseAPIRequestFactory { } export class IPRangesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -39,10 +43,8 @@ export class IPRangesApiResponseProcessor { * @params response Response returned by the server for a request to getIPRanges * @throws ApiException if the response code was not in [200, 299] */ - public async getIPRanges(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIPRanges(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IPRanges = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -51,10 +53,7 @@ export class IPRangesApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -63,11 +62,8 @@ export class IPRangesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -75,17 +71,13 @@ export class IPRangesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IPRanges = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IPRanges", - "" + "IPRanges", "" ) as IPRanges; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -94,30 +86,22 @@ export class IPRangesApi { private responseProcessor: IPRangesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: IPRangesApiRequestFactory, - responseProcessor?: IPRangesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: IPRangesApiRequestFactory, responseProcessor?: IPRangesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new IPRangesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new IPRangesApiResponseProcessor(); + this.requestFactory = requestFactory || new IPRangesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new IPRangesApiResponseProcessor(); } /** * Get information about Datadog IP ranges. * @param param The request object */ - public getIPRanges(options?: Configuration): Promise { + public getIPRanges( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.getIPRanges(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIPRanges(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIPRanges(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/KeyManagementApi.ts b/packages/datadog-api-client-v1/apis/KeyManagementApi.ts index 89db76b1a484..5c84c71045b1 100644 --- a/packages/datadog-api-client-v1/apis/KeyManagementApi.ts +++ b/packages/datadog-api-client-v1/apis/KeyManagementApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ApiKey } from "../models/ApiKey"; import { ApiKeyListResponse } from "../models/ApiKeyListResponse"; @@ -25,31 +23,26 @@ import { ApplicationKeyListResponse } from "../models/ApplicationKeyListResponse import { ApplicationKeyResponse } from "../models/ApplicationKeyResponse"; export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { - public async createAPIKey( - body: ApiKey, - _options?: Configuration - ): Promise { + + public async createAPIKey(body: ApiKey,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAPIKey"); + throw new RequiredError('body', 'createAPIKey'); } // Path Params - const localVarPath = "/api/v1/api_key"; + const localVarPath = '/api/v1/api_key'; // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.createAPIKey") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.KeyManagementApi.createAPIKey').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApiKey", ""), @@ -58,39 +51,30 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createApplicationKey( - body: ApplicationKey, - _options?: Configuration - ): Promise { + public async createApplicationKey(body: ApplicationKey,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createApplicationKey"); + throw new RequiredError('body', 'createApplicationKey'); } // Path Params - const localVarPath = "/api/v1/application_key"; + const localVarPath = '/api/v1/application_key'; // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.createApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.KeyManagementApi.createApplicationKey').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKey", ""), @@ -99,142 +83,99 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAPIKey( - key: string, - _options?: Configuration - ): Promise { + public async deleteAPIKey(key: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { - throw new RequiredError("key", "deleteAPIKey"); + throw new RequiredError('key', 'deleteAPIKey'); } // Path Params - const localVarPath = "/api/v1/api_key/{key}".replace( - "{key}", - encodeURIComponent(String(key)) - ); + const localVarPath = '/api/v1/api_key/{key}' + .replace('{key}', encodeURIComponent(String(key))); // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.deleteAPIKey") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.KeyManagementApi.deleteAPIKey').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApplicationKey( - key: string, - _options?: Configuration - ): Promise { + public async deleteApplicationKey(key: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { - throw new RequiredError("key", "deleteApplicationKey"); + throw new RequiredError('key', 'deleteApplicationKey'); } // Path Params - const localVarPath = "/api/v1/application_key/{key}".replace( - "{key}", - encodeURIComponent(String(key)) - ); + const localVarPath = '/api/v1/application_key/{key}' + .replace('{key}', encodeURIComponent(String(key))); // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.deleteApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.KeyManagementApi.deleteApplicationKey').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAPIKey( - key: string, - _options?: Configuration - ): Promise { + public async getAPIKey(key: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { - throw new RequiredError("key", "getAPIKey"); + throw new RequiredError('key', 'getAPIKey'); } // Path Params - const localVarPath = "/api/v1/api_key/{key}".replace( - "{key}", - encodeURIComponent(String(key)) - ); + const localVarPath = '/api/v1/api_key/{key}' + .replace('{key}', encodeURIComponent(String(key))); // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.getAPIKey") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.KeyManagementApi.getAPIKey').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getApplicationKey( - key: string, - _options?: Configuration - ): Promise { + public async getApplicationKey(key: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { - throw new RequiredError("key", "getApplicationKey"); + throw new RequiredError('key', 'getApplicationKey'); } // Path Params - const localVarPath = "/api/v1/application_key/{key}".replace( - "{key}", - encodeURIComponent(String(key)) - ); + const localVarPath = '/api/v1/application_key/{key}' + .replace('{key}', encodeURIComponent(String(key))); // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.getApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.KeyManagementApi.getApplicationKey').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } @@ -243,82 +184,61 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/api_key"; + const localVarPath = '/api/v1/api_key'; // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.listAPIKeys") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.KeyManagementApi.listAPIKeys').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listApplicationKeys( - _options?: Configuration - ): Promise { + public async listApplicationKeys(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/application_key"; + const localVarPath = '/api/v1/application_key'; // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.listApplicationKeys") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.KeyManagementApi.listApplicationKeys').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAPIKey( - key: string, - body: ApiKey, - _options?: Configuration - ): Promise { + public async updateAPIKey(key: string,body: ApiKey,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { - throw new RequiredError("key", "updateAPIKey"); + throw new RequiredError('key', 'updateAPIKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAPIKey"); + throw new RequiredError('body', 'updateAPIKey'); } // Path Params - const localVarPath = "/api/v1/api_key/{key}".replace( - "{key}", - encodeURIComponent(String(key)) - ); + const localVarPath = '/api/v1/api_key/{key}' + .replace('{key}', encodeURIComponent(String(key))); // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.updateAPIKey") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.KeyManagementApi.updateAPIKey').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApiKey", ""), @@ -327,48 +247,36 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateApplicationKey( - key: string, - body: ApplicationKey, - _options?: Configuration - ): Promise { + public async updateApplicationKey(key: string,body: ApplicationKey,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { - throw new RequiredError("key", "updateApplicationKey"); + throw new RequiredError('key', 'updateApplicationKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateApplicationKey"); + throw new RequiredError('body', 'updateApplicationKey'); } // Path Params - const localVarPath = "/api/v1/application_key/{key}".replace( - "{key}", - encodeURIComponent(String(key)) - ); + const localVarPath = '/api/v1/application_key/{key}' + .replace('{key}', encodeURIComponent(String(key))); // Make Request Context - const requestContext = _config - .getServer("v1.KeyManagementApi.updateApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.KeyManagementApi.updateApplicationKey').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKey", ""), @@ -377,16 +285,14 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class KeyManagementApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -394,12 +300,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to createAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async createAPIKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -407,15 +309,8 @@ export class KeyManagementApiResponseProcessor { ) as ApiKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -424,11 +319,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -436,17 +328,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApiKeyResponse", - "" + "ApiKeyResponse", "" ) as ApiKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -456,12 +344,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to createApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async createApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -469,16 +353,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -487,11 +363,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -499,17 +372,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -519,12 +388,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAPIKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -532,16 +397,8 @@ export class KeyManagementApiResponseProcessor { ) as ApiKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -550,11 +407,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -562,17 +416,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApiKeyResponse", - "" + "ApiKeyResponse", "" ) as ApiKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -582,12 +432,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -595,15 +441,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -612,11 +451,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -624,17 +460,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -644,10 +476,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to getAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIKey(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -655,15 +485,8 @@ export class KeyManagementApiResponseProcessor { ) as ApiKeyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -672,11 +495,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -684,17 +504,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApiKeyResponse", - "" + "ApiKeyResponse", "" ) as ApiKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -704,12 +520,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to getApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async getApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -717,15 +529,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -734,11 +539,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -746,17 +548,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -766,12 +564,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to listAPIKeys * @throws ApiException if the response code was not in [200, 299] */ - public async listAPIKeys( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAPIKeys(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApiKeyListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -779,11 +573,8 @@ export class KeyManagementApiResponseProcessor { ) as ApiKeyListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -792,11 +583,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -804,17 +592,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApiKeyListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApiKeyListResponse", - "" + "ApiKeyListResponse", "" ) as ApiKeyListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -824,12 +608,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to listApplicationKeys * @throws ApiException if the response code was not in [200, 299] */ - public async listApplicationKeys( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listApplicationKeys(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -837,11 +617,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -850,11 +627,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -862,17 +636,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyListResponse", - "" + "ApplicationKeyListResponse", "" ) as ApplicationKeyListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -882,12 +652,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async updateAPIKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -895,16 +661,8 @@ export class KeyManagementApiResponseProcessor { ) as ApiKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -913,11 +671,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -925,17 +680,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApiKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApiKeyResponse", - "" + "ApiKeyResponse", "" ) as ApiKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -945,12 +696,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async updateApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -958,17 +705,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -977,11 +715,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -989,17 +724,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1007,14 +738,14 @@ export interface KeyManagementApiCreateAPIKeyRequest { /** * @type ApiKey */ - body: ApiKey; + body: ApiKey } export interface KeyManagementApiCreateApplicationKeyRequest { /** * @type ApplicationKey */ - body: ApplicationKey; + body: ApplicationKey } export interface KeyManagementApiDeleteAPIKeyRequest { @@ -1022,7 +753,7 @@ export interface KeyManagementApiDeleteAPIKeyRequest { * The specific API key you are working with. * @type string */ - key: string; + key: string } export interface KeyManagementApiDeleteApplicationKeyRequest { @@ -1030,7 +761,7 @@ export interface KeyManagementApiDeleteApplicationKeyRequest { * The specific APP key you are working with. * @type string */ - key: string; + key: string } export interface KeyManagementApiGetAPIKeyRequest { @@ -1038,7 +769,7 @@ export interface KeyManagementApiGetAPIKeyRequest { * The specific API key you are working with. * @type string */ - key: string; + key: string } export interface KeyManagementApiGetApplicationKeyRequest { @@ -1046,7 +777,7 @@ export interface KeyManagementApiGetApplicationKeyRequest { * The specific APP key you are working with. * @type string */ - key: string; + key: string } export interface KeyManagementApiUpdateAPIKeyRequest { @@ -1054,11 +785,11 @@ export interface KeyManagementApiUpdateAPIKeyRequest { * The specific API key you are working with. * @type string */ - key: string; + key: string /** * @type ApiKey */ - body: ApiKey; + body: ApiKey } export interface KeyManagementApiUpdateApplicationKeyRequest { @@ -1066,11 +797,11 @@ export interface KeyManagementApiUpdateApplicationKeyRequest { * The specific APP key you are working with. * @type string */ - key: string; + key: string /** * @type ApplicationKey */ - body: ApplicationKey; + body: ApplicationKey } export class KeyManagementApi { @@ -1078,35 +809,21 @@ export class KeyManagementApi { private responseProcessor: KeyManagementApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: KeyManagementApiRequestFactory, - responseProcessor?: KeyManagementApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: KeyManagementApiRequestFactory, responseProcessor?: KeyManagementApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new KeyManagementApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new KeyManagementApiResponseProcessor(); + this.requestFactory = requestFactory || new KeyManagementApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new KeyManagementApiResponseProcessor(); } /** * Creates an API key with a given name. * @param param The request object */ - public createAPIKey( - param: KeyManagementApiCreateAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAPIKey( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAPIKey(responseContext); + public createAPIKey(param: KeyManagementApiCreateAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAPIKey(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAPIKey(responseContext); }); }); } @@ -1115,19 +832,11 @@ export class KeyManagementApi { * Create an application key with a given name. * @param param The request object */ - public createApplicationKey( - param: KeyManagementApiCreateApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createApplicationKey( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createApplicationKey(responseContext); + public createApplicationKey(param: KeyManagementApiCreateApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createApplicationKey(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createApplicationKey(responseContext); }); }); } @@ -1136,19 +845,11 @@ export class KeyManagementApi { * Delete a given API key. * @param param The request object */ - public deleteAPIKey( - param: KeyManagementApiDeleteAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAPIKey( - param.key, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAPIKey(responseContext); + public deleteAPIKey(param: KeyManagementApiDeleteAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAPIKey(param.key,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAPIKey(responseContext); }); }); } @@ -1157,19 +858,11 @@ export class KeyManagementApi { * Delete a given application key. * @param param The request object */ - public deleteApplicationKey( - param: KeyManagementApiDeleteApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteApplicationKey( - param.key, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApplicationKey(responseContext); + public deleteApplicationKey(param: KeyManagementApiDeleteApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApplicationKey(param.key,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApplicationKey(responseContext); }); }); } @@ -1178,19 +871,11 @@ export class KeyManagementApi { * Get a given API key. * @param param The request object */ - public getAPIKey( - param: KeyManagementApiGetAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAPIKey( - param.key, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAPIKey(responseContext); + public getAPIKey(param: KeyManagementApiGetAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAPIKey(param.key,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAPIKey(responseContext); }); }); } @@ -1199,19 +884,11 @@ export class KeyManagementApi { * Get a given application key. * @param param The request object */ - public getApplicationKey( - param: KeyManagementApiGetApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getApplicationKey( - param.key, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getApplicationKey(responseContext); + public getApplicationKey(param: KeyManagementApiGetApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getApplicationKey(param.key,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getApplicationKey(responseContext); }); }); } @@ -1220,13 +897,11 @@ export class KeyManagementApi { * Get all API keys available for your account. * @param param The request object */ - public listAPIKeys(options?: Configuration): Promise { + public listAPIKeys( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listAPIKeys(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAPIKeys(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAPIKeys(responseContext); }); }); } @@ -1235,16 +910,11 @@ export class KeyManagementApi { * Get all application keys available for your Datadog account. * @param param The request object */ - public listApplicationKeys( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listApplicationKeys(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listApplicationKeys(responseContext); + public listApplicationKeys( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listApplicationKeys(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listApplicationKeys(responseContext); }); }); } @@ -1253,20 +923,11 @@ export class KeyManagementApi { * Edit an API key name. * @param param The request object */ - public updateAPIKey( - param: KeyManagementApiUpdateAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAPIKey( - param.key, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAPIKey(responseContext); + public updateAPIKey(param: KeyManagementApiUpdateAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAPIKey(param.key,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAPIKey(responseContext); }); }); } @@ -1275,21 +936,12 @@ export class KeyManagementApi { * Edit an application key name. * @param param The request object */ - public updateApplicationKey( - param: KeyManagementApiUpdateApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateApplicationKey( - param.key, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateApplicationKey(responseContext); + public updateApplicationKey(param: KeyManagementApiUpdateApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateApplicationKey(param.key,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateApplicationKey(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/LogsApi.ts b/packages/datadog-api-client-v1/apis/LogsApi.ts index 40c9e95df92b..823ea157f0e3 100644 --- a/packages/datadog-api-client-v1/apis/LogsApi.ts +++ b/packages/datadog-api-client-v1/apis/LogsApi.ts @@ -1,23 +1,22 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ContentEncoding } from "../models/ContentEncoding"; +import { HTTPLog } from "../models/HTTPLog"; import { HTTPLogError } from "../models/HTTPLogError"; import { HTTPLogItem } from "../models/HTTPLogItem"; import { LogsAPIErrorResponse } from "../models/LogsAPIErrorResponse"; @@ -25,31 +24,26 @@ import { LogsListRequest } from "../models/LogsListRequest"; import { LogsListResponse } from "../models/LogsListResponse"; export class LogsApiRequestFactory extends BaseAPIRequestFactory { - public async listLogs( - body: LogsListRequest, - _options?: Configuration - ): Promise { + + public async listLogs(body: LogsListRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "listLogs"); + throw new RequiredError('body', 'listLogs'); } // Path Params - const localVarPath = "/api/v1/logs-queries/list"; + const localVarPath = '/api/v1/logs-queries/list'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsApi.listLogs") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.LogsApi.listLogs').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsListRequest", ""), @@ -58,52 +52,35 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async submitLog( - body: Array, - contentEncoding?: ContentEncoding, - ddtags?: string, - _options?: Configuration - ): Promise { + public async submitLog(body: Array,contentEncoding?: ContentEncoding,ddtags?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "submitLog"); + throw new RequiredError('body', 'submitLog'); } // Path Params - const localVarPath = "/v1/input"; + const localVarPath = '/v1/input'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsApi.submitLog") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.LogsApi.submitLog').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (ddtags !== undefined) { - requestContext.setQueryParam( - "ddtags", - ObjectSerializer.serialize(ddtags, "string", ""), - "" - ); + requestContext.setQueryParam("ddtags", ObjectSerializer.serialize(ddtags, "string", ""), ""); } // Header Params if (contentEncoding !== undefined) { - requestContext.setHeaderParam( - "Content-Encoding", - ObjectSerializer.serialize(contentEncoding, "ContentEncoding", "") - ); + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer.serialize(contentEncoding, "ContentEncoding", "")); } // Body Params @@ -111,8 +88,7 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { "application/json", "application/json;simple", "application/logplex-1", - "text/plain", - ]); + "text/plain"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Array", ""), @@ -128,6 +104,7 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { } export class LogsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -135,10 +112,8 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to listLogs * @throws ApiException if the response code was not in [200, 299] */ - public async listLogs(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -147,10 +122,7 @@ export class LogsApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -159,21 +131,12 @@ export class LogsApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -182,11 +145,8 @@ export class LogsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -194,17 +154,13 @@ export class LogsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsListResponse", - "" + "LogsListResponse", "" ) as LogsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -214,10 +170,8 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to submitLog * @throws ApiException if the response code was not in [200, 299] */ - public async submitLog(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async submitLog(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -226,10 +180,7 @@ export class LogsApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: HTTPLogError; try { body = ObjectSerializer.deserialize( @@ -239,14 +190,11 @@ export class LogsApiResponseProcessor { } catch (error) { logger.debug(`Got error deserializing error: ${error}`); throw new ApiException(response.httpStatusCode, bodyText); - } + } throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -255,11 +203,8 @@ export class LogsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -267,17 +212,13 @@ export class LogsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -286,7 +227,7 @@ export interface LogsApiListLogsRequest { * Logs filter * @type LogsListRequest */ - body: LogsListRequest; + body: LogsListRequest } export interface LogsApiSubmitLogRequest { @@ -294,17 +235,17 @@ export interface LogsApiSubmitLogRequest { * Log to send (JSON format). * @type Array */ - body: Array; + body: Array /** * HTTP header used to compress the media-type. * @type ContentEncoding */ - contentEncoding?: ContentEncoding; + contentEncoding?: ContentEncoding /** * Log tags can be passed as query parameters with `text/plain` content type. * @type string */ - ddtags?: string; + ddtags?: string } export class LogsApi { @@ -312,61 +253,47 @@ export class LogsApi { private responseProcessor: LogsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsApiRequestFactory, - responseProcessor?: LogsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsApiRequestFactory, responseProcessor?: LogsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new LogsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsApiResponseProcessor(); } /** * List endpoint returns logs that match a log search query. * [Results are paginated][1]. - * + * * **If you are considering archiving logs for your organization, * consider use of the Datadog archive capabilities instead of the log list API. * See [Datadog Logs Archive documentation][2].** - * + * * [1]: /logs/guide/collect-multiple-logs-with-pagination * [2]: https://docs.datadoghq.com/logs/archives * @param param The request object */ - public listLogs( - param: LogsApiListLogsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listLogs( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogs(responseContext); + public listLogs(param: LogsApiListLogsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listLogs(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogs(responseContext); }); }); } /** * Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - * + * * - Maximum content size per payload (uncompressed): 5MB * - Maximum size for a single log: 1MB * - Maximum array size if sending multiple logs in an array: 1000 entries - * + * * Any log exceeding 1MB is accepted and truncated by Datadog: * - For a single log request, the API truncates the log at 1MB and returns a 2xx. * - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. - * + * * Datadog recommends sending your logs compressed. * Add the `Content-Encoding: gzip` header to the request when sending compressed logs. - * + * * The status codes answered by the HTTP API are: * - 200: OK * - 400: Bad request (likely an issue in the payload formatting) @@ -375,22 +302,12 @@ export class LogsApi { * - 5xx: Internal error, request should be retried after some time * @param param The request object */ - public submitLog( - param: LogsApiSubmitLogRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.submitLog( - param.body, - param.contentEncoding, - param.ddtags, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.submitLog(responseContext); + public submitLog(param: LogsApiSubmitLogRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.submitLog(param.body,param.contentEncoding,param.ddtags,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.submitLog(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/LogsIndexesApi.ts b/packages/datadog-api-client-v1/apis/LogsIndexesApi.ts index 954e94ebd958..f6d95c5802ed 100644 --- a/packages/datadog-api-client-v1/apis/LogsIndexesApi.ts +++ b/packages/datadog-api-client-v1/apis/LogsIndexesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { LogsAPIErrorResponse } from "../models/LogsAPIErrorResponse"; import { LogsIndex } from "../models/LogsIndex"; @@ -24,31 +22,26 @@ import { LogsIndexListResponse } from "../models/LogsIndexListResponse"; import { LogsIndexUpdateRequest } from "../models/LogsIndexUpdateRequest"; export class LogsIndexesApiRequestFactory extends BaseAPIRequestFactory { - public async createLogsIndex( - body: LogsIndex, - _options?: Configuration - ): Promise { + + public async createLogsIndex(body: LogsIndex,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createLogsIndex"); + throw new RequiredError('body', 'createLogsIndex'); } // Path Params - const localVarPath = "/api/v1/logs/config/indexes"; + const localVarPath = '/api/v1/logs/config/indexes'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.createLogsIndex") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.LogsIndexesApi.createLogsIndex').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsIndex", ""), @@ -57,163 +50,116 @@ export class LogsIndexesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteLogsIndex( - name: string, - _options?: Configuration - ): Promise { + public async deleteLogsIndex(name: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("name", "deleteLogsIndex"); + throw new RequiredError('name', 'deleteLogsIndex'); } // Path Params - const localVarPath = "/api/v1/logs/config/indexes/{name}".replace( - "{name}", - encodeURIComponent(String(name)) - ); + const localVarPath = '/api/v1/logs/config/indexes/{name}' + .replace('{name}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.deleteLogsIndex") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.LogsIndexesApi.deleteLogsIndex').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsIndex( - name: string, - _options?: Configuration - ): Promise { + public async getLogsIndex(name: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("name", "getLogsIndex"); + throw new RequiredError('name', 'getLogsIndex'); } // Path Params - const localVarPath = "/api/v1/logs/config/indexes/{name}".replace( - "{name}", - encodeURIComponent(String(name)) - ); + const localVarPath = '/api/v1/logs/config/indexes/{name}' + .replace('{name}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.getLogsIndex") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.LogsIndexesApi.getLogsIndex').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsIndexOrder( - _options?: Configuration - ): Promise { + public async getLogsIndexOrder(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/logs/config/index-order"; + const localVarPath = '/api/v1/logs/config/index-order'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.getLogsIndexOrder") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.LogsIndexesApi.getLogsIndexOrder').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogIndexes( - _options?: Configuration - ): Promise { + public async listLogIndexes(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/logs/config/indexes"; + const localVarPath = '/api/v1/logs/config/indexes'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.listLogIndexes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.LogsIndexesApi.listLogIndexes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsIndex( - name: string, - body: LogsIndexUpdateRequest, - _options?: Configuration - ): Promise { + public async updateLogsIndex(name: string,body: LogsIndexUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("name", "updateLogsIndex"); + throw new RequiredError('name', 'updateLogsIndex'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsIndex"); + throw new RequiredError('body', 'updateLogsIndex'); } // Path Params - const localVarPath = "/api/v1/logs/config/indexes/{name}".replace( - "{name}", - encodeURIComponent(String(name)) - ); + const localVarPath = '/api/v1/logs/config/indexes/{name}' + .replace('{name}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.updateLogsIndex") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.LogsIndexesApi.updateLogsIndex').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsIndexUpdateRequest", ""), @@ -222,39 +168,30 @@ export class LogsIndexesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsIndexOrder( - body: LogsIndexesOrder, - _options?: Configuration - ): Promise { + public async updateLogsIndexOrder(body: LogsIndexesOrder,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsIndexOrder"); + throw new RequiredError('body', 'updateLogsIndexOrder'); } // Path Params - const localVarPath = "/api/v1/logs/config/index-order"; + const localVarPath = '/api/v1/logs/config/index-order'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsIndexesApi.updateLogsIndexOrder") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.LogsIndexesApi.updateLogsIndexOrder').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsIndexesOrder", ""), @@ -263,16 +200,14 @@ export class LogsIndexesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class LogsIndexesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -280,10 +215,8 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to createLogsIndex * @throws ApiException if the response code was not in [200, 299] */ - public async createLogsIndex(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createLogsIndex(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsIndex = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -292,10 +225,7 @@ export class LogsIndexesApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -304,21 +234,12 @@ export class LogsIndexesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -327,11 +248,8 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -339,17 +257,13 @@ export class LogsIndexesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsIndex = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsIndex", - "" + "LogsIndex", "" ) as LogsIndex; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -359,18 +273,13 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to deleteLogsIndex * @throws ApiException if the response code was not in [200, 299] */ - public async deleteLogsIndex(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteLogsIndex(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -379,18 +288,12 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 404) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -399,32 +302,22 @@ export class LogsIndexesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -434,10 +327,8 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to getLogsIndex * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsIndex(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsIndex(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsIndex = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -445,11 +336,8 @@ export class LogsIndexesApiResponseProcessor { ) as LogsIndex; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -458,18 +346,12 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 404) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -478,32 +360,22 @@ export class LogsIndexesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsIndex = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsIndex", - "" + "LogsIndex", "" ) as LogsIndex; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -513,12 +385,8 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to getLogsIndexOrder * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsIndexOrder( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsIndexOrder(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsIndexesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -526,11 +394,8 @@ export class LogsIndexesApiResponseProcessor { ) as LogsIndexesOrder; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -539,11 +404,8 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -551,17 +413,13 @@ export class LogsIndexesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsIndexesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsIndexesOrder", - "" + "LogsIndexesOrder", "" ) as LogsIndexesOrder; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -571,12 +429,8 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to listLogIndexes * @throws ApiException if the response code was not in [200, 299] */ - public async listLogIndexes( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogIndexes(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsIndexListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -584,11 +438,8 @@ export class LogsIndexesApiResponseProcessor { ) as LogsIndexListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -597,11 +448,8 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -609,17 +457,13 @@ export class LogsIndexesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsIndexListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsIndexListResponse", - "" + "LogsIndexListResponse", "" ) as LogsIndexListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -629,10 +473,8 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsIndex * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsIndex(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsIndex(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsIndex = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -640,11 +482,8 @@ export class LogsIndexesApiResponseProcessor { ) as LogsIndex; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -653,21 +492,12 @@ export class LogsIndexesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -676,11 +506,8 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -688,17 +515,13 @@ export class LogsIndexesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsIndex = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsIndex", - "" + "LogsIndex", "" ) as LogsIndex; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -708,12 +531,8 @@ export class LogsIndexesApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsIndexOrder * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsIndexOrder( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsIndexOrder(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsIndexesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -722,10 +541,7 @@ export class LogsIndexesApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -734,21 +550,12 @@ export class LogsIndexesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -757,11 +564,8 @@ export class LogsIndexesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -769,17 +573,13 @@ export class LogsIndexesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsIndexesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsIndexesOrder", - "" + "LogsIndexesOrder", "" ) as LogsIndexesOrder; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -788,7 +588,7 @@ export interface LogsIndexesApiCreateLogsIndexRequest { * Object containing the new index. * @type LogsIndex */ - body: LogsIndex; + body: LogsIndex } export interface LogsIndexesApiDeleteLogsIndexRequest { @@ -796,7 +596,7 @@ export interface LogsIndexesApiDeleteLogsIndexRequest { * Name of the log index. * @type string */ - name: string; + name: string } export interface LogsIndexesApiGetLogsIndexRequest { @@ -804,7 +604,7 @@ export interface LogsIndexesApiGetLogsIndexRequest { * Name of the log index. * @type string */ - name: string; + name: string } export interface LogsIndexesApiUpdateLogsIndexRequest { @@ -812,12 +612,12 @@ export interface LogsIndexesApiUpdateLogsIndexRequest { * Name of the log index. * @type string */ - name: string; + name: string /** * Object containing the new `LogsIndexUpdateRequest`. * @type LogsIndexUpdateRequest */ - body: LogsIndexUpdateRequest; + body: LogsIndexUpdateRequest } export interface LogsIndexesApiUpdateLogsIndexOrderRequest { @@ -825,7 +625,7 @@ export interface LogsIndexesApiUpdateLogsIndexOrderRequest { * Object containing the new ordered list of index names * @type LogsIndexesOrder */ - body: LogsIndexesOrder; + body: LogsIndexesOrder } export class LogsIndexesApi { @@ -833,35 +633,21 @@ export class LogsIndexesApi { private responseProcessor: LogsIndexesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsIndexesApiRequestFactory, - responseProcessor?: LogsIndexesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsIndexesApiRequestFactory, responseProcessor?: LogsIndexesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new LogsIndexesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsIndexesApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsIndexesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsIndexesApiResponseProcessor(); } /** * Creates a new index. Returns the Index object passed in the request body when the request is successful. * @param param The request object */ - public createLogsIndex( - param: LogsIndexesApiCreateLogsIndexRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createLogsIndex( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createLogsIndex(responseContext); + public createLogsIndex(param: LogsIndexesApiCreateLogsIndexRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createLogsIndex(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createLogsIndex(responseContext); }); }); } @@ -871,19 +657,11 @@ export class LogsIndexesApi { * You cannot recreate an index with the same name as deleted ones. * @param param The request object */ - public deleteLogsIndex( - param: LogsIndexesApiDeleteLogsIndexRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteLogsIndex( - param.name, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteLogsIndex(responseContext); + public deleteLogsIndex(param: LogsIndexesApiDeleteLogsIndexRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteLogsIndex(param.name,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteLogsIndex(responseContext); }); }); } @@ -892,19 +670,11 @@ export class LogsIndexesApi { * Get one log index from your organization. This endpoint takes no JSON arguments. * @param param The request object */ - public getLogsIndex( - param: LogsIndexesApiGetLogsIndexRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getLogsIndex( - param.name, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsIndex(responseContext); + public getLogsIndex(param: LogsIndexesApiGetLogsIndexRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsIndex(param.name,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsIndex(responseContext); }); }); } @@ -913,14 +683,11 @@ export class LogsIndexesApi { * Get the current order of your log indexes. This endpoint takes no JSON arguments. * @param param The request object */ - public getLogsIndexOrder(options?: Configuration): Promise { - const requestContextPromise = - this.requestFactory.getLogsIndexOrder(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsIndexOrder(responseContext); + public getLogsIndexOrder( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsIndexOrder(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsIndexOrder(responseContext); }); }); } @@ -930,15 +697,11 @@ export class LogsIndexesApi { * This endpoint returns an array of the `LogIndex` objects of your organization. * @param param The request object */ - public listLogIndexes( - options?: Configuration - ): Promise { + public listLogIndexes( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listLogIndexes(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogIndexes(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogIndexes(responseContext); }); }); } @@ -946,25 +709,16 @@ export class LogsIndexesApi { /** * Update an index as identified by its name. * Returns the Index object passed in the request body when the request is successful. - * + * * Using the `PUT` method updates your index’s configuration by **replacing** * your current configuration with the new one sent to your Datadog organization. * @param param The request object */ - public updateLogsIndex( - param: LogsIndexesApiUpdateLogsIndexRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsIndex( - param.name, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsIndex(responseContext); + public updateLogsIndex(param: LogsIndexesApiUpdateLogsIndexRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsIndex(param.name,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsIndex(responseContext); }); }); } @@ -974,20 +728,12 @@ export class LogsIndexesApi { * It returns the index order object passed in the request body when the request is successful. * @param param The request object */ - public updateLogsIndexOrder( - param: LogsIndexesApiUpdateLogsIndexOrderRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsIndexOrder( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsIndexOrder(responseContext); + public updateLogsIndexOrder(param: LogsIndexesApiUpdateLogsIndexOrderRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsIndexOrder(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsIndexOrder(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/LogsPipelinesApi.ts b/packages/datadog-api-client-v1/apis/LogsPipelinesApi.ts index 1382df6284b3..32726ae790c2 100644 --- a/packages/datadog-api-client-v1/apis/LogsPipelinesApi.ts +++ b/packages/datadog-api-client-v1/apis/LogsPipelinesApi.ts @@ -1,52 +1,46 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { LogsAPIErrorResponse } from "../models/LogsAPIErrorResponse"; import { LogsPipeline } from "../models/LogsPipeline"; +import { LogsPipelineList } from "../models/LogsPipelineList"; import { LogsPipelinesOrder } from "../models/LogsPipelinesOrder"; export class LogsPipelinesApiRequestFactory extends BaseAPIRequestFactory { - public async createLogsPipeline( - body: LogsPipeline, - _options?: Configuration - ): Promise { + + public async createLogsPipeline(body: LogsPipeline,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createLogsPipeline"); + throw new RequiredError('body', 'createLogsPipeline'); } // Path Params - const localVarPath = "/api/v1/logs/config/pipelines"; + const localVarPath = '/api/v1/logs/config/pipelines'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.createLogsPipeline") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.LogsPipelinesApi.createLogsPipeline').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsPipeline", ""), @@ -55,162 +49,116 @@ export class LogsPipelinesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteLogsPipeline( - pipelineId: string, - _options?: Configuration - ): Promise { + public async deleteLogsPipeline(pipelineId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'pipelineId' is not null or undefined if (pipelineId === null || pipelineId === undefined) { - throw new RequiredError("pipelineId", "deleteLogsPipeline"); + throw new RequiredError('pipelineId', 'deleteLogsPipeline'); } // Path Params - const localVarPath = "/api/v1/logs/config/pipelines/{pipeline_id}".replace( - "{pipeline_id}", - encodeURIComponent(String(pipelineId)) - ); + const localVarPath = '/api/v1/logs/config/pipelines/{pipeline_id}' + .replace('{pipeline_id}', encodeURIComponent(String(pipelineId))); // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.deleteLogsPipeline") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.LogsPipelinesApi.deleteLogsPipeline').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsPipeline( - pipelineId: string, - _options?: Configuration - ): Promise { + public async getLogsPipeline(pipelineId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'pipelineId' is not null or undefined if (pipelineId === null || pipelineId === undefined) { - throw new RequiredError("pipelineId", "getLogsPipeline"); + throw new RequiredError('pipelineId', 'getLogsPipeline'); } // Path Params - const localVarPath = "/api/v1/logs/config/pipelines/{pipeline_id}".replace( - "{pipeline_id}", - encodeURIComponent(String(pipelineId)) - ); + const localVarPath = '/api/v1/logs/config/pipelines/{pipeline_id}' + .replace('{pipeline_id}', encodeURIComponent(String(pipelineId))); // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.getLogsPipeline") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.LogsPipelinesApi.getLogsPipeline').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsPipelineOrder( - _options?: Configuration - ): Promise { + public async getLogsPipelineOrder(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/logs/config/pipeline-order"; + const localVarPath = '/api/v1/logs/config/pipeline-order'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.getLogsPipelineOrder") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.LogsPipelinesApi.getLogsPipelineOrder').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogsPipelines( - _options?: Configuration - ): Promise { + public async listLogsPipelines(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/logs/config/pipelines"; + const localVarPath = '/api/v1/logs/config/pipelines'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.listLogsPipelines") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.LogsPipelinesApi.listLogsPipelines').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsPipeline( - pipelineId: string, - body: LogsPipeline, - _options?: Configuration - ): Promise { + public async updateLogsPipeline(pipelineId: string,body: LogsPipeline,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'pipelineId' is not null or undefined if (pipelineId === null || pipelineId === undefined) { - throw new RequiredError("pipelineId", "updateLogsPipeline"); + throw new RequiredError('pipelineId', 'updateLogsPipeline'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsPipeline"); + throw new RequiredError('body', 'updateLogsPipeline'); } // Path Params - const localVarPath = "/api/v1/logs/config/pipelines/{pipeline_id}".replace( - "{pipeline_id}", - encodeURIComponent(String(pipelineId)) - ); + const localVarPath = '/api/v1/logs/config/pipelines/{pipeline_id}' + .replace('{pipeline_id}', encodeURIComponent(String(pipelineId))); // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.updateLogsPipeline") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.LogsPipelinesApi.updateLogsPipeline').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsPipeline", ""), @@ -219,39 +167,30 @@ export class LogsPipelinesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsPipelineOrder( - body: LogsPipelinesOrder, - _options?: Configuration - ): Promise { + public async updateLogsPipelineOrder(body: LogsPipelinesOrder,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsPipelineOrder"); + throw new RequiredError('body', 'updateLogsPipelineOrder'); } // Path Params - const localVarPath = "/api/v1/logs/config/pipeline-order"; + const localVarPath = '/api/v1/logs/config/pipeline-order'; // Make Request Context - const requestContext = _config - .getServer("v1.LogsPipelinesApi.updateLogsPipelineOrder") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.LogsPipelinesApi.updateLogsPipelineOrder').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsPipelinesOrder", ""), @@ -260,16 +199,14 @@ export class LogsPipelinesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class LogsPipelinesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -277,12 +214,8 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to createLogsPipeline * @throws ApiException if the response code was not in [200, 299] */ - public async createLogsPipeline( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createLogsPipeline(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsPipeline = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -291,10 +224,7 @@ export class LogsPipelinesApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -303,21 +233,12 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -326,11 +247,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -338,17 +256,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsPipeline = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsPipeline", - "" + "LogsPipeline", "" ) as LogsPipeline; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -358,18 +272,13 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to deleteLogsPipeline * @throws ApiException if the response code was not in [200, 299] */ - public async deleteLogsPipeline(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteLogsPipeline(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -378,21 +287,12 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -401,11 +301,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -413,17 +310,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -433,12 +326,8 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to getLogsPipeline * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsPipeline( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsPipeline(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsPipeline = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -447,10 +336,7 @@ export class LogsPipelinesApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -459,21 +345,12 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -482,11 +359,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -494,17 +368,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsPipeline = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsPipeline", - "" + "LogsPipeline", "" ) as LogsPipeline; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -514,12 +384,8 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to getLogsPipelineOrder * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsPipelineOrder( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsPipelineOrder(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsPipelinesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -527,11 +393,8 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsPipelinesOrder; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -540,11 +403,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -552,17 +412,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsPipelinesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsPipelinesOrder", - "" + "LogsPipelinesOrder", "" ) as LogsPipelinesOrder; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -572,12 +428,8 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to listLogsPipelines * @throws ApiException if the response code was not in [200, 299] */ - public async listLogsPipelines( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogsPipelines(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -585,11 +437,8 @@ export class LogsPipelinesApiResponseProcessor { ) as Array; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -598,11 +447,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -610,17 +456,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -630,12 +472,8 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsPipeline * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsPipeline( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsPipeline(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsPipeline = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -644,10 +482,7 @@ export class LogsPipelinesApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -656,21 +491,12 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -679,11 +505,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -691,17 +514,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsPipeline = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsPipeline", - "" + "LogsPipeline", "" ) as LogsPipeline; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -711,12 +530,8 @@ export class LogsPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsPipelineOrder * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsPipelineOrder( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsPipelineOrder(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsPipelinesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -724,11 +539,8 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsPipelinesOrder; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 422) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 422) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: LogsAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -737,21 +549,12 @@ export class LogsPipelinesApiResponseProcessor { ) as LogsAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -760,11 +563,8 @@ export class LogsPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -772,17 +572,13 @@ export class LogsPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsPipelinesOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsPipelinesOrder", - "" + "LogsPipelinesOrder", "" ) as LogsPipelinesOrder; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -791,7 +587,7 @@ export interface LogsPipelinesApiCreateLogsPipelineRequest { * Definition of the new pipeline. * @type LogsPipeline */ - body: LogsPipeline; + body: LogsPipeline } export interface LogsPipelinesApiDeleteLogsPipelineRequest { @@ -799,7 +595,7 @@ export interface LogsPipelinesApiDeleteLogsPipelineRequest { * ID of the pipeline to delete. * @type string */ - pipelineId: string; + pipelineId: string } export interface LogsPipelinesApiGetLogsPipelineRequest { @@ -807,7 +603,7 @@ export interface LogsPipelinesApiGetLogsPipelineRequest { * ID of the pipeline to get. * @type string */ - pipelineId: string; + pipelineId: string } export interface LogsPipelinesApiUpdateLogsPipelineRequest { @@ -815,12 +611,12 @@ export interface LogsPipelinesApiUpdateLogsPipelineRequest { * ID of the pipeline to delete. * @type string */ - pipelineId: string; + pipelineId: string /** * New definition of the pipeline. * @type LogsPipeline */ - body: LogsPipeline; + body: LogsPipeline } export interface LogsPipelinesApiUpdateLogsPipelineOrderRequest { @@ -828,7 +624,7 @@ export interface LogsPipelinesApiUpdateLogsPipelineOrderRequest { * Object containing the new ordered list of pipeline IDs. * @type LogsPipelinesOrder */ - body: LogsPipelinesOrder; + body: LogsPipelinesOrder } export class LogsPipelinesApi { @@ -836,35 +632,21 @@ export class LogsPipelinesApi { private responseProcessor: LogsPipelinesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsPipelinesApiRequestFactory, - responseProcessor?: LogsPipelinesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsPipelinesApiRequestFactory, responseProcessor?: LogsPipelinesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new LogsPipelinesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsPipelinesApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsPipelinesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsPipelinesApiResponseProcessor(); } /** * Create a pipeline in your organization. * @param param The request object */ - public createLogsPipeline( - param: LogsPipelinesApiCreateLogsPipelineRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createLogsPipeline( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createLogsPipeline(responseContext); + public createLogsPipeline(param: LogsPipelinesApiCreateLogsPipelineRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createLogsPipeline(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createLogsPipeline(responseContext); }); }); } @@ -874,19 +656,11 @@ export class LogsPipelinesApi { * This endpoint takes no JSON arguments. * @param param The request object */ - public deleteLogsPipeline( - param: LogsPipelinesApiDeleteLogsPipelineRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteLogsPipeline( - param.pipelineId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteLogsPipeline(responseContext); + public deleteLogsPipeline(param: LogsPipelinesApiDeleteLogsPipelineRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteLogsPipeline(param.pipelineId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteLogsPipeline(responseContext); }); }); } @@ -896,19 +670,11 @@ export class LogsPipelinesApi { * This endpoint takes no JSON arguments. * @param param The request object */ - public getLogsPipeline( - param: LogsPipelinesApiGetLogsPipelineRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getLogsPipeline( - param.pipelineId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsPipeline(responseContext); + public getLogsPipeline(param: LogsPipelinesApiGetLogsPipelineRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsPipeline(param.pipelineId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsPipeline(responseContext); }); }); } @@ -918,16 +684,11 @@ export class LogsPipelinesApi { * This endpoint takes no JSON arguments. * @param param The request object */ - public getLogsPipelineOrder( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getLogsPipelineOrder(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsPipelineOrder(responseContext); + public getLogsPipelineOrder( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsPipelineOrder(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsPipelineOrder(responseContext); }); }); } @@ -937,41 +698,27 @@ export class LogsPipelinesApi { * This endpoint takes no JSON arguments. * @param param The request object */ - public listLogsPipelines( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.listLogsPipelines(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogsPipelines(responseContext); + public listLogsPipelines( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listLogsPipelines(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogsPipelines(responseContext); }); }); } /** * Update a given pipeline configuration to change it’s processors or their order. - * + * * **Note**: Using this method updates your pipeline configuration by **replacing** * your current configuration with the new one sent to your Datadog organization. * @param param The request object */ - public updateLogsPipeline( - param: LogsPipelinesApiUpdateLogsPipelineRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsPipeline( - param.pipelineId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsPipeline(responseContext); + public updateLogsPipeline(param: LogsPipelinesApiUpdateLogsPipelineRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsPipeline(param.pipelineId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsPipeline(responseContext); }); }); } @@ -979,27 +726,17 @@ export class LogsPipelinesApi { /** * Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change * the structure and content of the data processed by other pipelines and their processors. - * + * * **Note**: Using the `PUT` method updates your pipeline order by replacing your current order * with the new one sent to your Datadog organization. * @param param The request object */ - public updateLogsPipelineOrder( - param: LogsPipelinesApiUpdateLogsPipelineOrderRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsPipelineOrder( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsPipelineOrder( - responseContext - ); + public updateLogsPipelineOrder(param: LogsPipelinesApiUpdateLogsPipelineOrderRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsPipelineOrder(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsPipelineOrder(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/MetricsApi.ts b/packages/datadog-api-client-v1/apis/MetricsApi.ts index 7be03eb8c6da..47fb2ff2b5f7 100644 --- a/packages/datadog-api-client-v1/apis/MetricsApi.ts +++ b/packages/datadog-api-client-v1/apis/MetricsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { DistributionPointsContentEncoding } from "../models/DistributionPointsContentEncoding"; import { DistributionPointsPayload } from "../models/DistributionPointsPayload"; @@ -28,238 +26,157 @@ import { MetricsPayload } from "../models/MetricsPayload"; import { MetricsQueryResponse } from "../models/MetricsQueryResponse"; export class MetricsApiRequestFactory extends BaseAPIRequestFactory { - public async getMetricMetadata( - metricName: string, - _options?: Configuration - ): Promise { + + public async getMetricMetadata(metricName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "getMetricMetadata"); + throw new RequiredError('metricName', 'getMetricMetadata'); } // Path Params - const localVarPath = "/api/v1/metrics/{metric_name}".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v1/metrics/{metric_name}' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.getMetricMetadata") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MetricsApi.getMetricMetadata').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listActiveMetrics( - from: number, - host?: string, - tagFilter?: string, - _options?: Configuration - ): Promise { + public async listActiveMetrics(from: number,host?: string,tagFilter?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'from' is not null or undefined if (from === null || from === undefined) { - throw new RequiredError("from", "listActiveMetrics"); + throw new RequiredError('from', 'listActiveMetrics'); } // Path Params - const localVarPath = "/api/v1/metrics"; + const localVarPath = '/api/v1/metrics'; // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.listActiveMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MetricsApi.listActiveMetrics').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (from !== undefined) { - requestContext.setQueryParam( - "from", - ObjectSerializer.serialize(from, "number", "int64"), - "" - ); + requestContext.setQueryParam("from", ObjectSerializer.serialize(from, "number", "int64"), ""); } if (host !== undefined) { - requestContext.setQueryParam( - "host", - ObjectSerializer.serialize(host, "string", ""), - "" - ); + requestContext.setQueryParam("host", ObjectSerializer.serialize(host, "string", ""), ""); } if (tagFilter !== undefined) { - requestContext.setQueryParam( - "tag_filter", - ObjectSerializer.serialize(tagFilter, "string", ""), - "" - ); + requestContext.setQueryParam("tag_filter", ObjectSerializer.serialize(tagFilter, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listMetrics( - q: string, - _options?: Configuration - ): Promise { + public async listMetrics(q: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'q' is not null or undefined if (q === null || q === undefined) { - throw new RequiredError("q", "listMetrics"); + throw new RequiredError('q', 'listMetrics'); } // Path Params - const localVarPath = "/api/v1/search"; + const localVarPath = '/api/v1/search'; // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.listMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MetricsApi.listMetrics').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (q !== undefined) { - requestContext.setQueryParam( - "q", - ObjectSerializer.serialize(q, "string", ""), - "" - ); + requestContext.setQueryParam("q", ObjectSerializer.serialize(q, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async queryMetrics( - from: number, - to: number, - query: string, - _options?: Configuration - ): Promise { + public async queryMetrics(from: number,to: number,query: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'from' is not null or undefined if (from === null || from === undefined) { - throw new RequiredError("from", "queryMetrics"); + throw new RequiredError('from', 'queryMetrics'); } // verify required parameter 'to' is not null or undefined if (to === null || to === undefined) { - throw new RequiredError("to", "queryMetrics"); + throw new RequiredError('to', 'queryMetrics'); } // verify required parameter 'query' is not null or undefined if (query === null || query === undefined) { - throw new RequiredError("query", "queryMetrics"); + throw new RequiredError('query', 'queryMetrics'); } // Path Params - const localVarPath = "/api/v1/query"; + const localVarPath = '/api/v1/query'; // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.queryMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MetricsApi.queryMetrics').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (from !== undefined) { - requestContext.setQueryParam( - "from", - ObjectSerializer.serialize(from, "number", "int64"), - "" - ); + requestContext.setQueryParam("from", ObjectSerializer.serialize(from, "number", "int64"), ""); } if (to !== undefined) { - requestContext.setQueryParam( - "to", - ObjectSerializer.serialize(to, "number", "int64"), - "" - ); + requestContext.setQueryParam("to", ObjectSerializer.serialize(to, "number", "int64"), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async submitDistributionPoints( - body: DistributionPointsPayload, - contentEncoding?: DistributionPointsContentEncoding, - _options?: Configuration - ): Promise { + public async submitDistributionPoints(body: DistributionPointsPayload,contentEncoding?: DistributionPointsContentEncoding,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "submitDistributionPoints"); + throw new RequiredError('body', 'submitDistributionPoints'); } // Path Params - const localVarPath = "/api/v1/distribution_points"; + const localVarPath = '/api/v1/distribution_points'; // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.submitDistributionPoints") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.MetricsApi.submitDistributionPoints').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "text/json, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Header Params if (contentEncoding !== undefined) { - requestContext.setHeaderParam( - "Content-Encoding", - ObjectSerializer.serialize( - contentEncoding, - "DistributionPointsContentEncoding", - "" - ) - ); + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer.serialize(contentEncoding, "DistributionPointsContentEncoding", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType(["text/json"]); + const contentType = ObjectSerializer.getPreferredMediaType([ + "text/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DistributionPointsPayload", ""), @@ -273,38 +190,30 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async submitMetrics( - body: MetricsPayload, - contentEncoding?: MetricContentEncoding, - _options?: Configuration - ): Promise { + public async submitMetrics(body: MetricsPayload,contentEncoding?: MetricContentEncoding,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "submitMetrics"); + throw new RequiredError('body', 'submitMetrics'); } // Path Params - const localVarPath = "/api/v1/series"; + const localVarPath = '/api/v1/series'; // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.submitMetrics") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.MetricsApi.submitMetrics').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "text/json, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Header Params if (contentEncoding !== undefined) { - requestContext.setHeaderParam( - "Content-Encoding", - ObjectSerializer.serialize(contentEncoding, "MetricContentEncoding", "") - ); + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer.serialize(contentEncoding, "MetricContentEncoding", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType(["text/json"]); + const contentType = ObjectSerializer.getPreferredMediaType([ + "text/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MetricsPayload", ""), @@ -318,40 +227,31 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async updateMetricMetadata( - metricName: string, - body: MetricMetadata, - _options?: Configuration - ): Promise { + public async updateMetricMetadata(metricName: string,body: MetricMetadata,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "updateMetricMetadata"); + throw new RequiredError('metricName', 'updateMetricMetadata'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateMetricMetadata"); + throw new RequiredError('body', 'updateMetricMetadata'); } // Path Params - const localVarPath = "/api/v1/metrics/{metric_name}".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v1/metrics/{metric_name}' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v1.MetricsApi.updateMetricMetadata") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.MetricsApi.updateMetricMetadata').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MetricMetadata", ""), @@ -360,16 +260,14 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class MetricsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -377,12 +275,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to getMetricMetadata * @throws ApiException if the response code was not in [200, 299] */ - public async getMetricMetadata( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMetricMetadata(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricMetadata = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -390,15 +284,8 @@ export class MetricsApiResponseProcessor { ) as MetricMetadata; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -407,11 +294,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -419,17 +303,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricMetadata = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricMetadata", - "" + "MetricMetadata", "" ) as MetricMetadata; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -439,12 +319,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listActiveMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async listActiveMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listActiveMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -452,15 +328,8 @@ export class MetricsApiResponseProcessor { ) as MetricsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -469,11 +338,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -481,17 +347,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricsListResponse", - "" + "MetricsListResponse", "" ) as MetricsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -501,12 +363,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async listMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -514,15 +372,8 @@ export class MetricsApiResponseProcessor { ) as MetricSearchResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -531,11 +382,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -543,17 +391,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricSearchResponse", - "" + "MetricSearchResponse", "" ) as MetricSearchResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -563,12 +407,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to queryMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async queryMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async queryMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricsQueryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -576,15 +416,8 @@ export class MetricsApiResponseProcessor { ) as MetricsQueryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -593,11 +426,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -605,17 +435,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricsQueryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricsQueryResponse", - "" + "MetricsQueryResponse", "" ) as MetricsQueryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -625,12 +451,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to submitDistributionPoints * @throws ApiException if the response code was not in [200, 299] */ - public async submitDistributionPoints( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async submitDistributionPoints(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -638,17 +460,8 @@ export class MetricsApiResponseProcessor { ) as IntakePayloadAccepted; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 408 || - response.httpStatusCode === 413 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 408||response.httpStatusCode === 413||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -657,11 +470,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -669,17 +479,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IntakePayloadAccepted", - "" + "IntakePayloadAccepted", "" ) as IntakePayloadAccepted; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -689,12 +495,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to submitMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async submitMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async submitMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -702,17 +504,8 @@ export class MetricsApiResponseProcessor { ) as IntakePayloadAccepted; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 408 || - response.httpStatusCode === 413 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 408||response.httpStatusCode === 413||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -721,11 +514,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -733,17 +523,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IntakePayloadAccepted", - "" + "IntakePayloadAccepted", "" ) as IntakePayloadAccepted; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -753,12 +539,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to updateMetricMetadata * @throws ApiException if the response code was not in [200, 299] */ - public async updateMetricMetadata( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateMetricMetadata(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricMetadata = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -766,16 +548,8 @@ export class MetricsApiResponseProcessor { ) as MetricMetadata; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -784,11 +558,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -796,17 +567,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricMetadata = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricMetadata", - "" + "MetricMetadata", "" ) as MetricMetadata; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -815,7 +582,7 @@ export interface MetricsApiGetMetricMetadataRequest { * Name of the metric for which to get metadata. * @type string */ - metricName: string; + metricName: string } export interface MetricsApiListActiveMetricsRequest { @@ -823,19 +590,19 @@ export interface MetricsApiListActiveMetricsRequest { * Seconds since the Unix epoch. * @type number */ - from: number; + from: number /** * Hostname for filtering the list of metrics returned. * If set, metrics retrieved are those with the corresponding hostname tag. * @type string */ - host?: string; + host?: string /** * Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. * Cannot be combined with other filters. * @type string */ - tagFilter?: string; + tagFilter?: string } export interface MetricsApiListMetricsRequest { @@ -843,7 +610,7 @@ export interface MetricsApiListMetricsRequest { * Query string to search metrics upon. Can optionally be prefixed with `metrics:`. * @type string */ - q: string; + q: string } export interface MetricsApiQueryMetricsRequest { @@ -851,41 +618,41 @@ export interface MetricsApiQueryMetricsRequest { * Start of the queried time period, seconds since the Unix epoch. * @type number */ - from: number; + from: number /** * End of the queried time period, seconds since the Unix epoch. * @type number */ - to: number; + to: number /** * Query string. * @type string */ - query: string; + query: string } export interface MetricsApiSubmitDistributionPointsRequest { /** * @type DistributionPointsPayload */ - body: DistributionPointsPayload; + body: DistributionPointsPayload /** * HTTP header used to compress the media-type. * @type DistributionPointsContentEncoding */ - contentEncoding?: DistributionPointsContentEncoding; + contentEncoding?: DistributionPointsContentEncoding } export interface MetricsApiSubmitMetricsRequest { /** * @type MetricsPayload */ - body: MetricsPayload; + body: MetricsPayload /** * HTTP header used to compress the media-type. * @type MetricContentEncoding */ - contentEncoding?: MetricContentEncoding; + contentEncoding?: MetricContentEncoding } export interface MetricsApiUpdateMetricMetadataRequest { @@ -893,12 +660,12 @@ export interface MetricsApiUpdateMetricMetadataRequest { * Name of the metric for which to edit metadata. * @type string */ - metricName: string; + metricName: string /** * New metadata. * @type MetricMetadata */ - body: MetricMetadata; + body: MetricMetadata } export class MetricsApi { @@ -906,35 +673,21 @@ export class MetricsApi { private responseProcessor: MetricsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: MetricsApiRequestFactory, - responseProcessor?: MetricsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: MetricsApiRequestFactory, responseProcessor?: MetricsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new MetricsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new MetricsApiResponseProcessor(); + this.requestFactory = requestFactory || new MetricsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MetricsApiResponseProcessor(); } /** * Get metadata about a specific metric. * @param param The request object */ - public getMetricMetadata( - param: MetricsApiGetMetricMetadataRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getMetricMetadata( - param.metricName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMetricMetadata(responseContext); + public getMetricMetadata(param: MetricsApiGetMetricMetadataRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMetricMetadata(param.metricName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMetricMetadata(responseContext); }); }); } @@ -943,21 +696,11 @@ export class MetricsApi { * Get the list of actively reporting metrics from a given time until now. * @param param The request object */ - public listActiveMetrics( - param: MetricsApiListActiveMetricsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listActiveMetrics( - param.from, - param.host, - param.tagFilter, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listActiveMetrics(responseContext); + public listActiveMetrics(param: MetricsApiListActiveMetricsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listActiveMetrics(param.from,param.host,param.tagFilter,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listActiveMetrics(responseContext); }); }); } @@ -966,19 +709,11 @@ export class MetricsApi { * Search for metrics from the last 24 hours in Datadog. * @param param The request object */ - public listMetrics( - param: MetricsApiListMetricsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listMetrics( - param.q, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listMetrics(responseContext); + public listMetrics(param: MetricsApiListMetricsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listMetrics(param.q,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listMetrics(responseContext); }); }); } @@ -987,21 +722,11 @@ export class MetricsApi { * Query timeseries points. * @param param The request object */ - public queryMetrics( - param: MetricsApiQueryMetricsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.queryMetrics( - param.from, - param.to, - param.query, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.queryMetrics(responseContext); + public queryMetrics(param: MetricsApiQueryMetricsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.queryMetrics(param.from,param.to,param.query,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.queryMetrics(responseContext); }); }); } @@ -1010,22 +735,11 @@ export class MetricsApi { * The distribution points end-point allows you to post distribution data that can be graphed on Datadog’s dashboards. * @param param The request object */ - public submitDistributionPoints( - param: MetricsApiSubmitDistributionPointsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.submitDistributionPoints( - param.body, - param.contentEncoding, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.submitDistributionPoints( - responseContext - ); + public submitDistributionPoints(param: MetricsApiSubmitDistributionPointsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.submitDistributionPoints(param.body,param.contentEncoding,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.submitDistributionPoints(responseContext); }); }); } @@ -1033,9 +747,9 @@ export class MetricsApi { /** * The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. * The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). - * + * * If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - * + * * - 64 bits for the timestamp * - 64 bits for the value * - 40 bytes for the metric names @@ -1044,20 +758,11 @@ export class MetricsApi { * compression is applied, which reduces the payload size. * @param param The request object */ - public submitMetrics( - param: MetricsApiSubmitMetricsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.submitMetrics( - param.body, - param.contentEncoding, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.submitMetrics(responseContext); + public submitMetrics(param: MetricsApiSubmitMetricsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.submitMetrics(param.body,param.contentEncoding,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.submitMetrics(responseContext); }); }); } @@ -1066,21 +771,12 @@ export class MetricsApi { * Edit metadata of a specific metric. Find out more about [supported types](https://docs.datadoghq.com/developers/metrics). * @param param The request object */ - public updateMetricMetadata( - param: MetricsApiUpdateMetricMetadataRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateMetricMetadata( - param.metricName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateMetricMetadata(responseContext); + public updateMetricMetadata(param: MetricsApiUpdateMetricMetadataRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateMetricMetadata(param.metricName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateMetricMetadata(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/MonitorsApi.ts b/packages/datadog-api-client-v1/apis/MonitorsApi.ts index 62e9acb8c680..eef883e48035 100644 --- a/packages/datadog-api-client-v1/apis/MonitorsApi.ts +++ b/packages/datadog-api-client-v1/apis/MonitorsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CheckCanDeleteMonitorResponse } from "../models/CheckCanDeleteMonitorResponse"; import { DeletedMonitor } from "../models/DeletedMonitor"; @@ -25,71 +23,53 @@ import { MonitorSearchResponse } from "../models/MonitorSearchResponse"; import { MonitorUpdateRequest } from "../models/MonitorUpdateRequest"; export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { - public async checkCanDeleteMonitor( - monitorIds: Array, - _options?: Configuration - ): Promise { + + public async checkCanDeleteMonitor(monitorIds: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorIds' is not null or undefined if (monitorIds === null || monitorIds === undefined) { - throw new RequiredError("monitorIds", "checkCanDeleteMonitor"); + throw new RequiredError('monitorIds', 'checkCanDeleteMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor/can_delete"; + const localVarPath = '/api/v1/monitor/can_delete'; // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.checkCanDeleteMonitor") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MonitorsApi.checkCanDeleteMonitor').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (monitorIds !== undefined) { - requestContext.setQueryParam( - "monitor_ids", - ObjectSerializer.serialize(monitorIds, "Array", "int64"), - "csv" - ); + requestContext.setQueryParam("monitor_ids", ObjectSerializer.serialize(monitorIds, "Array", "int64"), "csv"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createMonitor( - body: Monitor, - _options?: Configuration - ): Promise { + public async createMonitor(body: Monitor,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createMonitor"); + throw new RequiredError('body', 'createMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor"; + const localVarPath = '/api/v1/monitor'; // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.createMonitor") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.MonitorsApi.createMonitor').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Monitor", ""), @@ -98,354 +78,200 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteMonitor( - monitorId: number, - force?: string, - _options?: Configuration - ): Promise { + public async deleteMonitor(monitorId: number,force?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorId' is not null or undefined if (monitorId === null || monitorId === undefined) { - throw new RequiredError("monitorId", "deleteMonitor"); + throw new RequiredError('monitorId', 'deleteMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor/{monitor_id}".replace( - "{monitor_id}", - encodeURIComponent(String(monitorId)) - ); + const localVarPath = '/api/v1/monitor/{monitor_id}' + .replace('{monitor_id}', encodeURIComponent(String(monitorId))); // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.deleteMonitor") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.MonitorsApi.deleteMonitor').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (force !== undefined) { - requestContext.setQueryParam( - "force", - ObjectSerializer.serialize(force, "string", ""), - "" - ); + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getMonitor( - monitorId: number, - groupStates?: string, - withDowntimes?: boolean, - _options?: Configuration - ): Promise { + public async getMonitor(monitorId: number,groupStates?: string,withDowntimes?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorId' is not null or undefined if (monitorId === null || monitorId === undefined) { - throw new RequiredError("monitorId", "getMonitor"); + throw new RequiredError('monitorId', 'getMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor/{monitor_id}".replace( - "{monitor_id}", - encodeURIComponent(String(monitorId)) - ); + const localVarPath = '/api/v1/monitor/{monitor_id}' + .replace('{monitor_id}', encodeURIComponent(String(monitorId))); // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.getMonitor") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MonitorsApi.getMonitor').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (groupStates !== undefined) { - requestContext.setQueryParam( - "group_states", - ObjectSerializer.serialize(groupStates, "string", ""), - "" - ); + requestContext.setQueryParam("group_states", ObjectSerializer.serialize(groupStates, "string", ""), ""); } if (withDowntimes !== undefined) { - requestContext.setQueryParam( - "with_downtimes", - ObjectSerializer.serialize(withDowntimes, "boolean", ""), - "" - ); + requestContext.setQueryParam("with_downtimes", ObjectSerializer.serialize(withDowntimes, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listMonitors( - groupStates?: string, - name?: string, - tags?: string, - monitorTags?: string, - withDowntimes?: boolean, - idOffset?: number, - page?: number, - pageSize?: number, - _options?: Configuration - ): Promise { + public async listMonitors(groupStates?: string,name?: string,tags?: string,monitorTags?: string,withDowntimes?: boolean,idOffset?: number,page?: number,pageSize?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/monitor"; + const localVarPath = '/api/v1/monitor'; // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.listMonitors") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MonitorsApi.listMonitors').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (groupStates !== undefined) { - requestContext.setQueryParam( - "group_states", - ObjectSerializer.serialize(groupStates, "string", ""), - "" - ); + requestContext.setQueryParam("group_states", ObjectSerializer.serialize(groupStates, "string", ""), ""); } if (name !== undefined) { - requestContext.setQueryParam( - "name", - ObjectSerializer.serialize(name, "string", ""), - "" - ); + requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""), ""); } if (tags !== undefined) { - requestContext.setQueryParam( - "tags", - ObjectSerializer.serialize(tags, "string", ""), - "" - ); + requestContext.setQueryParam("tags", ObjectSerializer.serialize(tags, "string", ""), ""); } if (monitorTags !== undefined) { - requestContext.setQueryParam( - "monitor_tags", - ObjectSerializer.serialize(monitorTags, "string", ""), - "" - ); + requestContext.setQueryParam("monitor_tags", ObjectSerializer.serialize(monitorTags, "string", ""), ""); } if (withDowntimes !== undefined) { - requestContext.setQueryParam( - "with_downtimes", - ObjectSerializer.serialize(withDowntimes, "boolean", ""), - "" - ); + requestContext.setQueryParam("with_downtimes", ObjectSerializer.serialize(withDowntimes, "boolean", ""), ""); } if (idOffset !== undefined) { - requestContext.setQueryParam( - "id_offset", - ObjectSerializer.serialize(idOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("id_offset", ObjectSerializer.serialize(idOffset, "number", "int64"), ""); } if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int64"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int64"), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page_size", - ObjectSerializer.serialize(pageSize, "number", "int32"), - "" - ); + requestContext.setQueryParam("page_size", ObjectSerializer.serialize(pageSize, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchMonitorGroups( - query?: string, - page?: number, - perPage?: number, - sort?: string, - _options?: Configuration - ): Promise { + public async searchMonitorGroups(query?: string,page?: number,perPage?: number,sort?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/monitor/groups/search"; + const localVarPath = '/api/v1/monitor/groups/search'; // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.searchMonitorGroups") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MonitorsApi.searchMonitorGroups').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int64"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int64"), ""); } if (perPage !== undefined) { - requestContext.setQueryParam( - "per_page", - ObjectSerializer.serialize(perPage, "number", "int64"), - "" - ); + requestContext.setQueryParam("per_page", ObjectSerializer.serialize(perPage, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchMonitors( - query?: string, - page?: number, - perPage?: number, - sort?: string, - _options?: Configuration - ): Promise { + public async searchMonitors(query?: string,page?: number,perPage?: number,sort?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/monitor/search"; + const localVarPath = '/api/v1/monitor/search'; // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.searchMonitors") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.MonitorsApi.searchMonitors').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int64"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int64"), ""); } if (perPage !== undefined) { - requestContext.setQueryParam( - "per_page", - ObjectSerializer.serialize(perPage, "number", "int64"), - "" - ); + requestContext.setQueryParam("per_page", ObjectSerializer.serialize(perPage, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateMonitor( - monitorId: number, - body: MonitorUpdateRequest, - _options?: Configuration - ): Promise { + public async updateMonitor(monitorId: number,body: MonitorUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorId' is not null or undefined if (monitorId === null || monitorId === undefined) { - throw new RequiredError("monitorId", "updateMonitor"); + throw new RequiredError('monitorId', 'updateMonitor'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateMonitor"); + throw new RequiredError('body', 'updateMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor/{monitor_id}".replace( - "{monitor_id}", - encodeURIComponent(String(monitorId)) - ); + const localVarPath = '/api/v1/monitor/{monitor_id}' + .replace('{monitor_id}', encodeURIComponent(String(monitorId))); // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.updateMonitor") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.MonitorsApi.updateMonitor').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MonitorUpdateRequest", ""), @@ -454,49 +280,36 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async validateExistingMonitor( - monitorId: number, - body: Monitor, - _options?: Configuration - ): Promise { + public async validateExistingMonitor(monitorId: number,body: Monitor,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorId' is not null or undefined if (monitorId === null || monitorId === undefined) { - throw new RequiredError("monitorId", "validateExistingMonitor"); + throw new RequiredError('monitorId', 'validateExistingMonitor'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "validateExistingMonitor"); + throw new RequiredError('body', 'validateExistingMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor/{monitor_id}/validate".replace( - "{monitor_id}", - encodeURIComponent(String(monitorId)) - ); + const localVarPath = '/api/v1/monitor/{monitor_id}/validate' + .replace('{monitor_id}', encodeURIComponent(String(monitorId))); // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.validateExistingMonitor") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.MonitorsApi.validateExistingMonitor').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Monitor", ""), @@ -505,40 +318,30 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async validateMonitor( - body: Monitor, - _options?: Configuration - ): Promise { + public async validateMonitor(body: Monitor,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "validateMonitor"); + throw new RequiredError('body', 'validateMonitor'); } // Path Params - const localVarPath = "/api/v1/monitor/validate"; + const localVarPath = '/api/v1/monitor/validate'; // Make Request Context - const requestContext = _config - .getServer("v1.MonitorsApi.validateMonitor") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.MonitorsApi.validateMonitor').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Monitor", ""), @@ -547,17 +350,14 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class MonitorsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -565,28 +365,17 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to checkCanDeleteMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async checkCanDeleteMonitor( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200 || response.httpStatusCode === 409) { + public async checkCanDeleteMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200||response.httpStatusCode === 409) { const body: CheckCanDeleteMonitorResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CheckCanDeleteMonitorResponse" ) as CheckCanDeleteMonitorResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -595,11 +384,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -607,17 +393,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CheckCanDeleteMonitorResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CheckCanDeleteMonitorResponse", - "" + "CheckCanDeleteMonitorResponse", "" ) as CheckCanDeleteMonitorResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -627,10 +409,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to createMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async createMonitor(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Monitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -638,15 +418,8 @@ export class MonitorsApiResponseProcessor { ) as Monitor; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -655,11 +428,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -667,17 +437,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Monitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Monitor", - "" + "Monitor", "" ) as Monitor; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -687,12 +453,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to deleteMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async deleteMonitor( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DeletedMonitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -700,17 +462,8 @@ export class MonitorsApiResponseProcessor { ) as DeletedMonitor; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -719,11 +472,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -731,17 +481,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DeletedMonitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DeletedMonitor", - "" + "DeletedMonitor", "" ) as DeletedMonitor; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -751,10 +497,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to getMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async getMonitor(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Monitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -762,16 +506,8 @@ export class MonitorsApiResponseProcessor { ) as Monitor; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -780,11 +516,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -792,17 +525,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Monitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Monitor", - "" + "Monitor", "" ) as Monitor; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -812,12 +541,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to listMonitors * @throws ApiException if the response code was not in [200, 299] */ - public async listMonitors( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listMonitors(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -825,15 +550,8 @@ export class MonitorsApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -842,11 +560,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -854,17 +569,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -874,12 +585,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to searchMonitorGroups * @throws ApiException if the response code was not in [200, 299] */ - public async searchMonitorGroups( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchMonitorGroups(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonitorGroupSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -887,15 +594,8 @@ export class MonitorsApiResponseProcessor { ) as MonitorGroupSearchResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -904,11 +604,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -916,17 +613,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonitorGroupSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorGroupSearchResponse", - "" + "MonitorGroupSearchResponse", "" ) as MonitorGroupSearchResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -936,12 +629,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to searchMonitors * @throws ApiException if the response code was not in [200, 299] */ - public async searchMonitors( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchMonitors(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonitorSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -949,15 +638,8 @@ export class MonitorsApiResponseProcessor { ) as MonitorSearchResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -966,11 +648,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -978,17 +657,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonitorSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorSearchResponse", - "" + "MonitorSearchResponse", "" ) as MonitorSearchResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -998,10 +673,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to updateMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async updateMonitor(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Monitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1009,17 +682,8 @@ export class MonitorsApiResponseProcessor { ) as Monitor; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1028,11 +692,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1040,17 +701,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Monitor = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Monitor", - "" + "Monitor", "" ) as Monitor; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1060,12 +717,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to validateExistingMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async validateExistingMonitor( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async validateExistingMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1073,15 +726,8 @@ export class MonitorsApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1090,11 +736,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1102,17 +745,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1122,10 +761,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to validateMonitor * @throws ApiException if the response code was not in [200, 299] */ - public async validateMonitor(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async validateMonitor(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1133,15 +770,8 @@ export class MonitorsApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1150,11 +780,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1162,17 +789,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1181,7 +804,7 @@ export interface MonitorsApiCheckCanDeleteMonitorRequest { * The IDs of the monitor to check. * @type Array */ - monitorIds: Array; + monitorIds: Array } export interface MonitorsApiCreateMonitorRequest { @@ -1189,7 +812,7 @@ export interface MonitorsApiCreateMonitorRequest { * Create a monitor request body. * @type Monitor */ - body: Monitor; + body: Monitor } export interface MonitorsApiDeleteMonitorRequest { @@ -1197,12 +820,12 @@ export interface MonitorsApiDeleteMonitorRequest { * The ID of the monitor. * @type number */ - monitorId: number; + monitorId: number /** * Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). * @type string */ - force?: string; + force?: string } export interface MonitorsApiGetMonitorRequest { @@ -1210,17 +833,17 @@ export interface MonitorsApiGetMonitorRequest { * The ID of the monitor * @type number */ - monitorId: number; + monitorId: number /** * When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. * @type string */ - groupStates?: string; + groupStates?: string /** * If this argument is set to true, then the returned data includes all current active downtimes for the monitor. * @type boolean */ - withDowntimes?: boolean; + withDowntimes?: boolean } export interface MonitorsApiListMonitorsRequest { @@ -1229,77 +852,77 @@ export interface MonitorsApiListMonitorsRequest { * Choose one or more from `all`, `alert`, `warn`, and `no data`. * @type string */ - groupStates?: string; + groupStates?: string /** * A string to filter monitors by name. * @type string */ - name?: string; + name?: string /** * A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. * For example, `host:host0`. * @type string */ - tags?: string; + tags?: string /** * A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. * Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. * @type string */ - monitorTags?: string; + monitorTags?: string /** * If this argument is set to true, then the returned data includes all current active downtimes for each monitor. * @type boolean */ - withDowntimes?: boolean; + withDowntimes?: boolean /** * Use this parameter for paginating through large sets of monitors. Start with a value of zero, make a request, set the value to the last ID of result set, and then repeat until the response is empty. * @type number */ - idOffset?: number; + idOffset?: number /** * The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination. * @type number */ - page?: number; + page?: number /** * The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. * @type number */ - pageSize?: number; + pageSize?: number } export interface MonitorsApiSearchMonitorGroupsRequest { /** * After entering a search query on the [Triggered Monitors page][1], use the query parameter value in the * URL of the page as a value for this parameter. For more information, see the [Manage Monitors documentation][2]. - * + * * The query can contain any number of space-separated monitor attributes, for instance: `query="type:metric group_status:alert"`. - * + * * [1]: https://app.datadoghq.com/monitors/triggered * [2]: /monitors/manage/#triggered-monitors * @type string */ - query?: string; + query?: string /** * Page to start paginating from. * @type number */ - page?: number; + page?: number /** * Number of monitors to return per page. * @type number */ - perPage?: number; + perPage?: number /** * String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: - * + * * * `name` * * `status` * * `tags` * @type string */ - sort?: string; + sort?: string } export interface MonitorsApiSearchMonitorsRequest { @@ -1307,33 +930,33 @@ export interface MonitorsApiSearchMonitorsRequest { * After entering a search query in your [Manage Monitor page][1] use the query parameter value in the * URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] * page to learn more. - * + * * The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. - * + * * [1]: https://app.datadoghq.com/monitors/manage * [2]: /monitors/manage/#find-the-monitors * @type string */ - query?: string; + query?: string /** * Page to start paginating from. * @type number */ - page?: number; + page?: number /** * Number of monitors to return per page. * @type number */ - perPage?: number; + perPage?: number /** * String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: - * + * * * `name` * * `status` * * `tags` * @type string */ - sort?: string; + sort?: string } export interface MonitorsApiUpdateMonitorRequest { @@ -1341,12 +964,12 @@ export interface MonitorsApiUpdateMonitorRequest { * The ID of the monitor. * @type number */ - monitorId: number; + monitorId: number /** * Edit a monitor request body. * @type MonitorUpdateRequest */ - body: MonitorUpdateRequest; + body: MonitorUpdateRequest } export interface MonitorsApiValidateExistingMonitorRequest { @@ -1354,12 +977,12 @@ export interface MonitorsApiValidateExistingMonitorRequest { * The ID of the monitor * @type number */ - monitorId: number; + monitorId: number /** * Monitor request object * @type Monitor */ - body: Monitor; + body: Monitor } export interface MonitorsApiValidateMonitorRequest { @@ -1367,7 +990,7 @@ export interface MonitorsApiValidateMonitorRequest { * Monitor request object * @type Monitor */ - body: Monitor; + body: Monitor } export class MonitorsApi { @@ -1375,46 +998,32 @@ export class MonitorsApi { private responseProcessor: MonitorsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: MonitorsApiRequestFactory, - responseProcessor?: MonitorsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: MonitorsApiRequestFactory, responseProcessor?: MonitorsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new MonitorsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new MonitorsApiResponseProcessor(); + this.requestFactory = requestFactory || new MonitorsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MonitorsApiResponseProcessor(); } /** * Check if the given monitors can be deleted. * @param param The request object */ - public checkCanDeleteMonitor( - param: MonitorsApiCheckCanDeleteMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.checkCanDeleteMonitor( - param.monitorIds, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.checkCanDeleteMonitor(responseContext); + public checkCanDeleteMonitor(param: MonitorsApiCheckCanDeleteMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.checkCanDeleteMonitor(param.monitorIds,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.checkCanDeleteMonitor(responseContext); }); }); } /** * Create a monitor using the specified options. - * + * * #### Monitor Types - * + * * The type of monitor chosen from: - * + * * - anomaly: `query alert` * - APM: `query alert` or `trace-analytics alert` * - composite: `composite` @@ -1437,17 +1046,17 @@ export class MonitorsApi { * - database-monitoring: `database-monitoring alert` * - network-performance: `network-performance alert` * - cloud cost: `cost alert` - * + * * **Notes**: * - Synthetic monitors are created through the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information. * - Log monitors require an unscoped App Key. - * + * * #### Query Types - * + * * ##### Metric Alert Query - * + * * Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - * + * * - `time_aggr`: avg, sum, max, min, change, or pct_change * - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` * - `space_aggr`: avg, sum, min, or max @@ -1455,59 +1064,59 @@ export class MonitorsApi { * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) * - `operator`: <, <=, >, >=, ==, or != * - `#`: an integer or decimal number used to set the threshold - * + * * If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), * timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - * + * * - `change_aggr` change, pct_change * - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) * - `time_window` last\_#m (between 1 and 2880 depending on the monitor type), last\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) * - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago - * + * * Use this to create an outlier monitor using the following query: * `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` - * + * * ##### Service Check Query - * + * * Example: `"check".over(tags).last(count).by(group).count_by_status()` - * + * * - `check` name of the check, for example `datadog.agent.up` * - `tags` one or more quoted tags (comma-separated), or "*". for example: `.over("env:prod", "role:db")`; `over` cannot be blank. * - `count` must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. * For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. * - `group` must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. * For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. - * + * * ##### Event Alert Query - * + * * **Note:** The Event Alert Query has been replaced by the Event V2 Alert Query. For more information, see the [Event Migration guide](https://docs.datadoghq.com/service_management/events/guides/migrating_to_new_events_features/). - * + * * ##### Event V2 Alert Query - * + * * Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `rollup_method` The stats roll-up method - supports `count`, `avg` and `cardinality`. * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * ##### Process Alert Query - * + * * Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - * + * * - `search` free text search string for querying processes. * Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. * - `tags` one or more tags (comma-separated) * - `timeframe` the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d * - `operator` <, <=, >, >=, ==, or != * - `#` an integer or decimal number used to set the threshold - * + * * ##### Logs Alert Query - * + * * Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `index_name` For multi-index organizations, the log index in which the request is performed. * - `rollup_method` The stats roll-up method - supports `count`, `avg` and `cardinality`. @@ -1515,64 +1124,64 @@ export class MonitorsApi { * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * ##### Composite Query - * + * * Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors - * + * * * `name` [*required*, *default* = **dynamic, based on query**]: The name of the alert. * * `message` [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. * Email notifications can be sent to specific users by using the same '@username' notation as events. * * `tags` [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. * When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. * It is only available via the API and isn't visible or editable in the Datadog UI. - * + * * ##### SLO Alert Query - * + * * Example: `error_budget("slo_id").over("time_window") operator #` - * + * * - `slo_id`: The alphanumeric SLO ID of the SLO you are configuring the alert for. * - `time_window`: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. * - `operator`: `>=` or `>` - * + * * ##### Audit Alert Query - * + * * Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `rollup_method` The stats roll-up method - supports `count`, `avg` and `cardinality`. * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * ##### CI Pipelines Alert Query - * + * * Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * ##### CI Tests Alert Query - * + * * Example: `ci-tests(query).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * ##### Error Tracking Alert Query - * + * * "New issue" example: `error-tracking(query).source(issue_source).new().rollup(rollup_method[, measure]).by(group_by).last(time_window) operator #` * "High impact issue" example: `error-tracking(query).source(issue_source).impact().rollup(rollup_method[, measure]).by(group_by).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `issue_source` The issue source - supports `all`, `browser`, `mobile` and `backend` and defaults to `all` if omitted. * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality` and defaults to `count` if omitted. @@ -1581,33 +1190,33 @@ export class MonitorsApi { * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * **Database Monitoring Alert Query** - * + * * Example: `database-monitoring(query).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * **Network Performance Alert Query** - * + * * Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. * - `#` an integer or decimal number used to set the threshold. - * + * * **Cost Alert Query** - * + * * Example: `formula(query).timeframe_type(time_window).function(parameter) operator #` - * + * * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). * - `timeframe_type` The timeframe type to evaluate the cost * - for `forecast` supports `current` @@ -1629,19 +1238,11 @@ export class MonitorsApi { * - `#` an integer or decimal number used to set the threshold. * @param param The request object */ - public createMonitor( - param: MonitorsApiCreateMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createMonitor( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createMonitor(responseContext); + public createMonitor(param: MonitorsApiCreateMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createMonitor(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createMonitor(responseContext); }); }); } @@ -1650,20 +1251,11 @@ export class MonitorsApi { * Delete the specified monitor * @param param The request object */ - public deleteMonitor( - param: MonitorsApiDeleteMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteMonitor( - param.monitorId, - param.force, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteMonitor(responseContext); + public deleteMonitor(param: MonitorsApiDeleteMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteMonitor(param.monitorId,param.force,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteMonitor(responseContext); }); }); } @@ -1672,21 +1264,11 @@ export class MonitorsApi { * Get details about the specified monitor from your organization. * @param param The request object */ - public getMonitor( - param: MonitorsApiGetMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getMonitor( - param.monitorId, - param.groupStates, - param.withDowntimes, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMonitor(responseContext); + public getMonitor(param: MonitorsApiGetMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMonitor(param.monitorId,param.groupStates,param.withDowntimes,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMonitor(responseContext); }); }); } @@ -1695,26 +1277,11 @@ export class MonitorsApi { * Get all monitors from your organization. * @param param The request object */ - public listMonitors( - param: MonitorsApiListMonitorsRequest = {}, - options?: Configuration - ): Promise> { - const requestContextPromise = this.requestFactory.listMonitors( - param.groupStates, - param.name, - param.tags, - param.monitorTags, - param.withDowntimes, - param.idOffset, - param.page, - param.pageSize, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listMonitors(responseContext); + public listMonitors(param: MonitorsApiListMonitorsRequest = {}, options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.listMonitors(param.groupStates,param.name,param.tags,param.monitorTags,param.withDowntimes,param.idOffset,param.page,param.pageSize,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listMonitors(responseContext); }); }); } @@ -1722,10 +1289,8 @@ export class MonitorsApi { /** * Provide a paginated version of listMonitors returning a generator with all the items. */ - public async *listMonitorsWithPagination( - param: MonitorsApiListMonitorsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listMonitorsWithPagination(param: MonitorsApiListMonitorsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 100; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -1733,24 +1298,10 @@ export class MonitorsApi { param.pageSize = pageSize; param.page = 0; while (true) { - const requestContext = await this.requestFactory.listMonitors( - param.groupStates, - param.name, - param.tags, - param.monitorTags, - param.withDowntimes, - param.idOffset, - param.page, - param.pageSize, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listMonitors( - responseContext - ); + const requestContext = await this.requestFactory.listMonitors(param.groupStates,param.name,param.tags,param.monitorTags,param.withDowntimes,param.idOffset,param.page,param.pageSize,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listMonitors(responseContext); const results = response; for (const item of results) { yield item; @@ -1766,22 +1317,11 @@ export class MonitorsApi { * Search and filter your monitor groups details. * @param param The request object */ - public searchMonitorGroups( - param: MonitorsApiSearchMonitorGroupsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchMonitorGroups( - param.query, - param.page, - param.perPage, - param.sort, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchMonitorGroups(responseContext); + public searchMonitorGroups(param: MonitorsApiSearchMonitorGroupsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchMonitorGroups(param.query,param.page,param.perPage,param.sort,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchMonitorGroups(responseContext); }); }); } @@ -1790,22 +1330,11 @@ export class MonitorsApi { * Search and filter your monitors details. * @param param The request object */ - public searchMonitors( - param: MonitorsApiSearchMonitorsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchMonitors( - param.query, - param.page, - param.perPage, - param.sort, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchMonitors(responseContext); + public searchMonitors(param: MonitorsApiSearchMonitorsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchMonitors(param.query,param.page,param.perPage,param.sort,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchMonitors(responseContext); }); }); } @@ -1814,20 +1343,11 @@ export class MonitorsApi { * Edit the specified monitor. * @param param The request object */ - public updateMonitor( - param: MonitorsApiUpdateMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateMonitor( - param.monitorId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateMonitor(responseContext); + public updateMonitor(param: MonitorsApiUpdateMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateMonitor(param.monitorId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateMonitor(responseContext); }); }); } @@ -1836,46 +1356,27 @@ export class MonitorsApi { * Validate the monitor provided in the request. * @param param The request object */ - public validateExistingMonitor( - param: MonitorsApiValidateExistingMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.validateExistingMonitor( - param.monitorId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.validateExistingMonitor( - responseContext - ); + public validateExistingMonitor(param: MonitorsApiValidateExistingMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.validateExistingMonitor(param.monitorId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.validateExistingMonitor(responseContext); }); }); } /** * Validate the monitor provided in the request. - * + * * **Note**: Log monitors require an unscoped App Key. * @param param The request object */ - public validateMonitor( - param: MonitorsApiValidateMonitorRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.validateMonitor( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.validateMonitor(responseContext); + public validateMonitor(param: MonitorsApiValidateMonitorRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.validateMonitor(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.validateMonitor(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/NotebooksApi.ts b/packages/datadog-api-client-v1/apis/NotebooksApi.ts index f2f077af7d3c..6105616a8009 100644 --- a/packages/datadog-api-client-v1/apis/NotebooksApi.ts +++ b/packages/datadog-api-client-v1/apis/NotebooksApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { NotebookCreateRequest } from "../models/NotebookCreateRequest"; import { NotebookResponse } from "../models/NotebookResponse"; @@ -24,31 +22,26 @@ import { NotebooksResponseData } from "../models/NotebooksResponseData"; import { NotebookUpdateRequest } from "../models/NotebookUpdateRequest"; export class NotebooksApiRequestFactory extends BaseAPIRequestFactory { - public async createNotebook( - body: NotebookCreateRequest, - _options?: Configuration - ): Promise { + + public async createNotebook(body: NotebookCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createNotebook"); + throw new RequiredError('body', 'createNotebook'); } // Path Params - const localVarPath = "/api/v1/notebooks"; + const localVarPath = '/api/v1/notebooks'; // Make Request Context - const requestContext = _config - .getServer("v1.NotebooksApi.createNotebook") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.NotebooksApi.createNotebook').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "NotebookCreateRequest", ""), @@ -57,220 +50,131 @@ export class NotebooksApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteNotebook( - notebookId: number, - _options?: Configuration - ): Promise { + public async deleteNotebook(notebookId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'notebookId' is not null or undefined if (notebookId === null || notebookId === undefined) { - throw new RequiredError("notebookId", "deleteNotebook"); + throw new RequiredError('notebookId', 'deleteNotebook'); } // Path Params - const localVarPath = "/api/v1/notebooks/{notebook_id}".replace( - "{notebook_id}", - encodeURIComponent(String(notebookId)) - ); + const localVarPath = '/api/v1/notebooks/{notebook_id}' + .replace('{notebook_id}', encodeURIComponent(String(notebookId))); // Make Request Context - const requestContext = _config - .getServer("v1.NotebooksApi.deleteNotebook") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.NotebooksApi.deleteNotebook').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getNotebook( - notebookId: number, - _options?: Configuration - ): Promise { + public async getNotebook(notebookId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'notebookId' is not null or undefined if (notebookId === null || notebookId === undefined) { - throw new RequiredError("notebookId", "getNotebook"); + throw new RequiredError('notebookId', 'getNotebook'); } // Path Params - const localVarPath = "/api/v1/notebooks/{notebook_id}".replace( - "{notebook_id}", - encodeURIComponent(String(notebookId)) - ); + const localVarPath = '/api/v1/notebooks/{notebook_id}' + .replace('{notebook_id}', encodeURIComponent(String(notebookId))); // Make Request Context - const requestContext = _config - .getServer("v1.NotebooksApi.getNotebook") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.NotebooksApi.getNotebook').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listNotebooks( - authorHandle?: string, - excludeAuthorHandle?: string, - start?: number, - count?: number, - sortField?: string, - sortDir?: string, - query?: string, - includeCells?: boolean, - isTemplate?: boolean, - type?: string, - _options?: Configuration - ): Promise { + public async listNotebooks(authorHandle?: string,excludeAuthorHandle?: string,start?: number,count?: number,sortField?: string,sortDir?: string,query?: string,includeCells?: boolean,isTemplate?: boolean,type?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/notebooks"; + const localVarPath = '/api/v1/notebooks'; // Make Request Context - const requestContext = _config - .getServer("v1.NotebooksApi.listNotebooks") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.NotebooksApi.listNotebooks').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (authorHandle !== undefined) { - requestContext.setQueryParam( - "author_handle", - ObjectSerializer.serialize(authorHandle, "string", ""), - "" - ); + requestContext.setQueryParam("author_handle", ObjectSerializer.serialize(authorHandle, "string", ""), ""); } if (excludeAuthorHandle !== undefined) { - requestContext.setQueryParam( - "exclude_author_handle", - ObjectSerializer.serialize(excludeAuthorHandle, "string", ""), - "" - ); + requestContext.setQueryParam("exclude_author_handle", ObjectSerializer.serialize(excludeAuthorHandle, "string", ""), ""); } if (start !== undefined) { - requestContext.setQueryParam( - "start", - ObjectSerializer.serialize(start, "number", "int64"), - "" - ); + requestContext.setQueryParam("start", ObjectSerializer.serialize(start, "number", "int64"), ""); } if (count !== undefined) { - requestContext.setQueryParam( - "count", - ObjectSerializer.serialize(count, "number", "int64"), - "" - ); + requestContext.setQueryParam("count", ObjectSerializer.serialize(count, "number", "int64"), ""); } if (sortField !== undefined) { - requestContext.setQueryParam( - "sort_field", - ObjectSerializer.serialize(sortField, "string", ""), - "" - ); + requestContext.setQueryParam("sort_field", ObjectSerializer.serialize(sortField, "string", ""), ""); } if (sortDir !== undefined) { - requestContext.setQueryParam( - "sort_dir", - ObjectSerializer.serialize(sortDir, "string", ""), - "" - ); + requestContext.setQueryParam("sort_dir", ObjectSerializer.serialize(sortDir, "string", ""), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (includeCells !== undefined) { - requestContext.setQueryParam( - "include_cells", - ObjectSerializer.serialize(includeCells, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_cells", ObjectSerializer.serialize(includeCells, "boolean", ""), ""); } if (isTemplate !== undefined) { - requestContext.setQueryParam( - "is_template", - ObjectSerializer.serialize(isTemplate, "boolean", ""), - "" - ); + requestContext.setQueryParam("is_template", ObjectSerializer.serialize(isTemplate, "boolean", ""), ""); } if (type !== undefined) { - requestContext.setQueryParam( - "type", - ObjectSerializer.serialize(type, "string", ""), - "" - ); + requestContext.setQueryParam("type", ObjectSerializer.serialize(type, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateNotebook( - notebookId: number, - body: NotebookUpdateRequest, - _options?: Configuration - ): Promise { + public async updateNotebook(notebookId: number,body: NotebookUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'notebookId' is not null or undefined if (notebookId === null || notebookId === undefined) { - throw new RequiredError("notebookId", "updateNotebook"); + throw new RequiredError('notebookId', 'updateNotebook'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateNotebook"); + throw new RequiredError('body', 'updateNotebook'); } // Path Params - const localVarPath = "/api/v1/notebooks/{notebook_id}".replace( - "{notebook_id}", - encodeURIComponent(String(notebookId)) - ); + const localVarPath = '/api/v1/notebooks/{notebook_id}' + .replace('{notebook_id}', encodeURIComponent(String(notebookId))); // Make Request Context - const requestContext = _config - .getServer("v1.NotebooksApi.updateNotebook") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.NotebooksApi.updateNotebook').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "NotebookUpdateRequest", ""), @@ -279,16 +183,14 @@ export class NotebooksApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class NotebooksApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -296,12 +198,8 @@ export class NotebooksApiResponseProcessor { * @params response Response returned by the server for a request to createNotebook * @throws ApiException if the response code was not in [200, 299] */ - public async createNotebook( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createNotebook(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotebookResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -309,15 +207,8 @@ export class NotebooksApiResponseProcessor { ) as NotebookResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -326,11 +217,8 @@ export class NotebooksApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -338,17 +226,13 @@ export class NotebooksApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotebookResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotebookResponse", - "" + "NotebookResponse", "" ) as NotebookResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -358,23 +242,13 @@ export class NotebooksApiResponseProcessor { * @params response Response returned by the server for a request to deleteNotebook * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNotebook(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteNotebook(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -383,11 +257,8 @@ export class NotebooksApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -395,17 +266,13 @@ export class NotebooksApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -415,12 +282,8 @@ export class NotebooksApiResponseProcessor { * @params response Response returned by the server for a request to getNotebook * @throws ApiException if the response code was not in [200, 299] */ - public async getNotebook( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getNotebook(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotebookResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -428,16 +291,8 @@ export class NotebooksApiResponseProcessor { ) as NotebookResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -446,11 +301,8 @@ export class NotebooksApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -458,17 +310,13 @@ export class NotebooksApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotebookResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotebookResponse", - "" + "NotebookResponse", "" ) as NotebookResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -478,12 +326,8 @@ export class NotebooksApiResponseProcessor { * @params response Response returned by the server for a request to listNotebooks * @throws ApiException if the response code was not in [200, 299] */ - public async listNotebooks( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listNotebooks(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotebooksResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -491,15 +335,8 @@ export class NotebooksApiResponseProcessor { ) as NotebooksResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -508,11 +345,8 @@ export class NotebooksApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -520,17 +354,13 @@ export class NotebooksApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotebooksResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotebooksResponse", - "" + "NotebooksResponse", "" ) as NotebooksResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -540,12 +370,8 @@ export class NotebooksApiResponseProcessor { * @params response Response returned by the server for a request to updateNotebook * @throws ApiException if the response code was not in [200, 299] */ - public async updateNotebook( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateNotebook(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotebookResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -553,17 +379,8 @@ export class NotebooksApiResponseProcessor { ) as NotebookResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -572,11 +389,8 @@ export class NotebooksApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -584,17 +398,13 @@ export class NotebooksApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotebookResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotebookResponse", - "" + "NotebookResponse", "" ) as NotebookResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -603,7 +413,7 @@ export interface NotebooksApiCreateNotebookRequest { * The JSON description of the notebook you want to create. * @type NotebookCreateRequest */ - body: NotebookCreateRequest; + body: NotebookCreateRequest } export interface NotebooksApiDeleteNotebookRequest { @@ -611,7 +421,7 @@ export interface NotebooksApiDeleteNotebookRequest { * Unique ID, assigned when you create the notebook. * @type number */ - notebookId: number; + notebookId: number } export interface NotebooksApiGetNotebookRequest { @@ -619,7 +429,7 @@ export interface NotebooksApiGetNotebookRequest { * Unique ID, assigned when you create the notebook. * @type number */ - notebookId: number; + notebookId: number } export interface NotebooksApiListNotebooksRequest { @@ -627,52 +437,52 @@ export interface NotebooksApiListNotebooksRequest { * Return notebooks created by the given `author_handle`. * @type string */ - authorHandle?: string; + authorHandle?: string /** * Return notebooks not created by the given `author_handle`. * @type string */ - excludeAuthorHandle?: string; + excludeAuthorHandle?: string /** * The index of the first notebook you want returned. * @type number */ - start?: number; + start?: number /** * The number of notebooks to be returned. * @type number */ - count?: number; + count?: number /** * Sort by field `modified`, `name`, or `created`. * @type string */ - sortField?: string; + sortField?: string /** * Sort by direction `asc` or `desc`. * @type string */ - sortDir?: string; + sortDir?: string /** * Return only notebooks with `query` string in notebook name or author handle. * @type string */ - query?: string; + query?: string /** * Value of `false` excludes the `cells` and global `time` for each notebook. * @type boolean */ - includeCells?: boolean; + includeCells?: boolean /** * True value returns only template notebooks. Default is false (returns only non-template notebooks). * @type boolean */ - isTemplate?: boolean; + isTemplate?: boolean /** * If type is provided, returns only notebooks with that metadata type. Default does not have type filtering. * @type string */ - type?: string; + type?: string } export interface NotebooksApiUpdateNotebookRequest { @@ -680,12 +490,12 @@ export interface NotebooksApiUpdateNotebookRequest { * Unique ID, assigned when you create the notebook. * @type number */ - notebookId: number; + notebookId: number /** * Update notebook request body. * @type NotebookUpdateRequest */ - body: NotebookUpdateRequest; + body: NotebookUpdateRequest } export class NotebooksApi { @@ -693,35 +503,21 @@ export class NotebooksApi { private responseProcessor: NotebooksApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: NotebooksApiRequestFactory, - responseProcessor?: NotebooksApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: NotebooksApiRequestFactory, responseProcessor?: NotebooksApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new NotebooksApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new NotebooksApiResponseProcessor(); + this.requestFactory = requestFactory || new NotebooksApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new NotebooksApiResponseProcessor(); } /** * Create a notebook using the specified options. * @param param The request object */ - public createNotebook( - param: NotebooksApiCreateNotebookRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createNotebook( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createNotebook(responseContext); + public createNotebook(param: NotebooksApiCreateNotebookRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createNotebook(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createNotebook(responseContext); }); }); } @@ -730,19 +526,11 @@ export class NotebooksApi { * Delete a notebook using the specified ID. * @param param The request object */ - public deleteNotebook( - param: NotebooksApiDeleteNotebookRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteNotebook( - param.notebookId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteNotebook(responseContext); + public deleteNotebook(param: NotebooksApiDeleteNotebookRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteNotebook(param.notebookId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteNotebook(responseContext); }); }); } @@ -751,19 +539,11 @@ export class NotebooksApi { * Get a notebook using the specified notebook ID. * @param param The request object */ - public getNotebook( - param: NotebooksApiGetNotebookRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getNotebook( - param.notebookId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getNotebook(responseContext); + public getNotebook(param: NotebooksApiGetNotebookRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getNotebook(param.notebookId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getNotebook(responseContext); }); }); } @@ -773,28 +553,11 @@ export class NotebooksApi { * `name` or author `handle`. * @param param The request object */ - public listNotebooks( - param: NotebooksApiListNotebooksRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listNotebooks( - param.authorHandle, - param.excludeAuthorHandle, - param.start, - param.count, - param.sortField, - param.sortDir, - param.query, - param.includeCells, - param.isTemplate, - param.type, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listNotebooks(responseContext); + public listNotebooks(param: NotebooksApiListNotebooksRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listNotebooks(param.authorHandle,param.excludeAuthorHandle,param.start,param.count,param.sortField,param.sortDir,param.query,param.includeCells,param.isTemplate,param.type,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listNotebooks(responseContext); }); }); } @@ -802,36 +565,18 @@ export class NotebooksApi { /** * Provide a paginated version of listNotebooks returning a generator with all the items. */ - public async *listNotebooksWithPagination( - param: NotebooksApiListNotebooksRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listNotebooksWithPagination(param: NotebooksApiListNotebooksRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 100; if (param.count !== undefined) { pageSize = param.count; } param.count = pageSize; while (true) { - const requestContext = await this.requestFactory.listNotebooks( - param.authorHandle, - param.excludeAuthorHandle, - param.start, - param.count, - param.sortField, - param.sortDir, - param.query, - param.includeCells, - param.isTemplate, - param.type, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listNotebooks( - responseContext - ); + const requestContext = await this.requestFactory.listNotebooks(param.authorHandle,param.excludeAuthorHandle,param.start,param.count,param.sortField,param.sortDir,param.query,param.includeCells,param.isTemplate,param.type,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listNotebooks(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -855,21 +600,12 @@ export class NotebooksApi { * Update a notebook using the specified ID. * @param param The request object */ - public updateNotebook( - param: NotebooksApiUpdateNotebookRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateNotebook( - param.notebookId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateNotebook(responseContext); + public updateNotebook(param: NotebooksApiUpdateNotebookRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateNotebook(param.notebookId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateNotebook(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/OrganizationsApi.ts b/packages/datadog-api-client-v1/apis/OrganizationsApi.ts index 1909aa0fd068..ebde8996014b 100644 --- a/packages/datadog-api-client-v1/apis/OrganizationsApi.ts +++ b/packages/datadog-api-client-v1/apis/OrganizationsApi.ts @@ -1,17 +1,11 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, - HttpFile, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; import FormData from "form-data"; @@ -19,7 +13,9 @@ import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; +import { IdpFormData } from "../models/IdpFormData"; import { IdpResponse } from "../models/IdpResponse"; import { Organization } from "../models/Organization"; import { OrganizationCreateBody } from "../models/OrganizationCreateBody"; @@ -29,31 +25,26 @@ import { OrganizationResponse } from "../models/OrganizationResponse"; import { OrgDowngradedResponse } from "../models/OrgDowngradedResponse"; export class OrganizationsApiRequestFactory extends BaseAPIRequestFactory { - public async createChildOrg( - body: OrganizationCreateBody, - _options?: Configuration - ): Promise { + + public async createChildOrg(body: OrganizationCreateBody,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createChildOrg"); + throw new RequiredError('body', 'createChildOrg'); } // Path Params - const localVarPath = "/api/v1/org"; + const localVarPath = '/api/v1/org'; // Make Request Context - const requestContext = _config - .getServer("v1.OrganizationsApi.createChildOrg") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.OrganizationsApi.createChildOrg').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OrganizationCreateBody", ""), @@ -62,76 +53,53 @@ export class OrganizationsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async downgradeOrg( - publicId: string, - _options?: Configuration - ): Promise { + public async downgradeOrg(publicId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "downgradeOrg"); + throw new RequiredError('publicId', 'downgradeOrg'); } // Path Params - const localVarPath = "/api/v1/org/{public_id}/downgrade".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/org/{public_id}/downgrade' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.OrganizationsApi.downgradeOrg") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.OrganizationsApi.downgradeOrg').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getOrg( - publicId: string, - _options?: Configuration - ): Promise { + public async getOrg(publicId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getOrg"); + throw new RequiredError('publicId', 'getOrg'); } // Path Params - const localVarPath = "/api/v1/org/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/org/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.OrganizationsApi.getOrg") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.OrganizationsApi.getOrg').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } @@ -140,58 +108,44 @@ export class OrganizationsApiRequestFactory extends BaseAPIRequestFactory { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/org"; + const localVarPath = '/api/v1/org'; // Make Request Context - const requestContext = _config - .getServer("v1.OrganizationsApi.listOrgs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.OrganizationsApi.listOrgs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateOrg( - publicId: string, - body: Organization, - _options?: Configuration - ): Promise { + public async updateOrg(publicId: string,body: Organization,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "updateOrg"); + throw new RequiredError('publicId', 'updateOrg'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateOrg"); + throw new RequiredError('body', 'updateOrg'); } // Path Params - const localVarPath = "/api/v1/org/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/org/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.OrganizationsApi.updateOrg") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.OrganizationsApi.updateOrg').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Organization", ""), @@ -200,63 +154,50 @@ export class OrganizationsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async uploadIdPForOrg( - publicId: string, - idpFile: HttpFile, - _options?: Configuration - ): Promise { + public async uploadIdPForOrg(publicId: string,idpFile: HttpFile,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "uploadIdPForOrg"); + throw new RequiredError('publicId', 'uploadIdPForOrg'); } // verify required parameter 'idpFile' is not null or undefined if (idpFile === null || idpFile === undefined) { - throw new RequiredError("idpFile", "uploadIdPForOrg"); + throw new RequiredError('idpFile', 'uploadIdPForOrg'); } // Path Params - const localVarPath = "/api/v1/org/{public_id}/idp_metadata".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/org/{public_id}/idp_metadata' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.OrganizationsApi.uploadIdPForOrg") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.OrganizationsApi.uploadIdPForOrg').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Form Params const localVarFormParams = new FormData(); if (idpFile !== undefined) { - // TODO: replace .append with .set - localVarFormParams.append("idp_file", idpFile.data, idpFile.name); + // TODO: replace .append with .set + localVarFormParams.append('idp_file', idpFile.data, idpFile.name); } requestContext.setBody(localVarFormParams); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class OrganizationsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -264,12 +205,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to createChildOrg * @throws ApiException if the response code was not in [200, 299] */ - public async createChildOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createChildOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrganizationCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -277,15 +214,8 @@ export class OrganizationsApiResponseProcessor { ) as OrganizationCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -294,11 +224,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -306,17 +233,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrganizationCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrganizationCreateResponse", - "" + "OrganizationCreateResponse", "" ) as OrganizationCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -326,12 +249,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to downgradeOrg * @throws ApiException if the response code was not in [200, 299] */ - public async downgradeOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async downgradeOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrgDowngradedResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -339,15 +258,8 @@ export class OrganizationsApiResponseProcessor { ) as OrgDowngradedResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -356,11 +268,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -368,17 +277,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrgDowngradedResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrgDowngradedResponse", - "" + "OrgDowngradedResponse", "" ) as OrgDowngradedResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -388,12 +293,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to getOrg * @throws ApiException if the response code was not in [200, 299] */ - public async getOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrganizationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -401,15 +302,8 @@ export class OrganizationsApiResponseProcessor { ) as OrganizationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -418,11 +312,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -430,17 +321,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrganizationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrganizationResponse", - "" + "OrganizationResponse", "" ) as OrganizationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -450,12 +337,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to listOrgs * @throws ApiException if the response code was not in [200, 299] */ - public async listOrgs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listOrgs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrganizationListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -463,11 +346,8 @@ export class OrganizationsApiResponseProcessor { ) as OrganizationListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -476,11 +356,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -488,17 +365,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrganizationListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrganizationListResponse", - "" + "OrganizationListResponse", "" ) as OrganizationListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -508,12 +381,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to updateOrg * @throws ApiException if the response code was not in [200, 299] */ - public async updateOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrganizationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -521,15 +390,8 @@ export class OrganizationsApiResponseProcessor { ) as OrganizationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -538,11 +400,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -550,17 +409,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrganizationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrganizationResponse", - "" + "OrganizationResponse", "" ) as OrganizationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -570,12 +425,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to uploadIdPForOrg * @throws ApiException if the response code was not in [200, 299] */ - public async uploadIdPForOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async uploadIdPForOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IdpResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -583,16 +434,8 @@ export class OrganizationsApiResponseProcessor { ) as IdpResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 415 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 415||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -601,11 +444,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -613,17 +453,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IdpResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IdpResponse", - "" + "IdpResponse", "" ) as IdpResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -632,7 +468,7 @@ export interface OrganizationsApiCreateChildOrgRequest { * Organization object that needs to be created * @type OrganizationCreateBody */ - body: OrganizationCreateBody; + body: OrganizationCreateBody } export interface OrganizationsApiDowngradeOrgRequest { @@ -640,7 +476,7 @@ export interface OrganizationsApiDowngradeOrgRequest { * The `public_id` of the organization you are operating within. * @type string */ - publicId: string; + publicId: string } export interface OrganizationsApiGetOrgRequest { @@ -648,7 +484,7 @@ export interface OrganizationsApiGetOrgRequest { * The `public_id` of the organization you are operating within. * @type string */ - publicId: string; + publicId: string } export interface OrganizationsApiUpdateOrgRequest { @@ -656,11 +492,11 @@ export interface OrganizationsApiUpdateOrgRequest { * The `public_id` of the organization you are operating within. * @type string */ - publicId: string; + publicId: string /** * @type Organization */ - body: Organization; + body: Organization } export interface OrganizationsApiUploadIdPForOrgRequest { @@ -668,12 +504,12 @@ export interface OrganizationsApiUploadIdPForOrgRequest { * The `public_id` of the organization you are operating with * @type string */ - publicId: string; + publicId: string /** * The path to the XML metadata file you wish to upload. * @type HttpFile */ - idpFile: HttpFile; + idpFile: HttpFile } export class OrganizationsApi { @@ -681,44 +517,30 @@ export class OrganizationsApi { private responseProcessor: OrganizationsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: OrganizationsApiRequestFactory, - responseProcessor?: OrganizationsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: OrganizationsApiRequestFactory, responseProcessor?: OrganizationsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new OrganizationsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new OrganizationsApiResponseProcessor(); + this.requestFactory = requestFactory || new OrganizationsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new OrganizationsApiResponseProcessor(); } /** * Create a child organization. - * + * * This endpoint requires the * [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) * feature and must be enabled by * [contacting support](https://docs.datadoghq.com/help/). - * + * * Once a new child organization is created, you can interact with it * by using the `org.public_id`, `api_key.key`, and * `application_key.hash` provided in the response. * @param param The request object */ - public createChildOrg( - param: OrganizationsApiCreateChildOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createChildOrg( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createChildOrg(responseContext); + public createChildOrg(param: OrganizationsApiCreateChildOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createChildOrg(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createChildOrg(responseContext); }); }); } @@ -727,19 +549,11 @@ export class OrganizationsApi { * Only available for MSP customers. Removes a child organization from the hierarchy of the master organization and places the child organization on a 30-day trial. * @param param The request object */ - public downgradeOrg( - param: OrganizationsApiDowngradeOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.downgradeOrg( - param.publicId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.downgradeOrg(responseContext); + public downgradeOrg(param: OrganizationsApiDowngradeOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.downgradeOrg(param.publicId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.downgradeOrg(responseContext); }); }); } @@ -748,19 +562,11 @@ export class OrganizationsApi { * Get organization information. * @param param The request object */ - public getOrg( - param: OrganizationsApiGetOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOrg( - param.publicId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOrg(responseContext); + public getOrg(param: OrganizationsApiGetOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getOrg(param.publicId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getOrg(responseContext); }); }); } @@ -769,13 +575,11 @@ export class OrganizationsApi { * This endpoint returns data on your top-level organization. * @param param The request object */ - public listOrgs(options?: Configuration): Promise { + public listOrgs( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listOrgs(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listOrgs(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listOrgs(responseContext); }); }); } @@ -784,20 +588,11 @@ export class OrganizationsApi { * Update your organization. * @param param The request object */ - public updateOrg( - param: OrganizationsApiUpdateOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateOrg( - param.publicId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateOrg(responseContext); + public updateOrg(param: OrganizationsApiUpdateOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateOrg(param.publicId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateOrg(responseContext); }); }); } @@ -805,27 +600,18 @@ export class OrganizationsApi { /** * There are a couple of options for updating the Identity Provider (IdP) * metadata from your SAML IdP. - * + * * * **Multipart Form-Data**: Post the IdP metadata file using a form post. - * + * * * **XML Body:** Post the IdP metadata file as the body of the request. * @param param The request object */ - public uploadIdPForOrg( - param: OrganizationsApiUploadIdPForOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.uploadIdPForOrg( - param.publicId, - param.idpFile, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.uploadIdPForOrg(responseContext); + public uploadIdPForOrg(param: OrganizationsApiUploadIdPForOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.uploadIdPForOrg(param.publicId,param.idpFile,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.uploadIdPForOrg(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.ts b/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.ts index 969b41680cfd..2f00063d7d3a 100644 --- a/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.ts @@ -1,52 +1,45 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { PagerDutyService } from "../models/PagerDutyService"; import { PagerDutyServiceKey } from "../models/PagerDutyServiceKey"; import { PagerDutyServiceName } from "../models/PagerDutyServiceName"; export class PagerDutyIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createPagerDutyIntegrationService( - body: PagerDutyService, - _options?: Configuration - ): Promise { + + public async createPagerDutyIntegrationService(body: PagerDutyService,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createPagerDutyIntegrationService"); + throw new RequiredError('body', 'createPagerDutyIntegrationService'); } // Path Params - const localVarPath = "/api/v1/integration/pagerduty/configuration/services"; + const localVarPath = '/api/v1/integration/pagerduty/configuration/services'; // Make Request Context - const requestContext = _config - .getServer("v1.PagerDutyIntegrationApi.createPagerDutyIntegrationService") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.PagerDutyIntegrationApi.createPagerDutyIntegrationService').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "PagerDutyService", ""), @@ -55,123 +48,82 @@ export class PagerDutyIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deletePagerDutyIntegrationService( - serviceName: string, - _options?: Configuration - ): Promise { + public async deletePagerDutyIntegrationService(serviceName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceName' is not null or undefined if (serviceName === null || serviceName === undefined) { - throw new RequiredError( - "serviceName", - "deletePagerDutyIntegrationService" - ); + throw new RequiredError('serviceName', 'deletePagerDutyIntegrationService'); } // Path Params - const localVarPath = - "/api/v1/integration/pagerduty/configuration/services/{service_name}".replace( - "{service_name}", - encodeURIComponent(String(serviceName)) - ); + const localVarPath = '/api/v1/integration/pagerduty/configuration/services/{service_name}' + .replace('{service_name}', encodeURIComponent(String(serviceName))); // Make Request Context - const requestContext = _config - .getServer("v1.PagerDutyIntegrationApi.deletePagerDutyIntegrationService") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.PagerDutyIntegrationApi.deletePagerDutyIntegrationService').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getPagerDutyIntegrationService( - serviceName: string, - _options?: Configuration - ): Promise { + public async getPagerDutyIntegrationService(serviceName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceName' is not null or undefined if (serviceName === null || serviceName === undefined) { - throw new RequiredError("serviceName", "getPagerDutyIntegrationService"); + throw new RequiredError('serviceName', 'getPagerDutyIntegrationService'); } // Path Params - const localVarPath = - "/api/v1/integration/pagerduty/configuration/services/{service_name}".replace( - "{service_name}", - encodeURIComponent(String(serviceName)) - ); + const localVarPath = '/api/v1/integration/pagerduty/configuration/services/{service_name}' + .replace('{service_name}', encodeURIComponent(String(serviceName))); // Make Request Context - const requestContext = _config - .getServer("v1.PagerDutyIntegrationApi.getPagerDutyIntegrationService") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.PagerDutyIntegrationApi.getPagerDutyIntegrationService').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updatePagerDutyIntegrationService( - serviceName: string, - body: PagerDutyServiceKey, - _options?: Configuration - ): Promise { + public async updatePagerDutyIntegrationService(serviceName: string,body: PagerDutyServiceKey,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceName' is not null or undefined if (serviceName === null || serviceName === undefined) { - throw new RequiredError( - "serviceName", - "updatePagerDutyIntegrationService" - ); + throw new RequiredError('serviceName', 'updatePagerDutyIntegrationService'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updatePagerDutyIntegrationService"); + throw new RequiredError('body', 'updatePagerDutyIntegrationService'); } // Path Params - const localVarPath = - "/api/v1/integration/pagerduty/configuration/services/{service_name}".replace( - "{service_name}", - encodeURIComponent(String(serviceName)) - ); + const localVarPath = '/api/v1/integration/pagerduty/configuration/services/{service_name}' + .replace('{service_name}', encodeURIComponent(String(serviceName))); // Make Request Context - const requestContext = _config - .getServer("v1.PagerDutyIntegrationApi.updatePagerDutyIntegrationService") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.PagerDutyIntegrationApi.updatePagerDutyIntegrationService').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "PagerDutyServiceKey", ""), @@ -180,16 +132,14 @@ export class PagerDutyIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class PagerDutyIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -197,12 +147,8 @@ export class PagerDutyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createPagerDutyIntegrationService * @throws ApiException if the response code was not in [200, 299] */ - public async createPagerDutyIntegrationService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createPagerDutyIntegrationService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: PagerDutyServiceName = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -210,15 +156,8 @@ export class PagerDutyIntegrationApiResponseProcessor { ) as PagerDutyServiceName; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -227,11 +166,8 @@ export class PagerDutyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -239,17 +175,13 @@ export class PagerDutyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PagerDutyServiceName = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PagerDutyServiceName", - "" + "PagerDutyServiceName", "" ) as PagerDutyServiceName; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -259,24 +191,13 @@ export class PagerDutyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deletePagerDutyIntegrationService * @throws ApiException if the response code was not in [200, 299] */ - public async deletePagerDutyIntegrationService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deletePagerDutyIntegrationService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -285,11 +206,8 @@ export class PagerDutyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -297,17 +215,13 @@ export class PagerDutyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -317,12 +231,8 @@ export class PagerDutyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getPagerDutyIntegrationService * @throws ApiException if the response code was not in [200, 299] */ - public async getPagerDutyIntegrationService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getPagerDutyIntegrationService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PagerDutyServiceName = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -330,15 +240,8 @@ export class PagerDutyIntegrationApiResponseProcessor { ) as PagerDutyServiceName; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -347,11 +250,8 @@ export class PagerDutyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -359,17 +259,13 @@ export class PagerDutyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PagerDutyServiceName = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PagerDutyServiceName", - "" + "PagerDutyServiceName", "" ) as PagerDutyServiceName; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -379,25 +275,13 @@ export class PagerDutyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updatePagerDutyIntegrationService * @throws ApiException if the response code was not in [200, 299] */ - public async updatePagerDutyIntegrationService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updatePagerDutyIntegrationService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -406,11 +290,8 @@ export class PagerDutyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -418,17 +299,13 @@ export class PagerDutyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -437,7 +314,7 @@ export interface PagerDutyIntegrationApiCreatePagerDutyIntegrationServiceRequest * Create a new service object request body. * @type PagerDutyService */ - body: PagerDutyService; + body: PagerDutyService } export interface PagerDutyIntegrationApiDeletePagerDutyIntegrationServiceRequest { @@ -445,7 +322,7 @@ export interface PagerDutyIntegrationApiDeletePagerDutyIntegrationServiceRequest * The service name * @type string */ - serviceName: string; + serviceName: string } export interface PagerDutyIntegrationApiGetPagerDutyIntegrationServiceRequest { @@ -453,7 +330,7 @@ export interface PagerDutyIntegrationApiGetPagerDutyIntegrationServiceRequest { * The service name. * @type string */ - serviceName: string; + serviceName: string } export interface PagerDutyIntegrationApiUpdatePagerDutyIntegrationServiceRequest { @@ -461,12 +338,12 @@ export interface PagerDutyIntegrationApiUpdatePagerDutyIntegrationServiceRequest * The service name * @type string */ - serviceName: string; + serviceName: string /** * Update an existing service object request body. * @type PagerDutyServiceKey */ - body: PagerDutyServiceKey; + body: PagerDutyServiceKey } export class PagerDutyIntegrationApi { @@ -474,39 +351,21 @@ export class PagerDutyIntegrationApi { private responseProcessor: PagerDutyIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: PagerDutyIntegrationApiRequestFactory, - responseProcessor?: PagerDutyIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: PagerDutyIntegrationApiRequestFactory, responseProcessor?: PagerDutyIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new PagerDutyIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new PagerDutyIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new PagerDutyIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new PagerDutyIntegrationApiResponseProcessor(); } /** * Create a new service object in the PagerDuty integration. * @param param The request object */ - public createPagerDutyIntegrationService( - param: PagerDutyIntegrationApiCreatePagerDutyIntegrationServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createPagerDutyIntegrationService( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createPagerDutyIntegrationService( - responseContext - ); + public createPagerDutyIntegrationService(param: PagerDutyIntegrationApiCreatePagerDutyIntegrationServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createPagerDutyIntegrationService(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createPagerDutyIntegrationService(responseContext); }); }); } @@ -515,22 +374,11 @@ export class PagerDutyIntegrationApi { * Delete a single service object in the Datadog-PagerDuty integration. * @param param The request object */ - public deletePagerDutyIntegrationService( - param: PagerDutyIntegrationApiDeletePagerDutyIntegrationServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deletePagerDutyIntegrationService( - param.serviceName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deletePagerDutyIntegrationService( - responseContext - ); + public deletePagerDutyIntegrationService(param: PagerDutyIntegrationApiDeletePagerDutyIntegrationServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deletePagerDutyIntegrationService(param.serviceName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deletePagerDutyIntegrationService(responseContext); }); }); } @@ -539,22 +387,11 @@ export class PagerDutyIntegrationApi { * Get service name in the Datadog-PagerDuty integration. * @param param The request object */ - public getPagerDutyIntegrationService( - param: PagerDutyIntegrationApiGetPagerDutyIntegrationServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getPagerDutyIntegrationService( - param.serviceName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getPagerDutyIntegrationService( - responseContext - ); + public getPagerDutyIntegrationService(param: PagerDutyIntegrationApiGetPagerDutyIntegrationServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getPagerDutyIntegrationService(param.serviceName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getPagerDutyIntegrationService(responseContext); }); }); } @@ -563,24 +400,12 @@ export class PagerDutyIntegrationApi { * Update a single service object in the Datadog-PagerDuty integration. * @param param The request object */ - public updatePagerDutyIntegrationService( - param: PagerDutyIntegrationApiUpdatePagerDutyIntegrationServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updatePagerDutyIntegrationService( - param.serviceName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updatePagerDutyIntegrationService( - responseContext - ); + public updatePagerDutyIntegrationService(param: PagerDutyIntegrationApiUpdatePagerDutyIntegrationServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updatePagerDutyIntegrationService(param.serviceName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updatePagerDutyIntegrationService(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.ts b/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.ts index 5274b9d73d70..46c2299eca6f 100644 --- a/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.ts +++ b/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { AddSignalToIncidentRequest } from "../models/AddSignalToIncidentRequest"; import { APIErrorResponse } from "../models/APIErrorResponse"; import { SignalAssigneeUpdateRequest } from "../models/SignalAssigneeUpdateRequest"; @@ -23,46 +21,32 @@ import { SignalStateUpdateRequest } from "../models/SignalStateUpdateRequest"; import { SuccessfulSignalUpdateResponse } from "../models/SuccessfulSignalUpdateResponse"; export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { - public async addSecurityMonitoringSignalToIncident( - signalId: string, - body: AddSignalToIncidentRequest, - _options?: Configuration - ): Promise { + + public async addSecurityMonitoringSignalToIncident(signalId: string,body: AddSignalToIncidentRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError( - "signalId", - "addSecurityMonitoringSignalToIncident" - ); + throw new RequiredError('signalId', 'addSecurityMonitoringSignalToIncident'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "addSecurityMonitoringSignalToIncident"); + throw new RequiredError('body', 'addSecurityMonitoringSignalToIncident'); } // Path Params - const localVarPath = - "/api/v1/security_analytics/signals/{signal_id}/add_to_incident".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v1/security_analytics/signals/{signal_id}/add_to_incident' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer( - "v1.SecurityMonitoringApi.addSecurityMonitoringSignalToIncident" - ) - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.SecurityMonitoringApi.addSecurityMonitoringSignalToIncident').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AddSignalToIncidentRequest", ""), @@ -71,54 +55,36 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async editSecurityMonitoringSignalAssignee( - signalId: string, - body: SignalAssigneeUpdateRequest, - _options?: Configuration - ): Promise { + public async editSecurityMonitoringSignalAssignee(signalId: string,body: SignalAssigneeUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError( - "signalId", - "editSecurityMonitoringSignalAssignee" - ); + throw new RequiredError('signalId', 'editSecurityMonitoringSignalAssignee'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "editSecurityMonitoringSignalAssignee"); + throw new RequiredError('body', 'editSecurityMonitoringSignalAssignee'); } // Path Params - const localVarPath = - "/api/v1/security_analytics/signals/{signal_id}/assignee".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v1/security_analytics/signals/{signal_id}/assignee' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer( - "v1.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee" - ) - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SignalAssigneeUpdateRequest", ""), @@ -127,49 +93,36 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async editSecurityMonitoringSignalState( - signalId: string, - body: SignalStateUpdateRequest, - _options?: Configuration - ): Promise { + public async editSecurityMonitoringSignalState(signalId: string,body: SignalStateUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError("signalId", "editSecurityMonitoringSignalState"); + throw new RequiredError('signalId', 'editSecurityMonitoringSignalState'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "editSecurityMonitoringSignalState"); + throw new RequiredError('body', 'editSecurityMonitoringSignalState'); } // Path Params - const localVarPath = - "/api/v1/security_analytics/signals/{signal_id}/state".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v1/security_analytics/signals/{signal_id}/state' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer("v1.SecurityMonitoringApi.editSecurityMonitoringSignalState") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.SecurityMonitoringApi.editSecurityMonitoringSignalState').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SignalStateUpdateRequest", ""), @@ -178,16 +131,14 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SecurityMonitoringApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -195,12 +146,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to addSecurityMonitoringSignalToIncident * @throws ApiException if the response code was not in [200, 299] */ - public async addSecurityMonitoringSignalToIncident( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async addSecurityMonitoringSignalToIncident(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SuccessfulSignalUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -208,16 +155,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SuccessfulSignalUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -226,11 +165,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -238,17 +174,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SuccessfulSignalUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SuccessfulSignalUpdateResponse", - "" + "SuccessfulSignalUpdateResponse", "" ) as SuccessfulSignalUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -258,12 +190,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee * @throws ApiException if the response code was not in [200, 299] */ - public async editSecurityMonitoringSignalAssignee( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async editSecurityMonitoringSignalAssignee(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SuccessfulSignalUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -271,16 +199,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SuccessfulSignalUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -289,11 +209,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -301,17 +218,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SuccessfulSignalUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SuccessfulSignalUpdateResponse", - "" + "SuccessfulSignalUpdateResponse", "" ) as SuccessfulSignalUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -321,12 +234,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to editSecurityMonitoringSignalState * @throws ApiException if the response code was not in [200, 299] */ - public async editSecurityMonitoringSignalState( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async editSecurityMonitoringSignalState(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SuccessfulSignalUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -334,16 +243,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SuccessfulSignalUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -352,11 +253,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -364,17 +262,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SuccessfulSignalUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SuccessfulSignalUpdateResponse", - "" + "SuccessfulSignalUpdateResponse", "" ) as SuccessfulSignalUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -383,12 +277,12 @@ export interface SecurityMonitoringApiAddSecurityMonitoringSignalToIncidentReque * The ID of the signal. * @type string */ - signalId: string; + signalId: string /** * Attributes describing the signal update. * @type AddSignalToIncidentRequest */ - body: AddSignalToIncidentRequest; + body: AddSignalToIncidentRequest } export interface SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest { @@ -396,12 +290,12 @@ export interface SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeReques * The ID of the signal. * @type string */ - signalId: string; + signalId: string /** * Attributes describing the signal update. * @type SignalAssigneeUpdateRequest */ - body: SignalAssigneeUpdateRequest; + body: SignalAssigneeUpdateRequest } export interface SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest { @@ -409,12 +303,12 @@ export interface SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest { * The ID of the signal. * @type string */ - signalId: string; + signalId: string /** * Attributes describing the signal update. * @type SignalStateUpdateRequest */ - body: SignalStateUpdateRequest; + body: SignalStateUpdateRequest } export class SecurityMonitoringApi { @@ -422,39 +316,21 @@ export class SecurityMonitoringApi { private responseProcessor: SecurityMonitoringApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SecurityMonitoringApiRequestFactory, - responseProcessor?: SecurityMonitoringApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SecurityMonitoringApiRequestFactory, responseProcessor?: SecurityMonitoringApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SecurityMonitoringApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SecurityMonitoringApiResponseProcessor(); + this.requestFactory = requestFactory || new SecurityMonitoringApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SecurityMonitoringApiResponseProcessor(); } /** * Add a security signal to an incident. This makes it possible to search for signals by incident within the signal explorer and to view the signals on the incident timeline. * @param param The request object */ - public addSecurityMonitoringSignalToIncident( - param: SecurityMonitoringApiAddSecurityMonitoringSignalToIncidentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.addSecurityMonitoringSignalToIncident( - param.signalId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.addSecurityMonitoringSignalToIncident( - responseContext - ); + public addSecurityMonitoringSignalToIncident(param: SecurityMonitoringApiAddSecurityMonitoringSignalToIncidentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.addSecurityMonitoringSignalToIncident(param.signalId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.addSecurityMonitoringSignalToIncident(responseContext); }); }); } @@ -463,23 +339,11 @@ export class SecurityMonitoringApi { * Modify the triage assignee of a security signal. * @param param The request object */ - public editSecurityMonitoringSignalAssignee( - param: SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.editSecurityMonitoringSignalAssignee( - param.signalId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.editSecurityMonitoringSignalAssignee( - responseContext - ); + public editSecurityMonitoringSignalAssignee(param: SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalAssignee(param.signalId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.editSecurityMonitoringSignalAssignee(responseContext); }); }); } @@ -488,24 +352,12 @@ export class SecurityMonitoringApi { * Change the triage state of a security signal. * @param param The request object */ - public editSecurityMonitoringSignalState( - param: SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.editSecurityMonitoringSignalState( - param.signalId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.editSecurityMonitoringSignalState( - responseContext - ); + public editSecurityMonitoringSignalState(param: SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalState(param.signalId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.editSecurityMonitoringSignalState(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/ServiceChecksApi.ts b/packages/datadog-api-client-v1/apis/ServiceChecksApi.ts index d0568a019711..441c64eaad62 100644 --- a/packages/datadog-api-client-v1/apis/ServiceChecksApi.ts +++ b/packages/datadog-api-client-v1/apis/ServiceChecksApi.ts @@ -1,51 +1,45 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IntakePayloadAccepted } from "../models/IntakePayloadAccepted"; import { ServiceCheck } from "../models/ServiceCheck"; +import { ServiceChecks } from "../models/ServiceChecks"; export class ServiceChecksApiRequestFactory extends BaseAPIRequestFactory { - public async submitServiceCheck( - body: Array, - _options?: Configuration - ): Promise { + + public async submitServiceCheck(body: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "submitServiceCheck"); + throw new RequiredError('body', 'submitServiceCheck'); } // Path Params - const localVarPath = "/api/v1/check_run"; + const localVarPath = '/api/v1/check_run'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceChecksApi.submitServiceCheck") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.ServiceChecksApi.submitServiceCheck').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "text/json, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Array", ""), @@ -61,6 +55,7 @@ export class ServiceChecksApiRequestFactory extends BaseAPIRequestFactory { } export class ServiceChecksApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -68,12 +63,8 @@ export class ServiceChecksApiResponseProcessor { * @params response Response returned by the server for a request to submitServiceCheck * @throws ApiException if the response code was not in [200, 299] */ - public async submitServiceCheck( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async submitServiceCheck(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -81,17 +72,8 @@ export class ServiceChecksApiResponseProcessor { ) as IntakePayloadAccepted; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 408 || - response.httpStatusCode === 413 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 408||response.httpStatusCode === 413||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -100,11 +82,8 @@ export class ServiceChecksApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -112,17 +91,13 @@ export class ServiceChecksApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IntakePayloadAccepted", - "" + "IntakePayloadAccepted", "" ) as IntakePayloadAccepted; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -131,7 +106,7 @@ export interface ServiceChecksApiSubmitServiceCheckRequest { * Service Check request body. * @type Array */ - body: Array; + body: Array } export class ServiceChecksApi { @@ -139,40 +114,26 @@ export class ServiceChecksApi { private responseProcessor: ServiceChecksApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceChecksApiRequestFactory, - responseProcessor?: ServiceChecksApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceChecksApiRequestFactory, responseProcessor?: ServiceChecksApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ServiceChecksApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ServiceChecksApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceChecksApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceChecksApiResponseProcessor(); } /** * Submit a list of Service Checks. - * + * * **Notes**: * - A valid API key is required. * - Service checks can be submitted up to 10 minutes in the past. * @param param The request object */ - public submitServiceCheck( - param: ServiceChecksApiSubmitServiceCheckRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.submitServiceCheck( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.submitServiceCheck(responseContext); + public submitServiceCheck(param: ServiceChecksApiSubmitServiceCheckRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.submitServiceCheck(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.submitServiceCheck(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts b/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts index 0147adf93f93..3450befade6a 100644 --- a/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts +++ b/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { SLOCorrection } from "../models/SLOCorrection"; import { SLOCorrectionCreateRequest } from "../models/SLOCorrectionCreateRequest"; @@ -24,31 +22,26 @@ import { SLOCorrectionResponse } from "../models/SLOCorrectionResponse"; import { SLOCorrectionUpdateRequest } from "../models/SLOCorrectionUpdateRequest"; export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRequestFactory { - public async createSLOCorrection( - body: SLOCorrectionCreateRequest, - _options?: Configuration - ): Promise { + + public async createSLOCorrection(body: SLOCorrectionCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSLOCorrection"); + throw new RequiredError('body', 'createSLOCorrection'); } // Path Params - const localVarPath = "/api/v1/slo/correction"; + const localVarPath = '/api/v1/slo/correction'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectiveCorrectionsApi.createSLOCorrection") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.ServiceLevelObjectiveCorrectionsApi.createSLOCorrection').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SLOCorrectionCreateRequest", ""), @@ -57,158 +50,107 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSLOCorrection( - sloCorrectionId: string, - _options?: Configuration - ): Promise { + public async deleteSLOCorrection(sloCorrectionId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloCorrectionId' is not null or undefined if (sloCorrectionId === null || sloCorrectionId === undefined) { - throw new RequiredError("sloCorrectionId", "deleteSLOCorrection"); + throw new RequiredError('sloCorrectionId', 'deleteSLOCorrection'); } // Path Params - const localVarPath = "/api/v1/slo/correction/{slo_correction_id}".replace( - "{slo_correction_id}", - encodeURIComponent(String(sloCorrectionId)) - ); + const localVarPath = '/api/v1/slo/correction/{slo_correction_id}' + .replace('{slo_correction_id}', encodeURIComponent(String(sloCorrectionId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectiveCorrectionsApi.deleteSLOCorrection") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.ServiceLevelObjectiveCorrectionsApi.deleteSLOCorrection').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSLOCorrection( - sloCorrectionId: string, - _options?: Configuration - ): Promise { + public async getSLOCorrection(sloCorrectionId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloCorrectionId' is not null or undefined if (sloCorrectionId === null || sloCorrectionId === undefined) { - throw new RequiredError("sloCorrectionId", "getSLOCorrection"); + throw new RequiredError('sloCorrectionId', 'getSLOCorrection'); } // Path Params - const localVarPath = "/api/v1/slo/correction/{slo_correction_id}".replace( - "{slo_correction_id}", - encodeURIComponent(String(sloCorrectionId)) - ); + const localVarPath = '/api/v1/slo/correction/{slo_correction_id}' + .replace('{slo_correction_id}', encodeURIComponent(String(sloCorrectionId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectiveCorrectionsApi.getSLOCorrection") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectiveCorrectionsApi.getSLOCorrection').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSLOCorrection( - offset?: number, - limit?: number, - _options?: Configuration - ): Promise { + public async listSLOCorrection(offset?: number,limit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/slo/correction"; + const localVarPath = '/api/v1/slo/correction'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectiveCorrectionsApi.listSLOCorrection") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectiveCorrectionsApi.listSLOCorrection').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (offset !== undefined) { - requestContext.setQueryParam( - "offset", - ObjectSerializer.serialize(offset, "number", "int64"), - "" - ); + requestContext.setQueryParam("offset", ObjectSerializer.serialize(offset, "number", "int64"), ""); } if (limit !== undefined) { - requestContext.setQueryParam( - "limit", - ObjectSerializer.serialize(limit, "number", "int64"), - "" - ); + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSLOCorrection( - sloCorrectionId: string, - body: SLOCorrectionUpdateRequest, - _options?: Configuration - ): Promise { + public async updateSLOCorrection(sloCorrectionId: string,body: SLOCorrectionUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloCorrectionId' is not null or undefined if (sloCorrectionId === null || sloCorrectionId === undefined) { - throw new RequiredError("sloCorrectionId", "updateSLOCorrection"); + throw new RequiredError('sloCorrectionId', 'updateSLOCorrection'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSLOCorrection"); + throw new RequiredError('body', 'updateSLOCorrection'); } // Path Params - const localVarPath = "/api/v1/slo/correction/{slo_correction_id}".replace( - "{slo_correction_id}", - encodeURIComponent(String(sloCorrectionId)) - ); + const localVarPath = '/api/v1/slo/correction/{slo_correction_id}' + .replace('{slo_correction_id}', encodeURIComponent(String(sloCorrectionId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectiveCorrectionsApi.updateSLOCorrection") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.ServiceLevelObjectiveCorrectionsApi.updateSLOCorrection').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SLOCorrectionUpdateRequest", ""), @@ -217,16 +159,14 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -234,12 +174,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { * @params response Response returned by the server for a request to createSLOCorrection * @throws ApiException if the response code was not in [200, 299] */ - public async createSLOCorrection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSLOCorrection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOCorrectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -247,16 +183,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as SLOCorrectionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -265,11 +193,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -277,17 +202,13 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOCorrectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOCorrectionResponse", - "" + "SLOCorrectionResponse", "" ) as SLOCorrectionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -297,22 +218,13 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { * @params response Response returned by the server for a request to deleteSLOCorrection * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSLOCorrection(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSLOCorrection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -321,11 +233,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -333,17 +242,13 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -353,12 +258,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { * @params response Response returned by the server for a request to getSLOCorrection * @throws ApiException if the response code was not in [200, 299] */ - public async getSLOCorrection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSLOCorrection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOCorrectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -366,15 +267,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as SLOCorrectionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -383,11 +277,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -395,17 +286,13 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOCorrectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOCorrectionResponse", - "" + "SLOCorrectionResponse", "" ) as SLOCorrectionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -415,12 +302,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { * @params response Response returned by the server for a request to listSLOCorrection * @throws ApiException if the response code was not in [200, 299] */ - public async listSLOCorrection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSLOCorrection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOCorrectionListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -428,11 +311,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as SLOCorrectionListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -441,11 +321,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -453,17 +330,13 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOCorrectionListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOCorrectionListResponse", - "" + "SLOCorrectionListResponse", "" ) as SLOCorrectionListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -473,12 +346,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { * @params response Response returned by the server for a request to updateSLOCorrection * @throws ApiException if the response code was not in [200, 299] */ - public async updateSLOCorrection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSLOCorrection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOCorrectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -486,16 +355,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as SLOCorrectionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -504,11 +365,8 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -516,17 +374,13 @@ export class ServiceLevelObjectiveCorrectionsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOCorrectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOCorrectionResponse", - "" + "SLOCorrectionResponse", "" ) as SLOCorrectionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -535,7 +389,7 @@ export interface ServiceLevelObjectiveCorrectionsApiCreateSLOCorrectionRequest { * Create an SLO Correction * @type SLOCorrectionCreateRequest */ - body: SLOCorrectionCreateRequest; + body: SLOCorrectionCreateRequest } export interface ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest { @@ -543,7 +397,7 @@ export interface ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest { * The ID of the SLO correction object. * @type string */ - sloCorrectionId: string; + sloCorrectionId: string } export interface ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest { @@ -551,7 +405,7 @@ export interface ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest { * The ID of the SLO correction object. * @type string */ - sloCorrectionId: string; + sloCorrectionId: string } export interface ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest { @@ -559,12 +413,12 @@ export interface ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest { * The specific offset to use as the beginning of the returned response. * @type number */ - offset?: number; + offset?: number /** * The number of SLO corrections to return in the response. Default is 25. * @type number */ - limit?: number; + limit?: number } export interface ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest { @@ -572,12 +426,12 @@ export interface ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest { * The ID of the SLO correction object. * @type string */ - sloCorrectionId: string; + sloCorrectionId: string /** * The edited SLO correction object. * @type SLOCorrectionUpdateRequest */ - body: SLOCorrectionUpdateRequest; + body: SLOCorrectionUpdateRequest } export class ServiceLevelObjectiveCorrectionsApi { @@ -585,37 +439,21 @@ export class ServiceLevelObjectiveCorrectionsApi { private responseProcessor: ServiceLevelObjectiveCorrectionsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceLevelObjectiveCorrectionsApiRequestFactory, - responseProcessor?: ServiceLevelObjectiveCorrectionsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceLevelObjectiveCorrectionsApiRequestFactory, responseProcessor?: ServiceLevelObjectiveCorrectionsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new ServiceLevelObjectiveCorrectionsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || - new ServiceLevelObjectiveCorrectionsApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceLevelObjectiveCorrectionsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceLevelObjectiveCorrectionsApiResponseProcessor(); } /** * Create an SLO Correction. * @param param The request object */ - public createSLOCorrection( - param: ServiceLevelObjectiveCorrectionsApiCreateSLOCorrectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createSLOCorrection( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSLOCorrection(responseContext); + public createSLOCorrection(param: ServiceLevelObjectiveCorrectionsApiCreateSLOCorrectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSLOCorrection(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSLOCorrection(responseContext); }); }); } @@ -624,19 +462,11 @@ export class ServiceLevelObjectiveCorrectionsApi { * Permanently delete the specified SLO correction object. * @param param The request object */ - public deleteSLOCorrection( - param: ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteSLOCorrection( - param.sloCorrectionId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSLOCorrection(responseContext); + public deleteSLOCorrection(param: ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSLOCorrection(param.sloCorrectionId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSLOCorrection(responseContext); }); }); } @@ -645,19 +475,11 @@ export class ServiceLevelObjectiveCorrectionsApi { * Get an SLO correction. * @param param The request object */ - public getSLOCorrection( - param: ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSLOCorrection( - param.sloCorrectionId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSLOCorrection(responseContext); + public getSLOCorrection(param: ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSLOCorrection(param.sloCorrectionId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSLOCorrection(responseContext); }); }); } @@ -666,20 +488,11 @@ export class ServiceLevelObjectiveCorrectionsApi { * Get all Service Level Objective corrections. * @param param The request object */ - public listSLOCorrection( - param: ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listSLOCorrection( - param.offset, - param.limit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSLOCorrection(responseContext); + public listSLOCorrection(param: ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSLOCorrection(param.offset,param.limit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSLOCorrection(responseContext); }); }); } @@ -687,28 +500,18 @@ export class ServiceLevelObjectiveCorrectionsApi { /** * Provide a paginated version of listSLOCorrection returning a generator with all the items. */ - public async *listSLOCorrectionWithPagination( - param: ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listSLOCorrectionWithPagination(param: ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 25; if (param.limit !== undefined) { pageSize = param.limit; } param.limit = pageSize; while (true) { - const requestContext = await this.requestFactory.listSLOCorrection( - param.offset, - param.limit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listSLOCorrection( - responseContext - ); + const requestContext = await this.requestFactory.listSLOCorrection(param.offset,param.limit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listSLOCorrection(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -732,21 +535,12 @@ export class ServiceLevelObjectiveCorrectionsApi { * Update the specified SLO correction object. * @param param The request object */ - public updateSLOCorrection( - param: ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateSLOCorrection( - param.sloCorrectionId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSLOCorrection(responseContext); + public updateSLOCorrection(param: ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSLOCorrection(param.sloCorrectionId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSLOCorrection(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts b/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts index 704b45817a86..25873ace554d 100644 --- a/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts +++ b/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CheckCanDeleteSLOResponse } from "../models/CheckCanDeleteSLOResponse"; import { SearchSLOResponse } from "../models/SearchSLOResponse"; @@ -30,71 +28,53 @@ import { SLOResponse } from "../models/SLOResponse"; import { SLOTimeframe } from "../models/SLOTimeframe"; export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFactory { - public async checkCanDeleteSLO( - ids: string, - _options?: Configuration - ): Promise { + + public async checkCanDeleteSLO(ids: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ids' is not null or undefined if (ids === null || ids === undefined) { - throw new RequiredError("ids", "checkCanDeleteSLO"); + throw new RequiredError('ids', 'checkCanDeleteSLO'); } // Path Params - const localVarPath = "/api/v1/slo/can_delete"; + const localVarPath = '/api/v1/slo/can_delete'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.checkCanDeleteSLO") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.checkCanDeleteSLO').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (ids !== undefined) { - requestContext.setQueryParam( - "ids", - ObjectSerializer.serialize(ids, "string", ""), - "" - ); + requestContext.setQueryParam("ids", ObjectSerializer.serialize(ids, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSLO( - body: ServiceLevelObjectiveRequest, - _options?: Configuration - ): Promise { + public async createSLO(body: ServiceLevelObjectiveRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSLO"); + throw new RequiredError('body', 'createSLO'); } // Path Params - const localVarPath = "/api/v1/slo"; + const localVarPath = '/api/v1/slo'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.createSLO") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.createSLO').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ServiceLevelObjectiveRequest", ""), @@ -103,429 +83,262 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSLO( - sloId: string, - force?: string, - _options?: Configuration - ): Promise { + public async deleteSLO(sloId: string,force?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloId' is not null or undefined if (sloId === null || sloId === undefined) { - throw new RequiredError("sloId", "deleteSLO"); + throw new RequiredError('sloId', 'deleteSLO'); } // Path Params - const localVarPath = "/api/v1/slo/{slo_id}".replace( - "{slo_id}", - encodeURIComponent(String(sloId)) - ); + const localVarPath = '/api/v1/slo/{slo_id}' + .replace('{slo_id}', encodeURIComponent(String(sloId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.deleteSLO") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.deleteSLO').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (force !== undefined) { - requestContext.setQueryParam( - "force", - ObjectSerializer.serialize(force, "string", ""), - "" - ); + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSLOTimeframeInBulk( - body: { [key: string]: Array }, - _options?: Configuration - ): Promise { + public async deleteSLOTimeframeInBulk(body: { [key: string]: Array; },_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteSLOTimeframeInBulk"); + throw new RequiredError('body', 'deleteSLOTimeframeInBulk'); } // Path Params - const localVarPath = "/api/v1/slo/bulk_delete"; + const localVarPath = '/api/v1/slo/bulk_delete'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.deleteSLOTimeframeInBulk") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.deleteSLOTimeframeInBulk').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "{ [key: string]: Array; }", - "" - ), + ObjectSerializer.serialize(body, "{ [key: string]: Array; }", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSLO( - sloId: string, - withConfiguredAlertIds?: boolean, - _options?: Configuration - ): Promise { + public async getSLO(sloId: string,withConfiguredAlertIds?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloId' is not null or undefined if (sloId === null || sloId === undefined) { - throw new RequiredError("sloId", "getSLO"); + throw new RequiredError('sloId', 'getSLO'); } // Path Params - const localVarPath = "/api/v1/slo/{slo_id}".replace( - "{slo_id}", - encodeURIComponent(String(sloId)) - ); + const localVarPath = '/api/v1/slo/{slo_id}' + .replace('{slo_id}', encodeURIComponent(String(sloId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.getSLO") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.getSLO').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (withConfiguredAlertIds !== undefined) { - requestContext.setQueryParam( - "with_configured_alert_ids", - ObjectSerializer.serialize(withConfiguredAlertIds, "boolean", ""), - "" - ); + requestContext.setQueryParam("with_configured_alert_ids", ObjectSerializer.serialize(withConfiguredAlertIds, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSLOCorrections( - sloId: string, - _options?: Configuration - ): Promise { + public async getSLOCorrections(sloId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloId' is not null or undefined if (sloId === null || sloId === undefined) { - throw new RequiredError("sloId", "getSLOCorrections"); + throw new RequiredError('sloId', 'getSLOCorrections'); } // Path Params - const localVarPath = "/api/v1/slo/{slo_id}/corrections".replace( - "{slo_id}", - encodeURIComponent(String(sloId)) - ); + const localVarPath = '/api/v1/slo/{slo_id}/corrections' + .replace('{slo_id}', encodeURIComponent(String(sloId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.getSLOCorrections") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.getSLOCorrections').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSLOHistory( - sloId: string, - fromTs: number, - toTs: number, - target?: number, - applyCorrection?: boolean, - _options?: Configuration - ): Promise { + public async getSLOHistory(sloId: string,fromTs: number,toTs: number,target?: number,applyCorrection?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloId' is not null or undefined if (sloId === null || sloId === undefined) { - throw new RequiredError("sloId", "getSLOHistory"); + throw new RequiredError('sloId', 'getSLOHistory'); } // verify required parameter 'fromTs' is not null or undefined if (fromTs === null || fromTs === undefined) { - throw new RequiredError("fromTs", "getSLOHistory"); + throw new RequiredError('fromTs', 'getSLOHistory'); } // verify required parameter 'toTs' is not null or undefined if (toTs === null || toTs === undefined) { - throw new RequiredError("toTs", "getSLOHistory"); + throw new RequiredError('toTs', 'getSLOHistory'); } // Path Params - const localVarPath = "/api/v1/slo/{slo_id}/history".replace( - "{slo_id}", - encodeURIComponent(String(sloId)) - ); + const localVarPath = '/api/v1/slo/{slo_id}/history' + .replace('{slo_id}', encodeURIComponent(String(sloId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.getSLOHistory") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.getSLOHistory').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (fromTs !== undefined) { - requestContext.setQueryParam( - "from_ts", - ObjectSerializer.serialize(fromTs, "number", "int64"), - "" - ); + requestContext.setQueryParam("from_ts", ObjectSerializer.serialize(fromTs, "number", "int64"), ""); } if (toTs !== undefined) { - requestContext.setQueryParam( - "to_ts", - ObjectSerializer.serialize(toTs, "number", "int64"), - "" - ); + requestContext.setQueryParam("to_ts", ObjectSerializer.serialize(toTs, "number", "int64"), ""); } if (target !== undefined) { - requestContext.setQueryParam( - "target", - ObjectSerializer.serialize(target, "number", "double"), - "" - ); + requestContext.setQueryParam("target", ObjectSerializer.serialize(target, "number", "double"), ""); } if (applyCorrection !== undefined) { - requestContext.setQueryParam( - "apply_correction", - ObjectSerializer.serialize(applyCorrection, "boolean", ""), - "" - ); + requestContext.setQueryParam("apply_correction", ObjectSerializer.serialize(applyCorrection, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSLOs( - ids?: string, - query?: string, - tagsQuery?: string, - metricsQuery?: string, - limit?: number, - offset?: number, - _options?: Configuration - ): Promise { + public async listSLOs(ids?: string,query?: string,tagsQuery?: string,metricsQuery?: string,limit?: number,offset?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/slo"; + const localVarPath = '/api/v1/slo'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.listSLOs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.listSLOs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (ids !== undefined) { - requestContext.setQueryParam( - "ids", - ObjectSerializer.serialize(ids, "string", ""), - "" - ); + requestContext.setQueryParam("ids", ObjectSerializer.serialize(ids, "string", ""), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (tagsQuery !== undefined) { - requestContext.setQueryParam( - "tags_query", - ObjectSerializer.serialize(tagsQuery, "string", ""), - "" - ); + requestContext.setQueryParam("tags_query", ObjectSerializer.serialize(tagsQuery, "string", ""), ""); } if (metricsQuery !== undefined) { - requestContext.setQueryParam( - "metrics_query", - ObjectSerializer.serialize(metricsQuery, "string", ""), - "" - ); + requestContext.setQueryParam("metrics_query", ObjectSerializer.serialize(metricsQuery, "string", ""), ""); } if (limit !== undefined) { - requestContext.setQueryParam( - "limit", - ObjectSerializer.serialize(limit, "number", "int64"), - "" - ); + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int64"), ""); } if (offset !== undefined) { - requestContext.setQueryParam( - "offset", - ObjectSerializer.serialize(offset, "number", "int64"), - "" - ); + requestContext.setQueryParam("offset", ObjectSerializer.serialize(offset, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchSLO( - query?: string, - pageSize?: number, - pageNumber?: number, - includeFacets?: boolean, - _options?: Configuration - ): Promise { + public async searchSLO(query?: string,pageSize?: number,pageNumber?: number,includeFacets?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/slo/search"; + const localVarPath = '/api/v1/slo/search'; // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.searchSLO") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.searchSLO').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (includeFacets !== undefined) { - requestContext.setQueryParam( - "include_facets", - ObjectSerializer.serialize(includeFacets, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_facets", ObjectSerializer.serialize(includeFacets, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSLO( - sloId: string, - body: ServiceLevelObjective, - _options?: Configuration - ): Promise { + public async updateSLO(sloId: string,body: ServiceLevelObjective,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'sloId' is not null or undefined if (sloId === null || sloId === undefined) { - throw new RequiredError("sloId", "updateSLO"); + throw new RequiredError('sloId', 'updateSLO'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSLO"); + throw new RequiredError('body', 'updateSLO'); } // Path Params - const localVarPath = "/api/v1/slo/{slo_id}".replace( - "{slo_id}", - encodeURIComponent(String(sloId)) - ); + const localVarPath = '/api/v1/slo/{slo_id}' + .replace('{slo_id}', encodeURIComponent(String(sloId))); // Make Request Context - const requestContext = _config - .getServer("v1.ServiceLevelObjectivesApi.updateSLO") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.ServiceLevelObjectivesApi.updateSLO').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ServiceLevelObjective", ""), @@ -534,17 +347,14 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ServiceLevelObjectivesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -552,28 +362,17 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to checkCanDeleteSLO * @throws ApiException if the response code was not in [200, 299] */ - public async checkCanDeleteSLO( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200 || response.httpStatusCode === 409) { + public async checkCanDeleteSLO(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200||response.httpStatusCode === 409) { const body: CheckCanDeleteSLOResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CheckCanDeleteSLOResponse" ) as CheckCanDeleteSLOResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -582,11 +381,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -594,17 +390,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CheckCanDeleteSLOResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CheckCanDeleteSLOResponse", - "" + "CheckCanDeleteSLOResponse", "" ) as CheckCanDeleteSLOResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -614,10 +406,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to createSLO * @throws ApiException if the response code was not in [200, 299] */ - public async createSLO(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSLO(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -625,15 +415,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -642,11 +425,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -654,17 +434,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOListResponse", - "" + "SLOListResponse", "" ) as SLOListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -674,28 +450,17 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to deleteSLO * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSLO( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200 || response.httpStatusCode === 409) { + public async deleteSLO(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200||response.httpStatusCode === 409) { const body: SLODeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "SLODeleteResponse" ) as SLODeleteResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -704,11 +469,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -716,17 +478,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLODeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLODeleteResponse", - "" + "SLODeleteResponse", "" ) as SLODeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -736,12 +494,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to deleteSLOTimeframeInBulk * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSLOTimeframeInBulk( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSLOTimeframeInBulk(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOBulkDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -749,15 +503,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOBulkDeleteResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -766,11 +513,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -778,17 +522,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOBulkDeleteResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOBulkDeleteResponse", - "" + "SLOBulkDeleteResponse", "" ) as SLOBulkDeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -798,10 +538,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to getSLO * @throws ApiException if the response code was not in [200, 299] */ - public async getSLO(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSLO(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -809,15 +547,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -826,11 +557,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -838,17 +566,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOResponse", - "" + "SLOResponse", "" ) as SLOResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -858,12 +582,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to getSLOCorrections * @throws ApiException if the response code was not in [200, 299] */ - public async getSLOCorrections( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSLOCorrections(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOCorrectionListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -871,16 +591,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOCorrectionListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -889,11 +601,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -901,17 +610,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOCorrectionListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOCorrectionListResponse", - "" + "SLOCorrectionListResponse", "" ) as SLOCorrectionListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -921,12 +626,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to getSLOHistory * @throws ApiException if the response code was not in [200, 299] */ - public async getSLOHistory( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSLOHistory(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOHistoryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -934,16 +635,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOHistoryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -952,11 +645,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -964,17 +654,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOHistoryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOHistoryResponse", - "" + "SLOHistoryResponse", "" ) as SLOHistoryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -984,10 +670,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to listSLOs * @throws ApiException if the response code was not in [200, 299] */ - public async listSLOs(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSLOs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -995,16 +679,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1013,11 +689,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1025,17 +698,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOListResponse", - "" + "SLOListResponse", "" ) as SLOListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1045,12 +714,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to searchSLO * @throws ApiException if the response code was not in [200, 299] */ - public async searchSLO( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchSLO(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SearchSLOResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1058,15 +723,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SearchSLOResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1075,11 +733,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1087,17 +742,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SearchSLOResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SearchSLOResponse", - "" + "SearchSLOResponse", "" ) as SearchSLOResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1107,10 +758,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to updateSLO * @throws ApiException if the response code was not in [200, 299] */ - public async updateSLO(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSLO(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1118,16 +767,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1136,11 +777,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1148,17 +786,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOListResponse", - "" + "SLOListResponse", "" ) as SLOListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1167,7 +801,7 @@ export interface ServiceLevelObjectivesApiCheckCanDeleteSLORequest { * A comma separated list of the IDs of the service level objectives objects. * @type string */ - ids: string; + ids: string } export interface ServiceLevelObjectivesApiCreateSLORequest { @@ -1175,7 +809,7 @@ export interface ServiceLevelObjectivesApiCreateSLORequest { * Service level objective request object. * @type ServiceLevelObjectiveRequest */ - body: ServiceLevelObjectiveRequest; + body: ServiceLevelObjectiveRequest } export interface ServiceLevelObjectivesApiDeleteSLORequest { @@ -1183,12 +817,12 @@ export interface ServiceLevelObjectivesApiDeleteSLORequest { * The ID of the service level objective. * @type string */ - sloId: string; + sloId: string /** * Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). * @type string */ - force?: string; + force?: string } export interface ServiceLevelObjectivesApiDeleteSLOTimeframeInBulkRequest { @@ -1196,7 +830,7 @@ export interface ServiceLevelObjectivesApiDeleteSLOTimeframeInBulkRequest { * Delete multiple service level objective objects request body. * @type { [key: string]: Array; } */ - body: { [key: string]: Array }; + body: { [key: string]: Array; } } export interface ServiceLevelObjectivesApiGetSLORequest { @@ -1204,12 +838,12 @@ export interface ServiceLevelObjectivesApiGetSLORequest { * The ID of the service level objective object. * @type string */ - sloId: string; + sloId: string /** * Get the IDs of SLO monitors that reference this SLO. * @type boolean */ - withConfiguredAlertIds?: boolean; + withConfiguredAlertIds?: boolean } export interface ServiceLevelObjectivesApiGetSLOCorrectionsRequest { @@ -1217,7 +851,7 @@ export interface ServiceLevelObjectivesApiGetSLOCorrectionsRequest { * The ID of the service level objective object. * @type string */ - sloId: string; + sloId: string } export interface ServiceLevelObjectivesApiGetSLOHistoryRequest { @@ -1225,28 +859,28 @@ export interface ServiceLevelObjectivesApiGetSLOHistoryRequest { * The ID of the service level objective object. * @type string */ - sloId: string; + sloId: string /** * The `from` timestamp for the query window in epoch seconds. * @type number */ - fromTs: number; + fromTs: number /** * The `to` timestamp for the query window in epoch seconds. * @type number */ - toTs: number; + toTs: number /** * The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. * @type number */ - target?: number; + target?: number /** * Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, * then the corrections will not be applied and the SLI values will not be affected. * @type boolean */ - applyCorrection?: boolean; + applyCorrection?: boolean } export interface ServiceLevelObjectivesApiListSLOsRequest { @@ -1254,32 +888,32 @@ export interface ServiceLevelObjectivesApiListSLOsRequest { * A comma separated list of the IDs of the service level objectives objects. * @type string */ - ids?: string; + ids?: string /** * The query string to filter results based on SLO names. * @type string */ - query?: string; + query?: string /** * The query string to filter results based on a single SLO tag. * @type string */ - tagsQuery?: string; + tagsQuery?: string /** * The query string to filter results based on SLO numerator and denominator. * @type string */ - metricsQuery?: string; + metricsQuery?: string /** * The number of SLOs to return in the response. * @type number */ - limit?: number; + limit?: number /** * The specific offset to use as the beginning of the returned response. * @type number */ - offset?: number; + offset?: number } export interface ServiceLevelObjectivesApiSearchSLORequest { @@ -1289,22 +923,22 @@ export interface ServiceLevelObjectivesApiSearchSLORequest { * and ``. * @type string */ - query?: string; + query?: string /** * The number of files to return in the response `[default=10]`. * @type number */ - pageSize?: number; + pageSize?: number /** * The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Whether or not to return facet information in the response `[default=false]`. * @type boolean */ - includeFacets?: boolean; + includeFacets?: boolean } export interface ServiceLevelObjectivesApiUpdateSLORequest { @@ -1312,12 +946,12 @@ export interface ServiceLevelObjectivesApiUpdateSLORequest { * The ID of the service level objective object. * @type string */ - sloId: string; + sloId: string /** * The edited service level objective request object. * @type ServiceLevelObjective */ - body: ServiceLevelObjective; + body: ServiceLevelObjective } export class ServiceLevelObjectivesApi { @@ -1325,17 +959,10 @@ export class ServiceLevelObjectivesApi { private responseProcessor: ServiceLevelObjectivesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceLevelObjectivesApiRequestFactory, - responseProcessor?: ServiceLevelObjectivesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceLevelObjectivesApiRequestFactory, responseProcessor?: ServiceLevelObjectivesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new ServiceLevelObjectivesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ServiceLevelObjectivesApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceLevelObjectivesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceLevelObjectivesApiResponseProcessor(); } /** @@ -1343,19 +970,11 @@ export class ServiceLevelObjectivesApi { * assure an SLO can be deleted without disrupting a dashboard. * @param param The request object */ - public checkCanDeleteSLO( - param: ServiceLevelObjectivesApiCheckCanDeleteSLORequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.checkCanDeleteSLO( - param.ids, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.checkCanDeleteSLO(responseContext); + public checkCanDeleteSLO(param: ServiceLevelObjectivesApiCheckCanDeleteSLORequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.checkCanDeleteSLO(param.ids,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.checkCanDeleteSLO(responseContext); }); }); } @@ -1364,71 +983,44 @@ export class ServiceLevelObjectivesApi { * Create a service level objective object. * @param param The request object */ - public createSLO( - param: ServiceLevelObjectivesApiCreateSLORequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createSLO( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSLO(responseContext); + public createSLO(param: ServiceLevelObjectivesApiCreateSLORequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSLO(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSLO(responseContext); }); }); } /** * Permanently delete the specified service level objective object. - * + * * If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns * a 409 conflict error because the SLO is referenced in a dashboard. * @param param The request object */ - public deleteSLO( - param: ServiceLevelObjectivesApiDeleteSLORequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteSLO( - param.sloId, - param.force, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSLO(responseContext); + public deleteSLO(param: ServiceLevelObjectivesApiDeleteSLORequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSLO(param.sloId,param.force,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSLO(responseContext); }); }); } /** * Delete (or partially delete) multiple service level objective objects. - * + * * This endpoint facilitates deletion of one or more thresholds for one or more * service level objective objects. If all thresholds are deleted, the service level * objective object is deleted as well. * @param param The request object */ - public deleteSLOTimeframeInBulk( - param: ServiceLevelObjectivesApiDeleteSLOTimeframeInBulkRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteSLOTimeframeInBulk( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSLOTimeframeInBulk( - responseContext - ); + public deleteSLOTimeframeInBulk(param: ServiceLevelObjectivesApiDeleteSLOTimeframeInBulkRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSLOTimeframeInBulk(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSLOTimeframeInBulk(responseContext); }); }); } @@ -1437,20 +1029,11 @@ export class ServiceLevelObjectivesApi { * Get a service level objective object. * @param param The request object */ - public getSLO( - param: ServiceLevelObjectivesApiGetSLORequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSLO( - param.sloId, - param.withConfiguredAlertIds, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSLO(responseContext); + public getSLO(param: ServiceLevelObjectivesApiGetSLORequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSLO(param.sloId,param.withConfiguredAlertIds,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSLO(responseContext); }); }); } @@ -1459,51 +1042,31 @@ export class ServiceLevelObjectivesApi { * Get corrections applied to an SLO * @param param The request object */ - public getSLOCorrections( - param: ServiceLevelObjectivesApiGetSLOCorrectionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSLOCorrections( - param.sloId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSLOCorrections(responseContext); + public getSLOCorrections(param: ServiceLevelObjectivesApiGetSLOCorrectionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSLOCorrections(param.sloId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSLOCorrections(responseContext); }); }); } /** * Get a specific SLO’s history, regardless of its SLO type. - * + * * The detailed history data is structured according to the source data type. * For example, metric data is included for event SLOs that use * the metric source, and monitor SLO types include the monitor transition history. - * + * * **Note:** There are different response formats for event based and time based SLOs. * Examples of both are shown. * @param param The request object */ - public getSLOHistory( - param: ServiceLevelObjectivesApiGetSLOHistoryRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSLOHistory( - param.sloId, - param.fromTs, - param.toTs, - param.target, - param.applyCorrection, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSLOHistory(responseContext); + public getSLOHistory(param: ServiceLevelObjectivesApiGetSLOHistoryRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSLOHistory(param.sloId,param.fromTs,param.toTs,param.target,param.applyCorrection,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSLOHistory(responseContext); }); }); } @@ -1512,24 +1075,11 @@ export class ServiceLevelObjectivesApi { * Get a list of service level objective objects for your organization. * @param param The request object */ - public listSLOs( - param: ServiceLevelObjectivesApiListSLOsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listSLOs( - param.ids, - param.query, - param.tagsQuery, - param.metricsQuery, - param.limit, - param.offset, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSLOs(responseContext); + public listSLOs(param: ServiceLevelObjectivesApiListSLOsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSLOs(param.ids,param.query,param.tagsQuery,param.metricsQuery,param.limit,param.offset,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSLOs(responseContext); }); }); } @@ -1537,28 +1087,16 @@ export class ServiceLevelObjectivesApi { /** * Provide a paginated version of listSLOs returning a generator with all the items. */ - public async *listSLOsWithPagination( - param: ServiceLevelObjectivesApiListSLOsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listSLOsWithPagination(param: ServiceLevelObjectivesApiListSLOsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 1000; if (param.limit !== undefined) { pageSize = param.limit; } param.limit = pageSize; while (true) { - const requestContext = await this.requestFactory.listSLOs( - param.ids, - param.query, - param.tagsQuery, - param.metricsQuery, - param.limit, - param.offset, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listSLOs(param.ids,param.query,param.tagsQuery,param.metricsQuery,param.limit,param.offset,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listSLOs(responseContext); const responseData = response.data; @@ -1584,22 +1122,11 @@ export class ServiceLevelObjectivesApi { * Get a list of service level objective objects for your organization. * @param param The request object */ - public searchSLO( - param: ServiceLevelObjectivesApiSearchSLORequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchSLO( - param.query, - param.pageSize, - param.pageNumber, - param.includeFacets, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchSLO(responseContext); + public searchSLO(param: ServiceLevelObjectivesApiSearchSLORequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchSLO(param.query,param.pageSize,param.pageNumber,param.includeFacets,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchSLO(responseContext); }); }); } @@ -1608,21 +1135,12 @@ export class ServiceLevelObjectivesApi { * Update the specified service level objective object. * @param param The request object */ - public updateSLO( - param: ServiceLevelObjectivesApiUpdateSLORequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateSLO( - param.sloId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSLO(responseContext); + public updateSLO(param: ServiceLevelObjectivesApiUpdateSLORequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSLO(param.sloId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSLO(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/SlackIntegrationApi.ts b/packages/datadog-api-client-v1/apis/SlackIntegrationApi.ts index c5bf8f8092dc..edaa7c490723 100644 --- a/packages/datadog-api-client-v1/apis/SlackIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/SlackIntegrationApi.ts @@ -1,60 +1,50 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { SlackIntegrationChannel } from "../models/SlackIntegrationChannel"; +import { SlackIntegrationChannels } from "../models/SlackIntegrationChannels"; export class SlackIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createSlackIntegrationChannel( - accountName: string, - body: SlackIntegrationChannel, - _options?: Configuration - ): Promise { + + public async createSlackIntegrationChannel(accountName: string,body: SlackIntegrationChannel,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountName' is not null or undefined if (accountName === null || accountName === undefined) { - throw new RequiredError("accountName", "createSlackIntegrationChannel"); + throw new RequiredError('accountName', 'createSlackIntegrationChannel'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSlackIntegrationChannel"); + throw new RequiredError('body', 'createSlackIntegrationChannel'); } // Path Params - const localVarPath = - "/api/v1/integration/slack/configuration/accounts/{account_name}/channels".replace( - "{account_name}", - encodeURIComponent(String(accountName)) - ); + const localVarPath = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels' + .replace('{account_name}', encodeURIComponent(String(accountName))); // Make Request Context - const requestContext = _config - .getServer("v1.SlackIntegrationApi.createSlackIntegrationChannel") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SlackIntegrationApi.createSlackIntegrationChannel').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SlackIntegrationChannel", ""), @@ -63,166 +53,123 @@ export class SlackIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSlackIntegrationChannel( - accountName: string, - channelName: string, - _options?: Configuration - ): Promise { + public async getSlackIntegrationChannel(accountName: string,channelName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountName' is not null or undefined if (accountName === null || accountName === undefined) { - throw new RequiredError("accountName", "getSlackIntegrationChannel"); + throw new RequiredError('accountName', 'getSlackIntegrationChannel'); } // verify required parameter 'channelName' is not null or undefined if (channelName === null || channelName === undefined) { - throw new RequiredError("channelName", "getSlackIntegrationChannel"); + throw new RequiredError('channelName', 'getSlackIntegrationChannel'); } // Path Params - const localVarPath = - "/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}" - .replace("{account_name}", encodeURIComponent(String(accountName))) - .replace("{channel_name}", encodeURIComponent(String(channelName))); + const localVarPath = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}' + .replace('{account_name}', encodeURIComponent(String(accountName))) + .replace('{channel_name}', encodeURIComponent(String(channelName))); // Make Request Context - const requestContext = _config - .getServer("v1.SlackIntegrationApi.getSlackIntegrationChannel") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SlackIntegrationApi.getSlackIntegrationChannel').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSlackIntegrationChannels( - accountName: string, - _options?: Configuration - ): Promise { + public async getSlackIntegrationChannels(accountName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountName' is not null or undefined if (accountName === null || accountName === undefined) { - throw new RequiredError("accountName", "getSlackIntegrationChannels"); + throw new RequiredError('accountName', 'getSlackIntegrationChannels'); } // Path Params - const localVarPath = - "/api/v1/integration/slack/configuration/accounts/{account_name}/channels".replace( - "{account_name}", - encodeURIComponent(String(accountName)) - ); + const localVarPath = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels' + .replace('{account_name}', encodeURIComponent(String(accountName))); // Make Request Context - const requestContext = _config - .getServer("v1.SlackIntegrationApi.getSlackIntegrationChannels") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SlackIntegrationApi.getSlackIntegrationChannels').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async removeSlackIntegrationChannel( - accountName: string, - channelName: string, - _options?: Configuration - ): Promise { + public async removeSlackIntegrationChannel(accountName: string,channelName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountName' is not null or undefined if (accountName === null || accountName === undefined) { - throw new RequiredError("accountName", "removeSlackIntegrationChannel"); + throw new RequiredError('accountName', 'removeSlackIntegrationChannel'); } // verify required parameter 'channelName' is not null or undefined if (channelName === null || channelName === undefined) { - throw new RequiredError("channelName", "removeSlackIntegrationChannel"); + throw new RequiredError('channelName', 'removeSlackIntegrationChannel'); } // Path Params - const localVarPath = - "/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}" - .replace("{account_name}", encodeURIComponent(String(accountName))) - .replace("{channel_name}", encodeURIComponent(String(channelName))); + const localVarPath = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}' + .replace('{account_name}', encodeURIComponent(String(accountName))) + .replace('{channel_name}', encodeURIComponent(String(channelName))); // Make Request Context - const requestContext = _config - .getServer("v1.SlackIntegrationApi.removeSlackIntegrationChannel") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.SlackIntegrationApi.removeSlackIntegrationChannel').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSlackIntegrationChannel( - accountName: string, - channelName: string, - body: SlackIntegrationChannel, - _options?: Configuration - ): Promise { + public async updateSlackIntegrationChannel(accountName: string,channelName: string,body: SlackIntegrationChannel,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountName' is not null or undefined if (accountName === null || accountName === undefined) { - throw new RequiredError("accountName", "updateSlackIntegrationChannel"); + throw new RequiredError('accountName', 'updateSlackIntegrationChannel'); } // verify required parameter 'channelName' is not null or undefined if (channelName === null || channelName === undefined) { - throw new RequiredError("channelName", "updateSlackIntegrationChannel"); + throw new RequiredError('channelName', 'updateSlackIntegrationChannel'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSlackIntegrationChannel"); + throw new RequiredError('body', 'updateSlackIntegrationChannel'); } // Path Params - const localVarPath = - "/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}" - .replace("{account_name}", encodeURIComponent(String(accountName))) - .replace("{channel_name}", encodeURIComponent(String(channelName))); + const localVarPath = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}' + .replace('{account_name}', encodeURIComponent(String(accountName))) + .replace('{channel_name}', encodeURIComponent(String(channelName))); // Make Request Context - const requestContext = _config - .getServer("v1.SlackIntegrationApi.updateSlackIntegrationChannel") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.SlackIntegrationApi.updateSlackIntegrationChannel').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SlackIntegrationChannel", ""), @@ -231,16 +178,14 @@ export class SlackIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SlackIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -248,12 +193,8 @@ export class SlackIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createSlackIntegrationChannel * @throws ApiException if the response code was not in [200, 299] */ - public async createSlackIntegrationChannel( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSlackIntegrationChannel(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SlackIntegrationChannel = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -261,16 +202,8 @@ export class SlackIntegrationApiResponseProcessor { ) as SlackIntegrationChannel; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -279,11 +212,8 @@ export class SlackIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -291,17 +221,13 @@ export class SlackIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SlackIntegrationChannel = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SlackIntegrationChannel", - "" + "SlackIntegrationChannel", "" ) as SlackIntegrationChannel; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -311,12 +237,8 @@ export class SlackIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getSlackIntegrationChannel * @throws ApiException if the response code was not in [200, 299] */ - public async getSlackIntegrationChannel( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSlackIntegrationChannel(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SlackIntegrationChannel = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -324,16 +246,8 @@ export class SlackIntegrationApiResponseProcessor { ) as SlackIntegrationChannel; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -342,11 +256,8 @@ export class SlackIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -354,17 +265,13 @@ export class SlackIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SlackIntegrationChannel = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SlackIntegrationChannel", - "" + "SlackIntegrationChannel", "" ) as SlackIntegrationChannel; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -374,12 +281,8 @@ export class SlackIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getSlackIntegrationChannels * @throws ApiException if the response code was not in [200, 299] */ - public async getSlackIntegrationChannels( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSlackIntegrationChannels(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -387,16 +290,8 @@ export class SlackIntegrationApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -405,11 +300,8 @@ export class SlackIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -417,17 +309,13 @@ export class SlackIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -437,25 +325,13 @@ export class SlackIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to removeSlackIntegrationChannel * @throws ApiException if the response code was not in [200, 299] */ - public async removeSlackIntegrationChannel( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async removeSlackIntegrationChannel(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -464,11 +340,8 @@ export class SlackIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -476,17 +349,13 @@ export class SlackIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -496,12 +365,8 @@ export class SlackIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateSlackIntegrationChannel * @throws ApiException if the response code was not in [200, 299] */ - public async updateSlackIntegrationChannel( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSlackIntegrationChannel(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SlackIntegrationChannel = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -509,16 +374,8 @@ export class SlackIntegrationApiResponseProcessor { ) as SlackIntegrationChannel; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -527,11 +384,8 @@ export class SlackIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -539,17 +393,13 @@ export class SlackIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SlackIntegrationChannel = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SlackIntegrationChannel", - "" + "SlackIntegrationChannel", "" ) as SlackIntegrationChannel; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -558,12 +408,12 @@ export interface SlackIntegrationApiCreateSlackIntegrationChannelRequest { * Your Slack account name. * @type string */ - accountName: string; + accountName: string /** * Payload describing Slack channel to be created * @type SlackIntegrationChannel */ - body: SlackIntegrationChannel; + body: SlackIntegrationChannel } export interface SlackIntegrationApiGetSlackIntegrationChannelRequest { @@ -571,12 +421,12 @@ export interface SlackIntegrationApiGetSlackIntegrationChannelRequest { * Your Slack account name. * @type string */ - accountName: string; + accountName: string /** * The name of the Slack channel being operated on. * @type string */ - channelName: string; + channelName: string } export interface SlackIntegrationApiGetSlackIntegrationChannelsRequest { @@ -584,7 +434,7 @@ export interface SlackIntegrationApiGetSlackIntegrationChannelsRequest { * Your Slack account name. * @type string */ - accountName: string; + accountName: string } export interface SlackIntegrationApiRemoveSlackIntegrationChannelRequest { @@ -592,12 +442,12 @@ export interface SlackIntegrationApiRemoveSlackIntegrationChannelRequest { * Your Slack account name. * @type string */ - accountName: string; + accountName: string /** * The name of the Slack channel being operated on. * @type string */ - channelName: string; + channelName: string } export interface SlackIntegrationApiUpdateSlackIntegrationChannelRequest { @@ -605,17 +455,17 @@ export interface SlackIntegrationApiUpdateSlackIntegrationChannelRequest { * Your Slack account name. * @type string */ - accountName: string; + accountName: string /** * The name of the Slack channel being operated on. * @type string */ - channelName: string; + channelName: string /** * Payload describing fields and values to be updated. * @type SlackIntegrationChannel */ - body: SlackIntegrationChannel; + body: SlackIntegrationChannel } export class SlackIntegrationApi { @@ -623,39 +473,21 @@ export class SlackIntegrationApi { private responseProcessor: SlackIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SlackIntegrationApiRequestFactory, - responseProcessor?: SlackIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SlackIntegrationApiRequestFactory, responseProcessor?: SlackIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SlackIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SlackIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new SlackIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SlackIntegrationApiResponseProcessor(); } /** * Add a channel to your Datadog-Slack integration. * @param param The request object */ - public createSlackIntegrationChannel( - param: SlackIntegrationApiCreateSlackIntegrationChannelRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createSlackIntegrationChannel( - param.accountName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSlackIntegrationChannel( - responseContext - ); + public createSlackIntegrationChannel(param: SlackIntegrationApiCreateSlackIntegrationChannelRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSlackIntegrationChannel(param.accountName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSlackIntegrationChannel(responseContext); }); }); } @@ -664,23 +496,11 @@ export class SlackIntegrationApi { * Get a channel configured for your Datadog-Slack integration. * @param param The request object */ - public getSlackIntegrationChannel( - param: SlackIntegrationApiGetSlackIntegrationChannelRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getSlackIntegrationChannel( - param.accountName, - param.channelName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSlackIntegrationChannel( - responseContext - ); + public getSlackIntegrationChannel(param: SlackIntegrationApiGetSlackIntegrationChannelRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSlackIntegrationChannel(param.accountName,param.channelName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSlackIntegrationChannel(responseContext); }); }); } @@ -689,22 +509,11 @@ export class SlackIntegrationApi { * Get a list of all channels configured for your Datadog-Slack integration. * @param param The request object */ - public getSlackIntegrationChannels( - param: SlackIntegrationApiGetSlackIntegrationChannelsRequest, - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.getSlackIntegrationChannels( - param.accountName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSlackIntegrationChannels( - responseContext - ); + public getSlackIntegrationChannels(param: SlackIntegrationApiGetSlackIntegrationChannelsRequest, options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.getSlackIntegrationChannels(param.accountName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSlackIntegrationChannels(responseContext); }); }); } @@ -713,23 +522,11 @@ export class SlackIntegrationApi { * Remove a channel from your Datadog-Slack integration. * @param param The request object */ - public removeSlackIntegrationChannel( - param: SlackIntegrationApiRemoveSlackIntegrationChannelRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.removeSlackIntegrationChannel( - param.accountName, - param.channelName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.removeSlackIntegrationChannel( - responseContext - ); + public removeSlackIntegrationChannel(param: SlackIntegrationApiRemoveSlackIntegrationChannelRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.removeSlackIntegrationChannel(param.accountName,param.channelName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.removeSlackIntegrationChannel(responseContext); }); }); } @@ -738,25 +535,12 @@ export class SlackIntegrationApi { * Update a channel used in your Datadog-Slack integration. * @param param The request object */ - public updateSlackIntegrationChannel( - param: SlackIntegrationApiUpdateSlackIntegrationChannelRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateSlackIntegrationChannel( - param.accountName, - param.channelName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSlackIntegrationChannel( - responseContext - ); + public updateSlackIntegrationChannel(param: SlackIntegrationApiUpdateSlackIntegrationChannelRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSlackIntegrationChannel(param.accountName,param.channelName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSlackIntegrationChannel(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/SnapshotsApi.ts b/packages/datadog-api-client-v1/apis/SnapshotsApi.ts index 75f7d648142f..de6953c8c457 100644 --- a/packages/datadog-api-client-v1/apis/SnapshotsApi.ts +++ b/packages/datadog-api-client-v1/apis/SnapshotsApi.ts @@ -1,128 +1,80 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { GraphSnapshot } from "../models/GraphSnapshot"; export class SnapshotsApiRequestFactory extends BaseAPIRequestFactory { - public async getGraphSnapshot( - start: number, - end: number, - metricQuery?: string, - eventQuery?: string, - graphDef?: string, - title?: string, - height?: number, - width?: number, - _options?: Configuration - ): Promise { + + public async getGraphSnapshot(start: number,end: number,metricQuery?: string,eventQuery?: string,graphDef?: string,title?: string,height?: number,width?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'start' is not null or undefined if (start === null || start === undefined) { - throw new RequiredError("start", "getGraphSnapshot"); + throw new RequiredError('start', 'getGraphSnapshot'); } // verify required parameter 'end' is not null or undefined if (end === null || end === undefined) { - throw new RequiredError("end", "getGraphSnapshot"); + throw new RequiredError('end', 'getGraphSnapshot'); } // Path Params - const localVarPath = "/api/v1/graph/snapshot"; + const localVarPath = '/api/v1/graph/snapshot'; // Make Request Context - const requestContext = _config - .getServer("v1.SnapshotsApi.getGraphSnapshot") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SnapshotsApi.getGraphSnapshot').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (metricQuery !== undefined) { - requestContext.setQueryParam( - "metric_query", - ObjectSerializer.serialize(metricQuery, "string", ""), - "" - ); + requestContext.setQueryParam("metric_query", ObjectSerializer.serialize(metricQuery, "string", ""), ""); } if (start !== undefined) { - requestContext.setQueryParam( - "start", - ObjectSerializer.serialize(start, "number", "int64"), - "" - ); + requestContext.setQueryParam("start", ObjectSerializer.serialize(start, "number", "int64"), ""); } if (end !== undefined) { - requestContext.setQueryParam( - "end", - ObjectSerializer.serialize(end, "number", "int64"), - "" - ); + requestContext.setQueryParam("end", ObjectSerializer.serialize(end, "number", "int64"), ""); } if (eventQuery !== undefined) { - requestContext.setQueryParam( - "event_query", - ObjectSerializer.serialize(eventQuery, "string", ""), - "" - ); + requestContext.setQueryParam("event_query", ObjectSerializer.serialize(eventQuery, "string", ""), ""); } if (graphDef !== undefined) { - requestContext.setQueryParam( - "graph_def", - ObjectSerializer.serialize(graphDef, "string", ""), - "" - ); + requestContext.setQueryParam("graph_def", ObjectSerializer.serialize(graphDef, "string", ""), ""); } if (title !== undefined) { - requestContext.setQueryParam( - "title", - ObjectSerializer.serialize(title, "string", ""), - "" - ); + requestContext.setQueryParam("title", ObjectSerializer.serialize(title, "string", ""), ""); } if (height !== undefined) { - requestContext.setQueryParam( - "height", - ObjectSerializer.serialize(height, "number", "int64"), - "" - ); + requestContext.setQueryParam("height", ObjectSerializer.serialize(height, "number", "int64"), ""); } if (width !== undefined) { - requestContext.setQueryParam( - "width", - ObjectSerializer.serialize(width, "number", "int64"), - "" - ); + requestContext.setQueryParam("width", ObjectSerializer.serialize(width, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SnapshotsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -130,12 +82,8 @@ export class SnapshotsApiResponseProcessor { * @params response Response returned by the server for a request to getGraphSnapshot * @throws ApiException if the response code was not in [200, 299] */ - public async getGraphSnapshot( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getGraphSnapshot(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GraphSnapshot = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -143,15 +91,8 @@ export class SnapshotsApiResponseProcessor { ) as GraphSnapshot; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -160,11 +101,8 @@ export class SnapshotsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -172,17 +110,13 @@ export class SnapshotsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GraphSnapshot = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GraphSnapshot", - "" + "GraphSnapshot", "" ) as GraphSnapshot; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -191,44 +125,44 @@ export interface SnapshotsApiGetGraphSnapshotRequest { * The POSIX timestamp of the start of the query in seconds. * @type number */ - start: number; + start: number /** * The POSIX timestamp of the end of the query in seconds. * @type number */ - end: number; + end: number /** * The metric query. * @type string */ - metricQuery?: string; + metricQuery?: string /** * A query that adds event bands to the graph. * @type string */ - eventQuery?: string; + eventQuery?: string /** * A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. * The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) * and should be formatted to a single line then URL encoded. * @type string */ - graphDef?: string; + graphDef?: string /** * A title for the graph. If no title is specified, the graph does not have a title. * @type string */ - title?: string; + title?: string /** * The height of the graph. If no height is specified, the graph's original height is used. * @type number */ - height?: number; + height?: number /** * The width of the graph. If no width is specified, the graph's original width is used. * @type number */ - width?: number; + width?: number } export class SnapshotsApi { @@ -236,16 +170,10 @@ export class SnapshotsApi { private responseProcessor: SnapshotsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SnapshotsApiRequestFactory, - responseProcessor?: SnapshotsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SnapshotsApiRequestFactory, responseProcessor?: SnapshotsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SnapshotsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SnapshotsApiResponseProcessor(); + this.requestFactory = requestFactory || new SnapshotsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SnapshotsApiResponseProcessor(); } /** @@ -253,27 +181,12 @@ export class SnapshotsApi { * **Note**: When a snapshot is created, there is some delay before it is available. * @param param The request object */ - public getGraphSnapshot( - param: SnapshotsApiGetGraphSnapshotRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getGraphSnapshot( - param.start, - param.end, - param.metricQuery, - param.eventQuery, - param.graphDef, - param.title, - param.height, - param.width, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getGraphSnapshot(responseContext); + public getGraphSnapshot(param: SnapshotsApiGetGraphSnapshotRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getGraphSnapshot(param.start,param.end,param.metricQuery,param.eventQuery,param.graphDef,param.title,param.height,param.width,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getGraphSnapshot(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/SyntheticsApi.ts b/packages/datadog-api-client-v1/apis/SyntheticsApi.ts index b9a884d90fc0..e8de41f533e6 100644 --- a/packages/datadog-api-client-v1/apis/SyntheticsApi.ts +++ b/packages/datadog-api-client-v1/apis/SyntheticsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { SyntheticsAPITest } from "../models/SyntheticsAPITest"; import { SyntheticsAPITestResultFull } from "../models/SyntheticsAPITestResultFull"; @@ -23,6 +21,7 @@ import { SyntheticsBatchDetails } from "../models/SyntheticsBatchDetails"; import { SyntheticsBrowserTest } from "../models/SyntheticsBrowserTest"; import { SyntheticsBrowserTestResultFull } from "../models/SyntheticsBrowserTestResultFull"; import { SyntheticsCITestBody } from "../models/SyntheticsCITestBody"; +import { SyntheticsDefaultLocations } from "../models/SyntheticsDefaultLocations"; import { SyntheticsDeleteTestsPayload } from "../models/SyntheticsDeleteTestsPayload"; import { SyntheticsDeleteTestsResponse } from "../models/SyntheticsDeleteTestsResponse"; import { SyntheticsFetchUptimesPayload } from "../models/SyntheticsFetchUptimesPayload"; @@ -44,31 +43,26 @@ import { SyntheticsTriggerCITestsResponse } from "../models/SyntheticsTriggerCIT import { SyntheticsUpdateTestPauseStatusPayload } from "../models/SyntheticsUpdateTestPauseStatusPayload"; export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { - public async createGlobalVariable( - body: SyntheticsGlobalVariableRequest, - _options?: Configuration - ): Promise { + + public async createGlobalVariable(body: SyntheticsGlobalVariableRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createGlobalVariable"); + throw new RequiredError('body', 'createGlobalVariable'); } // Path Params - const localVarPath = "/api/v1/synthetics/variables"; + const localVarPath = '/api/v1/synthetics/variables'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.createGlobalVariable") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.createGlobalVariable').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsGlobalVariableRequest", ""), @@ -77,40 +71,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createPrivateLocation( - body: SyntheticsPrivateLocation, - _options?: Configuration - ): Promise { + public async createPrivateLocation(body: SyntheticsPrivateLocation,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createPrivateLocation"); + throw new RequiredError('body', 'createPrivateLocation'); } // Path Params - const localVarPath = "/api/v1/synthetics/private-locations"; + const localVarPath = '/api/v1/synthetics/private-locations'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.createPrivateLocation") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.createPrivateLocation').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsPrivateLocation", ""), @@ -119,40 +103,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSyntheticsAPITest( - body: SyntheticsAPITest, - _options?: Configuration - ): Promise { + public async createSyntheticsAPITest(body: SyntheticsAPITest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSyntheticsAPITest"); + throw new RequiredError('body', 'createSyntheticsAPITest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/api"; + const localVarPath = '/api/v1/synthetics/tests/api'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.createSyntheticsAPITest") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.createSyntheticsAPITest').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsAPITest", ""), @@ -161,40 +135,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSyntheticsBrowserTest( - body: SyntheticsBrowserTest, - _options?: Configuration - ): Promise { + public async createSyntheticsBrowserTest(body: SyntheticsBrowserTest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSyntheticsBrowserTest"); + throw new RequiredError('body', 'createSyntheticsBrowserTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/browser"; + const localVarPath = '/api/v1/synthetics/tests/browser'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.createSyntheticsBrowserTest") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.createSyntheticsBrowserTest').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsBrowserTest", ""), @@ -203,40 +167,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSyntheticsMobileTest( - body: SyntheticsMobileTest, - _options?: Configuration - ): Promise { + public async createSyntheticsMobileTest(body: SyntheticsMobileTest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSyntheticsMobileTest"); + throw new RequiredError('body', 'createSyntheticsMobileTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/mobile"; + const localVarPath = '/api/v1/synthetics/tests/mobile'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.createSyntheticsMobileTest") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.createSyntheticsMobileTest').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsMobileTest", ""), @@ -245,109 +199,76 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteGlobalVariable( - variableId: string, - _options?: Configuration - ): Promise { + public async deleteGlobalVariable(variableId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'variableId' is not null or undefined if (variableId === null || variableId === undefined) { - throw new RequiredError("variableId", "deleteGlobalVariable"); + throw new RequiredError('variableId', 'deleteGlobalVariable'); } // Path Params - const localVarPath = "/api/v1/synthetics/variables/{variable_id}".replace( - "{variable_id}", - encodeURIComponent(String(variableId)) - ); + const localVarPath = '/api/v1/synthetics/variables/{variable_id}' + .replace('{variable_id}', encodeURIComponent(String(variableId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.deleteGlobalVariable") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.SyntheticsApi.deleteGlobalVariable').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deletePrivateLocation( - locationId: string, - _options?: Configuration - ): Promise { + public async deletePrivateLocation(locationId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'locationId' is not null or undefined if (locationId === null || locationId === undefined) { - throw new RequiredError("locationId", "deletePrivateLocation"); + throw new RequiredError('locationId', 'deletePrivateLocation'); } // Path Params - const localVarPath = - "/api/v1/synthetics/private-locations/{location_id}".replace( - "{location_id}", - encodeURIComponent(String(locationId)) - ); + const localVarPath = '/api/v1/synthetics/private-locations/{location_id}' + .replace('{location_id}', encodeURIComponent(String(locationId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.deletePrivateLocation") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.SyntheticsApi.deletePrivateLocation').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteTests( - body: SyntheticsDeleteTestsPayload, - _options?: Configuration - ): Promise { + public async deleteTests(body: SyntheticsDeleteTestsPayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteTests"); + throw new RequiredError('body', 'deleteTests'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/delete"; + const localVarPath = '/api/v1/synthetics/tests/delete'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.deleteTests") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.deleteTests').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsDeleteTestsPayload", ""), @@ -356,49 +277,36 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async editGlobalVariable( - variableId: string, - body: SyntheticsGlobalVariableRequest, - _options?: Configuration - ): Promise { + public async editGlobalVariable(variableId: string,body: SyntheticsGlobalVariableRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'variableId' is not null or undefined if (variableId === null || variableId === undefined) { - throw new RequiredError("variableId", "editGlobalVariable"); + throw new RequiredError('variableId', 'editGlobalVariable'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "editGlobalVariable"); + throw new RequiredError('body', 'editGlobalVariable'); } // Path Params - const localVarPath = "/api/v1/synthetics/variables/{variable_id}".replace( - "{variable_id}", - encodeURIComponent(String(variableId)) - ); + const localVarPath = '/api/v1/synthetics/variables/{variable_id}' + .replace('{variable_id}', encodeURIComponent(String(variableId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.editGlobalVariable") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.SyntheticsApi.editGlobalVariable').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsGlobalVariableRequest", ""), @@ -407,40 +315,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async fetchUptimes( - body: SyntheticsFetchUptimesPayload, - _options?: Configuration - ): Promise { + public async fetchUptimes(body: SyntheticsFetchUptimesPayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "fetchUptimes"); + throw new RequiredError('body', 'fetchUptimes'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/uptimes"; + const localVarPath = '/api/v1/synthetics/tests/uptimes'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.fetchUptimes") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.fetchUptimes').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsFetchUptimesPayload", ""), @@ -449,606 +347,399 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAPITest( - publicId: string, - _options?: Configuration - ): Promise { + public async getAPITest(publicId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getAPITest"); + throw new RequiredError('publicId', 'getAPITest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/api/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/api/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getAPITest") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getAPITest').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAPITestLatestResults( - publicId: string, - fromTs?: number, - toTs?: number, - probeDc?: Array, - _options?: Configuration - ): Promise { + public async getAPITestLatestResults(publicId: string,fromTs?: number,toTs?: number,probeDc?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getAPITestLatestResults"); + throw new RequiredError('publicId', 'getAPITestLatestResults'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/{public_id}/results".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/{public_id}/results' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getAPITestLatestResults") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getAPITestLatestResults').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (fromTs !== undefined) { - requestContext.setQueryParam( - "from_ts", - ObjectSerializer.serialize(fromTs, "number", "int64"), - "" - ); + requestContext.setQueryParam("from_ts", ObjectSerializer.serialize(fromTs, "number", "int64"), ""); } if (toTs !== undefined) { - requestContext.setQueryParam( - "to_ts", - ObjectSerializer.serialize(toTs, "number", "int64"), - "" - ); + requestContext.setQueryParam("to_ts", ObjectSerializer.serialize(toTs, "number", "int64"), ""); } if (probeDc !== undefined) { - requestContext.setQueryParam( - "probe_dc", - ObjectSerializer.serialize(probeDc, "Array", ""), - "multi" - ); + requestContext.setQueryParam("probe_dc", ObjectSerializer.serialize(probeDc, "Array", ""), "multi"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAPITestResult( - publicId: string, - resultId: string, - _options?: Configuration - ): Promise { + public async getAPITestResult(publicId: string,resultId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getAPITestResult"); + throw new RequiredError('publicId', 'getAPITestResult'); } // verify required parameter 'resultId' is not null or undefined if (resultId === null || resultId === undefined) { - throw new RequiredError("resultId", "getAPITestResult"); + throw new RequiredError('resultId', 'getAPITestResult'); } // Path Params - const localVarPath = - "/api/v1/synthetics/tests/{public_id}/results/{result_id}" - .replace("{public_id}", encodeURIComponent(String(publicId))) - .replace("{result_id}", encodeURIComponent(String(resultId))); + const localVarPath = '/api/v1/synthetics/tests/{public_id}/results/{result_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))) + .replace('{result_id}', encodeURIComponent(String(resultId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getAPITestResult") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getAPITestResult').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getBrowserTest( - publicId: string, - _options?: Configuration - ): Promise { + public async getBrowserTest(publicId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getBrowserTest"); + throw new RequiredError('publicId', 'getBrowserTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/browser/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/browser/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getBrowserTest") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getBrowserTest').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getBrowserTestLatestResults( - publicId: string, - fromTs?: number, - toTs?: number, - probeDc?: Array, - _options?: Configuration - ): Promise { + public async getBrowserTestLatestResults(publicId: string,fromTs?: number,toTs?: number,probeDc?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getBrowserTestLatestResults"); + throw new RequiredError('publicId', 'getBrowserTestLatestResults'); } // Path Params - const localVarPath = - "/api/v1/synthetics/tests/browser/{public_id}/results".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/browser/{public_id}/results' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getBrowserTestLatestResults") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getBrowserTestLatestResults').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (fromTs !== undefined) { - requestContext.setQueryParam( - "from_ts", - ObjectSerializer.serialize(fromTs, "number", "int64"), - "" - ); + requestContext.setQueryParam("from_ts", ObjectSerializer.serialize(fromTs, "number", "int64"), ""); } if (toTs !== undefined) { - requestContext.setQueryParam( - "to_ts", - ObjectSerializer.serialize(toTs, "number", "int64"), - "" - ); + requestContext.setQueryParam("to_ts", ObjectSerializer.serialize(toTs, "number", "int64"), ""); } if (probeDc !== undefined) { - requestContext.setQueryParam( - "probe_dc", - ObjectSerializer.serialize(probeDc, "Array", ""), - "multi" - ); + requestContext.setQueryParam("probe_dc", ObjectSerializer.serialize(probeDc, "Array", ""), "multi"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getBrowserTestResult( - publicId: string, - resultId: string, - _options?: Configuration - ): Promise { + public async getBrowserTestResult(publicId: string,resultId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getBrowserTestResult"); + throw new RequiredError('publicId', 'getBrowserTestResult'); } // verify required parameter 'resultId' is not null or undefined if (resultId === null || resultId === undefined) { - throw new RequiredError("resultId", "getBrowserTestResult"); + throw new RequiredError('resultId', 'getBrowserTestResult'); } // Path Params - const localVarPath = - "/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}" - .replace("{public_id}", encodeURIComponent(String(publicId))) - .replace("{result_id}", encodeURIComponent(String(resultId))); + const localVarPath = '/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))) + .replace('{result_id}', encodeURIComponent(String(resultId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getBrowserTestResult") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getBrowserTestResult').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getGlobalVariable( - variableId: string, - _options?: Configuration - ): Promise { + public async getGlobalVariable(variableId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'variableId' is not null or undefined if (variableId === null || variableId === undefined) { - throw new RequiredError("variableId", "getGlobalVariable"); + throw new RequiredError('variableId', 'getGlobalVariable'); } // Path Params - const localVarPath = "/api/v1/synthetics/variables/{variable_id}".replace( - "{variable_id}", - encodeURIComponent(String(variableId)) - ); + const localVarPath = '/api/v1/synthetics/variables/{variable_id}' + .replace('{variable_id}', encodeURIComponent(String(variableId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getGlobalVariable") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getGlobalVariable').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getMobileTest( - publicId: string, - _options?: Configuration - ): Promise { + public async getMobileTest(publicId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getMobileTest"); + throw new RequiredError('publicId', 'getMobileTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/mobile/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/mobile/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getMobileTest") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getMobileTest').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getPrivateLocation( - locationId: string, - _options?: Configuration - ): Promise { + public async getPrivateLocation(locationId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'locationId' is not null or undefined if (locationId === null || locationId === undefined) { - throw new RequiredError("locationId", "getPrivateLocation"); + throw new RequiredError('locationId', 'getPrivateLocation'); } // Path Params - const localVarPath = - "/api/v1/synthetics/private-locations/{location_id}".replace( - "{location_id}", - encodeURIComponent(String(locationId)) - ); + const localVarPath = '/api/v1/synthetics/private-locations/{location_id}' + .replace('{location_id}', encodeURIComponent(String(locationId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getPrivateLocation") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getPrivateLocation').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSyntheticsCIBatch( - batchId: string, - _options?: Configuration - ): Promise { + public async getSyntheticsCIBatch(batchId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'batchId' is not null or undefined if (batchId === null || batchId === undefined) { - throw new RequiredError("batchId", "getSyntheticsCIBatch"); + throw new RequiredError('batchId', 'getSyntheticsCIBatch'); } // Path Params - const localVarPath = "/api/v1/synthetics/ci/batch/{batch_id}".replace( - "{batch_id}", - encodeURIComponent(String(batchId)) - ); + const localVarPath = '/api/v1/synthetics/ci/batch/{batch_id}' + .replace('{batch_id}', encodeURIComponent(String(batchId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getSyntheticsCIBatch") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getSyntheticsCIBatch').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSyntheticsDefaultLocations( - _options?: Configuration - ): Promise { + public async getSyntheticsDefaultLocations(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/synthetics/settings/default_locations"; + const localVarPath = '/api/v1/synthetics/settings/default_locations'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getSyntheticsDefaultLocations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getSyntheticsDefaultLocations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTest( - publicId: string, - _options?: Configuration - ): Promise { + public async getTest(publicId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getTest"); + throw new RequiredError('publicId', 'getTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.getTest") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.getTest').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listGlobalVariables( - _options?: Configuration - ): Promise { + public async listGlobalVariables(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/synthetics/variables"; + const localVarPath = '/api/v1/synthetics/variables'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.listGlobalVariables") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.listGlobalVariables').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLocations( - _options?: Configuration - ): Promise { + public async listLocations(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/synthetics/locations"; + const localVarPath = '/api/v1/synthetics/locations'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.listLocations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.listLocations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listTests( - pageSize?: number, - pageNumber?: number, - _options?: Configuration - ): Promise { + public async listTests(pageSize?: number,pageNumber?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/synthetics/tests"; + const localVarPath = '/api/v1/synthetics/tests'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.listTests") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.SyntheticsApi.listTests').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page_size", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page_size", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page_number", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page_number", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async patchTest( - publicId: string, - body: SyntheticsPatchTestBody, - _options?: Configuration - ): Promise { + public async patchTest(publicId: string,body: SyntheticsPatchTestBody,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "patchTest"); + throw new RequiredError('publicId', 'patchTest'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "patchTest"); + throw new RequiredError('body', 'patchTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.patchTest") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v1.SyntheticsApi.patchTest').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsPatchTestBody", ""), @@ -1057,40 +748,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async triggerCITests( - body: SyntheticsCITestBody, - _options?: Configuration - ): Promise { + public async triggerCITests(body: SyntheticsCITestBody,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "triggerCITests"); + throw new RequiredError('body', 'triggerCITests'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/trigger/ci"; + const localVarPath = '/api/v1/synthetics/tests/trigger/ci'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.triggerCITests") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.triggerCITests').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsCITestBody", ""), @@ -1099,40 +780,30 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async triggerTests( - body: SyntheticsTriggerBody, - _options?: Configuration - ): Promise { + public async triggerTests(body: SyntheticsTriggerBody,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "triggerTests"); + throw new RequiredError('body', 'triggerTests'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/trigger"; + const localVarPath = '/api/v1/synthetics/tests/trigger'; // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.triggerTests") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.SyntheticsApi.triggerTests').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsTriggerBody", ""), @@ -1141,49 +812,36 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAPITest( - publicId: string, - body: SyntheticsAPITest, - _options?: Configuration - ): Promise { + public async updateAPITest(publicId: string,body: SyntheticsAPITest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "updateAPITest"); + throw new RequiredError('publicId', 'updateAPITest'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAPITest"); + throw new RequiredError('body', 'updateAPITest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/api/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/api/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.updateAPITest") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.SyntheticsApi.updateAPITest').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsAPITest", ""), @@ -1192,49 +850,36 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateBrowserTest( - publicId: string, - body: SyntheticsBrowserTest, - _options?: Configuration - ): Promise { + public async updateBrowserTest(publicId: string,body: SyntheticsBrowserTest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "updateBrowserTest"); + throw new RequiredError('publicId', 'updateBrowserTest'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateBrowserTest"); + throw new RequiredError('body', 'updateBrowserTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/browser/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/browser/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.updateBrowserTest") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.SyntheticsApi.updateBrowserTest').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsBrowserTest", ""), @@ -1243,49 +888,36 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateMobileTest( - publicId: string, - body: SyntheticsMobileTest, - _options?: Configuration - ): Promise { + public async updateMobileTest(publicId: string,body: SyntheticsMobileTest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "updateMobileTest"); + throw new RequiredError('publicId', 'updateMobileTest'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateMobileTest"); + throw new RequiredError('body', 'updateMobileTest'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/mobile/{public_id}".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/mobile/{public_id}' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.updateMobileTest") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.SyntheticsApi.updateMobileTest').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsMobileTest", ""), @@ -1294,50 +926,36 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updatePrivateLocation( - locationId: string, - body: SyntheticsPrivateLocation, - _options?: Configuration - ): Promise { + public async updatePrivateLocation(locationId: string,body: SyntheticsPrivateLocation,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'locationId' is not null or undefined if (locationId === null || locationId === undefined) { - throw new RequiredError("locationId", "updatePrivateLocation"); + throw new RequiredError('locationId', 'updatePrivateLocation'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updatePrivateLocation"); + throw new RequiredError('body', 'updatePrivateLocation'); } // Path Params - const localVarPath = - "/api/v1/synthetics/private-locations/{location_id}".replace( - "{location_id}", - encodeURIComponent(String(locationId)) - ); + const localVarPath = '/api/v1/synthetics/private-locations/{location_id}' + .replace('{location_id}', encodeURIComponent(String(locationId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.updatePrivateLocation") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.SyntheticsApi.updatePrivateLocation').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SyntheticsPrivateLocation", ""), @@ -1346,72 +964,52 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateTestPauseStatus( - publicId: string, - body: SyntheticsUpdateTestPauseStatusPayload, - _options?: Configuration - ): Promise { + public async updateTestPauseStatus(publicId: string,body: SyntheticsUpdateTestPauseStatusPayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'publicId' is not null or undefined if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "updateTestPauseStatus"); + throw new RequiredError('publicId', 'updateTestPauseStatus'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTestPauseStatus"); + throw new RequiredError('body', 'updateTestPauseStatus'); } // Path Params - const localVarPath = "/api/v1/synthetics/tests/{public_id}/status".replace( - "{public_id}", - encodeURIComponent(String(publicId)) - ); + const localVarPath = '/api/v1/synthetics/tests/{public_id}/status' + .replace('{public_id}', encodeURIComponent(String(publicId))); // Make Request Context - const requestContext = _config - .getServer("v1.SyntheticsApi.updateTestPauseStatus") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.SyntheticsApi.updateTestPauseStatus').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SyntheticsUpdateTestPauseStatusPayload", - "" - ), + ObjectSerializer.serialize(body, "SyntheticsUpdateTestPauseStatusPayload", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SyntheticsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -1419,12 +1017,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to createGlobalVariable * @throws ApiException if the response code was not in [200, 299] */ - public async createGlobalVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createGlobalVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsGlobalVariable = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1432,16 +1026,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsGlobalVariable; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1450,11 +1036,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1462,17 +1045,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsGlobalVariable = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGlobalVariable", - "" + "SyntheticsGlobalVariable", "" ) as SyntheticsGlobalVariable; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1482,29 +1061,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to createPrivateLocation * @throws ApiException if the response code was not in [200, 299] */ - public async createPrivateLocation( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createPrivateLocation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsPrivateLocationCreationResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsPrivateLocationCreationResponse" - ) as SyntheticsPrivateLocationCreationResponse; + const body: SyntheticsPrivateLocationCreationResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsPrivateLocationCreationResponse" + ) as SyntheticsPrivateLocationCreationResponse; return body; } - if ( - response.httpStatusCode === 402 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 402||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1513,30 +1080,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsPrivateLocationCreationResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsPrivateLocationCreationResponse", - "" - ) as SyntheticsPrivateLocationCreationResponse; + const body: SyntheticsPrivateLocationCreationResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsPrivateLocationCreationResponse", "" + ) as SyntheticsPrivateLocationCreationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1546,12 +1105,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to createSyntheticsAPITest * @throws ApiException if the response code was not in [200, 299] */ - public async createSyntheticsAPITest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSyntheticsAPITest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsAPITest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1559,16 +1114,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsAPITest; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 402 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 402||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1577,11 +1124,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1589,17 +1133,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsAPITest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsAPITest", - "" + "SyntheticsAPITest", "" ) as SyntheticsAPITest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1609,12 +1149,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to createSyntheticsBrowserTest * @throws ApiException if the response code was not in [200, 299] */ - public async createSyntheticsBrowserTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSyntheticsBrowserTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsBrowserTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1622,16 +1158,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsBrowserTest; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 402 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 402||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1640,11 +1168,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1652,17 +1177,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsBrowserTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsBrowserTest", - "" + "SyntheticsBrowserTest", "" ) as SyntheticsBrowserTest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1672,12 +1193,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to createSyntheticsMobileTest * @throws ApiException if the response code was not in [200, 299] */ - public async createSyntheticsMobileTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSyntheticsMobileTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsMobileTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1685,16 +1202,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsMobileTest; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 402 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 402||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1703,11 +1212,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1715,17 +1221,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsMobileTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsMobileTest", - "" + "SyntheticsMobileTest", "" ) as SyntheticsMobileTest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1735,23 +1237,13 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to deleteGlobalVariable * @throws ApiException if the response code was not in [200, 299] */ - public async deleteGlobalVariable(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteGlobalVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1760,11 +1252,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1772,17 +1261,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1792,18 +1277,13 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to deletePrivateLocation * @throws ApiException if the response code was not in [200, 299] */ - public async deletePrivateLocation(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deletePrivateLocation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1812,11 +1292,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1824,17 +1301,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1844,12 +1317,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to deleteTests * @throws ApiException if the response code was not in [200, 299] */ - public async deleteTests( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteTests(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsDeleteTestsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1857,16 +1326,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsDeleteTestsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1875,11 +1336,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1887,17 +1345,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsDeleteTestsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsDeleteTestsResponse", - "" + "SyntheticsDeleteTestsResponse", "" ) as SyntheticsDeleteTestsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1907,12 +1361,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to editGlobalVariable * @throws ApiException if the response code was not in [200, 299] */ - public async editGlobalVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async editGlobalVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsGlobalVariable = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1920,15 +1370,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsGlobalVariable; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1937,11 +1380,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1949,17 +1389,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsGlobalVariable = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGlobalVariable", - "" + "SyntheticsGlobalVariable", "" ) as SyntheticsGlobalVariable; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1969,12 +1405,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to fetchUptimes * @throws ApiException if the response code was not in [200, 299] */ - public async fetchUptimes( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async fetchUptimes(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1982,15 +1414,8 @@ export class SyntheticsApiResponseProcessor { ) as Array; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1999,11 +1424,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2011,17 +1433,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2031,12 +1449,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getAPITest * @throws ApiException if the response code was not in [200, 299] */ - public async getAPITest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAPITest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsAPITest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2044,15 +1458,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsAPITest; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2061,11 +1468,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2073,17 +1477,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsAPITest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsAPITest", - "" + "SyntheticsAPITest", "" ) as SyntheticsAPITest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2093,29 +1493,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getAPITestLatestResults * @throws ApiException if the response code was not in [200, 299] */ - public async getAPITestLatestResults( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAPITestLatestResults(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsGetAPITestLatestResultsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGetAPITestLatestResultsResponse" - ) as SyntheticsGetAPITestLatestResultsResponse; + const body: SyntheticsGetAPITestLatestResultsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsGetAPITestLatestResultsResponse" + ) as SyntheticsGetAPITestLatestResultsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2124,30 +1512,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsGetAPITestLatestResultsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGetAPITestLatestResultsResponse", - "" - ) as SyntheticsGetAPITestLatestResultsResponse; + const body: SyntheticsGetAPITestLatestResultsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsGetAPITestLatestResultsResponse", "" + ) as SyntheticsGetAPITestLatestResultsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2157,12 +1537,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getAPITestResult * @throws ApiException if the response code was not in [200, 299] */ - public async getAPITestResult( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAPITestResult(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsAPITestResultFull = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2170,15 +1546,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsAPITestResultFull; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2187,11 +1556,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2199,17 +1565,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsAPITestResultFull = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsAPITestResultFull", - "" + "SyntheticsAPITestResultFull", "" ) as SyntheticsAPITestResultFull; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2219,12 +1581,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getBrowserTest * @throws ApiException if the response code was not in [200, 299] */ - public async getBrowserTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getBrowserTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsBrowserTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2232,15 +1590,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsBrowserTest; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2249,11 +1600,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2261,17 +1609,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsBrowserTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsBrowserTest", - "" + "SyntheticsBrowserTest", "" ) as SyntheticsBrowserTest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2281,29 +1625,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getBrowserTestLatestResults * @throws ApiException if the response code was not in [200, 299] */ - public async getBrowserTestLatestResults( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getBrowserTestLatestResults(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsGetBrowserTestLatestResultsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGetBrowserTestLatestResultsResponse" - ) as SyntheticsGetBrowserTestLatestResultsResponse; + const body: SyntheticsGetBrowserTestLatestResultsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsGetBrowserTestLatestResultsResponse" + ) as SyntheticsGetBrowserTestLatestResultsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2312,30 +1644,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsGetBrowserTestLatestResultsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGetBrowserTestLatestResultsResponse", - "" - ) as SyntheticsGetBrowserTestLatestResultsResponse; + const body: SyntheticsGetBrowserTestLatestResultsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsGetBrowserTestLatestResultsResponse", "" + ) as SyntheticsGetBrowserTestLatestResultsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2345,29 +1669,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getBrowserTestResult * @throws ApiException if the response code was not in [200, 299] */ - public async getBrowserTestResult( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getBrowserTestResult(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsBrowserTestResultFull = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsBrowserTestResultFull" - ) as SyntheticsBrowserTestResultFull; + const body: SyntheticsBrowserTestResultFull = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsBrowserTestResultFull" + ) as SyntheticsBrowserTestResultFull; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2376,30 +1688,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsBrowserTestResultFull = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsBrowserTestResultFull", - "" - ) as SyntheticsBrowserTestResultFull; + const body: SyntheticsBrowserTestResultFull = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsBrowserTestResultFull", "" + ) as SyntheticsBrowserTestResultFull; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2409,12 +1713,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getGlobalVariable * @throws ApiException if the response code was not in [200, 299] */ - public async getGlobalVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getGlobalVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsGlobalVariable = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2422,15 +1722,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsGlobalVariable; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2439,11 +1732,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2451,17 +1741,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsGlobalVariable = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsGlobalVariable", - "" + "SyntheticsGlobalVariable", "" ) as SyntheticsGlobalVariable; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2471,12 +1757,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getMobileTest * @throws ApiException if the response code was not in [200, 299] */ - public async getMobileTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMobileTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsMobileTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2484,15 +1766,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsMobileTest; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2501,11 +1776,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2513,17 +1785,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsMobileTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsMobileTest", - "" + "SyntheticsMobileTest", "" ) as SyntheticsMobileTest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2533,12 +1801,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getPrivateLocation * @throws ApiException if the response code was not in [200, 299] */ - public async getPrivateLocation( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getPrivateLocation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsPrivateLocation = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2546,11 +1810,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsPrivateLocation; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2559,11 +1820,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2571,17 +1829,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsPrivateLocation = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsPrivateLocation", - "" + "SyntheticsPrivateLocation", "" ) as SyntheticsPrivateLocation; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2591,12 +1845,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getSyntheticsCIBatch * @throws ApiException if the response code was not in [200, 299] */ - public async getSyntheticsCIBatch( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSyntheticsCIBatch(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsBatchDetails = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2604,11 +1854,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsBatchDetails; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2617,11 +1864,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2629,17 +1873,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsBatchDetails = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsBatchDetails", - "" + "SyntheticsBatchDetails", "" ) as SyntheticsBatchDetails; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2649,12 +1889,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getSyntheticsDefaultLocations * @throws ApiException if the response code was not in [200, 299] */ - public async getSyntheticsDefaultLocations( - response: ResponseContext - ): Promise> { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSyntheticsDefaultLocations(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2663,10 +1899,7 @@ export class SyntheticsApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2675,11 +1908,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2687,17 +1917,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: Array = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "Array", - "" + "Array", "" ) as Array; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2707,12 +1933,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getTest * @throws ApiException if the response code was not in [200, 299] */ - public async getTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsTestDetails = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2720,15 +1942,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsTestDetails; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2737,11 +1952,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2749,17 +1961,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsTestDetails = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsTestDetails", - "" + "SyntheticsTestDetails", "" ) as SyntheticsTestDetails; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2769,25 +1977,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to listGlobalVariables * @throws ApiException if the response code was not in [200, 299] */ - public async listGlobalVariables( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listGlobalVariables(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsListGlobalVariablesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsListGlobalVariablesResponse" - ) as SyntheticsListGlobalVariablesResponse; + const body: SyntheticsListGlobalVariablesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsListGlobalVariablesResponse" + ) as SyntheticsListGlobalVariablesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2796,30 +1996,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsListGlobalVariablesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsListGlobalVariablesResponse", - "" - ) as SyntheticsListGlobalVariablesResponse; + const body: SyntheticsListGlobalVariablesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsListGlobalVariablesResponse", "" + ) as SyntheticsListGlobalVariablesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2829,12 +2021,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to listLocations * @throws ApiException if the response code was not in [200, 299] */ - public async listLocations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLocations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsLocations = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2843,10 +2031,7 @@ export class SyntheticsApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2855,11 +2040,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2867,17 +2049,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsLocations = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsLocations", - "" + "SyntheticsLocations", "" ) as SyntheticsLocations; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2887,12 +2065,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to listTests * @throws ApiException if the response code was not in [200, 299] */ - public async listTests( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listTests(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsListTestsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2900,15 +2074,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsListTestsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2917,11 +2084,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2929,17 +2093,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsListTestsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsListTestsResponse", - "" + "SyntheticsListTestsResponse", "" ) as SyntheticsListTestsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2949,12 +2109,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to patchTest * @throws ApiException if the response code was not in [200, 299] */ - public async patchTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async patchTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsTestDetails = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2962,16 +2118,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsTestDetails; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2980,11 +2128,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2992,17 +2137,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsTestDetails = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsTestDetails", - "" + "SyntheticsTestDetails", "" ) as SyntheticsTestDetails; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3012,25 +2153,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to triggerCITests * @throws ApiException if the response code was not in [200, 299] */ - public async triggerCITests( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async triggerCITests(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsTriggerCITestsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsTriggerCITestsResponse" - ) as SyntheticsTriggerCITestsResponse; + const body: SyntheticsTriggerCITestsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsTriggerCITestsResponse" + ) as SyntheticsTriggerCITestsResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3039,30 +2172,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTriggerCITestsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsTriggerCITestsResponse", - "" - ) as SyntheticsTriggerCITestsResponse; + const body: SyntheticsTriggerCITestsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsTriggerCITestsResponse", "" + ) as SyntheticsTriggerCITestsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3072,25 +2197,17 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to triggerTests * @throws ApiException if the response code was not in [200, 299] */ - public async triggerTests( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async triggerTests(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsTriggerCITestsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsTriggerCITestsResponse" - ) as SyntheticsTriggerCITestsResponse; + const body: SyntheticsTriggerCITestsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsTriggerCITestsResponse" + ) as SyntheticsTriggerCITestsResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3099,30 +2216,22 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTriggerCITestsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsTriggerCITestsResponse", - "" - ) as SyntheticsTriggerCITestsResponse; + const body: SyntheticsTriggerCITestsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SyntheticsTriggerCITestsResponse", "" + ) as SyntheticsTriggerCITestsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3132,12 +2241,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to updateAPITest * @throws ApiException if the response code was not in [200, 299] */ - public async updateAPITest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAPITest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsAPITest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3145,16 +2250,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsAPITest; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3163,11 +2260,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3175,17 +2269,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsAPITest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsAPITest", - "" + "SyntheticsAPITest", "" ) as SyntheticsAPITest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3195,12 +2285,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to updateBrowserTest * @throws ApiException if the response code was not in [200, 299] */ - public async updateBrowserTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateBrowserTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsBrowserTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3208,16 +2294,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsBrowserTest; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3226,11 +2304,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3238,17 +2313,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsBrowserTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsBrowserTest", - "" + "SyntheticsBrowserTest", "" ) as SyntheticsBrowserTest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3258,12 +2329,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to updateMobileTest * @throws ApiException if the response code was not in [200, 299] */ - public async updateMobileTest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateMobileTest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsMobileTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3271,16 +2338,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsMobileTest; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3289,11 +2348,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3301,17 +2357,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsMobileTest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsMobileTest", - "" + "SyntheticsMobileTest", "" ) as SyntheticsMobileTest; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3321,12 +2373,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to updatePrivateLocation * @throws ApiException if the response code was not in [200, 299] */ - public async updatePrivateLocation( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updatePrivateLocation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SyntheticsPrivateLocation = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3334,11 +2382,8 @@ export class SyntheticsApiResponseProcessor { ) as SyntheticsPrivateLocation; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3347,11 +2392,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3359,17 +2401,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SyntheticsPrivateLocation = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SyntheticsPrivateLocation", - "" + "SyntheticsPrivateLocation", "" ) as SyntheticsPrivateLocation; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3379,12 +2417,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to updateTestPauseStatus * @throws ApiException if the response code was not in [200, 299] */ - public async updateTestPauseStatus( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTestPauseStatus(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: boolean = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3392,16 +2426,8 @@ export class SyntheticsApiResponseProcessor { ) as boolean; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3410,11 +2436,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3422,17 +2445,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: boolean = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "boolean", - "" + "boolean", "" ) as boolean; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -3441,7 +2460,7 @@ export interface SyntheticsApiCreateGlobalVariableRequest { * Details of the global variable to create. * @type SyntheticsGlobalVariableRequest */ - body: SyntheticsGlobalVariableRequest; + body: SyntheticsGlobalVariableRequest } export interface SyntheticsApiCreatePrivateLocationRequest { @@ -3449,7 +2468,7 @@ export interface SyntheticsApiCreatePrivateLocationRequest { * Details of the private location to create. * @type SyntheticsPrivateLocation */ - body: SyntheticsPrivateLocation; + body: SyntheticsPrivateLocation } export interface SyntheticsApiCreateSyntheticsAPITestRequest { @@ -3457,7 +2476,7 @@ export interface SyntheticsApiCreateSyntheticsAPITestRequest { * Details of the test to create. * @type SyntheticsAPITest */ - body: SyntheticsAPITest; + body: SyntheticsAPITest } export interface SyntheticsApiCreateSyntheticsBrowserTestRequest { @@ -3465,7 +2484,7 @@ export interface SyntheticsApiCreateSyntheticsBrowserTestRequest { * Details of the test to create. * @type SyntheticsBrowserTest */ - body: SyntheticsBrowserTest; + body: SyntheticsBrowserTest } export interface SyntheticsApiCreateSyntheticsMobileTestRequest { @@ -3473,7 +2492,7 @@ export interface SyntheticsApiCreateSyntheticsMobileTestRequest { * Details of the test to create. * @type SyntheticsMobileTest */ - body: SyntheticsMobileTest; + body: SyntheticsMobileTest } export interface SyntheticsApiDeleteGlobalVariableRequest { @@ -3481,7 +2500,7 @@ export interface SyntheticsApiDeleteGlobalVariableRequest { * The ID of the global variable. * @type string */ - variableId: string; + variableId: string } export interface SyntheticsApiDeletePrivateLocationRequest { @@ -3489,7 +2508,7 @@ export interface SyntheticsApiDeletePrivateLocationRequest { * The ID of the private location. * @type string */ - locationId: string; + locationId: string } export interface SyntheticsApiDeleteTestsRequest { @@ -3497,7 +2516,7 @@ export interface SyntheticsApiDeleteTestsRequest { * Public ID list of the Synthetic tests to be deleted. * @type SyntheticsDeleteTestsPayload */ - body: SyntheticsDeleteTestsPayload; + body: SyntheticsDeleteTestsPayload } export interface SyntheticsApiEditGlobalVariableRequest { @@ -3505,12 +2524,12 @@ export interface SyntheticsApiEditGlobalVariableRequest { * The ID of the global variable. * @type string */ - variableId: string; + variableId: string /** * Details of the global variable to update. * @type SyntheticsGlobalVariableRequest */ - body: SyntheticsGlobalVariableRequest; + body: SyntheticsGlobalVariableRequest } export interface SyntheticsApiFetchUptimesRequest { @@ -3518,7 +2537,7 @@ export interface SyntheticsApiFetchUptimesRequest { * Public ID list of the Synthetic tests and timeframe. * @type SyntheticsFetchUptimesPayload */ - body: SyntheticsFetchUptimesPayload; + body: SyntheticsFetchUptimesPayload } export interface SyntheticsApiGetAPITestRequest { @@ -3526,7 +2545,7 @@ export interface SyntheticsApiGetAPITestRequest { * The public ID of the test to get details from. * @type string */ - publicId: string; + publicId: string } export interface SyntheticsApiGetAPITestLatestResultsRequest { @@ -3534,22 +2553,22 @@ export interface SyntheticsApiGetAPITestLatestResultsRequest { * The public ID of the test for which to search results for. * @type string */ - publicId: string; + publicId: string /** * Timestamp in milliseconds from which to start querying results. * @type number */ - fromTs?: number; + fromTs?: number /** * Timestamp in milliseconds up to which to query results. * @type number */ - toTs?: number; + toTs?: number /** * Locations for which to query results. * @type Array */ - probeDc?: Array; + probeDc?: Array } export interface SyntheticsApiGetAPITestResultRequest { @@ -3557,12 +2576,12 @@ export interface SyntheticsApiGetAPITestResultRequest { * The public ID of the API test to which the target result belongs. * @type string */ - publicId: string; + publicId: string /** * The ID of the result to get. * @type string */ - resultId: string; + resultId: string } export interface SyntheticsApiGetBrowserTestRequest { @@ -3570,7 +2589,7 @@ export interface SyntheticsApiGetBrowserTestRequest { * The public ID of the test to get details from. * @type string */ - publicId: string; + publicId: string } export interface SyntheticsApiGetBrowserTestLatestResultsRequest { @@ -3579,22 +2598,22 @@ export interface SyntheticsApiGetBrowserTestLatestResultsRequest { * for. * @type string */ - publicId: string; + publicId: string /** * Timestamp in milliseconds from which to start querying results. * @type number */ - fromTs?: number; + fromTs?: number /** * Timestamp in milliseconds up to which to query results. * @type number */ - toTs?: number; + toTs?: number /** * Locations for which to query results. * @type Array */ - probeDc?: Array; + probeDc?: Array } export interface SyntheticsApiGetBrowserTestResultRequest { @@ -3603,12 +2622,12 @@ export interface SyntheticsApiGetBrowserTestResultRequest { * belongs. * @type string */ - publicId: string; + publicId: string /** * The ID of the result to get. * @type string */ - resultId: string; + resultId: string } export interface SyntheticsApiGetGlobalVariableRequest { @@ -3616,7 +2635,7 @@ export interface SyntheticsApiGetGlobalVariableRequest { * The ID of the global variable. * @type string */ - variableId: string; + variableId: string } export interface SyntheticsApiGetMobileTestRequest { @@ -3624,7 +2643,7 @@ export interface SyntheticsApiGetMobileTestRequest { * The public ID of the test to get details from. * @type string */ - publicId: string; + publicId: string } export interface SyntheticsApiGetPrivateLocationRequest { @@ -3632,7 +2651,7 @@ export interface SyntheticsApiGetPrivateLocationRequest { * The ID of the private location. * @type string */ - locationId: string; + locationId: string } export interface SyntheticsApiGetSyntheticsCIBatchRequest { @@ -3640,7 +2659,7 @@ export interface SyntheticsApiGetSyntheticsCIBatchRequest { * The ID of the batch. * @type string */ - batchId: string; + batchId: string } export interface SyntheticsApiGetTestRequest { @@ -3648,7 +2667,7 @@ export interface SyntheticsApiGetTestRequest { * The public ID of the test to get details from. * @type string */ - publicId: string; + publicId: string } export interface SyntheticsApiListTestsRequest { @@ -3656,12 +2675,12 @@ export interface SyntheticsApiListTestsRequest { * Used for pagination. The number of tests returned in the page. * @type number */ - pageSize?: number; + pageSize?: number /** * Used for pagination. Which page you want to retrieve. Starts at zero. * @type number */ - pageNumber?: number; + pageNumber?: number } export interface SyntheticsApiPatchTestRequest { @@ -3669,12 +2688,12 @@ export interface SyntheticsApiPatchTestRequest { * The public ID of the test to patch. * @type string */ - publicId: string; + publicId: string /** * [JSON Patch](https://jsonpatch.com/) compliant list of operations * @type SyntheticsPatchTestBody */ - body: SyntheticsPatchTestBody; + body: SyntheticsPatchTestBody } export interface SyntheticsApiTriggerCITestsRequest { @@ -3682,7 +2701,7 @@ export interface SyntheticsApiTriggerCITestsRequest { * Details of the test to trigger. * @type SyntheticsCITestBody */ - body: SyntheticsCITestBody; + body: SyntheticsCITestBody } export interface SyntheticsApiTriggerTestsRequest { @@ -3690,7 +2709,7 @@ export interface SyntheticsApiTriggerTestsRequest { * The identifiers of the tests to trigger. * @type SyntheticsTriggerBody */ - body: SyntheticsTriggerBody; + body: SyntheticsTriggerBody } export interface SyntheticsApiUpdateAPITestRequest { @@ -3698,12 +2717,12 @@ export interface SyntheticsApiUpdateAPITestRequest { * The public ID of the test to get details from. * @type string */ - publicId: string; + publicId: string /** * New test details to be saved. * @type SyntheticsAPITest */ - body: SyntheticsAPITest; + body: SyntheticsAPITest } export interface SyntheticsApiUpdateBrowserTestRequest { @@ -3711,12 +2730,12 @@ export interface SyntheticsApiUpdateBrowserTestRequest { * The public ID of the test to edit. * @type string */ - publicId: string; + publicId: string /** * New test details to be saved. * @type SyntheticsBrowserTest */ - body: SyntheticsBrowserTest; + body: SyntheticsBrowserTest } export interface SyntheticsApiUpdateMobileTestRequest { @@ -3724,12 +2743,12 @@ export interface SyntheticsApiUpdateMobileTestRequest { * The public ID of the test to get details from. * @type string */ - publicId: string; + publicId: string /** * New test details to be saved. * @type SyntheticsMobileTest */ - body: SyntheticsMobileTest; + body: SyntheticsMobileTest } export interface SyntheticsApiUpdatePrivateLocationRequest { @@ -3737,12 +2756,12 @@ export interface SyntheticsApiUpdatePrivateLocationRequest { * The ID of the private location. * @type string */ - locationId: string; + locationId: string /** * Details of the private location to be updated. * @type SyntheticsPrivateLocation */ - body: SyntheticsPrivateLocation; + body: SyntheticsPrivateLocation } export interface SyntheticsApiUpdateTestPauseStatusRequest { @@ -3750,12 +2769,12 @@ export interface SyntheticsApiUpdateTestPauseStatusRequest { * The public ID of the Synthetic test to update. * @type string */ - publicId: string; + publicId: string /** * Status to set the given Synthetic test to. * @type SyntheticsUpdateTestPauseStatusPayload */ - body: SyntheticsUpdateTestPauseStatusPayload; + body: SyntheticsUpdateTestPauseStatusPayload } export class SyntheticsApi { @@ -3763,35 +2782,21 @@ export class SyntheticsApi { private responseProcessor: SyntheticsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SyntheticsApiRequestFactory, - responseProcessor?: SyntheticsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SyntheticsApiRequestFactory, responseProcessor?: SyntheticsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SyntheticsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SyntheticsApiResponseProcessor(); + this.requestFactory = requestFactory || new SyntheticsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SyntheticsApiResponseProcessor(); } /** * Create a Synthetic global variable. * @param param The request object */ - public createGlobalVariable( - param: SyntheticsApiCreateGlobalVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createGlobalVariable( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createGlobalVariable(responseContext); + public createGlobalVariable(param: SyntheticsApiCreateGlobalVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createGlobalVariable(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createGlobalVariable(responseContext); }); }); } @@ -3800,19 +2805,11 @@ export class SyntheticsApi { * Create a new Synthetic private location. * @param param The request object */ - public createPrivateLocation( - param: SyntheticsApiCreatePrivateLocationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createPrivateLocation( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createPrivateLocation(responseContext); + public createPrivateLocation(param: SyntheticsApiCreatePrivateLocationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createPrivateLocation(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createPrivateLocation(responseContext); }); }); } @@ -3821,21 +2818,11 @@ export class SyntheticsApi { * Create a Synthetic API test. * @param param The request object */ - public createSyntheticsAPITest( - param: SyntheticsApiCreateSyntheticsAPITestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createSyntheticsAPITest( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSyntheticsAPITest( - responseContext - ); + public createSyntheticsAPITest(param: SyntheticsApiCreateSyntheticsAPITestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSyntheticsAPITest(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSyntheticsAPITest(responseContext); }); }); } @@ -3844,19 +2831,11 @@ export class SyntheticsApi { * Create a Synthetic browser test. * @param param The request object */ - public createSyntheticsBrowserTest( - param: SyntheticsApiCreateSyntheticsBrowserTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createSyntheticsBrowserTest(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSyntheticsBrowserTest( - responseContext - ); + public createSyntheticsBrowserTest(param: SyntheticsApiCreateSyntheticsBrowserTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSyntheticsBrowserTest(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSyntheticsBrowserTest(responseContext); }); }); } @@ -3865,19 +2844,11 @@ export class SyntheticsApi { * Create a Synthetic mobile test. * @param param The request object */ - public createSyntheticsMobileTest( - param: SyntheticsApiCreateSyntheticsMobileTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createSyntheticsMobileTest(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSyntheticsMobileTest( - responseContext - ); + public createSyntheticsMobileTest(param: SyntheticsApiCreateSyntheticsMobileTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSyntheticsMobileTest(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSyntheticsMobileTest(responseContext); }); }); } @@ -3886,19 +2857,11 @@ export class SyntheticsApi { * Delete a Synthetic global variable. * @param param The request object */ - public deleteGlobalVariable( - param: SyntheticsApiDeleteGlobalVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteGlobalVariable( - param.variableId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteGlobalVariable(responseContext); + public deleteGlobalVariable(param: SyntheticsApiDeleteGlobalVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteGlobalVariable(param.variableId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteGlobalVariable(responseContext); }); }); } @@ -3907,19 +2870,11 @@ export class SyntheticsApi { * Delete a Synthetic private location. * @param param The request object */ - public deletePrivateLocation( - param: SyntheticsApiDeletePrivateLocationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deletePrivateLocation( - param.locationId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deletePrivateLocation(responseContext); + public deletePrivateLocation(param: SyntheticsApiDeletePrivateLocationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deletePrivateLocation(param.locationId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deletePrivateLocation(responseContext); }); }); } @@ -3928,19 +2883,11 @@ export class SyntheticsApi { * Delete multiple Synthetic tests by ID. * @param param The request object */ - public deleteTests( - param: SyntheticsApiDeleteTestsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteTests( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteTests(responseContext); + public deleteTests(param: SyntheticsApiDeleteTestsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteTests(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteTests(responseContext); }); }); } @@ -3949,20 +2896,11 @@ export class SyntheticsApi { * Edit a Synthetic global variable. * @param param The request object */ - public editGlobalVariable( - param: SyntheticsApiEditGlobalVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.editGlobalVariable( - param.variableId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.editGlobalVariable(responseContext); + public editGlobalVariable(param: SyntheticsApiEditGlobalVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.editGlobalVariable(param.variableId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.editGlobalVariable(responseContext); }); }); } @@ -3971,19 +2909,11 @@ export class SyntheticsApi { * Fetch uptime for multiple Synthetic tests by ID. * @param param The request object */ - public fetchUptimes( - param: SyntheticsApiFetchUptimesRequest, - options?: Configuration - ): Promise> { - const requestContextPromise = this.requestFactory.fetchUptimes( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.fetchUptimes(responseContext); + public fetchUptimes(param: SyntheticsApiFetchUptimesRequest, options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.fetchUptimes(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.fetchUptimes(responseContext); }); }); } @@ -3993,19 +2923,11 @@ export class SyntheticsApi { * a Synthetic API test. * @param param The request object */ - public getAPITest( - param: SyntheticsApiGetAPITestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAPITest( - param.publicId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAPITest(responseContext); + public getAPITest(param: SyntheticsApiGetAPITestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAPITest(param.publicId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAPITest(responseContext); }); }); } @@ -4014,24 +2936,11 @@ export class SyntheticsApi { * Get the last 150 test results summaries for a given Synthetic API test. * @param param The request object */ - public getAPITestLatestResults( - param: SyntheticsApiGetAPITestLatestResultsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAPITestLatestResults( - param.publicId, - param.fromTs, - param.toTs, - param.probeDc, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAPITestLatestResults( - responseContext - ); + public getAPITestLatestResults(param: SyntheticsApiGetAPITestLatestResultsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAPITestLatestResults(param.publicId,param.fromTs,param.toTs,param.probeDc,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAPITestLatestResults(responseContext); }); }); } @@ -4040,20 +2949,11 @@ export class SyntheticsApi { * Get a specific full result from a given Synthetic API test. * @param param The request object */ - public getAPITestResult( - param: SyntheticsApiGetAPITestResultRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAPITestResult( - param.publicId, - param.resultId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAPITestResult(responseContext); + public getAPITestResult(param: SyntheticsApiGetAPITestResultRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAPITestResult(param.publicId,param.resultId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAPITestResult(responseContext); }); }); } @@ -4063,19 +2963,11 @@ export class SyntheticsApi { * a Synthetic browser test. * @param param The request object */ - public getBrowserTest( - param: SyntheticsApiGetBrowserTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getBrowserTest( - param.publicId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getBrowserTest(responseContext); + public getBrowserTest(param: SyntheticsApiGetBrowserTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getBrowserTest(param.publicId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getBrowserTest(responseContext); }); }); } @@ -4084,25 +2976,11 @@ export class SyntheticsApi { * Get the last 150 test results summaries for a given Synthetic browser test. * @param param The request object */ - public getBrowserTestLatestResults( - param: SyntheticsApiGetBrowserTestLatestResultsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getBrowserTestLatestResults( - param.publicId, - param.fromTs, - param.toTs, - param.probeDc, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getBrowserTestLatestResults( - responseContext - ); + public getBrowserTestLatestResults(param: SyntheticsApiGetBrowserTestLatestResultsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getBrowserTestLatestResults(param.publicId,param.fromTs,param.toTs,param.probeDc,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getBrowserTestLatestResults(responseContext); }); }); } @@ -4111,20 +2989,11 @@ export class SyntheticsApi { * Get a specific full result from a given Synthetic browser test. * @param param The request object */ - public getBrowserTestResult( - param: SyntheticsApiGetBrowserTestResultRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getBrowserTestResult( - param.publicId, - param.resultId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getBrowserTestResult(responseContext); + public getBrowserTestResult(param: SyntheticsApiGetBrowserTestResultRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getBrowserTestResult(param.publicId,param.resultId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getBrowserTestResult(responseContext); }); }); } @@ -4133,19 +3002,11 @@ export class SyntheticsApi { * Get the detailed configuration of a global variable. * @param param The request object */ - public getGlobalVariable( - param: SyntheticsApiGetGlobalVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getGlobalVariable( - param.variableId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getGlobalVariable(responseContext); + public getGlobalVariable(param: SyntheticsApiGetGlobalVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getGlobalVariable(param.variableId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getGlobalVariable(responseContext); }); }); } @@ -4155,19 +3016,11 @@ export class SyntheticsApi { * a Synthetic Mobile test. * @param param The request object */ - public getMobileTest( - param: SyntheticsApiGetMobileTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getMobileTest( - param.publicId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMobileTest(responseContext); + public getMobileTest(param: SyntheticsApiGetMobileTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMobileTest(param.publicId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMobileTest(responseContext); }); }); } @@ -4176,19 +3029,11 @@ export class SyntheticsApi { * Get a Synthetic private location. * @param param The request object */ - public getPrivateLocation( - param: SyntheticsApiGetPrivateLocationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getPrivateLocation( - param.locationId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getPrivateLocation(responseContext); + public getPrivateLocation(param: SyntheticsApiGetPrivateLocationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getPrivateLocation(param.locationId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getPrivateLocation(responseContext); }); }); } @@ -4197,19 +3042,11 @@ export class SyntheticsApi { * Get a batch's updated details. * @param param The request object */ - public getSyntheticsCIBatch( - param: SyntheticsApiGetSyntheticsCIBatchRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSyntheticsCIBatch( - param.batchId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSyntheticsCIBatch(responseContext); + public getSyntheticsCIBatch(param: SyntheticsApiGetSyntheticsCIBatchRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSyntheticsCIBatch(param.batchId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSyntheticsCIBatch(responseContext); }); }); } @@ -4218,18 +3055,11 @@ export class SyntheticsApi { * Get the default locations settings. * @param param The request object */ - public getSyntheticsDefaultLocations( - options?: Configuration - ): Promise> { - const requestContextPromise = - this.requestFactory.getSyntheticsDefaultLocations(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSyntheticsDefaultLocations( - responseContext - ); + public getSyntheticsDefaultLocations( options?: Configuration): Promise> { + const requestContextPromise = this.requestFactory.getSyntheticsDefaultLocations(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSyntheticsDefaultLocations(responseContext); }); }); } @@ -4238,19 +3068,11 @@ export class SyntheticsApi { * Get the detailed configuration associated with a Synthetic test. * @param param The request object */ - public getTest( - param: SyntheticsApiGetTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTest( - param.publicId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTest(responseContext); + public getTest(param: SyntheticsApiGetTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTest(param.publicId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTest(responseContext); }); }); } @@ -4259,16 +3081,11 @@ export class SyntheticsApi { * Get the list of all Synthetic global variables. * @param param The request object */ - public listGlobalVariables( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listGlobalVariables(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listGlobalVariables(responseContext); + public listGlobalVariables( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listGlobalVariables(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listGlobalVariables(responseContext); }); }); } @@ -4278,13 +3095,11 @@ export class SyntheticsApi { * tests. No arguments required. * @param param The request object */ - public listLocations(options?: Configuration): Promise { + public listLocations( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listLocations(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLocations(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLocations(responseContext); }); }); } @@ -4293,20 +3108,11 @@ export class SyntheticsApi { * Get the list of all Synthetic tests. * @param param The request object */ - public listTests( - param: SyntheticsApiListTestsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listTests( - param.pageSize, - param.pageNumber, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listTests(responseContext); + public listTests(param: SyntheticsApiListTestsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listTests(param.pageSize,param.pageNumber,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listTests(responseContext); }); }); } @@ -4314,10 +3120,8 @@ export class SyntheticsApi { /** * Provide a paginated version of listTests returning a generator with all the items. */ - public async *listTestsWithPagination( - param: SyntheticsApiListTestsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listTestsWithPagination(param: SyntheticsApiListTestsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 100; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -4325,14 +3129,8 @@ export class SyntheticsApi { param.pageSize = pageSize; param.pageNumber = 0; while (true) { - const requestContext = await this.requestFactory.listTests( - param.pageSize, - param.pageNumber, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listTests(param.pageSize,param.pageNumber,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listTests(responseContext); const responseTests = response.tests; @@ -4354,20 +3152,11 @@ export class SyntheticsApi { * Patch the configuration of a Synthetic test with partial data. * @param param The request object */ - public patchTest( - param: SyntheticsApiPatchTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.patchTest( - param.publicId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.patchTest(responseContext); + public patchTest(param: SyntheticsApiPatchTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.patchTest(param.publicId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.patchTest(responseContext); }); }); } @@ -4376,19 +3165,11 @@ export class SyntheticsApi { * Trigger a set of Synthetic tests for continuous integration. * @param param The request object */ - public triggerCITests( - param: SyntheticsApiTriggerCITestsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.triggerCITests( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.triggerCITests(responseContext); + public triggerCITests(param: SyntheticsApiTriggerCITestsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.triggerCITests(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.triggerCITests(responseContext); }); }); } @@ -4397,19 +3178,11 @@ export class SyntheticsApi { * Trigger a set of Synthetic tests. * @param param The request object */ - public triggerTests( - param: SyntheticsApiTriggerTestsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.triggerTests( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.triggerTests(responseContext); + public triggerTests(param: SyntheticsApiTriggerTestsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.triggerTests(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.triggerTests(responseContext); }); }); } @@ -4418,20 +3191,11 @@ export class SyntheticsApi { * Edit the configuration of a Synthetic API test. * @param param The request object */ - public updateAPITest( - param: SyntheticsApiUpdateAPITestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAPITest( - param.publicId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAPITest(responseContext); + public updateAPITest(param: SyntheticsApiUpdateAPITestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAPITest(param.publicId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAPITest(responseContext); }); }); } @@ -4440,20 +3204,11 @@ export class SyntheticsApi { * Edit the configuration of a Synthetic browser test. * @param param The request object */ - public updateBrowserTest( - param: SyntheticsApiUpdateBrowserTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateBrowserTest( - param.publicId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateBrowserTest(responseContext); + public updateBrowserTest(param: SyntheticsApiUpdateBrowserTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateBrowserTest(param.publicId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateBrowserTest(responseContext); }); }); } @@ -4462,20 +3217,11 @@ export class SyntheticsApi { * Edit the configuration of a Synthetic Mobile test. * @param param The request object */ - public updateMobileTest( - param: SyntheticsApiUpdateMobileTestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateMobileTest( - param.publicId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateMobileTest(responseContext); + public updateMobileTest(param: SyntheticsApiUpdateMobileTestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateMobileTest(param.publicId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateMobileTest(responseContext); }); }); } @@ -4484,20 +3230,11 @@ export class SyntheticsApi { * Edit a Synthetic private location. * @param param The request object */ - public updatePrivateLocation( - param: SyntheticsApiUpdatePrivateLocationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updatePrivateLocation( - param.locationId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updatePrivateLocation(responseContext); + public updatePrivateLocation(param: SyntheticsApiUpdatePrivateLocationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updatePrivateLocation(param.locationId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updatePrivateLocation(responseContext); }); }); } @@ -4506,21 +3243,12 @@ export class SyntheticsApi { * Pause or start a Synthetic test by changing the status. * @param param The request object */ - public updateTestPauseStatus( - param: SyntheticsApiUpdateTestPauseStatusRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateTestPauseStatus( - param.publicId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTestPauseStatus(responseContext); + public updateTestPauseStatus(param: SyntheticsApiUpdateTestPauseStatusRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTestPauseStatus(param.publicId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTestPauseStatus(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/TagsApi.ts b/packages/datadog-api-client-v1/apis/TagsApi.ts index 9d79907646a0..85cc7fb4d390 100644 --- a/packages/datadog-api-client-v1/apis/TagsApi.ts +++ b/packages/datadog-api-client-v1/apis/TagsApi.ts @@ -1,70 +1,55 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { HostTags } from "../models/HostTags"; import { TagToHosts } from "../models/TagToHosts"; export class TagsApiRequestFactory extends BaseAPIRequestFactory { - public async createHostTags( - hostName: string, - body: HostTags, - source?: string, - _options?: Configuration - ): Promise { + + public async createHostTags(hostName: string,body: HostTags,source?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'hostName' is not null or undefined if (hostName === null || hostName === undefined) { - throw new RequiredError("hostName", "createHostTags"); + throw new RequiredError('hostName', 'createHostTags'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createHostTags"); + throw new RequiredError('body', 'createHostTags'); } // Path Params - const localVarPath = "/api/v1/tags/hosts/{host_name}".replace( - "{host_name}", - encodeURIComponent(String(hostName)) - ); + const localVarPath = '/api/v1/tags/hosts/{host_name}' + .replace('{host_name}', encodeURIComponent(String(hostName))); // Make Request Context - const requestContext = _config - .getServer("v1.TagsApi.createHostTags") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.TagsApi.createHostTags').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (source !== undefined) { - requestContext.setQueryParam( - "source", - ObjectSerializer.serialize(source, "string", ""), - "" - ); + requestContext.setQueryParam("source", ObjectSerializer.serialize(source, "string", ""), ""); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "HostTags", ""), @@ -73,179 +58,119 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteHostTags( - hostName: string, - source?: string, - _options?: Configuration - ): Promise { + public async deleteHostTags(hostName: string,source?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'hostName' is not null or undefined if (hostName === null || hostName === undefined) { - throw new RequiredError("hostName", "deleteHostTags"); + throw new RequiredError('hostName', 'deleteHostTags'); } // Path Params - const localVarPath = "/api/v1/tags/hosts/{host_name}".replace( - "{host_name}", - encodeURIComponent(String(hostName)) - ); + const localVarPath = '/api/v1/tags/hosts/{host_name}' + .replace('{host_name}', encodeURIComponent(String(hostName))); // Make Request Context - const requestContext = _config - .getServer("v1.TagsApi.deleteHostTags") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.TagsApi.deleteHostTags').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (source !== undefined) { - requestContext.setQueryParam( - "source", - ObjectSerializer.serialize(source, "string", ""), - "" - ); + requestContext.setQueryParam("source", ObjectSerializer.serialize(source, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getHostTags( - hostName: string, - source?: string, - _options?: Configuration - ): Promise { + public async getHostTags(hostName: string,source?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'hostName' is not null or undefined if (hostName === null || hostName === undefined) { - throw new RequiredError("hostName", "getHostTags"); + throw new RequiredError('hostName', 'getHostTags'); } // Path Params - const localVarPath = "/api/v1/tags/hosts/{host_name}".replace( - "{host_name}", - encodeURIComponent(String(hostName)) - ); + const localVarPath = '/api/v1/tags/hosts/{host_name}' + .replace('{host_name}', encodeURIComponent(String(hostName))); // Make Request Context - const requestContext = _config - .getServer("v1.TagsApi.getHostTags") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.TagsApi.getHostTags').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (source !== undefined) { - requestContext.setQueryParam( - "source", - ObjectSerializer.serialize(source, "string", ""), - "" - ); + requestContext.setQueryParam("source", ObjectSerializer.serialize(source, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listHostTags( - source?: string, - _options?: Configuration - ): Promise { + public async listHostTags(source?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/tags/hosts"; + const localVarPath = '/api/v1/tags/hosts'; // Make Request Context - const requestContext = _config - .getServer("v1.TagsApi.listHostTags") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.TagsApi.listHostTags').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (source !== undefined) { - requestContext.setQueryParam( - "source", - ObjectSerializer.serialize(source, "string", ""), - "" - ); + requestContext.setQueryParam("source", ObjectSerializer.serialize(source, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateHostTags( - hostName: string, - body: HostTags, - source?: string, - _options?: Configuration - ): Promise { + public async updateHostTags(hostName: string,body: HostTags,source?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'hostName' is not null or undefined if (hostName === null || hostName === undefined) { - throw new RequiredError("hostName", "updateHostTags"); + throw new RequiredError('hostName', 'updateHostTags'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateHostTags"); + throw new RequiredError('body', 'updateHostTags'); } // Path Params - const localVarPath = "/api/v1/tags/hosts/{host_name}".replace( - "{host_name}", - encodeURIComponent(String(hostName)) - ); + const localVarPath = '/api/v1/tags/hosts/{host_name}' + .replace('{host_name}', encodeURIComponent(String(hostName))); // Make Request Context - const requestContext = _config - .getServer("v1.TagsApi.updateHostTags") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.TagsApi.updateHostTags').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (source !== undefined) { - requestContext.setQueryParam( - "source", - ObjectSerializer.serialize(source, "string", ""), - "" - ); + requestContext.setQueryParam("source", ObjectSerializer.serialize(source, "string", ""), ""); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "HostTags", ""), @@ -254,16 +179,14 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class TagsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -271,10 +194,8 @@ export class TagsApiResponseProcessor { * @params response Response returned by the server for a request to createHostTags * @throws ApiException if the response code was not in [200, 299] */ - public async createHostTags(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createHostTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: HostTags = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -282,15 +203,8 @@ export class TagsApiResponseProcessor { ) as HostTags; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -299,11 +213,8 @@ export class TagsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -311,17 +222,13 @@ export class TagsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostTags = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostTags", - "" + "HostTags", "" ) as HostTags; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -331,22 +238,13 @@ export class TagsApiResponseProcessor { * @params response Response returned by the server for a request to deleteHostTags * @throws ApiException if the response code was not in [200, 299] */ - public async deleteHostTags(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteHostTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -355,11 +253,8 @@ export class TagsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -367,17 +262,13 @@ export class TagsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -387,10 +278,8 @@ export class TagsApiResponseProcessor { * @params response Response returned by the server for a request to getHostTags * @throws ApiException if the response code was not in [200, 299] */ - public async getHostTags(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getHostTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HostTags = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -398,15 +287,8 @@ export class TagsApiResponseProcessor { ) as HostTags; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -415,11 +297,8 @@ export class TagsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -427,17 +306,13 @@ export class TagsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostTags = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostTags", - "" + "HostTags", "" ) as HostTags; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -447,10 +322,8 @@ export class TagsApiResponseProcessor { * @params response Response returned by the server for a request to listHostTags * @throws ApiException if the response code was not in [200, 299] */ - public async listHostTags(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listHostTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TagToHosts = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -458,15 +331,8 @@ export class TagsApiResponseProcessor { ) as TagToHosts; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -475,11 +341,8 @@ export class TagsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -487,17 +350,13 @@ export class TagsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TagToHosts = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TagToHosts", - "" + "TagToHosts", "" ) as TagToHosts; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -507,10 +366,8 @@ export class TagsApiResponseProcessor { * @params response Response returned by the server for a request to updateHostTags * @throws ApiException if the response code was not in [200, 299] */ - public async updateHostTags(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateHostTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: HostTags = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -518,15 +375,8 @@ export class TagsApiResponseProcessor { ) as HostTags; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -535,11 +385,8 @@ export class TagsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -547,17 +394,13 @@ export class TagsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HostTags = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HostTags", - "" + "HostTags", "" ) as HostTags; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -566,18 +409,18 @@ export interface TagsApiCreateHostTagsRequest { * This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. * @type string */ - hostName: string; + hostName: string /** * Update host tags request body. * @type HostTags */ - body: HostTags; + body: HostTags /** * The source of the tags. * [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). * @type string */ - source?: string; + source?: string } export interface TagsApiDeleteHostTagsRequest { @@ -585,13 +428,13 @@ export interface TagsApiDeleteHostTagsRequest { * This endpoint allows you to remove all user-assigned tags for a single host. * @type string */ - hostName: string; + hostName: string /** * The source of the tags (for example chef, puppet). * [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). * @type string */ - source?: string; + source?: string } export interface TagsApiGetHostTagsRequest { @@ -599,12 +442,12 @@ export interface TagsApiGetHostTagsRequest { * When specified, filters list of tags to those tags with the specified source. * @type string */ - hostName: string; + hostName: string /** * Source to filter. * @type string */ - source?: string; + source?: string } export interface TagsApiListHostTagsRequest { @@ -612,7 +455,7 @@ export interface TagsApiListHostTagsRequest { * When specified, filters host list to those tags with the specified source. * @type string */ - source?: string; + source?: string } export interface TagsApiUpdateHostTagsRequest { @@ -620,18 +463,18 @@ export interface TagsApiUpdateHostTagsRequest { * This endpoint allows you to update/replace all in an integration source with those supplied in the request. * @type string */ - hostName: string; + hostName: string /** * Add tags to host * @type HostTags */ - body: HostTags; + body: HostTags /** * The source of the tags (for example chef, puppet). * [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value) * @type string */ - source?: string; + source?: string } export class TagsApi { @@ -639,16 +482,10 @@ export class TagsApi { private responseProcessor: TagsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: TagsApiRequestFactory, - responseProcessor?: TagsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: TagsApiRequestFactory, responseProcessor?: TagsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new TagsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new TagsApiResponseProcessor(); + this.requestFactory = requestFactory || new TagsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new TagsApiResponseProcessor(); } /** @@ -656,21 +493,11 @@ export class TagsApi { * optionally specifying where these tags come from. * @param param The request object */ - public createHostTags( - param: TagsApiCreateHostTagsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createHostTags( - param.hostName, - param.body, - param.source, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createHostTags(responseContext); + public createHostTags(param: TagsApiCreateHostTagsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createHostTags(param.hostName,param.body,param.source,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createHostTags(responseContext); }); }); } @@ -680,20 +507,11 @@ export class TagsApi { * for a single host. * @param param The request object */ - public deleteHostTags( - param: TagsApiDeleteHostTagsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteHostTags( - param.hostName, - param.source, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteHostTags(responseContext); + public deleteHostTags(param: TagsApiDeleteHostTagsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteHostTags(param.hostName,param.source,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteHostTags(responseContext); }); }); } @@ -702,20 +520,11 @@ export class TagsApi { * Return the list of tags that apply to a given host. * @param param The request object */ - public getHostTags( - param: TagsApiGetHostTagsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getHostTags( - param.hostName, - param.source, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getHostTags(responseContext); + public getHostTags(param: TagsApiGetHostTagsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getHostTags(param.hostName,param.source,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getHostTags(responseContext); }); }); } @@ -724,19 +533,11 @@ export class TagsApi { * Return a mapping of tags to hosts for your whole infrastructure. * @param param The request object */ - public listHostTags( - param: TagsApiListHostTagsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listHostTags( - param.source, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listHostTags(responseContext); + public listHostTags(param: TagsApiListHostTagsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listHostTags(param.source,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listHostTags(responseContext); }); }); } @@ -746,22 +547,12 @@ export class TagsApi { * an integration source with those supplied in the request. * @param param The request object */ - public updateHostTags( - param: TagsApiUpdateHostTagsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateHostTags( - param.hostName, - param.body, - param.source, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateHostTags(responseContext); + public updateHostTags(param: TagsApiUpdateHostTagsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateHostTags(param.hostName,param.body,param.source,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateHostTags(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts b/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts index 1a8901ec1486..42b0838ab251 100644 --- a/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts +++ b/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { HourlyUsageAttributionResponse } from "../models/HourlyUsageAttributionResponse"; import { HourlyUsageAttributionUsageType } from "../models/HourlyUsageAttributionUsageType"; @@ -58,2036 +56,1159 @@ import { UsageTimeseriesResponse } from "../models/UsageTimeseriesResponse"; import { UsageTopAvgMetricsResponse } from "../models/UsageTopAvgMetricsResponse"; export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { - public async getDailyCustomReports( - pageSize?: number, - pageNumber?: number, - sortDir?: UsageSortDirection, - sort?: UsageSort, - _options?: Configuration - ): Promise { + + public async getDailyCustomReports(pageSize?: number,pageNumber?: number,sortDir?: UsageSortDirection,sort?: UsageSort,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/daily_custom_reports"; + const localVarPath = '/api/v1/daily_custom_reports'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getDailyCustomReports") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getDailyCustomReports').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sortDir !== undefined) { - requestContext.setQueryParam( - "sort_dir", - ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), - "" - ); + requestContext.setQueryParam("sort_dir", ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "UsageSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "UsageSort", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getHourlyUsageAttribution( - startHr: Date, - usageType: HourlyUsageAttributionUsageType, - endHr?: Date, - nextRecordId?: string, - tagBreakdownKeys?: string, - includeDescendants?: boolean, - _options?: Configuration - ): Promise { + public async getHourlyUsageAttribution(startHr: Date,usageType: HourlyUsageAttributionUsageType,endHr?: Date,nextRecordId?: string,tagBreakdownKeys?: string,includeDescendants?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getHourlyUsageAttribution"); + throw new RequiredError('startHr', 'getHourlyUsageAttribution'); } // verify required parameter 'usageType' is not null or undefined if (usageType === null || usageType === undefined) { - throw new RequiredError("usageType", "getHourlyUsageAttribution"); + throw new RequiredError('usageType', 'getHourlyUsageAttribution'); } // Path Params - const localVarPath = "/api/v1/usage/hourly-attribution"; + const localVarPath = '/api/v1/usage/hourly-attribution'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getHourlyUsageAttribution") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getHourlyUsageAttribution').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } if (usageType !== undefined) { - requestContext.setQueryParam( - "usage_type", - ObjectSerializer.serialize( - usageType, - "HourlyUsageAttributionUsageType", - "" - ), - "" - ); + requestContext.setQueryParam("usage_type", ObjectSerializer.serialize(usageType, "HourlyUsageAttributionUsageType", ""), ""); } if (nextRecordId !== undefined) { - requestContext.setQueryParam( - "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", ""), - "" - ); + requestContext.setQueryParam("next_record_id", ObjectSerializer.serialize(nextRecordId, "string", ""), ""); } if (tagBreakdownKeys !== undefined) { - requestContext.setQueryParam( - "tag_breakdown_keys", - ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), - "" - ); + requestContext.setQueryParam("tag_breakdown_keys", ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), ""); } if (includeDescendants !== undefined) { - requestContext.setQueryParam( - "include_descendants", - ObjectSerializer.serialize(includeDescendants, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_descendants", ObjectSerializer.serialize(includeDescendants, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncidentManagement( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getIncidentManagement(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getIncidentManagement"); + throw new RequiredError('startHr', 'getIncidentManagement'); } // Path Params - const localVarPath = "/api/v1/usage/incident-management"; + const localVarPath = '/api/v1/usage/incident-management'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getIncidentManagement") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getIncidentManagement').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIngestedSpans( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getIngestedSpans(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getIngestedSpans"); + throw new RequiredError('startHr', 'getIngestedSpans'); } // Path Params - const localVarPath = "/api/v1/usage/ingested-spans"; + const localVarPath = '/api/v1/usage/ingested-spans'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getIngestedSpans") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getIngestedSpans').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getMonthlyCustomReports( - pageSize?: number, - pageNumber?: number, - sortDir?: UsageSortDirection, - sort?: UsageSort, - _options?: Configuration - ): Promise { + public async getMonthlyCustomReports(pageSize?: number,pageNumber?: number,sortDir?: UsageSortDirection,sort?: UsageSort,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/monthly_custom_reports"; + const localVarPath = '/api/v1/monthly_custom_reports'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getMonthlyCustomReports") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getMonthlyCustomReports').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sortDir !== undefined) { - requestContext.setQueryParam( - "sort_dir", - ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), - "" - ); + requestContext.setQueryParam("sort_dir", ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "UsageSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "UsageSort", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getMonthlyUsageAttribution( - startMonth: Date, - fields: MonthlyUsageAttributionSupportedMetrics, - endMonth?: Date, - sortDirection?: UsageSortDirection, - sortName?: MonthlyUsageAttributionSupportedMetrics, - tagBreakdownKeys?: string, - nextRecordId?: string, - includeDescendants?: boolean, - _options?: Configuration - ): Promise { + public async getMonthlyUsageAttribution(startMonth: Date,fields: MonthlyUsageAttributionSupportedMetrics,endMonth?: Date,sortDirection?: UsageSortDirection,sortName?: MonthlyUsageAttributionSupportedMetrics,tagBreakdownKeys?: string,nextRecordId?: string,includeDescendants?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startMonth' is not null or undefined if (startMonth === null || startMonth === undefined) { - throw new RequiredError("startMonth", "getMonthlyUsageAttribution"); + throw new RequiredError('startMonth', 'getMonthlyUsageAttribution'); } // verify required parameter 'fields' is not null or undefined if (fields === null || fields === undefined) { - throw new RequiredError("fields", "getMonthlyUsageAttribution"); + throw new RequiredError('fields', 'getMonthlyUsageAttribution'); } // Path Params - const localVarPath = "/api/v1/usage/monthly-attribution"; + const localVarPath = '/api/v1/usage/monthly-attribution'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getMonthlyUsageAttribution") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getMonthlyUsageAttribution').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startMonth !== undefined) { - requestContext.setQueryParam( - "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_month", ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); } if (endMonth !== undefined) { - requestContext.setQueryParam( - "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_month", ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); } if (fields !== undefined) { - requestContext.setQueryParam( - "fields", - ObjectSerializer.serialize( - fields, - "MonthlyUsageAttributionSupportedMetrics", - "" - ), - "" - ); + requestContext.setQueryParam("fields", ObjectSerializer.serialize(fields, "MonthlyUsageAttributionSupportedMetrics", ""), ""); } if (sortDirection !== undefined) { - requestContext.setQueryParam( - "sort_direction", - ObjectSerializer.serialize(sortDirection, "UsageSortDirection", ""), - "" - ); + requestContext.setQueryParam("sort_direction", ObjectSerializer.serialize(sortDirection, "UsageSortDirection", ""), ""); } if (sortName !== undefined) { - requestContext.setQueryParam( - "sort_name", - ObjectSerializer.serialize( - sortName, - "MonthlyUsageAttributionSupportedMetrics", - "" - ), - "" - ); + requestContext.setQueryParam("sort_name", ObjectSerializer.serialize(sortName, "MonthlyUsageAttributionSupportedMetrics", ""), ""); } if (tagBreakdownKeys !== undefined) { - requestContext.setQueryParam( - "tag_breakdown_keys", - ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), - "" - ); + requestContext.setQueryParam("tag_breakdown_keys", ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), ""); } if (nextRecordId !== undefined) { - requestContext.setQueryParam( - "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", ""), - "" - ); + requestContext.setQueryParam("next_record_id", ObjectSerializer.serialize(nextRecordId, "string", ""), ""); } if (includeDescendants !== undefined) { - requestContext.setQueryParam( - "include_descendants", - ObjectSerializer.serialize(includeDescendants, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_descendants", ObjectSerializer.serialize(includeDescendants, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSpecifiedDailyCustomReports( - reportId: string, - _options?: Configuration - ): Promise { + public async getSpecifiedDailyCustomReports(reportId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'reportId' is not null or undefined if (reportId === null || reportId === undefined) { - throw new RequiredError("reportId", "getSpecifiedDailyCustomReports"); + throw new RequiredError('reportId', 'getSpecifiedDailyCustomReports'); } // Path Params - const localVarPath = "/api/v1/daily_custom_reports/{report_id}".replace( - "{report_id}", - encodeURIComponent(String(reportId)) - ); + const localVarPath = '/api/v1/daily_custom_reports/{report_id}' + .replace('{report_id}', encodeURIComponent(String(reportId))); // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getSpecifiedDailyCustomReports") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getSpecifiedDailyCustomReports').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSpecifiedMonthlyCustomReports( - reportId: string, - _options?: Configuration - ): Promise { + public async getSpecifiedMonthlyCustomReports(reportId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'reportId' is not null or undefined if (reportId === null || reportId === undefined) { - throw new RequiredError("reportId", "getSpecifiedMonthlyCustomReports"); + throw new RequiredError('reportId', 'getSpecifiedMonthlyCustomReports'); } // Path Params - const localVarPath = "/api/v1/monthly_custom_reports/{report_id}".replace( - "{report_id}", - encodeURIComponent(String(reportId)) - ); + const localVarPath = '/api/v1/monthly_custom_reports/{report_id}' + .replace('{report_id}', encodeURIComponent(String(reportId))); // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getSpecifiedMonthlyCustomReports") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getSpecifiedMonthlyCustomReports').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageAnalyzedLogs( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageAnalyzedLogs(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageAnalyzedLogs"); + throw new RequiredError('startHr', 'getUsageAnalyzedLogs'); } // Path Params - const localVarPath = "/api/v1/usage/analyzed_logs"; + const localVarPath = '/api/v1/usage/analyzed_logs'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageAnalyzedLogs") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageAnalyzedLogs').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageAuditLogs( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageAuditLogs(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageAuditLogs"); + throw new RequiredError('startHr', 'getUsageAuditLogs'); } // Path Params - const localVarPath = "/api/v1/usage/audit_logs"; + const localVarPath = '/api/v1/usage/audit_logs'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageAuditLogs") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageAuditLogs').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageBillableSummary( - month?: Date, - includeConnectedAccounts?: boolean, - _options?: Configuration - ): Promise { + public async getUsageBillableSummary(month?: Date,includeConnectedAccounts?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/usage/billable-summary"; + const localVarPath = '/api/v1/usage/billable-summary'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageBillableSummary") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageBillableSummary').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (month !== undefined) { - requestContext.setQueryParam( - "month", - ObjectSerializer.serialize(month, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("month", ObjectSerializer.serialize(month, "Date", "date-time"), ""); } if (includeConnectedAccounts !== undefined) { - requestContext.setQueryParam( - "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageCIApp( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageCIApp(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageCIApp"); + throw new RequiredError('startHr', 'getUsageCIApp'); } // Path Params - const localVarPath = "/api/v1/usage/ci-app"; + const localVarPath = '/api/v1/usage/ci-app'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageCIApp") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageCIApp').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageCloudSecurityPostureManagement( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageCloudSecurityPostureManagement(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError( - "startHr", - "getUsageCloudSecurityPostureManagement" - ); + throw new RequiredError('startHr', 'getUsageCloudSecurityPostureManagement'); } // Path Params - const localVarPath = "/api/v1/usage/cspm"; + const localVarPath = '/api/v1/usage/cspm'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageCloudSecurityPostureManagement") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageCloudSecurityPostureManagement').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageCWS( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageCWS(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageCWS"); + throw new RequiredError('startHr', 'getUsageCWS'); } // Path Params - const localVarPath = "/api/v1/usage/cws"; + const localVarPath = '/api/v1/usage/cws'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageCWS") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageCWS').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageDBM( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageDBM(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageDBM"); + throw new RequiredError('startHr', 'getUsageDBM'); } // Path Params - const localVarPath = "/api/v1/usage/dbm"; + const localVarPath = '/api/v1/usage/dbm'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageDBM") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageDBM').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageFargate( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageFargate(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageFargate"); + throw new RequiredError('startHr', 'getUsageFargate'); } // Path Params - const localVarPath = "/api/v1/usage/fargate"; + const localVarPath = '/api/v1/usage/fargate'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageFargate") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageFargate').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageHosts( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageHosts(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageHosts"); + throw new RequiredError('startHr', 'getUsageHosts'); } // Path Params - const localVarPath = "/api/v1/usage/hosts"; + const localVarPath = '/api/v1/usage/hosts'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageHosts") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageHosts').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageIndexedSpans( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageIndexedSpans(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageIndexedSpans"); + throw new RequiredError('startHr', 'getUsageIndexedSpans'); } // Path Params - const localVarPath = "/api/v1/usage/indexed-spans"; + const localVarPath = '/api/v1/usage/indexed-spans'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageIndexedSpans") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageIndexedSpans').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageInternetOfThings( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageInternetOfThings(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageInternetOfThings"); + throw new RequiredError('startHr', 'getUsageInternetOfThings'); } // Path Params - const localVarPath = "/api/v1/usage/iot"; + const localVarPath = '/api/v1/usage/iot'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageInternetOfThings") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageInternetOfThings').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageLambda( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageLambda(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageLambda"); + throw new RequiredError('startHr', 'getUsageLambda'); } // Path Params - const localVarPath = "/api/v1/usage/aws_lambda"; + const localVarPath = '/api/v1/usage/aws_lambda'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageLambda") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageLambda').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageLogs( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageLogs(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageLogs"); + throw new RequiredError('startHr', 'getUsageLogs'); } // Path Params - const localVarPath = "/api/v1/usage/logs"; + const localVarPath = '/api/v1/usage/logs'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageLogs") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageLogs').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageLogsByIndex( - startHr: Date, - endHr?: Date, - indexName?: Array, - _options?: Configuration - ): Promise { + public async getUsageLogsByIndex(startHr: Date,endHr?: Date,indexName?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageLogsByIndex"); + throw new RequiredError('startHr', 'getUsageLogsByIndex'); } // Path Params - const localVarPath = "/api/v1/usage/logs_by_index"; + const localVarPath = '/api/v1/usage/logs_by_index'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageLogsByIndex") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageLogsByIndex').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } if (indexName !== undefined) { - requestContext.setQueryParam( - "index_name", - ObjectSerializer.serialize(indexName, "Array", ""), - "multi" - ); + requestContext.setQueryParam("index_name", ObjectSerializer.serialize(indexName, "Array", ""), "multi"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageLogsByRetention( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageLogsByRetention(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageLogsByRetention"); + throw new RequiredError('startHr', 'getUsageLogsByRetention'); } // Path Params - const localVarPath = "/api/v1/usage/logs-by-retention"; + const localVarPath = '/api/v1/usage/logs-by-retention'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageLogsByRetention") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageLogsByRetention').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageNetworkFlows( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageNetworkFlows(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageNetworkFlows"); + throw new RequiredError('startHr', 'getUsageNetworkFlows'); } // Path Params - const localVarPath = "/api/v1/usage/network_flows"; + const localVarPath = '/api/v1/usage/network_flows'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageNetworkFlows") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageNetworkFlows').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageNetworkHosts( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageNetworkHosts(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageNetworkHosts"); + throw new RequiredError('startHr', 'getUsageNetworkHosts'); } // Path Params - const localVarPath = "/api/v1/usage/network_hosts"; + const localVarPath = '/api/v1/usage/network_hosts'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageNetworkHosts") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageNetworkHosts').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageOnlineArchive( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageOnlineArchive(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageOnlineArchive"); + throw new RequiredError('startHr', 'getUsageOnlineArchive'); } // Path Params - const localVarPath = "/api/v1/usage/online-archive"; + const localVarPath = '/api/v1/usage/online-archive'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageOnlineArchive") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageOnlineArchive').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageProfiling( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageProfiling(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageProfiling"); + throw new RequiredError('startHr', 'getUsageProfiling'); } // Path Params - const localVarPath = "/api/v1/usage/profiling"; + const localVarPath = '/api/v1/usage/profiling'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageProfiling") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageProfiling').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageRumSessions( - startHr: Date, - endHr?: Date, - type?: string, - _options?: Configuration - ): Promise { + public async getUsageRumSessions(startHr: Date,endHr?: Date,type?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageRumSessions"); + throw new RequiredError('startHr', 'getUsageRumSessions'); } // Path Params - const localVarPath = "/api/v1/usage/rum_sessions"; + const localVarPath = '/api/v1/usage/rum_sessions'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageRumSessions") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageRumSessions').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } if (type !== undefined) { - requestContext.setQueryParam( - "type", - ObjectSerializer.serialize(type, "string", ""), - "" - ); + requestContext.setQueryParam("type", ObjectSerializer.serialize(type, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageRumUnits( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageRumUnits(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageRumUnits"); + throw new RequiredError('startHr', 'getUsageRumUnits'); } // Path Params - const localVarPath = "/api/v1/usage/rum"; + const localVarPath = '/api/v1/usage/rum'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageRumUnits") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageRumUnits').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageSDS( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageSDS(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageSDS"); + throw new RequiredError('startHr', 'getUsageSDS'); } // Path Params - const localVarPath = "/api/v1/usage/sds"; + const localVarPath = '/api/v1/usage/sds'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageSDS") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageSDS').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageSNMP( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageSNMP(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageSNMP"); + throw new RequiredError('startHr', 'getUsageSNMP'); } // Path Params - const localVarPath = "/api/v1/usage/snmp"; + const localVarPath = '/api/v1/usage/snmp'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageSNMP") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageSNMP').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageSummary( - startMonth: Date, - endMonth?: Date, - includeOrgDetails?: boolean, - includeConnectedAccounts?: boolean, - _options?: Configuration - ): Promise { + public async getUsageSummary(startMonth: Date,endMonth?: Date,includeOrgDetails?: boolean,includeConnectedAccounts?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startMonth' is not null or undefined if (startMonth === null || startMonth === undefined) { - throw new RequiredError("startMonth", "getUsageSummary"); + throw new RequiredError('startMonth', 'getUsageSummary'); } // Path Params - const localVarPath = "/api/v1/usage/summary"; + const localVarPath = '/api/v1/usage/summary'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageSummary") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageSummary').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startMonth !== undefined) { - requestContext.setQueryParam( - "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_month", ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); } if (endMonth !== undefined) { - requestContext.setQueryParam( - "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_month", ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); } if (includeOrgDetails !== undefined) { - requestContext.setQueryParam( - "include_org_details", - ObjectSerializer.serialize(includeOrgDetails, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_org_details", ObjectSerializer.serialize(includeOrgDetails, "boolean", ""), ""); } if (includeConnectedAccounts !== undefined) { - requestContext.setQueryParam( - "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageSynthetics( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageSynthetics(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageSynthetics"); + throw new RequiredError('startHr', 'getUsageSynthetics'); } // Path Params - const localVarPath = "/api/v1/usage/synthetics"; + const localVarPath = '/api/v1/usage/synthetics'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageSynthetics") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageSynthetics').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageSyntheticsAPI( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageSyntheticsAPI(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageSyntheticsAPI"); + throw new RequiredError('startHr', 'getUsageSyntheticsAPI'); } // Path Params - const localVarPath = "/api/v1/usage/synthetics_api"; + const localVarPath = '/api/v1/usage/synthetics_api'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageSyntheticsAPI") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageSyntheticsAPI').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageSyntheticsBrowser( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageSyntheticsBrowser(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageSyntheticsBrowser"); + throw new RequiredError('startHr', 'getUsageSyntheticsBrowser'); } // Path Params - const localVarPath = "/api/v1/usage/synthetics_browser"; + const localVarPath = '/api/v1/usage/synthetics_browser'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageSyntheticsBrowser") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageSyntheticsBrowser').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageTimeseries( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageTimeseries(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageTimeseries"); + throw new RequiredError('startHr', 'getUsageTimeseries'); } // Path Params - const localVarPath = "/api/v1/usage/timeseries"; + const localVarPath = '/api/v1/usage/timeseries'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageTimeseries") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageTimeseries').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageTopAvgMetrics( - month?: Date, - day?: Date, - names?: Array, - limit?: number, - nextRecordId?: string, - _options?: Configuration - ): Promise { + public async getUsageTopAvgMetrics(month?: Date,day?: Date,names?: Array,limit?: number,nextRecordId?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/usage/top_avg_metrics"; + const localVarPath = '/api/v1/usage/top_avg_metrics'; // Make Request Context - const requestContext = _config - .getServer("v1.UsageMeteringApi.getUsageTopAvgMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v1.UsageMeteringApi.getUsageTopAvgMetrics').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (month !== undefined) { - requestContext.setQueryParam( - "month", - ObjectSerializer.serialize(month, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("month", ObjectSerializer.serialize(month, "Date", "date-time"), ""); } if (day !== undefined) { - requestContext.setQueryParam( - "day", - ObjectSerializer.serialize(day, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("day", ObjectSerializer.serialize(day, "Date", "date-time"), ""); } if (names !== undefined) { - requestContext.setQueryParam( - "names", - ObjectSerializer.serialize(names, "Array", ""), - "multi" - ); + requestContext.setQueryParam("names", ObjectSerializer.serialize(names, "Array", ""), "multi"); } if (limit !== undefined) { - requestContext.setQueryParam( - "limit", - ObjectSerializer.serialize(limit, "number", "int32"), - "" - ); + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int32"), ""); } if (nextRecordId !== undefined) { - requestContext.setQueryParam( - "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", ""), - "" - ); + requestContext.setQueryParam("next_record_id", ObjectSerializer.serialize(nextRecordId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class UsageMeteringApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2095,12 +1216,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getDailyCustomReports * @throws ApiException if the response code was not in [200, 299] */ - public async getDailyCustomReports( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDailyCustomReports(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageCustomReportsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2108,11 +1225,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageCustomReportsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2121,11 +1235,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2133,17 +1244,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageCustomReportsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageCustomReportsResponse", - "" + "UsageCustomReportsResponse", "" ) as UsageCustomReportsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2153,12 +1260,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getHourlyUsageAttribution * @throws ApiException if the response code was not in [200, 299] */ - public async getHourlyUsageAttribution( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getHourlyUsageAttribution(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HourlyUsageAttributionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2166,11 +1269,8 @@ export class UsageMeteringApiResponseProcessor { ) as HourlyUsageAttributionResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2179,11 +1279,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2191,17 +1288,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HourlyUsageAttributionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HourlyUsageAttributionResponse", - "" + "HourlyUsageAttributionResponse", "" ) as HourlyUsageAttributionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2211,29 +1304,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getIncidentManagement * @throws ApiException if the response code was not in [200, 299] */ - public async getIncidentManagement( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncidentManagement(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageIncidentManagementResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageIncidentManagementResponse" - ) as UsageIncidentManagementResponse; + const body: UsageIncidentManagementResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageIncidentManagementResponse" + ) as UsageIncidentManagementResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2242,30 +1323,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageIncidentManagementResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageIncidentManagementResponse", - "" - ) as UsageIncidentManagementResponse; + const body: UsageIncidentManagementResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageIncidentManagementResponse", "" + ) as UsageIncidentManagementResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2275,12 +1348,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getIngestedSpans * @throws ApiException if the response code was not in [200, 299] */ - public async getIngestedSpans( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIngestedSpans(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageIngestedSpansResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2288,15 +1357,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageIngestedSpansResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2305,11 +1367,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2317,17 +1376,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageIngestedSpansResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageIngestedSpansResponse", - "" + "UsageIngestedSpansResponse", "" ) as UsageIngestedSpansResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2337,12 +1392,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getMonthlyCustomReports * @throws ApiException if the response code was not in [200, 299] */ - public async getMonthlyCustomReports( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMonthlyCustomReports(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageCustomReportsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2350,11 +1401,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageCustomReportsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2363,11 +1411,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2375,17 +1420,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageCustomReportsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageCustomReportsResponse", - "" + "UsageCustomReportsResponse", "" ) as UsageCustomReportsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2395,25 +1436,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getMonthlyUsageAttribution * @throws ApiException if the response code was not in [200, 299] */ - public async getMonthlyUsageAttribution( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMonthlyUsageAttribution(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MonthlyUsageAttributionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MonthlyUsageAttributionResponse" - ) as MonthlyUsageAttributionResponse; + const body: MonthlyUsageAttributionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MonthlyUsageAttributionResponse" + ) as MonthlyUsageAttributionResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2422,30 +1455,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MonthlyUsageAttributionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MonthlyUsageAttributionResponse", - "" - ) as MonthlyUsageAttributionResponse; + const body: MonthlyUsageAttributionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MonthlyUsageAttributionResponse", "" + ) as MonthlyUsageAttributionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2455,29 +1480,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getSpecifiedDailyCustomReports * @throws ApiException if the response code was not in [200, 299] */ - public async getSpecifiedDailyCustomReports( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSpecifiedDailyCustomReports(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageSpecifiedCustomReportsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSpecifiedCustomReportsResponse" - ) as UsageSpecifiedCustomReportsResponse; + const body: UsageSpecifiedCustomReportsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageSpecifiedCustomReportsResponse" + ) as UsageSpecifiedCustomReportsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2486,30 +1499,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageSpecifiedCustomReportsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSpecifiedCustomReportsResponse", - "" - ) as UsageSpecifiedCustomReportsResponse; + const body: UsageSpecifiedCustomReportsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageSpecifiedCustomReportsResponse", "" + ) as UsageSpecifiedCustomReportsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2519,30 +1524,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getSpecifiedMonthlyCustomReports * @throws ApiException if the response code was not in [200, 299] */ - public async getSpecifiedMonthlyCustomReports( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSpecifiedMonthlyCustomReports(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageSpecifiedCustomReportsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSpecifiedCustomReportsResponse" - ) as UsageSpecifiedCustomReportsResponse; + const body: UsageSpecifiedCustomReportsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageSpecifiedCustomReportsResponse" + ) as UsageSpecifiedCustomReportsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2551,30 +1543,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageSpecifiedCustomReportsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSpecifiedCustomReportsResponse", - "" - ) as UsageSpecifiedCustomReportsResponse; + const body: UsageSpecifiedCustomReportsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageSpecifiedCustomReportsResponse", "" + ) as UsageSpecifiedCustomReportsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2584,12 +1568,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageAnalyzedLogs * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageAnalyzedLogs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageAnalyzedLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageAnalyzedLogsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2597,15 +1577,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageAnalyzedLogsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2614,11 +1587,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2626,17 +1596,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageAnalyzedLogsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageAnalyzedLogsResponse", - "" + "UsageAnalyzedLogsResponse", "" ) as UsageAnalyzedLogsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2646,12 +1612,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageAuditLogs * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageAuditLogs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageAuditLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageAuditLogsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2659,15 +1621,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageAuditLogsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2676,11 +1631,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2688,17 +1640,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageAuditLogsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageAuditLogsResponse", - "" + "UsageAuditLogsResponse", "" ) as UsageAuditLogsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2708,12 +1656,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageBillableSummary * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageBillableSummary( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageBillableSummary(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageBillableSummaryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2721,15 +1665,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageBillableSummaryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2738,11 +1675,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2750,17 +1684,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageBillableSummaryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageBillableSummaryResponse", - "" + "UsageBillableSummaryResponse", "" ) as UsageBillableSummaryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2770,12 +1700,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageCIApp * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageCIApp( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageCIApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageCIVisibilityResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2783,15 +1709,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageCIVisibilityResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2800,11 +1719,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2812,17 +1728,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageCIVisibilityResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageCIVisibilityResponse", - "" + "UsageCIVisibilityResponse", "" ) as UsageCIVisibilityResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2832,29 +1744,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageCloudSecurityPostureManagement * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageCloudSecurityPostureManagement( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageCloudSecurityPostureManagement(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageCloudSecurityPostureManagementResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageCloudSecurityPostureManagementResponse" - ) as UsageCloudSecurityPostureManagementResponse; + const body: UsageCloudSecurityPostureManagementResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageCloudSecurityPostureManagementResponse" + ) as UsageCloudSecurityPostureManagementResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2863,30 +1763,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageCloudSecurityPostureManagementResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageCloudSecurityPostureManagementResponse", - "" - ) as UsageCloudSecurityPostureManagementResponse; + const body: UsageCloudSecurityPostureManagementResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageCloudSecurityPostureManagementResponse", "" + ) as UsageCloudSecurityPostureManagementResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2896,12 +1788,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageCWS * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageCWS( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageCWS(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageCWSResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2909,15 +1797,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageCWSResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2926,11 +1807,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2938,17 +1816,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageCWSResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageCWSResponse", - "" + "UsageCWSResponse", "" ) as UsageCWSResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2958,12 +1832,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageDBM * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageDBM( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageDBM(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageDBMResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2971,15 +1841,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageDBMResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2988,11 +1851,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3000,17 +1860,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageDBMResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageDBMResponse", - "" + "UsageDBMResponse", "" ) as UsageDBMResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3020,12 +1876,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageFargate * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageFargate( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageFargate(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageFargateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3033,15 +1885,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageFargateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3050,11 +1895,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3062,17 +1904,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageFargateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageFargateResponse", - "" + "UsageFargateResponse", "" ) as UsageFargateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3082,12 +1920,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageHosts * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageHosts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageHosts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageHostsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3095,15 +1929,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageHostsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3112,11 +1939,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3124,17 +1948,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageHostsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageHostsResponse", - "" + "UsageHostsResponse", "" ) as UsageHostsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3144,12 +1964,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageIndexedSpans * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageIndexedSpans( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageIndexedSpans(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageIndexedSpansResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3157,15 +1973,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageIndexedSpansResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3174,11 +1983,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3186,17 +1992,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageIndexedSpansResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageIndexedSpansResponse", - "" + "UsageIndexedSpansResponse", "" ) as UsageIndexedSpansResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3206,12 +2008,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageInternetOfThings * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageInternetOfThings( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageInternetOfThings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageIoTResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3219,15 +2017,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageIoTResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3236,11 +2027,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3248,17 +2036,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageIoTResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageIoTResponse", - "" + "UsageIoTResponse", "" ) as UsageIoTResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3268,12 +2052,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageLambda * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageLambda( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageLambda(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageLambdaResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3281,15 +2061,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageLambdaResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3298,11 +2071,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3310,17 +2080,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageLambdaResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageLambdaResponse", - "" + "UsageLambdaResponse", "" ) as UsageLambdaResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3330,12 +2096,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageLogs * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageLogs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageLogsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3343,15 +2105,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageLogsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3360,11 +2115,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3372,17 +2124,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageLogsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageLogsResponse", - "" + "UsageLogsResponse", "" ) as UsageLogsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3392,12 +2140,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageLogsByIndex * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageLogsByIndex( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageLogsByIndex(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageLogsByIndexResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3405,15 +2149,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageLogsByIndexResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3422,11 +2159,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3434,17 +2168,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageLogsByIndexResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageLogsByIndexResponse", - "" + "UsageLogsByIndexResponse", "" ) as UsageLogsByIndexResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3454,12 +2184,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageLogsByRetention * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageLogsByRetention( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageLogsByRetention(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageLogsByRetentionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3467,15 +2193,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageLogsByRetentionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3484,11 +2203,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3496,17 +2212,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageLogsByRetentionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageLogsByRetentionResponse", - "" + "UsageLogsByRetentionResponse", "" ) as UsageLogsByRetentionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3516,12 +2228,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageNetworkFlows * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageNetworkFlows( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageNetworkFlows(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageNetworkFlowsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3529,15 +2237,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageNetworkFlowsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3546,11 +2247,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3558,17 +2256,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageNetworkFlowsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageNetworkFlowsResponse", - "" + "UsageNetworkFlowsResponse", "" ) as UsageNetworkFlowsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3578,12 +2272,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageNetworkHosts * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageNetworkHosts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageNetworkHosts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageNetworkHostsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3591,15 +2281,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageNetworkHostsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3608,11 +2291,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3620,17 +2300,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageNetworkHostsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageNetworkHostsResponse", - "" + "UsageNetworkHostsResponse", "" ) as UsageNetworkHostsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3640,12 +2316,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageOnlineArchive * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageOnlineArchive( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageOnlineArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageOnlineArchiveResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3653,15 +2325,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageOnlineArchiveResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3670,11 +2335,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3682,17 +2344,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageOnlineArchiveResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageOnlineArchiveResponse", - "" + "UsageOnlineArchiveResponse", "" ) as UsageOnlineArchiveResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3702,12 +2360,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageProfiling * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageProfiling( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageProfiling(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageProfilingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3715,15 +2369,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageProfilingResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3732,11 +2379,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3744,17 +2388,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageProfilingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageProfilingResponse", - "" + "UsageProfilingResponse", "" ) as UsageProfilingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3764,12 +2404,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageRumSessions * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageRumSessions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageRumSessions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageRumSessionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3777,15 +2413,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageRumSessionsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3794,11 +2423,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3806,17 +2432,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageRumSessionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageRumSessionsResponse", - "" + "UsageRumSessionsResponse", "" ) as UsageRumSessionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3826,12 +2448,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageRumUnits * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageRumUnits( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageRumUnits(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageRumUnitsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3839,15 +2457,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageRumUnitsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3856,11 +2467,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3868,17 +2476,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageRumUnitsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageRumUnitsResponse", - "" + "UsageRumUnitsResponse", "" ) as UsageRumUnitsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3888,12 +2492,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageSDS * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageSDS( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageSDS(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageSDSResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3901,15 +2501,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageSDSResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3918,11 +2511,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3930,17 +2520,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageSDSResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSDSResponse", - "" + "UsageSDSResponse", "" ) as UsageSDSResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3950,12 +2536,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageSNMP * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageSNMP( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageSNMP(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageSNMPResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3963,15 +2545,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageSNMPResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3980,11 +2555,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3992,17 +2564,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageSNMPResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSNMPResponse", - "" + "UsageSNMPResponse", "" ) as UsageSNMPResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4012,12 +2580,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageSummary * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageSummary( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageSummary(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageSummaryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4025,15 +2589,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageSummaryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4042,11 +2599,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4054,17 +2608,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageSummaryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSummaryResponse", - "" + "UsageSummaryResponse", "" ) as UsageSummaryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4074,12 +2624,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageSynthetics * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageSynthetics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageSynthetics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageSyntheticsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4087,15 +2633,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageSyntheticsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4104,11 +2643,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4116,17 +2652,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageSyntheticsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSyntheticsResponse", - "" + "UsageSyntheticsResponse", "" ) as UsageSyntheticsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4136,12 +2668,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageSyntheticsAPI * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageSyntheticsAPI( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageSyntheticsAPI(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageSyntheticsAPIResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4149,15 +2677,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageSyntheticsAPIResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4166,11 +2687,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4178,17 +2696,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageSyntheticsAPIResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSyntheticsAPIResponse", - "" + "UsageSyntheticsAPIResponse", "" ) as UsageSyntheticsAPIResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4198,12 +2712,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageSyntheticsBrowser * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageSyntheticsBrowser( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageSyntheticsBrowser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageSyntheticsBrowserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4211,15 +2721,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageSyntheticsBrowserResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4228,11 +2731,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4240,17 +2740,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageSyntheticsBrowserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageSyntheticsBrowserResponse", - "" + "UsageSyntheticsBrowserResponse", "" ) as UsageSyntheticsBrowserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4260,12 +2756,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageTimeseries * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageTimeseries( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageTimeseries(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageTimeseriesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4273,15 +2765,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageTimeseriesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4290,11 +2775,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4302,17 +2784,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageTimeseriesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageTimeseriesResponse", - "" + "UsageTimeseriesResponse", "" ) as UsageTimeseriesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4322,12 +2800,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageTopAvgMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageTopAvgMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageTopAvgMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsageTopAvgMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4335,15 +2809,8 @@ export class UsageMeteringApiResponseProcessor { ) as UsageTopAvgMetricsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4352,11 +2819,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4364,17 +2828,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsageTopAvgMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsageTopAvgMetricsResponse", - "" + "UsageTopAvgMetricsResponse", "" ) as UsageTopAvgMetricsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -4383,22 +2843,22 @@ export interface UsageMeteringApiGetDailyCustomReportsRequest { * The number of files to return in the response. `[default=60]`. * @type number */ - pageSize?: number; + pageSize?: number /** * The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. * @type number */ - pageNumber?: number; + pageNumber?: number /** * The direction to sort by: `[desc, asc]`. * @type UsageSortDirection */ - sortDir?: UsageSortDirection; + sortDir?: UsageSortDirection /** * The field to sort by: `[computed_on, size, start_date, end_date]`. * @type UsageSort */ - sort?: UsageSort; + sort?: UsageSort } export interface UsageMeteringApiGetHourlyUsageAttributionRequest { @@ -4406,35 +2866,35 @@ export interface UsageMeteringApiGetHourlyUsageAttributionRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Usage type to retrieve. * @type HourlyUsageAttributionUsageType */ - usageType: HourlyUsageAttributionUsageType; + usageType: HourlyUsageAttributionUsageType /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date /** * List following results with a next_record_id provided in the previous query. * @type string */ - nextRecordId?: string; + nextRecordId?: string /** * Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. - * + * * To see which tags are available, look for the value of `tag_config_source` in the API response. * @type string */ - tagBreakdownKeys?: string; + tagBreakdownKeys?: string /** * Include child org usage in the response. Defaults to `true`. * @type boolean */ - includeDescendants?: boolean; + includeDescendants?: boolean } export interface UsageMeteringApiGetIncidentManagementRequest { @@ -4442,13 +2902,13 @@ export interface UsageMeteringApiGetIncidentManagementRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetIngestedSpansRequest { @@ -4456,13 +2916,13 @@ export interface UsageMeteringApiGetIngestedSpansRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetMonthlyCustomReportsRequest { @@ -4470,22 +2930,22 @@ export interface UsageMeteringApiGetMonthlyCustomReportsRequest { * The number of files to return in the response `[default=60].` * @type number */ - pageSize?: number; + pageSize?: number /** * The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. * @type number */ - pageNumber?: number; + pageNumber?: number /** * The direction to sort by: `[desc, asc]`. * @type UsageSortDirection */ - sortDir?: UsageSortDirection; + sortDir?: UsageSortDirection /** * The field to sort by: `[computed_on, size, start_date, end_date]`. * @type UsageSort */ - sort?: UsageSort; + sort?: UsageSort } export interface UsageMeteringApiGetMonthlyUsageAttributionRequest { @@ -4494,44 +2954,44 @@ export interface UsageMeteringApiGetMonthlyUsageAttributionRequest { * Maximum of 15 months ago. * @type Date */ - startMonth: Date; + startMonth: Date /** * Comma-separated list of usage types to return, or `*` for all usage types. * @type MonthlyUsageAttributionSupportedMetrics */ - fields: MonthlyUsageAttributionSupportedMetrics; + fields: MonthlyUsageAttributionSupportedMetrics /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. * @type Date */ - endMonth?: Date; + endMonth?: Date /** * The direction to sort by: `[desc, asc]`. * @type UsageSortDirection */ - sortDirection?: UsageSortDirection; + sortDirection?: UsageSortDirection /** * The field to sort by. * @type MonthlyUsageAttributionSupportedMetrics */ - sortName?: MonthlyUsageAttributionSupportedMetrics; + sortName?: MonthlyUsageAttributionSupportedMetrics /** * Comma separated list of tag keys used to group usage. If no value is provided the usage will not be broken down by tags. - * + * * To see which tags are available, look for the value of `tag_config_source` in the API response. * @type string */ - tagBreakdownKeys?: string; + tagBreakdownKeys?: string /** * List following results with a next_record_id provided in the previous query. * @type string */ - nextRecordId?: string; + nextRecordId?: string /** * Include child org usage in the response. Defaults to `true`. * @type boolean */ - includeDescendants?: boolean; + includeDescendants?: boolean } export interface UsageMeteringApiGetSpecifiedDailyCustomReportsRequest { @@ -4539,7 +2999,7 @@ export interface UsageMeteringApiGetSpecifiedDailyCustomReportsRequest { * Date of the report in the format `YYYY-MM-DD`. * @type string */ - reportId: string; + reportId: string } export interface UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest { @@ -4547,7 +3007,7 @@ export interface UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest { * Date of the report in the format `YYYY-MM-DD`. * @type string */ - reportId: string; + reportId: string } export interface UsageMeteringApiGetUsageAnalyzedLogsRequest { @@ -4555,13 +3015,13 @@ export interface UsageMeteringApiGetUsageAnalyzedLogsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageAuditLogsRequest { @@ -4569,13 +3029,13 @@ export interface UsageMeteringApiGetUsageAuditLogsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageBillableSummaryRequest { @@ -4583,12 +3043,12 @@ export interface UsageMeteringApiGetUsageBillableSummaryRequest { * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. * @type Date */ - month?: Date; + month?: Date /** - * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. + * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. * @type boolean */ - includeConnectedAccounts?: boolean; + includeConnectedAccounts?: boolean } export interface UsageMeteringApiGetUsageCIAppRequest { @@ -4596,13 +3056,13 @@ export interface UsageMeteringApiGetUsageCIAppRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest { @@ -4610,13 +3070,13 @@ export interface UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageCWSRequest { @@ -4624,13 +3084,13 @@ export interface UsageMeteringApiGetUsageCWSRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageDBMRequest { @@ -4638,13 +3098,13 @@ export interface UsageMeteringApiGetUsageDBMRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageFargateRequest { @@ -4652,12 +3112,12 @@ export interface UsageMeteringApiGetUsageFargateRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageHostsRequest { @@ -4665,12 +3125,12 @@ export interface UsageMeteringApiGetUsageHostsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageIndexedSpansRequest { @@ -4678,12 +3138,12 @@ export interface UsageMeteringApiGetUsageIndexedSpansRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageInternetOfThingsRequest { @@ -4691,13 +3151,13 @@ export interface UsageMeteringApiGetUsageInternetOfThingsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageLambdaRequest { @@ -4705,12 +3165,12 @@ export interface UsageMeteringApiGetUsageLambdaRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageLogsRequest { @@ -4718,12 +3178,12 @@ export interface UsageMeteringApiGetUsageLogsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageLogsByIndexRequest { @@ -4731,17 +3191,17 @@ export interface UsageMeteringApiGetUsageLogsByIndexRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date /** * Comma-separated list of log index names. * @type Array */ - indexName?: Array; + indexName?: Array } export interface UsageMeteringApiGetUsageLogsByRetentionRequest { @@ -4749,13 +3209,13 @@ export interface UsageMeteringApiGetUsageLogsByRetentionRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageNetworkFlowsRequest { @@ -4763,13 +3223,13 @@ export interface UsageMeteringApiGetUsageNetworkFlowsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageNetworkHostsRequest { @@ -4777,12 +3237,12 @@ export interface UsageMeteringApiGetUsageNetworkHostsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageOnlineArchiveRequest { @@ -4790,13 +3250,13 @@ export interface UsageMeteringApiGetUsageOnlineArchiveRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageProfilingRequest { @@ -4804,13 +3264,13 @@ export interface UsageMeteringApiGetUsageProfilingRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageRumSessionsRequest { @@ -4818,17 +3278,17 @@ export interface UsageMeteringApiGetUsageRumSessionsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date /** * RUM type: `[browser, mobile]`. Defaults to `browser`. * @type string */ - type?: string; + type?: string } export interface UsageMeteringApiGetUsageRumUnitsRequest { @@ -4836,12 +3296,12 @@ export interface UsageMeteringApiGetUsageRumUnitsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageSDSRequest { @@ -4849,13 +3309,13 @@ export interface UsageMeteringApiGetUsageSDSRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageSNMPRequest { @@ -4863,13 +3323,13 @@ export interface UsageMeteringApiGetUsageSNMPRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageSummaryRequest { @@ -4878,22 +3338,22 @@ export interface UsageMeteringApiGetUsageSummaryRequest { * Maximum of 15 months ago. * @type Date */ - startMonth: Date; + startMonth: Date /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. * @type Date */ - endMonth?: Date; + endMonth?: Date /** * Include usage summaries for each sub-org. * @type boolean */ - includeOrgDetails?: boolean; + includeOrgDetails?: boolean /** - * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. + * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. * @type boolean */ - includeConnectedAccounts?: boolean; + includeConnectedAccounts?: boolean } export interface UsageMeteringApiGetUsageSyntheticsRequest { @@ -4901,12 +3361,12 @@ export interface UsageMeteringApiGetUsageSyntheticsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageSyntheticsAPIRequest { @@ -4914,12 +3374,12 @@ export interface UsageMeteringApiGetUsageSyntheticsAPIRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageSyntheticsBrowserRequest { @@ -4927,12 +3387,12 @@ export interface UsageMeteringApiGetUsageSyntheticsBrowserRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageTimeseriesRequest { @@ -4940,12 +3400,12 @@ export interface UsageMeteringApiGetUsageTimeseriesRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageTopAvgMetricsRequest { @@ -4953,27 +3413,27 @@ export interface UsageMeteringApiGetUsageTopAvgMetricsRequest { * Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both) * @type Date */ - month?: Date; + month?: Date /** * Datetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both) * @type Date */ - day?: Date; + day?: Date /** * Comma-separated list of metric names. * @type Array */ - names?: Array; + names?: Array /** * Maximum number of results to return (between 1 and 5000) - defaults to 500 results if limit not specified. * @type number */ - limit?: number; + limit?: number /** * List following results with a next_record_id provided in the previous query. * @type string */ - nextRecordId?: string; + nextRecordId?: string } export class UsageMeteringApi { @@ -4981,16 +3441,10 @@ export class UsageMeteringApi { private responseProcessor: UsageMeteringApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: UsageMeteringApiRequestFactory, - responseProcessor?: UsageMeteringApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: UsageMeteringApiRequestFactory, responseProcessor?: UsageMeteringApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new UsageMeteringApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new UsageMeteringApiResponseProcessor(); + this.requestFactory = requestFactory || new UsageMeteringApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new UsageMeteringApiResponseProcessor(); } /** @@ -4999,33 +3453,22 @@ export class UsageMeteringApi { * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. * @param param The request object */ - public getDailyCustomReports( - param: UsageMeteringApiGetDailyCustomReportsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDailyCustomReports( - param.pageSize, - param.pageNumber, - param.sortDir, - param.sort, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDailyCustomReports(responseContext); + public getDailyCustomReports(param: UsageMeteringApiGetDailyCustomReportsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDailyCustomReports(param.pageSize,param.pageNumber,param.sortDir,param.sort,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDailyCustomReports(responseContext); }); }); } /** * Get hourly usage attribution. Multi-region data is available starting March 1, 2023. - * + * * This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is * set in the response. If it is, make another request and pass `next_record_id` as a parameter. * Pseudo code example: - * + * * ``` * response := GetHourlyUsageAttribution(start_month) * cursor := response.metadata.pagination.next_record_id @@ -5037,26 +3480,11 @@ export class UsageMeteringApi { * ``` * @param param The request object */ - public getHourlyUsageAttribution( - param: UsageMeteringApiGetHourlyUsageAttributionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getHourlyUsageAttribution( - param.startHr, - param.usageType, - param.endHr, - param.nextRecordId, - param.tagBreakdownKeys, - param.includeDescendants, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getHourlyUsageAttribution( - responseContext - ); + public getHourlyUsageAttribution(param: UsageMeteringApiGetHourlyUsageAttributionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getHourlyUsageAttribution(param.startHr,param.usageType,param.endHr,param.nextRecordId,param.tagBreakdownKeys,param.includeDescendants,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getHourlyUsageAttribution(responseContext); }); }); } @@ -5066,20 +3494,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getIncidentManagement( - param: UsageMeteringApiGetIncidentManagementRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncidentManagement( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncidentManagement(responseContext); + public getIncidentManagement(param: UsageMeteringApiGetIncidentManagementRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncidentManagement(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncidentManagement(responseContext); }); }); } @@ -5089,20 +3508,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getIngestedSpans( - param: UsageMeteringApiGetIngestedSpansRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIngestedSpans( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIngestedSpans(responseContext); + public getIngestedSpans(param: UsageMeteringApiGetIngestedSpansRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIngestedSpans(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIngestedSpans(responseContext); }); }); } @@ -5113,35 +3523,22 @@ export class UsageMeteringApi { * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. * @param param The request object */ - public getMonthlyCustomReports( - param: UsageMeteringApiGetMonthlyCustomReportsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getMonthlyCustomReports( - param.pageSize, - param.pageNumber, - param.sortDir, - param.sort, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMonthlyCustomReports( - responseContext - ); + public getMonthlyCustomReports(param: UsageMeteringApiGetMonthlyCustomReportsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMonthlyCustomReports(param.pageSize,param.pageNumber,param.sortDir,param.sort,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMonthlyCustomReports(responseContext); }); }); } /** * Get monthly usage attribution. Multi-region data is available starting March 1, 2023. - * + * * This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is * set in the response. If it is, make another request and pass `next_record_id` as a parameter. * Pseudo code example: - * + * * ``` * response := GetMonthlyUsageAttribution(start_month) * cursor := response.metadata.pagination.next_record_id @@ -5153,29 +3550,11 @@ export class UsageMeteringApi { * ``` * @param param The request object */ - public getMonthlyUsageAttribution( - param: UsageMeteringApiGetMonthlyUsageAttributionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getMonthlyUsageAttribution( - param.startMonth, - param.fields, - param.endMonth, - param.sortDirection, - param.sortName, - param.tagBreakdownKeys, - param.nextRecordId, - param.includeDescendants, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMonthlyUsageAttribution( - responseContext - ); + public getMonthlyUsageAttribution(param: UsageMeteringApiGetMonthlyUsageAttributionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMonthlyUsageAttribution(param.startMonth,param.fields,param.endMonth,param.sortDirection,param.sortName,param.tagBreakdownKeys,param.nextRecordId,param.includeDescendants,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMonthlyUsageAttribution(responseContext); }); }); } @@ -5186,22 +3565,11 @@ export class UsageMeteringApi { * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. * @param param The request object */ - public getSpecifiedDailyCustomReports( - param: UsageMeteringApiGetSpecifiedDailyCustomReportsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getSpecifiedDailyCustomReports( - param.reportId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSpecifiedDailyCustomReports( - responseContext - ); + public getSpecifiedDailyCustomReports(param: UsageMeteringApiGetSpecifiedDailyCustomReportsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSpecifiedDailyCustomReports(param.reportId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSpecifiedDailyCustomReports(responseContext); }); }); } @@ -5212,22 +3580,11 @@ export class UsageMeteringApi { * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. * @param param The request object */ - public getSpecifiedMonthlyCustomReports( - param: UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getSpecifiedMonthlyCustomReports( - param.reportId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSpecifiedMonthlyCustomReports( - responseContext - ); + public getSpecifiedMonthlyCustomReports(param: UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSpecifiedMonthlyCustomReports(param.reportId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSpecifiedMonthlyCustomReports(responseContext); }); }); } @@ -5237,20 +3594,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageAnalyzedLogs( - param: UsageMeteringApiGetUsageAnalyzedLogsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageAnalyzedLogs( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageAnalyzedLogs(responseContext); + public getUsageAnalyzedLogs(param: UsageMeteringApiGetUsageAnalyzedLogsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageAnalyzedLogs(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageAnalyzedLogs(responseContext); }); }); } @@ -5260,46 +3608,26 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. * @param param The request object */ - public getUsageAuditLogs( - param: UsageMeteringApiGetUsageAuditLogsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageAuditLogs( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageAuditLogs(responseContext); + public getUsageAuditLogs(param: UsageMeteringApiGetUsageAuditLogsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageAuditLogs(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageAuditLogs(responseContext); }); }); } /** * Get billable usage across your account. - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getUsageBillableSummary( - param: UsageMeteringApiGetUsageBillableSummaryRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageBillableSummary( - param.month, - param.includeConnectedAccounts, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageBillableSummary( - responseContext - ); + public getUsageBillableSummary(param: UsageMeteringApiGetUsageBillableSummaryRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageBillableSummary(param.month,param.includeConnectedAccounts,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageBillableSummary(responseContext); }); }); } @@ -5309,20 +3637,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageCIApp( - param: UsageMeteringApiGetUsageCIAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageCIApp( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageCIApp(responseContext); + public getUsageCIApp(param: UsageMeteringApiGetUsageCIAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageCIApp(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageCIApp(responseContext); }); }); } @@ -5332,23 +3651,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageCloudSecurityPostureManagement( - param: UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getUsageCloudSecurityPostureManagement( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageCloudSecurityPostureManagement( - responseContext - ); + public getUsageCloudSecurityPostureManagement(param: UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageCloudSecurityPostureManagement(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageCloudSecurityPostureManagement(responseContext); }); }); } @@ -5358,20 +3665,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageCWS( - param: UsageMeteringApiGetUsageCWSRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageCWS( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageCWS(responseContext); + public getUsageCWS(param: UsageMeteringApiGetUsageCWSRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageCWS(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageCWS(responseContext); }); }); } @@ -5381,20 +3679,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageDBM( - param: UsageMeteringApiGetUsageDBMRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageDBM( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageDBM(responseContext); + public getUsageDBM(param: UsageMeteringApiGetUsageDBMRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageDBM(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageDBM(responseContext); }); }); } @@ -5404,20 +3693,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageFargate( - param: UsageMeteringApiGetUsageFargateRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageFargate( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageFargate(responseContext); + public getUsageFargate(param: UsageMeteringApiGetUsageFargateRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageFargate(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageFargate(responseContext); }); }); } @@ -5427,20 +3707,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageHosts( - param: UsageMeteringApiGetUsageHostsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageHosts( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageHosts(responseContext); + public getUsageHosts(param: UsageMeteringApiGetUsageHostsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageHosts(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageHosts(responseContext); }); }); } @@ -5450,20 +3721,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageIndexedSpans( - param: UsageMeteringApiGetUsageIndexedSpansRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageIndexedSpans( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageIndexedSpans(responseContext); + public getUsageIndexedSpans(param: UsageMeteringApiGetUsageIndexedSpansRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageIndexedSpans(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageIndexedSpans(responseContext); }); }); } @@ -5473,22 +3735,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageInternetOfThings( - param: UsageMeteringApiGetUsageInternetOfThingsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageInternetOfThings( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageInternetOfThings( - responseContext - ); + public getUsageInternetOfThings(param: UsageMeteringApiGetUsageInternetOfThingsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageInternetOfThings(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageInternetOfThings(responseContext); }); }); } @@ -5498,20 +3749,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageLambda( - param: UsageMeteringApiGetUsageLambdaRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageLambda( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageLambda(responseContext); + public getUsageLambda(param: UsageMeteringApiGetUsageLambdaRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageLambda(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageLambda(responseContext); }); }); } @@ -5521,20 +3763,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageLogs( - param: UsageMeteringApiGetUsageLogsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageLogs( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageLogs(responseContext); + public getUsageLogs(param: UsageMeteringApiGetUsageLogsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageLogs(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageLogs(responseContext); }); }); } @@ -5543,21 +3776,11 @@ export class UsageMeteringApi { * Get hourly usage for logs by index. * @param param The request object */ - public getUsageLogsByIndex( - param: UsageMeteringApiGetUsageLogsByIndexRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageLogsByIndex( - param.startHr, - param.endHr, - param.indexName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageLogsByIndex(responseContext); + public getUsageLogsByIndex(param: UsageMeteringApiGetUsageLogsByIndexRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageLogsByIndex(param.startHr,param.endHr,param.indexName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageLogsByIndex(responseContext); }); }); } @@ -5567,22 +3790,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageLogsByRetention( - param: UsageMeteringApiGetUsageLogsByRetentionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageLogsByRetention( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageLogsByRetention( - responseContext - ); + public getUsageLogsByRetention(param: UsageMeteringApiGetUsageLogsByRetentionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageLogsByRetention(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageLogsByRetention(responseContext); }); }); } @@ -5592,20 +3804,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageNetworkFlows( - param: UsageMeteringApiGetUsageNetworkFlowsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageNetworkFlows( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageNetworkFlows(responseContext); + public getUsageNetworkFlows(param: UsageMeteringApiGetUsageNetworkFlowsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageNetworkFlows(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageNetworkFlows(responseContext); }); }); } @@ -5615,20 +3818,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageNetworkHosts( - param: UsageMeteringApiGetUsageNetworkHostsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageNetworkHosts( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageNetworkHosts(responseContext); + public getUsageNetworkHosts(param: UsageMeteringApiGetUsageNetworkHostsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageNetworkHosts(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageNetworkHosts(responseContext); }); }); } @@ -5638,20 +3832,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageOnlineArchive( - param: UsageMeteringApiGetUsageOnlineArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageOnlineArchive( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageOnlineArchive(responseContext); + public getUsageOnlineArchive(param: UsageMeteringApiGetUsageOnlineArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageOnlineArchive(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageOnlineArchive(responseContext); }); }); } @@ -5661,20 +3846,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageProfiling( - param: UsageMeteringApiGetUsageProfilingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageProfiling( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageProfiling(responseContext); + public getUsageProfiling(param: UsageMeteringApiGetUsageProfilingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageProfiling(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageProfiling(responseContext); }); }); } @@ -5684,21 +3860,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageRumSessions( - param: UsageMeteringApiGetUsageRumSessionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageRumSessions( - param.startHr, - param.endHr, - param.type, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageRumSessions(responseContext); + public getUsageRumSessions(param: UsageMeteringApiGetUsageRumSessionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageRumSessions(param.startHr,param.endHr,param.type,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageRumSessions(responseContext); }); }); } @@ -5708,20 +3874,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageRumUnits( - param: UsageMeteringApiGetUsageRumUnitsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageRumUnits( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageRumUnits(responseContext); + public getUsageRumUnits(param: UsageMeteringApiGetUsageRumUnitsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageRumUnits(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageRumUnits(responseContext); }); }); } @@ -5731,20 +3888,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageSDS( - param: UsageMeteringApiGetUsageSDSRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageSDS( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageSDS(responseContext); + public getUsageSDS(param: UsageMeteringApiGetUsageSDSRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageSDS(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageSDS(responseContext); }); }); } @@ -5754,46 +3902,26 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageSNMP( - param: UsageMeteringApiGetUsageSNMPRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageSNMP( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageSNMP(responseContext); + public getUsageSNMP(param: UsageMeteringApiGetUsageSNMPRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageSNMP(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageSNMP(responseContext); }); }); } /** * Get all usage across your account. - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getUsageSummary( - param: UsageMeteringApiGetUsageSummaryRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageSummary( - param.startMonth, - param.endMonth, - param.includeOrgDetails, - param.includeConnectedAccounts, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageSummary(responseContext); + public getUsageSummary(param: UsageMeteringApiGetUsageSummaryRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageSummary(param.startMonth,param.endMonth,param.includeOrgDetails,param.includeConnectedAccounts,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageSummary(responseContext); }); }); } @@ -5803,20 +3931,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageSynthetics( - param: UsageMeteringApiGetUsageSyntheticsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageSynthetics( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageSynthetics(responseContext); + public getUsageSynthetics(param: UsageMeteringApiGetUsageSyntheticsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageSynthetics(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageSynthetics(responseContext); }); }); } @@ -5826,20 +3945,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageSyntheticsAPI( - param: UsageMeteringApiGetUsageSyntheticsAPIRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageSyntheticsAPI( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageSyntheticsAPI(responseContext); + public getUsageSyntheticsAPI(param: UsageMeteringApiGetUsageSyntheticsAPIRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageSyntheticsAPI(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageSyntheticsAPI(responseContext); }); }); } @@ -5849,22 +3959,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageSyntheticsBrowser( - param: UsageMeteringApiGetUsageSyntheticsBrowserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageSyntheticsBrowser( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageSyntheticsBrowser( - responseContext - ); + public getUsageSyntheticsBrowser(param: UsageMeteringApiGetUsageSyntheticsBrowserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageSyntheticsBrowser(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageSyntheticsBrowser(responseContext); }); }); } @@ -5874,20 +3973,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. * @param param The request object */ - public getUsageTimeseries( - param: UsageMeteringApiGetUsageTimeseriesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageTimeseries( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageTimeseries(responseContext); + public getUsageTimeseries(param: UsageMeteringApiGetUsageTimeseriesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageTimeseries(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageTimeseries(responseContext); }); }); } @@ -5896,24 +3986,12 @@ export class UsageMeteringApi { * Get all [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/) by hourly average. Use the month parameter to get a month-to-date data resolution or use the day parameter to get a daily resolution. One of the two is required, and only one of the two is allowed. * @param param The request object */ - public getUsageTopAvgMetrics( - param: UsageMeteringApiGetUsageTopAvgMetricsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUsageTopAvgMetrics( - param.month, - param.day, - param.names, - param.limit, - param.nextRecordId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageTopAvgMetrics(responseContext); + public getUsageTopAvgMetrics(param: UsageMeteringApiGetUsageTopAvgMetricsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageTopAvgMetrics(param.month,param.day,param.names,param.limit,param.nextRecordId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageTopAvgMetrics(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/UsersApi.ts b/packages/datadog-api-client-v1/apis/UsersApi.ts index 418fd6ee7046..a3725a1bf7f4 100644 --- a/packages/datadog-api-client-v1/apis/UsersApi.ts +++ b/packages/datadog-api-client-v1/apis/UsersApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { User } from "../models/User"; import { UserDisableResponse } from "../models/UserDisableResponse"; @@ -23,31 +21,26 @@ import { UserListResponse } from "../models/UserListResponse"; import { UserResponse } from "../models/UserResponse"; export class UsersApiRequestFactory extends BaseAPIRequestFactory { - public async createUser( - body: User, - _options?: Configuration - ): Promise { + + public async createUser(body: User,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createUser"); + throw new RequiredError('body', 'createUser'); } // Path Params - const localVarPath = "/api/v1/user"; + const localVarPath = '/api/v1/user'; // Make Request Context - const requestContext = _config - .getServer("v1.UsersApi.createUser") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.UsersApi.createUser').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "User", ""), @@ -56,76 +49,53 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async disableUser( - userHandle: string, - _options?: Configuration - ): Promise { + public async disableUser(userHandle: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userHandle' is not null or undefined if (userHandle === null || userHandle === undefined) { - throw new RequiredError("userHandle", "disableUser"); + throw new RequiredError('userHandle', 'disableUser'); } // Path Params - const localVarPath = "/api/v1/user/{user_handle}".replace( - "{user_handle}", - encodeURIComponent(String(userHandle)) - ); + const localVarPath = '/api/v1/user/{user_handle}' + .replace('{user_handle}', encodeURIComponent(String(userHandle))); // Make Request Context - const requestContext = _config - .getServer("v1.UsersApi.disableUser") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.UsersApi.disableUser').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUser( - userHandle: string, - _options?: Configuration - ): Promise { + public async getUser(userHandle: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userHandle' is not null or undefined if (userHandle === null || userHandle === undefined) { - throw new RequiredError("userHandle", "getUser"); + throw new RequiredError('userHandle', 'getUser'); } // Path Params - const localVarPath = "/api/v1/user/{user_handle}".replace( - "{user_handle}", - encodeURIComponent(String(userHandle)) - ); + const localVarPath = '/api/v1/user/{user_handle}' + .replace('{user_handle}', encodeURIComponent(String(userHandle))); // Make Request Context - const requestContext = _config - .getServer("v1.UsersApi.getUser") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.UsersApi.getUser').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } @@ -134,59 +104,44 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v1/user"; + const localVarPath = '/api/v1/user'; // Make Request Context - const requestContext = _config - .getServer("v1.UsersApi.listUsers") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.UsersApi.listUsers').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateUser( - userHandle: string, - body: User, - _options?: Configuration - ): Promise { + public async updateUser(userHandle: string,body: User,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userHandle' is not null or undefined if (userHandle === null || userHandle === undefined) { - throw new RequiredError("userHandle", "updateUser"); + throw new RequiredError('userHandle', 'updateUser'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateUser"); + throw new RequiredError('body', 'updateUser'); } // Path Params - const localVarPath = "/api/v1/user/{user_handle}".replace( - "{user_handle}", - encodeURIComponent(String(userHandle)) - ); + const localVarPath = '/api/v1/user/{user_handle}' + .replace('{user_handle}', encodeURIComponent(String(userHandle))); // Make Request Context - const requestContext = _config - .getServer("v1.UsersApi.updateUser") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.UsersApi.updateUser').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "User", ""), @@ -195,16 +150,14 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class UsersApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -212,10 +165,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to createUser * @throws ApiException if the response code was not in [200, 299] */ - public async createUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -223,16 +174,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -241,11 +184,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -253,17 +193,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -273,12 +209,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to disableUser * @throws ApiException if the response code was not in [200, 299] */ - public async disableUser( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async disableUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserDisableResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -286,16 +218,8 @@ export class UsersApiResponseProcessor { ) as UserDisableResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -304,11 +228,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -316,17 +237,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserDisableResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserDisableResponse", - "" + "UserDisableResponse", "" ) as UserDisableResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -336,10 +253,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to getUser * @throws ApiException if the response code was not in [200, 299] */ - public async getUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -347,15 +262,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -364,11 +272,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -376,17 +281,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -396,10 +297,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to listUsers * @throws ApiException if the response code was not in [200, 299] */ - public async listUsers(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listUsers(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -407,11 +306,8 @@ export class UsersApiResponseProcessor { ) as UserListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -420,11 +316,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -432,17 +325,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserListResponse", - "" + "UserListResponse", "" ) as UserListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -452,10 +341,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to updateUser * @throws ApiException if the response code was not in [200, 299] */ - public async updateUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -463,16 +350,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -481,11 +360,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -493,17 +369,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -512,7 +384,7 @@ export interface UsersApiCreateUserRequest { * User object that needs to be created. * @type User */ - body: User; + body: User } export interface UsersApiDisableUserRequest { @@ -520,7 +392,7 @@ export interface UsersApiDisableUserRequest { * The handle of the user. * @type string */ - userHandle: string; + userHandle: string } export interface UsersApiGetUserRequest { @@ -528,7 +400,7 @@ export interface UsersApiGetUserRequest { * The ID of the user. * @type string */ - userHandle: string; + userHandle: string } export interface UsersApiUpdateUserRequest { @@ -536,12 +408,12 @@ export interface UsersApiUpdateUserRequest { * The ID of the user. * @type string */ - userHandle: string; + userHandle: string /** * Description of the update. * @type User */ - body: User; + body: User } export class UsersApi { @@ -549,62 +421,40 @@ export class UsersApi { private responseProcessor: UsersApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: UsersApiRequestFactory, - responseProcessor?: UsersApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: UsersApiRequestFactory, responseProcessor?: UsersApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new UsersApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new UsersApiResponseProcessor(); + this.requestFactory = requestFactory || new UsersApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new UsersApiResponseProcessor(); } /** * Create a user for your organization. - * + * * **Note**: Users can only be created with the admin access role * if application keys belong to administrators. * @param param The request object */ - public createUser( - param: UsersApiCreateUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createUser( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createUser(responseContext); + public createUser(param: UsersApiCreateUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createUser(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createUser(responseContext); }); }); } /** * Delete a user from an organization. - * + * * **Note**: This endpoint can only be used with application keys belonging to * administrators. * @param param The request object */ - public disableUser( - param: UsersApiDisableUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.disableUser( - param.userHandle, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.disableUser(responseContext); + public disableUser(param: UsersApiDisableUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.disableUser(param.userHandle,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.disableUser(responseContext); }); }); } @@ -613,19 +463,11 @@ export class UsersApi { * Get a user's details. * @param param The request object */ - public getUser( - param: UsersApiGetUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUser( - param.userHandle, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUser(responseContext); + public getUser(param: UsersApiGetUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUser(param.userHandle,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUser(responseContext); }); }); } @@ -634,38 +476,27 @@ export class UsersApi { * List all users for your organization. * @param param The request object */ - public listUsers(options?: Configuration): Promise { + public listUsers( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listUsers(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listUsers(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listUsers(responseContext); }); }); } /** * Update a user information. - * + * * **Note**: It can only be used with application keys belonging to administrators. * @param param The request object */ - public updateUser( - param: UsersApiUpdateUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateUser( - param.userHandle, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateUser(responseContext); + public updateUser(param: UsersApiUpdateUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateUser(param.userHandle,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateUser(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.ts b/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.ts index 72683aafc2db..5348789ce8f2 100644 --- a/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { WebhooksIntegration } from "../models/WebhooksIntegration"; import { WebhooksIntegrationCustomVariable } from "../models/WebhooksIntegrationCustomVariable"; @@ -24,31 +22,26 @@ import { WebhooksIntegrationCustomVariableUpdateRequest } from "../models/Webhoo import { WebhooksIntegrationUpdateRequest } from "../models/WebhooksIntegrationUpdateRequest"; export class WebhooksIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createWebhooksIntegration( - body: WebhooksIntegration, - _options?: Configuration - ): Promise { + + public async createWebhooksIntegration(body: WebhooksIntegration,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createWebhooksIntegration"); + throw new RequiredError('body', 'createWebhooksIntegration'); } // Path Params - const localVarPath = "/api/v1/integration/webhooks/configuration/webhooks"; + const localVarPath = '/api/v1/integration/webhooks/configuration/webhooks'; // Make Request Context - const requestContext = _config - .getServer("v1.WebhooksIntegrationApi.createWebhooksIntegration") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.createWebhooksIntegration').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "WebhooksIntegration", ""), @@ -57,46 +50,30 @@ export class WebhooksIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createWebhooksIntegrationCustomVariable( - body: WebhooksIntegrationCustomVariable, - _options?: Configuration - ): Promise { + public async createWebhooksIntegrationCustomVariable(body: WebhooksIntegrationCustomVariable,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError( - "body", - "createWebhooksIntegrationCustomVariable" - ); + throw new RequiredError('body', 'createWebhooksIntegrationCustomVariable'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/custom-variables"; + const localVarPath = '/api/v1/integration/webhooks/configuration/custom-variables'; // Make Request Context - const requestContext = _config - .getServer( - "v1.WebhooksIntegrationApi.createWebhooksIntegrationCustomVariable" - ) - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.createWebhooksIntegrationCustomVariable').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "WebhooksIntegrationCustomVariable", ""), @@ -105,195 +82,128 @@ export class WebhooksIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteWebhooksIntegration( - webhookName: string, - _options?: Configuration - ): Promise { + public async deleteWebhooksIntegration(webhookName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'webhookName' is not null or undefined if (webhookName === null || webhookName === undefined) { - throw new RequiredError("webhookName", "deleteWebhooksIntegration"); + throw new RequiredError('webhookName', 'deleteWebhooksIntegration'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}".replace( - "{webhook_name}", - encodeURIComponent(String(webhookName)) - ); + const localVarPath = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}' + .replace('{webhook_name}', encodeURIComponent(String(webhookName))); // Make Request Context - const requestContext = _config - .getServer("v1.WebhooksIntegrationApi.deleteWebhooksIntegration") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.deleteWebhooksIntegration').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteWebhooksIntegrationCustomVariable( - customVariableName: string, - _options?: Configuration - ): Promise { + public async deleteWebhooksIntegrationCustomVariable(customVariableName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customVariableName' is not null or undefined if (customVariableName === null || customVariableName === undefined) { - throw new RequiredError( - "customVariableName", - "deleteWebhooksIntegrationCustomVariable" - ); + throw new RequiredError('customVariableName', 'deleteWebhooksIntegrationCustomVariable'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}".replace( - "{custom_variable_name}", - encodeURIComponent(String(customVariableName)) - ); + const localVarPath = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}' + .replace('{custom_variable_name}', encodeURIComponent(String(customVariableName))); // Make Request Context - const requestContext = _config - .getServer( - "v1.WebhooksIntegrationApi.deleteWebhooksIntegrationCustomVariable" - ) - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.deleteWebhooksIntegrationCustomVariable').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getWebhooksIntegration( - webhookName: string, - _options?: Configuration - ): Promise { + public async getWebhooksIntegration(webhookName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'webhookName' is not null or undefined if (webhookName === null || webhookName === undefined) { - throw new RequiredError("webhookName", "getWebhooksIntegration"); + throw new RequiredError('webhookName', 'getWebhooksIntegration'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}".replace( - "{webhook_name}", - encodeURIComponent(String(webhookName)) - ); + const localVarPath = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}' + .replace('{webhook_name}', encodeURIComponent(String(webhookName))); // Make Request Context - const requestContext = _config - .getServer("v1.WebhooksIntegrationApi.getWebhooksIntegration") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.getWebhooksIntegration').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getWebhooksIntegrationCustomVariable( - customVariableName: string, - _options?: Configuration - ): Promise { + public async getWebhooksIntegrationCustomVariable(customVariableName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customVariableName' is not null or undefined if (customVariableName === null || customVariableName === undefined) { - throw new RequiredError( - "customVariableName", - "getWebhooksIntegrationCustomVariable" - ); + throw new RequiredError('customVariableName', 'getWebhooksIntegrationCustomVariable'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}".replace( - "{custom_variable_name}", - encodeURIComponent(String(customVariableName)) - ); + const localVarPath = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}' + .replace('{custom_variable_name}', encodeURIComponent(String(customVariableName))); // Make Request Context - const requestContext = _config - .getServer( - "v1.WebhooksIntegrationApi.getWebhooksIntegrationCustomVariable" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.getWebhooksIntegrationCustomVariable').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateWebhooksIntegration( - webhookName: string, - body: WebhooksIntegrationUpdateRequest, - _options?: Configuration - ): Promise { + public async updateWebhooksIntegration(webhookName: string,body: WebhooksIntegrationUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'webhookName' is not null or undefined if (webhookName === null || webhookName === undefined) { - throw new RequiredError("webhookName", "updateWebhooksIntegration"); + throw new RequiredError('webhookName', 'updateWebhooksIntegration'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateWebhooksIntegration"); + throw new RequiredError('body', 'updateWebhooksIntegration'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}".replace( - "{webhook_name}", - encodeURIComponent(String(webhookName)) - ); + const localVarPath = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}' + .replace('{webhook_name}', encodeURIComponent(String(webhookName))); // Make Request Context - const requestContext = _config - .getServer("v1.WebhooksIntegrationApi.updateWebhooksIntegration") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.updateWebhooksIntegration').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "WebhooksIntegrationUpdateRequest", ""), @@ -302,79 +212,52 @@ export class WebhooksIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateWebhooksIntegrationCustomVariable( - customVariableName: string, - body: WebhooksIntegrationCustomVariableUpdateRequest, - _options?: Configuration - ): Promise { + public async updateWebhooksIntegrationCustomVariable(customVariableName: string,body: WebhooksIntegrationCustomVariableUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customVariableName' is not null or undefined if (customVariableName === null || customVariableName === undefined) { - throw new RequiredError( - "customVariableName", - "updateWebhooksIntegrationCustomVariable" - ); + throw new RequiredError('customVariableName', 'updateWebhooksIntegrationCustomVariable'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError( - "body", - "updateWebhooksIntegrationCustomVariable" - ); + throw new RequiredError('body', 'updateWebhooksIntegrationCustomVariable'); } // Path Params - const localVarPath = - "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}".replace( - "{custom_variable_name}", - encodeURIComponent(String(customVariableName)) - ); + const localVarPath = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}' + .replace('{custom_variable_name}', encodeURIComponent(String(customVariableName))); // Make Request Context - const requestContext = _config - .getServer( - "v1.WebhooksIntegrationApi.updateWebhooksIntegrationCustomVariable" - ) - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v1.WebhooksIntegrationApi.updateWebhooksIntegrationCustomVariable').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "WebhooksIntegrationCustomVariableUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "WebhooksIntegrationCustomVariableUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class WebhooksIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -382,12 +265,8 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createWebhooksIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async createWebhooksIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createWebhooksIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: WebhooksIntegration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -395,15 +274,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as WebhooksIntegration; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -412,11 +284,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -424,17 +293,13 @@ export class WebhooksIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: WebhooksIntegration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegration", - "" + "WebhooksIntegration", "" ) as WebhooksIntegration; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -444,29 +309,17 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createWebhooksIntegrationCustomVariable * @throws ApiException if the response code was not in [200, 299] */ - public async createWebhooksIntegrationCustomVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createWebhooksIntegrationCustomVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { - const body: WebhooksIntegrationCustomVariableResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegrationCustomVariableResponse" - ) as WebhooksIntegrationCustomVariableResponse; + const body: WebhooksIntegrationCustomVariableResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WebhooksIntegrationCustomVariableResponse" + ) as WebhooksIntegrationCustomVariableResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -475,30 +328,22 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: WebhooksIntegrationCustomVariableResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegrationCustomVariableResponse", - "" - ) as WebhooksIntegrationCustomVariableResponse; + const body: WebhooksIntegrationCustomVariableResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WebhooksIntegrationCustomVariableResponse", "" + ) as WebhooksIntegrationCustomVariableResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -508,24 +353,13 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteWebhooksIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteWebhooksIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteWebhooksIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -534,11 +368,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -546,17 +377,13 @@ export class WebhooksIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -566,24 +393,13 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteWebhooksIntegrationCustomVariable * @throws ApiException if the response code was not in [200, 299] */ - public async deleteWebhooksIntegrationCustomVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteWebhooksIntegrationCustomVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -592,11 +408,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -604,17 +417,13 @@ export class WebhooksIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -624,12 +433,8 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getWebhooksIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async getWebhooksIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getWebhooksIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: WebhooksIntegration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -637,16 +442,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as WebhooksIntegration; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -655,11 +452,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -667,17 +461,13 @@ export class WebhooksIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: WebhooksIntegration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegration", - "" + "WebhooksIntegration", "" ) as WebhooksIntegration; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -687,30 +477,17 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getWebhooksIntegrationCustomVariable * @throws ApiException if the response code was not in [200, 299] */ - public async getWebhooksIntegrationCustomVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getWebhooksIntegrationCustomVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: WebhooksIntegrationCustomVariableResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegrationCustomVariableResponse" - ) as WebhooksIntegrationCustomVariableResponse; + const body: WebhooksIntegrationCustomVariableResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WebhooksIntegrationCustomVariableResponse" + ) as WebhooksIntegrationCustomVariableResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -719,30 +496,22 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: WebhooksIntegrationCustomVariableResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegrationCustomVariableResponse", - "" - ) as WebhooksIntegrationCustomVariableResponse; + const body: WebhooksIntegrationCustomVariableResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WebhooksIntegrationCustomVariableResponse", "" + ) as WebhooksIntegrationCustomVariableResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -752,12 +521,8 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateWebhooksIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async updateWebhooksIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateWebhooksIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: WebhooksIntegration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -765,16 +530,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as WebhooksIntegration; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -783,11 +540,8 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -795,17 +549,13 @@ export class WebhooksIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: WebhooksIntegration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegration", - "" + "WebhooksIntegration", "" ) as WebhooksIntegration; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -815,30 +565,17 @@ export class WebhooksIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateWebhooksIntegrationCustomVariable * @throws ApiException if the response code was not in [200, 299] */ - public async updateWebhooksIntegrationCustomVariable( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateWebhooksIntegrationCustomVariable(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: WebhooksIntegrationCustomVariableResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegrationCustomVariableResponse" - ) as WebhooksIntegrationCustomVariableResponse; + const body: WebhooksIntegrationCustomVariableResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WebhooksIntegrationCustomVariableResponse" + ) as WebhooksIntegrationCustomVariableResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -847,30 +584,22 @@ export class WebhooksIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: WebhooksIntegrationCustomVariableResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WebhooksIntegrationCustomVariableResponse", - "" - ) as WebhooksIntegrationCustomVariableResponse; + const body: WebhooksIntegrationCustomVariableResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WebhooksIntegrationCustomVariableResponse", "" + ) as WebhooksIntegrationCustomVariableResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -879,7 +608,7 @@ export interface WebhooksIntegrationApiCreateWebhooksIntegrationRequest { * Create a webhooks integration request body. * @type WebhooksIntegration */ - body: WebhooksIntegration; + body: WebhooksIntegration } export interface WebhooksIntegrationApiCreateWebhooksIntegrationCustomVariableRequest { @@ -887,7 +616,7 @@ export interface WebhooksIntegrationApiCreateWebhooksIntegrationCustomVariableRe * Define a custom variable request body. * @type WebhooksIntegrationCustomVariable */ - body: WebhooksIntegrationCustomVariable; + body: WebhooksIntegrationCustomVariable } export interface WebhooksIntegrationApiDeleteWebhooksIntegrationRequest { @@ -895,7 +624,7 @@ export interface WebhooksIntegrationApiDeleteWebhooksIntegrationRequest { * The name of the webhook. * @type string */ - webhookName: string; + webhookName: string } export interface WebhooksIntegrationApiDeleteWebhooksIntegrationCustomVariableRequest { @@ -903,7 +632,7 @@ export interface WebhooksIntegrationApiDeleteWebhooksIntegrationCustomVariableRe * The name of the custom variable. * @type string */ - customVariableName: string; + customVariableName: string } export interface WebhooksIntegrationApiGetWebhooksIntegrationRequest { @@ -911,7 +640,7 @@ export interface WebhooksIntegrationApiGetWebhooksIntegrationRequest { * The name of the webhook. * @type string */ - webhookName: string; + webhookName: string } export interface WebhooksIntegrationApiGetWebhooksIntegrationCustomVariableRequest { @@ -919,7 +648,7 @@ export interface WebhooksIntegrationApiGetWebhooksIntegrationCustomVariableReque * The name of the custom variable. * @type string */ - customVariableName: string; + customVariableName: string } export interface WebhooksIntegrationApiUpdateWebhooksIntegrationRequest { @@ -927,12 +656,12 @@ export interface WebhooksIntegrationApiUpdateWebhooksIntegrationRequest { * The name of the webhook. * @type string */ - webhookName: string; + webhookName: string /** * Update an existing Datadog-Webhooks integration. * @type WebhooksIntegrationUpdateRequest */ - body: WebhooksIntegrationUpdateRequest; + body: WebhooksIntegrationUpdateRequest } export interface WebhooksIntegrationApiUpdateWebhooksIntegrationCustomVariableRequest { @@ -940,12 +669,12 @@ export interface WebhooksIntegrationApiUpdateWebhooksIntegrationCustomVariableRe * The name of the custom variable. * @type string */ - customVariableName: string; + customVariableName: string /** * Update an existing custom variable request body. * @type WebhooksIntegrationCustomVariableUpdateRequest */ - body: WebhooksIntegrationCustomVariableUpdateRequest; + body: WebhooksIntegrationCustomVariableUpdateRequest } export class WebhooksIntegrationApi { @@ -953,37 +682,21 @@ export class WebhooksIntegrationApi { private responseProcessor: WebhooksIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: WebhooksIntegrationApiRequestFactory, - responseProcessor?: WebhooksIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: WebhooksIntegrationApiRequestFactory, responseProcessor?: WebhooksIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new WebhooksIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new WebhooksIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new WebhooksIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new WebhooksIntegrationApiResponseProcessor(); } /** * Creates an endpoint with the name ``. * @param param The request object */ - public createWebhooksIntegration( - param: WebhooksIntegrationApiCreateWebhooksIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createWebhooksIntegration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createWebhooksIntegration( - responseContext - ); + public createWebhooksIntegration(param: WebhooksIntegrationApiCreateWebhooksIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createWebhooksIntegration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createWebhooksIntegration(responseContext); }); }); } @@ -992,22 +705,11 @@ export class WebhooksIntegrationApi { * Creates an endpoint with the name ``. * @param param The request object */ - public createWebhooksIntegrationCustomVariable( - param: WebhooksIntegrationApiCreateWebhooksIntegrationCustomVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createWebhooksIntegrationCustomVariable( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createWebhooksIntegrationCustomVariable( - responseContext - ); + public createWebhooksIntegrationCustomVariable(param: WebhooksIntegrationApiCreateWebhooksIntegrationCustomVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createWebhooksIntegrationCustomVariable(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createWebhooksIntegrationCustomVariable(responseContext); }); }); } @@ -1016,21 +718,11 @@ export class WebhooksIntegrationApi { * Deletes the endpoint with the name ``. * @param param The request object */ - public deleteWebhooksIntegration( - param: WebhooksIntegrationApiDeleteWebhooksIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteWebhooksIntegration( - param.webhookName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteWebhooksIntegration( - responseContext - ); + public deleteWebhooksIntegration(param: WebhooksIntegrationApiDeleteWebhooksIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteWebhooksIntegration(param.webhookName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteWebhooksIntegration(responseContext); }); }); } @@ -1039,22 +731,11 @@ export class WebhooksIntegrationApi { * Deletes the endpoint with the name ``. * @param param The request object */ - public deleteWebhooksIntegrationCustomVariable( - param: WebhooksIntegrationApiDeleteWebhooksIntegrationCustomVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteWebhooksIntegrationCustomVariable( - param.customVariableName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteWebhooksIntegrationCustomVariable( - responseContext - ); + public deleteWebhooksIntegrationCustomVariable(param: WebhooksIntegrationApiDeleteWebhooksIntegrationCustomVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteWebhooksIntegrationCustomVariable(param.customVariableName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteWebhooksIntegrationCustomVariable(responseContext); }); }); } @@ -1063,46 +744,27 @@ export class WebhooksIntegrationApi { * Gets the content of the webhook with the name ``. * @param param The request object */ - public getWebhooksIntegration( - param: WebhooksIntegrationApiGetWebhooksIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getWebhooksIntegration( - param.webhookName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getWebhooksIntegration(responseContext); + public getWebhooksIntegration(param: WebhooksIntegrationApiGetWebhooksIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getWebhooksIntegration(param.webhookName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getWebhooksIntegration(responseContext); }); }); } /** * Shows the content of the custom variable with the name ``. - * + * * If the custom variable is secret, the value does not return in the * response payload. * @param param The request object */ - public getWebhooksIntegrationCustomVariable( - param: WebhooksIntegrationApiGetWebhooksIntegrationCustomVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getWebhooksIntegrationCustomVariable( - param.customVariableName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getWebhooksIntegrationCustomVariable( - responseContext - ); + public getWebhooksIntegrationCustomVariable(param: WebhooksIntegrationApiGetWebhooksIntegrationCustomVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getWebhooksIntegrationCustomVariable(param.customVariableName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getWebhooksIntegrationCustomVariable(responseContext); }); }); } @@ -1111,22 +773,11 @@ export class WebhooksIntegrationApi { * Updates the endpoint with the name ``. * @param param The request object */ - public updateWebhooksIntegration( - param: WebhooksIntegrationApiUpdateWebhooksIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateWebhooksIntegration( - param.webhookName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateWebhooksIntegration( - responseContext - ); + public updateWebhooksIntegration(param: WebhooksIntegrationApiUpdateWebhooksIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateWebhooksIntegration(param.webhookName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateWebhooksIntegration(responseContext); }); }); } @@ -1135,24 +786,12 @@ export class WebhooksIntegrationApi { * Updates the endpoint with the name ``. * @param param The request object */ - public updateWebhooksIntegrationCustomVariable( - param: WebhooksIntegrationApiUpdateWebhooksIntegrationCustomVariableRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateWebhooksIntegrationCustomVariable( - param.customVariableName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateWebhooksIntegrationCustomVariable( - responseContext - ); + public updateWebhooksIntegrationCustomVariable(param: WebhooksIntegrationApiUpdateWebhooksIntegrationCustomVariableRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateWebhooksIntegrationCustomVariable(param.customVariableName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateWebhooksIntegrationCustomVariable(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/index.ts b/packages/datadog-api-client-v1/index.ts index 1ea249f433c7..763b5749f581 100644 --- a/packages/datadog-api-client-v1/index.ts +++ b/packages/datadog-api-client-v1/index.ts @@ -1,3 +1,5 @@ + + export { AWSIntegrationApiCreateAWSAccountRequest, AWSIntegrationApiCreateAWSEventBridgeSourceRequest, @@ -9,36 +11,43 @@ export { AWSIntegrationApiListAWSAccountsRequest, AWSIntegrationApiListAWSTagFiltersRequest, AWSIntegrationApiUpdateAWSAccountRequest, - AWSIntegrationApi, + AWSIntegrationApi } from "./apis/AWSIntegrationApi"; + export { AWSLogsIntegrationApiCheckAWSLogsLambdaAsyncRequest, AWSLogsIntegrationApiCheckAWSLogsServicesAsyncRequest, AWSLogsIntegrationApiCreateAWSLambdaARNRequest, AWSLogsIntegrationApiDeleteAWSLambdaARNRequest, AWSLogsIntegrationApiEnableAWSLogServicesRequest, - AWSLogsIntegrationApi, + AWSLogsIntegrationApi } from "./apis/AWSLogsIntegrationApi"; -export { AuthenticationApi } from "./apis/AuthenticationApi"; + +export { + AuthenticationApi +} from "./apis/AuthenticationApi"; + export { AzureIntegrationApiCreateAzureIntegrationRequest, AzureIntegrationApiDeleteAzureIntegrationRequest, AzureIntegrationApiUpdateAzureHostFiltersRequest, AzureIntegrationApiUpdateAzureIntegrationRequest, - AzureIntegrationApi, + AzureIntegrationApi } from "./apis/AzureIntegrationApi"; + export { DashboardListsApiCreateDashboardListRequest, DashboardListsApiDeleteDashboardListRequest, DashboardListsApiGetDashboardListRequest, DashboardListsApiUpdateDashboardListRequest, - DashboardListsApi, + DashboardListsApi } from "./apis/DashboardListsApi"; + export { DashboardsApiCreateDashboardRequest, DashboardsApiCreatePublicDashboardRequest, @@ -54,9 +63,10 @@ export { DashboardsApiSendPublicDashboardInvitationRequest, DashboardsApiUpdateDashboardRequest, DashboardsApiUpdatePublicDashboardRequest, - DashboardsApi, + DashboardsApi } from "./apis/DashboardsApi"; + export { DowntimesApiCancelDowntimeRequest, DowntimesApiCancelDowntimesByScopeRequest, @@ -65,32 +75,39 @@ export { DowntimesApiListDowntimesRequest, DowntimesApiListMonitorDowntimesRequest, DowntimesApiUpdateDowntimeRequest, - DowntimesApi, + DowntimesApi } from "./apis/DowntimesApi"; + export { EventsApiCreateEventRequest, EventsApiGetEventRequest, EventsApiListEventsRequest, - EventsApi, + EventsApi } from "./apis/EventsApi"; + export { GCPIntegrationApiCreateGCPIntegrationRequest, GCPIntegrationApiDeleteGCPIntegrationRequest, GCPIntegrationApiUpdateGCPIntegrationRequest, - GCPIntegrationApi, + GCPIntegrationApi } from "./apis/GCPIntegrationApi"; + export { HostsApiGetHostTotalsRequest, HostsApiListHostsRequest, HostsApiMuteHostRequest, HostsApiUnmuteHostRequest, - HostsApi, + HostsApi } from "./apis/HostsApi"; -export { IPRangesApi } from "./apis/IPRangesApi"; + +export { + IPRangesApi +} from "./apis/IPRangesApi"; + export { KeyManagementApiCreateAPIKeyRequest, @@ -101,33 +118,37 @@ export { KeyManagementApiGetApplicationKeyRequest, KeyManagementApiUpdateAPIKeyRequest, KeyManagementApiUpdateApplicationKeyRequest, - KeyManagementApi, + KeyManagementApi } from "./apis/KeyManagementApi"; + export { LogsApiListLogsRequest, LogsApiSubmitLogRequest, - LogsApi, + LogsApi } from "./apis/LogsApi"; + export { LogsIndexesApiCreateLogsIndexRequest, LogsIndexesApiDeleteLogsIndexRequest, LogsIndexesApiGetLogsIndexRequest, LogsIndexesApiUpdateLogsIndexRequest, LogsIndexesApiUpdateLogsIndexOrderRequest, - LogsIndexesApi, + LogsIndexesApi } from "./apis/LogsIndexesApi"; + export { LogsPipelinesApiCreateLogsPipelineRequest, LogsPipelinesApiDeleteLogsPipelineRequest, LogsPipelinesApiGetLogsPipelineRequest, LogsPipelinesApiUpdateLogsPipelineRequest, LogsPipelinesApiUpdateLogsPipelineOrderRequest, - LogsPipelinesApi, + LogsPipelinesApi } from "./apis/LogsPipelinesApi"; + export { MetricsApiGetMetricMetadataRequest, MetricsApiListActiveMetricsRequest, @@ -136,9 +157,10 @@ export { MetricsApiSubmitDistributionPointsRequest, MetricsApiSubmitMetricsRequest, MetricsApiUpdateMetricMetadataRequest, - MetricsApi, + MetricsApi } from "./apis/MetricsApi"; + export { MonitorsApiCheckCanDeleteMonitorRequest, MonitorsApiCreateMonitorRequest, @@ -150,56 +172,63 @@ export { MonitorsApiUpdateMonitorRequest, MonitorsApiValidateExistingMonitorRequest, MonitorsApiValidateMonitorRequest, - MonitorsApi, + MonitorsApi } from "./apis/MonitorsApi"; + export { NotebooksApiCreateNotebookRequest, NotebooksApiDeleteNotebookRequest, NotebooksApiGetNotebookRequest, NotebooksApiListNotebooksRequest, NotebooksApiUpdateNotebookRequest, - NotebooksApi, + NotebooksApi } from "./apis/NotebooksApi"; + export { OrganizationsApiCreateChildOrgRequest, OrganizationsApiDowngradeOrgRequest, OrganizationsApiGetOrgRequest, OrganizationsApiUpdateOrgRequest, OrganizationsApiUploadIdPForOrgRequest, - OrganizationsApi, + OrganizationsApi } from "./apis/OrganizationsApi"; + export { PagerDutyIntegrationApiCreatePagerDutyIntegrationServiceRequest, PagerDutyIntegrationApiDeletePagerDutyIntegrationServiceRequest, PagerDutyIntegrationApiGetPagerDutyIntegrationServiceRequest, PagerDutyIntegrationApiUpdatePagerDutyIntegrationServiceRequest, - PagerDutyIntegrationApi, + PagerDutyIntegrationApi } from "./apis/PagerDutyIntegrationApi"; + export { SecurityMonitoringApiAddSecurityMonitoringSignalToIncidentRequest, SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest, SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest, - SecurityMonitoringApi, + SecurityMonitoringApi } from "./apis/SecurityMonitoringApi"; + export { ServiceChecksApiSubmitServiceCheckRequest, - ServiceChecksApi, + ServiceChecksApi } from "./apis/ServiceChecksApi"; + export { ServiceLevelObjectiveCorrectionsApiCreateSLOCorrectionRequest, ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest, ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest, ServiceLevelObjectiveCorrectionsApiListSLOCorrectionRequest, ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest, - ServiceLevelObjectiveCorrectionsApi, + ServiceLevelObjectiveCorrectionsApi } from "./apis/ServiceLevelObjectiveCorrectionsApi"; + export { ServiceLevelObjectivesApiCheckCanDeleteSLORequest, ServiceLevelObjectivesApiCreateSLORequest, @@ -211,23 +240,26 @@ export { ServiceLevelObjectivesApiListSLOsRequest, ServiceLevelObjectivesApiSearchSLORequest, ServiceLevelObjectivesApiUpdateSLORequest, - ServiceLevelObjectivesApi, + ServiceLevelObjectivesApi } from "./apis/ServiceLevelObjectivesApi"; + export { SlackIntegrationApiCreateSlackIntegrationChannelRequest, SlackIntegrationApiGetSlackIntegrationChannelRequest, SlackIntegrationApiGetSlackIntegrationChannelsRequest, SlackIntegrationApiRemoveSlackIntegrationChannelRequest, SlackIntegrationApiUpdateSlackIntegrationChannelRequest, - SlackIntegrationApi, + SlackIntegrationApi } from "./apis/SlackIntegrationApi"; + export { SnapshotsApiGetGraphSnapshotRequest, - SnapshotsApi, + SnapshotsApi } from "./apis/SnapshotsApi"; + export { SyntheticsApiCreateGlobalVariableRequest, SyntheticsApiCreatePrivateLocationRequest, @@ -259,18 +291,20 @@ export { SyntheticsApiUpdateMobileTestRequest, SyntheticsApiUpdatePrivateLocationRequest, SyntheticsApiUpdateTestPauseStatusRequest, - SyntheticsApi, + SyntheticsApi } from "./apis/SyntheticsApi"; + export { TagsApiCreateHostTagsRequest, TagsApiDeleteHostTagsRequest, TagsApiGetHostTagsRequest, TagsApiListHostTagsRequest, TagsApiUpdateHostTagsRequest, - TagsApi, + TagsApi } from "./apis/TagsApi"; + export { UsageMeteringApiGetDailyCustomReportsRequest, UsageMeteringApiGetHourlyUsageAttributionRequest, @@ -309,17 +343,19 @@ export { UsageMeteringApiGetUsageSyntheticsBrowserRequest, UsageMeteringApiGetUsageTimeseriesRequest, UsageMeteringApiGetUsageTopAvgMetricsRequest, - UsageMeteringApi, + UsageMeteringApi } from "./apis/UsageMeteringApi"; + export { UsersApiCreateUserRequest, UsersApiDisableUserRequest, UsersApiGetUserRequest, UsersApiUpdateUserRequest, - UsersApi, + UsersApi } from "./apis/UsersApi"; + export { WebhooksIntegrationApiCreateWebhooksIntegrationRequest, WebhooksIntegrationApiCreateWebhooksIntegrationCustomVariableRequest, @@ -329,7 +365,7 @@ export { WebhooksIntegrationApiGetWebhooksIntegrationCustomVariableRequest, WebhooksIntegrationApiUpdateWebhooksIntegrationRequest, WebhooksIntegrationApiUpdateWebhooksIntegrationCustomVariableRequest, - WebhooksIntegrationApi, + WebhooksIntegrationApi } from "./apis/WebhooksIntegrationApi"; export { AccessRole } from "./models/AccessRole"; diff --git a/packages/datadog-api-client-v1/models/APIErrorResponse.ts b/packages/datadog-api-client-v1/models/APIErrorResponse.ts index 454ecfbad648..8f762a0dff26 100644 --- a/packages/datadog-api-client-v1/models/APIErrorResponse.ts +++ b/packages/datadog-api-client-v1/models/APIErrorResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Error response object. - */ +*/ export class APIErrorResponse { /** * Array of errors returned by the API. - */ + */ "errors": Array; /** @@ -31,23 +36,49 @@ export class APIErrorResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIErrorResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSAccount.ts b/packages/datadog-api-client-v1/models/AWSAccount.ts index fae1547a3eef..dbf49d8daf18 100644 --- a/packages/datadog-api-client-v1/models/AWSAccount.ts +++ b/packages/datadog-api-client-v1/models/AWSAccount.ts @@ -4,38 +4,43 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Returns the AWS account associated with this integration. - */ +*/ export class AWSAccount { /** * Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. - */ + */ "accessKeyId"?: string; /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`), * that enables or disables metric collection for specific AWS namespaces for this * AWS account only. - */ - "accountSpecificNamespaceRules"?: { [key: string]: boolean }; + */ + "accountSpecificNamespaceRules"?: { [key: string]: boolean; }; /** * Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`. - */ + */ "cspmResourceCollectionEnabled"?: boolean; /** * An array of [AWS regions](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints) * to exclude from metrics collection. - */ + */ "excludedRegions"?: Array; /** * Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Required for `cspm_resource_collection`. - */ + */ "extendedResourceCollectionEnabled"?: boolean; /** * The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. @@ -44,28 +49,28 @@ export class AWSAccount { * will be imported into Datadog. The rest will be ignored. * Host matching a given tag can also be excluded by adding `!` before the tag. * For example, `env:production,instance-type:c1.*,!region:us-east-1` - */ + */ "filterTags"?: Array; /** * Array of tags (in the form `key:value`) to add to all hosts * and metrics reporting through this integration. - */ + */ "hostTags"?: Array; /** * Whether Datadog collects metrics for this AWS account. - */ + */ "metricsCollectionEnabled"?: boolean; /** * Deprecated in favor of 'extended_resource_collection_enabled'. Whether Datadog collects a standard set of resources from your AWS account. - */ + */ "resourceCollectionEnabled"?: boolean; /** * Your Datadog role delegation name. - */ + */ "roleName"?: string; /** * Your AWS secret access key. Only required if your AWS account is a GovCloud or China account. - */ + */ "secretAccessKey"?: string; /** @@ -84,66 +89,92 @@ export class AWSAccount { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessKeyId: { - baseName: "access_key_id", - type: "string", + "accessKeyId": { + "baseName": "access_key_id", + "type": "string", }, - accountId: { - baseName: "account_id", - type: "string", + "accountId": { + "baseName": "account_id", + "type": "string", }, - accountSpecificNamespaceRules: { - baseName: "account_specific_namespace_rules", - type: "{ [key: string]: boolean; }", + "accountSpecificNamespaceRules": { + "baseName": "account_specific_namespace_rules", + "type": "{ [key: string]: boolean; }", }, - cspmResourceCollectionEnabled: { - baseName: "cspm_resource_collection_enabled", - type: "boolean", + "cspmResourceCollectionEnabled": { + "baseName": "cspm_resource_collection_enabled", + "type": "boolean", }, - excludedRegions: { - baseName: "excluded_regions", - type: "Array", + "excludedRegions": { + "baseName": "excluded_regions", + "type": "Array", }, - extendedResourceCollectionEnabled: { - baseName: "extended_resource_collection_enabled", - type: "boolean", + "extendedResourceCollectionEnabled": { + "baseName": "extended_resource_collection_enabled", + "type": "boolean", }, - filterTags: { - baseName: "filter_tags", - type: "Array", + "filterTags": { + "baseName": "filter_tags", + "type": "Array", }, - hostTags: { - baseName: "host_tags", - type: "Array", + "hostTags": { + "baseName": "host_tags", + "type": "Array", }, - metricsCollectionEnabled: { - baseName: "metrics_collection_enabled", - type: "boolean", + "metricsCollectionEnabled": { + "baseName": "metrics_collection_enabled", + "type": "boolean", }, - resourceCollectionEnabled: { - baseName: "resource_collection_enabled", - type: "boolean", + "resourceCollectionEnabled": { + "baseName": "resource_collection_enabled", + "type": "boolean", }, - roleName: { - baseName: "role_name", - type: "string", + "roleName": { + "baseName": "role_name", + "type": "string", }, - secretAccessKey: { - baseName: "secret_access_key", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "secretAccessKey": { + "baseName": "secret_access_key", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccount.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSAccountAndLambdaRequest.ts b/packages/datadog-api-client-v1/models/AWSAccountAndLambdaRequest.ts index f7d70d0abf2e..a95d5023dc0d 100644 --- a/packages/datadog-api-client-v1/models/AWSAccountAndLambdaRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSAccountAndLambdaRequest.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS account ID and Lambda ARN. - */ +*/ export class AWSAccountAndLambdaRequest { /** * Your AWS Account ID without dashes. - */ + */ "accountId": string; /** * ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup. - */ + */ "lambdaArn": string; /** @@ -35,28 +40,54 @@ export class AWSAccountAndLambdaRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - lambdaArn: { - baseName: "lambda_arn", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lambdaArn": { + "baseName": "lambda_arn", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountAndLambdaRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSAccountCreateResponse.ts b/packages/datadog-api-client-v1/models/AWSAccountCreateResponse.ts index 13f2e820ae0d..b2a3e25cec9c 100644 --- a/packages/datadog-api-client-v1/models/AWSAccountCreateResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSAccountCreateResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Response returned by the AWS Create Account call. - */ +*/ export class AWSAccountCreateResponse { /** * AWS external_id. - */ + */ "externalId"?: string; /** @@ -31,22 +36,48 @@ export class AWSAccountCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - externalId: { - baseName: "external_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "externalId": { + "baseName": "external_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSAccountDeleteRequest.ts b/packages/datadog-api-client-v1/models/AWSAccountDeleteRequest.ts index 7e923a472220..4629869a2060 100644 --- a/packages/datadog-api-client-v1/models/AWSAccountDeleteRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSAccountDeleteRequest.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of AWS accounts to delete. - */ +*/ export class AWSAccountDeleteRequest { /** * Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. - */ + */ "accessKeyId"?: string; /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * Your Datadog role delegation name. - */ + */ "roleName"?: string; /** @@ -39,30 +44,56 @@ export class AWSAccountDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessKeyId: { - baseName: "access_key_id", - type: "string", - }, - accountId: { - baseName: "account_id", - type: "string", + "accessKeyId": { + "baseName": "access_key_id", + "type": "string", }, - roleName: { - baseName: "role_name", - type: "string", + "accountId": { + "baseName": "account_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "roleName": { + "baseName": "role_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSAccountListResponse.ts b/packages/datadog-api-client-v1/models/AWSAccountListResponse.ts index cb6f5af2c6a2..25707a980892 100644 --- a/packages/datadog-api-client-v1/models/AWSAccountListResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSAccountListResponse.ts @@ -5,15 +5,20 @@ */ import { AWSAccount } from "./AWSAccount"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of enabled AWS accounts. - */ +*/ export class AWSAccountListResponse { /** * List of enabled AWS accounts. - */ + */ "accounts"?: Array; /** @@ -32,22 +37,48 @@ export class AWSAccountListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accounts: { - baseName: "accounts", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "accounts": { + "baseName": "accounts", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeAccountConfiguration.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeAccountConfiguration.ts index 42056cad3cdb..b53a56554c65 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeAccountConfiguration.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeAccountConfiguration.ts @@ -5,24 +5,29 @@ */ import { AWSEventBridgeSource } from "./AWSEventBridgeSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The EventBridge configuration for one AWS account. - */ +*/ export class AWSEventBridgeAccountConfiguration { /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * Array of AWS event sources associated with this account. - */ + */ "eventHubs"?: Array; /** * Array of tags (in the form `key:value`) which are added to all hosts * and metrics reporting through the main AWS integration. - */ + */ "tags"?: Array; /** @@ -41,30 +46,56 @@ export class AWSEventBridgeAccountConfiguration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "accountId", - type: "string", - }, - eventHubs: { - baseName: "eventHubs", - type: "Array", + "accountId": { + "baseName": "accountId", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "eventHubs": { + "baseName": "eventHubs", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeAccountConfiguration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeCreateRequest.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeCreateRequest.ts index 0cfbe449099f..568ed5c7dab5 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeCreateRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeCreateRequest.ts @@ -4,29 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object used to create an EventBridge source. - */ +*/ export class AWSEventBridgeCreateRequest { /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * True if Datadog should create the event bus in addition to the event * source. Requires the `events:CreateEventBus` permission. - */ + */ "createEventBus"?: boolean; /** * The given part of the event source name, which is then combined with an * assigned suffix to form the full name. - */ + */ "eventGeneratorName"?: string; /** * The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). - */ + */ "region"?: string; /** @@ -45,34 +50,60 @@ export class AWSEventBridgeCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", + "accountId": { + "baseName": "account_id", + "type": "string", }, - createEventBus: { - baseName: "create_event_bus", - type: "boolean", + "createEventBus": { + "baseName": "create_event_bus", + "type": "boolean", }, - eventGeneratorName: { - baseName: "event_generator_name", - type: "string", + "eventGeneratorName": { + "baseName": "event_generator_name", + "type": "string", }, - region: { - baseName: "region", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeCreateResponse.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeCreateResponse.ts index 1df22dd8153c..202bbd6cb35c 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeCreateResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeCreateResponse.ts @@ -5,27 +5,32 @@ */ import { AWSEventBridgeCreateStatus } from "./AWSEventBridgeCreateStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A created EventBridge source. - */ +*/ export class AWSEventBridgeCreateResponse { /** * The event source name. - */ + */ "eventSourceName"?: string; /** * True if the event bus was created in addition to the source. - */ + */ "hasBus"?: boolean; /** * The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). - */ + */ "region"?: string; /** * The event source status "created". - */ + */ "status"?: AWSEventBridgeCreateStatus; /** @@ -44,34 +49,60 @@ export class AWSEventBridgeCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - eventSourceName: { - baseName: "event_source_name", - type: "string", + "eventSourceName": { + "baseName": "event_source_name", + "type": "string", }, - hasBus: { - baseName: "has_bus", - type: "boolean", + "hasBus": { + "baseName": "has_bus", + "type": "boolean", }, - region: { - baseName: "region", - type: "string", + "region": { + "baseName": "region", + "type": "string", }, - status: { - baseName: "status", - type: "AWSEventBridgeCreateStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "AWSEventBridgeCreateStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeCreateStatus.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeCreateStatus.ts index ce1e47b01708..2c2ba52b00fd 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeCreateStatus.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeCreateStatus.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The event source status "created". - */ +*/ export type AWSEventBridgeCreateStatus = typeof CREATED | UnparsedObject; -export const CREATED = "created"; +export const CREATED = 'created'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteRequest.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteRequest.ts index c8027fdff1df..38c84d9ae3ec 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteRequest.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object used to delete an EventBridge source. - */ +*/ export class AWSEventBridgeDeleteRequest { /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * The event source name. - */ + */ "eventGeneratorName"?: string; /** * The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). - */ + */ "region"?: string; /** @@ -39,30 +44,56 @@ export class AWSEventBridgeDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - }, - eventGeneratorName: { - baseName: "event_generator_name", - type: "string", + "accountId": { + "baseName": "account_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "eventGeneratorName": { + "baseName": "event_generator_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteResponse.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteResponse.ts index 85beefcc7989..b73180bf9827 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteResponse.ts @@ -5,15 +5,20 @@ */ import { AWSEventBridgeDeleteStatus } from "./AWSEventBridgeDeleteStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An indicator of the successful deletion of an EventBridge source. - */ +*/ export class AWSEventBridgeDeleteResponse { /** * The event source status "empty". - */ + */ "status"?: AWSEventBridgeDeleteStatus; /** @@ -32,22 +37,48 @@ export class AWSEventBridgeDeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - status: { - baseName: "status", - type: "AWSEventBridgeDeleteStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "AWSEventBridgeDeleteStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeDeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteStatus.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteStatus.ts index 705bba22a6c6..f4443dfa00dc 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteStatus.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeDeleteStatus.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The event source status "empty". - */ +*/ export type AWSEventBridgeDeleteStatus = typeof EMPTY | UnparsedObject; -export const EMPTY = "empty"; +export const EMPTY = 'empty'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeListResponse.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeListResponse.ts index 9b96ccb247dc..b5be4c102af6 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeListResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeListResponse.ts @@ -5,19 +5,24 @@ */ import { AWSEventBridgeAccountConfiguration } from "./AWSEventBridgeAccountConfiguration"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object describing the EventBridge configuration for multiple accounts. - */ +*/ export class AWSEventBridgeListResponse { /** * List of accounts with their event sources. - */ + */ "accounts"?: Array; /** * True if the EventBridge sub-integration is enabled for your organization. - */ + */ "isInstalled"?: boolean; /** @@ -36,26 +41,52 @@ export class AWSEventBridgeListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accounts: { - baseName: "accounts", - type: "Array", + "accounts": { + "baseName": "accounts", + "type": "Array", }, - isInstalled: { - baseName: "isInstalled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "isInstalled": { + "baseName": "isInstalled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSEventBridgeSource.ts b/packages/datadog-api-client-v1/models/AWSEventBridgeSource.ts index 8460ada4cb21..aa43b3d9e3cf 100644 --- a/packages/datadog-api-client-v1/models/AWSEventBridgeSource.ts +++ b/packages/datadog-api-client-v1/models/AWSEventBridgeSource.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An EventBridge source. - */ +*/ export class AWSEventBridgeSource { /** * The event source name. - */ + */ "name"?: string; /** * The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). - */ + */ "region"?: string; /** @@ -35,26 +40,52 @@ export class AWSEventBridgeSource { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - region: { - baseName: "region", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSEventBridgeSource.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSLogsAsyncError.ts b/packages/datadog-api-client-v1/models/AWSLogsAsyncError.ts index 838068196027..a021d116d356 100644 --- a/packages/datadog-api-client-v1/models/AWSLogsAsyncError.ts +++ b/packages/datadog-api-client-v1/models/AWSLogsAsyncError.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Description of errors. - */ +*/ export class AWSLogsAsyncError { /** * Code properties - */ + */ "code"?: string; /** * Message content. - */ + */ "message"?: string; /** @@ -35,26 +40,52 @@ export class AWSLogsAsyncError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsAsyncError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSLogsAsyncResponse.ts b/packages/datadog-api-client-v1/models/AWSLogsAsyncResponse.ts index 7b90b9d8bf17..a31c38c08881 100644 --- a/packages/datadog-api-client-v1/models/AWSLogsAsyncResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSLogsAsyncResponse.ts @@ -5,19 +5,24 @@ */ import { AWSLogsAsyncError } from "./AWSLogsAsyncError"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of all Datadog-AWS logs integrations available in your Datadog organization. - */ +*/ export class AWSLogsAsyncResponse { /** * List of errors. - */ + */ "errors"?: Array; /** * Status of the properties. - */ + */ "status"?: string; /** @@ -36,26 +41,52 @@ export class AWSLogsAsyncResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", + "errors": { + "baseName": "errors", + "type": "Array", }, - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsAsyncResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSLogsLambda.ts b/packages/datadog-api-client-v1/models/AWSLogsLambda.ts index 1a5b6fc69d9b..9d25e6688df6 100644 --- a/packages/datadog-api-client-v1/models/AWSLogsLambda.ts +++ b/packages/datadog-api-client-v1/models/AWSLogsLambda.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Description of the Lambdas. - */ +*/ export class AWSLogsLambda { /** * Available ARN IDs. - */ + */ "arn"?: string; /** @@ -31,22 +36,48 @@ export class AWSLogsLambda { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - arn: { - baseName: "arn", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "arn": { + "baseName": "arn", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsLambda.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSLogsListResponse.ts b/packages/datadog-api-client-v1/models/AWSLogsListResponse.ts index 6b70a80eeb62..c584a0b8f474 100644 --- a/packages/datadog-api-client-v1/models/AWSLogsListResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSLogsListResponse.ts @@ -5,23 +5,28 @@ */ import { AWSLogsLambda } from "./AWSLogsLambda"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of all Datadog-AWS logs integrations available in your Datadog organization. - */ +*/ export class AWSLogsListResponse { /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * List of ARNs configured in your Datadog account. - */ + */ "lambdas"?: Array; /** * Array of services IDs. - */ + */ "services"?: Array; /** @@ -40,30 +45,56 @@ export class AWSLogsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - }, - lambdas: { - baseName: "lambdas", - type: "Array", + "accountId": { + "baseName": "account_id", + "type": "string", }, - services: { - baseName: "services", - type: "Array", + "lambdas": { + "baseName": "lambdas", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "services": { + "baseName": "services", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSLogsListServicesResponse.ts b/packages/datadog-api-client-v1/models/AWSLogsListServicesResponse.ts index 3610015261ec..f2086c3511b1 100644 --- a/packages/datadog-api-client-v1/models/AWSLogsListServicesResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSLogsListServicesResponse.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The list of current AWS services for which Datadog offers automatic log collection. - */ +*/ export class AWSLogsListServicesResponse { /** * Key value in returned object. - */ + */ "id"?: string; /** * Name of service available for configuration with Datadog logs. - */ + */ "label"?: string; /** @@ -35,26 +40,52 @@ export class AWSLogsListServicesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - label: { - baseName: "label", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "label": { + "baseName": "label", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsListServicesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSLogsServicesRequest.ts b/packages/datadog-api-client-v1/models/AWSLogsServicesRequest.ts index 4f612b7b36f9..20719388c5e6 100644 --- a/packages/datadog-api-client-v1/models/AWSLogsServicesRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSLogsServicesRequest.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of current AWS services for which Datadog offers automatic log collection. - */ +*/ export class AWSLogsServicesRequest { /** * Your AWS Account ID without dashes. - */ + */ "accountId": string; /** * Array of services IDs set to enable automatic log collection. Discover the list of available services with the get list of AWS log ready services API endpoint. - */ + */ "services": Array; /** @@ -35,28 +40,54 @@ export class AWSLogsServicesRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - services: { - baseName: "services", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "services": { + "baseName": "services", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsServicesRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSNamespace.ts b/packages/datadog-api-client-v1/models/AWSNamespace.ts index b0be3a5d7401..123774e5d524 100644 --- a/packages/datadog-api-client-v1/models/AWSNamespace.ts +++ b/packages/datadog-api-client-v1/models/AWSNamespace.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The namespace associated with the tag filter entry. - */ +*/ -export type AWSNamespace = - | typeof ELB - | typeof APPLICATION_ELB - | typeof SQS - | typeof RDS - | typeof CUSTOM - | typeof NETWORK_ELB - | typeof LAMBDA - | typeof STEP_FUNCTIONS - | UnparsedObject; -export const ELB = "elb"; -export const APPLICATION_ELB = "application_elb"; -export const SQS = "sqs"; -export const RDS = "rds"; -export const CUSTOM = "custom"; -export const NETWORK_ELB = "network_elb"; -export const LAMBDA = "lambda"; -export const STEP_FUNCTIONS = "step_functions"; +export type AWSNamespace = typeof ELB| typeof APPLICATION_ELB| typeof SQS| typeof RDS| typeof CUSTOM| typeof NETWORK_ELB| typeof LAMBDA| typeof STEP_FUNCTIONS | UnparsedObject; +export const ELB = 'elb'; +export const APPLICATION_ELB = 'application_elb'; +export const SQS = 'sqs'; +export const RDS = 'rds'; +export const CUSTOM = 'custom'; +export const NETWORK_ELB = 'network_elb'; +export const LAMBDA = 'lambda'; +export const STEP_FUNCTIONS = 'step_functions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/AWSTagFilter.ts b/packages/datadog-api-client-v1/models/AWSTagFilter.ts index 8f115de37542..a1b42a952984 100644 --- a/packages/datadog-api-client-v1/models/AWSTagFilter.ts +++ b/packages/datadog-api-client-v1/models/AWSTagFilter.ts @@ -5,19 +5,24 @@ */ import { AWSNamespace } from "./AWSNamespace"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A tag filter. - */ +*/ export class AWSTagFilter { /** * The namespace associated with the tag filter entry. - */ + */ "namespace"?: AWSNamespace; /** * The tag filter string. - */ + */ "tagFilterStr"?: string; /** @@ -36,26 +41,52 @@ export class AWSTagFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - namespace: { - baseName: "namespace", - type: "AWSNamespace", + "namespace": { + "baseName": "namespace", + "type": "AWSNamespace", }, - tagFilterStr: { - baseName: "tag_filter_str", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagFilterStr": { + "baseName": "tag_filter_str", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSTagFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSTagFilterCreateRequest.ts b/packages/datadog-api-client-v1/models/AWSTagFilterCreateRequest.ts index 14909ba73b89..6753580bd15c 100644 --- a/packages/datadog-api-client-v1/models/AWSTagFilterCreateRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSTagFilterCreateRequest.ts @@ -5,23 +5,28 @@ */ import { AWSNamespace } from "./AWSNamespace"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The objects used to set an AWS tag filter. - */ +*/ export class AWSTagFilterCreateRequest { /** * Your AWS Account ID without dashes. - */ + */ "accountId"?: string; /** * The namespace associated with the tag filter entry. - */ + */ "namespace"?: AWSNamespace; /** * The tag filter string. - */ + */ "tagFilterStr"?: string; /** @@ -40,30 +45,56 @@ export class AWSTagFilterCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - }, - namespace: { - baseName: "namespace", - type: "AWSNamespace", + "accountId": { + "baseName": "account_id", + "type": "string", }, - tagFilterStr: { - baseName: "tag_filter_str", - type: "string", + "namespace": { + "baseName": "namespace", + "type": "AWSNamespace", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagFilterStr": { + "baseName": "tag_filter_str", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSTagFilterCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSTagFilterDeleteRequest.ts b/packages/datadog-api-client-v1/models/AWSTagFilterDeleteRequest.ts index 18a9457b6e3c..d19ef011673f 100644 --- a/packages/datadog-api-client-v1/models/AWSTagFilterDeleteRequest.ts +++ b/packages/datadog-api-client-v1/models/AWSTagFilterDeleteRequest.ts @@ -5,19 +5,24 @@ */ import { AWSNamespace } from "./AWSNamespace"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The objects used to delete an AWS tag filter entry. - */ +*/ export class AWSTagFilterDeleteRequest { /** * The unique identifier of your AWS account. - */ + */ "accountId"?: string; /** * The namespace associated with the tag filter entry. - */ + */ "namespace"?: AWSNamespace; /** @@ -36,26 +41,52 @@ export class AWSTagFilterDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", + "accountId": { + "baseName": "account_id", + "type": "string", }, - namespace: { - baseName: "namespace", - type: "AWSNamespace", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "namespace": { + "baseName": "namespace", + "type": "AWSNamespace", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSTagFilterDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AWSTagFilterListResponse.ts b/packages/datadog-api-client-v1/models/AWSTagFilterListResponse.ts index e67bfdf40d28..e233bfcb41c6 100644 --- a/packages/datadog-api-client-v1/models/AWSTagFilterListResponse.ts +++ b/packages/datadog-api-client-v1/models/AWSTagFilterListResponse.ts @@ -5,15 +5,20 @@ */ import { AWSTagFilter } from "./AWSTagFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An array of tag filter rules by `namespace` and tag filter string. - */ +*/ export class AWSTagFilterListResponse { /** * An array of tag filters. - */ + */ "filters"?: Array; /** @@ -32,22 +37,48 @@ export class AWSTagFilterListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filters: { - baseName: "filters", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "filters": { + "baseName": "filters", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSTagFilterListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AccessRole.ts b/packages/datadog-api-client-v1/models/AccessRole.ts index d535ad8c718b..c74cd5f91baf 100644 --- a/packages/datadog-api-client-v1/models/AccessRole.ts +++ b/packages/datadog-api-client-v1/models/AccessRole.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). - */ +*/ -export type AccessRole = - | typeof STANDARD - | typeof ADMIN - | typeof READ_ONLY - | typeof ERROR - | UnparsedObject; -export const STANDARD = "st"; -export const ADMIN = "adm"; -export const READ_ONLY = "ro"; -export const ERROR = "ERROR"; +export type AccessRole = typeof STANDARD| typeof ADMIN| typeof READ_ONLY| typeof ERROR | UnparsedObject; +export const STANDARD = 'st'; +export const ADMIN = 'adm'; +export const READ_ONLY = 'ro'; +export const ERROR = 'ERROR'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/AddSignalToIncidentRequest.ts b/packages/datadog-api-client-v1/models/AddSignalToIncidentRequest.ts index b99eabce89e6..27a94b450e30 100644 --- a/packages/datadog-api-client-v1/models/AddSignalToIncidentRequest.ts +++ b/packages/datadog-api-client-v1/models/AddSignalToIncidentRequest.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing which incident to add the signal to. - */ +*/ export class AddSignalToIncidentRequest { /** * Whether to post the signal on the incident timeline. - */ + */ "addToSignalTimeline"?: boolean; /** * Public ID attribute of the incident to which the signal will be added. - */ + */ "incidentId": number; /** * Version of the updated signal. If server side version is higher, update will be rejected. - */ + */ "version"?: number; /** @@ -39,33 +44,59 @@ export class AddSignalToIncidentRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - addToSignalTimeline: { - baseName: "add_to_signal_timeline", - type: "boolean", - }, - incidentId: { - baseName: "incident_id", - type: "number", - required: true, - format: "int64", + "addToSignalTimeline": { + "baseName": "add_to_signal_timeline", + "type": "boolean", }, - version: { - baseName: "version", - type: "number", - format: "int64", + "incidentId": { + "baseName": "incident_id", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AddSignalToIncidentRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinition.ts b/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinition.ts index 27d894788a5b..dd913af26eec 100644 --- a/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinition.ts @@ -8,39 +8,44 @@ import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; import { WidgetVizType } from "./WidgetVizType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Alert graphs are timeseries graphs showing the current status of any monitor defined on your system. - */ +*/ export class AlertGraphWidgetDefinition { /** * ID of the alert to use in the widget. - */ + */ "alertId": string; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * The title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the alert graph widget. - */ + */ "type": AlertGraphWidgetDefinitionType; /** * Whether to display the Alert Graph as a timeseries or a top list. - */ + */ "vizType": WidgetVizType; /** @@ -59,49 +64,75 @@ export class AlertGraphWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alertId: { - baseName: "alert_id", - type: "string", - required: true, - }, - time: { - baseName: "time", - type: "WidgetTime", + "alertId": { + "baseName": "alert_id", + "type": "string", + "required": true, }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "AlertGraphWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - vizType: { - baseName: "viz_type", - type: "WidgetVizType", - required: true, + "type": { + "baseName": "type", + "type": "AlertGraphWidgetDefinitionType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vizType": { + "baseName": "viz_type", + "type": "WidgetVizType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AlertGraphWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinitionType.ts index b7b8a8b4ff04..11487e630ae5 100644 --- a/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/AlertGraphWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the alert graph widget. - */ +*/ -export type AlertGraphWidgetDefinitionType = - | typeof ALERT_GRAPH - | UnparsedObject; -export const ALERT_GRAPH = "alert_graph"; +export type AlertGraphWidgetDefinitionType = typeof ALERT_GRAPH | UnparsedObject; +export const ALERT_GRAPH = 'alert_graph'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/AlertValueWidgetDefinition.ts b/packages/datadog-api-client-v1/models/AlertValueWidgetDefinition.ts index 3ed34e27db18..44baf14a7e19 100644 --- a/packages/datadog-api-client-v1/models/AlertValueWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/AlertValueWidgetDefinition.ts @@ -6,43 +6,48 @@ import { AlertValueWidgetDefinitionType } from "./AlertValueWidgetDefinitionType"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Alert values are query values showing the current value of the metric in any monitor defined on your system. - */ +*/ export class AlertValueWidgetDefinition { /** * ID of the alert to use in the widget. - */ + */ "alertId": string; /** * Number of decimal to show. If not defined, will use the raw value. - */ + */ "precision"?: number; /** * How to align the text on the widget. - */ + */ "textAlign"?: WidgetTextAlign; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of value in the widget. - */ + */ "titleSize"?: string; /** * Type of the alert value widget. - */ + */ "type": AlertValueWidgetDefinitionType; /** * Unit to display with the value. - */ + */ "unit"?: string; /** @@ -61,53 +66,79 @@ export class AlertValueWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alertId: { - baseName: "alert_id", - type: "string", - required: true, + "alertId": { + "baseName": "alert_id", + "type": "string", + "required": true, }, - precision: { - baseName: "precision", - type: "number", - format: "int64", + "precision": { + "baseName": "precision", + "type": "number", + "format": "int64", }, - textAlign: { - baseName: "text_align", - type: "WidgetTextAlign", + "textAlign": { + "baseName": "text_align", + "type": "WidgetTextAlign", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "AlertValueWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "AlertValueWidgetDefinitionType", + "required": true, }, - unit: { - baseName: "unit", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AlertValueWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AlertValueWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/AlertValueWidgetDefinitionType.ts index 2854d048f9d0..bef00965247c 100644 --- a/packages/datadog-api-client-v1/models/AlertValueWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/AlertValueWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the alert value widget. - */ +*/ -export type AlertValueWidgetDefinitionType = - | typeof ALERT_VALUE - | UnparsedObject; -export const ALERT_VALUE = "alert_value"; +export type AlertValueWidgetDefinitionType = typeof ALERT_VALUE | UnparsedObject; +export const ALERT_VALUE = 'alert_value'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ApiKey.ts b/packages/datadog-api-client-v1/models/ApiKey.ts index 732746e5ad50..20f1ed7b401b 100644 --- a/packages/datadog-api-client-v1/models/ApiKey.ts +++ b/packages/datadog-api-client-v1/models/ApiKey.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog API key. - */ +*/ export class ApiKey { /** * Date of creation of the API key. - */ + */ "created"?: string; /** * Datadog user handle that created the API key. - */ + */ "createdBy"?: string; /** * API key. - */ + */ "key"?: string; /** * Name of your API key. - */ + */ "name"?: string; /** @@ -43,34 +48,60 @@ export class ApiKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "string", + "created": { + "baseName": "created", + "type": "string", }, - createdBy: { - baseName: "created_by", - type: "string", + "createdBy": { + "baseName": "created_by", + "type": "string", }, - key: { - baseName: "key", - type: "string", + "key": { + "baseName": "key", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApiKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApiKeyListResponse.ts b/packages/datadog-api-client-v1/models/ApiKeyListResponse.ts index c269659fb092..5590fdab522b 100644 --- a/packages/datadog-api-client-v1/models/ApiKeyListResponse.ts +++ b/packages/datadog-api-client-v1/models/ApiKeyListResponse.ts @@ -5,15 +5,20 @@ */ import { ApiKey } from "./ApiKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of API and application keys available for a given organization. - */ +*/ export class ApiKeyListResponse { /** * Array of API keys. - */ + */ "apiKeys"?: Array; /** @@ -32,22 +37,48 @@ export class ApiKeyListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKeys: { - baseName: "api_keys", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "apiKeys": { + "baseName": "api_keys", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApiKeyListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApiKeyResponse.ts b/packages/datadog-api-client-v1/models/ApiKeyResponse.ts index 3848317bd93c..91b61aaa94fd 100644 --- a/packages/datadog-api-client-v1/models/ApiKeyResponse.ts +++ b/packages/datadog-api-client-v1/models/ApiKeyResponse.ts @@ -5,15 +5,20 @@ */ import { ApiKey } from "./ApiKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An API key with its associated metadata. - */ +*/ export class ApiKeyResponse { /** * Datadog API key. - */ + */ "apiKey"?: ApiKey; /** @@ -32,22 +37,48 @@ export class ApiKeyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "ApiKey", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "apiKey": { + "baseName": "api_key", + "type": "ApiKey", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApiKeyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApmStatsQueryColumnType.ts b/packages/datadog-api-client-v1/models/ApmStatsQueryColumnType.ts index 4c6fc5213686..c35a10416c5e 100644 --- a/packages/datadog-api-client-v1/models/ApmStatsQueryColumnType.ts +++ b/packages/datadog-api-client-v1/models/ApmStatsQueryColumnType.ts @@ -6,27 +6,32 @@ import { TableWidgetCellDisplayMode } from "./TableWidgetCellDisplayMode"; import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Column properties. - */ +*/ export class ApmStatsQueryColumnType { /** * A user-assigned alias for the column. - */ + */ "alias"?: string; /** * Define a display mode for the table cell. - */ + */ "cellDisplayMode"?: TableWidgetCellDisplayMode; /** * Column name. - */ + */ "name": string; /** * Widget sorting methods. - */ + */ "order"?: WidgetSort; /** @@ -45,35 +50,61 @@ export class ApmStatsQueryColumnType { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alias: { - baseName: "alias", - type: "string", + "alias": { + "baseName": "alias", + "type": "string", }, - cellDisplayMode: { - baseName: "cell_display_mode", - type: "TableWidgetCellDisplayMode", + "cellDisplayMode": { + "baseName": "cell_display_mode", + "type": "TableWidgetCellDisplayMode", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - order: { - baseName: "order", - type: "WidgetSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "WidgetSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApmStatsQueryColumnType.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApmStatsQueryDefinition.ts b/packages/datadog-api-client-v1/models/ApmStatsQueryDefinition.ts index ef16bda8bf21..8182019521cf 100644 --- a/packages/datadog-api-client-v1/models/ApmStatsQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/ApmStatsQueryDefinition.ts @@ -6,39 +6,44 @@ import { ApmStatsQueryColumnType } from "./ApmStatsQueryColumnType"; import { ApmStatsQueryRowType } from "./ApmStatsQueryRowType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The APM stats query for table and distributions widgets. - */ +*/ export class ApmStatsQueryDefinition { /** * Column properties used by the front end for display. - */ + */ "columns"?: Array; /** * Environment name. - */ + */ "env": string; /** * Operation name associated with service. - */ + */ "name": string; /** * The organization's host group name and value. - */ + */ "primaryTag": string; /** * Resource name. - */ + */ "resource"?: string; /** * The level of detail for the request. - */ + */ "rowType": ApmStatsQueryRowType; /** * Service name. - */ + */ "service": string; /** @@ -57,51 +62,77 @@ export class ApmStatsQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - columns: { - baseName: "columns", - type: "Array", - }, - env: { - baseName: "env", - type: "string", - required: true, + "columns": { + "baseName": "columns", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, + "env": { + "baseName": "env", + "type": "string", + "required": true, }, - primaryTag: { - baseName: "primary_tag", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - resource: { - baseName: "resource", - type: "string", + "primaryTag": { + "baseName": "primary_tag", + "type": "string", + "required": true, }, - rowType: { - baseName: "row_type", - type: "ApmStatsQueryRowType", - required: true, + "resource": { + "baseName": "resource", + "type": "string", }, - service: { - baseName: "service", - type: "string", - required: true, + "rowType": { + "baseName": "row_type", + "type": "ApmStatsQueryRowType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApmStatsQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApmStatsQueryRowType.ts b/packages/datadog-api-client-v1/models/ApmStatsQueryRowType.ts index ea0cb036b390..c74562b5fe0d 100644 --- a/packages/datadog-api-client-v1/models/ApmStatsQueryRowType.ts +++ b/packages/datadog-api-client-v1/models/ApmStatsQueryRowType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The level of detail for the request. - */ +*/ -export type ApmStatsQueryRowType = - | typeof SERVICE - | typeof RESOURCE - | typeof SPAN - | UnparsedObject; -export const SERVICE = "service"; -export const RESOURCE = "resource"; -export const SPAN = "span"; +export type ApmStatsQueryRowType = typeof SERVICE| typeof RESOURCE| typeof SPAN | UnparsedObject; +export const SERVICE = 'service'; +export const RESOURCE = 'resource'; +export const SPAN = 'span'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ApplicationKey.ts b/packages/datadog-api-client-v1/models/ApplicationKey.ts index df4429747cad..11bb1d671bf8 100644 --- a/packages/datadog-api-client-v1/models/ApplicationKey.ts +++ b/packages/datadog-api-client-v1/models/ApplicationKey.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An application key with its associated metadata. - */ +*/ export class ApplicationKey { /** * Hash of an application key. - */ + */ "hash"?: string; /** * Name of an application key. - */ + */ "name"?: string; /** * Owner of an application key. - */ + */ "owner"?: string; /** @@ -39,30 +44,56 @@ export class ApplicationKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hash: { - baseName: "hash", - type: "string", - }, - name: { - baseName: "name", - type: "string", + "hash": { + "baseName": "hash", + "type": "string", }, - owner: { - baseName: "owner", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "owner": { + "baseName": "owner", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApplicationKeyListResponse.ts b/packages/datadog-api-client-v1/models/ApplicationKeyListResponse.ts index 8074e88e68bf..8cec9dd5ffb9 100644 --- a/packages/datadog-api-client-v1/models/ApplicationKeyListResponse.ts +++ b/packages/datadog-api-client-v1/models/ApplicationKeyListResponse.ts @@ -5,15 +5,20 @@ */ import { ApplicationKey } from "./ApplicationKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An application key response. - */ +*/ export class ApplicationKeyListResponse { /** * Array of application keys. - */ + */ "applicationKeys"?: Array; /** @@ -32,22 +37,48 @@ export class ApplicationKeyListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - applicationKeys: { - baseName: "application_keys", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "applicationKeys": { + "baseName": "application_keys", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ApplicationKeyResponse.ts b/packages/datadog-api-client-v1/models/ApplicationKeyResponse.ts index 15989de08463..74566687d58b 100644 --- a/packages/datadog-api-client-v1/models/ApplicationKeyResponse.ts +++ b/packages/datadog-api-client-v1/models/ApplicationKeyResponse.ts @@ -5,15 +5,20 @@ */ import { ApplicationKey } from "./ApplicationKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An application key response. - */ +*/ export class ApplicationKeyResponse { /** * An application key with its associated metadata. - */ + */ "applicationKey"?: ApplicationKey; /** @@ -32,22 +37,48 @@ export class ApplicationKeyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - applicationKey: { - baseName: "application_key", - type: "ApplicationKey", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "applicationKey": { + "baseName": "application_key", + "type": "ApplicationKey", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AuthenticationValidationResponse.ts b/packages/datadog-api-client-v1/models/AuthenticationValidationResponse.ts index 6200c52adb5f..9358e5fb33aa 100644 --- a/packages/datadog-api-client-v1/models/AuthenticationValidationResponse.ts +++ b/packages/datadog-api-client-v1/models/AuthenticationValidationResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Represent validation endpoint responses. - */ +*/ export class AuthenticationValidationResponse { /** * Return `true` if the authentication response is valid. - */ + */ "valid"?: boolean; /** @@ -31,22 +36,48 @@ export class AuthenticationValidationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - valid: { - baseName: "valid", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "valid": { + "baseName": "valid", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthenticationValidationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/AzureAccount.ts b/packages/datadog-api-client-v1/models/AzureAccount.ts index 6bf5c2dd4114..0de8c4dbfd7e 100644 --- a/packages/datadog-api-client-v1/models/AzureAccount.ts +++ b/packages/datadog-api-client-v1/models/AzureAccount.ts @@ -5,83 +5,88 @@ */ import { ResourceProviderConfig } from "./ResourceProviderConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog-Azure integrations configured for your organization. - */ +*/ export class AzureAccount { /** * Limit the Azure app service plans that are pulled into Datadog using tags. * Only app service plans that match one of the defined tags are imported into Datadog. - */ + */ "appServicePlanFilters"?: string; /** * Silence monitors for expected Azure VM shutdowns. - */ + */ "automute"?: boolean; /** * Your Azure web application ID. - */ + */ "clientId"?: string; /** * Your Azure web application secret key. - */ + */ "clientSecret"?: string; /** * Limit the Azure container apps that are pulled into Datadog using tags. * Only container apps that match one of the defined tags are imported into Datadog. - */ + */ "containerAppFilters"?: string; /** * When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. * Note: This requires resource_collection_enabled to be set to true. - */ + */ "cspmEnabled"?: boolean; /** * Enable custom metrics for your organization. - */ + */ "customMetricsEnabled"?: boolean; /** * Errors in your configuration. - */ + */ "errors"?: Array; /** * Limit the Azure instances that are pulled into Datadog by using tags. * Only hosts that match one of the defined tags are imported into Datadog. - */ + */ "hostFilters"?: string; /** * Enable Azure metrics for your organization. - */ + */ "metricsEnabled"?: boolean; /** * Enable Azure metrics for your organization for resource providers where no resource provider config is specified. - */ + */ "metricsEnabledDefault"?: boolean; /** * Your New Azure web application ID. - */ + */ "newClientId"?: string; /** * Your New Azure Active Directory ID. - */ + */ "newTenantName"?: string; /** * When enabled, Datadog collects metadata and configuration info from cloud resources (compute instances, databases, load balancers, etc.) monitored by this app registration. - */ + */ "resourceCollectionEnabled"?: boolean; /** * Configuration settings applied to resources from the specified Azure resource providers. - */ + */ "resourceProviderConfigs"?: Array; /** * Your Azure Active Directory ID. - */ + */ "tenantName"?: string; /** * Enable azure.usage metrics for your organization. - */ + */ "usageMetricsEnabled"?: boolean; /** @@ -100,86 +105,112 @@ export class AzureAccount { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - appServicePlanFilters: { - baseName: "app_service_plan_filters", - type: "string", - }, - automute: { - baseName: "automute", - type: "boolean", - }, - clientId: { - baseName: "client_id", - type: "string", - }, - clientSecret: { - baseName: "client_secret", - type: "string", - }, - containerAppFilters: { - baseName: "container_app_filters", - type: "string", - }, - cspmEnabled: { - baseName: "cspm_enabled", - type: "boolean", - }, - customMetricsEnabled: { - baseName: "custom_metrics_enabled", - type: "boolean", - }, - errors: { - baseName: "errors", - type: "Array", - }, - hostFilters: { - baseName: "host_filters", - type: "string", - }, - metricsEnabled: { - baseName: "metrics_enabled", - type: "boolean", - }, - metricsEnabledDefault: { - baseName: "metrics_enabled_default", - type: "boolean", - }, - newClientId: { - baseName: "new_client_id", - type: "string", - }, - newTenantName: { - baseName: "new_tenant_name", - type: "string", - }, - resourceCollectionEnabled: { - baseName: "resource_collection_enabled", - type: "boolean", - }, - resourceProviderConfigs: { - baseName: "resource_provider_configs", - type: "Array", - }, - tenantName: { - baseName: "tenant_name", - type: "string", - }, - usageMetricsEnabled: { - baseName: "usage_metrics_enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "appServicePlanFilters": { + "baseName": "app_service_plan_filters", + "type": "string", + }, + "automute": { + "baseName": "automute", + "type": "boolean", + }, + "clientId": { + "baseName": "client_id", + "type": "string", + }, + "clientSecret": { + "baseName": "client_secret", + "type": "string", + }, + "containerAppFilters": { + "baseName": "container_app_filters", + "type": "string", + }, + "cspmEnabled": { + "baseName": "cspm_enabled", + "type": "boolean", + }, + "customMetricsEnabled": { + "baseName": "custom_metrics_enabled", + "type": "boolean", + }, + "errors": { + "baseName": "errors", + "type": "Array", + }, + "hostFilters": { + "baseName": "host_filters", + "type": "string", + }, + "metricsEnabled": { + "baseName": "metrics_enabled", + "type": "boolean", + }, + "metricsEnabledDefault": { + "baseName": "metrics_enabled_default", + "type": "boolean", + }, + "newClientId": { + "baseName": "new_client_id", + "type": "string", + }, + "newTenantName": { + "baseName": "new_tenant_name", + "type": "string", + }, + "resourceCollectionEnabled": { + "baseName": "resource_collection_enabled", + "type": "boolean", + }, + "resourceProviderConfigs": { + "baseName": "resource_provider_configs", + "type": "Array", + }, + "tenantName": { + "baseName": "tenant_name", + "type": "string", + }, + "usageMetricsEnabled": { + "baseName": "usage_metrics_enabled", + "type": "boolean", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureAccount.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.ts b/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.ts index f8e63b1e02c2..267e6dddc770 100644 --- a/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.ts +++ b/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.ts @@ -4,17 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cancel downtimes according to scope. - */ +*/ export class CancelDowntimesByScopeRequest { /** * The scope(s) to which the downtime applies and must be in `key:value` format. For example, `host:app2`. * Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. * The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). - */ + */ "scope": string; /** @@ -33,23 +38,49 @@ export class CancelDowntimesByScopeRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - scope: { - baseName: "scope", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scope": { + "baseName": "scope", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CancelDowntimesByScopeRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CanceledDowntimesIds.ts b/packages/datadog-api-client-v1/models/CanceledDowntimesIds.ts index 1e12be1069e2..b0b68502cdbd 100644 --- a/packages/datadog-api-client-v1/models/CanceledDowntimesIds.ts +++ b/packages/datadog-api-client-v1/models/CanceledDowntimesIds.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing array of IDs of canceled downtimes. - */ +*/ export class CanceledDowntimesIds { /** * ID of downtimes that were canceled. - */ + */ "cancelledIds"?: Array; /** @@ -31,23 +36,49 @@ export class CanceledDowntimesIds { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cancelledIds: { - baseName: "cancelled_ids", - type: "Array", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "cancelledIds": { + "baseName": "cancelled_ids", + "type": "Array", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CanceledDowntimesIds.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ChangeWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ChangeWidgetDefinition.ts index 0b6b950d90f7..c34cdf4f6006 100644 --- a/packages/datadog-api-client-v1/models/ChangeWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ChangeWidgetDefinition.ts @@ -9,42 +9,47 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Change graph shows you the change in a value over the time period chosen. - */ +*/ export class ChangeWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Array of one request object to display in the widget. - * + * * See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) * to learn how to build the `REQUEST_SCHEMA`. - */ + */ "requests": [ChangeWidgetRequest]; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the change widget. - */ + */ "type": ChangeWidgetDefinitionType; /** @@ -63,48 +68,74 @@ export class ChangeWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", - }, - requests: { - baseName: "requests", - type: "[ChangeWidgetRequest]", - required: true, + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - time: { - baseName: "time", - type: "WidgetTime", + "requests": { + "baseName": "requests", + "type": "[ChangeWidgetRequest]", + "required": true, }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "ChangeWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ChangeWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ChangeWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ChangeWidgetDefinitionType.ts index 21c6a922008c..1456b8fc64d3 100644 --- a/packages/datadog-api-client-v1/models/ChangeWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ChangeWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the change widget. - */ +*/ export type ChangeWidgetDefinitionType = typeof CHANGE | UnparsedObject; -export const CHANGE = "change"; +export const CHANGE = 'change'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ChangeWidgetRequest.ts b/packages/datadog-api-client-v1/models/ChangeWidgetRequest.ts index 368da5d7e89f..110a262c764f 100644 --- a/packages/datadog-api-client-v1/models/ChangeWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/ChangeWidgetRequest.ts @@ -13,83 +13,88 @@ import { WidgetFormula } from "./WidgetFormula"; import { WidgetOrderBy } from "./WidgetOrderBy"; import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated change widget. - */ +*/ export class ChangeWidgetRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * Show the absolute or the relative change. - */ + */ "changeType"?: WidgetChangeType; /** * Timeframe used for the change comparison. - */ + */ "compareTo"?: WidgetCompareTo; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * Whether to show increase as good. - */ + */ "increaseGood"?: boolean; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * What to order by. - */ + */ "orderBy"?: WidgetOrderBy; /** * Widget sorting methods. - */ + */ "orderDir"?: WidgetSort; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Query definition. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * Whether to show the present value. - */ + */ "showPresent"?: boolean; /** @@ -108,90 +113,116 @@ export class ChangeWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", - }, - changeType: { - baseName: "change_type", - type: "WidgetChangeType", - }, - compareTo: { - baseName: "compare_to", - type: "WidgetCompareTo", - }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", - }, - formulas: { - baseName: "formulas", - type: "Array", - }, - increaseGood: { - baseName: "increase_good", - type: "boolean", - }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", - }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", - }, - orderBy: { - baseName: "order_by", - type: "WidgetOrderBy", - }, - orderDir: { - baseName: "order_dir", - type: "WidgetSort", - }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", - }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", - }, - q: { - baseName: "q", - type: "string", - }, - queries: { - baseName: "queries", - type: "Array", - }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", - }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", - }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", - }, - showPresent: { - baseName: "show_present", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", + }, + "changeType": { + "baseName": "change_type", + "type": "WidgetChangeType", + }, + "compareTo": { + "baseName": "compare_to", + "type": "WidgetCompareTo", + }, + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", + }, + "formulas": { + "baseName": "formulas", + "type": "Array", + }, + "increaseGood": { + "baseName": "increase_good", + "type": "boolean", + }, + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", + }, + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", + }, + "orderBy": { + "baseName": "order_by", + "type": "WidgetOrderBy", + }, + "orderDir": { + "baseName": "order_dir", + "type": "WidgetSort", + }, + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", + }, + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", + }, + "q": { + "baseName": "q", + "type": "string", + }, + "queries": { + "baseName": "queries", + "type": "Array", + }, + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", + }, + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", + }, + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", + }, + "showPresent": { + "baseName": "show_present", + "type": "boolean", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponse.ts b/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponse.ts index 8482c21557db..9aa23abea7ab 100644 --- a/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponse.ts +++ b/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponse.ts @@ -5,20 +5,25 @@ */ import { CheckCanDeleteMonitorResponseData } from "./CheckCanDeleteMonitorResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response of monitor IDs that can or can't be safely deleted. - */ +*/ export class CheckCanDeleteMonitorResponse { /** * Wrapper object with the list of monitor IDs. - */ + */ "data": CheckCanDeleteMonitorResponseData; /** * A mapping of Monitor ID to strings denoting where it's used. - */ - "errors"?: { [key: string]: Array }; + */ + "errors"?: { [key: string]: Array; }; /** * A container for additional, undeclared properties. @@ -36,27 +41,53 @@ export class CheckCanDeleteMonitorResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CheckCanDeleteMonitorResponseData", - required: true, + "data": { + "baseName": "data", + "type": "CheckCanDeleteMonitorResponseData", + "required": true, }, - errors: { - baseName: "errors", - type: "{ [key: string]: Array; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "{ [key: string]: Array; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CheckCanDeleteMonitorResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponseData.ts b/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponseData.ts index 7a56639ddb63..03e8765a50bd 100644 --- a/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponseData.ts +++ b/packages/datadog-api-client-v1/models/CheckCanDeleteMonitorResponseData.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper object with the list of monitor IDs. - */ +*/ export class CheckCanDeleteMonitorResponseData { /** * An array of Monitor IDs that can be safely deleted. - */ + */ "ok"?: Array; /** @@ -31,23 +36,49 @@ export class CheckCanDeleteMonitorResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ok: { - baseName: "ok", - type: "Array", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ok": { + "baseName": "ok", + "type": "Array", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CheckCanDeleteMonitorResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponse.ts b/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponse.ts index b1382dfeff2e..10a908e4cdd5 100644 --- a/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponse.ts +++ b/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponse.ts @@ -5,20 +5,25 @@ */ import { CheckCanDeleteSLOResponseData } from "./CheckCanDeleteSLOResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective response containing the requested object. - */ +*/ export class CheckCanDeleteSLOResponse { /** * An array of service level objective objects. - */ + */ "data"?: CheckCanDeleteSLOResponseData; /** * A mapping of SLO id to it's current usages. - */ - "errors"?: { [key: string]: string }; + */ + "errors"?: { [key: string]: string; }; /** * A container for additional, undeclared properties. @@ -36,26 +41,52 @@ export class CheckCanDeleteSLOResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CheckCanDeleteSLOResponseData", + "data": { + "baseName": "data", + "type": "CheckCanDeleteSLOResponseData", }, - errors: { - baseName: "errors", - type: "{ [key: string]: string; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "{ [key: string]: string; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CheckCanDeleteSLOResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponseData.ts b/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponseData.ts index bfcd5c811317..eed8145667de 100644 --- a/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponseData.ts +++ b/packages/datadog-api-client-v1/models/CheckCanDeleteSLOResponseData.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An array of service level objective objects. - */ +*/ export class CheckCanDeleteSLOResponseData { /** * An array of SLO IDs that can be safely deleted. - */ + */ "ok"?: Array; /** @@ -31,22 +36,48 @@ export class CheckCanDeleteSLOResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ok: { - baseName: "ok", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ok": { + "baseName": "ok", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CheckCanDeleteSLOResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinition.ts b/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinition.ts index 837e49fd4a38..904d2a7cae26 100644 --- a/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinition.ts @@ -8,51 +8,56 @@ import { WidgetGrouping } from "./WidgetGrouping"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Check status shows the current status or number of results for any check performed. - */ +*/ export class CheckStatusWidgetDefinition { /** * Name of the check to use in the widget. - */ + */ "check": string; /** * Group reporting a single check. - */ + */ "group"?: string; /** * List of tag prefixes to group by in the case of a cluster check. - */ + */ "groupBy"?: Array; /** * The kind of grouping to use. - */ + */ "grouping": WidgetGrouping; /** * List of tags used to filter the groups reporting a cluster check. - */ + */ "tags"?: Array; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the check status widget. - */ + */ "type": CheckStatusWidgetDefinitionType; /** @@ -71,61 +76,87 @@ export class CheckStatusWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - check: { - baseName: "check", - type: "string", - required: true, - }, - group: { - baseName: "group", - type: "string", + "check": { + "baseName": "check", + "type": "string", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "group": { + "baseName": "group", + "type": "string", }, - grouping: { - baseName: "grouping", - type: "WidgetGrouping", - required: true, + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "grouping": { + "baseName": "grouping", + "type": "WidgetGrouping", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "tags": { + "baseName": "tags", + "type": "Array", }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "CheckStatusWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CheckStatusWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CheckStatusWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinitionType.ts index 5784a7755c51..ca20852a52a3 100644 --- a/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/CheckStatusWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the check status widget. - */ +*/ -export type CheckStatusWidgetDefinitionType = - | typeof CHECK_STATUS - | UnparsedObject; -export const CHECK_STATUS = "check_status"; +export type CheckStatusWidgetDefinitionType = typeof CHECK_STATUS | UnparsedObject; +export const CHECK_STATUS = 'check_status'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ContentEncoding.ts b/packages/datadog-api-client-v1/models/ContentEncoding.ts index 37226a644092..4fe1f02ef578 100644 --- a/packages/datadog-api-client-v1/models/ContentEncoding.ts +++ b/packages/datadog-api-client-v1/models/ContentEncoding.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * HTTP header used to compress the media-type. - */ +*/ -export type ContentEncoding = typeof GZIP | typeof DEFLATE | UnparsedObject; -export const GZIP = "gzip"; -export const DEFLATE = "deflate"; +export type ContentEncoding = typeof GZIP| typeof DEFLATE | UnparsedObject; +export const GZIP = 'gzip'; +export const DEFLATE = 'deflate'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/Creator.ts b/packages/datadog-api-client-v1/models/Creator.ts index 43ecd8dec43f..42e7b44310a5 100644 --- a/packages/datadog-api-client-v1/models/Creator.ts +++ b/packages/datadog-api-client-v1/models/Creator.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the creator of the shared element. - */ +*/ export class Creator { /** * Email of the creator. - */ + */ "email"?: string; /** * Handle of the creator. - */ + */ "handle"?: string; /** * Name of the creator. - */ + */ "name"?: string; /** @@ -39,30 +44,56 @@ export class Creator { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - }, - handle: { - baseName: "handle", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Creator.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Dashboard.ts b/packages/datadog-api-client-v1/models/Dashboard.ts index 4546a9a9e708..cd41a3de46e0 100644 --- a/packages/datadog-api-client-v1/models/Dashboard.ts +++ b/packages/datadog-api-client-v1/models/Dashboard.ts @@ -9,84 +9,89 @@ import { DashboardTemplateVariable } from "./DashboardTemplateVariable"; import { DashboardTemplateVariablePreset } from "./DashboardTemplateVariablePreset"; import { Widget } from "./Widget"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A dashboard is Datadog’s tool for visually tracking, analyzing, and displaying * key performance metrics, which enable you to monitor the health of your infrastructure. - */ +*/ export class Dashboard { /** * Identifier of the dashboard author. - */ + */ "authorHandle"?: string; /** * Name of the dashboard author. - */ + */ "authorName"?: string; /** * Creation date of the dashboard. - */ + */ "createdAt"?: Date; /** * Description of the dashboard. - */ + */ "description"?: string; /** * ID of the dashboard. - */ + */ "id"?: string; /** * Whether this dashboard is read-only. If True, only the author and admins can make changes to it. - * + * * This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) instead to manage write authorization for individual dashboards. - */ + */ "isReadOnly"?: boolean; /** * Layout type of the dashboard. - */ + */ "layoutType": DashboardLayoutType; /** * Modification date of the dashboard. - */ + */ "modifiedAt"?: Date; /** * List of handles of users to notify when changes are made to this dashboard. - */ + */ "notifyList"?: Array; /** * Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. * If set to 'fixed', the dashboard expects all widgets to have a layout, and if it's set to 'auto', * widgets should not have layouts. - */ + */ "reflowType"?: DashboardReflowType; /** * A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. - */ + */ "restrictedRoles"?: Array; /** * List of team names representing ownership of a dashboard. - */ + */ "tags"?: Array; /** * Array of template variables saved views. - */ + */ "templateVariablePresets"?: Array; /** * List of template variables for this dashboard. - */ + */ "templateVariables"?: Array; /** * Title of the dashboard. - */ + */ "title": string; /** * The URL of the dashboard. - */ + */ "url"?: string; /** * List of widgets to display on the dashboard. - */ + */ "widgets": Array; /** @@ -105,91 +110,117 @@ export class Dashboard { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - authorHandle: { - baseName: "author_handle", - type: "string", - }, - authorName: { - baseName: "author_name", - type: "string", - }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", - }, - description: { - baseName: "description", - type: "string", - }, - id: { - baseName: "id", - type: "string", - }, - isReadOnly: { - baseName: "is_read_only", - type: "boolean", - }, - layoutType: { - baseName: "layout_type", - type: "DashboardLayoutType", - required: true, - }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", - }, - notifyList: { - baseName: "notify_list", - type: "Array", - }, - reflowType: { - baseName: "reflow_type", - type: "DashboardReflowType", - }, - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", - }, - tags: { - baseName: "tags", - type: "Array", - }, - templateVariablePresets: { - baseName: "template_variable_presets", - type: "Array", - }, - templateVariables: { - baseName: "template_variables", - type: "Array", - }, - title: { - baseName: "title", - type: "string", - required: true, - }, - url: { - baseName: "url", - type: "string", - }, - widgets: { - baseName: "widgets", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "authorHandle": { + "baseName": "author_handle", + "type": "string", + }, + "authorName": { + "baseName": "author_name", + "type": "string", + }, + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", + }, + "description": { + "baseName": "description", + "type": "string", + }, + "id": { + "baseName": "id", + "type": "string", + }, + "isReadOnly": { + "baseName": "is_read_only", + "type": "boolean", + }, + "layoutType": { + "baseName": "layout_type", + "type": "DashboardLayoutType", + "required": true, + }, + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", + }, + "notifyList": { + "baseName": "notify_list", + "type": "Array", + }, + "reflowType": { + "baseName": "reflow_type", + "type": "DashboardReflowType", + }, + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "templateVariablePresets": { + "baseName": "template_variable_presets", + "type": "Array", + }, + "templateVariables": { + "baseName": "template_variables", + "type": "Array", + }, + "title": { + "baseName": "title", + "type": "string", + "required": true, + }, + "url": { + "baseName": "url", + "type": "string", + }, + "widgets": { + "baseName": "widgets", + "type": "Array", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Dashboard.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardBulkActionData.ts b/packages/datadog-api-client-v1/models/DashboardBulkActionData.ts index c374715ae303..f32dd5490e9e 100644 --- a/packages/datadog-api-client-v1/models/DashboardBulkActionData.ts +++ b/packages/datadog-api-client-v1/models/DashboardBulkActionData.ts @@ -5,19 +5,24 @@ */ import { DashboardResourceType } from "./DashboardResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Dashboard bulk action request data. - */ +*/ export class DashboardBulkActionData { /** * Dashboard resource ID. - */ + */ "id": string; /** * Dashboard resource type. - */ + */ "type": DashboardResourceType; /** @@ -36,28 +41,54 @@ export class DashboardBulkActionData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "DashboardResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DashboardResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardBulkActionData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardBulkDeleteRequest.ts b/packages/datadog-api-client-v1/models/DashboardBulkDeleteRequest.ts index 625226965170..e3cebf7bbeb7 100644 --- a/packages/datadog-api-client-v1/models/DashboardBulkDeleteRequest.ts +++ b/packages/datadog-api-client-v1/models/DashboardBulkDeleteRequest.ts @@ -5,15 +5,20 @@ */ import { DashboardBulkActionData } from "./DashboardBulkActionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Dashboard bulk delete request body. - */ +*/ export class DashboardBulkDeleteRequest { /** * List of dashboard bulk action request data objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class DashboardBulkDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardBulkDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardDeleteResponse.ts b/packages/datadog-api-client-v1/models/DashboardDeleteResponse.ts index 50718f9ac370..f7e33cf402f5 100644 --- a/packages/datadog-api-client-v1/models/DashboardDeleteResponse.ts +++ b/packages/datadog-api-client-v1/models/DashboardDeleteResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response from the delete dashboard call. - */ +*/ export class DashboardDeleteResponse { /** * ID of the deleted dashboard. - */ + */ "deletedDashboardId"?: string; /** @@ -31,22 +36,48 @@ export class DashboardDeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedDashboardId: { - baseName: "deleted_dashboard_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deletedDashboardId": { + "baseName": "deleted_dashboard_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardDeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardGlobalTime.ts b/packages/datadog-api-client-v1/models/DashboardGlobalTime.ts index 6fe23e0c9c8f..8770998d6c34 100644 --- a/packages/datadog-api-client-v1/models/DashboardGlobalTime.ts +++ b/packages/datadog-api-client-v1/models/DashboardGlobalTime.ts @@ -5,15 +5,20 @@ */ import { DashboardGlobalTimeLiveSpan } from "./DashboardGlobalTimeLiveSpan"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the live span selection for the dashboard. - */ +*/ export class DashboardGlobalTime { /** * Dashboard global time live_span selection - */ + */ "liveSpan"?: DashboardGlobalTimeLiveSpan; /** @@ -32,22 +37,48 @@ export class DashboardGlobalTime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - liveSpan: { - baseName: "live_span", - type: "DashboardGlobalTimeLiveSpan", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "liveSpan": { + "baseName": "live_span", + "type": "DashboardGlobalTimeLiveSpan", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardGlobalTime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.ts b/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.ts index 4921ec1221d5..1a33d0df9a65 100644 --- a/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.ts +++ b/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Dashboard global time live_span selection - */ +*/ -export type DashboardGlobalTimeLiveSpan = - | typeof PAST_FIFTEEN_MINUTES - | typeof PAST_ONE_HOUR - | typeof PAST_FOUR_HOURS - | typeof PAST_ONE_DAY - | typeof PAST_TWO_DAYS - | typeof PAST_ONE_WEEK - | typeof PAST_ONE_MONTH - | typeof PAST_THREE_MONTHS - | UnparsedObject; -export const PAST_FIFTEEN_MINUTES = "15m"; -export const PAST_ONE_HOUR = "1h"; -export const PAST_FOUR_HOURS = "4h"; -export const PAST_ONE_DAY = "1d"; -export const PAST_TWO_DAYS = "2d"; -export const PAST_ONE_WEEK = "1w"; -export const PAST_ONE_MONTH = "1mo"; -export const PAST_THREE_MONTHS = "3mo"; +export type DashboardGlobalTimeLiveSpan = typeof PAST_FIFTEEN_MINUTES| typeof PAST_ONE_HOUR| typeof PAST_FOUR_HOURS| typeof PAST_ONE_DAY| typeof PAST_TWO_DAYS| typeof PAST_ONE_WEEK| typeof PAST_ONE_MONTH| typeof PAST_THREE_MONTHS | UnparsedObject; +export const PAST_FIFTEEN_MINUTES = '15m'; +export const PAST_ONE_HOUR = '1h'; +export const PAST_FOUR_HOURS = '4h'; +export const PAST_ONE_DAY = '1d'; +export const PAST_TWO_DAYS = '2d'; +export const PAST_ONE_WEEK = '1w'; +export const PAST_ONE_MONTH = '1mo'; +export const PAST_THREE_MONTHS = '3mo'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DashboardInviteType.ts b/packages/datadog-api-client-v1/models/DashboardInviteType.ts index 3886f9711158..daf308157a1d 100644 --- a/packages/datadog-api-client-v1/models/DashboardInviteType.ts +++ b/packages/datadog-api-client-v1/models/DashboardInviteType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type for shared dashboard invitation request body. - */ +*/ -export type DashboardInviteType = - | typeof PUBLIC_DASHBOARD_INVITATION - | UnparsedObject; -export const PUBLIC_DASHBOARD_INVITATION = "public_dashboard_invitation"; +export type DashboardInviteType = typeof PUBLIC_DASHBOARD_INVITATION | UnparsedObject; +export const PUBLIC_DASHBOARD_INVITATION = 'public_dashboard_invitation'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DashboardLayoutType.ts b/packages/datadog-api-client-v1/models/DashboardLayoutType.ts index 794ea362ae3a..94f053f11666 100644 --- a/packages/datadog-api-client-v1/models/DashboardLayoutType.ts +++ b/packages/datadog-api-client-v1/models/DashboardLayoutType.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Layout type of the dashboard. - */ +*/ -export type DashboardLayoutType = typeof ORDERED | typeof FREE | UnparsedObject; -export const ORDERED = "ordered"; -export const FREE = "free"; +export type DashboardLayoutType = typeof ORDERED| typeof FREE | UnparsedObject; +export const ORDERED = 'ordered'; +export const FREE = 'free'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DashboardList.ts b/packages/datadog-api-client-v1/models/DashboardList.ts index 879d7086cbbc..4d2d9ea8107d 100644 --- a/packages/datadog-api-client-v1/models/DashboardList.ts +++ b/packages/datadog-api-client-v1/models/DashboardList.ts @@ -5,43 +5,48 @@ */ import { Creator } from "./Creator"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Your Datadog Dashboards. - */ +*/ export class DashboardList { /** * Object describing the creator of the shared element. - */ + */ "author"?: Creator; /** * Date of creation of the dashboard list. - */ + */ "created"?: Date; /** * The number of dashboards in the list. - */ + */ "dashboardCount"?: number; /** * The ID of the dashboard list. - */ + */ "id"?: number; /** * Whether or not the list is in the favorites. - */ + */ "isFavorite"?: boolean; /** * Date of last edition of the dashboard list. - */ + */ "modified"?: Date; /** * The name of the dashboard list. - */ + */ "name": string; /** * The type of dashboard list. - */ + */ "type"?: string; /** @@ -60,55 +65,81 @@ export class DashboardList { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "Creator", + "author": { + "baseName": "author", + "type": "Creator", }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - dashboardCount: { - baseName: "dashboard_count", - type: "number", - format: "int64", + "dashboardCount": { + "baseName": "dashboard_count", + "type": "number", + "format": "int64", }, - id: { - baseName: "id", - type: "number", - format: "int64", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - isFavorite: { - baseName: "is_favorite", - type: "boolean", + "isFavorite": { + "baseName": "is_favorite", + "type": "boolean", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardList.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardListDeleteResponse.ts b/packages/datadog-api-client-v1/models/DashboardListDeleteResponse.ts index ac1b49bcd42e..f5dec2153d87 100644 --- a/packages/datadog-api-client-v1/models/DashboardListDeleteResponse.ts +++ b/packages/datadog-api-client-v1/models/DashboardListDeleteResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Deleted dashboard details. - */ +*/ export class DashboardListDeleteResponse { /** * ID of the deleted dashboard list. - */ + */ "deletedDashboardListId"?: number; /** @@ -31,23 +36,49 @@ export class DashboardListDeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedDashboardListId: { - baseName: "deleted_dashboard_list_id", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deletedDashboardListId": { + "baseName": "deleted_dashboard_list_id", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListDeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardListListResponse.ts b/packages/datadog-api-client-v1/models/DashboardListListResponse.ts index 9839d90513a1..5ba131f4cd78 100644 --- a/packages/datadog-api-client-v1/models/DashboardListListResponse.ts +++ b/packages/datadog-api-client-v1/models/DashboardListListResponse.ts @@ -5,15 +5,20 @@ */ import { DashboardList } from "./DashboardList"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information on your dashboard lists. - */ +*/ export class DashboardListListResponse { /** * List of all your dashboard lists. - */ + */ "dashboardLists"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboardLists: { - baseName: "dashboard_lists", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "dashboardLists": { + "baseName": "dashboard_lists", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardReflowType.ts b/packages/datadog-api-client-v1/models/DashboardReflowType.ts index 1424a2a0218f..0212febcd8a7 100644 --- a/packages/datadog-api-client-v1/models/DashboardReflowType.ts +++ b/packages/datadog-api-client-v1/models/DashboardReflowType.ts @@ -4,14 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. * If set to 'fixed', the dashboard expects all widgets to have a layout, and if it's set to 'auto', * widgets should not have layouts. - */ +*/ -export type DashboardReflowType = typeof AUTO | typeof FIXED | UnparsedObject; -export const AUTO = "auto"; -export const FIXED = "fixed"; +export type DashboardReflowType = typeof AUTO| typeof FIXED | UnparsedObject; +export const AUTO = 'auto'; +export const FIXED = 'fixed'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DashboardResourceType.ts b/packages/datadog-api-client-v1/models/DashboardResourceType.ts index 96da8bf93af8..5ca58247c99f 100644 --- a/packages/datadog-api-client-v1/models/DashboardResourceType.ts +++ b/packages/datadog-api-client-v1/models/DashboardResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Dashboard resource type. - */ +*/ export type DashboardResourceType = typeof DASHBOARD | UnparsedObject; -export const DASHBOARD = "dashboard"; +export const DASHBOARD = 'dashboard'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DashboardRestoreRequest.ts b/packages/datadog-api-client-v1/models/DashboardRestoreRequest.ts index f0fe997449b3..60ae475bba53 100644 --- a/packages/datadog-api-client-v1/models/DashboardRestoreRequest.ts +++ b/packages/datadog-api-client-v1/models/DashboardRestoreRequest.ts @@ -5,15 +5,20 @@ */ import { DashboardBulkActionData } from "./DashboardBulkActionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Dashboard restore request body. - */ +*/ export class DashboardRestoreRequest { /** * List of dashboard bulk action request data objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class DashboardRestoreRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardRestoreRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardShareType.ts b/packages/datadog-api-client-v1/models/DashboardShareType.ts index 0f0c337319a9..6ac348405a1e 100644 --- a/packages/datadog-api-client-v1/models/DashboardShareType.ts +++ b/packages/datadog-api-client-v1/models/DashboardShareType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of sharing access (either open to anyone who has the public URL or invite-only). - */ +*/ -export type DashboardShareType = - | typeof OPEN - | typeof INVITE - | typeof EMBED - | UnparsedObject; -export const OPEN = "open"; -export const INVITE = "invite"; -export const EMBED = "embed"; +export type DashboardShareType = typeof OPEN| typeof INVITE| typeof EMBED | UnparsedObject; +export const OPEN = 'open'; +export const INVITE = 'invite'; +export const EMBED = 'embed'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DashboardSummary.ts b/packages/datadog-api-client-v1/models/DashboardSummary.ts index 67e25b374301..b43b3a071980 100644 --- a/packages/datadog-api-client-v1/models/DashboardSummary.ts +++ b/packages/datadog-api-client-v1/models/DashboardSummary.ts @@ -5,15 +5,20 @@ */ import { DashboardSummaryDefinition } from "./DashboardSummaryDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Dashboard summary response. - */ +*/ export class DashboardSummary { /** * List of dashboard definitions. - */ + */ "dashboards"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardSummary { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "dashboards": { + "baseName": "dashboards", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardSummary.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardSummaryDefinition.ts b/packages/datadog-api-client-v1/models/DashboardSummaryDefinition.ts index 9291f75e03a7..796c05039956 100644 --- a/packages/datadog-api-client-v1/models/DashboardSummaryDefinition.ts +++ b/packages/datadog-api-client-v1/models/DashboardSummaryDefinition.ts @@ -5,49 +5,54 @@ */ import { DashboardLayoutType } from "./DashboardLayoutType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Dashboard definition. - */ +*/ export class DashboardSummaryDefinition { /** * Identifier of the dashboard author. - */ + */ "authorHandle"?: string; /** * Creation date of the dashboard. - */ + */ "createdAt"?: Date; /** * Description of the dashboard. - */ + */ "description"?: string; /** * Dashboard identifier. - */ + */ "id"?: string; /** * Whether this dashboard is read-only. If True, only the author and admins can make changes to it. - * + * * This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) instead to manage write authorization for individual dashboards. - */ + */ "isReadOnly"?: boolean; /** * Layout type of the dashboard. - */ + */ "layoutType"?: DashboardLayoutType; /** * Modification date of the dashboard. - */ + */ "modifiedAt"?: Date; /** * Title of the dashboard. - */ + */ "title"?: string; /** * URL of the dashboard. - */ + */ "url"?: string; /** @@ -66,56 +71,82 @@ export class DashboardSummaryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - authorHandle: { - baseName: "author_handle", - type: "string", + "authorHandle": { + "baseName": "author_handle", + "type": "string", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - isReadOnly: { - baseName: "is_read_only", - type: "boolean", + "isReadOnly": { + "baseName": "is_read_only", + "type": "boolean", }, - layoutType: { - baseName: "layout_type", - type: "DashboardLayoutType", + "layoutType": { + "baseName": "layout_type", + "type": "DashboardLayoutType", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardSummaryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardTemplateVariable.ts b/packages/datadog-api-client-v1/models/DashboardTemplateVariable.ts index 0dab91774af1..af4241907569 100644 --- a/packages/datadog-api-client-v1/models/DashboardTemplateVariable.ts +++ b/packages/datadog-api-client-v1/models/DashboardTemplateVariable.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Template variable. - */ +*/ export class DashboardTemplateVariable { /** * The list of values that the template variable drop-down is limited to. - */ + */ "availableValues"?: Array; /** * (deprecated) The default value for the template variable on dashboard load. Cannot be used in conjunction with `defaults`. - */ + */ "_default"?: string; /** * One or many default values for template variables on load. If more than one default is specified, they will be unioned together with `OR`. Cannot be used in conjunction with `default`. - */ + */ "defaults"?: Array; /** * The name of the variable. - */ + */ "name": string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. - */ + */ "prefix"?: string; /** @@ -47,39 +52,65 @@ export class DashboardTemplateVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - availableValues: { - baseName: "available_values", - type: "Array", + "availableValues": { + "baseName": "available_values", + "type": "Array", }, - _default: { - baseName: "default", - type: "string", + "_default": { + "baseName": "default", + "type": "string", }, - defaults: { - baseName: "defaults", - type: "Array", + "defaults": { + "baseName": "defaults", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - prefix: { - baseName: "prefix", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefix": { + "baseName": "prefix", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardTemplateVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardTemplateVariablePreset.ts b/packages/datadog-api-client-v1/models/DashboardTemplateVariablePreset.ts index 019e4ac063b2..05921210683e 100644 --- a/packages/datadog-api-client-v1/models/DashboardTemplateVariablePreset.ts +++ b/packages/datadog-api-client-v1/models/DashboardTemplateVariablePreset.ts @@ -5,19 +5,24 @@ */ import { DashboardTemplateVariablePresetValue } from "./DashboardTemplateVariablePresetValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Template variables saved views. - */ +*/ export class DashboardTemplateVariablePreset { /** * The name of the variable. - */ + */ "name"?: string; /** * List of variables. - */ + */ "templateVariables"?: Array; /** @@ -36,26 +41,52 @@ export class DashboardTemplateVariablePreset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - templateVariables: { - baseName: "template_variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "templateVariables": { + "baseName": "template_variables", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardTemplateVariablePreset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.ts b/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.ts index ae900da320df..06908d6e3a35 100644 --- a/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.ts +++ b/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Template variables saved views. - */ +*/ export class DashboardTemplateVariablePresetValue { /** * The name of the variable. - */ + */ "name"?: string; /** * (deprecated) The value of the template variable within the saved view. Cannot be used in conjunction with `values`. - */ + */ "value"?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. Cannot be used in conjunction with `value`. - */ + */ "values"?: Array; /** @@ -39,30 +44,56 @@ export class DashboardTemplateVariablePresetValue { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - value: { - baseName: "value", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - values: { - baseName: "values", - type: "Array", + "value": { + "baseName": "value", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardTemplateVariablePresetValue.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DashboardType.ts b/packages/datadog-api-client-v1/models/DashboardType.ts index f54a93bb94bd..acd9afa96784 100644 --- a/packages/datadog-api-client-v1/models/DashboardType.ts +++ b/packages/datadog-api-client-v1/models/DashboardType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the associated private dashboard. - */ +*/ -export type DashboardType = - | typeof CUSTOM_TIMEBOARD - | typeof CUSTOM_SCREENBOARD - | UnparsedObject; -export const CUSTOM_TIMEBOARD = "custom_timeboard"; -export const CUSTOM_SCREENBOARD = "custom_screenboard"; +export type DashboardType = typeof CUSTOM_TIMEBOARD| typeof CUSTOM_SCREENBOARD | UnparsedObject; +export const CUSTOM_TIMEBOARD = 'custom_timeboard'; +export const CUSTOM_SCREENBOARD = 'custom_screenboard'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.ts b/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.ts index 9fe48b01ba29..3d9bf23abdb7 100644 --- a/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.ts +++ b/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing token of deleted shared dashboard. - */ +*/ export class DeleteSharedDashboardResponse { /** * Token associated with the shared dashboard that was revoked. - */ + */ "deletedPublicDashboardToken"?: string; /** @@ -31,22 +36,48 @@ export class DeleteSharedDashboardResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedPublicDashboardToken: { - baseName: "deleted_public_dashboard_token", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deletedPublicDashboardToken": { + "baseName": "deleted_public_dashboard_token", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteSharedDashboardResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DeletedMonitor.ts b/packages/datadog-api-client-v1/models/DeletedMonitor.ts index c29727594438..81e463355646 100644 --- a/packages/datadog-api-client-v1/models/DeletedMonitor.ts +++ b/packages/datadog-api-client-v1/models/DeletedMonitor.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response from the delete monitor call. - */ +*/ export class DeletedMonitor { /** * ID of the deleted monitor. - */ + */ "deletedMonitorId"?: number; /** @@ -31,23 +36,49 @@ export class DeletedMonitor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedMonitorId: { - baseName: "deleted_monitor_id", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deletedMonitorId": { + "baseName": "deleted_monitor_id", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeletedMonitor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DistributionPointItem.ts b/packages/datadog-api-client-v1/models/DistributionPointItem.ts index 54e9346ea1f1..a891600c4e18 100644 --- a/packages/datadog-api-client-v1/models/DistributionPointItem.ts +++ b/packages/datadog-api-client-v1/models/DistributionPointItem.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * List of distribution point. - */ +*/ -export type DistributionPointItem = number | Array | UnparsedObject; +export type DistributionPointItem = number | Array | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.ts b/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.ts index 6592f84af0e1..1b157f62f3bf 100644 --- a/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.ts +++ b/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * HTTP header used to compress the media-type. - */ +*/ export type DistributionPointsContentEncoding = typeof DEFLATE | UnparsedObject; -export const DEFLATE = "deflate"; +export const DEFLATE = 'deflate'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DistributionPointsPayload.ts b/packages/datadog-api-client-v1/models/DistributionPointsPayload.ts index 9451a64fecaf..741abb0a88a1 100644 --- a/packages/datadog-api-client-v1/models/DistributionPointsPayload.ts +++ b/packages/datadog-api-client-v1/models/DistributionPointsPayload.ts @@ -5,15 +5,20 @@ */ import { DistributionPointsSeries } from "./DistributionPointsSeries"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The distribution points payload. - */ +*/ export class DistributionPointsPayload { /** * A list of distribution points series to submit to Datadog. - */ + */ "series": Array; /** @@ -32,23 +37,49 @@ export class DistributionPointsPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - series: { - baseName: "series", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "series": { + "baseName": "series", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DistributionPointsPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DistributionPointsSeries.ts b/packages/datadog-api-client-v1/models/DistributionPointsSeries.ts index 172ec1542376..d64b5bb30fae 100644 --- a/packages/datadog-api-client-v1/models/DistributionPointsSeries.ts +++ b/packages/datadog-api-client-v1/models/DistributionPointsSeries.ts @@ -3,34 +3,40 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { DistributionPoint } from "./DistributionPoint"; import { DistributionPointItem } from "./DistributionPointItem"; import { DistributionPointsType } from "./DistributionPointsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A distribution points metric to submit to Datadog. - */ +*/ export class DistributionPointsSeries { /** * The name of the host that produced the distribution point metric. - */ + */ "host"?: string; /** * The name of the distribution points metric. - */ + */ "metric": string; /** * Points relating to the distribution point metric. All points must be tuples with timestamp and a list of values (cannot be a string). Timestamps should be in POSIX time in seconds. - */ + */ "points": Array<[DistributionPointItem, DistributionPointItem]>; /** * A list of tags associated with the distribution point metric. - */ + */ "tags"?: Array; /** * The type of the distribution point. - */ + */ "type"?: DistributionPointsType; /** @@ -49,40 +55,66 @@ export class DistributionPointsSeries { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - host: { - baseName: "host", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", - required: true, + "metric": { + "baseName": "metric", + "type": "string", + "required": true, }, - points: { - baseName: "points", - type: "Array<[DistributionPointItem, DistributionPointItem]>", - required: true, + "points": { + "baseName": "points", + "type": "Array<[DistributionPointItem, DistributionPointItem]>", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "DistributionPointsType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DistributionPointsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DistributionPointsSeries.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DistributionPointsType.ts b/packages/datadog-api-client-v1/models/DistributionPointsType.ts index 065ea1dde9ee..2412025b8504 100644 --- a/packages/datadog-api-client-v1/models/DistributionPointsType.ts +++ b/packages/datadog-api-client-v1/models/DistributionPointsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the distribution point. - */ +*/ export type DistributionPointsType = typeof DISTRIBUTION | UnparsedObject; -export const DISTRIBUTION = "distribution"; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetDefinition.ts b/packages/datadog-api-client-v1/models/DistributionWidgetDefinition.ts index b891a912c5c9..e43ba0713cca 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetDefinition.ts @@ -12,64 +12,69 @@ import { WidgetMarker } from "./WidgetMarker"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Distribution visualization is another way of showing metrics * aggregated across one or several tags, such as hosts. * Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. - */ +*/ export class DistributionWidgetDefinition { /** * A list of custom links. - */ + */ "customLinks"?: Array; /** * (Deprecated) The widget legend was replaced by a tooltip and sidebar. - */ + */ "legendSize"?: string; /** * List of markers. - */ + */ "markers"?: Array; /** * Array of one request object to display in the widget. - * + * * See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) * to learn how to build the `REQUEST_SCHEMA`. - */ + */ "requests": [DistributionWidgetRequest]; /** * (Deprecated) The widget legend was replaced by a tooltip and sidebar. - */ + */ "showLegend"?: boolean; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the distribution widget. - */ + */ "type": DistributionWidgetDefinitionType; /** * X Axis controls for the distribution widget. - */ + */ "xaxis"?: DistributionWidgetXAxis; /** * Y Axis controls for the distribution widget. - */ + */ "yaxis"?: DistributionWidgetYAxis; /** @@ -88,68 +93,94 @@ export class DistributionWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - legendSize: { - baseName: "legend_size", - type: "string", + "legendSize": { + "baseName": "legend_size", + "type": "string", }, - markers: { - baseName: "markers", - type: "Array", + "markers": { + "baseName": "markers", + "type": "Array", }, - requests: { - baseName: "requests", - type: "[DistributionWidgetRequest]", - required: true, + "requests": { + "baseName": "requests", + "type": "[DistributionWidgetRequest]", + "required": true, }, - showLegend: { - baseName: "show_legend", - type: "boolean", + "showLegend": { + "baseName": "show_legend", + "type": "boolean", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "DistributionWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "DistributionWidgetDefinitionType", + "required": true, }, - xaxis: { - baseName: "xaxis", - type: "DistributionWidgetXAxis", + "xaxis": { + "baseName": "xaxis", + "type": "DistributionWidgetXAxis", }, - yaxis: { - baseName: "yaxis", - type: "DistributionWidgetYAxis", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "yaxis": { + "baseName": "yaxis", + "type": "DistributionWidgetYAxis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DistributionWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/DistributionWidgetDefinitionType.ts index 455742c47b88..317a3f953e6f 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the distribution widget. - */ +*/ -export type DistributionWidgetDefinitionType = - | typeof DISTRIBUTION - | UnparsedObject; -export const DISTRIBUTION = "distribution"; +export type DistributionWidgetDefinitionType = typeof DISTRIBUTION | UnparsedObject; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.ts b/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.ts index 47169c48c0ba..6a9ac63be888 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.ts @@ -7,14 +7,15 @@ import { FormulaAndFunctionApmResourceStatsQueryDefinition } from "./FormulaAndF import { FormulaAndFunctionEventQueryDefinition } from "./FormulaAndFunctionEventQueryDefinition"; import { FormulaAndFunctionMetricQueryDefinition } from "./FormulaAndFunctionMetricQueryDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Query definition for Distribution Widget Histogram Request - */ +*/ -export type DistributionWidgetHistogramRequestQuery = - | FormulaAndFunctionMetricQueryDefinition - | FormulaAndFunctionEventQueryDefinition - | FormulaAndFunctionApmResourceStatsQueryDefinition - | UnparsedObject; +export type DistributionWidgetHistogramRequestQuery = FormulaAndFunctionMetricQueryDefinition | FormulaAndFunctionEventQueryDefinition | FormulaAndFunctionApmResourceStatsQueryDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.ts b/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.ts index 5742c9cda9ae..a65107ab2c28 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Request type for the histogram request. - */ +*/ -export type DistributionWidgetHistogramRequestType = - | typeof HISTOGRAM - | UnparsedObject; -export const HISTOGRAM = "histogram"; +export type DistributionWidgetHistogramRequestType = typeof HISTOGRAM | UnparsedObject; +export const HISTOGRAM = 'histogram'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetRequest.ts b/packages/datadog-api-client-v1/models/DistributionWidgetRequest.ts index c7a0219772b7..32ca191ee2f4 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetRequest.ts @@ -10,63 +10,68 @@ import { LogQueryDefinition } from "./LogQueryDefinition"; import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; import { WidgetStyle } from "./WidgetStyle"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated distribution widget. - */ +*/ export class DistributionWidgetRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The APM stats query for table and distributions widgets. - */ + */ "apmStatsQuery"?: ApmStatsQueryDefinition; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Widget query. - */ + */ "q"?: string; /** * Query definition for Distribution Widget Histogram Request - */ + */ "query"?: DistributionWidgetHistogramRequestQuery; /** * Request type for the histogram request. - */ + */ "requestType"?: DistributionWidgetHistogramRequestType; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * Widget style definition. - */ + */ "style"?: WidgetStyle; /** @@ -85,70 +90,96 @@ export class DistributionWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", }, - apmStatsQuery: { - baseName: "apm_stats_query", - type: "ApmStatsQueryDefinition", + "apmStatsQuery": { + "baseName": "apm_stats_query", + "type": "ApmStatsQueryDefinition", }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", }, - q: { - baseName: "q", - type: "string", + "q": { + "baseName": "q", + "type": "string", }, - query: { - baseName: "query", - type: "DistributionWidgetHistogramRequestQuery", + "query": { + "baseName": "query", + "type": "DistributionWidgetHistogramRequestQuery", }, - requestType: { - baseName: "request_type", - type: "DistributionWidgetHistogramRequestType", + "requestType": { + "baseName": "request_type", + "type": "DistributionWidgetHistogramRequestType", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, - style: { - baseName: "style", - type: "WidgetStyle", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "style": { + "baseName": "style", + "type": "WidgetStyle", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DistributionWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetXAxis.ts b/packages/datadog-api-client-v1/models/DistributionWidgetXAxis.ts index 1810a6e8f7fe..e3b458746c87 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetXAxis.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetXAxis.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * X Axis controls for the distribution widget. - */ +*/ export class DistributionWidgetXAxis { /** * True includes zero. - */ + */ "includeZero"?: boolean; /** * Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. - */ + */ "max"?: string; /** * Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. - */ + */ "min"?: string; /** * Specifies the scale type. Possible values are `linear`. - */ + */ "scale"?: string; /** @@ -43,34 +48,60 @@ export class DistributionWidgetXAxis { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeZero: { - baseName: "include_zero", - type: "boolean", + "includeZero": { + "baseName": "include_zero", + "type": "boolean", }, - max: { - baseName: "max", - type: "string", + "max": { + "baseName": "max", + "type": "string", }, - min: { - baseName: "min", - type: "string", + "min": { + "baseName": "min", + "type": "string", }, - scale: { - baseName: "scale", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scale": { + "baseName": "scale", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DistributionWidgetXAxis.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DistributionWidgetYAxis.ts b/packages/datadog-api-client-v1/models/DistributionWidgetYAxis.ts index 45a0c2ff6540..1ab30edf8f70 100644 --- a/packages/datadog-api-client-v1/models/DistributionWidgetYAxis.ts +++ b/packages/datadog-api-client-v1/models/DistributionWidgetYAxis.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Y Axis controls for the distribution widget. - */ +*/ export class DistributionWidgetYAxis { /** * True includes zero. - */ + */ "includeZero"?: boolean; /** * The label of the axis to display on the graph. - */ + */ "label"?: string; /** * Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. - */ + */ "max"?: string; /** * Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. - */ + */ "min"?: string; /** * Specifies the scale type. Possible values are `linear` or `log`. - */ + */ "scale"?: string; /** @@ -47,38 +52,64 @@ export class DistributionWidgetYAxis { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeZero: { - baseName: "include_zero", - type: "boolean", + "includeZero": { + "baseName": "include_zero", + "type": "boolean", }, - label: { - baseName: "label", - type: "string", + "label": { + "baseName": "label", + "type": "string", }, - max: { - baseName: "max", - type: "string", + "max": { + "baseName": "max", + "type": "string", }, - min: { - baseName: "min", - type: "string", + "min": { + "baseName": "min", + "type": "string", }, - scale: { - baseName: "scale", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scale": { + "baseName": "scale", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DistributionWidgetYAxis.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Downtime.ts b/packages/datadog-api-client-v1/models/Downtime.ts index d8f8a90346c6..6f8d5345c5fa 100644 --- a/packages/datadog-api-client-v1/models/Downtime.ts +++ b/packages/datadog-api-client-v1/models/Downtime.ts @@ -8,109 +8,114 @@ import { DowntimeRecurrence } from "./DowntimeRecurrence"; import { NotifyEndState } from "./NotifyEndState"; import { NotifyEndType } from "./NotifyEndType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Downtiming gives you greater control over monitor notifications by * allowing you to globally exclude scopes from alerting. * Downtime settings, which can be scheduled with start and end times, * prevent all alerting related to specified Datadog tags. - */ +*/ export class Downtime { /** * If a scheduled downtime currently exists. - */ + */ "active"?: boolean; /** * The downtime object definition of the active child for the original parent recurring downtime. This * field will only exist on recurring downtimes. - */ + */ "activeChild"?: DowntimeChild; /** * If a scheduled downtime is canceled. - */ + */ "canceled"?: number; /** * User ID of the downtime creator. - */ + */ "creatorId"?: number; /** * If a downtime has been disabled. - */ + */ "disabled"?: boolean; /** * `0` for a downtime applied on `*` or all, * `1` when the downtime is only scoped to hosts, * or `2` when the downtime is scoped to anything but hosts. - */ + */ "downtimeType"?: number; /** * POSIX timestamp to end the downtime. If not provided, * the downtime is in effect indefinitely until you cancel it. - */ + */ "end"?: number; /** * The downtime ID. - */ + */ "id"?: number; /** * A message to include with notifications for this downtime. * Email notifications can be sent to specific users by using the same `@username` notation as events. - */ + */ "message"?: string; /** * A single monitor to which the downtime applies. * If not provided, the downtime applies to all monitors. - */ + */ "monitorId"?: number; /** * A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, * not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. * The resulting downtime applies to monitors that match ALL provided monitor tags. * For example, `service:postgres` **AND** `team:frontend`. - */ + */ "monitorTags"?: Array; /** * If the first recovery notification during a downtime should be muted. - */ + */ "muteFirstRecoveryNotification"?: boolean; /** * States for which `notify_end_types` sends out notifications for. - */ + */ "notifyEndStates"?: Array; /** * If set, notifies if a monitor is in an alert-worthy state (`ALERT`, `WARNING`, or `NO DATA`) * when this downtime expires or is canceled. Applied to monitors that change states during * the downtime (such as from `OK` to `ALERT`, `WARNING`, or `NO DATA`), and to monitors that * already have an alert-worthy state when downtime begins. - */ + */ "notifyEndTypes"?: Array; /** * ID of the parent Downtime. - */ + */ "parentId"?: number; /** * An object defining the recurrence of the downtime. - */ + */ "recurrence"?: DowntimeRecurrence; /** * The scope(s) to which the downtime applies and must be in `key:value` format. For example, `host:app2`. * Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. * The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). - */ + */ "scope"?: Array; /** * POSIX timestamp to start the downtime. * If not provided, the downtime starts the moment it is created. - */ + */ "start"?: number; /** * The timezone in which to display the downtime's start and end times in Datadog applications. - */ + */ "timezone"?: string; /** * ID of the last user that updated the downtime. - */ + */ "updaterId"?: number; /** @@ -129,107 +134,133 @@ export class Downtime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - active: { - baseName: "active", - type: "boolean", - }, - activeChild: { - baseName: "active_child", - type: "DowntimeChild", - }, - canceled: { - baseName: "canceled", - type: "number", - format: "int64", - }, - creatorId: { - baseName: "creator_id", - type: "number", - format: "int32", - }, - disabled: { - baseName: "disabled", - type: "boolean", - }, - downtimeType: { - baseName: "downtime_type", - type: "number", - format: "int32", - }, - end: { - baseName: "end", - type: "number", - format: "int64", - }, - id: { - baseName: "id", - type: "number", - format: "int64", - }, - message: { - baseName: "message", - type: "string", - }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", - }, - monitorTags: { - baseName: "monitor_tags", - type: "Array", - }, - muteFirstRecoveryNotification: { - baseName: "mute_first_recovery_notification", - type: "boolean", - }, - notifyEndStates: { - baseName: "notify_end_states", - type: "Array", - }, - notifyEndTypes: { - baseName: "notify_end_types", - type: "Array", - }, - parentId: { - baseName: "parent_id", - type: "number", - format: "int64", - }, - recurrence: { - baseName: "recurrence", - type: "DowntimeRecurrence", - }, - scope: { - baseName: "scope", - type: "Array", - }, - start: { - baseName: "start", - type: "number", - format: "int64", - }, - timezone: { - baseName: "timezone", - type: "string", - }, - updaterId: { - baseName: "updater_id", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "active": { + "baseName": "active", + "type": "boolean", + }, + "activeChild": { + "baseName": "active_child", + "type": "DowntimeChild", + }, + "canceled": { + "baseName": "canceled", + "type": "number", + "format": "int64", + }, + "creatorId": { + "baseName": "creator_id", + "type": "number", + "format": "int32", + }, + "disabled": { + "baseName": "disabled", + "type": "boolean", + }, + "downtimeType": { + "baseName": "downtime_type", + "type": "number", + "format": "int32", + }, + "end": { + "baseName": "end", + "type": "number", + "format": "int64", + }, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", + }, + "message": { + "baseName": "message", + "type": "string", + }, + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", + }, + "monitorTags": { + "baseName": "monitor_tags", + "type": "Array", }, + "muteFirstRecoveryNotification": { + "baseName": "mute_first_recovery_notification", + "type": "boolean", + }, + "notifyEndStates": { + "baseName": "notify_end_states", + "type": "Array", + }, + "notifyEndTypes": { + "baseName": "notify_end_types", + "type": "Array", + }, + "parentId": { + "baseName": "parent_id", + "type": "number", + "format": "int64", + }, + "recurrence": { + "baseName": "recurrence", + "type": "DowntimeRecurrence", + }, + "scope": { + "baseName": "scope", + "type": "Array", + }, + "start": { + "baseName": "start", + "type": "number", + "format": "int64", + }, + "timezone": { + "baseName": "timezone", + "type": "string", + }, + "updaterId": { + "baseName": "updater_id", + "type": "number", + "format": "int32", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Downtime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DowntimeChild.ts b/packages/datadog-api-client-v1/models/DowntimeChild.ts index e8eead66e2b0..b975076a15fc 100644 --- a/packages/datadog-api-client-v1/models/DowntimeChild.ts +++ b/packages/datadog-api-client-v1/models/DowntimeChild.ts @@ -7,102 +7,107 @@ import { DowntimeRecurrence } from "./DowntimeRecurrence"; import { NotifyEndState } from "./NotifyEndState"; import { NotifyEndType } from "./NotifyEndType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The downtime object definition of the active child for the original parent recurring downtime. This * field will only exist on recurring downtimes. - */ +*/ export class DowntimeChild { /** * If a scheduled downtime currently exists. - */ + */ "active"?: boolean; /** * If a scheduled downtime is canceled. - */ + */ "canceled"?: number; /** * User ID of the downtime creator. - */ + */ "creatorId"?: number; /** * If a downtime has been disabled. - */ + */ "disabled"?: boolean; /** * `0` for a downtime applied on `*` or all, * `1` when the downtime is only scoped to hosts, * or `2` when the downtime is scoped to anything but hosts. - */ + */ "downtimeType"?: number; /** * POSIX timestamp to end the downtime. If not provided, * the downtime is in effect indefinitely until you cancel it. - */ + */ "end"?: number; /** * The downtime ID. - */ + */ "id"?: number; /** * A message to include with notifications for this downtime. * Email notifications can be sent to specific users by using the same `@username` notation as events. - */ + */ "message"?: string; /** * A single monitor to which the downtime applies. * If not provided, the downtime applies to all monitors. - */ + */ "monitorId"?: number; /** * A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, * not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. * The resulting downtime applies to monitors that match ALL provided monitor tags. * For example, `service:postgres` **AND** `team:frontend`. - */ + */ "monitorTags"?: Array; /** * If the first recovery notification during a downtime should be muted. - */ + */ "muteFirstRecoveryNotification"?: boolean; /** * States for which `notify_end_types` sends out notifications for. - */ + */ "notifyEndStates"?: Array; /** * If set, notifies if a monitor is in an alert-worthy state (`ALERT`, `WARNING`, or `NO DATA`) * when this downtime expires or is canceled. Applied to monitors that change states during * the downtime (such as from `OK` to `ALERT`, `WARNING`, or `NO DATA`), and to monitors that * already have an alert-worthy state when downtime begins. - */ + */ "notifyEndTypes"?: Array; /** * ID of the parent Downtime. - */ + */ "parentId"?: number; /** * An object defining the recurrence of the downtime. - */ + */ "recurrence"?: DowntimeRecurrence; /** * The scope(s) to which the downtime applies and must be in `key:value` format. For example, `host:app2`. * Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. * The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). - */ + */ "scope"?: Array; /** * POSIX timestamp to start the downtime. * If not provided, the downtime starts the moment it is created. - */ + */ "start"?: number; /** * The timezone in which to display the downtime's start and end times in Datadog applications. - */ + */ "timezone"?: string; /** * ID of the last user that updated the downtime. - */ + */ "updaterId"?: number; /** @@ -121,103 +126,129 @@ export class DowntimeChild { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - active: { - baseName: "active", - type: "boolean", - }, - canceled: { - baseName: "canceled", - type: "number", - format: "int64", - }, - creatorId: { - baseName: "creator_id", - type: "number", - format: "int32", - }, - disabled: { - baseName: "disabled", - type: "boolean", - }, - downtimeType: { - baseName: "downtime_type", - type: "number", - format: "int32", - }, - end: { - baseName: "end", - type: "number", - format: "int64", - }, - id: { - baseName: "id", - type: "number", - format: "int64", - }, - message: { - baseName: "message", - type: "string", - }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", - }, - monitorTags: { - baseName: "monitor_tags", - type: "Array", - }, - muteFirstRecoveryNotification: { - baseName: "mute_first_recovery_notification", - type: "boolean", - }, - notifyEndStates: { - baseName: "notify_end_states", - type: "Array", - }, - notifyEndTypes: { - baseName: "notify_end_types", - type: "Array", - }, - parentId: { - baseName: "parent_id", - type: "number", - format: "int64", - }, - recurrence: { - baseName: "recurrence", - type: "DowntimeRecurrence", - }, - scope: { - baseName: "scope", - type: "Array", - }, - start: { - baseName: "start", - type: "number", - format: "int64", - }, - timezone: { - baseName: "timezone", - type: "string", - }, - updaterId: { - baseName: "updater_id", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "active": { + "baseName": "active", + "type": "boolean", + }, + "canceled": { + "baseName": "canceled", + "type": "number", + "format": "int64", + }, + "creatorId": { + "baseName": "creator_id", + "type": "number", + "format": "int32", + }, + "disabled": { + "baseName": "disabled", + "type": "boolean", + }, + "downtimeType": { + "baseName": "downtime_type", + "type": "number", + "format": "int32", + }, + "end": { + "baseName": "end", + "type": "number", + "format": "int64", + }, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", + }, + "message": { + "baseName": "message", + "type": "string", + }, + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", + }, + "monitorTags": { + "baseName": "monitor_tags", + "type": "Array", + }, + "muteFirstRecoveryNotification": { + "baseName": "mute_first_recovery_notification", + "type": "boolean", + }, + "notifyEndStates": { + "baseName": "notify_end_states", + "type": "Array", + }, + "notifyEndTypes": { + "baseName": "notify_end_types", + "type": "Array", + }, + "parentId": { + "baseName": "parent_id", + "type": "number", + "format": "int64", + }, + "recurrence": { + "baseName": "recurrence", + "type": "DowntimeRecurrence", + }, + "scope": { + "baseName": "scope", + "type": "Array", + }, + "start": { + "baseName": "start", + "type": "number", + "format": "int64", + }, + "timezone": { + "baseName": "timezone", + "type": "string", + }, + "updaterId": { + "baseName": "updater_id", + "type": "number", + "format": "int32", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeChild.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/DowntimeRecurrence.ts b/packages/datadog-api-client-v1/models/DowntimeRecurrence.ts index 67a4e21955bc..63979dd01551 100644 --- a/packages/datadog-api-client-v1/models/DowntimeRecurrence.ts +++ b/packages/datadog-api-client-v1/models/DowntimeRecurrence.ts @@ -4,44 +4,49 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object defining the recurrence of the downtime. - */ +*/ export class DowntimeRecurrence { /** * How often to repeat as an integer. * For example, to repeat every 3 days, select a type of `days` and a period of `3`. - */ + */ "period"?: number; /** * The `RRULE` standard for defining recurring events (**requires to set "type" to rrule**) * For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. * Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. - * + * * **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). * More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api) - */ + */ "rrule"?: string; /** * The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. - */ + */ "type"?: string; /** * The date at which the recurrence should end as a POSIX timestamp. * `until_occurences` and `until_date` are mutually exclusive. - */ + */ "untilDate"?: number; /** * How many times the downtime is rescheduled. * `until_occurences` and `until_date` are mutually exclusive. - */ + */ "untilOccurrences"?: number; /** * A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. * Only applicable when type is weeks. First letter must be capitalized. - */ + */ "weekDays"?: Array; /** @@ -60,45 +65,71 @@ export class DowntimeRecurrence { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - period: { - baseName: "period", - type: "number", - format: "int32", - }, - rrule: { - baseName: "rrule", - type: "string", + "period": { + "baseName": "period", + "type": "number", + "format": "int32", }, - type: { - baseName: "type", - type: "string", + "rrule": { + "baseName": "rrule", + "type": "string", }, - untilDate: { - baseName: "until_date", - type: "number", - format: "int64", + "type": { + "baseName": "type", + "type": "string", }, - untilOccurrences: { - baseName: "until_occurrences", - type: "number", - format: "int32", + "untilDate": { + "baseName": "until_date", + "type": "number", + "format": "int64", }, - weekDays: { - baseName: "week_days", - type: "Array", + "untilOccurrences": { + "baseName": "until_occurrences", + "type": "number", + "format": "int32", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "weekDays": { + "baseName": "week_days", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeRecurrence.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Event.ts b/packages/datadog-api-client-v1/models/Event.ts index 3fbf6d9bb658..2df4eaf5a1ae 100644 --- a/packages/datadog-api-client-v1/models/Event.ts +++ b/packages/datadog-api-client-v1/models/Event.ts @@ -6,71 +6,76 @@ import { EventAlertType } from "./EventAlertType"; import { EventPriority } from "./EventPriority"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing an event. - */ +*/ export class Event { /** * If an alert event is enabled, set its type. * For example, `error`, `warning`, `info`, `success`, `user_update`, * `recommendation`, and `snapshot`. - */ + */ "alertType"?: EventAlertType; /** * POSIX timestamp of the event. Must be sent as an integer (that is no quotes). * Limited to events up to 18 hours in the past and two hours in the future. - */ + */ "dateHappened"?: number; /** * A device name. - */ + */ "deviceName"?: string; /** * Host name to associate with the event. * Any tags associated with the host are also applied to this event. - */ + */ "host"?: string; /** * Integer ID of the event. - */ + */ "id"?: number; /** * Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. * Instead, use the string representation of the Event ID to avoid losing accuracy. - */ + */ "idStr"?: string; /** * Payload of the event. - */ + */ "payload"?: string; /** * The priority of the event. For example, `normal` or `low`. - */ + */ "priority"?: EventPriority; /** * The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. * The list of standard source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). - */ + */ "sourceTypeName"?: string; /** * A list of tags to apply to the event. - */ + */ "tags"?: Array; /** * The body of the event. Limited to 4000 characters. The text supports markdown. * To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. * Use `msg_text` with the Datadog Ruby library. - */ + */ "text"?: string; /** * The event title. - */ + */ "title"?: string; /** * URL of the event. - */ + */ "url"?: string; /** @@ -89,72 +94,98 @@ export class Event { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alertType: { - baseName: "alert_type", - type: "EventAlertType", + "alertType": { + "baseName": "alert_type", + "type": "EventAlertType", }, - dateHappened: { - baseName: "date_happened", - type: "number", - format: "int64", + "dateHappened": { + "baseName": "date_happened", + "type": "number", + "format": "int64", }, - deviceName: { - baseName: "device_name", - type: "string", + "deviceName": { + "baseName": "device_name", + "type": "string", }, - host: { - baseName: "host", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - id: { - baseName: "id", - type: "number", - format: "int64", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - idStr: { - baseName: "id_str", - type: "string", + "idStr": { + "baseName": "id_str", + "type": "string", }, - payload: { - baseName: "payload", - type: "string", + "payload": { + "baseName": "payload", + "type": "string", }, - priority: { - baseName: "priority", - type: "EventPriority", + "priority": { + "baseName": "priority", + "type": "EventPriority", }, - sourceTypeName: { - baseName: "source_type_name", - type: "string", + "sourceTypeName": { + "baseName": "source_type_name", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - text: { - baseName: "text", - type: "string", + "text": { + "baseName": "text", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Event.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventAlertType.ts b/packages/datadog-api-client-v1/models/EventAlertType.ts index 34327bea3b58..fc05d794dabb 100644 --- a/packages/datadog-api-client-v1/models/EventAlertType.ts +++ b/packages/datadog-api-client-v1/models/EventAlertType.ts @@ -4,27 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * If an alert event is enabled, set its type. * For example, `error`, `warning`, `info`, `success`, `user_update`, * `recommendation`, and `snapshot`. - */ +*/ -export type EventAlertType = - | typeof ERROR - | typeof WARNING - | typeof INFO - | typeof SUCCESS - | typeof USER_UPDATE - | typeof RECOMMENDATION - | typeof SNAPSHOT - | UnparsedObject; -export const ERROR = "error"; -export const WARNING = "warning"; -export const INFO = "info"; -export const SUCCESS = "success"; -export const USER_UPDATE = "user_update"; -export const RECOMMENDATION = "recommendation"; -export const SNAPSHOT = "snapshot"; +export type EventAlertType = typeof ERROR| typeof WARNING| typeof INFO| typeof SUCCESS| typeof USER_UPDATE| typeof RECOMMENDATION| typeof SNAPSHOT | UnparsedObject; +export const ERROR = 'error'; +export const WARNING = 'warning'; +export const INFO = 'info'; +export const SUCCESS = 'success'; +export const USER_UPDATE = 'user_update'; +export const RECOMMENDATION = 'recommendation'; +export const SNAPSHOT = 'snapshot'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/EventCreateRequest.ts b/packages/datadog-api-client-v1/models/EventCreateRequest.ts index 6965c33ef5ad..aeaa8b02172f 100644 --- a/packages/datadog-api-client-v1/models/EventCreateRequest.ts +++ b/packages/datadog-api-client-v1/models/EventCreateRequest.ts @@ -6,63 +6,68 @@ import { EventAlertType } from "./EventAlertType"; import { EventPriority } from "./EventPriority"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing an event. - */ +*/ export class EventCreateRequest { /** * An arbitrary string to use for aggregation. Limited to 100 characters. * If you specify a key, all events using that key are grouped together in the Event Stream. - */ + */ "aggregationKey"?: string; /** * If an alert event is enabled, set its type. * For example, `error`, `warning`, `info`, `success`, `user_update`, * `recommendation`, and `snapshot`. - */ + */ "alertType"?: EventAlertType; /** * POSIX timestamp of the event. Must be sent as an integer (that is no quotes). * Limited to events no older than 18 hours - */ + */ "dateHappened"?: number; /** * A device name. - */ + */ "deviceName"?: string; /** * Host name to associate with the event. * Any tags associated with the host are also applied to this event. - */ + */ "host"?: string; /** * The priority of the event. For example, `normal` or `low`. - */ + */ "priority"?: EventPriority; /** * ID of the parent event. Must be sent as an integer (that is no quotes). - */ + */ "relatedEventId"?: number; /** * The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. * A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). - */ + */ "sourceTypeName"?: string; /** * A list of tags to apply to the event. - */ + */ "tags"?: Array; /** * The body of the event. Limited to 4000 characters. The text supports markdown. * To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. * Use `msg_text` with the Datadog Ruby library. - */ + */ "text": string; /** * The event title. - */ + */ "title": string; /** @@ -81,66 +86,92 @@ export class EventCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationKey: { - baseName: "aggregation_key", - type: "string", - }, - alertType: { - baseName: "alert_type", - type: "EventAlertType", + "aggregationKey": { + "baseName": "aggregation_key", + "type": "string", }, - dateHappened: { - baseName: "date_happened", - type: "number", - format: "int64", + "alertType": { + "baseName": "alert_type", + "type": "EventAlertType", }, - deviceName: { - baseName: "device_name", - type: "string", + "dateHappened": { + "baseName": "date_happened", + "type": "number", + "format": "int64", }, - host: { - baseName: "host", - type: "string", + "deviceName": { + "baseName": "device_name", + "type": "string", }, - priority: { - baseName: "priority", - type: "EventPriority", + "host": { + "baseName": "host", + "type": "string", }, - relatedEventId: { - baseName: "related_event_id", - type: "number", - format: "int64", + "priority": { + "baseName": "priority", + "type": "EventPriority", }, - sourceTypeName: { - baseName: "source_type_name", - type: "string", + "relatedEventId": { + "baseName": "related_event_id", + "type": "number", + "format": "int64", }, - tags: { - baseName: "tags", - type: "Array", + "sourceTypeName": { + "baseName": "source_type_name", + "type": "string", }, - text: { - baseName: "text", - type: "string", - required: true, + "tags": { + "baseName": "tags", + "type": "Array", }, - title: { - baseName: "title", - type: "string", - required: true, + "text": { + "baseName": "text", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventCreateResponse.ts b/packages/datadog-api-client-v1/models/EventCreateResponse.ts index a592051f8aa2..a18870d947e6 100644 --- a/packages/datadog-api-client-v1/models/EventCreateResponse.ts +++ b/packages/datadog-api-client-v1/models/EventCreateResponse.ts @@ -5,19 +5,24 @@ */ import { Event } from "./Event"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing an event response. - */ +*/ export class EventCreateResponse { /** * Object representing an event. - */ + */ "event"?: Event; /** * A status. - */ + */ "status"?: string; /** @@ -36,26 +41,52 @@ export class EventCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - event: { - baseName: "event", - type: "Event", + "event": { + "baseName": "event", + "type": "Event", }, - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventListResponse.ts b/packages/datadog-api-client-v1/models/EventListResponse.ts index 5e64a4109a06..f0dca48d8c14 100644 --- a/packages/datadog-api-client-v1/models/EventListResponse.ts +++ b/packages/datadog-api-client-v1/models/EventListResponse.ts @@ -5,19 +5,24 @@ */ import { Event } from "./Event"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An event list response. - */ +*/ export class EventListResponse { /** * An array of events. - */ + */ "events"?: Array; /** * A status. - */ + */ "status"?: string; /** @@ -36,26 +41,52 @@ export class EventListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventPriority.ts b/packages/datadog-api-client-v1/models/EventPriority.ts index 3a10f83c0890..e01e1b73bb29 100644 --- a/packages/datadog-api-client-v1/models/EventPriority.ts +++ b/packages/datadog-api-client-v1/models/EventPriority.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The priority of the event. For example, `normal` or `low`. - */ +*/ -export type EventPriority = typeof NORMAL | typeof LOW | UnparsedObject; -export const NORMAL = "normal"; -export const LOW = "low"; +export type EventPriority = typeof NORMAL| typeof LOW | UnparsedObject; +export const NORMAL = 'normal'; +export const LOW = 'low'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/EventQueryDefinition.ts b/packages/datadog-api-client-v1/models/EventQueryDefinition.ts index d29479956088..9dead2e7dc31 100644 --- a/packages/datadog-api-client-v1/models/EventQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/EventQueryDefinition.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The event query. - */ +*/ export class EventQueryDefinition { /** * The query being made on the event. - */ + */ "search": string; /** * The execution method for multi-value filters. Can be either and or or. - */ + */ "tagsExecution": string; /** @@ -35,28 +40,54 @@ export class EventQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - search: { - baseName: "search", - type: "string", - required: true, + "search": { + "baseName": "search", + "type": "string", + "required": true, }, - tagsExecution: { - baseName: "tags_execution", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagsExecution": { + "baseName": "tags_execution", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventResponse.ts b/packages/datadog-api-client-v1/models/EventResponse.ts index fdd78d1ccce3..e7a8800410e1 100644 --- a/packages/datadog-api-client-v1/models/EventResponse.ts +++ b/packages/datadog-api-client-v1/models/EventResponse.ts @@ -5,19 +5,24 @@ */ import { Event } from "./Event"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing an event response. - */ +*/ export class EventResponse { /** * Object representing an event. - */ + */ "event"?: Event; /** * A status. - */ + */ "status"?: string; /** @@ -36,26 +41,52 @@ export class EventResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - event: { - baseName: "event", - type: "Event", + "event": { + "baseName": "event", + "type": "Event", }, - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventStreamWidgetDefinition.ts b/packages/datadog-api-client-v1/models/EventStreamWidgetDefinition.ts index 34d87bc0ddc9..4b0a190f50d8 100644 --- a/packages/datadog-api-client-v1/models/EventStreamWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/EventStreamWidgetDefinition.ts @@ -8,44 +8,49 @@ import { WidgetEventSize } from "./WidgetEventSize"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The event stream is a widget version of the stream of events * on the Event Stream view. Only available on FREE layout dashboards. - */ +*/ export class EventStreamWidgetDefinition { /** * Size to use to display an event. - */ + */ "eventSize"?: WidgetEventSize; /** * Query to filter the event stream with. - */ + */ "query": string; /** * The execution method for multi-value filters. Can be either and or or. - */ + */ "tagsExecution"?: string; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the event stream widget. - */ + */ "type": EventStreamWidgetDefinitionType; /** @@ -64,52 +69,78 @@ export class EventStreamWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - eventSize: { - baseName: "event_size", - type: "WidgetEventSize", + "eventSize": { + "baseName": "event_size", + "type": "WidgetEventSize", }, - query: { - baseName: "query", - type: "string", - required: true, + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - tagsExecution: { - baseName: "tags_execution", - type: "string", + "tagsExecution": { + "baseName": "tags_execution", + "type": "string", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "EventStreamWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EventStreamWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventStreamWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventStreamWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/EventStreamWidgetDefinitionType.ts index 556721138ce2..1b9c54e8ebf4 100644 --- a/packages/datadog-api-client-v1/models/EventStreamWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/EventStreamWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event stream widget. - */ +*/ -export type EventStreamWidgetDefinitionType = - | typeof EVENT_STREAM - | UnparsedObject; -export const EVENT_STREAM = "event_stream"; +export type EventStreamWidgetDefinitionType = typeof EVENT_STREAM | UnparsedObject; +export const EVENT_STREAM = 'event_stream'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinition.ts b/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinition.ts index bf29f1269cf0..fba1b1762a11 100644 --- a/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinition.ts @@ -7,39 +7,44 @@ import { EventTimelineWidgetDefinitionType } from "./EventTimelineWidgetDefiniti import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The event timeline is a widget version of the timeline that appears at the top of the Event Stream view. Only available on FREE layout dashboards. - */ +*/ export class EventTimelineWidgetDefinition { /** * Query to filter the event timeline with. - */ + */ "query": string; /** * The execution method for multi-value filters. Can be either and or or. - */ + */ "tagsExecution"?: string; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the event timeline widget. - */ + */ "type": EventTimelineWidgetDefinitionType; /** @@ -58,48 +63,74 @@ export class EventTimelineWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - required: true, - }, - tagsExecution: { - baseName: "tags_execution", - type: "string", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "tagsExecution": { + "baseName": "tags_execution", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "EventTimelineWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EventTimelineWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventTimelineWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinitionType.ts index 20e82f110d6d..a89731826771 100644 --- a/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/EventTimelineWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event timeline widget. - */ +*/ -export type EventTimelineWidgetDefinitionType = - | typeof EVENT_TIMELINE - | UnparsedObject; -export const EVENT_TIMELINE = "event_timeline"; +export type EventTimelineWidgetDefinitionType = typeof EVENT_TIMELINE | UnparsedObject; +export const EVENT_TIMELINE = 'event_timeline'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatName.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatName.ts index 946ba240ca41..49b1b89088aa 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatName.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatName.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * APM statistic. - */ +*/ -export type FormulaAndFunctionApmDependencyStatName = - | typeof AVG_DURATION - | typeof AVG_ROOT_DURATION - | typeof AVG_SPANS_PER_TRACE - | typeof ERROR_RATE - | typeof PCT_EXEC_TIME - | typeof PCT_OF_TRACES - | typeof TOTAL_TRACES_COUNT - | UnparsedObject; -export const AVG_DURATION = "avg_duration"; -export const AVG_ROOT_DURATION = "avg_root_duration"; -export const AVG_SPANS_PER_TRACE = "avg_spans_per_trace"; -export const ERROR_RATE = "error_rate"; -export const PCT_EXEC_TIME = "pct_exec_time"; -export const PCT_OF_TRACES = "pct_of_traces"; -export const TOTAL_TRACES_COUNT = "total_traces_count"; +export type FormulaAndFunctionApmDependencyStatName = typeof AVG_DURATION| typeof AVG_ROOT_DURATION| typeof AVG_SPANS_PER_TRACE| typeof ERROR_RATE| typeof PCT_EXEC_TIME| typeof PCT_OF_TRACES| typeof TOTAL_TRACES_COUNT | UnparsedObject; +export const AVG_DURATION = 'avg_duration'; +export const AVG_ROOT_DURATION = 'avg_root_duration'; +export const AVG_SPANS_PER_TRACE = 'avg_spans_per_trace'; +export const ERROR_RATE = 'error_rate'; +export const PCT_EXEC_TIME = 'pct_exec_time'; +export const PCT_OF_TRACES = 'pct_of_traces'; +export const TOTAL_TRACES_COUNT = 'total_traces_count'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsDataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsDataSource.ts index 40b5f1f0caa1..b41697a5e65b 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsDataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsDataSource.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for APM dependency stats queries. - */ +*/ -export type FormulaAndFunctionApmDependencyStatsDataSource = - | typeof APM_DEPENDENCY_STATS - | UnparsedObject; -export const APM_DEPENDENCY_STATS = "apm_dependency_stats"; +export type FormulaAndFunctionApmDependencyStatsDataSource = typeof APM_DEPENDENCY_STATS | UnparsedObject; +export const APM_DEPENDENCY_STATS = 'apm_dependency_stats'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsQueryDefinition.ts index 048a8ffd4164..8537500f7dfd 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmDependencyStatsQueryDefinition.ts @@ -3,58 +3,64 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionApmDependencyStatName } from "./FormulaAndFunctionApmDependencyStatName"; import { FormulaAndFunctionApmDependencyStatsDataSource } from "./FormulaAndFunctionApmDependencyStatsDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions APM dependency stats query. - */ +*/ export class FormulaAndFunctionApmDependencyStatsQueryDefinition { /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data source for APM dependency stats queries. - */ + */ "dataSource": FormulaAndFunctionApmDependencyStatsDataSource; /** * APM environment. - */ + */ "env": string; /** * Determines whether stats for upstream or downstream dependencies should be queried. - */ + */ "isUpstream"?: boolean; /** * Name of query to use in formulas. - */ + */ "name": string; /** * Name of operation on service. - */ + */ "operationName": string; /** * The name of the second primary tag used within APM; required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog. - */ + */ "primaryTagName"?: string; /** * Filter APM data by the second primary tag. `primary_tag_name` must also be specified. - */ + */ "primaryTagValue"?: string; /** * APM resource. - */ + */ "resourceName": string; /** * APM service. - */ + */ "service": string; /** * APM statistic. - */ + */ "stat": FormulaAndFunctionApmDependencyStatName; /** @@ -73,69 +79,95 @@ export class FormulaAndFunctionApmDependencyStatsQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", - }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionApmDependencyStatsDataSource", - required: true, + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - env: { - baseName: "env", - type: "string", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionApmDependencyStatsDataSource", + "required": true, }, - isUpstream: { - baseName: "is_upstream", - type: "boolean", + "env": { + "baseName": "env", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "isUpstream": { + "baseName": "is_upstream", + "type": "boolean", }, - operationName: { - baseName: "operation_name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - primaryTagName: { - baseName: "primary_tag_name", - type: "string", + "operationName": { + "baseName": "operation_name", + "type": "string", + "required": true, }, - primaryTagValue: { - baseName: "primary_tag_value", - type: "string", + "primaryTagName": { + "baseName": "primary_tag_name", + "type": "string", }, - resourceName: { - baseName: "resource_name", - type: "string", - required: true, + "primaryTagValue": { + "baseName": "primary_tag_value", + "type": "string", }, - service: { - baseName: "service", - type: "string", - required: true, + "resourceName": { + "baseName": "resource_name", + "type": "string", + "required": true, }, - stat: { - baseName: "stat", - type: "FormulaAndFunctionApmDependencyStatName", - required: true, + "service": { + "baseName": "service", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "stat": { + "baseName": "stat", + "type": "FormulaAndFunctionApmDependencyStatName", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionApmDependencyStatsQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.ts index bf04dc9b8d85..0e734ca43982 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.ts @@ -4,33 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * APM resource stat name. - */ +*/ -export type FormulaAndFunctionApmResourceStatName = - | typeof ERRORS - | typeof ERROR_RATE - | typeof HITS - | typeof LATENCY_AVG - | typeof LATENCY_DISTRIBUTION - | typeof LATENCY_MAX - | typeof LATENCY_P50 - | typeof LATENCY_P75 - | typeof LATENCY_P90 - | typeof LATENCY_P95 - | typeof LATENCY_P99 - | UnparsedObject; -export const ERRORS = "errors"; -export const ERROR_RATE = "error_rate"; -export const HITS = "hits"; -export const LATENCY_AVG = "latency_avg"; -export const LATENCY_DISTRIBUTION = "latency_distribution"; -export const LATENCY_MAX = "latency_max"; -export const LATENCY_P50 = "latency_p50"; -export const LATENCY_P75 = "latency_p75"; -export const LATENCY_P90 = "latency_p90"; -export const LATENCY_P95 = "latency_p95"; -export const LATENCY_P99 = "latency_p99"; +export type FormulaAndFunctionApmResourceStatName = typeof ERRORS| typeof ERROR_RATE| typeof HITS| typeof LATENCY_AVG| typeof LATENCY_DISTRIBUTION| typeof LATENCY_MAX| typeof LATENCY_P50| typeof LATENCY_P75| typeof LATENCY_P90| typeof LATENCY_P95| typeof LATENCY_P99 | UnparsedObject; +export const ERRORS = 'errors'; +export const ERROR_RATE = 'error_rate'; +export const HITS = 'hits'; +export const LATENCY_AVG = 'latency_avg'; +export const LATENCY_DISTRIBUTION = 'latency_distribution'; +export const LATENCY_MAX = 'latency_max'; +export const LATENCY_P50 = 'latency_p50'; +export const LATENCY_P75 = 'latency_p75'; +export const LATENCY_P90 = 'latency_p90'; +export const LATENCY_P95 = 'latency_p95'; +export const LATENCY_P99 = 'latency_p99'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsDataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsDataSource.ts index b4d40ffa5b39..cd852bda72e8 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsDataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsDataSource.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for APM resource stats queries. - */ +*/ -export type FormulaAndFunctionApmResourceStatsDataSource = - | typeof APM_RESOURCE_STATS - | UnparsedObject; -export const APM_RESOURCE_STATS = "apm_resource_stats"; +export type FormulaAndFunctionApmResourceStatsDataSource = typeof APM_RESOURCE_STATS | UnparsedObject; +export const APM_RESOURCE_STATS = 'apm_resource_stats'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsQueryDefinition.ts index d0dfacef953f..23524f113445 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatsQueryDefinition.ts @@ -3,58 +3,64 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionApmResourceStatName } from "./FormulaAndFunctionApmResourceStatName"; import { FormulaAndFunctionApmResourceStatsDataSource } from "./FormulaAndFunctionApmResourceStatsDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * APM resource stats query using formulas and functions. - */ +*/ export class FormulaAndFunctionApmResourceStatsQueryDefinition { /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data source for APM resource stats queries. - */ + */ "dataSource": FormulaAndFunctionApmResourceStatsDataSource; /** * APM environment. - */ + */ "env": string; /** * Array of fields to group results by. - */ + */ "groupBy"?: Array; /** * Name of this query to use in formulas. - */ + */ "name": string; /** * Name of operation on service. - */ + */ "operationName"?: string; /** * Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog - */ + */ "primaryTagName"?: string; /** * Value of the second primary tag by which to filter APM data. `primary_tag_name` must also be specified. - */ + */ "primaryTagValue"?: string; /** * APM resource name. - */ + */ "resourceName"?: string; /** * APM service name. - */ + */ "service": string; /** * APM resource stat name. - */ + */ "stat": FormulaAndFunctionApmResourceStatName; /** @@ -73,67 +79,93 @@ export class FormulaAndFunctionApmResourceStatsQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", - }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionApmResourceStatsDataSource", - required: true, + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - env: { - baseName: "env", - type: "string", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionApmResourceStatsDataSource", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "env": { + "baseName": "env", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - operationName: { - baseName: "operation_name", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - primaryTagName: { - baseName: "primary_tag_name", - type: "string", + "operationName": { + "baseName": "operation_name", + "type": "string", }, - primaryTagValue: { - baseName: "primary_tag_value", - type: "string", + "primaryTagName": { + "baseName": "primary_tag_name", + "type": "string", }, - resourceName: { - baseName: "resource_name", - type: "string", + "primaryTagValue": { + "baseName": "primary_tag_value", + "type": "string", }, - service: { - baseName: "service", - type: "string", - required: true, + "resourceName": { + "baseName": "resource_name", + "type": "string", }, - stat: { - baseName: "stat", - type: "FormulaAndFunctionApmResourceStatName", - required: true, + "service": { + "baseName": "service", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "stat": { + "baseName": "stat", + "type": "FormulaAndFunctionApmResourceStatName", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionApmResourceStatsQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostDataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostDataSource.ts index 71266913ea6e..60dec551477f 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostDataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostDataSource.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for Cloud Cost queries. - */ +*/ -export type FormulaAndFunctionCloudCostDataSource = - | typeof CLOUD_COST - | UnparsedObject; -export const CLOUD_COST = "cloud_cost"; +export type FormulaAndFunctionCloudCostDataSource = typeof CLOUD_COST | UnparsedObject; +export const CLOUD_COST = 'cloud_cost'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostQueryDefinition.ts index 76da752c05a5..b5ab56e8f8ef 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionCloudCostQueryDefinition.ts @@ -3,34 +3,40 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionCloudCostDataSource } from "./FormulaAndFunctionCloudCostDataSource"; import { WidgetAggregator } from "./WidgetAggregator"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions Cloud Cost query. - */ +*/ export class FormulaAndFunctionCloudCostQueryDefinition { /** * Aggregator used for the request. - */ + */ "aggregator"?: WidgetAggregator; /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data source for Cloud Cost queries. - */ + */ "dataSource": FormulaAndFunctionCloudCostDataSource; /** * Name of the query for use in formulas. - */ + */ "name": string; /** * Query for Cloud Cost data. - */ + */ "query": string; /** @@ -49,41 +55,67 @@ export class FormulaAndFunctionCloudCostQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "WidgetAggregator", + "aggregator": { + "baseName": "aggregator", + "type": "WidgetAggregator", }, - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionCloudCostDataSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionCloudCostDataSource", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionCloudCostQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventAggregation.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventAggregation.ts index 9c029ad3ae8b..2d944b887bc8 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventAggregation.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventAggregation.ts @@ -4,35 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Aggregation methods for event platform queries. - */ +*/ -export type FormulaAndFunctionEventAggregation = - | typeof COUNT - | typeof CARDINALITY - | typeof MEDIAN - | typeof PC75 - | typeof PC90 - | typeof PC95 - | typeof PC98 - | typeof PC99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const MEDIAN = "median"; -export const PC75 = "pc75"; -export const PC90 = "pc90"; -export const PC95 = "pc95"; -export const PC98 = "pc98"; -export const PC99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; +export type FormulaAndFunctionEventAggregation = typeof COUNT| typeof CARDINALITY| typeof MEDIAN| typeof PC75| typeof PC90| typeof PC95| typeof PC98| typeof PC99| typeof SUM| typeof MIN| typeof MAX| typeof AVG | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const MEDIAN = 'median'; +export const PC75 = 'pc75'; +export const PC90 = 'pc90'; +export const PC95 = 'pc95'; +export const PC98 = 'pc98'; +export const PC99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.ts index adee57d15ad3..f9b9cf6b1a28 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.ts @@ -3,48 +3,54 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionEventQueryDefinitionCompute } from "./FormulaAndFunctionEventQueryDefinitionCompute"; import { FormulaAndFunctionEventQueryDefinitionSearch } from "./FormulaAndFunctionEventQueryDefinitionSearch"; import { FormulaAndFunctionEventQueryGroupBy } from "./FormulaAndFunctionEventQueryGroupBy"; import { FormulaAndFunctionEventsDataSource } from "./FormulaAndFunctionEventsDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions events query. - */ +*/ export class FormulaAndFunctionEventQueryDefinition { /** * Compute options. - */ + */ "compute": FormulaAndFunctionEventQueryDefinitionCompute; /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data source for event platform-based queries. - */ + */ "dataSource": FormulaAndFunctionEventsDataSource; /** * Group by options. - */ + */ "groupBy"?: Array; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. - */ + */ "indexes"?: Array; /** * Name of the query for use in formulas. - */ + */ "name": string; /** * Search options. - */ + */ "search"?: FormulaAndFunctionEventQueryDefinitionSearch; /** * Option for storage location. Feature in Private Beta. - */ + */ "storage"?: string; /** @@ -63,53 +69,79 @@ export class FormulaAndFunctionEventQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "FormulaAndFunctionEventQueryDefinitionCompute", - required: true, + "compute": { + "baseName": "compute", + "type": "FormulaAndFunctionEventQueryDefinitionCompute", + "required": true, }, - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionEventsDataSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionEventsDataSource", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - indexes: { - baseName: "indexes", - type: "Array", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - search: { - baseName: "search", - type: "FormulaAndFunctionEventQueryDefinitionSearch", + "search": { + "baseName": "search", + "type": "FormulaAndFunctionEventQueryDefinitionSearch", }, - storage: { - baseName: "storage", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "storage": { + "baseName": "storage", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionEventQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionCompute.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionCompute.ts index 79ad50106681..94ea0bbde0b0 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionCompute.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionCompute.ts @@ -5,23 +5,28 @@ */ import { FormulaAndFunctionEventAggregation } from "./FormulaAndFunctionEventAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Compute options. - */ +*/ export class FormulaAndFunctionEventQueryDefinitionCompute { /** * Aggregation methods for event platform queries. - */ + */ "aggregation": FormulaAndFunctionEventAggregation; /** * A time interval in milliseconds. - */ + */ "interval"?: number; /** * Measurable attribute to compute. - */ + */ "metric"?: string; /** @@ -40,32 +45,58 @@ export class FormulaAndFunctionEventQueryDefinitionCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "FormulaAndFunctionEventAggregation", - required: true, - }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "aggregation": { + "baseName": "aggregation", + "type": "FormulaAndFunctionEventAggregation", + "required": true, }, - metric: { - baseName: "metric", - type: "string", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metric": { + "baseName": "metric", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionEventQueryDefinitionCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionSearch.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionSearch.ts index 6b8d5b1f1313..10ab2f4d0342 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionSearch.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinitionSearch.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Search options. - */ +*/ export class FormulaAndFunctionEventQueryDefinitionSearch { /** * Events search string. - */ + */ "query": string; /** @@ -31,23 +36,49 @@ export class FormulaAndFunctionEventQueryDefinitionSearch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionEventQueryDefinitionSearch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBy.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBy.ts index 3d7274e3ad1b..e4f4dfea5d80 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBy.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBy.ts @@ -5,23 +5,28 @@ */ import { FormulaAndFunctionEventQueryGroupBySort } from "./FormulaAndFunctionEventQueryGroupBySort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of objects used to group by. - */ +*/ export class FormulaAndFunctionEventQueryGroupBy { /** * Event facet. - */ + */ "facet": string; /** * Number of groups to return. - */ + */ "limit"?: number; /** * Options for sorting group by results. - */ + */ "sort"?: FormulaAndFunctionEventQueryGroupBySort; /** @@ -40,32 +45,58 @@ export class FormulaAndFunctionEventQueryGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - sort: { - baseName: "sort", - type: "FormulaAndFunctionEventQueryGroupBySort", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "FormulaAndFunctionEventQueryGroupBySort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionEventQueryGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBySort.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBySort.ts index 31a2c41dd435..d91832f5c278 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBySort.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryGroupBySort.ts @@ -6,23 +6,28 @@ import { FormulaAndFunctionEventAggregation } from "./FormulaAndFunctionEventAggregation"; import { QuerySortOrder } from "./QuerySortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for sorting group by results. - */ +*/ export class FormulaAndFunctionEventQueryGroupBySort { /** * Aggregation methods for event platform queries. - */ + */ "aggregation": FormulaAndFunctionEventAggregation; /** * Metric used for sorting group by results. - */ + */ "metric"?: string; /** * Direction of sort. - */ + */ "order"?: QuerySortOrder; /** @@ -41,31 +46,57 @@ export class FormulaAndFunctionEventQueryGroupBySort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "FormulaAndFunctionEventAggregation", - required: true, - }, - metric: { - baseName: "metric", - type: "string", + "aggregation": { + "baseName": "aggregation", + "type": "FormulaAndFunctionEventAggregation", + "required": true, }, - order: { - baseName: "order", - type: "QuerySortOrder", + "metric": { + "baseName": "metric", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "QuerySortOrder", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionEventQueryGroupBySort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.ts index 6b9f547433cb..dbb04dfc4ecd 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.ts @@ -4,33 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for event platform-based queries. - */ +*/ -export type FormulaAndFunctionEventsDataSource = - | typeof LOGS - | typeof SPANS - | typeof NETWORK - | typeof RUM - | typeof SECURITY_SIGNALS - | typeof PROFILES - | typeof AUDIT - | typeof EVENTS - | typeof CI_TESTS - | typeof CI_PIPELINES - | typeof INCIDENT_ANALYTICS - | UnparsedObject; -export const LOGS = "logs"; -export const SPANS = "spans"; -export const NETWORK = "network"; -export const RUM = "rum"; -export const SECURITY_SIGNALS = "security_signals"; -export const PROFILES = "profiles"; -export const AUDIT = "audit"; -export const EVENTS = "events"; -export const CI_TESTS = "ci_tests"; -export const CI_PIPELINES = "ci_pipelines"; -export const INCIDENT_ANALYTICS = "incident_analytics"; +export type FormulaAndFunctionEventsDataSource = typeof LOGS| typeof SPANS| typeof NETWORK| typeof RUM| typeof SECURITY_SIGNALS| typeof PROFILES| typeof AUDIT| typeof EVENTS| typeof CI_TESTS| typeof CI_PIPELINES| typeof INCIDENT_ANALYTICS | UnparsedObject; +export const LOGS = 'logs'; +export const SPANS = 'spans'; +export const NETWORK = 'network'; +export const RUM = 'rum'; +export const SECURITY_SIGNALS = 'security_signals'; +export const PROFILES = 'profiles'; +export const AUDIT = 'audit'; +export const EVENTS = 'events'; +export const CI_TESTS = 'ci_tests'; +export const CI_PIPELINES = 'ci_pipelines'; +export const INCIDENT_ANALYTICS = 'incident_analytics'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricAggregation.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricAggregation.ts index e8499ee7a6cf..a5f82a3a2987 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricAggregation.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricAggregation.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The aggregation methods available for metrics queries. - */ +*/ -export type FormulaAndFunctionMetricAggregation = - | typeof AVG - | typeof MIN - | typeof MAX - | typeof SUM - | typeof LAST - | typeof AREA - | typeof L2NORM - | typeof PERCENTILE - | UnparsedObject; -export const AVG = "avg"; -export const MIN = "min"; -export const MAX = "max"; -export const SUM = "sum"; -export const LAST = "last"; -export const AREA = "area"; -export const L2NORM = "l2norm"; -export const PERCENTILE = "percentile"; +export type FormulaAndFunctionMetricAggregation = typeof AVG| typeof MIN| typeof MAX| typeof SUM| typeof LAST| typeof AREA| typeof L2NORM| typeof PERCENTILE | UnparsedObject; +export const AVG = 'avg'; +export const MIN = 'min'; +export const MAX = 'max'; +export const SUM = 'sum'; +export const LAST = 'last'; +export const AREA = 'area'; +export const L2NORM = 'l2norm'; +export const PERCENTILE = 'percentile'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricDataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricDataSource.ts index 1fc079bfc8ef..abe19d0d7691 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricDataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricDataSource.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for metrics queries. - */ +*/ -export type FormulaAndFunctionMetricDataSource = - | typeof METRICS - | UnparsedObject; -export const METRICS = "metrics"; +export type FormulaAndFunctionMetricDataSource = typeof METRICS | UnparsedObject; +export const METRICS = 'metrics'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricQueryDefinition.ts index 813b1d8281a2..594edeb35500 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionMetricQueryDefinition.ts @@ -3,34 +3,40 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionMetricAggregation } from "./FormulaAndFunctionMetricAggregation"; import { FormulaAndFunctionMetricDataSource } from "./FormulaAndFunctionMetricDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions metrics query. - */ +*/ export class FormulaAndFunctionMetricQueryDefinition { /** * The aggregation methods available for metrics queries. - */ + */ "aggregator"?: FormulaAndFunctionMetricAggregation; /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data source for metrics queries. - */ + */ "dataSource": FormulaAndFunctionMetricDataSource; /** * Name of the query for use in formulas. - */ + */ "name": string; /** * Metrics query definition. - */ + */ "query": string; /** @@ -49,41 +55,67 @@ export class FormulaAndFunctionMetricQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "FormulaAndFunctionMetricAggregation", + "aggregator": { + "baseName": "aggregator", + "type": "FormulaAndFunctionMetricAggregation", }, - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionMetricDataSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionMetricDataSource", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionMetricQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDataSource.ts index efacb3eb469e..635cc18a5d33 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDataSource.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data sources that rely on the process backend. - */ +*/ -export type FormulaAndFunctionProcessQueryDataSource = - | typeof PROCESS - | typeof CONTAINER - | UnparsedObject; -export const PROCESS = "process"; -export const CONTAINER = "container"; +export type FormulaAndFunctionProcessQueryDataSource = typeof PROCESS| typeof CONTAINER | UnparsedObject; +export const PROCESS = 'process'; +export const CONTAINER = 'container'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDefinition.ts index 72a445a76f13..61316e27c4c2 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDefinition.ts @@ -3,55 +3,61 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionMetricAggregation } from "./FormulaAndFunctionMetricAggregation"; import { FormulaAndFunctionProcessQueryDataSource } from "./FormulaAndFunctionProcessQueryDataSource"; import { QuerySortOrder } from "./QuerySortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Process query using formulas and functions. - */ +*/ export class FormulaAndFunctionProcessQueryDefinition { /** * The aggregation methods available for metrics queries. - */ + */ "aggregator"?: FormulaAndFunctionMetricAggregation; /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data sources that rely on the process backend. - */ + */ "dataSource": FormulaAndFunctionProcessQueryDataSource; /** * Whether to normalize the CPU percentages. - */ + */ "isNormalizedCpu"?: boolean; /** * Number of hits to return. - */ + */ "limit"?: number; /** * Process metric name. - */ + */ "metric": string; /** * Name of query for use in formulas. - */ + */ "name": string; /** * Direction of sort. - */ + */ "sort"?: QuerySortOrder; /** * An array of tags to filter by. - */ + */ "tagFilters"?: Array; /** * Text to use as filter. - */ + */ "textFilter"?: string; /** @@ -70,62 +76,88 @@ export class FormulaAndFunctionProcessQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "FormulaAndFunctionMetricAggregation", - }, - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", + "aggregator": { + "baseName": "aggregator", + "type": "FormulaAndFunctionMetricAggregation", }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionProcessQueryDataSource", - required: true, + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - isNormalizedCpu: { - baseName: "is_normalized_cpu", - type: "boolean", + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionProcessQueryDataSource", + "required": true, }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "isNormalizedCpu": { + "baseName": "is_normalized_cpu", + "type": "boolean", }, - metric: { - baseName: "metric", - type: "string", - required: true, + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", - required: true, + "metric": { + "baseName": "metric", + "type": "string", + "required": true, }, - sort: { - baseName: "sort", - type: "QuerySortOrder", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - tagFilters: { - baseName: "tag_filters", - type: "Array", + "sort": { + "baseName": "sort", + "type": "QuerySortOrder", }, - textFilter: { - baseName: "text_filter", - type: "string", + "tagFilters": { + "baseName": "tag_filters", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "textFilter": { + "baseName": "text_filter", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionProcessQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionQueryDefinition.ts index 16d945c89a76..69ef17472cb6 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionQueryDefinition.ts @@ -11,18 +11,15 @@ import { FormulaAndFunctionMetricQueryDefinition } from "./FormulaAndFunctionMet import { FormulaAndFunctionProcessQueryDefinition } from "./FormulaAndFunctionProcessQueryDefinition"; import { FormulaAndFunctionSLOQueryDefinition } from "./FormulaAndFunctionSLOQueryDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A formula and function query. - */ +*/ -export type FormulaAndFunctionQueryDefinition = - | FormulaAndFunctionMetricQueryDefinition - | FormulaAndFunctionEventQueryDefinition - | FormulaAndFunctionProcessQueryDefinition - | FormulaAndFunctionApmDependencyStatsQueryDefinition - | FormulaAndFunctionApmResourceStatsQueryDefinition - | FormulaAndFunctionSLOQueryDefinition - | FormulaAndFunctionCloudCostQueryDefinition - | UnparsedObject; +export type FormulaAndFunctionQueryDefinition = FormulaAndFunctionMetricQueryDefinition | FormulaAndFunctionEventQueryDefinition | FormulaAndFunctionProcessQueryDefinition | FormulaAndFunctionApmDependencyStatsQueryDefinition | FormulaAndFunctionApmResourceStatsQueryDefinition | FormulaAndFunctionSLOQueryDefinition | FormulaAndFunctionCloudCostQueryDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionResponseFormat.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionResponseFormat.ts index 3f43dcb9961c..7f0755c52de0 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionResponseFormat.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionResponseFormat.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ +*/ -export type FormulaAndFunctionResponseFormat = - | typeof TIMESERIES - | typeof SCALAR - | typeof EVENT_LIST - | UnparsedObject; -export const TIMESERIES = "timeseries"; -export const SCALAR = "scalar"; -export const EVENT_LIST = "event_list"; +export type FormulaAndFunctionResponseFormat = typeof TIMESERIES| typeof SCALAR| typeof EVENT_LIST | UnparsedObject; +export const TIMESERIES = 'timeseries'; +export const SCALAR = 'scalar'; +export const EVENT_LIST = 'event_list'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.ts index 93e9ec9d2dc8..28bf98c23a93 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for SLO measures queries. - */ +*/ export type FormulaAndFunctionSLODataSource = typeof SLO | UnparsedObject; -export const SLO = "slo"; +export const SLO = 'slo'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.ts index 992386cf3b3b..2191bd3e2264 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Group mode to query measures. - */ +*/ -export type FormulaAndFunctionSLOGroupMode = - | typeof OVERALL - | typeof COMPONENTS - | UnparsedObject; -export const OVERALL = "overall"; -export const COMPONENTS = "components"; +export type FormulaAndFunctionSLOGroupMode = typeof OVERALL| typeof COMPONENTS | UnparsedObject; +export const OVERALL = 'overall'; +export const COMPONENTS = 'components'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts index 7cf4e1dbacfe..b96642dca32e 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * SLO measures queries. - */ +*/ -export type FormulaAndFunctionSLOMeasure = - | typeof GOOD_EVENTS - | typeof BAD_EVENTS - | typeof GOOD_MINUTES - | typeof BAD_MINUTES - | typeof SLO_STATUS - | typeof ERROR_BUDGET_REMAINING - | typeof BURN_RATE - | typeof ERROR_BUDGET_BURNDOWN - | UnparsedObject; -export const GOOD_EVENTS = "good_events"; -export const BAD_EVENTS = "bad_events"; -export const GOOD_MINUTES = "good_minutes"; -export const BAD_MINUTES = "bad_minutes"; -export const SLO_STATUS = "slo_status"; -export const ERROR_BUDGET_REMAINING = "error_budget_remaining"; -export const BURN_RATE = "burn_rate"; -export const ERROR_BUDGET_BURNDOWN = "error_budget_burndown"; +export type FormulaAndFunctionSLOMeasure = typeof GOOD_EVENTS| typeof BAD_EVENTS| typeof GOOD_MINUTES| typeof BAD_MINUTES| typeof SLO_STATUS| typeof ERROR_BUDGET_REMAINING| typeof BURN_RATE| typeof ERROR_BUDGET_BURNDOWN | UnparsedObject; +export const GOOD_EVENTS = 'good_events'; +export const BAD_EVENTS = 'bad_events'; +export const GOOD_MINUTES = 'good_minutes'; +export const BAD_MINUTES = 'bad_minutes'; +export const SLO_STATUS = 'slo_status'; +export const ERROR_BUDGET_REMAINING = 'error_budget_remaining'; +export const BURN_RATE = 'burn_rate'; +export const ERROR_BUDGET_BURNDOWN = 'error_budget_burndown'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.ts index 6f884b8261c9..9bb7d6efe1ac 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.ts @@ -3,48 +3,54 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { CrossOrgUuidsItem } from "./CrossOrgUuidsItem"; import { FormulaAndFunctionSLODataSource } from "./FormulaAndFunctionSLODataSource"; import { FormulaAndFunctionSLOGroupMode } from "./FormulaAndFunctionSLOGroupMode"; import { FormulaAndFunctionSLOMeasure } from "./FormulaAndFunctionSLOMeasure"; import { FormulaAndFunctionSLOQueryType } from "./FormulaAndFunctionSLOQueryType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions metrics query. - */ +*/ export class FormulaAndFunctionSLOQueryDefinition { /** * Additional filters applied to the SLO query. - */ + */ "additionalQueryFilters"?: string; /** * The source organization UUID for cross organization queries. Feature in Private Beta. - */ + */ "crossOrgUuids"?: Array; /** * Data source for SLO measures queries. - */ + */ "dataSource": FormulaAndFunctionSLODataSource; /** * Group mode to query measures. - */ + */ "groupMode"?: FormulaAndFunctionSLOGroupMode; /** * SLO measures queries. - */ + */ "measure": FormulaAndFunctionSLOMeasure; /** * Name of the query for use in formulas. - */ + */ "name"?: string; /** * ID of an SLO to query measures. - */ + */ "sloId": string; /** * Name of the query for use in formulas. - */ + */ "sloQueryType"?: FormulaAndFunctionSLOQueryType; /** @@ -63,53 +69,79 @@ export class FormulaAndFunctionSLOQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - additionalQueryFilters: { - baseName: "additional_query_filters", - type: "string", + "additionalQueryFilters": { + "baseName": "additional_query_filters", + "type": "string", }, - crossOrgUuids: { - baseName: "cross_org_uuids", - type: "Array", + "crossOrgUuids": { + "baseName": "cross_org_uuids", + "type": "Array", }, - dataSource: { - baseName: "data_source", - type: "FormulaAndFunctionSLODataSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FormulaAndFunctionSLODataSource", + "required": true, }, - groupMode: { - baseName: "group_mode", - type: "FormulaAndFunctionSLOGroupMode", + "groupMode": { + "baseName": "group_mode", + "type": "FormulaAndFunctionSLOGroupMode", }, - measure: { - baseName: "measure", - type: "FormulaAndFunctionSLOMeasure", - required: true, + "measure": { + "baseName": "measure", + "type": "FormulaAndFunctionSLOMeasure", + "required": true, }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sloId: { - baseName: "slo_id", - type: "string", - required: true, + "sloId": { + "baseName": "slo_id", + "type": "string", + "required": true, }, - sloQueryType: { - baseName: "slo_query_type", - type: "FormulaAndFunctionSLOQueryType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sloQueryType": { + "baseName": "slo_query_type", + "type": "FormulaAndFunctionSLOQueryType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaAndFunctionSLOQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.ts index d2b45698b54c..78de51e3a071 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Name of the query for use in formulas. - */ +*/ -export type FormulaAndFunctionSLOQueryType = - | typeof METRIC - | typeof TIME_SLICE - | UnparsedObject; -export const METRIC = "metric"; -export const TIME_SLICE = "time_slice"; +export type FormulaAndFunctionSLOQueryType = typeof METRIC| typeof TIME_SLICE | UnparsedObject; +export const METRIC = 'metric'; +export const TIME_SLICE = 'time_slice'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FormulaType.ts b/packages/datadog-api-client-v1/models/FormulaType.ts index 684938ef34fa..6e933920a11d 100644 --- a/packages/datadog-api-client-v1/models/FormulaType.ts +++ b/packages/datadog-api-client-v1/models/FormulaType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Set the sort type to formula. - */ +*/ export type FormulaType = typeof FORMULA | UnparsedObject; -export const FORMULA = "formula"; +export const FORMULA = 'formula'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FreeTextWidgetDefinition.ts b/packages/datadog-api-client-v1/models/FreeTextWidgetDefinition.ts index 71c967b0d265..63fd13a270ff 100644 --- a/packages/datadog-api-client-v1/models/FreeTextWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/FreeTextWidgetDefinition.ts @@ -6,31 +6,36 @@ import { FreeTextWidgetDefinitionType } from "./FreeTextWidgetDefinitionType"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Free text is a widget that allows you to add headings to your screenboard. Commonly used to state the overall purpose of the dashboard. Only available on FREE layout dashboards. - */ +*/ export class FreeTextWidgetDefinition { /** * Color of the text. - */ + */ "color"?: string; /** * Size of the text. - */ + */ "fontSize"?: string; /** * Text to display. - */ + */ "text": string; /** * How to align the text on the widget. - */ + */ "textAlign"?: WidgetTextAlign; /** * Type of the free text widget. - */ + */ "type": FreeTextWidgetDefinitionType; /** @@ -49,40 +54,66 @@ export class FreeTextWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - color: { - baseName: "color", - type: "string", + "color": { + "baseName": "color", + "type": "string", }, - fontSize: { - baseName: "font_size", - type: "string", + "fontSize": { + "baseName": "font_size", + "type": "string", }, - text: { - baseName: "text", - type: "string", - required: true, + "text": { + "baseName": "text", + "type": "string", + "required": true, }, - textAlign: { - baseName: "text_align", - type: "WidgetTextAlign", + "textAlign": { + "baseName": "text_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "FreeTextWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FreeTextWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FreeTextWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FreeTextWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/FreeTextWidgetDefinitionType.ts index edd290d485cb..7815164eebd2 100644 --- a/packages/datadog-api-client-v1/models/FreeTextWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/FreeTextWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the free text widget. - */ +*/ export type FreeTextWidgetDefinitionType = typeof FREE_TEXT | UnparsedObject; -export const FREE_TEXT = "free_text"; +export const FREE_TEXT = 'free_text'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FunnelQuery.ts b/packages/datadog-api-client-v1/models/FunnelQuery.ts index bbcb34a2903a..9d8b42e73b89 100644 --- a/packages/datadog-api-client-v1/models/FunnelQuery.ts +++ b/packages/datadog-api-client-v1/models/FunnelQuery.ts @@ -6,23 +6,28 @@ import { FunnelSource } from "./FunnelSource"; import { FunnelStep } from "./FunnelStep"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated funnel widget. - */ +*/ export class FunnelQuery { /** * Source from which to query items to display in the funnel. - */ + */ "dataSource": FunnelSource; /** * The widget query. - */ + */ "queryString": string; /** * List of funnel steps. - */ + */ "steps": Array; /** @@ -41,33 +46,59 @@ export class FunnelQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dataSource: { - baseName: "data_source", - type: "FunnelSource", - required: true, - }, - queryString: { - baseName: "query_string", - type: "string", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "FunnelSource", + "required": true, }, - steps: { - baseName: "steps", - type: "Array", - required: true, + "queryString": { + "baseName": "query_string", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "steps": { + "baseName": "steps", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FunnelQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FunnelRequestType.ts b/packages/datadog-api-client-v1/models/FunnelRequestType.ts index b0f3a2198a05..60c8d3f9cf72 100644 --- a/packages/datadog-api-client-v1/models/FunnelRequestType.ts +++ b/packages/datadog-api-client-v1/models/FunnelRequestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget request type. - */ +*/ export type FunnelRequestType = typeof FUNNEL | UnparsedObject; -export const FUNNEL = "funnel"; +export const FUNNEL = 'funnel'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FunnelSource.ts b/packages/datadog-api-client-v1/models/FunnelSource.ts index 501f31103316..a883d4d46f27 100644 --- a/packages/datadog-api-client-v1/models/FunnelSource.ts +++ b/packages/datadog-api-client-v1/models/FunnelSource.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Source from which to query items to display in the funnel. - */ +*/ export type FunnelSource = typeof RUM | UnparsedObject; -export const RUM = "rum"; +export const RUM = 'rum'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FunnelStep.ts b/packages/datadog-api-client-v1/models/FunnelStep.ts index 3f9337a0007c..eefa0e2ba700 100644 --- a/packages/datadog-api-client-v1/models/FunnelStep.ts +++ b/packages/datadog-api-client-v1/models/FunnelStep.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The funnel step. - */ +*/ export class FunnelStep { /** * The facet of the step. - */ + */ "facet": string; /** * The value of the step. - */ + */ "value": string; /** @@ -35,28 +40,54 @@ export class FunnelStep { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FunnelStep.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FunnelWidgetDefinition.ts b/packages/datadog-api-client-v1/models/FunnelWidgetDefinition.ts index f0f8af8a62ec..7ea0ff074da6 100644 --- a/packages/datadog-api-client-v1/models/FunnelWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/FunnelWidgetDefinition.ts @@ -8,35 +8,40 @@ import { FunnelWidgetRequest } from "./FunnelWidgetRequest"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application. - */ +*/ export class FunnelWidgetDefinition { /** * Request payload used to query items. - */ + */ "requests": [FunnelWidgetRequest]; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * The title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * The size of the title. - */ + */ "titleSize"?: string; /** * Type of funnel widget. - */ + */ "type": FunnelWidgetDefinitionType; /** @@ -55,44 +60,70 @@ export class FunnelWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - requests: { - baseName: "requests", - type: "[FunnelWidgetRequest]", - required: true, - }, - time: { - baseName: "time", - type: "WidgetTime", + "requests": { + "baseName": "requests", + "type": "[FunnelWidgetRequest]", + "required": true, }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "FunnelWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FunnelWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FunnelWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/FunnelWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/FunnelWidgetDefinitionType.ts index aafc647e1eb3..e3acbae89b0c 100644 --- a/packages/datadog-api-client-v1/models/FunnelWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/FunnelWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of funnel widget. - */ +*/ export type FunnelWidgetDefinitionType = typeof FUNNEL | UnparsedObject; -export const FUNNEL = "funnel"; +export const FUNNEL = 'funnel'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/FunnelWidgetRequest.ts b/packages/datadog-api-client-v1/models/FunnelWidgetRequest.ts index 6c60ffd362bb..4697dcef2505 100644 --- a/packages/datadog-api-client-v1/models/FunnelWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/FunnelWidgetRequest.ts @@ -6,19 +6,24 @@ import { FunnelQuery } from "./FunnelQuery"; import { FunnelRequestType } from "./FunnelRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated funnel widget. - */ +*/ export class FunnelWidgetRequest { /** * Updated funnel widget. - */ + */ "query": FunnelQuery; /** * Widget request type. - */ + */ "requestType": FunnelRequestType; /** @@ -37,28 +42,54 @@ export class FunnelWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "FunnelQuery", - required: true, + "query": { + "baseName": "query", + "type": "FunnelQuery", + "required": true, }, - requestType: { - baseName: "request_type", - type: "FunnelRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "requestType": { + "baseName": "request_type", + "type": "FunnelRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FunnelWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GCPAccount.ts b/packages/datadog-api-client-v1/models/GCPAccount.ts index 3d9616334d69..46ab46e6e65d 100644 --- a/packages/datadog-api-client-v1/models/GCPAccount.ts +++ b/packages/datadog-api-client-v1/models/GCPAccount.ts @@ -4,86 +4,91 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Your Google Cloud Platform Account. - */ +*/ export class GCPAccount { /** * Should be `https://www.googleapis.com/oauth2/v1/certs`. - */ + */ "authProviderX509CertUrl"?: string; /** * Should be `https://accounts.google.com/o/oauth2/auth`. - */ + */ "authUri"?: string; /** * Silence monitors for expected GCE instance shutdowns. - */ + */ "automute"?: boolean; /** * Your email found in your JSON service account key. - */ + */ "clientEmail"?: string; /** * Your ID found in your JSON service account key. - */ + */ "clientId"?: string; /** * Should be `https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL` * where `$CLIENT_EMAIL` is the email found in your JSON service account key. - */ + */ "clientX509CertUrl"?: string; /** * Limit the Cloud Run revisions that are pulled into Datadog by using tags. * Only Cloud Run revision resources that apply to specified filters are imported into Datadog. - */ + */ "cloudRunRevisionFilters"?: Array; /** * An array of errors. - */ + */ "errors"?: Array; /** * Limit the GCE instances that are pulled into Datadog by using tags. * Only hosts that match one of the defined tags are imported into Datadog. - */ + */ "hostFilters"?: string; /** * When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true. - */ + */ "isCspmEnabled"?: boolean; /** * When enabled, Datadog scans for all resource change data in your Google Cloud environment. - */ + */ "isResourceChangeCollectionEnabled"?: boolean; /** * When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account. - */ + */ "isSecurityCommandCenterEnabled"?: boolean; /** * Your private key name found in your JSON service account key. - */ + */ "privateKey"?: string; /** * Your private key ID found in your JSON service account key. - */ + */ "privateKeyId"?: string; /** * Your Google Cloud project ID found in your JSON service account key. - */ + */ "projectId"?: string; /** * When enabled, Datadog scans for all resources in your GCP environment. - */ + */ "resourceCollectionEnabled"?: boolean; /** * Should be `https://accounts.google.com/o/oauth2/token`. - */ + */ "tokenUri"?: string; /** * The value for service_account found in your JSON service account key. - */ + */ "type"?: string; /** @@ -102,90 +107,116 @@ export class GCPAccount { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - authProviderX509CertUrl: { - baseName: "auth_provider_x509_cert_url", - type: "string", - }, - authUri: { - baseName: "auth_uri", - type: "string", - }, - automute: { - baseName: "automute", - type: "boolean", - }, - clientEmail: { - baseName: "client_email", - type: "string", - }, - clientId: { - baseName: "client_id", - type: "string", - }, - clientX509CertUrl: { - baseName: "client_x509_cert_url", - type: "string", - }, - cloudRunRevisionFilters: { - baseName: "cloud_run_revision_filters", - type: "Array", - }, - errors: { - baseName: "errors", - type: "Array", - }, - hostFilters: { - baseName: "host_filters", - type: "string", - }, - isCspmEnabled: { - baseName: "is_cspm_enabled", - type: "boolean", - }, - isResourceChangeCollectionEnabled: { - baseName: "is_resource_change_collection_enabled", - type: "boolean", - }, - isSecurityCommandCenterEnabled: { - baseName: "is_security_command_center_enabled", - type: "boolean", - }, - privateKey: { - baseName: "private_key", - type: "string", - }, - privateKeyId: { - baseName: "private_key_id", - type: "string", - }, - projectId: { - baseName: "project_id", - type: "string", - }, - resourceCollectionEnabled: { - baseName: "resource_collection_enabled", - type: "boolean", - }, - tokenUri: { - baseName: "token_uri", - type: "string", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "authProviderX509CertUrl": { + "baseName": "auth_provider_x509_cert_url", + "type": "string", + }, + "authUri": { + "baseName": "auth_uri", + "type": "string", + }, + "automute": { + "baseName": "automute", + "type": "boolean", + }, + "clientEmail": { + "baseName": "client_email", + "type": "string", + }, + "clientId": { + "baseName": "client_id", + "type": "string", + }, + "clientX509CertUrl": { + "baseName": "client_x509_cert_url", + "type": "string", + }, + "cloudRunRevisionFilters": { + "baseName": "cloud_run_revision_filters", + "type": "Array", + }, + "errors": { + "baseName": "errors", + "type": "Array", + }, + "hostFilters": { + "baseName": "host_filters", + "type": "string", + }, + "isCspmEnabled": { + "baseName": "is_cspm_enabled", + "type": "boolean", + }, + "isResourceChangeCollectionEnabled": { + "baseName": "is_resource_change_collection_enabled", + "type": "boolean", + }, + "isSecurityCommandCenterEnabled": { + "baseName": "is_security_command_center_enabled", + "type": "boolean", + }, + "privateKey": { + "baseName": "private_key", + "type": "string", + }, + "privateKeyId": { + "baseName": "private_key_id", + "type": "string", + }, + "projectId": { + "baseName": "project_id", + "type": "string", + }, + "resourceCollectionEnabled": { + "baseName": "resource_collection_enabled", + "type": "boolean", + }, + "tokenUri": { + "baseName": "token_uri", + "type": "string", + }, + "type": { + "baseName": "type", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPAccount.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts index 6527bfc89284..2d254eb8a514 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts @@ -11,50 +11,55 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * This visualization displays a series of values by country on a world map. - */ +*/ export class GeomapWidgetDefinition { /** * A list of custom links. - */ + */ "customLinks"?: Array; /** * Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. - * + * * See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) * for information about building the `REQUEST_SCHEMA`. - */ + */ "requests": [GeomapWidgetRequest]; /** * The style to apply to the widget. - */ + */ "style": GeomapWidgetDefinitionStyle; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * The title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * The size of the title. - */ + */ "titleSize"?: string; /** * Type of the geomap widget. - */ + */ "type": GeomapWidgetDefinitionType; /** * The view of the world that the map should render. - */ + */ "view": GeomapWidgetDefinitionView; /** @@ -73,58 +78,84 @@ export class GeomapWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - requests: { - baseName: "requests", - type: "[GeomapWidgetRequest]", - required: true, + "requests": { + "baseName": "requests", + "type": "[GeomapWidgetRequest]", + "required": true, }, - style: { - baseName: "style", - type: "GeomapWidgetDefinitionStyle", - required: true, + "style": { + "baseName": "style", + "type": "GeomapWidgetDefinitionStyle", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "GeomapWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "GeomapWidgetDefinitionType", + "required": true, }, - view: { - baseName: "view", - type: "GeomapWidgetDefinitionView", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "view": { + "baseName": "view", + "type": "GeomapWidgetDefinitionView", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GeomapWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionStyle.ts b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionStyle.ts index 8258eeb2eb51..a33041429e9c 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionStyle.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionStyle.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The style to apply to the widget. - */ +*/ export class GeomapWidgetDefinitionStyle { /** * The color palette to apply to the widget. - */ + */ "palette": string; /** * Whether to flip the palette tones. - */ + */ "paletteFlip": boolean; /** @@ -35,28 +40,54 @@ export class GeomapWidgetDefinitionStyle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - palette: { - baseName: "palette", - type: "string", - required: true, + "palette": { + "baseName": "palette", + "type": "string", + "required": true, }, - paletteFlip: { - baseName: "palette_flip", - type: "boolean", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "paletteFlip": { + "baseName": "palette_flip", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GeomapWidgetDefinitionStyle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionType.ts index 1ceca6909261..c679e6a3339b 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the geomap widget. - */ +*/ export type GeomapWidgetDefinitionType = typeof GEOMAP | UnparsedObject; -export const GEOMAP = "geomap"; +export const GEOMAP = 'geomap'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts index ccad9119a0ac..e6fa530d7167 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The view of the world that the map should render. - */ +*/ export class GeomapWidgetDefinitionView { /** * The 2-letter ISO code of a country to focus the map on. Or `WORLD`. - */ + */ "focus": string; /** @@ -31,23 +36,49 @@ export class GeomapWidgetDefinitionView { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - focus: { - baseName: "focus", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "focus": { + "baseName": "focus", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GeomapWidgetDefinitionView.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts b/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts index bfeda770d98d..89da98185dd6 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts @@ -11,51 +11,56 @@ import { LogQueryDefinition } from "./LogQueryDefinition"; import { WidgetFormula } from "./WidgetFormula"; import { WidgetSortBy } from "./WidgetSortBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An updated geomap widget. - */ +*/ export class GeomapWidgetRequest { /** * Widget columns. - */ + */ "columns"?: Array; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The widget metrics query. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Updated list stream widget. - */ + */ "query"?: ListStreamQuery; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * The controls for sorting the widget. - */ + */ "sort"?: WidgetSortBy; /** @@ -74,58 +79,84 @@ export class GeomapWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - columns: { - baseName: "columns", - type: "Array", - }, - formulas: { - baseName: "formulas", - type: "Array", + "columns": { + "baseName": "columns", + "type": "Array", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - q: { - baseName: "q", - type: "string", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - queries: { - baseName: "queries", - type: "Array", + "q": { + "baseName": "q", + "type": "string", }, - query: { - baseName: "query", - type: "ListStreamQuery", + "queries": { + "baseName": "queries", + "type": "Array", }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", + "query": { + "baseName": "query", + "type": "ListStreamQuery", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - sort: { - baseName: "sort", - type: "WidgetSortBy", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "WidgetSortBy", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GeomapWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GraphSnapshot.ts b/packages/datadog-api-client-v1/models/GraphSnapshot.ts index 25ecee147779..8e5cb240ca82 100644 --- a/packages/datadog-api-client-v1/models/GraphSnapshot.ts +++ b/packages/datadog-api-client-v1/models/GraphSnapshot.ts @@ -4,25 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing a graph snapshot. - */ +*/ export class GraphSnapshot { /** * A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. * The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) * and should be formatted to a single line then URL encoded. - */ + */ "graphDef"?: string; /** * The metric query. One of `metric_query` or `graph_def` is required. - */ + */ "metricQuery"?: string; /** * URL of your [graph snapshot](https://docs.datadoghq.com/metrics/explorer/#snapshot). - */ + */ "snapshotUrl"?: string; /** @@ -41,30 +46,56 @@ export class GraphSnapshot { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - graphDef: { - baseName: "graph_def", - type: "string", - }, - metricQuery: { - baseName: "metric_query", - type: "string", + "graphDef": { + "baseName": "graph_def", + "type": "string", }, - snapshotUrl: { - baseName: "snapshot_url", - type: "string", + "metricQuery": { + "baseName": "metric_query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "snapshotUrl": { + "baseName": "snapshot_url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GraphSnapshot.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GroupType.ts b/packages/datadog-api-client-v1/models/GroupType.ts index 8468ce7d86b6..1c886b32baf9 100644 --- a/packages/datadog-api-client-v1/models/GroupType.ts +++ b/packages/datadog-api-client-v1/models/GroupType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Set the sort type to group. - */ +*/ export type GroupType = typeof GROUP | UnparsedObject; -export const GROUP = "group"; +export const GROUP = 'group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/GroupWidgetDefinition.ts b/packages/datadog-api-client-v1/models/GroupWidgetDefinition.ts index 1fe7d75432cc..6554a784f68d 100644 --- a/packages/datadog-api-client-v1/models/GroupWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/GroupWidgetDefinition.ts @@ -8,43 +8,48 @@ import { Widget } from "./Widget"; import { WidgetLayoutType } from "./WidgetLayoutType"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. - */ +*/ export class GroupWidgetDefinition { /** * Background color of the group title. - */ + */ "backgroundColor"?: string; /** * URL of image to display as a banner for the group. - */ + */ "bannerImg"?: string; /** * Layout type of the group. - */ + */ "layoutType": WidgetLayoutType; /** * Whether to show the title or not. - */ + */ "showTitle"?: boolean; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Type of the group widget. - */ + */ "type": GroupWidgetDefinitionType; /** * List of widget groups. - */ + */ "widgets": Array; /** @@ -63,53 +68,79 @@ export class GroupWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - backgroundColor: { - baseName: "background_color", - type: "string", + "backgroundColor": { + "baseName": "background_color", + "type": "string", }, - bannerImg: { - baseName: "banner_img", - type: "string", + "bannerImg": { + "baseName": "banner_img", + "type": "string", }, - layoutType: { - baseName: "layout_type", - type: "WidgetLayoutType", - required: true, + "layoutType": { + "baseName": "layout_type", + "type": "WidgetLayoutType", + "required": true, }, - showTitle: { - baseName: "show_title", - type: "boolean", + "showTitle": { + "baseName": "show_title", + "type": "boolean", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "GroupWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "GroupWidgetDefinitionType", + "required": true, }, - widgets: { - baseName: "widgets", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "widgets": { + "baseName": "widgets", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GroupWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/GroupWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/GroupWidgetDefinitionType.ts index 35d1f6f510d6..403c10fbd603 100644 --- a/packages/datadog-api-client-v1/models/GroupWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/GroupWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the group widget. - */ +*/ export type GroupWidgetDefinitionType = typeof GROUP | UnparsedObject; -export const GROUP = "group"; +export const GROUP = 'group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/HTTPLogError.ts b/packages/datadog-api-client-v1/models/HTTPLogError.ts index 139df8df1ac6..c2e0c6d9c8cd 100644 --- a/packages/datadog-api-client-v1/models/HTTPLogError.ts +++ b/packages/datadog-api-client-v1/models/HTTPLogError.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Invalid query performed. - */ +*/ export class HTTPLogError { /** * Error code. - */ + */ "code": number; /** * Error message. - */ + */ "message": string; /** @@ -35,29 +40,55 @@ export class HTTPLogError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "number", - required: true, - format: "int32", + "code": { + "baseName": "code", + "type": "number", + "required": true, + "format": "int32", }, - message: { - baseName: "message", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPLogError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HTTPLogItem.ts b/packages/datadog-api-client-v1/models/HTTPLogItem.ts index c9fdb4d543f2..c5383e541280 100644 --- a/packages/datadog-api-client-v1/models/HTTPLogItem.ts +++ b/packages/datadog-api-client-v1/models/HTTPLogItem.ts @@ -4,37 +4,42 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Logs that are sent over HTTP. - */ +*/ export class HTTPLogItem { /** * The integration name associated with your log: the technology from which the log originated. * When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. * See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). - */ + */ "ddsource"?: string; /** * Tags associated with your logs. - */ + */ "ddtags"?: string; /** * The name of the originating host of the log. - */ + */ "hostname"?: string; /** * The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) * of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. * That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. - */ + */ "message": string; /** * The name of the application or service generating the log events. * It is used to switch from Logs to APM, so make sure you define the same value when you use both products. * See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). - */ + */ "service"?: string; /** @@ -53,39 +58,65 @@ export class HTTPLogItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ddsource: { - baseName: "ddsource", - type: "string", + "ddsource": { + "baseName": "ddsource", + "type": "string", }, - ddtags: { - baseName: "ddtags", - type: "string", + "ddtags": { + "baseName": "ddtags", + "type": "string", }, - hostname: { - baseName: "hostname", - type: "string", + "hostname": { + "baseName": "hostname", + "type": "string", }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - service: { - baseName: "service", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "string", + "service": { + "baseName": "service", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPLogItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HeatMapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/HeatMapWidgetDefinition.ts index f649fc7bed68..532085b28ba6 100644 --- a/packages/datadog-api-client-v1/models/HeatMapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/HeatMapWidgetDefinition.ts @@ -11,55 +11,60 @@ import { WidgetEvent } from "./WidgetEvent"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. - */ +*/ export class HeatMapWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * List of widget events. - */ + */ "events"?: Array; /** * Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". - */ + */ "legendSize"?: string; /** * List of widget types. - */ + */ "requests": [HeatMapWidgetRequest]; /** * Whether or not to display the legend on this widget. - */ + */ "showLegend"?: boolean; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the heat map widget. - */ + */ "type": HeatMapWidgetDefinitionType; /** * Axis controls for the widget. - */ + */ "yaxis"?: WidgetAxis; /** @@ -78,64 +83,90 @@ export class HeatMapWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", - }, - events: { - baseName: "events", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - legendSize: { - baseName: "legend_size", - type: "string", + "events": { + "baseName": "events", + "type": "Array", }, - requests: { - baseName: "requests", - type: "[HeatMapWidgetRequest]", - required: true, + "legendSize": { + "baseName": "legend_size", + "type": "string", }, - showLegend: { - baseName: "show_legend", - type: "boolean", + "requests": { + "baseName": "requests", + "type": "[HeatMapWidgetRequest]", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "showLegend": { + "baseName": "show_legend", + "type": "boolean", }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "HeatMapWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - yaxis: { - baseName: "yaxis", - type: "WidgetAxis", + "type": { + "baseName": "type", + "type": "HeatMapWidgetDefinitionType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "yaxis": { + "baseName": "yaxis", + "type": "WidgetAxis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HeatMapWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HeatMapWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/HeatMapWidgetDefinitionType.ts index 58c470793c56..4c2ffa0fdf2e 100644 --- a/packages/datadog-api-client-v1/models/HeatMapWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/HeatMapWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the heat map widget. - */ +*/ export type HeatMapWidgetDefinitionType = typeof HEATMAP | UnparsedObject; -export const HEATMAP = "heatmap"; +export const HEATMAP = 'heatmap'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.ts b/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.ts index 42ac574af814..466ab0422f02 100644 --- a/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.ts @@ -11,63 +11,68 @@ import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; import { WidgetFormula } from "./WidgetFormula"; import { WidgetStyle } from "./WidgetStyle"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated heat map widget. - */ +*/ export class HeatMapWidgetRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The event query. - */ + */ "eventQuery"?: EventQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Widget query. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * Widget style definition. - */ + */ "style"?: WidgetStyle; /** @@ -86,70 +91,96 @@ export class HeatMapWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", }, - eventQuery: { - baseName: "event_query", - type: "EventQueryDefinition", + "eventQuery": { + "baseName": "event_query", + "type": "EventQueryDefinition", }, - formulas: { - baseName: "formulas", - type: "Array", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", }, - q: { - baseName: "q", - type: "string", + "q": { + "baseName": "q", + "type": "string", }, - queries: { - baseName: "queries", - type: "Array", + "queries": { + "baseName": "queries", + "type": "Array", }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, - style: { - baseName: "style", - type: "WidgetStyle", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "style": { + "baseName": "style", + "type": "WidgetStyle", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HeatMapWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Host.ts b/packages/datadog-api-client-v1/models/Host.ts index e5380128023a..2dee78183dbc 100644 --- a/packages/datadog-api-client-v1/models/Host.ts +++ b/packages/datadog-api-client-v1/models/Host.ts @@ -6,67 +6,72 @@ import { HostMeta } from "./HostMeta"; import { HostMetrics } from "./HostMetrics"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing a host. - */ +*/ export class Host { /** * Host aliases collected by Datadog. - */ + */ "aliases"?: Array; /** * The Datadog integrations reporting metrics for the host. - */ + */ "apps"?: Array; /** * AWS name of your host. - */ + */ "awsName"?: string; /** * The host name. - */ + */ "hostName"?: string; /** * The host ID. - */ + */ "id"?: number; /** * If a host is muted or unmuted. - */ + */ "isMuted"?: boolean; /** * Last time the host reported a metric data point. - */ + */ "lastReportedTime"?: number; /** * Metadata associated with your host. - */ + */ "meta"?: HostMeta; /** * Host Metrics collected. - */ + */ "metrics"?: HostMetrics; /** * Timeout of the mute applied to your host. - */ + */ "muteTimeout"?: number; /** * The host name. - */ + */ "name"?: string; /** * Source or cloud provider associated with your host. - */ + */ "sources"?: Array; /** * List of tags for each source (AWS, Datadog Agent, Chef..). - */ - "tagsBySource"?: { [key: string]: Array }; + */ + "tagsBySource"?: { [key: string]: Array; }; /** * Displays UP when the expected metrics are received and displays `???` if no metrics are received. - */ + */ "up"?: boolean; /** @@ -85,77 +90,103 @@ export class Host { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aliases: { - baseName: "aliases", - type: "Array", - }, - apps: { - baseName: "apps", - type: "Array", + "aliases": { + "baseName": "aliases", + "type": "Array", }, - awsName: { - baseName: "aws_name", - type: "string", + "apps": { + "baseName": "apps", + "type": "Array", }, - hostName: { - baseName: "host_name", - type: "string", + "awsName": { + "baseName": "aws_name", + "type": "string", }, - id: { - baseName: "id", - type: "number", - format: "int64", + "hostName": { + "baseName": "host_name", + "type": "string", }, - isMuted: { - baseName: "is_muted", - type: "boolean", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - lastReportedTime: { - baseName: "last_reported_time", - type: "number", - format: "int64", + "isMuted": { + "baseName": "is_muted", + "type": "boolean", }, - meta: { - baseName: "meta", - type: "HostMeta", + "lastReportedTime": { + "baseName": "last_reported_time", + "type": "number", + "format": "int64", }, - metrics: { - baseName: "metrics", - type: "HostMetrics", + "meta": { + "baseName": "meta", + "type": "HostMeta", }, - muteTimeout: { - baseName: "mute_timeout", - type: "number", - format: "int64", + "metrics": { + "baseName": "metrics", + "type": "HostMetrics", }, - name: { - baseName: "name", - type: "string", + "muteTimeout": { + "baseName": "mute_timeout", + "type": "number", + "format": "int64", }, - sources: { - baseName: "sources", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - tagsBySource: { - baseName: "tags_by_source", - type: "{ [key: string]: Array; }", + "sources": { + "baseName": "sources", + "type": "Array", }, - up: { - baseName: "up", - type: "boolean", + "tagsBySource": { + "baseName": "tags_by_source", + "type": "{ [key: string]: Array; }", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "up": { + "baseName": "up", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Host.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostListResponse.ts b/packages/datadog-api-client-v1/models/HostListResponse.ts index 6bf3062d8d6b..fb20a497ed91 100644 --- a/packages/datadog-api-client-v1/models/HostListResponse.ts +++ b/packages/datadog-api-client-v1/models/HostListResponse.ts @@ -5,23 +5,28 @@ */ import { Host } from "./Host"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with Host information from Datadog. - */ +*/ export class HostListResponse { /** * Array of hosts. - */ + */ "hostList"?: Array; /** * Number of host matching the query. - */ + */ "totalMatching"?: number; /** * Number of host returned. - */ + */ "totalReturned"?: number; /** @@ -40,32 +45,58 @@ export class HostListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hostList: { - baseName: "host_list", - type: "Array", - }, - totalMatching: { - baseName: "total_matching", - type: "number", - format: "int64", + "hostList": { + "baseName": "host_list", + "type": "Array", }, - totalReturned: { - baseName: "total_returned", - type: "number", - format: "int64", + "totalMatching": { + "baseName": "total_matching", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalReturned": { + "baseName": "total_returned", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMapRequest.ts b/packages/datadog-api-client-v1/models/HostMapRequest.ts index 328e3a8db078..f617161c846f 100644 --- a/packages/datadog-api-client-v1/models/HostMapRequest.ts +++ b/packages/datadog-api-client-v1/models/HostMapRequest.ts @@ -6,47 +6,52 @@ import { LogQueryDefinition } from "./LogQueryDefinition"; import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated host map. - */ +*/ export class HostMapRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Query definition. - */ + */ "q"?: string; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** @@ -65,54 +70,80 @@ export class HostMapRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", }, - q: { - baseName: "q", - type: "string", + "q": { + "baseName": "q", + "type": "string", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMapRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/HostMapWidgetDefinition.ts index 5c9c6d0f7c52..0cc738c7c617 100644 --- a/packages/datadog-api-client-v1/models/HostMapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/HostMapWidgetDefinition.ts @@ -10,63 +10,68 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetNodeType } from "./WidgetNodeType"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The host map widget graphs any metric across your hosts using the same visualization available from the main Host Map page. - */ +*/ export class HostMapWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * List of tag prefixes to group by. - */ + */ "group"?: Array; /** * Whether to show the hosts that don’t fit in a group. - */ + */ "noGroupHosts"?: boolean; /** * Whether to show the hosts with no metrics. - */ + */ "noMetricHosts"?: boolean; /** * Which type of node to use in the map. - */ + */ "nodeType"?: WidgetNodeType; /** * Notes on the title. - */ + */ "notes"?: string; /** * List of definitions. - */ + */ "requests": HostMapWidgetDefinitionRequests; /** * List of tags used to filter the map. - */ + */ "scope"?: Array; /** * The style to apply to the widget. - */ + */ "style"?: HostMapWidgetDefinitionStyle; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the host map widget. - */ + */ "type": HostMapWidgetDefinitionType; /** @@ -85,72 +90,98 @@ export class HostMapWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - group: { - baseName: "group", - type: "Array", + "group": { + "baseName": "group", + "type": "Array", }, - noGroupHosts: { - baseName: "no_group_hosts", - type: "boolean", + "noGroupHosts": { + "baseName": "no_group_hosts", + "type": "boolean", }, - noMetricHosts: { - baseName: "no_metric_hosts", - type: "boolean", + "noMetricHosts": { + "baseName": "no_metric_hosts", + "type": "boolean", }, - nodeType: { - baseName: "node_type", - type: "WidgetNodeType", + "nodeType": { + "baseName": "node_type", + "type": "WidgetNodeType", }, - notes: { - baseName: "notes", - type: "string", + "notes": { + "baseName": "notes", + "type": "string", }, - requests: { - baseName: "requests", - type: "HostMapWidgetDefinitionRequests", - required: true, + "requests": { + "baseName": "requests", + "type": "HostMapWidgetDefinitionRequests", + "required": true, }, - scope: { - baseName: "scope", - type: "Array", + "scope": { + "baseName": "scope", + "type": "Array", }, - style: { - baseName: "style", - type: "HostMapWidgetDefinitionStyle", + "style": { + "baseName": "style", + "type": "HostMapWidgetDefinitionStyle", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "HostMapWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "HostMapWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMapWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionRequests.ts b/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionRequests.ts index 3c0aebc11569..237013b241e4 100644 --- a/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionRequests.ts +++ b/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionRequests.ts @@ -5,19 +5,24 @@ */ import { HostMapRequest } from "./HostMapRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of definitions. - */ +*/ export class HostMapWidgetDefinitionRequests { /** * Updated host map. - */ + */ "fill"?: HostMapRequest; /** * Updated host map. - */ + */ "size"?: HostMapRequest; /** @@ -36,26 +41,52 @@ export class HostMapWidgetDefinitionRequests { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fill: { - baseName: "fill", - type: "HostMapRequest", + "fill": { + "baseName": "fill", + "type": "HostMapRequest", }, - size: { - baseName: "size", - type: "HostMapRequest", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "size": { + "baseName": "size", + "type": "HostMapRequest", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMapWidgetDefinitionRequests.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionStyle.ts b/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionStyle.ts index 97f71f29beb4..38cd9eec1e36 100644 --- a/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionStyle.ts +++ b/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionStyle.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The style to apply to the widget. - */ +*/ export class HostMapWidgetDefinitionStyle { /** * Max value to use to color the map. - */ + */ "fillMax"?: string; /** * Min value to use to color the map. - */ + */ "fillMin"?: string; /** * Color palette to apply to the widget. - */ + */ "palette"?: string; /** * Whether to flip the palette tones. - */ + */ "paletteFlip"?: boolean; /** @@ -43,34 +48,60 @@ export class HostMapWidgetDefinitionStyle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fillMax: { - baseName: "fill_max", - type: "string", + "fillMax": { + "baseName": "fill_max", + "type": "string", }, - fillMin: { - baseName: "fill_min", - type: "string", + "fillMin": { + "baseName": "fill_min", + "type": "string", }, - palette: { - baseName: "palette", - type: "string", + "palette": { + "baseName": "palette", + "type": "string", }, - paletteFlip: { - baseName: "palette_flip", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "paletteFlip": { + "baseName": "palette_flip", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMapWidgetDefinitionStyle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionType.ts index 551952ba3b51..a20e8f62dc74 100644 --- a/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/HostMapWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the host map widget. - */ +*/ export type HostMapWidgetDefinitionType = typeof HOSTMAP | UnparsedObject; -export const HOSTMAP = "hostmap"; +export const HOSTMAP = 'hostmap'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/HostMeta.ts b/packages/datadog-api-client-v1/models/HostMeta.ts index ccb7b74a75ae..694bba352bf6 100644 --- a/packages/datadog-api-client-v1/models/HostMeta.ts +++ b/packages/datadog-api-client-v1/models/HostMeta.ts @@ -3,73 +3,80 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { AgentCheck } from "./AgentCheck"; +import { AgentCheckItem } from "./AgentCheckItem"; import { HostMetaInstallMethod } from "./HostMetaInstallMethod"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata associated with your host. - */ +*/ export class HostMeta { /** * A list of Agent checks running on the host. - */ + */ "agentChecks"?: Array>; /** * The Datadog Agent version. - */ + */ "agentVersion"?: string; /** * The number of cores. - */ + */ "cpuCores"?: number; /** * An array of Mac versions. - */ + */ "fbsdV"?: Array; /** * JSON string containing system information. - */ + */ "gohai"?: string; /** * Agent install method. - */ + */ "installMethod"?: HostMetaInstallMethod; /** * An array of Mac versions. - */ + */ "macV"?: Array; /** * The machine architecture. - */ + */ "machine"?: string; /** * Array of Unix versions. - */ + */ "nixV"?: Array; /** * The OS platform. - */ + */ "platform"?: string; /** * The processor. - */ + */ "processor"?: string; /** * The Python version. - */ + */ "pythonV"?: string; /** * The socket fqdn. - */ + */ "socketFqdn"?: string; /** * The socket hostname. - */ + */ "socketHostname"?: string; /** * An array of Windows versions. - */ + */ "winV"?: Array; /** @@ -88,79 +95,105 @@ export class HostMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - agentChecks: { - baseName: "agent_checks", - type: "Array>", - }, - agentVersion: { - baseName: "agent_version", - type: "string", - }, - cpuCores: { - baseName: "cpuCores", - type: "number", - format: "int64", - }, - fbsdV: { - baseName: "fbsdV", - type: "Array", - }, - gohai: { - baseName: "gohai", - type: "string", - }, - installMethod: { - baseName: "install_method", - type: "HostMetaInstallMethod", - }, - macV: { - baseName: "macV", - type: "Array", - }, - machine: { - baseName: "machine", - type: "string", - }, - nixV: { - baseName: "nixV", - type: "Array", - }, - platform: { - baseName: "platform", - type: "string", - }, - processor: { - baseName: "processor", - type: "string", - }, - pythonV: { - baseName: "pythonV", - type: "string", - }, - socketFqdn: { - baseName: "socket-fqdn", - type: "string", - }, - socketHostname: { - baseName: "socket-hostname", - type: "string", - }, - winV: { - baseName: "winV", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "agentChecks": { + "baseName": "agent_checks", + "type": "Array>", + }, + "agentVersion": { + "baseName": "agent_version", + "type": "string", + }, + "cpuCores": { + "baseName": "cpuCores", + "type": "number", + "format": "int64", + }, + "fbsdV": { + "baseName": "fbsdV", + "type": "Array", + }, + "gohai": { + "baseName": "gohai", + "type": "string", + }, + "installMethod": { + "baseName": "install_method", + "type": "HostMetaInstallMethod", + }, + "macV": { + "baseName": "macV", + "type": "Array", + }, + "machine": { + "baseName": "machine", + "type": "string", + }, + "nixV": { + "baseName": "nixV", + "type": "Array", + }, + "platform": { + "baseName": "platform", + "type": "string", + }, + "processor": { + "baseName": "processor", + "type": "string", + }, + "pythonV": { + "baseName": "pythonV", + "type": "string", + }, + "socketFqdn": { + "baseName": "socket-fqdn", + "type": "string", + }, + "socketHostname": { + "baseName": "socket-hostname", + "type": "string", + }, + "winV": { + "baseName": "winV", + "type": "Array", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMetaInstallMethod.ts b/packages/datadog-api-client-v1/models/HostMetaInstallMethod.ts index cfdf9ba68383..dc43d997b186 100644 --- a/packages/datadog-api-client-v1/models/HostMetaInstallMethod.ts +++ b/packages/datadog-api-client-v1/models/HostMetaInstallMethod.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Agent install method. - */ +*/ export class HostMetaInstallMethod { /** * The installer version. - */ + */ "installerVersion"?: string; /** * Tool used to install the agent. - */ + */ "tool"?: string; /** * The tool version. - */ + */ "toolVersion"?: string; /** @@ -39,30 +44,56 @@ export class HostMetaInstallMethod { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - installerVersion: { - baseName: "installer_version", - type: "string", - }, - tool: { - baseName: "tool", - type: "string", + "installerVersion": { + "baseName": "installer_version", + "type": "string", }, - toolVersion: { - baseName: "tool_version", - type: "string", + "tool": { + "baseName": "tool", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "toolVersion": { + "baseName": "tool_version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMetaInstallMethod.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMetrics.ts b/packages/datadog-api-client-v1/models/HostMetrics.ts index 3538972ff832..75ceb70f565b 100644 --- a/packages/datadog-api-client-v1/models/HostMetrics.ts +++ b/packages/datadog-api-client-v1/models/HostMetrics.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Host Metrics collected. - */ +*/ export class HostMetrics { /** * The percent of CPU used (everything but idle). - */ + */ "cpu"?: number; /** * The percent of CPU spent waiting on the IO (not reported for all platforms). - */ + */ "iowait"?: number; /** * The system load over the last 15 minutes. - */ + */ "load"?: number; /** @@ -39,33 +44,59 @@ export class HostMetrics { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cpu: { - baseName: "cpu", - type: "number", - format: "double", - }, - iowait: { - baseName: "iowait", - type: "number", - format: "double", + "cpu": { + "baseName": "cpu", + "type": "number", + "format": "double", }, - load: { - baseName: "load", - type: "number", - format: "double", + "iowait": { + "baseName": "iowait", + "type": "number", + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "load": { + "baseName": "load", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMetrics.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMuteResponse.ts b/packages/datadog-api-client-v1/models/HostMuteResponse.ts index d4269e4c6a4f..afa72de7cc4e 100644 --- a/packages/datadog-api-client-v1/models/HostMuteResponse.ts +++ b/packages/datadog-api-client-v1/models/HostMuteResponse.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with the list of muted host for your organization. - */ +*/ export class HostMuteResponse { /** * Action applied to the hosts. - */ + */ "action"?: string; /** * POSIX timestamp in seconds when the host is unmuted. - */ + */ "end"?: number; /** * The host name. - */ + */ "hostname"?: string; /** * Message associated with the mute. - */ + */ "message"?: string; /** @@ -43,35 +48,61 @@ export class HostMuteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "string", + "action": { + "baseName": "action", + "type": "string", }, - end: { - baseName: "end", - type: "number", - format: "int64", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - hostname: { - baseName: "hostname", - type: "string", + "hostname": { + "baseName": "hostname", + "type": "string", }, - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMuteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostMuteSettings.ts b/packages/datadog-api-client-v1/models/HostMuteSettings.ts index c2d971e38769..be31d37708e5 100644 --- a/packages/datadog-api-client-v1/models/HostMuteSettings.ts +++ b/packages/datadog-api-client-v1/models/HostMuteSettings.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Combination of settings to mute a host. - */ +*/ export class HostMuteSettings { /** * POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted. - */ + */ "end"?: number; /** * Message to associate with the muting of this host. - */ + */ "message"?: string; /** * If true and the host is already muted, replaces existing host mute settings. - */ + */ "override"?: boolean; /** @@ -39,31 +44,57 @@ export class HostMuteSettings { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "number", - format: "int64", - }, - message: { - baseName: "message", - type: "string", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - override: { - baseName: "override", - type: "boolean", + "message": { + "baseName": "message", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "override": { + "baseName": "override", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostMuteSettings.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostTags.ts b/packages/datadog-api-client-v1/models/HostTags.ts index b9add5ca32f4..2863d4a81127 100644 --- a/packages/datadog-api-client-v1/models/HostTags.ts +++ b/packages/datadog-api-client-v1/models/HostTags.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Set of tags to associate with your host. - */ +*/ export class HostTags { /** * Your host name. - */ + */ "host"?: string; /** * A list of tags to apply to the host. - */ + */ "tags"?: Array; /** @@ -35,26 +40,52 @@ export class HostTags { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - host: { - baseName: "host", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostTags.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HostTotals.ts b/packages/datadog-api-client-v1/models/HostTotals.ts index 378518e9869a..9a06333f188c 100644 --- a/packages/datadog-api-client-v1/models/HostTotals.ts +++ b/packages/datadog-api-client-v1/models/HostTotals.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Total number of host currently monitored by Datadog. - */ +*/ export class HostTotals { /** * Total number of active host (UP and ???) reporting to Datadog. - */ + */ "totalActive"?: number; /** * Number of host that are UP and reporting to Datadog. - */ + */ "totalUp"?: number; /** @@ -35,28 +40,54 @@ export class HostTotals { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalActive: { - baseName: "total_active", - type: "number", - format: "int64", + "totalActive": { + "baseName": "total_active", + "type": "number", + "format": "int64", }, - totalUp: { - baseName: "total_up", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalUp": { + "baseName": "total_up", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HostTotals.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.ts b/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.ts index 9ae38cd9471a..f0e44fd0e80e 100644 --- a/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.ts +++ b/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.ts @@ -5,51 +5,56 @@ */ import { HourlyUsageAttributionUsageType } from "./HourlyUsageAttributionUsageType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The usage for one set of tags for one hour. - */ +*/ export class HourlyUsageAttributionBody { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The name of the organization. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The region of the Datadog instance that the organization belongs to. - */ + */ "region"?: string; /** * The source of the usage attribution tag configuration and the selected tags in the format of `::://////`. - */ + */ "tagConfigSource"?: string; /** * Tag keys and values. - * + * * A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags * configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started). * In this scenario the API returns the total usage, not broken down by tags. - */ - "tags"?: { [key: string]: Array }; + */ + "tags"?: { [key: string]: Array; }; /** * Total product usage for the given tags within the hour. - */ + */ "totalUsageSum"?: number; /** * Shows the most recent hour in the current month for all organizations where usages are calculated. - */ + */ "updatedAt"?: string; /** * Supported products for hourly usage attribution requests. - */ + */ "usageType"?: HourlyUsageAttributionUsageType; /** @@ -68,56 +73,82 @@ export class HourlyUsageAttributionBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "region": { + "baseName": "region", + "type": "string", }, - tagConfigSource: { - baseName: "tag_config_source", - type: "string", + "tagConfigSource": { + "baseName": "tag_config_source", + "type": "string", }, - tags: { - baseName: "tags", - type: "{ [key: string]: Array; }", + "tags": { + "baseName": "tags", + "type": "{ [key: string]: Array; }", }, - totalUsageSum: { - baseName: "total_usage_sum", - type: "number", - format: "double", + "totalUsageSum": { + "baseName": "total_usage_sum", + "type": "number", + "format": "double", }, - updatedAt: { - baseName: "updated_at", - type: "string", + "updatedAt": { + "baseName": "updated_at", + "type": "string", }, - usageType: { - baseName: "usage_type", - type: "HourlyUsageAttributionUsageType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usageType": { + "baseName": "usage_type", + "type": "HourlyUsageAttributionUsageType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageAttributionBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HourlyUsageAttributionMetadata.ts b/packages/datadog-api-client-v1/models/HourlyUsageAttributionMetadata.ts index aef62ee79b8e..5523197cda94 100644 --- a/packages/datadog-api-client-v1/models/HourlyUsageAttributionMetadata.ts +++ b/packages/datadog-api-client-v1/models/HourlyUsageAttributionMetadata.ts @@ -5,15 +5,20 @@ */ import { HourlyUsageAttributionPagination } from "./HourlyUsageAttributionPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class HourlyUsageAttributionMetadata { /** * The metadata for the current pagination. - */ + */ "pagination"?: HourlyUsageAttributionPagination; /** @@ -32,22 +37,48 @@ export class HourlyUsageAttributionMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "HourlyUsageAttributionPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "HourlyUsageAttributionPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageAttributionMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HourlyUsageAttributionPagination.ts b/packages/datadog-api-client-v1/models/HourlyUsageAttributionPagination.ts index 6fba230682c6..d5d5d4490e81 100644 --- a/packages/datadog-api-client-v1/models/HourlyUsageAttributionPagination.ts +++ b/packages/datadog-api-client-v1/models/HourlyUsageAttributionPagination.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata for the current pagination. - */ +*/ export class HourlyUsageAttributionPagination { /** * The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. - */ + */ "nextRecordId"?: string; /** @@ -31,22 +36,48 @@ export class HourlyUsageAttributionPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - nextRecordId: { - baseName: "next_record_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "nextRecordId": { + "baseName": "next_record_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageAttributionPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HourlyUsageAttributionResponse.ts b/packages/datadog-api-client-v1/models/HourlyUsageAttributionResponse.ts index 9ea625b7095f..819ba248ca35 100644 --- a/packages/datadog-api-client-v1/models/HourlyUsageAttributionResponse.ts +++ b/packages/datadog-api-client-v1/models/HourlyUsageAttributionResponse.ts @@ -6,19 +6,24 @@ import { HourlyUsageAttributionBody } from "./HourlyUsageAttributionBody"; import { HourlyUsageAttributionMetadata } from "./HourlyUsageAttributionMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the hourly usage attribution by tag(s). - */ +*/ export class HourlyUsageAttributionResponse { /** * The object containing document metadata. - */ + */ "metadata"?: HourlyUsageAttributionMetadata; /** * Get the hourly usage attribution by tag(s). - */ + */ "usage"?: Array; /** @@ -37,26 +42,52 @@ export class HourlyUsageAttributionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metadata: { - baseName: "metadata", - type: "HourlyUsageAttributionMetadata", + "metadata": { + "baseName": "metadata", + "type": "HourlyUsageAttributionMetadata", }, - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageAttributionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.ts b/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.ts index 05a2785936e2..02789c7e946f 100644 --- a/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.ts +++ b/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.ts @@ -4,165 +4,87 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Supported products for hourly usage attribution requests. - */ +*/ -export type HourlyUsageAttributionUsageType = - | typeof API_USAGE - | typeof APM_FARGATE_USAGE - | typeof APM_HOST_USAGE - | typeof APM_USM_USAGE - | typeof APPSEC_FARGATE_USAGE - | typeof APPSEC_USAGE - | typeof ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE - | typeof ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE - | typeof BROWSER_USAGE - | typeof CI_PIPELINE_INDEXED_SPANS_USAGE - | typeof CI_TEST_INDEXED_SPANS_USAGE - | typeof CI_VISIBILITY_ITR_USAGE - | typeof CLOUD_SIEM_USAGE - | typeof CODE_SECURITY_HOST_USAGE - | typeof CONTAINER_EXCL_AGENT_USAGE - | typeof CONTAINER_USAGE - | typeof CSPM_CONTAINERS_USAGE - | typeof CSPM_HOSTS_USAGE - | typeof CUSTOM_EVENT_USAGE - | typeof CUSTOM_INGESTED_TIMESERIES_USAGE - | typeof CUSTOM_TIMESERIES_USAGE - | typeof CWS_CONTAINERS_USAGE - | typeof CWS_FARGATE_TASK_USAGE - | typeof CWS_HOSTS_USAGE - | typeof DATA_JOBS_MONITORING_USAGE - | typeof DATA_STREAM_MONITORING_USAGE - | typeof DBM_HOSTS_USAGE - | typeof DBM_QUERIES_USAGE - | typeof ERROR_TRACKING_USAGE - | typeof ERROR_TRACKING_PERCENTAGE - | typeof ESTIMATED_INDEXED_SPANS_USAGE - | typeof ESTIMATED_INGESTED_SPANS_USAGE - | typeof FARGATE_USAGE - | typeof FUNCTIONS_USAGE - | typeof INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE - | typeof INDEXED_SPANS_USAGE - | typeof INFRA_HOST_USAGE - | typeof INGESTED_LOGS_BYTES_USAGE - | typeof INGESTED_SPANS_BYTES_USAGE - | typeof INVOCATIONS_USAGE - | typeof LAMBDA_TRACED_INVOCATIONS_USAGE - | typeof LOGS_INDEXED_15DAY_USAGE - | typeof LOGS_INDEXED_180DAY_USAGE - | typeof LOGS_INDEXED_1DAY_USAGE - | typeof LOGS_INDEXED_30DAY_USAGE - | typeof LOGS_INDEXED_360DAY_USAGE - | typeof LOGS_INDEXED_3DAY_USAGE - | typeof LOGS_INDEXED_45DAY_USAGE - | typeof LOGS_INDEXED_60DAY_USAGE - | typeof LOGS_INDEXED_7DAY_USAGE - | typeof LOGS_INDEXED_90DAY_USAGE - | typeof LOGS_INDEXED_CUSTOM_RETENTION_USAGE - | typeof MOBILE_APP_TESTING_USAGE - | typeof NDM_NETFLOW_USAGE - | typeof NPM_HOST_USAGE - | typeof OBS_PIPELINE_BYTES_USAGE - | typeof OBS_PIPELINE_VCPU_USAGE - | typeof ONLINE_ARCHIVE_USAGE - | typeof PROFILED_CONTAINER_USAGE - | typeof PROFILED_FARGATE_USAGE - | typeof PROFILED_HOST_USAGE - | typeof RUM_BROWSER_MOBILE_SESSIONS_USAGE - | typeof RUM_REPLAY_SESSIONS_USAGE - | typeof SCA_FARGATE_USAGE - | typeof SDS_SCANNED_BYTES_USAGE - | typeof SERVERLESS_APPS_USAGE - | typeof SIEM_ANALYZED_LOGS_ADD_ON_USAGE - | typeof SIEM_INGESTED_BYTES_USAGE - | typeof SNMP_USAGE - | typeof UNIVERSAL_SERVICE_MONITORING_USAGE - | typeof VULN_MANAGEMENT_HOSTS_USAGE - | typeof WORKFLOW_EXECUTIONS_USAGE - | UnparsedObject; -export const API_USAGE = "api_usage"; -export const APM_FARGATE_USAGE = "apm_fargate_usage"; -export const APM_HOST_USAGE = "apm_host_usage"; -export const APM_USM_USAGE = "apm_usm_usage"; -export const APPSEC_FARGATE_USAGE = "appsec_fargate_usage"; -export const APPSEC_USAGE = "appsec_usage"; -export const ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = - "asm_serverless_traced_invocations_usage"; -export const ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = - "asm_serverless_traced_invocations_percentage"; -export const BROWSER_USAGE = "browser_usage"; -export const CI_PIPELINE_INDEXED_SPANS_USAGE = - "ci_pipeline_indexed_spans_usage"; -export const CI_TEST_INDEXED_SPANS_USAGE = "ci_test_indexed_spans_usage"; -export const CI_VISIBILITY_ITR_USAGE = "ci_visibility_itr_usage"; -export const CLOUD_SIEM_USAGE = "cloud_siem_usage"; -export const CODE_SECURITY_HOST_USAGE = "code_security_host_usage"; -export const CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage"; -export const CONTAINER_USAGE = "container_usage"; -export const CSPM_CONTAINERS_USAGE = "cspm_containers_usage"; -export const CSPM_HOSTS_USAGE = "cspm_hosts_usage"; -export const CUSTOM_EVENT_USAGE = "custom_event_usage"; -export const CUSTOM_INGESTED_TIMESERIES_USAGE = - "custom_ingested_timeseries_usage"; -export const CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage"; -export const CWS_CONTAINERS_USAGE = "cws_containers_usage"; -export const CWS_FARGATE_TASK_USAGE = "cws_fargate_task_usage"; -export const CWS_HOSTS_USAGE = "cws_hosts_usage"; -export const DATA_JOBS_MONITORING_USAGE = "data_jobs_monitoring_usage"; -export const DATA_STREAM_MONITORING_USAGE = "data_stream_monitoring_usage"; -export const DBM_HOSTS_USAGE = "dbm_hosts_usage"; -export const DBM_QUERIES_USAGE = "dbm_queries_usage"; -export const ERROR_TRACKING_USAGE = "error_tracking_usage"; -export const ERROR_TRACKING_PERCENTAGE = "error_tracking_percentage"; -export const ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage"; -export const ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage"; -export const FARGATE_USAGE = "fargate_usage"; -export const FUNCTIONS_USAGE = "functions_usage"; -export const INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = - "incident_management_monthly_active_users_usage"; -export const INDEXED_SPANS_USAGE = "indexed_spans_usage"; -export const INFRA_HOST_USAGE = "infra_host_usage"; -export const INGESTED_LOGS_BYTES_USAGE = "ingested_logs_bytes_usage"; -export const INGESTED_SPANS_BYTES_USAGE = "ingested_spans_bytes_usage"; -export const INVOCATIONS_USAGE = "invocations_usage"; -export const LAMBDA_TRACED_INVOCATIONS_USAGE = - "lambda_traced_invocations_usage"; -export const LOGS_INDEXED_15DAY_USAGE = "logs_indexed_15day_usage"; -export const LOGS_INDEXED_180DAY_USAGE = "logs_indexed_180day_usage"; -export const LOGS_INDEXED_1DAY_USAGE = "logs_indexed_1day_usage"; -export const LOGS_INDEXED_30DAY_USAGE = "logs_indexed_30day_usage"; -export const LOGS_INDEXED_360DAY_USAGE = "logs_indexed_360day_usage"; -export const LOGS_INDEXED_3DAY_USAGE = "logs_indexed_3day_usage"; -export const LOGS_INDEXED_45DAY_USAGE = "logs_indexed_45day_usage"; -export const LOGS_INDEXED_60DAY_USAGE = "logs_indexed_60day_usage"; -export const LOGS_INDEXED_7DAY_USAGE = "logs_indexed_7day_usage"; -export const LOGS_INDEXED_90DAY_USAGE = "logs_indexed_90day_usage"; -export const LOGS_INDEXED_CUSTOM_RETENTION_USAGE = - "logs_indexed_custom_retention_usage"; -export const MOBILE_APP_TESTING_USAGE = "mobile_app_testing_usage"; -export const NDM_NETFLOW_USAGE = "ndm_netflow_usage"; -export const NPM_HOST_USAGE = "npm_host_usage"; -export const OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage"; -export const OBS_PIPELINE_VCPU_USAGE = "obs_pipelines_vcpu_usage"; -export const ONLINE_ARCHIVE_USAGE = "online_archive_usage"; -export const PROFILED_CONTAINER_USAGE = "profiled_container_usage"; -export const PROFILED_FARGATE_USAGE = "profiled_fargate_usage"; -export const PROFILED_HOST_USAGE = "profiled_host_usage"; -export const RUM_BROWSER_MOBILE_SESSIONS_USAGE = - "rum_browser_mobile_sessions_usage"; -export const RUM_REPLAY_SESSIONS_USAGE = "rum_replay_sessions_usage"; -export const SCA_FARGATE_USAGE = "sca_fargate_usage"; -export const SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage"; -export const SERVERLESS_APPS_USAGE = "serverless_apps_usage"; -export const SIEM_ANALYZED_LOGS_ADD_ON_USAGE = - "siem_analyzed_logs_add_on_usage"; -export const SIEM_INGESTED_BYTES_USAGE = "siem_ingested_bytes_usage"; -export const SNMP_USAGE = "snmp_usage"; -export const UNIVERSAL_SERVICE_MONITORING_USAGE = - "universal_service_monitoring_usage"; -export const VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage"; -export const WORKFLOW_EXECUTIONS_USAGE = "workflow_executions_usage"; +export type HourlyUsageAttributionUsageType = typeof API_USAGE| typeof APM_FARGATE_USAGE| typeof APM_HOST_USAGE| typeof APM_USM_USAGE| typeof APPSEC_FARGATE_USAGE| typeof APPSEC_USAGE| typeof ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE| typeof ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE| typeof BROWSER_USAGE| typeof CI_PIPELINE_INDEXED_SPANS_USAGE| typeof CI_TEST_INDEXED_SPANS_USAGE| typeof CI_VISIBILITY_ITR_USAGE| typeof CLOUD_SIEM_USAGE| typeof CODE_SECURITY_HOST_USAGE| typeof CONTAINER_EXCL_AGENT_USAGE| typeof CONTAINER_USAGE| typeof CSPM_CONTAINERS_USAGE| typeof CSPM_HOSTS_USAGE| typeof CUSTOM_EVENT_USAGE| typeof CUSTOM_INGESTED_TIMESERIES_USAGE| typeof CUSTOM_TIMESERIES_USAGE| typeof CWS_CONTAINERS_USAGE| typeof CWS_FARGATE_TASK_USAGE| typeof CWS_HOSTS_USAGE| typeof DATA_JOBS_MONITORING_USAGE| typeof DATA_STREAM_MONITORING_USAGE| typeof DBM_HOSTS_USAGE| typeof DBM_QUERIES_USAGE| typeof ERROR_TRACKING_USAGE| typeof ERROR_TRACKING_PERCENTAGE| typeof ESTIMATED_INDEXED_SPANS_USAGE| typeof ESTIMATED_INGESTED_SPANS_USAGE| typeof FARGATE_USAGE| typeof FUNCTIONS_USAGE| typeof INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE| typeof INDEXED_SPANS_USAGE| typeof INFRA_HOST_USAGE| typeof INGESTED_LOGS_BYTES_USAGE| typeof INGESTED_SPANS_BYTES_USAGE| typeof INVOCATIONS_USAGE| typeof LAMBDA_TRACED_INVOCATIONS_USAGE| typeof LOGS_INDEXED_15DAY_USAGE| typeof LOGS_INDEXED_180DAY_USAGE| typeof LOGS_INDEXED_1DAY_USAGE| typeof LOGS_INDEXED_30DAY_USAGE| typeof LOGS_INDEXED_360DAY_USAGE| typeof LOGS_INDEXED_3DAY_USAGE| typeof LOGS_INDEXED_45DAY_USAGE| typeof LOGS_INDEXED_60DAY_USAGE| typeof LOGS_INDEXED_7DAY_USAGE| typeof LOGS_INDEXED_90DAY_USAGE| typeof LOGS_INDEXED_CUSTOM_RETENTION_USAGE| typeof MOBILE_APP_TESTING_USAGE| typeof NDM_NETFLOW_USAGE| typeof NPM_HOST_USAGE| typeof OBS_PIPELINE_BYTES_USAGE| typeof OBS_PIPELINE_VCPU_USAGE| typeof ONLINE_ARCHIVE_USAGE| typeof PROFILED_CONTAINER_USAGE| typeof PROFILED_FARGATE_USAGE| typeof PROFILED_HOST_USAGE| typeof RUM_BROWSER_MOBILE_SESSIONS_USAGE| typeof RUM_REPLAY_SESSIONS_USAGE| typeof SCA_FARGATE_USAGE| typeof SDS_SCANNED_BYTES_USAGE| typeof SERVERLESS_APPS_USAGE| typeof SIEM_ANALYZED_LOGS_ADD_ON_USAGE| typeof SIEM_INGESTED_BYTES_USAGE| typeof SNMP_USAGE| typeof UNIVERSAL_SERVICE_MONITORING_USAGE| typeof VULN_MANAGEMENT_HOSTS_USAGE| typeof WORKFLOW_EXECUTIONS_USAGE | UnparsedObject; +export const API_USAGE = 'api_usage'; +export const APM_FARGATE_USAGE = 'apm_fargate_usage'; +export const APM_HOST_USAGE = 'apm_host_usage'; +export const APM_USM_USAGE = 'apm_usm_usage'; +export const APPSEC_FARGATE_USAGE = 'appsec_fargate_usage'; +export const APPSEC_USAGE = 'appsec_usage'; +export const ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = 'asm_serverless_traced_invocations_usage'; +export const ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = 'asm_serverless_traced_invocations_percentage'; +export const BROWSER_USAGE = 'browser_usage'; +export const CI_PIPELINE_INDEXED_SPANS_USAGE = 'ci_pipeline_indexed_spans_usage'; +export const CI_TEST_INDEXED_SPANS_USAGE = 'ci_test_indexed_spans_usage'; +export const CI_VISIBILITY_ITR_USAGE = 'ci_visibility_itr_usage'; +export const CLOUD_SIEM_USAGE = 'cloud_siem_usage'; +export const CODE_SECURITY_HOST_USAGE = 'code_security_host_usage'; +export const CONTAINER_EXCL_AGENT_USAGE = 'container_excl_agent_usage'; +export const CONTAINER_USAGE = 'container_usage'; +export const CSPM_CONTAINERS_USAGE = 'cspm_containers_usage'; +export const CSPM_HOSTS_USAGE = 'cspm_hosts_usage'; +export const CUSTOM_EVENT_USAGE = 'custom_event_usage'; +export const CUSTOM_INGESTED_TIMESERIES_USAGE = 'custom_ingested_timeseries_usage'; +export const CUSTOM_TIMESERIES_USAGE = 'custom_timeseries_usage'; +export const CWS_CONTAINERS_USAGE = 'cws_containers_usage'; +export const CWS_FARGATE_TASK_USAGE = 'cws_fargate_task_usage'; +export const CWS_HOSTS_USAGE = 'cws_hosts_usage'; +export const DATA_JOBS_MONITORING_USAGE = 'data_jobs_monitoring_usage'; +export const DATA_STREAM_MONITORING_USAGE = 'data_stream_monitoring_usage'; +export const DBM_HOSTS_USAGE = 'dbm_hosts_usage'; +export const DBM_QUERIES_USAGE = 'dbm_queries_usage'; +export const ERROR_TRACKING_USAGE = 'error_tracking_usage'; +export const ERROR_TRACKING_PERCENTAGE = 'error_tracking_percentage'; +export const ESTIMATED_INDEXED_SPANS_USAGE = 'estimated_indexed_spans_usage'; +export const ESTIMATED_INGESTED_SPANS_USAGE = 'estimated_ingested_spans_usage'; +export const FARGATE_USAGE = 'fargate_usage'; +export const FUNCTIONS_USAGE = 'functions_usage'; +export const INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = 'incident_management_monthly_active_users_usage'; +export const INDEXED_SPANS_USAGE = 'indexed_spans_usage'; +export const INFRA_HOST_USAGE = 'infra_host_usage'; +export const INGESTED_LOGS_BYTES_USAGE = 'ingested_logs_bytes_usage'; +export const INGESTED_SPANS_BYTES_USAGE = 'ingested_spans_bytes_usage'; +export const INVOCATIONS_USAGE = 'invocations_usage'; +export const LAMBDA_TRACED_INVOCATIONS_USAGE = 'lambda_traced_invocations_usage'; +export const LOGS_INDEXED_15DAY_USAGE = 'logs_indexed_15day_usage'; +export const LOGS_INDEXED_180DAY_USAGE = 'logs_indexed_180day_usage'; +export const LOGS_INDEXED_1DAY_USAGE = 'logs_indexed_1day_usage'; +export const LOGS_INDEXED_30DAY_USAGE = 'logs_indexed_30day_usage'; +export const LOGS_INDEXED_360DAY_USAGE = 'logs_indexed_360day_usage'; +export const LOGS_INDEXED_3DAY_USAGE = 'logs_indexed_3day_usage'; +export const LOGS_INDEXED_45DAY_USAGE = 'logs_indexed_45day_usage'; +export const LOGS_INDEXED_60DAY_USAGE = 'logs_indexed_60day_usage'; +export const LOGS_INDEXED_7DAY_USAGE = 'logs_indexed_7day_usage'; +export const LOGS_INDEXED_90DAY_USAGE = 'logs_indexed_90day_usage'; +export const LOGS_INDEXED_CUSTOM_RETENTION_USAGE = 'logs_indexed_custom_retention_usage'; +export const MOBILE_APP_TESTING_USAGE = 'mobile_app_testing_usage'; +export const NDM_NETFLOW_USAGE = 'ndm_netflow_usage'; +export const NPM_HOST_USAGE = 'npm_host_usage'; +export const OBS_PIPELINE_BYTES_USAGE = 'obs_pipeline_bytes_usage'; +export const OBS_PIPELINE_VCPU_USAGE = 'obs_pipelines_vcpu_usage'; +export const ONLINE_ARCHIVE_USAGE = 'online_archive_usage'; +export const PROFILED_CONTAINER_USAGE = 'profiled_container_usage'; +export const PROFILED_FARGATE_USAGE = 'profiled_fargate_usage'; +export const PROFILED_HOST_USAGE = 'profiled_host_usage'; +export const RUM_BROWSER_MOBILE_SESSIONS_USAGE = 'rum_browser_mobile_sessions_usage'; +export const RUM_REPLAY_SESSIONS_USAGE = 'rum_replay_sessions_usage'; +export const SCA_FARGATE_USAGE = 'sca_fargate_usage'; +export const SDS_SCANNED_BYTES_USAGE = 'sds_scanned_bytes_usage'; +export const SERVERLESS_APPS_USAGE = 'serverless_apps_usage'; +export const SIEM_ANALYZED_LOGS_ADD_ON_USAGE = 'siem_analyzed_logs_add_on_usage'; +export const SIEM_INGESTED_BYTES_USAGE = 'siem_ingested_bytes_usage'; +export const SNMP_USAGE = 'snmp_usage'; +export const UNIVERSAL_SERVICE_MONITORING_USAGE = 'universal_service_monitoring_usage'; +export const VULN_MANAGEMENT_HOSTS_USAGE = 'vuln_management_hosts_usage'; +export const WORKFLOW_EXECUTIONS_USAGE = 'workflow_executions_usage'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/IFrameWidgetDefinition.ts b/packages/datadog-api-client-v1/models/IFrameWidgetDefinition.ts index dca13c68913d..c51578a67e94 100644 --- a/packages/datadog-api-client-v1/models/IFrameWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/IFrameWidgetDefinition.ts @@ -5,19 +5,24 @@ */ import { IFrameWidgetDefinitionType } from "./IFrameWidgetDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards. - */ +*/ export class IFrameWidgetDefinition { /** * Type of the iframe widget. - */ + */ "type": IFrameWidgetDefinitionType; /** * URL of the iframe. - */ + */ "url": string; /** @@ -36,28 +41,54 @@ export class IFrameWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "IFrameWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "IFrameWidgetDefinitionType", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IFrameWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IFrameWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/IFrameWidgetDefinitionType.ts index 1a4e6051a530..8acd9ec16d7f 100644 --- a/packages/datadog-api-client-v1/models/IFrameWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/IFrameWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the iframe widget. - */ +*/ export type IFrameWidgetDefinitionType = typeof IFRAME | UnparsedObject; -export const IFRAME = "iframe"; +export const IFRAME = 'iframe'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/IPPrefixesAPI.ts b/packages/datadog-api-client-v1/models/IPPrefixesAPI.ts index 9b0f3018efbd..27eeb37f13ba 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesAPI.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesAPI.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the API endpoints. - */ +*/ export class IPPrefixesAPI { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesAPI { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesAPI.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesAPM.ts b/packages/datadog-api-client-v1/models/IPPrefixesAPM.ts index f86f7bb293f9..765b4c899416 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesAPM.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesAPM.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the APM endpoints. - */ +*/ export class IPPrefixesAPM { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesAPM { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesAPM.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesAgents.ts b/packages/datadog-api-client-v1/models/IPPrefixesAgents.ts index 7ff2ba00c4c0..7ba8206dfee7 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesAgents.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesAgents.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Agent endpoints. - */ +*/ export class IPPrefixesAgents { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesAgents { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesAgents.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesGlobal.ts b/packages/datadog-api-client-v1/models/IPPrefixesGlobal.ts index 4caf92d71eff..f3552c46c822 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesGlobal.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesGlobal.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for all Datadog endpoints. - */ +*/ export class IPPrefixesGlobal { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesGlobal { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesGlobal.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesLogs.ts b/packages/datadog-api-client-v1/models/IPPrefixesLogs.ts index b39a45a96644..c62c6ee1b4d9 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesLogs.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesLogs.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Logs endpoints. - */ +*/ export class IPPrefixesLogs { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesLogs { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesLogs.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.ts b/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.ts index ef90ff0fdd07..23fddd2db6d4 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Orchestrator endpoints. - */ +*/ export class IPPrefixesOrchestrator { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesOrchestrator { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesOrchestrator.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesProcess.ts b/packages/datadog-api-client-v1/models/IPPrefixesProcess.ts index 95052c8cfd03..ec69cfc1004b 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesProcess.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesProcess.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Process endpoints. - */ +*/ export class IPPrefixesProcess { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesProcess { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesProcess.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesRemoteConfiguration.ts b/packages/datadog-api-client-v1/models/IPPrefixesRemoteConfiguration.ts index a7809ebaeb96..4fc120d94392 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesRemoteConfiguration.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesRemoteConfiguration.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Remote Configuration endpoints. - */ +*/ export class IPPrefixesRemoteConfiguration { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesRemoteConfiguration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesRemoteConfiguration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesSynthetics.ts b/packages/datadog-api-client-v1/models/IPPrefixesSynthetics.ts index 7ae6034a953a..93a36d505812 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesSynthetics.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesSynthetics.ts @@ -4,28 +4,33 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Synthetics endpoints. - */ +*/ export class IPPrefixesSynthetics { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv4 prefixes by location. - */ - "prefixesIpv4ByLocation"?: { [key: string]: Array }; + */ + "prefixesIpv4ByLocation"?: { [key: string]: Array; }; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** * List of IPv6 prefixes by location. - */ - "prefixesIpv6ByLocation"?: { [key: string]: Array }; + */ + "prefixesIpv6ByLocation"?: { [key: string]: Array; }; /** * A container for additional, undeclared properties. @@ -43,34 +48,60 @@ export class IPPrefixesSynthetics { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv4ByLocation: { - baseName: "prefixes_ipv4_by_location", - type: "{ [key: string]: Array; }", + "prefixesIpv4ByLocation": { + "baseName": "prefixes_ipv4_by_location", + "type": "{ [key: string]: Array; }", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, - prefixesIpv6ByLocation: { - baseName: "prefixes_ipv6_by_location", - type: "{ [key: string]: Array; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6ByLocation": { + "baseName": "prefixes_ipv6_by_location", + "type": "{ [key: string]: Array; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesSynthetics.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.ts b/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.ts index 85e22de3e707..1843adaae7c0 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Synthetics Private Locations endpoints. - */ +*/ export class IPPrefixesSyntheticsPrivateLocations { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesSyntheticsPrivateLocations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesSyntheticsPrivateLocations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPPrefixesWebhooks.ts b/packages/datadog-api-client-v1/models/IPPrefixesWebhooks.ts index f803a7b5cb7a..9e377cc45784 100644 --- a/packages/datadog-api-client-v1/models/IPPrefixesWebhooks.ts +++ b/packages/datadog-api-client-v1/models/IPPrefixesWebhooks.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Available prefix information for the Webhook endpoints. - */ +*/ export class IPPrefixesWebhooks { /** * List of IPv4 prefixes. - */ + */ "prefixesIpv4"?: Array; /** * List of IPv6 prefixes. - */ + */ "prefixesIpv6"?: Array; /** @@ -35,26 +40,52 @@ export class IPPrefixesWebhooks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - prefixesIpv4: { - baseName: "prefixes_ipv4", - type: "Array", + "prefixesIpv4": { + "baseName": "prefixes_ipv4", + "type": "Array", }, - prefixesIpv6: { - baseName: "prefixes_ipv6", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefixesIpv6": { + "baseName": "prefixes_ipv6", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPPrefixesWebhooks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IPRanges.ts b/packages/datadog-api-client-v1/models/IPRanges.ts index 9f076807d7bd..b562af5f59be 100644 --- a/packages/datadog-api-client-v1/models/IPRanges.ts +++ b/packages/datadog-api-client-v1/models/IPRanges.ts @@ -15,63 +15,68 @@ import { IPPrefixesSynthetics } from "./IPPrefixesSynthetics"; import { IPPrefixesSyntheticsPrivateLocations } from "./IPPrefixesSyntheticsPrivateLocations"; import { IPPrefixesWebhooks } from "./IPPrefixesWebhooks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * IP ranges. - */ +*/ export class IPRanges { /** * Available prefix information for the Agent endpoints. - */ + */ "agents"?: IPPrefixesAgents; /** * Available prefix information for the API endpoints. - */ + */ "api"?: IPPrefixesAPI; /** * Available prefix information for the APM endpoints. - */ + */ "apm"?: IPPrefixesAPM; /** * Available prefix information for all Datadog endpoints. - */ + */ "global"?: IPPrefixesGlobal; /** * Available prefix information for the Logs endpoints. - */ + */ "logs"?: IPPrefixesLogs; /** * Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. - */ + */ "modified"?: string; /** * Available prefix information for the Orchestrator endpoints. - */ + */ "orchestrator"?: IPPrefixesOrchestrator; /** * Available prefix information for the Process endpoints. - */ + */ "process"?: IPPrefixesProcess; /** * Available prefix information for the Remote Configuration endpoints. - */ + */ "remoteConfiguration"?: IPPrefixesRemoteConfiguration; /** * Available prefix information for the Synthetics endpoints. - */ + */ "synthetics"?: IPPrefixesSynthetics; /** * Available prefix information for the Synthetics Private Locations endpoints. - */ + */ "syntheticsPrivateLocations"?: IPPrefixesSyntheticsPrivateLocations; /** * Version of the IP list. - */ + */ "version"?: number; /** * Available prefix information for the Webhook endpoints. - */ + */ "webhooks"?: IPPrefixesWebhooks; /** @@ -90,71 +95,97 @@ export class IPRanges { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - agents: { - baseName: "agents", - type: "IPPrefixesAgents", + "agents": { + "baseName": "agents", + "type": "IPPrefixesAgents", }, - api: { - baseName: "api", - type: "IPPrefixesAPI", + "api": { + "baseName": "api", + "type": "IPPrefixesAPI", }, - apm: { - baseName: "apm", - type: "IPPrefixesAPM", + "apm": { + "baseName": "apm", + "type": "IPPrefixesAPM", }, - global: { - baseName: "global", - type: "IPPrefixesGlobal", + "global": { + "baseName": "global", + "type": "IPPrefixesGlobal", }, - logs: { - baseName: "logs", - type: "IPPrefixesLogs", + "logs": { + "baseName": "logs", + "type": "IPPrefixesLogs", }, - modified: { - baseName: "modified", - type: "string", + "modified": { + "baseName": "modified", + "type": "string", }, - orchestrator: { - baseName: "orchestrator", - type: "IPPrefixesOrchestrator", + "orchestrator": { + "baseName": "orchestrator", + "type": "IPPrefixesOrchestrator", }, - process: { - baseName: "process", - type: "IPPrefixesProcess", + "process": { + "baseName": "process", + "type": "IPPrefixesProcess", }, - remoteConfiguration: { - baseName: "remote-configuration", - type: "IPPrefixesRemoteConfiguration", + "remoteConfiguration": { + "baseName": "remote-configuration", + "type": "IPPrefixesRemoteConfiguration", }, - synthetics: { - baseName: "synthetics", - type: "IPPrefixesSynthetics", + "synthetics": { + "baseName": "synthetics", + "type": "IPPrefixesSynthetics", }, - syntheticsPrivateLocations: { - baseName: "synthetics-private-locations", - type: "IPPrefixesSyntheticsPrivateLocations", + "syntheticsPrivateLocations": { + "baseName": "synthetics-private-locations", + "type": "IPPrefixesSyntheticsPrivateLocations", }, - version: { - baseName: "version", - type: "number", - format: "int64", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, - webhooks: { - baseName: "webhooks", - type: "IPPrefixesWebhooks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "webhooks": { + "baseName": "webhooks", + "type": "IPPrefixesWebhooks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPRanges.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IdpFormData.ts b/packages/datadog-api-client-v1/models/IdpFormData.ts index ac9a106ea6f3..21f34f060e8c 100644 --- a/packages/datadog-api-client-v1/models/IdpFormData.ts +++ b/packages/datadog-api-client-v1/models/IdpFormData.ts @@ -8,13 +8,16 @@ import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the IdP configuration. - */ +*/ export class IdpFormData { /** * The path to the XML metadata file you wish to upload. - */ + */ "idpFile": HttpFile; /** @@ -33,24 +36,50 @@ export class IdpFormData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - idpFile: { - baseName: "idp_file", - type: "HttpFile", - required: true, - format: "binary", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "idpFile": { + "baseName": "idp_file", + "type": "HttpFile", + "required": true, + "format": "binary", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IdpFormData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/IdpResponse.ts b/packages/datadog-api-client-v1/models/IdpResponse.ts index e17ea43f84bf..6fcd121dc187 100644 --- a/packages/datadog-api-client-v1/models/IdpResponse.ts +++ b/packages/datadog-api-client-v1/models/IdpResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The IdP response object. - */ +*/ export class IdpResponse { /** * Identity provider response. - */ + */ "message": string; /** @@ -31,23 +36,49 @@ export class IdpResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - message: { - baseName: "message", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IdpResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ImageWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ImageWidgetDefinition.ts index ef459dc6992f..c14963c378e7 100644 --- a/packages/datadog-api-client-v1/models/ImageWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ImageWidgetDefinition.ts @@ -9,49 +9,54 @@ import { WidgetImageSizing } from "./WidgetImageSizing"; import { WidgetMargin } from "./WidgetMargin"; import { WidgetVerticalAlign } from "./WidgetVerticalAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF. Only available on FREE layout dashboards. - */ +*/ export class ImageWidgetDefinition { /** * Whether to display a background or not. - */ + */ "hasBackground"?: boolean; /** * Whether to display a border or not. - */ + */ "hasBorder"?: boolean; /** * Horizontal alignment. - */ + */ "horizontalAlign"?: WidgetHorizontalAlign; /** * Size of the margins around the image. * **Note**: `small` and `large` values are deprecated. - */ + */ "margin"?: WidgetMargin; /** * How to size the image on the widget. The values are based on the image `object-fit` CSS properties. * **Note**: `zoom`, `fit` and `center` values are deprecated. - */ + */ "sizing"?: WidgetImageSizing; /** * Type of the image widget. - */ + */ "type": ImageWidgetDefinitionType; /** * URL of the image. - */ + */ "url": string; /** * URL of the image in dark mode. - */ + */ "urlDarkTheme"?: string; /** * Vertical alignment. - */ + */ "verticalAlign"?: WidgetVerticalAlign; /** @@ -70,56 +75,82 @@ export class ImageWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hasBackground: { - baseName: "has_background", - type: "boolean", + "hasBackground": { + "baseName": "has_background", + "type": "boolean", }, - hasBorder: { - baseName: "has_border", - type: "boolean", + "hasBorder": { + "baseName": "has_border", + "type": "boolean", }, - horizontalAlign: { - baseName: "horizontal_align", - type: "WidgetHorizontalAlign", + "horizontalAlign": { + "baseName": "horizontal_align", + "type": "WidgetHorizontalAlign", }, - margin: { - baseName: "margin", - type: "WidgetMargin", + "margin": { + "baseName": "margin", + "type": "WidgetMargin", }, - sizing: { - baseName: "sizing", - type: "WidgetImageSizing", + "sizing": { + "baseName": "sizing", + "type": "WidgetImageSizing", }, - type: { - baseName: "type", - type: "ImageWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "ImageWidgetDefinitionType", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, + "url": { + "baseName": "url", + "type": "string", + "required": true, }, - urlDarkTheme: { - baseName: "url_dark_theme", - type: "string", + "urlDarkTheme": { + "baseName": "url_dark_theme", + "type": "string", }, - verticalAlign: { - baseName: "vertical_align", - type: "WidgetVerticalAlign", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "verticalAlign": { + "baseName": "vertical_align", + "type": "WidgetVerticalAlign", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ImageWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ImageWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ImageWidgetDefinitionType.ts index 56a5885e552c..311c90be125e 100644 --- a/packages/datadog-api-client-v1/models/ImageWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ImageWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the image widget. - */ +*/ export type ImageWidgetDefinitionType = typeof IMAGE | UnparsedObject; -export const IMAGE = "image"; +export const IMAGE = 'image'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/IntakePayloadAccepted.ts b/packages/datadog-api-client-v1/models/IntakePayloadAccepted.ts index bcfb140c6eb5..172f463d3209 100644 --- a/packages/datadog-api-client-v1/models/IntakePayloadAccepted.ts +++ b/packages/datadog-api-client-v1/models/IntakePayloadAccepted.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The payload accepted for intake. - */ +*/ export class IntakePayloadAccepted { /** * The status of the intake payload. - */ + */ "status"?: string; /** @@ -31,22 +36,48 @@ export class IntakePayloadAccepted { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IntakePayloadAccepted.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ListStreamColumn.ts b/packages/datadog-api-client-v1/models/ListStreamColumn.ts index d7a54b5a0bbe..0f3955858492 100644 --- a/packages/datadog-api-client-v1/models/ListStreamColumn.ts +++ b/packages/datadog-api-client-v1/models/ListStreamColumn.ts @@ -5,19 +5,24 @@ */ import { ListStreamColumnWidth } from "./ListStreamColumnWidth"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Widget column. - */ +*/ export class ListStreamColumn { /** * Widget column field. - */ + */ "field": string; /** * Widget column width. - */ + */ "width": ListStreamColumnWidth; /** @@ -36,28 +41,54 @@ export class ListStreamColumn { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - field: { - baseName: "field", - type: "string", - required: true, + "field": { + "baseName": "field", + "type": "string", + "required": true, }, - width: { - baseName: "width", - type: "ListStreamColumnWidth", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "width": { + "baseName": "width", + "type": "ListStreamColumnWidth", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListStreamColumn.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ListStreamColumnWidth.ts b/packages/datadog-api-client-v1/models/ListStreamColumnWidth.ts index ba23aa18605a..7f2ad0a72f22 100644 --- a/packages/datadog-api-client-v1/models/ListStreamColumnWidth.ts +++ b/packages/datadog-api-client-v1/models/ListStreamColumnWidth.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget column width. - */ +*/ -export type ListStreamColumnWidth = - | typeof AUTO - | typeof COMPACT - | typeof FULL - | UnparsedObject; -export const AUTO = "auto"; -export const COMPACT = "compact"; -export const FULL = "full"; +export type ListStreamColumnWidth = typeof AUTO| typeof COMPACT| typeof FULL | UnparsedObject; +export const AUTO = 'auto'; +export const COMPACT = 'compact'; +export const FULL = 'full'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.ts b/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.ts index a8fb55d6e4a7..8f7fba2a6f9e 100644 --- a/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.ts +++ b/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.ts @@ -4,41 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Aggregation value. - */ +*/ -export type ListStreamComputeAggregation = - | typeof COUNT - | typeof CARDINALITY - | typeof MEDIAN - | typeof PC75 - | typeof PC90 - | typeof PC95 - | typeof PC98 - | typeof PC99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | typeof EARLIEST - | typeof LATEST - | typeof MOST_FREQUENT - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const MEDIAN = "median"; -export const PC75 = "pc75"; -export const PC90 = "pc90"; -export const PC95 = "pc95"; -export const PC98 = "pc98"; -export const PC99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; -export const EARLIEST = "earliest"; -export const LATEST = "latest"; -export const MOST_FREQUENT = "most_frequent"; +export type ListStreamComputeAggregation = typeof COUNT| typeof CARDINALITY| typeof MEDIAN| typeof PC75| typeof PC90| typeof PC95| typeof PC98| typeof PC99| typeof SUM| typeof MIN| typeof MAX| typeof AVG| typeof EARLIEST| typeof LATEST| typeof MOST_FREQUENT | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const MEDIAN = 'median'; +export const PC75 = 'pc75'; +export const PC90 = 'pc90'; +export const PC95 = 'pc95'; +export const PC98 = 'pc98'; +export const PC99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; +export const EARLIEST = 'earliest'; +export const LATEST = 'latest'; +export const MOST_FREQUENT = 'most_frequent'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ListStreamComputeItems.ts b/packages/datadog-api-client-v1/models/ListStreamComputeItems.ts index f7fd178df53c..c76d60041b9c 100644 --- a/packages/datadog-api-client-v1/models/ListStreamComputeItems.ts +++ b/packages/datadog-api-client-v1/models/ListStreamComputeItems.ts @@ -5,19 +5,24 @@ */ import { ListStreamComputeAggregation } from "./ListStreamComputeAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of facets and aggregations which to compute. - */ +*/ export class ListStreamComputeItems { /** * Aggregation value. - */ + */ "aggregation": ListStreamComputeAggregation; /** * Facet name. - */ + */ "facet"?: string; /** @@ -36,27 +41,53 @@ export class ListStreamComputeItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "ListStreamComputeAggregation", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "ListStreamComputeAggregation", + "required": true, }, - facet: { - baseName: "facet", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "facet": { + "baseName": "facet", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListStreamComputeItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ListStreamGroupByItems.ts b/packages/datadog-api-client-v1/models/ListStreamGroupByItems.ts index 96566b1792ba..a9d37f7f0d58 100644 --- a/packages/datadog-api-client-v1/models/ListStreamGroupByItems.ts +++ b/packages/datadog-api-client-v1/models/ListStreamGroupByItems.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of facets on which to group. - */ +*/ export class ListStreamGroupByItems { /** * Facet name. - */ + */ "facet": string; /** @@ -31,23 +36,49 @@ export class ListStreamGroupByItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListStreamGroupByItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ListStreamQuery.ts b/packages/datadog-api-client-v1/models/ListStreamQuery.ts index 8e517f9082d8..bc3415019062 100644 --- a/packages/datadog-api-client-v1/models/ListStreamQuery.ts +++ b/packages/datadog-api-client-v1/models/ListStreamQuery.ts @@ -9,47 +9,52 @@ import { ListStreamSource } from "./ListStreamSource"; import { WidgetEventSize } from "./WidgetEventSize"; import { WidgetFieldSort } from "./WidgetFieldSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated list stream widget. - */ +*/ export class ListStreamQuery { /** * Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream. - */ + */ "clusteringPatternFieldPath"?: string; /** * Compute configuration for the List Stream Widget. Compute can be used only with the logs_transaction_stream (from 1 to 5 items) list stream source. - */ + */ "compute"?: Array; /** * Source from which to query items to display in the stream. - */ + */ "dataSource": ListStreamSource; /** * Size to use to display an event. - */ + */ "eventSize"?: WidgetEventSize; /** * Group by configuration for the List Stream Widget. Group by can be used only with logs_pattern_stream (up to 4 items) or logs_transaction_stream (one group by item is required) list stream source. - */ + */ "groupBy"?: Array; /** * List of indexes. - */ + */ "indexes"?: Array; /** * Widget query. - */ + */ "queryString": string; /** * Which column and order to sort by - */ + */ "sort"?: WidgetFieldSort; /** * Option for storage location. Feature in Private Beta. - */ + */ "storage"?: string; /** @@ -68,56 +73,82 @@ export class ListStreamQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - clusteringPatternFieldPath: { - baseName: "clustering_pattern_field_path", - type: "string", + "clusteringPatternFieldPath": { + "baseName": "clustering_pattern_field_path", + "type": "string", }, - compute: { - baseName: "compute", - type: "Array", + "compute": { + "baseName": "compute", + "type": "Array", }, - dataSource: { - baseName: "data_source", - type: "ListStreamSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "ListStreamSource", + "required": true, }, - eventSize: { - baseName: "event_size", - type: "WidgetEventSize", + "eventSize": { + "baseName": "event_size", + "type": "WidgetEventSize", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - indexes: { - baseName: "indexes", - type: "Array", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - queryString: { - baseName: "query_string", - type: "string", - required: true, + "queryString": { + "baseName": "query_string", + "type": "string", + "required": true, }, - sort: { - baseName: "sort", - type: "WidgetFieldSort", + "sort": { + "baseName": "sort", + "type": "WidgetFieldSort", }, - storage: { - baseName: "storage", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "storage": { + "baseName": "storage", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListStreamQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ListStreamResponseFormat.ts b/packages/datadog-api-client-v1/models/ListStreamResponseFormat.ts index 9d7c1071844d..283c79da566f 100644 --- a/packages/datadog-api-client-v1/models/ListStreamResponseFormat.ts +++ b/packages/datadog-api-client-v1/models/ListStreamResponseFormat.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget response format. - */ +*/ export type ListStreamResponseFormat = typeof EVENT_LIST | UnparsedObject; -export const EVENT_LIST = "event_list"; +export const EVENT_LIST = 'event_list'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ListStreamSource.ts b/packages/datadog-api-client-v1/models/ListStreamSource.ts index 23eaf016cfee..fb8445cb81cb 100644 --- a/packages/datadog-api-client-v1/models/ListStreamSource.ts +++ b/packages/datadog-api-client-v1/models/ListStreamSource.ts @@ -4,37 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Source from which to query items to display in the stream. - */ +*/ -export type ListStreamSource = - | typeof LOGS_STREAM - | typeof AUDIT_STREAM - | typeof CI_PIPELINE_STREAM - | typeof CI_TEST_STREAM - | typeof RUM_ISSUE_STREAM - | typeof APM_ISSUE_STREAM - | typeof TRACE_STREAM - | typeof LOGS_ISSUE_STREAM - | typeof LOGS_PATTERN_STREAM - | typeof LOGS_TRANSACTION_STREAM - | typeof EVENT_STREAM - | typeof RUM_STREAM - | typeof LLM_OBSERVABILITY_STREAM - | UnparsedObject; -export const LOGS_STREAM = "logs_stream"; -export const AUDIT_STREAM = "audit_stream"; -export const CI_PIPELINE_STREAM = "ci_pipeline_stream"; -export const CI_TEST_STREAM = "ci_test_stream"; -export const RUM_ISSUE_STREAM = "rum_issue_stream"; -export const APM_ISSUE_STREAM = "apm_issue_stream"; -export const TRACE_STREAM = "trace_stream"; -export const LOGS_ISSUE_STREAM = "logs_issue_stream"; -export const LOGS_PATTERN_STREAM = "logs_pattern_stream"; -export const LOGS_TRANSACTION_STREAM = "logs_transaction_stream"; -export const EVENT_STREAM = "event_stream"; -export const RUM_STREAM = "rum_stream"; -export const LLM_OBSERVABILITY_STREAM = "llm_observability_stream"; +export type ListStreamSource = typeof LOGS_STREAM| typeof AUDIT_STREAM| typeof CI_PIPELINE_STREAM| typeof CI_TEST_STREAM| typeof RUM_ISSUE_STREAM| typeof APM_ISSUE_STREAM| typeof TRACE_STREAM| typeof LOGS_ISSUE_STREAM| typeof LOGS_PATTERN_STREAM| typeof LOGS_TRANSACTION_STREAM| typeof EVENT_STREAM| typeof RUM_STREAM| typeof LLM_OBSERVABILITY_STREAM | UnparsedObject; +export const LOGS_STREAM = 'logs_stream'; +export const AUDIT_STREAM = 'audit_stream'; +export const CI_PIPELINE_STREAM = 'ci_pipeline_stream'; +export const CI_TEST_STREAM = 'ci_test_stream'; +export const RUM_ISSUE_STREAM = 'rum_issue_stream'; +export const APM_ISSUE_STREAM = 'apm_issue_stream'; +export const TRACE_STREAM = 'trace_stream'; +export const LOGS_ISSUE_STREAM = 'logs_issue_stream'; +export const LOGS_PATTERN_STREAM = 'logs_pattern_stream'; +export const LOGS_TRANSACTION_STREAM = 'logs_transaction_stream'; +export const EVENT_STREAM = 'event_stream'; +export const RUM_STREAM = 'rum_stream'; +export const LLM_OBSERVABILITY_STREAM = 'llm_observability_stream'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ListStreamWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ListStreamWidgetDefinition.ts index 59a239bfb1a2..1d4aed9c3ab4 100644 --- a/packages/datadog-api-client-v1/models/ListStreamWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ListStreamWidgetDefinition.ts @@ -8,44 +8,49 @@ import { ListStreamWidgetRequest } from "./ListStreamWidgetRequest"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The list stream visualization displays a table of recent events in your application that * match a search criteria using user-defined columns. - */ +*/ export class ListStreamWidgetDefinition { /** * Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". - */ + */ "legendSize"?: string; /** * Request payload used to query items. - */ + */ "requests": [ListStreamWidgetRequest]; /** * Whether or not to display the legend on this widget. - */ + */ "showLegend"?: boolean; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the list stream widget. - */ + */ "type": ListStreamWidgetDefinitionType; /** @@ -64,52 +69,78 @@ export class ListStreamWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - legendSize: { - baseName: "legend_size", - type: "string", + "legendSize": { + "baseName": "legend_size", + "type": "string", }, - requests: { - baseName: "requests", - type: "[ListStreamWidgetRequest]", - required: true, + "requests": { + "baseName": "requests", + "type": "[ListStreamWidgetRequest]", + "required": true, }, - showLegend: { - baseName: "show_legend", - type: "boolean", + "showLegend": { + "baseName": "show_legend", + "type": "boolean", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "ListStreamWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ListStreamWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListStreamWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ListStreamWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ListStreamWidgetDefinitionType.ts index f28d314b4495..0d9e9a57ca9b 100644 --- a/packages/datadog-api-client-v1/models/ListStreamWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ListStreamWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the list stream widget. - */ +*/ -export type ListStreamWidgetDefinitionType = - | typeof LIST_STREAM - | UnparsedObject; -export const LIST_STREAM = "list_stream"; +export type ListStreamWidgetDefinitionType = typeof LIST_STREAM | UnparsedObject; +export const LIST_STREAM = 'list_stream'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ListStreamWidgetRequest.ts b/packages/datadog-api-client-v1/models/ListStreamWidgetRequest.ts index a40d5961fa25..1b595ef443a6 100644 --- a/packages/datadog-api-client-v1/models/ListStreamWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/ListStreamWidgetRequest.ts @@ -7,23 +7,28 @@ import { ListStreamColumn } from "./ListStreamColumn"; import { ListStreamQuery } from "./ListStreamQuery"; import { ListStreamResponseFormat } from "./ListStreamResponseFormat"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated list stream widget. - */ +*/ export class ListStreamWidgetRequest { /** * Widget columns. - */ + */ "columns": Array; /** * Updated list stream widget. - */ + */ "query": ListStreamQuery; /** * Widget response format. - */ + */ "responseFormat": ListStreamResponseFormat; /** @@ -42,33 +47,59 @@ export class ListStreamWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - columns: { - baseName: "columns", - type: "Array", - required: true, - }, - query: { - baseName: "query", - type: "ListStreamQuery", - required: true, + "columns": { + "baseName": "columns", + "type": "Array", + "required": true, }, - responseFormat: { - baseName: "response_format", - type: "ListStreamResponseFormat", - required: true, + "query": { + "baseName": "query", + "type": "ListStreamQuery", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "responseFormat": { + "baseName": "response_format", + "type": "ListStreamResponseFormat", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListStreamWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Log.ts b/packages/datadog-api-client-v1/models/Log.ts index 130d1cd6c43a..6918d714e1f3 100644 --- a/packages/datadog-api-client-v1/models/Log.ts +++ b/packages/datadog-api-client-v1/models/Log.ts @@ -5,19 +5,24 @@ */ import { LogContent } from "./LogContent"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a log after being processed and stored by Datadog. - */ +*/ export class Log { /** * JSON object containing all log attributes and their associated values. - */ + */ "content"?: LogContent; /** * ID of the Log. - */ + */ "id"?: string; /** @@ -36,26 +41,52 @@ export class Log { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - content: { - baseName: "content", - type: "LogContent", + "content": { + "baseName": "content", + "type": "LogContent", }, - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Log.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogContent.ts b/packages/datadog-api-client-v1/models/LogContent.ts index 8d1d14419f45..d77dba905a57 100644 --- a/packages/datadog-api-client-v1/models/LogContent.ts +++ b/packages/datadog-api-client-v1/models/LogContent.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all log attributes and their associated values. - */ +*/ export class LogContent { /** * JSON object of attributes from your log. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * Name of the machine from where the logs are being sent. - */ + */ "host"?: string; /** * The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) * of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. * That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. - */ + */ "message"?: string; /** * The name of the application or service generating the log events. * It is used to switch from Logs to APM, so make sure you define the same * value when you use both products. - */ + */ "service"?: string; /** * Array of tags associated with your log. - */ + */ "tags"?: Array; /** * Timestamp of your log. - */ + */ "timestamp"?: Date; /** @@ -55,43 +60,69 @@ export class LogContent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", - }, - host: { - baseName: "host", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - message: { - baseName: "message", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - service: { - baseName: "service", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "service": { + "baseName": "service", + "type": "string", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogContent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogQueryDefinition.ts b/packages/datadog-api-client-v1/models/LogQueryDefinition.ts index 83f9a7b0763c..b4415e0eb2dc 100644 --- a/packages/datadog-api-client-v1/models/LogQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/LogQueryDefinition.ts @@ -7,31 +7,36 @@ import { LogQueryDefinitionGroupBy } from "./LogQueryDefinitionGroupBy"; import { LogQueryDefinitionSearch } from "./LogQueryDefinitionSearch"; import { LogsQueryCompute } from "./LogsQueryCompute"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The log query. - */ +*/ export class LogQueryDefinition { /** * Define computation for a log query. - */ + */ "compute"?: LogsQueryCompute; /** * List of tag prefixes to group by in the case of a cluster check. - */ + */ "groupBy"?: Array; /** * A coma separated-list of index names. Use "*" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) - */ + */ "index"?: string; /** * This field is mutually exclusive with `compute`. - */ + */ "multiCompute"?: Array; /** * The query being made on the logs. - */ + */ "search"?: LogQueryDefinitionSearch; /** @@ -50,38 +55,64 @@ export class LogQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "LogsQueryCompute", + "compute": { + "baseName": "compute", + "type": "LogsQueryCompute", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - index: { - baseName: "index", - type: "string", + "index": { + "baseName": "index", + "type": "string", }, - multiCompute: { - baseName: "multi_compute", - type: "Array", + "multiCompute": { + "baseName": "multi_compute", + "type": "Array", }, - search: { - baseName: "search", - type: "LogQueryDefinitionSearch", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "search": { + "baseName": "search", + "type": "LogQueryDefinitionSearch", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBy.ts b/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBy.ts index 1d3b0819fc39..98e28d05413b 100644 --- a/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBy.ts +++ b/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBy.ts @@ -5,23 +5,28 @@ */ import { LogQueryDefinitionGroupBySort } from "./LogQueryDefinitionGroupBySort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Defined items in the group. - */ +*/ export class LogQueryDefinitionGroupBy { /** * Facet name. - */ + */ "facet": string; /** * Maximum number of items in the group. - */ + */ "limit"?: number; /** * Define a sorting method. - */ + */ "sort"?: LogQueryDefinitionGroupBySort; /** @@ -40,32 +45,58 @@ export class LogQueryDefinitionGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - sort: { - baseName: "sort", - type: "LogQueryDefinitionGroupBySort", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "LogQueryDefinitionGroupBySort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogQueryDefinitionGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBySort.ts b/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBySort.ts index 4ebec7387051..a2b496f908d3 100644 --- a/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBySort.ts +++ b/packages/datadog-api-client-v1/models/LogQueryDefinitionGroupBySort.ts @@ -5,23 +5,28 @@ */ import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Define a sorting method. - */ +*/ export class LogQueryDefinitionGroupBySort { /** * The aggregation method. - */ + */ "aggregation": string; /** * Facet name. - */ + */ "facet"?: string; /** * Widget sorting methods. - */ + */ "order": WidgetSort; /** @@ -40,32 +45,58 @@ export class LogQueryDefinitionGroupBySort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "string", - required: true, - }, - facet: { - baseName: "facet", - type: "string", + "aggregation": { + "baseName": "aggregation", + "type": "string", + "required": true, }, - order: { - baseName: "order", - type: "WidgetSort", - required: true, + "facet": { + "baseName": "facet", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "WidgetSort", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogQueryDefinitionGroupBySort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogQueryDefinitionSearch.ts b/packages/datadog-api-client-v1/models/LogQueryDefinitionSearch.ts index e66e0af7561a..f4f6631f103a 100644 --- a/packages/datadog-api-client-v1/models/LogQueryDefinitionSearch.ts +++ b/packages/datadog-api-client-v1/models/LogQueryDefinitionSearch.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The query being made on the logs. - */ +*/ export class LogQueryDefinitionSearch { /** * Search value to apply. - */ + */ "query": string; /** @@ -31,23 +36,49 @@ export class LogQueryDefinitionSearch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogQueryDefinitionSearch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogStreamWidgetDefinition.ts b/packages/datadog-api-client-v1/models/LogStreamWidgetDefinition.ts index aee1fb0c843c..f85bef18197b 100644 --- a/packages/datadog-api-client-v1/models/LogStreamWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/LogStreamWidgetDefinition.ts @@ -9,63 +9,68 @@ import { WidgetMessageDisplay } from "./WidgetMessageDisplay"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. - */ +*/ export class LogStreamWidgetDefinition { /** * Which columns to display on the widget. - */ + */ "columns"?: Array; /** * An array of index names to query in the stream. Use [] to query all indexes at once. - */ + */ "indexes"?: Array; /** * ID of the log set to use. - */ + */ "logset"?: string; /** * Amount of log lines to display - */ + */ "messageDisplay"?: WidgetMessageDisplay; /** * Query to filter the log stream with. - */ + */ "query"?: string; /** * Whether to show the date column or not - */ + */ "showDateColumn"?: boolean; /** * Whether to show the message column or not - */ + */ "showMessageColumn"?: boolean; /** * Which column and order to sort by - */ + */ "sort"?: WidgetFieldSort; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the log stream widget. - */ + */ "type": LogStreamWidgetDefinitionType; /** @@ -84,71 +89,97 @@ export class LogStreamWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - columns: { - baseName: "columns", - type: "Array", + "columns": { + "baseName": "columns", + "type": "Array", }, - indexes: { - baseName: "indexes", - type: "Array", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - logset: { - baseName: "logset", - type: "string", + "logset": { + "baseName": "logset", + "type": "string", }, - messageDisplay: { - baseName: "message_display", - type: "WidgetMessageDisplay", + "messageDisplay": { + "baseName": "message_display", + "type": "WidgetMessageDisplay", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - showDateColumn: { - baseName: "show_date_column", - type: "boolean", + "showDateColumn": { + "baseName": "show_date_column", + "type": "boolean", }, - showMessageColumn: { - baseName: "show_message_column", - type: "boolean", + "showMessageColumn": { + "baseName": "show_message_column", + "type": "boolean", }, - sort: { - baseName: "sort", - type: "WidgetFieldSort", + "sort": { + "baseName": "sort", + "type": "WidgetFieldSort", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "LogStreamWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogStreamWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogStreamWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogStreamWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/LogStreamWidgetDefinitionType.ts index a547c67c574a..c35900dcd3d8 100644 --- a/packages/datadog-api-client-v1/models/LogStreamWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/LogStreamWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the log stream widget. - */ +*/ export type LogStreamWidgetDefinitionType = typeof LOG_STREAM | UnparsedObject; -export const LOG_STREAM = "log_stream"; +export const LOG_STREAM = 'log_stream'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsAPIError.ts b/packages/datadog-api-client-v1/models/LogsAPIError.ts index 340fabace374..0993484132a5 100644 --- a/packages/datadog-api-client-v1/models/LogsAPIError.ts +++ b/packages/datadog-api-client-v1/models/LogsAPIError.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Error returned by the Logs API - */ +*/ export class LogsAPIError { /** * Code identifying the error - */ + */ "code"?: string; /** * Additional error details - */ + */ "details"?: Array; /** * Error message - */ + */ "message"?: string; /** @@ -39,30 +44,56 @@ export class LogsAPIError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - details: { - baseName: "details", - type: "Array", + "code": { + "baseName": "code", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "details": { + "baseName": "details", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAPIError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsAPIErrorResponse.ts b/packages/datadog-api-client-v1/models/LogsAPIErrorResponse.ts index 853db7701096..fff67290bf59 100644 --- a/packages/datadog-api-client-v1/models/LogsAPIErrorResponse.ts +++ b/packages/datadog-api-client-v1/models/LogsAPIErrorResponse.ts @@ -5,15 +5,20 @@ */ import { LogsAPIError } from "./LogsAPIError"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response returned by the Logs API when errors occur. - */ +*/ export class LogsAPIErrorResponse { /** * Error returned by the Logs API - */ + */ "error"?: LogsAPIError; /** @@ -32,22 +37,48 @@ export class LogsAPIErrorResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - error: { - baseName: "error", - type: "LogsAPIError", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "error": { + "baseName": "error", + "type": "LogsAPIError", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAPIErrorResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsArithmeticProcessor.ts b/packages/datadog-api-client-v1/models/LogsArithmeticProcessor.ts index 778ad205ddd4..8bcf2ac03bff 100644 --- a/packages/datadog-api-client-v1/models/LogsArithmeticProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsArithmeticProcessor.ts @@ -5,56 +5,61 @@ */ import { LogsArithmeticProcessorType } from "./LogsArithmeticProcessorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use the Arithmetic Processor to add a new attribute (without spaces or special characters * in the new attribute name) to a log with the result of the provided formula. * This enables you to remap different time attributes with different units into a single attribute, * or to compute operations on attributes within the same log. - * + * * The formula can use parentheses and the basic arithmetic operators `-`, `+`, `*`, `/`. - * + * * By default, the calculation is skipped if an attribute is missing. * Select “Replace missing attribute by 0” to automatically populate * missing attribute values with 0 to ensure that the calculation is done. * An attribute is missing if it is not found in the log attributes, * or if it cannot be converted to a number. - * + * * *Notes*: - * + * * - The operator `-` needs to be space split in the formula as it can also be contained in attribute names. * - If the target attribute already exists, it is overwritten by the result of the formula. * - Results are rounded up to the 9th decimal. For example, if the result of the formula is `0.1234567891`, * the actual value stored for the attribute is `0.123456789`. * - If you need to scale a unit of measure, * see [Scale Filter](https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=filter#matcher-and-filter). - */ +*/ export class LogsArithmeticProcessor { /** * Arithmetic operation between one or more log attributes. - */ + */ "expression": string; /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * If `true`, it replaces all missing attributes of expression by `0`, `false` * skip the operation if an attribute is missing. - */ + */ "isReplaceMissing"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Name of the attribute that contains the result of the arithmetic operation. - */ + */ "target": string; /** * Type of logs arithmetic processor. - */ + */ "type": LogsArithmeticProcessorType; /** @@ -73,45 +78,71 @@ export class LogsArithmeticProcessor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - expression: { - baseName: "expression", - type: "string", - required: true, - }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "expression": { + "baseName": "expression", + "type": "string", + "required": true, }, - isReplaceMissing: { - baseName: "is_replace_missing", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "isReplaceMissing": { + "baseName": "is_replace_missing", + "type": "boolean", }, - target: { - baseName: "target", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - type: { - baseName: "type", - type: "LogsArithmeticProcessorType", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsArithmeticProcessorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArithmeticProcessor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsArithmeticProcessorType.ts b/packages/datadog-api-client-v1/models/LogsArithmeticProcessorType.ts index fab146412923..f0346ad17d3f 100644 --- a/packages/datadog-api-client-v1/models/LogsArithmeticProcessorType.ts +++ b/packages/datadog-api-client-v1/models/LogsArithmeticProcessorType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs arithmetic processor. - */ +*/ -export type LogsArithmeticProcessorType = - | typeof ARITHMETIC_PROCESSOR - | UnparsedObject; -export const ARITHMETIC_PROCESSOR = "arithmetic-processor"; +export type LogsArithmeticProcessorType = typeof ARITHMETIC_PROCESSOR | UnparsedObject; +export const ARITHMETIC_PROCESSOR = 'arithmetic-processor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsAttributeRemapper.ts b/packages/datadog-api-client-v1/models/LogsAttributeRemapper.ts index 5ca850791fdb..f804db7bf095 100644 --- a/packages/datadog-api-client-v1/models/LogsAttributeRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsAttributeRemapper.ts @@ -6,55 +6,60 @@ import { LogsAttributeRemapperType } from "./LogsAttributeRemapperType"; import { TargetFormatType } from "./TargetFormatType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The remapper processor remaps any source attribute(s) or tag to another target attribute or tag. * Constraints on the tag/attribute name are explained in the [Tag Best Practice documentation](https://docs.datadoghq.com/logs/guide/log-parsing-best-practice). * Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name. - */ +*/ export class LogsAttributeRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Override or not the target element if already set, - */ + */ "overrideOnConflict"?: boolean; /** * Remove or preserve the remapped source element. - */ + */ "preserveSource"?: boolean; /** * Defines if the sources are from log `attribute` or `tag`. - */ + */ "sourceType"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Final attribute or tag name to remap the sources to. - */ + */ "target": string; /** * If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. * If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. * If the `target_type` is `tag`, this parameter may not be specified. - */ + */ "targetFormat"?: TargetFormatType; /** * Defines if the final attribute or tag name is from log `attribute` or `tag`. - */ + */ "targetType"?: string; /** * Type of logs attribute remapper. - */ + */ "type": LogsAttributeRemapperType; /** @@ -73,61 +78,87 @@ export class LogsAttributeRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - overrideOnConflict: { - baseName: "override_on_conflict", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - preserveSource: { - baseName: "preserve_source", - type: "boolean", + "overrideOnConflict": { + "baseName": "override_on_conflict", + "type": "boolean", }, - sourceType: { - baseName: "source_type", - type: "string", + "preserveSource": { + "baseName": "preserve_source", + "type": "boolean", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "sourceType": { + "baseName": "source_type", + "type": "string", }, - target: { - baseName: "target", - type: "string", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - targetFormat: { - baseName: "target_format", - type: "TargetFormatType", + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - targetType: { - baseName: "target_type", - type: "string", + "targetFormat": { + "baseName": "target_format", + "type": "TargetFormatType", }, - type: { - baseName: "type", - type: "LogsAttributeRemapperType", - required: true, + "targetType": { + "baseName": "target_type", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsAttributeRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAttributeRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsAttributeRemapperType.ts b/packages/datadog-api-client-v1/models/LogsAttributeRemapperType.ts index 65cf0de79630..f69817997ac3 100644 --- a/packages/datadog-api-client-v1/models/LogsAttributeRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsAttributeRemapperType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs attribute remapper. - */ +*/ -export type LogsAttributeRemapperType = - | typeof ATTRIBUTE_REMAPPER - | UnparsedObject; -export const ATTRIBUTE_REMAPPER = "attribute-remapper"; +export type LogsAttributeRemapperType = typeof ATTRIBUTE_REMAPPER | UnparsedObject; +export const ATTRIBUTE_REMAPPER = 'attribute-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsByRetention.ts b/packages/datadog-api-client-v1/models/LogsByRetention.ts index 459cbb6b0550..fbfbad8e36c2 100644 --- a/packages/datadog-api-client-v1/models/LogsByRetention.ts +++ b/packages/datadog-api-client-v1/models/LogsByRetention.ts @@ -7,23 +7,28 @@ import { LogsByRetentionMonthlyUsage } from "./LogsByRetentionMonthlyUsage"; import { LogsByRetentionOrgs } from "./LogsByRetentionOrgs"; import { LogsRetentionAggSumUsage } from "./LogsRetentionAggSumUsage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing logs usage data broken down by retention period. - */ +*/ export class LogsByRetention { /** * Indexed logs usage summary for each organization for each retention period with usage. - */ + */ "orgs"?: LogsByRetentionOrgs; /** * Aggregated index logs usage for each retention period with usage. - */ + */ "usage"?: Array; /** * Object containing a summary of indexed logs usage by retention period for a single month. - */ + */ "usageByMonth"?: LogsByRetentionMonthlyUsage; /** @@ -42,30 +47,56 @@ export class LogsByRetention { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - orgs: { - baseName: "orgs", - type: "LogsByRetentionOrgs", - }, - usage: { - baseName: "usage", - type: "Array", + "orgs": { + "baseName": "orgs", + "type": "LogsByRetentionOrgs", }, - usageByMonth: { - baseName: "usage_by_month", - type: "LogsByRetentionMonthlyUsage", + "usage": { + "baseName": "usage", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usageByMonth": { + "baseName": "usage_by_month", + "type": "LogsByRetentionMonthlyUsage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsByRetention.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsByRetentionMonthlyUsage.ts b/packages/datadog-api-client-v1/models/LogsByRetentionMonthlyUsage.ts index 9fc3d8fb7a68..1849ce871ecf 100644 --- a/packages/datadog-api-client-v1/models/LogsByRetentionMonthlyUsage.ts +++ b/packages/datadog-api-client-v1/models/LogsByRetentionMonthlyUsage.ts @@ -5,19 +5,24 @@ */ import { LogsRetentionSumUsage } from "./LogsRetentionSumUsage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing a summary of indexed logs usage by retention period for a single month. - */ +*/ export class LogsByRetentionMonthlyUsage { /** * The month for the usage. - */ + */ "date"?: Date; /** * Indexed logs usage for each active retention for the month. - */ + */ "usage"?: Array; /** @@ -36,27 +41,53 @@ export class LogsByRetentionMonthlyUsage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - date: { - baseName: "date", - type: "Date", - format: "date-time", + "date": { + "baseName": "date", + "type": "Date", + "format": "date-time", }, - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsByRetentionMonthlyUsage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsByRetentionOrgUsage.ts b/packages/datadog-api-client-v1/models/LogsByRetentionOrgUsage.ts index 1ab951ace5ea..aa347d5e01f6 100644 --- a/packages/datadog-api-client-v1/models/LogsByRetentionOrgUsage.ts +++ b/packages/datadog-api-client-v1/models/LogsByRetentionOrgUsage.ts @@ -5,15 +5,20 @@ */ import { LogsRetentionSumUsage } from "./LogsRetentionSumUsage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Indexed logs usage by retention for a single organization. - */ +*/ export class LogsByRetentionOrgUsage { /** * Indexed logs usage for each active retention for the organization. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class LogsByRetentionOrgUsage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsByRetentionOrgUsage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsByRetentionOrgs.ts b/packages/datadog-api-client-v1/models/LogsByRetentionOrgs.ts index 7358e14d399f..767759c60ccd 100644 --- a/packages/datadog-api-client-v1/models/LogsByRetentionOrgs.ts +++ b/packages/datadog-api-client-v1/models/LogsByRetentionOrgs.ts @@ -5,15 +5,20 @@ */ import { LogsByRetentionOrgUsage } from "./LogsByRetentionOrgUsage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Indexed logs usage summary for each organization for each retention period with usage. - */ +*/ export class LogsByRetentionOrgs { /** * Indexed logs usage summary for each organization. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class LogsByRetentionOrgs { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsByRetentionOrgs.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsCategoryProcessor.ts b/packages/datadog-api-client-v1/models/LogsCategoryProcessor.ts index 6ea522bd478c..f7388c09da15 100644 --- a/packages/datadog-api-client-v1/models/LogsCategoryProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsCategoryProcessor.ts @@ -6,15 +6,20 @@ import { LogsCategoryProcessorCategory } from "./LogsCategoryProcessorCategory"; import { LogsCategoryProcessorType } from "./LogsCategoryProcessorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use the Category Processor to add a new attribute (without spaces or special characters in the new attribute name) * to a log matching a provided search query. Use categories to create groups for an analytical view. * For example, URL groups, machine groups, environments, and response time buckets. - * + * * **Notes**: - * + * * - The syntax of the query is the one of Logs Explorer search bar. * The query can be done on any log attribute or tag, whether it is a facet or not. * Wildcards can also be used inside your query. @@ -22,28 +27,28 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Make sure they are properly ordered in case a log could match several queries. * - The names of the categories must be unique. * - Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper. - */ +*/ export class LogsCategoryProcessor { /** * Array of filters to match or not a log and their * corresponding `name` to assign a custom value to the log. - */ + */ "categories": Array; /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Name of the target attribute which value is defined by the matching category. - */ + */ "target": string; /** * Type of logs category processor. - */ + */ "type": LogsCategoryProcessorType; /** @@ -62,41 +67,67 @@ export class LogsCategoryProcessor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - categories: { - baseName: "categories", - type: "Array", - required: true, + "categories": { + "baseName": "categories", + "type": "Array", + "required": true, }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - target: { - baseName: "target", - type: "string", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "LogsCategoryProcessorType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsCategoryProcessorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsCategoryProcessor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsCategoryProcessorCategory.ts b/packages/datadog-api-client-v1/models/LogsCategoryProcessorCategory.ts index 154d2a17d8fc..c8dd9366f332 100644 --- a/packages/datadog-api-client-v1/models/LogsCategoryProcessorCategory.ts +++ b/packages/datadog-api-client-v1/models/LogsCategoryProcessorCategory.ts @@ -5,19 +5,24 @@ */ import { LogsFilter } from "./LogsFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the logs filter. - */ +*/ export class LogsCategoryProcessorCategory { /** * Filter for logs. - */ + */ "filter"?: LogsFilter; /** * Value to assign to the target attribute. - */ + */ "name"?: string; /** @@ -36,26 +41,52 @@ export class LogsCategoryProcessorCategory { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "LogsFilter", + "filter": { + "baseName": "filter", + "type": "LogsFilter", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsCategoryProcessorCategory.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsCategoryProcessorType.ts b/packages/datadog-api-client-v1/models/LogsCategoryProcessorType.ts index 7052ffa4ddf1..fab23887e097 100644 --- a/packages/datadog-api-client-v1/models/LogsCategoryProcessorType.ts +++ b/packages/datadog-api-client-v1/models/LogsCategoryProcessorType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs category processor. - */ +*/ -export type LogsCategoryProcessorType = - | typeof CATEGORY_PROCESSOR - | UnparsedObject; -export const CATEGORY_PROCESSOR = "category-processor"; +export type LogsCategoryProcessorType = typeof CATEGORY_PROCESSOR | UnparsedObject; +export const CATEGORY_PROCESSOR = 'category-processor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsDailyLimitReset.ts b/packages/datadog-api-client-v1/models/LogsDailyLimitReset.ts index 4b2943473c43..06e253dc6869 100644 --- a/packages/datadog-api-client-v1/models/LogsDailyLimitReset.ts +++ b/packages/datadog-api-client-v1/models/LogsDailyLimitReset.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing options to override the default daily limit reset time. - */ +*/ export class LogsDailyLimitReset { /** * String in `HH:00` format representing the time of day the daily limit should be reset. The hours must be between 00 and 23 (inclusive). - */ + */ "resetTime"?: string; /** * String in `(-|+)HH:00` format representing the UTC offset to apply to the given reset time. The hours must be between -12 and +14 (inclusive). - */ + */ "resetUtcOffset"?: string; /** @@ -35,26 +40,52 @@ export class LogsDailyLimitReset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - resetTime: { - baseName: "reset_time", - type: "string", + "resetTime": { + "baseName": "reset_time", + "type": "string", }, - resetUtcOffset: { - baseName: "reset_utc_offset", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "resetUtcOffset": { + "baseName": "reset_utc_offset", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsDailyLimitReset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsDateRemapper.ts b/packages/datadog-api-client-v1/models/LogsDateRemapper.ts index 1373af8120b4..7afe8a7e2c11 100644 --- a/packages/datadog-api-client-v1/models/LogsDateRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsDateRemapper.ts @@ -5,45 +5,50 @@ */ import { LogsDateRemapperType } from "./LogsDateRemapperType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * As Datadog receives logs, it timestamps them using the value(s) from any of these default attributes. - * + * * - `timestamp` * - `date` * - `_timestamp` * - `Timestamp` * - `eventTime` * - `published_date` - * + * * If your logs put their dates in an attribute not in this list, * use the log date Remapper Processor to define their date attribute as the official log timestamp. * The recognized date formats are ISO8601, UNIX (the milliseconds EPOCH format), and RFC3164. - * + * * **Note:** If your logs don’t contain any of the default attributes * and you haven’t defined your own date attribute, Datadog timestamps * the logs with the date it received them. - * + * * If multiple log date remapper processors can be applied to a given log, * only the first one (according to the pipelines order) is taken into account. - */ +*/ export class LogsDateRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Type of logs date remapper. - */ + */ "type": LogsDateRemapperType; /** @@ -62,36 +67,62 @@ export class LogsDateRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "LogsDateRemapperType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsDateRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsDateRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsDateRemapperType.ts b/packages/datadog-api-client-v1/models/LogsDateRemapperType.ts index 550612854dc8..20fe364da91b 100644 --- a/packages/datadog-api-client-v1/models/LogsDateRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsDateRemapperType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs date remapper. - */ +*/ export type LogsDateRemapperType = typeof DATE_REMAPPER | UnparsedObject; -export const DATE_REMAPPER = "date-remapper"; +export const DATE_REMAPPER = 'date-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsExclusion.ts b/packages/datadog-api-client-v1/models/LogsExclusion.ts index 8163e5192d65..2fc5ade35838 100644 --- a/packages/datadog-api-client-v1/models/LogsExclusion.ts +++ b/packages/datadog-api-client-v1/models/LogsExclusion.ts @@ -5,23 +5,28 @@ */ import { LogsExclusionFilter } from "./LogsExclusionFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Represents the index exclusion filter object from configuration API. - */ +*/ export class LogsExclusion { /** * Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. - */ + */ "filter"?: LogsExclusionFilter; /** * Whether or not the exclusion filter is active. - */ + */ "isEnabled"?: boolean; /** * Name of the index exclusion filter. - */ + */ "name": string; /** @@ -40,31 +45,57 @@ export class LogsExclusion { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "LogsExclusionFilter", - }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "filter": { + "baseName": "filter", + "type": "LogsExclusionFilter", }, - name: { - baseName: "name", - type: "string", - required: true, + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsExclusion.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsExclusionFilter.ts b/packages/datadog-api-client-v1/models/LogsExclusionFilter.ts index d673af4a1299..7e397e8db8ce 100644 --- a/packages/datadog-api-client-v1/models/LogsExclusionFilter.ts +++ b/packages/datadog-api-client-v1/models/LogsExclusionFilter.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. - */ +*/ export class LogsExclusionFilter { /** * Default query is `*`, meaning all logs flowing in the index would be excluded. * Scope down exclusion filter to only a subset of logs with a log query. - */ + */ "query"?: string; /** * Sample rate to apply to logs going through this exclusion filter, * a value of 1.0 excludes all logs matching the query. - */ + */ "sampleRate": number; /** @@ -37,28 +42,54 @@ export class LogsExclusionFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - sampleRate: { - baseName: "sample_rate", - type: "number", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sampleRate": { + "baseName": "sample_rate", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsExclusionFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsFilter.ts b/packages/datadog-api-client-v1/models/LogsFilter.ts index c7e9003fcf55..e80b7d0f0890 100644 --- a/packages/datadog-api-client-v1/models/LogsFilter.ts +++ b/packages/datadog-api-client-v1/models/LogsFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Filter for logs. - */ +*/ export class LogsFilter { /** * The filter query. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class LogsFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsGeoIPParser.ts b/packages/datadog-api-client-v1/models/LogsGeoIPParser.ts index c553df7c5868..01d5116607c2 100644 --- a/packages/datadog-api-client-v1/models/LogsGeoIPParser.ts +++ b/packages/datadog-api-client-v1/models/LogsGeoIPParser.ts @@ -5,32 +5,37 @@ */ import { LogsGeoIPParserType } from "./LogsGeoIPParserType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The GeoIP parser takes an IP address attribute and extracts if available * the Continent, Country, Subdivision, and City information in the target attribute path. - */ +*/ export class LogsGeoIPParser { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Name of the parent attribute that contains all the extracted details from the `sources`. - */ + */ "target": string; /** * Type of GeoIP parser. - */ + */ "type": LogsGeoIPParserType; /** @@ -49,41 +54,67 @@ export class LogsGeoIPParser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - target: { - baseName: "target", - type: "string", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "LogsGeoIPParserType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsGeoIPParserType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsGeoIPParser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsGeoIPParserType.ts b/packages/datadog-api-client-v1/models/LogsGeoIPParserType.ts index 3b0582c06f32..5a4ab91fa943 100644 --- a/packages/datadog-api-client-v1/models/LogsGeoIPParserType.ts +++ b/packages/datadog-api-client-v1/models/LogsGeoIPParserType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of GeoIP parser. - */ +*/ export type LogsGeoIPParserType = typeof GEO_IP_PARSER | UnparsedObject; -export const GEO_IP_PARSER = "geo-ip-parser"; +export const GEO_IP_PARSER = 'geo-ip-parser'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsGrokParser.ts b/packages/datadog-api-client-v1/models/LogsGrokParser.ts index ce65d179509b..be61309821e1 100644 --- a/packages/datadog-api-client-v1/models/LogsGrokParser.ts +++ b/packages/datadog-api-client-v1/models/LogsGrokParser.ts @@ -6,36 +6,41 @@ import { LogsGrokParserRules } from "./LogsGrokParserRules"; import { LogsGrokParserType } from "./LogsGrokParserType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create custom grok rules to parse the full message or [a specific attribute of your raw event](https://docs.datadoghq.com/logs/log_configuration/parsing/#advanced-settings). * For more information, see the [parsing section](https://docs.datadoghq.com/logs/log_configuration/parsing). - */ +*/ export class LogsGrokParser { /** * Set of rules for the grok parser. - */ + */ "grok": LogsGrokParserRules; /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * List of sample logs to test this grok parser. - */ + */ "samples"?: Array; /** * Name of the log attribute to parse. - */ + */ "source": string; /** * Type of logs grok parser. - */ + */ "type": LogsGrokParserType; /** @@ -54,45 +59,71 @@ export class LogsGrokParser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - grok: { - baseName: "grok", - type: "LogsGrokParserRules", - required: true, - }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "grok": { + "baseName": "grok", + "type": "LogsGrokParserRules", + "required": true, }, - name: { - baseName: "name", - type: "string", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - samples: { - baseName: "samples", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - source: { - baseName: "source", - type: "string", - required: true, + "samples": { + "baseName": "samples", + "type": "Array", }, - type: { - baseName: "type", - type: "LogsGrokParserType", - required: true, + "source": { + "baseName": "source", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsGrokParserType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsGrokParser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsGrokParserRules.ts b/packages/datadog-api-client-v1/models/LogsGrokParserRules.ts index dcf2f983ea0c..bf5c20531d68 100644 --- a/packages/datadog-api-client-v1/models/LogsGrokParserRules.ts +++ b/packages/datadog-api-client-v1/models/LogsGrokParserRules.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Set of rules for the grok parser. - */ +*/ export class LogsGrokParserRules { /** * List of match rules for the grok parser, separated by a new line. - */ + */ "matchRules": string; /** * List of support rules for the grok parser, separated by a new line. - */ + */ "supportRules"?: string; /** @@ -35,27 +40,53 @@ export class LogsGrokParserRules { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - matchRules: { - baseName: "match_rules", - type: "string", - required: true, + "matchRules": { + "baseName": "match_rules", + "type": "string", + "required": true, }, - supportRules: { - baseName: "support_rules", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "supportRules": { + "baseName": "support_rules", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsGrokParserRules.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsGrokParserType.ts b/packages/datadog-api-client-v1/models/LogsGrokParserType.ts index 1cf879a7e955..5b922b97b450 100644 --- a/packages/datadog-api-client-v1/models/LogsGrokParserType.ts +++ b/packages/datadog-api-client-v1/models/LogsGrokParserType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs grok parser. - */ +*/ export type LogsGrokParserType = typeof GROK_PARSER | UnparsedObject; -export const GROK_PARSER = "grok-parser"; +export const GROK_PARSER = 'grok-parser'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsIndex.ts b/packages/datadog-api-client-v1/models/LogsIndex.ts index c18d1f346743..5b47bc27b76c 100644 --- a/packages/datadog-api-client-v1/models/LogsIndex.ts +++ b/packages/datadog-api-client-v1/models/LogsIndex.ts @@ -7,54 +7,59 @@ import { LogsDailyLimitReset } from "./LogsDailyLimitReset"; import { LogsExclusion } from "./LogsExclusion"; import { LogsFilter } from "./LogsFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a Datadog Log index. - */ +*/ export class LogsIndex { /** * The number of log events you can send in this index per day before you are rate-limited. - */ + */ "dailyLimit"?: number; /** * Object containing options to override the default daily limit reset time. - */ + */ "dailyLimitReset"?: LogsDailyLimitReset; /** * A percentage threshold of the daily quota at which a Datadog warning event is generated. - */ + */ "dailyLimitWarningThresholdPercentage"?: number; /** * An array of exclusion objects. The logs are tested against the query of each filter, * following the order of the array. Only the first matching active exclusion matters, * others (if any) are ignored. - */ + */ "exclusionFilters"?: Array; /** * Filter for logs. - */ + */ "filter": LogsFilter; /** * A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. * Rate limit is reset every-day at 2pm UTC. - */ + */ "isRateLimited"?: boolean; /** * The name of the index. - */ + */ "name": string; /** * The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. * If Standard Tier is enabled on this index, logs are first retained in Standard Tier for the number of days specified through `num_retention_days`, * and then stored in Flex Tier until the number of days specified in `num_flex_logs_retention_days` is reached. * The available values depend on retention plans specified in your organization's contract/subscriptions. - */ + */ "numFlexLogsRetentionDays"?: number; /** * The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. * The available values depend on retention plans specified in your organization's contract/subscriptions. - */ + */ "numRetentionDays"?: number; /** @@ -73,60 +78,86 @@ export class LogsIndex { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dailyLimit: { - baseName: "daily_limit", - type: "number", - format: "int64", + "dailyLimit": { + "baseName": "daily_limit", + "type": "number", + "format": "int64", }, - dailyLimitReset: { - baseName: "daily_limit_reset", - type: "LogsDailyLimitReset", + "dailyLimitReset": { + "baseName": "daily_limit_reset", + "type": "LogsDailyLimitReset", }, - dailyLimitWarningThresholdPercentage: { - baseName: "daily_limit_warning_threshold_percentage", - type: "number", - format: "double", + "dailyLimitWarningThresholdPercentage": { + "baseName": "daily_limit_warning_threshold_percentage", + "type": "number", + "format": "double", }, - exclusionFilters: { - baseName: "exclusion_filters", - type: "Array", + "exclusionFilters": { + "baseName": "exclusion_filters", + "type": "Array", }, - filter: { - baseName: "filter", - type: "LogsFilter", - required: true, + "filter": { + "baseName": "filter", + "type": "LogsFilter", + "required": true, }, - isRateLimited: { - baseName: "is_rate_limited", - type: "boolean", + "isRateLimited": { + "baseName": "is_rate_limited", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - numFlexLogsRetentionDays: { - baseName: "num_flex_logs_retention_days", - type: "number", - format: "int64", + "numFlexLogsRetentionDays": { + "baseName": "num_flex_logs_retention_days", + "type": "number", + "format": "int64", }, - numRetentionDays: { - baseName: "num_retention_days", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "numRetentionDays": { + "baseName": "num_retention_days", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsIndex.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsIndexListResponse.ts b/packages/datadog-api-client-v1/models/LogsIndexListResponse.ts index bcb42fb81b52..ca5c6667e90d 100644 --- a/packages/datadog-api-client-v1/models/LogsIndexListResponse.ts +++ b/packages/datadog-api-client-v1/models/LogsIndexListResponse.ts @@ -5,15 +5,20 @@ */ import { LogsIndex } from "./LogsIndex"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with all Index configurations for a given organization. - */ +*/ export class LogsIndexListResponse { /** * Array of Log index configurations. - */ + */ "indexes"?: Array; /** @@ -32,22 +37,48 @@ export class LogsIndexListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - indexes: { - baseName: "indexes", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "indexes": { + "baseName": "indexes", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsIndexListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.ts b/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.ts index dfb56c033b9b..11793271eee2 100644 --- a/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.ts @@ -7,55 +7,60 @@ import { LogsDailyLimitReset } from "./LogsDailyLimitReset"; import { LogsExclusion } from "./LogsExclusion"; import { LogsFilter } from "./LogsFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for updating a Datadog Log index. - */ +*/ export class LogsIndexUpdateRequest { /** * The number of log events you can send in this index per day before you are rate-limited. - */ + */ "dailyLimit"?: number; /** * Object containing options to override the default daily limit reset time. - */ + */ "dailyLimitReset"?: LogsDailyLimitReset; /** * A percentage threshold of the daily quota at which a Datadog warning event is generated. - */ + */ "dailyLimitWarningThresholdPercentage"?: number; /** * If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any * specified `daily_limit` value in the request is ignored). If false or omitted, the index's current * `daily_limit` is maintained. - */ + */ "disableDailyLimit"?: boolean; /** * An array of exclusion objects. The logs are tested against the query of each filter, * following the order of the array. Only the first matching active exclusion matters, * others (if any) are ignored. - */ + */ "exclusionFilters"?: Array; /** * Filter for logs. - */ + */ "filter": LogsFilter; /** * The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. * If Standard Tier is enabled on this index, logs are first retained in Standard Tier for the number of days specified through `num_retention_days`, * and then stored in Flex Tier until the number of days specified in `num_flex_logs_retention_days` is reached. * The available values depend on retention plans specified in your organization's contract/subscriptions. - * + * * **Note**: Changing this value affects all logs already in this index. It may also affect billing. - */ + */ "numFlexLogsRetentionDays"?: number; /** * The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. * The available values depend on retention plans specified in your organization's contract/subscriptions. - * + * * **Note**: Changing this value affects all logs already in this index. It may also affect billing. - */ + */ "numRetentionDays"?: number; /** @@ -74,55 +79,81 @@ export class LogsIndexUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dailyLimit: { - baseName: "daily_limit", - type: "number", - format: "int64", + "dailyLimit": { + "baseName": "daily_limit", + "type": "number", + "format": "int64", }, - dailyLimitReset: { - baseName: "daily_limit_reset", - type: "LogsDailyLimitReset", + "dailyLimitReset": { + "baseName": "daily_limit_reset", + "type": "LogsDailyLimitReset", }, - dailyLimitWarningThresholdPercentage: { - baseName: "daily_limit_warning_threshold_percentage", - type: "number", - format: "double", + "dailyLimitWarningThresholdPercentage": { + "baseName": "daily_limit_warning_threshold_percentage", + "type": "number", + "format": "double", }, - disableDailyLimit: { - baseName: "disable_daily_limit", - type: "boolean", + "disableDailyLimit": { + "baseName": "disable_daily_limit", + "type": "boolean", }, - exclusionFilters: { - baseName: "exclusion_filters", - type: "Array", + "exclusionFilters": { + "baseName": "exclusion_filters", + "type": "Array", }, - filter: { - baseName: "filter", - type: "LogsFilter", - required: true, + "filter": { + "baseName": "filter", + "type": "LogsFilter", + "required": true, }, - numFlexLogsRetentionDays: { - baseName: "num_flex_logs_retention_days", - type: "number", - format: "int64", + "numFlexLogsRetentionDays": { + "baseName": "num_flex_logs_retention_days", + "type": "number", + "format": "int64", }, - numRetentionDays: { - baseName: "num_retention_days", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "numRetentionDays": { + "baseName": "num_retention_days", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsIndexUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsIndexesOrder.ts b/packages/datadog-api-client-v1/models/LogsIndexesOrder.ts index 2fabca4964f3..61f6a7d9380f 100644 --- a/packages/datadog-api-client-v1/models/LogsIndexesOrder.ts +++ b/packages/datadog-api-client-v1/models/LogsIndexesOrder.ts @@ -4,17 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the ordered list of log index names. - */ +*/ export class LogsIndexesOrder { /** * Array of strings identifying by their name(s) the index(es) of your organization. * Logs are tested against the query filter of each index one by one, following the order of the array. * Logs are eventually stored in the first matching index. - */ + */ "indexNames": Array; /** @@ -33,23 +38,49 @@ export class LogsIndexesOrder { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - indexNames: { - baseName: "index_names", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "indexNames": { + "baseName": "index_names", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsIndexesOrder.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsListRequest.ts b/packages/datadog-api-client-v1/models/LogsListRequest.ts index 64dfc67715c0..6c1370ae8fea 100644 --- a/packages/datadog-api-client-v1/models/LogsListRequest.ts +++ b/packages/datadog-api-client-v1/models/LogsListRequest.ts @@ -6,40 +6,45 @@ import { LogsListRequestTime } from "./LogsListRequestTime"; import { LogsSort } from "./LogsSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to send with the request to retrieve a list of logs from your Organization. - */ +*/ export class LogsListRequest { /** * The log index on which the request is performed. For multi-index organizations, * the default is all live indexes. Historical indexes of rehydrated logs must be specified. - */ + */ "index"?: string; /** * Number of logs return in the response. - */ + */ "limit"?: number; /** * The search query - following the log search syntax. - */ + */ "query"?: string; /** * Time-ascending `asc` or time-descending `desc` results. - */ + */ "sort"?: LogsSort; /** * Hash identifier of the first log to return in the list, available in a log `id` attribute. * This parameter is used for the pagination feature. - * + * * **Note**: This parameter is ignored if the corresponding log * is out of the scope of the specified time window. - */ + */ "startAt"?: string; /** * Timeframe to retrieve the log from. - */ + */ "time": LogsListRequestTime; /** @@ -58,44 +63,70 @@ export class LogsListRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - index: { - baseName: "index", - type: "string", - }, - limit: { - baseName: "limit", - type: "number", - format: "int32", + "index": { + "baseName": "index", + "type": "string", }, - query: { - baseName: "query", - type: "string", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, - sort: { - baseName: "sort", - type: "LogsSort", + "query": { + "baseName": "query", + "type": "string", }, - startAt: { - baseName: "startAt", - type: "string", + "sort": { + "baseName": "sort", + "type": "LogsSort", }, - time: { - baseName: "time", - type: "LogsListRequestTime", - required: true, + "startAt": { + "baseName": "startAt", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "LogsListRequestTime", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsListRequestTime.ts b/packages/datadog-api-client-v1/models/LogsListRequestTime.ts index 230af85a55c3..eb2b8b5a2ad5 100644 --- a/packages/datadog-api-client-v1/models/LogsListRequestTime.ts +++ b/packages/datadog-api-client-v1/models/LogsListRequestTime.ts @@ -4,24 +4,29 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Timeframe to retrieve the log from. - */ +*/ export class LogsListRequestTime { /** * Minimum timestamp for requested logs. - */ + */ "from": Date; /** * Timezone can be specified both as an offset (for example "UTC+03:00") * or a regional zone (for example "Europe/Paris"). - */ + */ "timezone"?: string; /** * Maximum timestamp for requested logs. - */ + */ "to": Date; /** @@ -40,34 +45,60 @@ export class LogsListRequestTime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "Date", - required: true, - format: "date-time", - }, - timezone: { - baseName: "timezone", - type: "string", + "from": { + "baseName": "from", + "type": "Date", + "required": true, + "format": "date-time", }, - to: { - baseName: "to", - type: "Date", - required: true, - format: "date-time", + "timezone": { + "baseName": "timezone", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "Date", + "required": true, + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListRequestTime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsListResponse.ts b/packages/datadog-api-client-v1/models/LogsListResponse.ts index df8090220823..b4f75941dd21 100644 --- a/packages/datadog-api-client-v1/models/LogsListResponse.ts +++ b/packages/datadog-api-client-v1/models/LogsListResponse.ts @@ -5,24 +5,29 @@ */ import { Log } from "./Log"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all logs matching the request and pagination information. - */ +*/ export class LogsListResponse { /** * Array of logs matching the request and the `nextLogId` if sent. - */ + */ "logs"?: Array; /** * Hash identifier of the next log to return in the list. * This parameter is used for the pagination feature. - */ + */ "nextLogId"?: string; /** * Status of the response. - */ + */ "status"?: string; /** @@ -41,30 +46,56 @@ export class LogsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - logs: { - baseName: "logs", - type: "Array", - }, - nextLogId: { - baseName: "nextLogId", - type: "string", + "logs": { + "baseName": "logs", + "type": "Array", }, - status: { - baseName: "status", - type: "string", + "nextLogId": { + "baseName": "nextLogId", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsLookupProcessor.ts b/packages/datadog-api-client-v1/models/LogsLookupProcessor.ts index 096ee8c09433..62d1a285242a 100644 --- a/packages/datadog-api-client-v1/models/LogsLookupProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsLookupProcessor.ts @@ -5,8 +5,13 @@ */ import { LogsLookupProcessorType } from "./LogsLookupProcessorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use the Lookup Processor to define a mapping between a log attribute * and a human readable value saved in the processors mapping table. @@ -14,37 +19,37 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * into a human readable service name. Alternatively, you could also use it to check * if the MAC address that just attempted to connect to the production * environment belongs to your list of stolen machines. - */ +*/ export class LogsLookupProcessor { /** * Value to set the target attribute if the source value is not found in the list. - */ + */ "defaultLookup"?: string; /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Mapping table of values for the source attribute and their associated target attribute values, * formatted as `["source_key1,target_value1", "source_key2,target_value2"]` - */ + */ "lookupTable": Array; /** * Name of the processor. - */ + */ "name"?: string; /** * Source attribute used to perform the lookup. - */ + */ "source": string; /** * Name of the attribute that contains the corresponding value in the mapping list * or the `default_lookup` if not found in the mapping list. - */ + */ "target": string; /** * Type of logs lookup processor. - */ + */ "type": LogsLookupProcessorType; /** @@ -63,50 +68,76 @@ export class LogsLookupProcessor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultLookup: { - baseName: "default_lookup", - type: "string", - }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "defaultLookup": { + "baseName": "default_lookup", + "type": "string", }, - lookupTable: { - baseName: "lookup_table", - type: "Array", - required: true, + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "lookupTable": { + "baseName": "lookup_table", + "type": "Array", + "required": true, }, - source: { - baseName: "source", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - target: { - baseName: "target", - type: "string", - required: true, + "source": { + "baseName": "source", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "LogsLookupProcessorType", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsLookupProcessorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsLookupProcessor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsLookupProcessorType.ts b/packages/datadog-api-client-v1/models/LogsLookupProcessorType.ts index 9a66aad73aa3..71232e13dbcd 100644 --- a/packages/datadog-api-client-v1/models/LogsLookupProcessorType.ts +++ b/packages/datadog-api-client-v1/models/LogsLookupProcessorType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs lookup processor. - */ +*/ export type LogsLookupProcessorType = typeof LOOKUP_PROCESSOR | UnparsedObject; -export const LOOKUP_PROCESSOR = "lookup-processor"; +export const LOOKUP_PROCESSOR = 'lookup-processor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsMessageRemapper.ts b/packages/datadog-api-client-v1/models/LogsMessageRemapper.ts index cc63f2a96f79..329dad83560b 100644 --- a/packages/datadog-api-client-v1/models/LogsMessageRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsMessageRemapper.ts @@ -5,32 +5,37 @@ */ import { LogsMessageRemapperType } from "./LogsMessageRemapperType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The message is a key attribute in Datadog. * It is displayed in the message column of the Log Explorer and you can do full string search on it. * Use this Processor to define one or more attributes as the official log message. - * + * * **Note:** If multiple log message remapper processors can be applied to a given log, * only the first one (according to the pipeline order) is taken into account. - */ +*/ export class LogsMessageRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Type of logs message remapper. - */ + */ "type": LogsMessageRemapperType; /** @@ -49,36 +54,62 @@ export class LogsMessageRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "LogsMessageRemapperType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsMessageRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMessageRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsMessageRemapperType.ts b/packages/datadog-api-client-v1/models/LogsMessageRemapperType.ts index 3076a17855db..21185885187a 100644 --- a/packages/datadog-api-client-v1/models/LogsMessageRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsMessageRemapperType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs message remapper. - */ +*/ export type LogsMessageRemapperType = typeof MESSAGE_REMAPPER | UnparsedObject; -export const MESSAGE_REMAPPER = "message-remapper"; +export const MESSAGE_REMAPPER = 'message-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsPipeline.ts b/packages/datadog-api-client-v1/models/LogsPipeline.ts index 1dc70011cfa0..6bf8fae470ee 100644 --- a/packages/datadog-api-client-v1/models/LogsPipeline.ts +++ b/packages/datadog-api-client-v1/models/LogsPipeline.ts @@ -6,51 +6,56 @@ import { LogsFilter } from "./LogsFilter"; import { LogsProcessor } from "./LogsProcessor"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pipelines and processors operate on incoming logs, * parsing and transforming them into structured attributes for easier querying. - * + * * **Note**: These endpoints are only available for admin users. * Make sure to use an application key created by an admin. - */ +*/ export class LogsPipeline { /** * A description of the pipeline. - */ + */ "description"?: string; /** * Filter for logs. - */ + */ "filter"?: LogsFilter; /** * ID of the pipeline. - */ + */ "id"?: string; /** * Whether or not the pipeline is enabled. - */ + */ "isEnabled"?: boolean; /** * Whether or not the pipeline can be edited. - */ + */ "isReadOnly"?: boolean; /** * Name of the pipeline. - */ + */ "name": string; /** * Ordered list of processors in this pipeline. - */ + */ "processors"?: Array; /** * A list of tags associated with the pipeline. - */ + */ "tags"?: Array; /** * Type of pipeline. - */ + */ "type"?: string; /** @@ -69,55 +74,81 @@ export class LogsPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - filter: { - baseName: "filter", - type: "LogsFilter", + "filter": { + "baseName": "filter", + "type": "LogsFilter", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - isReadOnly: { - baseName: "is_read_only", - type: "boolean", + "isReadOnly": { + "baseName": "is_read_only", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - processors: { - baseName: "processors", - type: "Array", + "processors": { + "baseName": "processors", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsPipeline.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsPipelineProcessor.ts b/packages/datadog-api-client-v1/models/LogsPipelineProcessor.ts index 81afa28444ba..12f227f78325 100644 --- a/packages/datadog-api-client-v1/models/LogsPipelineProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsPipelineProcessor.ts @@ -7,35 +7,40 @@ import { LogsFilter } from "./LogsFilter"; import { LogsPipelineProcessorType } from "./LogsPipelineProcessorType"; import { LogsProcessor } from "./LogsProcessor"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Nested Pipelines are pipelines within a pipeline. Use Nested Pipelines to split the processing into two steps. * For example, first use a high-level filtering such as team and then a second level of filtering based on the * integration, service, or any other tag or attribute. - * + * * A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors. - */ +*/ export class LogsPipelineProcessor { /** * Filter for logs. - */ + */ "filter"?: LogsFilter; /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Ordered list of processors in this pipeline. - */ + */ "processors"?: Array; /** * Type of logs pipeline processor. - */ + */ "type": LogsPipelineProcessorType; /** @@ -54,39 +59,65 @@ export class LogsPipelineProcessor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "LogsFilter", + "filter": { + "baseName": "filter", + "type": "LogsFilter", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - processors: { - baseName: "processors", - type: "Array", + "processors": { + "baseName": "processors", + "type": "Array", }, - type: { - baseName: "type", - type: "LogsPipelineProcessorType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsPipelineProcessorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsPipelineProcessor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsPipelineProcessorType.ts b/packages/datadog-api-client-v1/models/LogsPipelineProcessorType.ts index 6cb2f9046924..6cb45283df60 100644 --- a/packages/datadog-api-client-v1/models/LogsPipelineProcessorType.ts +++ b/packages/datadog-api-client-v1/models/LogsPipelineProcessorType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs pipeline processor. - */ +*/ export type LogsPipelineProcessorType = typeof PIPELINE | UnparsedObject; -export const PIPELINE = "pipeline"; +export const PIPELINE = 'pipeline'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsPipelinesOrder.ts b/packages/datadog-api-client-v1/models/LogsPipelinesOrder.ts index d860b34b3e99..a0f6c0130efb 100644 --- a/packages/datadog-api-client-v1/models/LogsPipelinesOrder.ts +++ b/packages/datadog-api-client-v1/models/LogsPipelinesOrder.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the ordered list of pipeline IDs. - */ +*/ export class LogsPipelinesOrder { /** * Ordered Array of `` strings, the order of pipeline IDs in the array * define the overall Pipelines order for Datadog. - */ + */ "pipelineIds": Array; /** @@ -32,23 +37,49 @@ export class LogsPipelinesOrder { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pipelineIds: { - baseName: "pipeline_ids", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pipelineIds": { + "baseName": "pipeline_ids", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsPipelinesOrder.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsProcessor.ts b/packages/datadog-api-client-v1/models/LogsProcessor.ts index 1a17bc583d5f..c2ce964fd931 100644 --- a/packages/datadog-api-client-v1/models/LogsProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsProcessor.ts @@ -21,28 +21,15 @@ import { LogsURLParser } from "./LogsURLParser"; import { LogsUserAgentParser } from "./LogsUserAgentParser"; import { ReferenceTableLogsLookupProcessor } from "./ReferenceTableLogsLookupProcessor"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Definition of a logs processor. - */ +*/ -export type LogsProcessor = - | LogsGrokParser - | LogsDateRemapper - | LogsStatusRemapper - | LogsServiceRemapper - | LogsMessageRemapper - | LogsAttributeRemapper - | LogsURLParser - | LogsUserAgentParser - | LogsCategoryProcessor - | LogsArithmeticProcessor - | LogsStringBuilderProcessor - | LogsPipelineProcessor - | LogsGeoIPParser - | LogsLookupProcessor - | ReferenceTableLogsLookupProcessor - | LogsTraceRemapper - | LogsSpanRemapper - | UnparsedObject; +export type LogsProcessor = LogsGrokParser | LogsDateRemapper | LogsStatusRemapper | LogsServiceRemapper | LogsMessageRemapper | LogsAttributeRemapper | LogsURLParser | LogsUserAgentParser | LogsCategoryProcessor | LogsArithmeticProcessor | LogsStringBuilderProcessor | LogsPipelineProcessor | LogsGeoIPParser | LogsLookupProcessor | ReferenceTableLogsLookupProcessor | LogsTraceRemapper | LogsSpanRemapper | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsQueryCompute.ts b/packages/datadog-api-client-v1/models/LogsQueryCompute.ts index 2f114a2fe77b..e85f11007044 100644 --- a/packages/datadog-api-client-v1/models/LogsQueryCompute.ts +++ b/packages/datadog-api-client-v1/models/LogsQueryCompute.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Define computation for a log query. - */ +*/ export class LogsQueryCompute { /** * The aggregation method. - */ + */ "aggregation": string; /** * Facet name. - */ + */ "facet"?: string; /** * Define a time interval in seconds. - */ + */ "interval"?: number; /** @@ -39,32 +44,58 @@ export class LogsQueryCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "string", - required: true, - }, - facet: { - baseName: "facet", - type: "string", + "aggregation": { + "baseName": "aggregation", + "type": "string", + "required": true, }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "facet": { + "baseName": "facet", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsQueryCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsRetentionAggSumUsage.ts b/packages/datadog-api-client-v1/models/LogsRetentionAggSumUsage.ts index 3e24b799e1d1..69e4fab57e9c 100644 --- a/packages/datadog-api-client-v1/models/LogsRetentionAggSumUsage.ts +++ b/packages/datadog-api-client-v1/models/LogsRetentionAggSumUsage.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing indexed logs usage aggregated across organizations and months for a retention period. - */ +*/ export class LogsRetentionAggSumUsage { /** * Total indexed logs for this retention period. - */ + */ "logsIndexedLogsUsageAggSum"?: number; /** * Live indexed logs for this retention period. - */ + */ "logsLiveIndexedLogsUsageAggSum"?: number; /** * Rehydrated indexed logs for this retention period. - */ + */ "logsRehydratedIndexedLogsUsageAggSum"?: number; /** * The retention period in days or "custom" for all custom retention periods. - */ + */ "retention"?: string; /** @@ -43,37 +48,63 @@ export class LogsRetentionAggSumUsage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - logsIndexedLogsUsageAggSum: { - baseName: "logs_indexed_logs_usage_agg_sum", - type: "number", - format: "int64", + "logsIndexedLogsUsageAggSum": { + "baseName": "logs_indexed_logs_usage_agg_sum", + "type": "number", + "format": "int64", }, - logsLiveIndexedLogsUsageAggSum: { - baseName: "logs_live_indexed_logs_usage_agg_sum", - type: "number", - format: "int64", + "logsLiveIndexedLogsUsageAggSum": { + "baseName": "logs_live_indexed_logs_usage_agg_sum", + "type": "number", + "format": "int64", }, - logsRehydratedIndexedLogsUsageAggSum: { - baseName: "logs_rehydrated_indexed_logs_usage_agg_sum", - type: "number", - format: "int64", + "logsRehydratedIndexedLogsUsageAggSum": { + "baseName": "logs_rehydrated_indexed_logs_usage_agg_sum", + "type": "number", + "format": "int64", }, - retention: { - baseName: "retention", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "retention": { + "baseName": "retention", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsRetentionAggSumUsage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsRetentionSumUsage.ts b/packages/datadog-api-client-v1/models/LogsRetentionSumUsage.ts index 5c1ed5981294..7164df00f4d0 100644 --- a/packages/datadog-api-client-v1/models/LogsRetentionSumUsage.ts +++ b/packages/datadog-api-client-v1/models/LogsRetentionSumUsage.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing indexed logs usage grouped by retention period and summed. - */ +*/ export class LogsRetentionSumUsage { /** * Total indexed logs for this retention period. - */ + */ "logsIndexedLogsUsageSum"?: number; /** * Live indexed logs for this retention period. - */ + */ "logsLiveIndexedLogsUsageSum"?: number; /** * Rehydrated indexed logs for this retention period. - */ + */ "logsRehydratedIndexedLogsUsageSum"?: number; /** * The retention period in days or "custom" for all custom retention periods. - */ + */ "retention"?: string; /** @@ -43,37 +48,63 @@ export class LogsRetentionSumUsage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - logsIndexedLogsUsageSum: { - baseName: "logs_indexed_logs_usage_sum", - type: "number", - format: "int64", + "logsIndexedLogsUsageSum": { + "baseName": "logs_indexed_logs_usage_sum", + "type": "number", + "format": "int64", }, - logsLiveIndexedLogsUsageSum: { - baseName: "logs_live_indexed_logs_usage_sum", - type: "number", - format: "int64", + "logsLiveIndexedLogsUsageSum": { + "baseName": "logs_live_indexed_logs_usage_sum", + "type": "number", + "format": "int64", }, - logsRehydratedIndexedLogsUsageSum: { - baseName: "logs_rehydrated_indexed_logs_usage_sum", - type: "number", - format: "int64", + "logsRehydratedIndexedLogsUsageSum": { + "baseName": "logs_rehydrated_indexed_logs_usage_sum", + "type": "number", + "format": "int64", }, - retention: { - baseName: "retention", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "retention": { + "baseName": "retention", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsRetentionSumUsage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsServiceRemapper.ts b/packages/datadog-api-client-v1/models/LogsServiceRemapper.ts index cb8abdd77df2..ab48640eb748 100644 --- a/packages/datadog-api-client-v1/models/LogsServiceRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsServiceRemapper.ts @@ -5,30 +5,35 @@ */ import { LogsServiceRemapperType } from "./LogsServiceRemapperType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use this processor if you want to assign one or more attributes as the official service. - * + * * **Note:** If multiple service remapper processors can be applied to a given log, * only the first one (according to the pipeline order) is taken into account. - */ +*/ export class LogsServiceRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Type of logs service remapper. - */ + */ "type": LogsServiceRemapperType; /** @@ -47,36 +52,62 @@ export class LogsServiceRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "LogsServiceRemapperType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsServiceRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsServiceRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsServiceRemapperType.ts b/packages/datadog-api-client-v1/models/LogsServiceRemapperType.ts index e1d620684325..313fa50a183b 100644 --- a/packages/datadog-api-client-v1/models/LogsServiceRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsServiceRemapperType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs service remapper. - */ +*/ export type LogsServiceRemapperType = typeof SERVICE_REMAPPER | UnparsedObject; -export const SERVICE_REMAPPER = "service-remapper"; +export const SERVICE_REMAPPER = 'service-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsSort.ts b/packages/datadog-api-client-v1/models/LogsSort.ts index 2f9c0c724ccb..2ba4347f3ba1 100644 --- a/packages/datadog-api-client-v1/models/LogsSort.ts +++ b/packages/datadog-api-client-v1/models/LogsSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Time-ascending `asc` or time-descending `desc` results. - */ +*/ -export type LogsSort = - | typeof TIME_ASCENDING - | typeof TIME_DESCENDING - | UnparsedObject; -export const TIME_ASCENDING = "asc"; -export const TIME_DESCENDING = "desc"; +export type LogsSort = typeof TIME_ASCENDING| typeof TIME_DESCENDING | UnparsedObject; +export const TIME_ASCENDING = 'asc'; +export const TIME_DESCENDING = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsSpanRemapper.ts b/packages/datadog-api-client-v1/models/LogsSpanRemapper.ts index 3375c28c1da9..94ea43e97f30 100644 --- a/packages/datadog-api-client-v1/models/LogsSpanRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsSpanRemapper.ts @@ -5,32 +5,37 @@ */ import { LogsSpanRemapperType } from "./LogsSpanRemapperType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * There are two ways to define correlation between application spans and logs: - * + * * 1. Follow the documentation on [how to inject a span ID in the application logs](https://docs.datadoghq.com/tracing/connect_logs_and_traces). * Log integrations automatically handle all remaining setup steps by default. - * + * * 2. Use the span remapper processor to define a log attribute as its associated span ID. - */ +*/ export class LogsSpanRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources"?: Array; /** * Type of logs span remapper. - */ + */ "type": LogsSpanRemapperType; /** @@ -49,35 +54,61 @@ export class LogsSpanRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", + "sources": { + "baseName": "sources", + "type": "Array", }, - type: { - baseName: "type", - type: "LogsSpanRemapperType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsSpanRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsSpanRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsSpanRemapperType.ts b/packages/datadog-api-client-v1/models/LogsSpanRemapperType.ts index d699d6d69dd6..a6d57b34521b 100644 --- a/packages/datadog-api-client-v1/models/LogsSpanRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsSpanRemapperType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs span remapper. - */ +*/ export type LogsSpanRemapperType = typeof SPAN_ID_REMAPPER | UnparsedObject; -export const SPAN_ID_REMAPPER = "span-id-remapper"; +export const SPAN_ID_REMAPPER = 'span-id-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsStatusRemapper.ts b/packages/datadog-api-client-v1/models/LogsStatusRemapper.ts index 7adcbd17a719..c57ccb3c63d9 100644 --- a/packages/datadog-api-client-v1/models/LogsStatusRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsStatusRemapper.ts @@ -5,13 +5,18 @@ */ import { LogsStatusRemapperType } from "./LogsStatusRemapperType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use this Processor if you want to assign some attributes as the official status. - * + * * Each incoming status value is mapped as follows. - * + * * - Integers from 0 to 7 map to the Syslog severity standards * - Strings beginning with `emerg` or f (case-insensitive) map to `emerg` (0) * - Strings beginning with `a` (case-insensitive) map to `alert` (1) @@ -23,26 +28,26 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * - Strings beginning with `d`, `trace` or `verbose` (case-insensitive) map to `debug` (7) * - Strings beginning with `o` or matching `OK` or `Success` (case-insensitive) map to OK * - All others map to `info` (6) - * + * * **Note:** If multiple log status remapper processors can be applied to a given log, * only the first one (according to the pipelines order) is taken into account. - */ +*/ export class LogsStatusRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Type of logs status remapper. - */ + */ "type": LogsStatusRemapperType; /** @@ -61,36 +66,62 @@ export class LogsStatusRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "LogsStatusRemapperType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsStatusRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsStatusRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsStatusRemapperType.ts b/packages/datadog-api-client-v1/models/LogsStatusRemapperType.ts index a2b05e8fabbf..e1e4655d008d 100644 --- a/packages/datadog-api-client-v1/models/LogsStatusRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsStatusRemapperType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs status remapper. - */ +*/ export type LogsStatusRemapperType = typeof STATUS_REMAPPER | UnparsedObject; -export const STATUS_REMAPPER = "status-remapper"; +export const STATUS_REMAPPER = 'status-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsStringBuilderProcessor.ts b/packages/datadog-api-client-v1/models/LogsStringBuilderProcessor.ts index 1d82f9b4b407..5dcdd90f67c4 100644 --- a/packages/datadog-api-client-v1/models/LogsStringBuilderProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsStringBuilderProcessor.ts @@ -5,48 +5,53 @@ */ import { LogsStringBuilderProcessorType } from "./LogsStringBuilderProcessorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use the string builder processor to add a new attribute (without spaces or special characters) * to a log with the result of the provided template. * This enables aggregation of different attributes or raw strings into a single attribute. - * + * * The template is defined by both raw text and blocks with the syntax `%{attribute_path}`. - * + * * **Notes**: - * + * * - The processor only accepts attributes with values or an array of values in the blocks. * - If an attribute cannot be used (object or array of object), * it is replaced by an empty string or the entire operation is skipped depending on your selection. * - If the target attribute already exists, it is overwritten by the result of the template. * - Results of the template cannot exceed 256 characters. - */ +*/ export class LogsStringBuilderProcessor { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * If true, it replaces all missing attributes of `template` by an empty string. * If `false` (default), skips the operation for missing attributes. - */ + */ "isReplaceMissing"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * The name of the attribute that contains the result of the template. - */ + */ "target": string; /** * A formula with one or more attributes and raw text. - */ + */ "template": string; /** * Type of logs string builder processor. - */ + */ "type": LogsStringBuilderProcessorType; /** @@ -65,45 +70,71 @@ export class LogsStringBuilderProcessor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - isReplaceMissing: { - baseName: "is_replace_missing", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "isReplaceMissing": { + "baseName": "is_replace_missing", + "type": "boolean", }, - target: { - baseName: "target", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - template: { - baseName: "template", - type: "string", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "LogsStringBuilderProcessorType", - required: true, + "template": { + "baseName": "template", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsStringBuilderProcessorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsStringBuilderProcessor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsStringBuilderProcessorType.ts b/packages/datadog-api-client-v1/models/LogsStringBuilderProcessorType.ts index 1244bf5eac3b..0bdc00481f39 100644 --- a/packages/datadog-api-client-v1/models/LogsStringBuilderProcessorType.ts +++ b/packages/datadog-api-client-v1/models/LogsStringBuilderProcessorType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs string builder processor. - */ +*/ -export type LogsStringBuilderProcessorType = - | typeof STRING_BUILDER_PROCESSOR - | UnparsedObject; -export const STRING_BUILDER_PROCESSOR = "string-builder-processor"; +export type LogsStringBuilderProcessorType = typeof STRING_BUILDER_PROCESSOR | UnparsedObject; +export const STRING_BUILDER_PROCESSOR = 'string-builder-processor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsTraceRemapper.ts b/packages/datadog-api-client-v1/models/LogsTraceRemapper.ts index 35174fea3132..efd5c86e6550 100644 --- a/packages/datadog-api-client-v1/models/LogsTraceRemapper.ts +++ b/packages/datadog-api-client-v1/models/LogsTraceRemapper.ts @@ -5,32 +5,37 @@ */ import { LogsTraceRemapperType } from "./LogsTraceRemapperType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * There are two ways to improve correlation between application traces and logs. - * + * * 1. Follow the documentation on [how to inject a trace ID in the application logs](https://docs.datadoghq.com/tracing/connect_logs_and_traces) * and by default log integrations take care of all the rest of the setup. - * + * * 2. Use the Trace remapper processor to define a log attribute as its associated trace ID. - */ +*/ export class LogsTraceRemapper { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources"?: Array; /** * Type of logs trace remapper. - */ + */ "type": LogsTraceRemapperType; /** @@ -49,35 +54,61 @@ export class LogsTraceRemapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", + "sources": { + "baseName": "sources", + "type": "Array", }, - type: { - baseName: "type", - type: "LogsTraceRemapperType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsTraceRemapperType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsTraceRemapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsTraceRemapperType.ts b/packages/datadog-api-client-v1/models/LogsTraceRemapperType.ts index edf1fa339014..a203c9d77c21 100644 --- a/packages/datadog-api-client-v1/models/LogsTraceRemapperType.ts +++ b/packages/datadog-api-client-v1/models/LogsTraceRemapperType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs trace remapper. - */ +*/ export type LogsTraceRemapperType = typeof TRACE_ID_REMAPPER | UnparsedObject; -export const TRACE_ID_REMAPPER = "trace-id-remapper"; +export const TRACE_ID_REMAPPER = 'trace-id-remapper'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsURLParser.ts b/packages/datadog-api-client-v1/models/LogsURLParser.ts index 4dfaee68b85b..bc5db00559da 100644 --- a/packages/datadog-api-client-v1/models/LogsURLParser.ts +++ b/packages/datadog-api-client-v1/models/LogsURLParser.ts @@ -5,35 +5,40 @@ */ import { LogsURLParserType } from "./LogsURLParserType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * This processor extracts query parameters and other important parameters from a URL. - */ +*/ export class LogsURLParser { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Normalize the ending slashes or not. - */ + */ "normalizeEndingSlashes"?: boolean; /** * Array of source attributes. - */ + */ "sources": Array; /** * Name of the parent attribute that contains all the extracted details from the `sources`. - */ + */ "target": string; /** * Type of logs URL parser. - */ + */ "type": LogsURLParserType; /** @@ -52,45 +57,71 @@ export class LogsURLParser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - normalizeEndingSlashes: { - baseName: "normalize_ending_slashes", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "normalizeEndingSlashes": { + "baseName": "normalize_ending_slashes", + "type": "boolean", }, - target: { - baseName: "target", - type: "string", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "LogsURLParserType", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsURLParserType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsURLParser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsURLParserType.ts b/packages/datadog-api-client-v1/models/LogsURLParserType.ts index 25de12be9ff3..a280384b27af 100644 --- a/packages/datadog-api-client-v1/models/LogsURLParserType.ts +++ b/packages/datadog-api-client-v1/models/LogsURLParserType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs URL parser. - */ +*/ export type LogsURLParserType = typeof URL_PARSER | UnparsedObject; -export const URL_PARSER = "url-parser"; +export const URL_PARSER = 'url-parser'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/LogsUserAgentParser.ts b/packages/datadog-api-client-v1/models/LogsUserAgentParser.ts index 08ac807965c5..635cadec34c7 100644 --- a/packages/datadog-api-client-v1/models/LogsUserAgentParser.ts +++ b/packages/datadog-api-client-v1/models/LogsUserAgentParser.ts @@ -5,36 +5,41 @@ */ import { LogsUserAgentParserType } from "./LogsUserAgentParserType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The User-Agent parser takes a User-Agent attribute and extracts the OS, browser, device, and other user data. * It recognizes major bots like the Google Bot, Yahoo Slurp, and Bing. - */ +*/ export class LogsUserAgentParser { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Define if the source attribute is URL encoded or not. - */ + */ "isEncoded"?: boolean; /** * Name of the processor. - */ + */ "name"?: string; /** * Array of source attributes. - */ + */ "sources": Array; /** * Name of the parent attribute that contains all the extracted details from the `sources`. - */ + */ "target": string; /** * Type of logs User-Agent parser. - */ + */ "type": LogsUserAgentParserType; /** @@ -53,45 +58,71 @@ export class LogsUserAgentParser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - isEncoded: { - baseName: "is_encoded", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "isEncoded": { + "baseName": "is_encoded", + "type": "boolean", }, - sources: { - baseName: "sources", - type: "Array", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - target: { - baseName: "target", - type: "string", - required: true, + "sources": { + "baseName": "sources", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "LogsUserAgentParserType", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsUserAgentParserType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsUserAgentParser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/LogsUserAgentParserType.ts b/packages/datadog-api-client-v1/models/LogsUserAgentParserType.ts index 6a2d26617318..93d36a406e57 100644 --- a/packages/datadog-api-client-v1/models/LogsUserAgentParserType.ts +++ b/packages/datadog-api-client-v1/models/LogsUserAgentParserType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of logs User-Agent parser. - */ +*/ export type LogsUserAgentParserType = typeof USER_AGENT_PARSER | UnparsedObject; -export const USER_AGENT_PARSER = "user-agent-parser"; +export const USER_AGENT_PARSER = 'user-agent-parser'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MatchingDowntime.ts b/packages/datadog-api-client-v1/models/MatchingDowntime.ts index 2a0d35aec213..5e2f469c8fb5 100644 --- a/packages/datadog-api-client-v1/models/MatchingDowntime.ts +++ b/packages/datadog-api-client-v1/models/MatchingDowntime.ts @@ -4,29 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a downtime that matches this monitor. - */ +*/ export class MatchingDowntime { /** * POSIX timestamp to end the downtime. - */ + */ "end"?: number; /** * The downtime ID. - */ + */ "id": number; /** * The scope(s) to which the downtime applies. Must be in `key:value` format. For example, `host:app2`. * Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. * The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). - */ + */ "scope"?: Array; /** * POSIX timestamp to start the downtime. - */ + */ "start"?: number; /** @@ -45,38 +50,64 @@ export class MatchingDowntime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "number", - format: "int64", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - id: { - baseName: "id", - type: "number", - required: true, - format: "int64", + "id": { + "baseName": "id", + "type": "number", + "required": true, + "format": "int64", }, - scope: { - baseName: "scope", - type: "Array", + "scope": { + "baseName": "scope", + "type": "Array", }, - start: { - baseName: "start", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MatchingDowntime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricContentEncoding.ts b/packages/datadog-api-client-v1/models/MetricContentEncoding.ts index 3b05637bb3e6..fc4507434d01 100644 --- a/packages/datadog-api-client-v1/models/MetricContentEncoding.ts +++ b/packages/datadog-api-client-v1/models/MetricContentEncoding.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * HTTP header used to compress the media-type. - */ +*/ -export type MetricContentEncoding = - | typeof DEFLATE - | typeof GZIP - | UnparsedObject; -export const DEFLATE = "deflate"; -export const GZIP = "gzip"; +export type MetricContentEncoding = typeof DEFLATE| typeof GZIP | UnparsedObject; +export const DEFLATE = 'deflate'; +export const GZIP = 'gzip'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MetricMetadata.ts b/packages/datadog-api-client-v1/models/MetricMetadata.ts index 97c109268309..bda4a0d6d24d 100644 --- a/packages/datadog-api-client-v1/models/MetricMetadata.ts +++ b/packages/datadog-api-client-v1/models/MetricMetadata.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with all metric related metadata. - */ +*/ export class MetricMetadata { /** * Metric description. - */ + */ "description"?: string; /** * Name of the integration that sent the metric if applicable. - */ + */ "integration"?: string; /** * Per unit of the metric such as `second` in `bytes per second`. - */ + */ "perUnit"?: string; /** * A more human-readable and abbreviated version of the metric name. - */ + */ "shortName"?: string; /** * StatsD flush interval of the metric in seconds if applicable. - */ + */ "statsdInterval"?: number; /** * Metric type such as `gauge` or `rate`. - */ + */ "type"?: string; /** * Primary unit of the metric such as `byte` or `operation`. - */ + */ "unit"?: string; /** @@ -55,47 +60,73 @@ export class MetricMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - integration: { - baseName: "integration", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - perUnit: { - baseName: "per_unit", - type: "string", + "integration": { + "baseName": "integration", + "type": "string", }, - shortName: { - baseName: "short_name", - type: "string", + "perUnit": { + "baseName": "per_unit", + "type": "string", }, - statsdInterval: { - baseName: "statsd_interval", - type: "number", - format: "int64", + "shortName": { + "baseName": "short_name", + "type": "string", }, - type: { - baseName: "type", - type: "string", + "statsdInterval": { + "baseName": "statsd_interval", + "type": "number", + "format": "int64", }, - unit: { - baseName: "unit", - type: "string", + "type": { + "baseName": "type", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricSearchResponse.ts b/packages/datadog-api-client-v1/models/MetricSearchResponse.ts index ce66d9646c7c..ed303cd14010 100644 --- a/packages/datadog-api-client-v1/models/MetricSearchResponse.ts +++ b/packages/datadog-api-client-v1/models/MetricSearchResponse.ts @@ -5,15 +5,20 @@ */ import { MetricSearchResponseResults } from "./MetricSearchResponseResults"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the list of metrics matching the search query. - */ +*/ export class MetricSearchResponse { /** * Search result. - */ + */ "results"?: MetricSearchResponseResults; /** @@ -32,22 +37,48 @@ export class MetricSearchResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - results: { - baseName: "results", - type: "MetricSearchResponseResults", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "results": { + "baseName": "results", + "type": "MetricSearchResponseResults", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSearchResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricSearchResponseResults.ts b/packages/datadog-api-client-v1/models/MetricSearchResponseResults.ts index 63cf2f023caa..aada1301623a 100644 --- a/packages/datadog-api-client-v1/models/MetricSearchResponseResults.ts +++ b/packages/datadog-api-client-v1/models/MetricSearchResponseResults.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Search result. - */ +*/ export class MetricSearchResponseResults { /** * List of metrics that match the search query. - */ + */ "metrics"?: Array; /** @@ -31,22 +36,48 @@ export class MetricSearchResponseResults { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metrics: { - baseName: "metrics", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metrics": { + "baseName": "metrics", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSearchResponseResults.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricsListResponse.ts b/packages/datadog-api-client-v1/models/MetricsListResponse.ts index 68910c25df48..4a16dd671128 100644 --- a/packages/datadog-api-client-v1/models/MetricsListResponse.ts +++ b/packages/datadog-api-client-v1/models/MetricsListResponse.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object listing all metric names stored by Datadog since a given time. - */ +*/ export class MetricsListResponse { /** * Time when the metrics were active, seconds since the Unix epoch. - */ + */ "from"?: string; /** * List of metric names. - */ + */ "metrics"?: Array; /** @@ -35,26 +40,52 @@ export class MetricsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - metrics: { - baseName: "metrics", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metrics": { + "baseName": "metrics", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricsPayload.ts b/packages/datadog-api-client-v1/models/MetricsPayload.ts index 9b188655a5a0..008035f1c5e7 100644 --- a/packages/datadog-api-client-v1/models/MetricsPayload.ts +++ b/packages/datadog-api-client-v1/models/MetricsPayload.ts @@ -5,15 +5,20 @@ */ import { Series } from "./Series"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metrics' payload. - */ +*/ export class MetricsPayload { /** * A list of timeseries to submit to Datadog. - */ + */ "series": Array; /** @@ -32,23 +37,49 @@ export class MetricsPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - series: { - baseName: "series", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "series": { + "baseName": "series", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts b/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts index e017dfd1e5f2..b8a17ce42e49 100644 --- a/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts +++ b/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts @@ -4,67 +4,74 @@ * Copyright 2020-Present Datadog, Inc. */ import { MetricsQueryUnit } from "./MetricsQueryUnit"; +import { Point } from "./Point"; +import { PointItem } from "./PointItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing all metric names returned and their associated metadata. - */ +*/ export class MetricsQueryMetadata { /** * Aggregation type. - */ + */ "aggr"?: string; /** * Display name of the metric. - */ + */ "displayName"?: string; /** * End of the time window, milliseconds since Unix epoch. - */ + */ "end"?: number; /** * Metric expression. - */ + */ "expression"?: string; /** * Number of milliseconds between data samples. - */ + */ "interval"?: number; /** * Number of data samples. - */ + */ "length"?: number; /** * Metric name. - */ + */ "metric"?: string; /** * List of points of the timeseries in milliseconds. - */ + */ "pointlist"?: Array<[number, number]>; /** * The index of the series' query within the request. - */ + */ "queryIndex"?: number; /** * Metric scope, comma separated list of tags. - */ + */ "scope"?: string; /** * Start of the time window, milliseconds since Unix epoch. - */ + */ "start"?: number; /** * Unique tags identifying this series. - */ + */ "tagSet"?: Array; /** * Detailed information about the metric unit. * The first element describes the "primary unit" (for example, `bytes` in `bytes per second`). * The second element describes the "per unit" (for example, `second` in `bytes per second`). * If the second element is not present, the API returns null. - */ + */ "unit"?: [MetricsQueryUnit, MetricsQueryUnit]; /** @@ -83,76 +90,102 @@ export class MetricsQueryMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggr: { - baseName: "aggr", - type: "string", + "aggr": { + "baseName": "aggr", + "type": "string", }, - displayName: { - baseName: "display_name", - type: "string", + "displayName": { + "baseName": "display_name", + "type": "string", }, - end: { - baseName: "end", - type: "number", - format: "int64", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - expression: { - baseName: "expression", - type: "string", + "expression": { + "baseName": "expression", + "type": "string", }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - length: { - baseName: "length", - type: "number", - format: "int64", + "length": { + "baseName": "length", + "type": "number", + "format": "int64", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - pointlist: { - baseName: "pointlist", - type: "Array<[number, number]>", - format: "double", + "pointlist": { + "baseName": "pointlist", + "type": "Array<[number, number]>", + "format": "double", }, - queryIndex: { - baseName: "query_index", - type: "number", - format: "int64", + "queryIndex": { + "baseName": "query_index", + "type": "number", + "format": "int64", }, - scope: { - baseName: "scope", - type: "string", + "scope": { + "baseName": "scope", + "type": "string", }, - start: { - baseName: "start", - type: "number", - format: "int64", + "start": { + "baseName": "start", + "type": "number", + "format": "int64", }, - tagSet: { - baseName: "tag_set", - type: "Array", + "tagSet": { + "baseName": "tag_set", + "type": "Array", }, - unit: { - baseName: "unit", - type: "[MetricsQueryUnit, MetricsQueryUnit]", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "[MetricsQueryUnit, MetricsQueryUnit]", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsQueryMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts b/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts index d5d7abcdb7be..0a9d6ddd5268 100644 --- a/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts +++ b/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts @@ -5,47 +5,52 @@ */ import { MetricsQueryMetadata } from "./MetricsQueryMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response Object that includes your query and the list of metrics retrieved. - */ +*/ export class MetricsQueryResponse { /** * Message indicating the errors if status is not `ok`. - */ + */ "error"?: string; /** * Start of requested time window, milliseconds since Unix epoch. - */ + */ "fromDate"?: number; /** * List of tag keys on which to group. - */ + */ "groupBy"?: Array; /** * Message indicating `success` if status is `ok`. - */ + */ "message"?: string; /** * Query string - */ + */ "query"?: string; /** * Type of response. - */ + */ "resType"?: string; /** * List of timeseries queried. - */ + */ "series"?: Array; /** * Status of the query. - */ + */ "status"?: string; /** * End of requested time window, milliseconds since Unix epoch. - */ + */ "toDate"?: number; /** @@ -64,56 +69,82 @@ export class MetricsQueryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - error: { - baseName: "error", - type: "string", + "error": { + "baseName": "error", + "type": "string", }, - fromDate: { - baseName: "from_date", - type: "number", - format: "int64", + "fromDate": { + "baseName": "from_date", + "type": "number", + "format": "int64", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - resType: { - baseName: "res_type", - type: "string", + "resType": { + "baseName": "res_type", + "type": "string", }, - series: { - baseName: "series", - type: "Array", + "series": { + "baseName": "series", + "type": "Array", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - toDate: { - baseName: "to_date", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "toDate": { + "baseName": "to_date", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsQueryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts b/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts index d0da2e97f2b7..d31f089a1f1a 100644 --- a/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts +++ b/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the metric unit family, scale factor, name, and short name. - */ +*/ export class MetricsQueryUnit { /** * Unit family, allows for conversion between units of the same family, for scaling. - */ + */ "family"?: string; /** * Unit name - */ + */ "name"?: string; /** * Plural form of the unit name. - */ + */ "plural"?: string; /** * Factor for scaling between units of the same family. - */ + */ "scaleFactor"?: number; /** * Abbreviation of the unit. - */ + */ "shortName"?: string; /** @@ -47,39 +52,65 @@ export class MetricsQueryUnit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - family: { - baseName: "family", - type: "string", + "family": { + "baseName": "family", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - plural: { - baseName: "plural", - type: "string", + "plural": { + "baseName": "plural", + "type": "string", }, - scaleFactor: { - baseName: "scale_factor", - type: "number", - format: "double", + "scaleFactor": { + "baseName": "scale_factor", + "type": "number", + "format": "double", }, - shortName: { - baseName: "short_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "shortName": { + "baseName": "short_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsQueryUnit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Monitor.ts b/packages/datadog-api-client-v1/models/Monitor.ts index 9cc59942c7cc..8181878c1c25 100644 --- a/packages/datadog-api-client-v1/models/Monitor.ts +++ b/packages/datadog-api-client-v1/models/Monitor.ts @@ -10,79 +10,84 @@ import { MonitorOverallStates } from "./MonitorOverallStates"; import { MonitorState } from "./MonitorState"; import { MonitorType } from "./MonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a monitor. - */ +*/ export class Monitor { /** * Timestamp of the monitor creation. - */ + */ "created"?: Date; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * Whether or not the monitor is deleted. (Always `null`) - */ + */ "deleted"?: Date; /** * ID of this monitor. - */ + */ "id"?: number; /** * A list of active v1 downtimes that match this monitor. - */ + */ "matchingDowntimes"?: Array; /** * A message to include with notifications for this monitor. - */ + */ "message"?: string; /** * Last timestamp when the monitor was edited. - */ + */ "modified"?: Date; /** * Whether or not the monitor is broken down on different groups. - */ + */ "multi"?: boolean; /** * The monitor name. - */ + */ "name"?: string; /** * List of options associated with your monitor. - */ + */ "options"?: MonitorOptions; /** * The different states your monitor can be in. - */ + */ "overallState"?: MonitorOverallStates; /** * Integer from 1 (high) to 5 (low) indicating alert severity. - */ + */ "priority"?: number; /** * The monitor query. - */ + */ "query": string; /** * A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) and are located in the `data.id` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) to manage write authorization for individual monitors by teams and users, in addition to roles. - */ + */ "restrictedRoles"?: Array; /** * Wrapper object with the different monitor states. - */ + */ "state"?: MonitorState; /** * Tags associated to your monitor. - */ + */ "tags"?: Array; /** * The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. - */ + */ "type": MonitorType; /** @@ -101,93 +106,119 @@ export class Monitor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - creator: { - baseName: "creator", - type: "Creator", - }, - deleted: { - baseName: "deleted", - type: "Date", - format: "date-time", - }, - id: { - baseName: "id", - type: "number", - format: "int64", - }, - matchingDowntimes: { - baseName: "matching_downtimes", - type: "Array", - }, - message: { - baseName: "message", - type: "string", - }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", - }, - multi: { - baseName: "multi", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", - }, - options: { - baseName: "options", - type: "MonitorOptions", - }, - overallState: { - baseName: "overall_state", - type: "MonitorOverallStates", - }, - priority: { - baseName: "priority", - type: "number", - format: "int64", - }, - query: { - baseName: "query", - type: "string", - required: true, - }, - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", - }, - state: { - baseName: "state", - type: "MonitorState", - }, - tags: { - baseName: "tags", - type: "Array", - }, - type: { - baseName: "type", - type: "MonitorType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", + }, + "creator": { + "baseName": "creator", + "type": "Creator", + }, + "deleted": { + "baseName": "deleted", + "type": "Date", + "format": "date-time", + }, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", + }, + "matchingDowntimes": { + "baseName": "matching_downtimes", + "type": "Array", + }, + "message": { + "baseName": "message", + "type": "string", + }, + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", + }, + "multi": { + "baseName": "multi", + "type": "boolean", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "options": { + "baseName": "options", + "type": "MonitorOptions", + }, + "overallState": { + "baseName": "overall_state", + "type": "MonitorOverallStates", + }, + "priority": { + "baseName": "priority", + "type": "number", + "format": "int64", + }, + "query": { + "baseName": "query", + "type": "string", + "required": true, + }, + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", + }, + "state": { + "baseName": "state", + "type": "MonitorState", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "type": { + "baseName": "type", + "type": "MonitorType", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Monitor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorDeviceID.ts b/packages/datadog-api-client-v1/models/MonitorDeviceID.ts index 4d75edb69c09..5fc1772d6c53 100644 --- a/packages/datadog-api-client-v1/models/MonitorDeviceID.ts +++ b/packages/datadog-api-client-v1/models/MonitorDeviceID.ts @@ -4,29 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * ID of the device the Synthetics monitor is running on. Same as `SyntheticsDeviceID`. - */ +*/ -export type MonitorDeviceID = - | typeof LAPTOP_LARGE - | typeof TABLET - | typeof MOBILE_SMALL - | typeof CHROME_LAPTOP_LARGE - | typeof CHROME_TABLET - | typeof CHROME_MOBILE_SMALL - | typeof FIREFOX_LAPTOP_LARGE - | typeof FIREFOX_TABLET - | typeof FIREFOX_MOBILE_SMALL - | UnparsedObject; -export const LAPTOP_LARGE = "laptop_large"; -export const TABLET = "tablet"; -export const MOBILE_SMALL = "mobile_small"; -export const CHROME_LAPTOP_LARGE = "chrome.laptop_large"; -export const CHROME_TABLET = "chrome.tablet"; -export const CHROME_MOBILE_SMALL = "chrome.mobile_small"; -export const FIREFOX_LAPTOP_LARGE = "firefox.laptop_large"; -export const FIREFOX_TABLET = "firefox.tablet"; -export const FIREFOX_MOBILE_SMALL = "firefox.mobile_small"; +export type MonitorDeviceID = typeof LAPTOP_LARGE| typeof TABLET| typeof MOBILE_SMALL| typeof CHROME_LAPTOP_LARGE| typeof CHROME_TABLET| typeof CHROME_MOBILE_SMALL| typeof FIREFOX_LAPTOP_LARGE| typeof FIREFOX_TABLET| typeof FIREFOX_MOBILE_SMALL | UnparsedObject; +export const LAPTOP_LARGE = 'laptop_large'; +export const TABLET = 'tablet'; +export const MOBILE_SMALL = 'mobile_small'; +export const CHROME_LAPTOP_LARGE = 'chrome.laptop_large'; +export const CHROME_TABLET = 'chrome.tablet'; +export const CHROME_MOBILE_SMALL = 'chrome.mobile_small'; +export const FIREFOX_LAPTOP_LARGE = 'firefox.laptop_large'; +export const FIREFOX_TABLET = 'firefox.tablet'; +export const FIREFOX_MOBILE_SMALL = 'firefox.mobile_small'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.ts index ccc58e58a1b1..206530285741 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.ts @@ -4,29 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Aggregation methods for metric queries. - */ +*/ -export type MonitorFormulaAndFunctionCostAggregator = - | typeof AVG - | typeof SUM - | typeof MAX - | typeof MIN - | typeof LAST - | typeof AREA - | typeof L2NORM - | typeof PERCENTILE - | typeof STDDEV - | UnparsedObject; -export const AVG = "avg"; -export const SUM = "sum"; -export const MAX = "max"; -export const MIN = "min"; -export const LAST = "last"; -export const AREA = "area"; -export const L2NORM = "l2norm"; -export const PERCENTILE = "percentile"; -export const STDDEV = "stddev"; +export type MonitorFormulaAndFunctionCostAggregator = typeof AVG| typeof SUM| typeof MAX| typeof MIN| typeof LAST| typeof AREA| typeof L2NORM| typeof PERCENTILE| typeof STDDEV | UnparsedObject; +export const AVG = 'avg'; +export const SUM = 'sum'; +export const MAX = 'max'; +export const MIN = 'min'; +export const LAST = 'last'; +export const AREA = 'area'; +export const L2NORM = 'l2norm'; +export const PERCENTILE = 'percentile'; +export const STDDEV = 'stddev'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.ts index ba804ba809e0..b64a4f8c2a64 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for cost queries. - */ +*/ -export type MonitorFormulaAndFunctionCostDataSource = - | typeof METRICS - | typeof CLOUD_COST - | typeof DATADOG_USAGE - | UnparsedObject; -export const METRICS = "metrics"; -export const CLOUD_COST = "cloud_cost"; -export const DATADOG_USAGE = "datadog_usage"; +export type MonitorFormulaAndFunctionCostDataSource = typeof METRICS| typeof CLOUD_COST| typeof DATADOG_USAGE | UnparsedObject; +export const METRICS = 'metrics'; +export const CLOUD_COST = 'cloud_cost'; +export const DATADOG_USAGE = 'datadog_usage'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.ts index e07772fa3967..388520a04611 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.ts @@ -6,27 +6,32 @@ import { MonitorFormulaAndFunctionCostAggregator } from "./MonitorFormulaAndFunctionCostAggregator"; import { MonitorFormulaAndFunctionCostDataSource } from "./MonitorFormulaAndFunctionCostDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions cost query. - */ +*/ export class MonitorFormulaAndFunctionCostQueryDefinition { /** * Aggregation methods for metric queries. - */ + */ "aggregator"?: MonitorFormulaAndFunctionCostAggregator; /** * Data source for cost queries. - */ + */ "dataSource": MonitorFormulaAndFunctionCostDataSource; /** * Name of the query for use in formulas. - */ + */ "name": string; /** * The monitor query. - */ + */ "query": string; /** @@ -45,37 +50,63 @@ export class MonitorFormulaAndFunctionCostQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "MonitorFormulaAndFunctionCostAggregator", + "aggregator": { + "baseName": "aggregator", + "type": "MonitorFormulaAndFunctionCostAggregator", }, - dataSource: { - baseName: "data_source", - type: "MonitorFormulaAndFunctionCostDataSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "MonitorFormulaAndFunctionCostDataSource", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorFormulaAndFunctionCostQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventAggregation.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventAggregation.ts index ba78ac027cd5..708023f60906 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventAggregation.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventAggregation.ts @@ -4,35 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Aggregation methods for event platform queries. - */ +*/ -export type MonitorFormulaAndFunctionEventAggregation = - | typeof COUNT - | typeof CARDINALITY - | typeof MEDIAN - | typeof PC75 - | typeof PC90 - | typeof PC95 - | typeof PC98 - | typeof PC99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const MEDIAN = "median"; -export const PC75 = "pc75"; -export const PC90 = "pc90"; -export const PC95 = "pc95"; -export const PC98 = "pc98"; -export const PC99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; +export type MonitorFormulaAndFunctionEventAggregation = typeof COUNT| typeof CARDINALITY| typeof MEDIAN| typeof PC75| typeof PC90| typeof PC95| typeof PC98| typeof PC99| typeof SUM| typeof MIN| typeof MAX| typeof AVG | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const MEDIAN = 'median'; +export const PC75 = 'pc75'; +export const PC90 = 'pc90'; +export const PC95 = 'pc95'; +export const PC98 = 'pc98'; +export const PC99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinition.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinition.ts index a86f559659b1..6c4d1c98d18a 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinition.ts @@ -8,35 +8,40 @@ import { MonitorFormulaAndFunctionEventQueryDefinitionSearch } from "./MonitorFo import { MonitorFormulaAndFunctionEventQueryGroupBy } from "./MonitorFormulaAndFunctionEventQueryGroupBy"; import { MonitorFormulaAndFunctionEventsDataSource } from "./MonitorFormulaAndFunctionEventsDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula and functions events query. - */ +*/ export class MonitorFormulaAndFunctionEventQueryDefinition { /** * Compute options. - */ + */ "compute": MonitorFormulaAndFunctionEventQueryDefinitionCompute; /** * Data source for event platform-based queries. - */ + */ "dataSource": MonitorFormulaAndFunctionEventsDataSource; /** * Group by options. - */ + */ "groupBy"?: Array; /** * An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. - */ + */ "indexes"?: Array; /** * Name of the query for use in formulas. - */ + */ "name": string; /** * Search options. - */ + */ "search"?: MonitorFormulaAndFunctionEventQueryDefinitionSearch; /** @@ -55,45 +60,71 @@ export class MonitorFormulaAndFunctionEventQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "MonitorFormulaAndFunctionEventQueryDefinitionCompute", - required: true, - }, - dataSource: { - baseName: "data_source", - type: "MonitorFormulaAndFunctionEventsDataSource", - required: true, + "compute": { + "baseName": "compute", + "type": "MonitorFormulaAndFunctionEventQueryDefinitionCompute", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "dataSource": { + "baseName": "data_source", + "type": "MonitorFormulaAndFunctionEventsDataSource", + "required": true, }, - indexes: { - baseName: "indexes", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, + "indexes": { + "baseName": "indexes", + "type": "Array", }, - search: { - baseName: "search", - type: "MonitorFormulaAndFunctionEventQueryDefinitionSearch", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "search": { + "baseName": "search", + "type": "MonitorFormulaAndFunctionEventQueryDefinitionSearch", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorFormulaAndFunctionEventQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionCompute.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionCompute.ts index 9749dafa6838..35a3b2f1cf85 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionCompute.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionCompute.ts @@ -5,23 +5,28 @@ */ import { MonitorFormulaAndFunctionEventAggregation } from "./MonitorFormulaAndFunctionEventAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Compute options. - */ +*/ export class MonitorFormulaAndFunctionEventQueryDefinitionCompute { /** * Aggregation methods for event platform queries. - */ + */ "aggregation": MonitorFormulaAndFunctionEventAggregation; /** * A time interval in milliseconds. - */ + */ "interval"?: number; /** * Measurable attribute to compute. - */ + */ "metric"?: string; /** @@ -40,32 +45,58 @@ export class MonitorFormulaAndFunctionEventQueryDefinitionCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "MonitorFormulaAndFunctionEventAggregation", - required: true, - }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "aggregation": { + "baseName": "aggregation", + "type": "MonitorFormulaAndFunctionEventAggregation", + "required": true, }, - metric: { - baseName: "metric", - type: "string", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metric": { + "baseName": "metric", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorFormulaAndFunctionEventQueryDefinitionCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionSearch.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionSearch.ts index 4f6ea6c41d37..81d844a6126d 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionSearch.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryDefinitionSearch.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Search options. - */ +*/ export class MonitorFormulaAndFunctionEventQueryDefinitionSearch { /** * Events search string. - */ + */ "query": string; /** @@ -31,23 +36,49 @@ export class MonitorFormulaAndFunctionEventQueryDefinitionSearch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorFormulaAndFunctionEventQueryDefinitionSearch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBy.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBy.ts index 328ba7df5aac..08c6138faaca 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBy.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBy.ts @@ -5,23 +5,28 @@ */ import { MonitorFormulaAndFunctionEventQueryGroupBySort } from "./MonitorFormulaAndFunctionEventQueryGroupBySort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of objects used to group by. - */ +*/ export class MonitorFormulaAndFunctionEventQueryGroupBy { /** * Event facet. - */ + */ "facet": string; /** * Number of groups to return. - */ + */ "limit"?: number; /** * Options for sorting group by results. - */ + */ "sort"?: MonitorFormulaAndFunctionEventQueryGroupBySort; /** @@ -40,32 +45,58 @@ export class MonitorFormulaAndFunctionEventQueryGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - sort: { - baseName: "sort", - type: "MonitorFormulaAndFunctionEventQueryGroupBySort", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "MonitorFormulaAndFunctionEventQueryGroupBySort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorFormulaAndFunctionEventQueryGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBySort.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBySort.ts index 3d9d29480708..d2e9a65d0d75 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBySort.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventQueryGroupBySort.ts @@ -6,23 +6,28 @@ import { MonitorFormulaAndFunctionEventAggregation } from "./MonitorFormulaAndFunctionEventAggregation"; import { QuerySortOrder } from "./QuerySortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for sorting group by results. - */ +*/ export class MonitorFormulaAndFunctionEventQueryGroupBySort { /** * Aggregation methods for event platform queries. - */ + */ "aggregation": MonitorFormulaAndFunctionEventAggregation; /** * Metric used for sorting group by results. - */ + */ "metric"?: string; /** * Direction of sort. - */ + */ "order"?: QuerySortOrder; /** @@ -41,31 +46,57 @@ export class MonitorFormulaAndFunctionEventQueryGroupBySort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "MonitorFormulaAndFunctionEventAggregation", - required: true, - }, - metric: { - baseName: "metric", - type: "string", + "aggregation": { + "baseName": "aggregation", + "type": "MonitorFormulaAndFunctionEventAggregation", + "required": true, }, - order: { - baseName: "order", - type: "QuerySortOrder", + "metric": { + "baseName": "metric", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "QuerySortOrder", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorFormulaAndFunctionEventQueryGroupBySort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.ts index ad09d431ad0f..d29b19ffcc78 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.ts @@ -4,29 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data source for event platform-based queries. - */ +*/ -export type MonitorFormulaAndFunctionEventsDataSource = - | typeof RUM - | typeof CI_PIPELINES - | typeof CI_TESTS - | typeof AUDIT - | typeof EVENTS - | typeof LOGS - | typeof SPANS - | typeof DATABASE_QUERIES - | typeof NETWORK - | UnparsedObject; -export const RUM = "rum"; -export const CI_PIPELINES = "ci_pipelines"; -export const CI_TESTS = "ci_tests"; -export const AUDIT = "audit"; -export const EVENTS = "events"; -export const LOGS = "logs"; -export const SPANS = "spans"; -export const DATABASE_QUERIES = "database_queries"; -export const NETWORK = "network"; +export type MonitorFormulaAndFunctionEventsDataSource = typeof RUM| typeof CI_PIPELINES| typeof CI_TESTS| typeof AUDIT| typeof EVENTS| typeof LOGS| typeof SPANS| typeof DATABASE_QUERIES| typeof NETWORK | UnparsedObject; +export const RUM = 'rum'; +export const CI_PIPELINES = 'ci_pipelines'; +export const CI_TESTS = 'ci_tests'; +export const AUDIT = 'audit'; +export const EVENTS = 'events'; +export const LOGS = 'logs'; +export const SPANS = 'spans'; +export const DATABASE_QUERIES = 'database_queries'; +export const NETWORK = 'network'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionQueryDefinition.ts b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionQueryDefinition.ts index a11e88f21d38..52efd66900c2 100644 --- a/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionQueryDefinition.ts @@ -6,13 +6,15 @@ import { MonitorFormulaAndFunctionCostQueryDefinition } from "./MonitorFormulaAndFunctionCostQueryDefinition"; import { MonitorFormulaAndFunctionEventQueryDefinition } from "./MonitorFormulaAndFunctionEventQueryDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A formula and function query. - */ +*/ -export type MonitorFormulaAndFunctionQueryDefinition = - | MonitorFormulaAndFunctionEventQueryDefinition - | MonitorFormulaAndFunctionCostQueryDefinition - | UnparsedObject; +export type MonitorFormulaAndFunctionQueryDefinition = MonitorFormulaAndFunctionEventQueryDefinition | MonitorFormulaAndFunctionCostQueryDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorGroupSearchResponse.ts b/packages/datadog-api-client-v1/models/MonitorGroupSearchResponse.ts index f605a7c28405..0943994d5a9c 100644 --- a/packages/datadog-api-client-v1/models/MonitorGroupSearchResponse.ts +++ b/packages/datadog-api-client-v1/models/MonitorGroupSearchResponse.ts @@ -7,23 +7,28 @@ import { MonitorGroupSearchResponseCounts } from "./MonitorGroupSearchResponseCo import { MonitorGroupSearchResult } from "./MonitorGroupSearchResult"; import { MonitorSearchResponseMetadata } from "./MonitorSearchResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response of a monitor group search. - */ +*/ export class MonitorGroupSearchResponse { /** * The counts of monitor groups per different criteria. - */ + */ "counts"?: MonitorGroupSearchResponseCounts; /** * The list of found monitor groups. - */ + */ "groups"?: Array; /** * Metadata about the response. - */ + */ "metadata"?: MonitorSearchResponseMetadata; /** @@ -42,30 +47,56 @@ export class MonitorGroupSearchResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - counts: { - baseName: "counts", - type: "MonitorGroupSearchResponseCounts", - }, - groups: { - baseName: "groups", - type: "Array", + "counts": { + "baseName": "counts", + "type": "MonitorGroupSearchResponseCounts", }, - metadata: { - baseName: "metadata", - type: "MonitorSearchResponseMetadata", + "groups": { + "baseName": "groups", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metadata": { + "baseName": "metadata", + "type": "MonitorSearchResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorGroupSearchResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorGroupSearchResponseCounts.ts b/packages/datadog-api-client-v1/models/MonitorGroupSearchResponseCounts.ts index 5530eab4ac87..26aa14fa6dc4 100644 --- a/packages/datadog-api-client-v1/models/MonitorGroupSearchResponseCounts.ts +++ b/packages/datadog-api-client-v1/models/MonitorGroupSearchResponseCounts.ts @@ -5,19 +5,24 @@ */ import { MonitorSearchCountItem } from "./MonitorSearchCountItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The counts of monitor groups per different criteria. - */ +*/ export class MonitorGroupSearchResponseCounts { /** * Search facets. - */ + */ "status"?: Array; /** * Search facets. - */ + */ "type"?: Array; /** @@ -36,26 +41,52 @@ export class MonitorGroupSearchResponseCounts { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - status: { - baseName: "status", - type: "Array", + "status": { + "baseName": "status", + "type": "Array", }, - type: { - baseName: "type", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorGroupSearchResponseCounts.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorGroupSearchResult.ts b/packages/datadog-api-client-v1/models/MonitorGroupSearchResult.ts index 1b1576a45480..4c1a00862e94 100644 --- a/packages/datadog-api-client-v1/models/MonitorGroupSearchResult.ts +++ b/packages/datadog-api-client-v1/models/MonitorGroupSearchResult.ts @@ -5,39 +5,44 @@ */ import { MonitorOverallStates } from "./MonitorOverallStates"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single monitor group search result. - */ +*/ export class MonitorGroupSearchResult { /** * The name of the group. - */ + */ "group"?: string; /** * The list of tags of the monitor group. - */ + */ "groupTags"?: Array; /** * Latest timestamp the monitor group was in NO_DATA state. - */ + */ "lastNodataTs"?: number; /** * Latest timestamp the monitor group triggered. - */ + */ "lastTriggeredTs"?: number; /** * The ID of the monitor. - */ + */ "monitorId"?: number; /** * The name of the monitor. - */ + */ "monitorName"?: string; /** * The different states your monitor can be in. - */ + */ "status"?: MonitorOverallStates; /** @@ -56,49 +61,75 @@ export class MonitorGroupSearchResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - group: { - baseName: "group", - type: "string", - }, - groupTags: { - baseName: "group_tags", - type: "Array", + "group": { + "baseName": "group", + "type": "string", }, - lastNodataTs: { - baseName: "last_nodata_ts", - type: "number", - format: "int64", + "groupTags": { + "baseName": "group_tags", + "type": "Array", }, - lastTriggeredTs: { - baseName: "last_triggered_ts", - type: "number", - format: "int64", + "lastNodataTs": { + "baseName": "last_nodata_ts", + "type": "number", + "format": "int64", }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", + "lastTriggeredTs": { + "baseName": "last_triggered_ts", + "type": "number", + "format": "int64", }, - monitorName: { - baseName: "monitor_name", - type: "string", + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", }, - status: { - baseName: "status", - type: "MonitorOverallStates", + "monitorName": { + "baseName": "monitor_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "MonitorOverallStates", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorGroupSearchResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOptions.ts b/packages/datadog-api-client-v1/models/MonitorOptions.ts index 1f00de3e45e7..67c61f0aebed 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptions.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptions.ts @@ -13,103 +13,108 @@ import { MonitorThresholds } from "./MonitorThresholds"; import { MonitorThresholdWindowOptions } from "./MonitorThresholdWindowOptions"; import { OnMissingDataOption } from "./OnMissingDataOption"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of options associated with your monitor. - */ +*/ export class MonitorOptions { /** * Type of aggregation performed in the monitor query. - */ + */ "aggregation"?: MonitorOptionsAggregation; /** * IDs of the device the Synthetics monitor is running on. - */ + */ "deviceIds"?: Array; /** * Whether or not to send a log sample when the log monitor triggers. - */ + */ "enableLogsSample"?: boolean; /** * Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors. - */ + */ "enableSamples"?: boolean; /** * We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), * block in the original message instead. * A message to include with a re-notification. Supports the `@username` notification we allow elsewhere. * Not applicable if `renotify_interval` is `None`. - */ + */ "escalationMessage"?: string; /** * Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), * the timeframe is set to `last_5m` and the time is 7:00, the monitor evaluates data from 6:50 to 6:55. * This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation. - */ + */ "evaluationDelay"?: number; /** * The time span after which groups with missing data are dropped from the monitor state. * The minimum value is one hour, and the maximum value is 72 hours. * Example values are: "60m", "1h", and "2d". * This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. - */ + */ "groupRetentionDuration"?: string; /** * Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use `notify_by` instead. - */ + */ "groupbySimpleMonitor"?: boolean; /** * A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. - * + * * **Examples** * - If `True`, `[Triggered on {host:h1}] Monitor Title` * - If `False`, `[Triggered] Monitor Title` - */ + */ "includeTags"?: boolean; /** * Whether or not the monitor is locked (only editable by creator and admins). Use `restricted_roles` instead. - */ + */ "locked"?: boolean; /** * How long the test should be in failure before alerting (integer, number of seconds, max 7200). - */ + */ "minFailureDuration"?: number; /** * The minimum number of locations in failure at the same time during * at least one moment in the `min_failure_duration` period (`min_location_failed` and `min_failure_duration` * are part of the advanced alerting rules - integer, >= 1). - */ + */ "minLocationFailed"?: number; /** * Time (in seconds) to skip evaluations for new groups. - * + * * For example, this option can be used to skip evaluations for new hosts while they initialize. - * + * * Must be a non negative integer. - */ + */ "newGroupDelay"?: number; /** * Time (in seconds) to allow a host to boot and applications * to fully start before starting the evaluation of monitor results. * Should be a non negative integer. - * + * * Use new_group_delay instead. - */ + */ "newHostDelay"?: number; /** * The number of minutes before a monitor notifies after data stops reporting. * Datadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks. * If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks. - */ + */ "noDataTimeframe"?: number; /** * Toggles the display of additional content sent in the monitor notification. - */ + */ "notificationPresetName"?: MonitorOptionsNotificationPresets; /** * A Boolean indicating whether tagged users is notified on changes to this monitor. - */ + */ "notifyAudit"?: boolean; /** * Controls what granularity a monitor alerts on. Only available for monitors with groupings. @@ -118,11 +123,11 @@ export class MonitorOptions { * in `notify_by` must be a subset of the grouping tags in the query. * For example, a query grouped by `cluster` and `namespace` cannot notify on `region`. * Setting `notify_by` to `[*]` configures the monitor to notify as a simple-alert. - */ + */ "notifyBy"?: Array; /** * A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to `false`. - */ + */ "notifyNoData"?: boolean; /** * Controls how groups or monitors are treated if an evaluation does not return any data points. @@ -130,57 +135,57 @@ export class MonitorOptions { * For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. * For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status. * This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. - */ + */ "onMissingData"?: OnMissingDataOption; /** * The number of minutes after the last notification before a monitor re-notifies on the current status. * It only re-notifies if it’s not resolved. - */ + */ "renotifyInterval"?: number; /** * The number of times re-notification messages should be sent on the current status at the provided re-notification interval. - */ + */ "renotifyOccurrences"?: number; /** * The types of monitor statuses for which re-notification messages are sent. * Default: **null** if `renotify_interval` is **null**. * If `renotify_interval` is set, defaults to renotify on `Alert` and `No Data`. - */ + */ "renotifyStatuses"?: Array; /** * A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. * We highly recommend you set this to `false` for sparse metrics, * otherwise some evaluations are skipped. Default is false. This setting only applies to * metric monitors. - */ + */ "requireFullWindow"?: boolean; /** * Configuration options for scheduling. - */ + */ "schedulingOptions"?: MonitorOptionsSchedulingOptions; /** * Information about the downtime applied to the monitor. Only shows v1 downtimes. - */ - "silenced"?: { [key: string]: number }; + */ + "silenced"?: { [key: string]: number; }; /** * ID of the corresponding Synthetic check. - */ + */ "syntheticsCheckId"?: string; /** * Alerting time window options. - */ + */ "thresholdWindows"?: MonitorThresholdWindowOptions; /** * List of the different monitor threshold available. - */ + */ "thresholds"?: MonitorThresholds; /** * The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. - */ + */ "timeoutH"?: number; /** * List of requests that can be used in the monitor query. **This feature is currently in beta.** - */ + */ "variables"?: Array; /** @@ -199,151 +204,177 @@ export class MonitorOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "MonitorOptionsAggregation", - }, - deviceIds: { - baseName: "device_ids", - type: "Array", - }, - enableLogsSample: { - baseName: "enable_logs_sample", - type: "boolean", - }, - enableSamples: { - baseName: "enable_samples", - type: "boolean", - }, - escalationMessage: { - baseName: "escalation_message", - type: "string", - }, - evaluationDelay: { - baseName: "evaluation_delay", - type: "number", - format: "int64", - }, - groupRetentionDuration: { - baseName: "group_retention_duration", - type: "string", - }, - groupbySimpleMonitor: { - baseName: "groupby_simple_monitor", - type: "boolean", - }, - includeTags: { - baseName: "include_tags", - type: "boolean", - }, - locked: { - baseName: "locked", - type: "boolean", - }, - minFailureDuration: { - baseName: "min_failure_duration", - type: "number", - format: "int64", - }, - minLocationFailed: { - baseName: "min_location_failed", - type: "number", - format: "int64", - }, - newGroupDelay: { - baseName: "new_group_delay", - type: "number", - format: "int64", - }, - newHostDelay: { - baseName: "new_host_delay", - type: "number", - format: "int64", - }, - noDataTimeframe: { - baseName: "no_data_timeframe", - type: "number", - format: "int64", - }, - notificationPresetName: { - baseName: "notification_preset_name", - type: "MonitorOptionsNotificationPresets", - }, - notifyAudit: { - baseName: "notify_audit", - type: "boolean", - }, - notifyBy: { - baseName: "notify_by", - type: "Array", - }, - notifyNoData: { - baseName: "notify_no_data", - type: "boolean", - }, - onMissingData: { - baseName: "on_missing_data", - type: "OnMissingDataOption", - }, - renotifyInterval: { - baseName: "renotify_interval", - type: "number", - format: "int64", - }, - renotifyOccurrences: { - baseName: "renotify_occurrences", - type: "number", - format: "int64", - }, - renotifyStatuses: { - baseName: "renotify_statuses", - type: "Array", - }, - requireFullWindow: { - baseName: "require_full_window", - type: "boolean", - }, - schedulingOptions: { - baseName: "scheduling_options", - type: "MonitorOptionsSchedulingOptions", - }, - silenced: { - baseName: "silenced", - type: "{ [key: string]: number; }", - }, - syntheticsCheckId: { - baseName: "synthetics_check_id", - type: "string", - }, - thresholdWindows: { - baseName: "threshold_windows", - type: "MonitorThresholdWindowOptions", - }, - thresholds: { - baseName: "thresholds", - type: "MonitorThresholds", - }, - timeoutH: { - baseName: "timeout_h", - type: "number", - format: "int64", - }, - variables: { - baseName: "variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "aggregation": { + "baseName": "aggregation", + "type": "MonitorOptionsAggregation", + }, + "deviceIds": { + "baseName": "device_ids", + "type": "Array", + }, + "enableLogsSample": { + "baseName": "enable_logs_sample", + "type": "boolean", + }, + "enableSamples": { + "baseName": "enable_samples", + "type": "boolean", + }, + "escalationMessage": { + "baseName": "escalation_message", + "type": "string", + }, + "evaluationDelay": { + "baseName": "evaluation_delay", + "type": "number", + "format": "int64", + }, + "groupRetentionDuration": { + "baseName": "group_retention_duration", + "type": "string", + }, + "groupbySimpleMonitor": { + "baseName": "groupby_simple_monitor", + "type": "boolean", + }, + "includeTags": { + "baseName": "include_tags", + "type": "boolean", + }, + "locked": { + "baseName": "locked", + "type": "boolean", + }, + "minFailureDuration": { + "baseName": "min_failure_duration", + "type": "number", + "format": "int64", + }, + "minLocationFailed": { + "baseName": "min_location_failed", + "type": "number", + "format": "int64", + }, + "newGroupDelay": { + "baseName": "new_group_delay", + "type": "number", + "format": "int64", + }, + "newHostDelay": { + "baseName": "new_host_delay", + "type": "number", + "format": "int64", + }, + "noDataTimeframe": { + "baseName": "no_data_timeframe", + "type": "number", + "format": "int64", + }, + "notificationPresetName": { + "baseName": "notification_preset_name", + "type": "MonitorOptionsNotificationPresets", + }, + "notifyAudit": { + "baseName": "notify_audit", + "type": "boolean", + }, + "notifyBy": { + "baseName": "notify_by", + "type": "Array", + }, + "notifyNoData": { + "baseName": "notify_no_data", + "type": "boolean", + }, + "onMissingData": { + "baseName": "on_missing_data", + "type": "OnMissingDataOption", + }, + "renotifyInterval": { + "baseName": "renotify_interval", + "type": "number", + "format": "int64", + }, + "renotifyOccurrences": { + "baseName": "renotify_occurrences", + "type": "number", + "format": "int64", + }, + "renotifyStatuses": { + "baseName": "renotify_statuses", + "type": "Array", + }, + "requireFullWindow": { + "baseName": "require_full_window", + "type": "boolean", + }, + "schedulingOptions": { + "baseName": "scheduling_options", + "type": "MonitorOptionsSchedulingOptions", + }, + "silenced": { + "baseName": "silenced", + "type": "{ [key: string]: number; }", + }, + "syntheticsCheckId": { + "baseName": "synthetics_check_id", + "type": "string", + }, + "thresholdWindows": { + "baseName": "threshold_windows", + "type": "MonitorThresholdWindowOptions", + }, + "thresholds": { + "baseName": "thresholds", + "type": "MonitorThresholds", + }, + "timeoutH": { + "baseName": "timeout_h", + "type": "number", + "format": "int64", + }, + "variables": { + "baseName": "variables", + "type": "Array", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOptionsAggregation.ts b/packages/datadog-api-client-v1/models/MonitorOptionsAggregation.ts index 36f43b3589e1..eae952701b78 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptionsAggregation.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptionsAggregation.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Type of aggregation performed in the monitor query. - */ +*/ export class MonitorOptionsAggregation { /** * Group to break down the monitor on. - */ + */ "groupBy"?: string; /** * Metric name used in the monitor. - */ + */ "metric"?: string; /** * Metric type used in the monitor. - */ + */ "type"?: string; /** @@ -39,30 +44,56 @@ export class MonitorOptionsAggregation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - groupBy: { - baseName: "group_by", - type: "string", - }, - metric: { - baseName: "metric", - type: "string", + "groupBy": { + "baseName": "group_by", + "type": "string", }, - type: { - baseName: "type", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorOptionsAggregation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.ts b/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.ts index 8462cca53ace..cdc90df5bcf4 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.ts @@ -5,15 +5,20 @@ */ import { MonitorOptionsCustomScheduleRecurrence } from "./MonitorOptionsCustomScheduleRecurrence"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration options for the custom schedule. **This feature is in private beta.** - */ +*/ export class MonitorOptionsCustomSchedule { /** * Array of custom schedule recurrences. - */ + */ "recurrences"?: Array; /** @@ -32,22 +37,48 @@ export class MonitorOptionsCustomSchedule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - recurrences: { - baseName: "recurrences", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "recurrences": { + "baseName": "recurrences", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorOptionsCustomSchedule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.ts b/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.ts index df2c1d26dd0e..923cb507740d 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration for a recurrence set on the monitor options for custom schedule. - */ +*/ export class MonitorOptionsCustomScheduleRecurrence { /** * Defines the recurrence rule (RRULE) for a given schedule. - */ + */ "rrule"?: string; /** * Defines the start date and time of the recurring schedule. - */ + */ "start"?: string; /** * Defines the timezone the schedule runs on. - */ + */ "timezone"?: string; /** @@ -39,30 +44,56 @@ export class MonitorOptionsCustomScheduleRecurrence { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rrule: { - baseName: "rrule", - type: "string", - }, - start: { - baseName: "start", - type: "string", + "rrule": { + "baseName": "rrule", + "type": "string", }, - timezone: { - baseName: "timezone", - type: "string", + "start": { + "baseName": "start", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorOptionsCustomScheduleRecurrence.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.ts b/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.ts index f46da6ad318b..40eaf52bcb86 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Toggles the display of additional content sent in the monitor notification. - */ +*/ -export type MonitorOptionsNotificationPresets = - | typeof SHOW_ALL - | typeof HIDE_QUERY - | typeof HIDE_HANDLES - | typeof HIDE_ALL - | UnparsedObject; -export const SHOW_ALL = "show_all"; -export const HIDE_QUERY = "hide_query"; -export const HIDE_HANDLES = "hide_handles"; -export const HIDE_ALL = "hide_all"; +export type MonitorOptionsNotificationPresets = typeof SHOW_ALL| typeof HIDE_QUERY| typeof HIDE_HANDLES| typeof HIDE_ALL | UnparsedObject; +export const SHOW_ALL = 'show_all'; +export const HIDE_QUERY = 'hide_query'; +export const HIDE_HANDLES = 'hide_handles'; +export const HIDE_ALL = 'hide_all'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.ts b/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.ts index d8e077ea3fcb..377c3f11d0cf 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.ts @@ -6,19 +6,24 @@ import { MonitorOptionsCustomSchedule } from "./MonitorOptionsCustomSchedule"; import { MonitorOptionsSchedulingOptionsEvaluationWindow } from "./MonitorOptionsSchedulingOptionsEvaluationWindow"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration options for scheduling. - */ +*/ export class MonitorOptionsSchedulingOptions { /** * Configuration options for the custom schedule. **This feature is in private beta.** - */ + */ "customSchedule"?: MonitorOptionsCustomSchedule; /** * Configuration options for the evaluation window. If `hour_starts` is set, no other fields may be set. Otherwise, `day_starts` and `month_starts` must be set together. - */ + */ "evaluationWindow"?: MonitorOptionsSchedulingOptionsEvaluationWindow; /** @@ -37,26 +42,52 @@ export class MonitorOptionsSchedulingOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customSchedule: { - baseName: "custom_schedule", - type: "MonitorOptionsCustomSchedule", + "customSchedule": { + "baseName": "custom_schedule", + "type": "MonitorOptionsCustomSchedule", }, - evaluationWindow: { - baseName: "evaluation_window", - type: "MonitorOptionsSchedulingOptionsEvaluationWindow", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "evaluationWindow": { + "baseName": "evaluation_window", + "type": "MonitorOptionsSchedulingOptionsEvaluationWindow", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorOptionsSchedulingOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptionsEvaluationWindow.ts b/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptionsEvaluationWindow.ts index b8e165e1d38e..078eda905a78 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptionsEvaluationWindow.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptionsEvaluationWindow.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration options for the evaluation window. If `hour_starts` is set, no other fields may be set. Otherwise, `day_starts` and `month_starts` must be set together. - */ +*/ export class MonitorOptionsSchedulingOptionsEvaluationWindow { /** * The time of the day at which a one day cumulative evaluation window starts. - */ + */ "dayStarts"?: string; /** * The minute of the hour at which a one hour cumulative evaluation window starts. - */ + */ "hourStarts"?: number; /** * The day of the month at which a one month cumulative evaluation window starts. - */ + */ "monthStarts"?: number; /** * The timezone of the time of the day of the cumulative evaluation window start. - */ + */ "timezone"?: string; /** @@ -43,36 +48,62 @@ export class MonitorOptionsSchedulingOptionsEvaluationWindow { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dayStarts: { - baseName: "day_starts", - type: "string", + "dayStarts": { + "baseName": "day_starts", + "type": "string", }, - hourStarts: { - baseName: "hour_starts", - type: "number", - format: "int32", + "hourStarts": { + "baseName": "hour_starts", + "type": "number", + "format": "int32", }, - monthStarts: { - baseName: "month_starts", - type: "number", - format: "int32", + "monthStarts": { + "baseName": "month_starts", + "type": "number", + "format": "int32", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorOptionsSchedulingOptionsEvaluationWindow.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorOverallStates.ts b/packages/datadog-api-client-v1/models/MonitorOverallStates.ts index 3d4392274913..2ea9976aae9a 100644 --- a/packages/datadog-api-client-v1/models/MonitorOverallStates.ts +++ b/packages/datadog-api-client-v1/models/MonitorOverallStates.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The different states your monitor can be in. - */ +*/ -export type MonitorOverallStates = - | typeof ALERT - | typeof IGNORED - | typeof NO_DATA - | typeof OK - | typeof SKIPPED - | typeof UNKNOWN - | typeof WARN - | UnparsedObject; -export const ALERT = "Alert"; -export const IGNORED = "Ignored"; -export const NO_DATA = "No Data"; -export const OK = "OK"; -export const SKIPPED = "Skipped"; -export const UNKNOWN = "Unknown"; -export const WARN = "Warn"; +export type MonitorOverallStates = typeof ALERT| typeof IGNORED| typeof NO_DATA| typeof OK| typeof SKIPPED| typeof UNKNOWN| typeof WARN | UnparsedObject; +export const ALERT = 'Alert'; +export const IGNORED = 'Ignored'; +export const NO_DATA = 'No Data'; +export const OK = 'OK'; +export const SKIPPED = 'Skipped'; +export const UNKNOWN = 'Unknown'; +export const WARN = 'Warn'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorRenotifyStatusType.ts b/packages/datadog-api-client-v1/models/MonitorRenotifyStatusType.ts index 9d9654c19e5c..b01505e0de79 100644 --- a/packages/datadog-api-client-v1/models/MonitorRenotifyStatusType.ts +++ b/packages/datadog-api-client-v1/models/MonitorRenotifyStatusType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The different statuses for which renotification is supported. - */ +*/ -export type MonitorRenotifyStatusType = - | typeof ALERT - | typeof WARN - | typeof NO_DATA - | UnparsedObject; -export const ALERT = "alert"; -export const WARN = "warn"; -export const NO_DATA = "no data"; +export type MonitorRenotifyStatusType = typeof ALERT| typeof WARN| typeof NO_DATA | UnparsedObject; +export const ALERT = 'alert'; +export const WARN = 'warn'; +export const NO_DATA = 'no data'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorSearchCountItem.ts b/packages/datadog-api-client-v1/models/MonitorSearchCountItem.ts index 043f375f754b..e9ee57dccc68 100644 --- a/packages/datadog-api-client-v1/models/MonitorSearchCountItem.ts +++ b/packages/datadog-api-client-v1/models/MonitorSearchCountItem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A facet item. - */ +*/ export class MonitorSearchCountItem { /** * The number of found monitors with the listed value. - */ + */ "count"?: number; /** * The facet value. - */ + */ "name"?: any; /** @@ -35,27 +40,53 @@ export class MonitorSearchCountItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "any", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSearchCountItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSearchResponse.ts b/packages/datadog-api-client-v1/models/MonitorSearchResponse.ts index 972f89222d0e..b0b5385169a6 100644 --- a/packages/datadog-api-client-v1/models/MonitorSearchResponse.ts +++ b/packages/datadog-api-client-v1/models/MonitorSearchResponse.ts @@ -7,23 +7,28 @@ import { MonitorSearchResponseCounts } from "./MonitorSearchResponseCounts"; import { MonitorSearchResponseMetadata } from "./MonitorSearchResponseMetadata"; import { MonitorSearchResult } from "./MonitorSearchResult"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response form a monitor search. - */ +*/ export class MonitorSearchResponse { /** * The counts of monitors per different criteria. - */ + */ "counts"?: MonitorSearchResponseCounts; /** * Metadata about the response. - */ + */ "metadata"?: MonitorSearchResponseMetadata; /** * The list of found monitors. - */ + */ "monitors"?: Array; /** @@ -42,30 +47,56 @@ export class MonitorSearchResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - counts: { - baseName: "counts", - type: "MonitorSearchResponseCounts", - }, - metadata: { - baseName: "metadata", - type: "MonitorSearchResponseMetadata", + "counts": { + "baseName": "counts", + "type": "MonitorSearchResponseCounts", }, - monitors: { - baseName: "monitors", - type: "Array", + "metadata": { + "baseName": "metadata", + "type": "MonitorSearchResponseMetadata", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "monitors": { + "baseName": "monitors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSearchResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSearchResponseCounts.ts b/packages/datadog-api-client-v1/models/MonitorSearchResponseCounts.ts index 56cb0012a8c8..e39b3a3538f2 100644 --- a/packages/datadog-api-client-v1/models/MonitorSearchResponseCounts.ts +++ b/packages/datadog-api-client-v1/models/MonitorSearchResponseCounts.ts @@ -5,27 +5,32 @@ */ import { MonitorSearchCountItem } from "./MonitorSearchCountItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The counts of monitors per different criteria. - */ +*/ export class MonitorSearchResponseCounts { /** * Search facets. - */ + */ "muted"?: Array; /** * Search facets. - */ + */ "status"?: Array; /** * Search facets. - */ + */ "tag"?: Array; /** * Search facets. - */ + */ "type"?: Array; /** @@ -44,34 +49,60 @@ export class MonitorSearchResponseCounts { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - muted: { - baseName: "muted", - type: "Array", + "muted": { + "baseName": "muted", + "type": "Array", }, - status: { - baseName: "status", - type: "Array", + "status": { + "baseName": "status", + "type": "Array", }, - tag: { - baseName: "tag", - type: "Array", + "tag": { + "baseName": "tag", + "type": "Array", }, - type: { - baseName: "type", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSearchResponseCounts.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSearchResponseMetadata.ts b/packages/datadog-api-client-v1/models/MonitorSearchResponseMetadata.ts index 3eb4bc5632db..92726329aa02 100644 --- a/packages/datadog-api-client-v1/models/MonitorSearchResponseMetadata.ts +++ b/packages/datadog-api-client-v1/models/MonitorSearchResponseMetadata.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata about the response. - */ +*/ export class MonitorSearchResponseMetadata { /** * The page to start paginating from. - */ + */ "page"?: number; /** * The number of pages. - */ + */ "pageCount"?: number; /** * The number of monitors to return per page. - */ + */ "perPage"?: number; /** * The total number of monitors. - */ + */ "totalCount"?: number; /** @@ -43,38 +48,64 @@ export class MonitorSearchResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "number", - format: "int64", + "page": { + "baseName": "page", + "type": "number", + "format": "int64", }, - pageCount: { - baseName: "page_count", - type: "number", - format: "int64", + "pageCount": { + "baseName": "page_count", + "type": "number", + "format": "int64", }, - perPage: { - baseName: "per_page", - type: "number", - format: "int64", + "perPage": { + "baseName": "per_page", + "type": "number", + "format": "int64", }, - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSearchResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSearchResult.ts b/packages/datadog-api-client-v1/models/MonitorSearchResult.ts index d9b785eedb4f..05a6e27454fd 100644 --- a/packages/datadog-api-client-v1/models/MonitorSearchResult.ts +++ b/packages/datadog-api-client-v1/models/MonitorSearchResult.ts @@ -8,70 +8,75 @@ import { MonitorOverallStates } from "./MonitorOverallStates"; import { MonitorSearchResultNotification } from "./MonitorSearchResultNotification"; import { MonitorType } from "./MonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Holds search results. - */ +*/ export class MonitorSearchResult { /** * Classification of the monitor. - */ + */ "classification"?: string; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * ID of the monitor. - */ + */ "id"?: number; /** * Latest timestamp the monitor triggered. - */ + */ "lastTriggeredTs"?: number; /** * Metrics used by the monitor. - */ + */ "metrics"?: Array; /** * The monitor name. - */ + */ "name"?: string; /** * The notification triggered by the monitor. - */ + */ "notifications"?: Array; /** * The ID of the organization. - */ + */ "orgId"?: number; /** * Quality issues detected with the monitor. - */ + */ "qualityIssues"?: Array; /** * The monitor query. - */ + */ "query"?: string; /** * The scope(s) to which the downtime applies, for example `host:app2`. * Provide multiple scopes as a comma-separated list, for example `env:dev,env:prod`. * The resulting downtime applies to sources that matches ALL provided scopes * (that is `env:dev AND env:prod`), NOT any of them. - */ + */ "scopes"?: Array; /** * The different states your monitor can be in. - */ + */ "status"?: MonitorOverallStates; /** * Tags associated with the monitor. - */ + */ "tags"?: Array; /** * The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. - */ + */ "type"?: MonitorType; /** @@ -90,77 +95,103 @@ export class MonitorSearchResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - classification: { - baseName: "classification", - type: "string", - }, - creator: { - baseName: "creator", - type: "Creator", + "classification": { + "baseName": "classification", + "type": "string", }, - id: { - baseName: "id", - type: "number", - format: "int64", + "creator": { + "baseName": "creator", + "type": "Creator", }, - lastTriggeredTs: { - baseName: "last_triggered_ts", - type: "number", - format: "int64", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - metrics: { - baseName: "metrics", - type: "Array", + "lastTriggeredTs": { + "baseName": "last_triggered_ts", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "metrics": { + "baseName": "metrics", + "type": "Array", }, - notifications: { - baseName: "notifications", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - orgId: { - baseName: "org_id", - type: "number", - format: "int64", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - qualityIssues: { - baseName: "quality_issues", - type: "Array", + "orgId": { + "baseName": "org_id", + "type": "number", + "format": "int64", }, - query: { - baseName: "query", - type: "string", + "qualityIssues": { + "baseName": "quality_issues", + "type": "Array", }, - scopes: { - baseName: "scopes", - type: "Array", + "query": { + "baseName": "query", + "type": "string", }, - status: { - baseName: "status", - type: "MonitorOverallStates", + "scopes": { + "baseName": "scopes", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "status": { + "baseName": "status", + "type": "MonitorOverallStates", }, - type: { - baseName: "type", - type: "MonitorType", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MonitorType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSearchResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSearchResultNotification.ts b/packages/datadog-api-client-v1/models/MonitorSearchResultNotification.ts index d430877d33c3..1d4463a8bc1f 100644 --- a/packages/datadog-api-client-v1/models/MonitorSearchResultNotification.ts +++ b/packages/datadog-api-client-v1/models/MonitorSearchResultNotification.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A notification triggered by the monitor. - */ +*/ export class MonitorSearchResultNotification { /** * The email address that received the notification. - */ + */ "handle"?: string; /** * The username receiving the notification - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class MonitorSearchResultNotification { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSearchResultNotification.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorState.ts b/packages/datadog-api-client-v1/models/MonitorState.ts index 73a1a7b9ce22..444f3295e01d 100644 --- a/packages/datadog-api-client-v1/models/MonitorState.ts +++ b/packages/datadog-api-client-v1/models/MonitorState.ts @@ -5,17 +5,22 @@ */ import { MonitorStateGroup } from "./MonitorStateGroup"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper object with the different monitor states. - */ +*/ export class MonitorState { /** * Dictionary where the keys are groups (comma separated lists of tags) and the values are * the list of groups your monitor is broken down on. - */ - "groups"?: { [key: string]: MonitorStateGroup }; + */ + "groups"?: { [key: string]: MonitorStateGroup; }; /** * A container for additional, undeclared properties. @@ -33,22 +38,48 @@ export class MonitorState { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - groups: { - baseName: "groups", - type: "{ [key: string]: MonitorStateGroup; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groups": { + "baseName": "groups", + "type": "{ [key: string]: MonitorStateGroup; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorState.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorStateGroup.ts b/packages/datadog-api-client-v1/models/MonitorStateGroup.ts index 3ab9f05472f0..2be031facfba 100644 --- a/packages/datadog-api-client-v1/models/MonitorStateGroup.ts +++ b/packages/datadog-api-client-v1/models/MonitorStateGroup.ts @@ -5,35 +5,40 @@ */ import { MonitorOverallStates } from "./MonitorOverallStates"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Monitor state for a single group. - */ +*/ export class MonitorStateGroup { /** * Latest timestamp the monitor was in NO_DATA state. - */ + */ "lastNodataTs"?: number; /** * Latest timestamp of the notification sent for this monitor group. - */ + */ "lastNotifiedTs"?: number; /** * Latest timestamp the monitor group was resolved. - */ + */ "lastResolvedTs"?: number; /** * Latest timestamp the monitor group triggered. - */ + */ "lastTriggeredTs"?: number; /** * The name of the monitor. - */ + */ "name"?: string; /** * The different states your monitor can be in. - */ + */ "status"?: MonitorOverallStates; /** @@ -52,46 +57,72 @@ export class MonitorStateGroup { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lastNodataTs: { - baseName: "last_nodata_ts", - type: "number", - format: "int64", - }, - lastNotifiedTs: { - baseName: "last_notified_ts", - type: "number", - format: "int64", + "lastNodataTs": { + "baseName": "last_nodata_ts", + "type": "number", + "format": "int64", }, - lastResolvedTs: { - baseName: "last_resolved_ts", - type: "number", - format: "int64", + "lastNotifiedTs": { + "baseName": "last_notified_ts", + "type": "number", + "format": "int64", }, - lastTriggeredTs: { - baseName: "last_triggered_ts", - type: "number", - format: "int64", + "lastResolvedTs": { + "baseName": "last_resolved_ts", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "lastTriggeredTs": { + "baseName": "last_triggered_ts", + "type": "number", + "format": "int64", }, - status: { - baseName: "status", - type: "MonitorOverallStates", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "MonitorOverallStates", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorStateGroup.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.ts b/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.ts index f67c8e84e50a..71a26b8473a3 100644 --- a/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.ts @@ -10,67 +10,72 @@ import { WidgetMonitorSummarySort } from "./WidgetMonitorSummarySort"; import { WidgetSummaryType } from "./WidgetSummaryType"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query. Only available on FREE layout dashboards. - */ +*/ export class MonitorSummaryWidgetDefinition { /** * Which color to use on the widget. - */ + */ "colorPreference"?: WidgetColorPreference; /** * The number of monitors to display. - */ + */ "count"?: number; /** * What to display on the widget. - */ + */ "displayFormat"?: WidgetMonitorSummaryDisplayFormat; /** * Whether to show counts of 0 or not. - */ + */ "hideZeroCounts"?: boolean; /** * Query to filter the monitors with. - */ + */ "query": string; /** * Whether to show the time that has elapsed since the monitor/group triggered. - */ + */ "showLastTriggered"?: boolean; /** * Whether to show the priorities column. - */ + */ "showPriority"?: boolean; /** * Widget sorting methods. - */ + */ "sort"?: WidgetMonitorSummarySort; /** * The start of the list. Typically 0. - */ + */ "start"?: number; /** * Which summary type should be used. - */ + */ "summaryType"?: WidgetSummaryType; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the monitor summary widget. - */ + */ "type": MonitorSummaryWidgetDefinitionType; /** @@ -89,78 +94,104 @@ export class MonitorSummaryWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - colorPreference: { - baseName: "color_preference", - type: "WidgetColorPreference", - }, - count: { - baseName: "count", - type: "number", - format: "int64", + "colorPreference": { + "baseName": "color_preference", + "type": "WidgetColorPreference", }, - displayFormat: { - baseName: "display_format", - type: "WidgetMonitorSummaryDisplayFormat", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - hideZeroCounts: { - baseName: "hide_zero_counts", - type: "boolean", + "displayFormat": { + "baseName": "display_format", + "type": "WidgetMonitorSummaryDisplayFormat", }, - query: { - baseName: "query", - type: "string", - required: true, + "hideZeroCounts": { + "baseName": "hide_zero_counts", + "type": "boolean", }, - showLastTriggered: { - baseName: "show_last_triggered", - type: "boolean", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - showPriority: { - baseName: "show_priority", - type: "boolean", + "showLastTriggered": { + "baseName": "show_last_triggered", + "type": "boolean", }, - sort: { - baseName: "sort", - type: "WidgetMonitorSummarySort", + "showPriority": { + "baseName": "show_priority", + "type": "boolean", }, - start: { - baseName: "start", - type: "number", - format: "int64", + "sort": { + "baseName": "sort", + "type": "WidgetMonitorSummarySort", }, - summaryType: { - baseName: "summary_type", - type: "WidgetSummaryType", + "start": { + "baseName": "start", + "type": "number", + "format": "int64", }, - title: { - baseName: "title", - type: "string", + "summaryType": { + "baseName": "summary_type", + "type": "WidgetSummaryType", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "MonitorSummaryWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MonitorSummaryWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorSummaryWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinitionType.ts index 5cc305129038..325ecd28b1ff 100644 --- a/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the monitor summary widget. - */ +*/ -export type MonitorSummaryWidgetDefinitionType = - | typeof MANAGE_STATUS - | UnparsedObject; -export const MANAGE_STATUS = "manage_status"; +export type MonitorSummaryWidgetDefinitionType = typeof MANAGE_STATUS | UnparsedObject; +export const MANAGE_STATUS = 'manage_status'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorThresholdWindowOptions.ts b/packages/datadog-api-client-v1/models/MonitorThresholdWindowOptions.ts index 2a252fb4c83f..56d9168cfec0 100644 --- a/packages/datadog-api-client-v1/models/MonitorThresholdWindowOptions.ts +++ b/packages/datadog-api-client-v1/models/MonitorThresholdWindowOptions.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Alerting time window options. - */ +*/ export class MonitorThresholdWindowOptions { /** * Describes how long an anomalous metric must be normal before the alert recovers. - */ + */ "recoveryWindow"?: string; /** * Describes how long a metric must be anomalous before an alert triggers. - */ + */ "triggerWindow"?: string; /** @@ -35,26 +40,52 @@ export class MonitorThresholdWindowOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - recoveryWindow: { - baseName: "recovery_window", - type: "string", + "recoveryWindow": { + "baseName": "recovery_window", + "type": "string", }, - triggerWindow: { - baseName: "trigger_window", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "triggerWindow": { + "baseName": "trigger_window", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorThresholdWindowOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorThresholds.ts b/packages/datadog-api-client-v1/models/MonitorThresholds.ts index 46b3a2725852..5d9690e1b52c 100644 --- a/packages/datadog-api-client-v1/models/MonitorThresholds.ts +++ b/packages/datadog-api-client-v1/models/MonitorThresholds.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of the different monitor threshold available. - */ +*/ export class MonitorThresholds { /** * The monitor `CRITICAL` threshold. - */ + */ "critical"?: number; /** * The monitor `CRITICAL` recovery threshold. - */ + */ "criticalRecovery"?: number; /** * The monitor `OK` threshold. - */ + */ "ok"?: number; /** * The monitor UNKNOWN threshold. - */ + */ "unknown"?: number; /** * The monitor `WARNING` threshold. - */ + */ "warning"?: number; /** * The monitor `WARNING` recovery threshold. - */ + */ "warningRecovery"?: number; /** @@ -51,48 +56,74 @@ export class MonitorThresholds { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - critical: { - baseName: "critical", - type: "number", - format: "double", - }, - criticalRecovery: { - baseName: "critical_recovery", - type: "number", - format: "double", + "critical": { + "baseName": "critical", + "type": "number", + "format": "double", }, - ok: { - baseName: "ok", - type: "number", - format: "double", + "criticalRecovery": { + "baseName": "critical_recovery", + "type": "number", + "format": "double", }, - unknown: { - baseName: "unknown", - type: "number", - format: "double", + "ok": { + "baseName": "ok", + "type": "number", + "format": "double", }, - warning: { - baseName: "warning", - type: "number", - format: "double", + "unknown": { + "baseName": "unknown", + "type": "number", + "format": "double", }, - warningRecovery: { - baseName: "warning_recovery", - type: "number", - format: "double", + "warning": { + "baseName": "warning", + "type": "number", + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warningRecovery": { + "baseName": "warning_recovery", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorThresholds.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonitorType.ts b/packages/datadog-api-client-v1/models/MonitorType.ts index 29fa55f9f943..5c14f14bfeb5 100644 --- a/packages/datadog-api-client-v1/models/MonitorType.ts +++ b/packages/datadog-api-client-v1/models/MonitorType.ts @@ -4,49 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. - */ +*/ -export type MonitorType = - | typeof COMPOSITE - | typeof EVENT_ALERT - | typeof LOG_ALERT - | typeof METRIC_ALERT - | typeof PROCESS_ALERT - | typeof QUERY_ALERT - | typeof RUM_ALERT - | typeof SERVICE_CHECK - | typeof SYNTHETICS_ALERT - | typeof TRACE_ANALYTICS_ALERT - | typeof SLO_ALERT - | typeof EVENT_V2_ALERT - | typeof AUDIT_ALERT - | typeof CI_PIPELINES_ALERT - | typeof CI_TESTS_ALERT - | typeof ERROR_TRACKING_ALERT - | typeof DATABASE_MONITORING_ALERT - | typeof NETWORK_PERFORMANCE_ALERT - | typeof COST_ALERT - | UnparsedObject; -export const COMPOSITE = "composite"; -export const EVENT_ALERT = "event alert"; -export const LOG_ALERT = "log alert"; -export const METRIC_ALERT = "metric alert"; -export const PROCESS_ALERT = "process alert"; -export const QUERY_ALERT = "query alert"; -export const RUM_ALERT = "rum alert"; -export const SERVICE_CHECK = "service check"; -export const SYNTHETICS_ALERT = "synthetics alert"; -export const TRACE_ANALYTICS_ALERT = "trace-analytics alert"; -export const SLO_ALERT = "slo alert"; -export const EVENT_V2_ALERT = "event-v2 alert"; -export const AUDIT_ALERT = "audit alert"; -export const CI_PIPELINES_ALERT = "ci-pipelines alert"; -export const CI_TESTS_ALERT = "ci-tests alert"; -export const ERROR_TRACKING_ALERT = "error-tracking alert"; -export const DATABASE_MONITORING_ALERT = "database-monitoring alert"; -export const NETWORK_PERFORMANCE_ALERT = "network-performance alert"; -export const COST_ALERT = "cost alert"; +export type MonitorType = typeof COMPOSITE| typeof EVENT_ALERT| typeof LOG_ALERT| typeof METRIC_ALERT| typeof PROCESS_ALERT| typeof QUERY_ALERT| typeof RUM_ALERT| typeof SERVICE_CHECK| typeof SYNTHETICS_ALERT| typeof TRACE_ANALYTICS_ALERT| typeof SLO_ALERT| typeof EVENT_V2_ALERT| typeof AUDIT_ALERT| typeof CI_PIPELINES_ALERT| typeof CI_TESTS_ALERT| typeof ERROR_TRACKING_ALERT| typeof DATABASE_MONITORING_ALERT| typeof NETWORK_PERFORMANCE_ALERT| typeof COST_ALERT | UnparsedObject; +export const COMPOSITE = 'composite'; +export const EVENT_ALERT = 'event alert'; +export const LOG_ALERT = 'log alert'; +export const METRIC_ALERT = 'metric alert'; +export const PROCESS_ALERT = 'process alert'; +export const QUERY_ALERT = 'query alert'; +export const RUM_ALERT = 'rum alert'; +export const SERVICE_CHECK = 'service check'; +export const SYNTHETICS_ALERT = 'synthetics alert'; +export const TRACE_ANALYTICS_ALERT = 'trace-analytics alert'; +export const SLO_ALERT = 'slo alert'; +export const EVENT_V2_ALERT = 'event-v2 alert'; +export const AUDIT_ALERT = 'audit alert'; +export const CI_PIPELINES_ALERT = 'ci-pipelines alert'; +export const CI_TESTS_ALERT = 'ci-tests alert'; +export const ERROR_TRACKING_ALERT = 'error-tracking alert'; +export const DATABASE_MONITORING_ALERT = 'database-monitoring alert'; +export const NETWORK_PERFORMANCE_ALERT = 'network-performance alert'; +export const COST_ALERT = 'cost alert'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts b/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts index 98a13bca2378..80658d287e73 100644 --- a/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts @@ -9,75 +9,80 @@ import { MonitorOverallStates } from "./MonitorOverallStates"; import { MonitorState } from "./MonitorState"; import { MonitorType } from "./MonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a monitor update request. - */ +*/ export class MonitorUpdateRequest { /** * Timestamp of the monitor creation. - */ + */ "created"?: Date; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * Whether or not the monitor is deleted. (Always `null`) - */ + */ "deleted"?: Date; /** * ID of this monitor. - */ + */ "id"?: number; /** * A message to include with notifications for this monitor. - */ + */ "message"?: string; /** * Last timestamp when the monitor was edited. - */ + */ "modified"?: Date; /** * Whether or not the monitor is broken down on different groups. - */ + */ "multi"?: boolean; /** * The monitor name. - */ + */ "name"?: string; /** * List of options associated with your monitor. - */ + */ "options"?: MonitorOptions; /** * The different states your monitor can be in. - */ + */ "overallState"?: MonitorOverallStates; /** * Integer from 1 (high) to 5 (low) indicating alert severity. - */ + */ "priority"?: number; /** * The monitor query. - */ + */ "query"?: string; /** * A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) and are located in the `data.id` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) to manage write authorization for individual monitors by teams and users, in addition to roles. - */ + */ "restrictedRoles"?: Array; /** * Wrapper object with the different monitor states. - */ + */ "state"?: MonitorState; /** * Tags associated to your monitor. - */ + */ "tags"?: Array; /** * The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. - */ + */ "type"?: MonitorType; /** @@ -96,87 +101,113 @@ export class MonitorUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - creator: { - baseName: "creator", - type: "Creator", - }, - deleted: { - baseName: "deleted", - type: "Date", - format: "date-time", - }, - id: { - baseName: "id", - type: "number", - format: "int64", - }, - message: { - baseName: "message", - type: "string", - }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", - }, - multi: { - baseName: "multi", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", - }, - options: { - baseName: "options", - type: "MonitorOptions", - }, - overallState: { - baseName: "overall_state", - type: "MonitorOverallStates", - }, - priority: { - baseName: "priority", - type: "number", - format: "int64", - }, - query: { - baseName: "query", - type: "string", - }, - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", - }, - state: { - baseName: "state", - type: "MonitorState", - }, - tags: { - baseName: "tags", - type: "Array", - }, - type: { - baseName: "type", - type: "MonitorType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", + }, + "creator": { + "baseName": "creator", + "type": "Creator", + }, + "deleted": { + "baseName": "deleted", + "type": "Date", + "format": "date-time", + }, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", + }, + "message": { + "baseName": "message", + "type": "string", + }, + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", + }, + "multi": { + "baseName": "multi", + "type": "boolean", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "options": { + "baseName": "options", + "type": "MonitorOptions", + }, + "overallState": { + "baseName": "overall_state", + "type": "MonitorOverallStates", + }, + "priority": { + "baseName": "priority", + "type": "number", + "format": "int64", + }, + "query": { + "baseName": "query", + "type": "string", + }, + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", + }, + "state": { + "baseName": "state", + "type": "MonitorState", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "type": { + "baseName": "type", + "type": "MonitorType", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.ts b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.ts index 3fdb3f450af5..af1882ab7b66 100644 --- a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.ts +++ b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.ts @@ -5,47 +5,52 @@ */ import { MonthlyUsageAttributionValues } from "./MonthlyUsageAttributionValues"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Usage Summary by tag for a given organization. - */ +*/ export class MonthlyUsageAttributionBody { /** * Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. - */ + */ "month"?: Date; /** * The name of the organization. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The region of the Datadog instance that the organization belongs to. - */ + */ "region"?: string; /** * The source of the usage attribution tag configuration and the selected tags in the format `::://////`. - */ + */ "tagConfigSource"?: string; /** * Tag keys and values. - * + * * A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags * configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started). * In this scenario the API returns the total usage, not broken down by tags. - */ - "tags"?: { [key: string]: Array }; + */ + "tags"?: { [key: string]: Array; }; /** * Datetime of the most recent update to the usage values. - */ + */ "updatedAt"?: Date; /** * Fields in Usage Summary by tag(s). - */ + */ "values"?: MonthlyUsageAttributionValues; /** @@ -64,52 +69,78 @@ export class MonthlyUsageAttributionBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - month: { - baseName: "month", - type: "Date", - format: "date-time", + "month": { + "baseName": "month", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "region": { + "baseName": "region", + "type": "string", }, - tagConfigSource: { - baseName: "tag_config_source", - type: "string", + "tagConfigSource": { + "baseName": "tag_config_source", + "type": "string", }, - tags: { - baseName: "tags", - type: "{ [key: string]: Array; }", + "tags": { + "baseName": "tags", + "type": "{ [key: string]: Array; }", }, - updatedAt: { - baseName: "updated_at", - type: "Date", - format: "date-time", + "updatedAt": { + "baseName": "updated_at", + "type": "Date", + "format": "date-time", }, - values: { - baseName: "values", - type: "MonthlyUsageAttributionValues", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "MonthlyUsageAttributionValues", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyUsageAttributionBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionMetadata.ts b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionMetadata.ts index 36a50b4e4551..91daaf2f7ee5 100644 --- a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionMetadata.ts +++ b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionMetadata.ts @@ -6,19 +6,24 @@ import { MonthlyUsageAttributionPagination } from "./MonthlyUsageAttributionPagination"; import { UsageAttributionAggregatesBody } from "./UsageAttributionAggregatesBody"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class MonthlyUsageAttributionMetadata { /** * An array of available aggregates. - */ + */ "aggregates"?: Array; /** * The metadata for the current pagination. - */ + */ "pagination"?: MonthlyUsageAttributionPagination; /** @@ -37,26 +42,52 @@ export class MonthlyUsageAttributionMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregates: { - baseName: "aggregates", - type: "Array", + "aggregates": { + "baseName": "aggregates", + "type": "Array", }, - pagination: { - baseName: "pagination", - type: "MonthlyUsageAttributionPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "MonthlyUsageAttributionPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyUsageAttributionMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionPagination.ts b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionPagination.ts index a256c85394df..a40a90611fbd 100644 --- a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionPagination.ts +++ b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionPagination.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata for the current pagination. - */ +*/ export class MonthlyUsageAttributionPagination { /** * The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of the `next_record_id`. - */ + */ "nextRecordId"?: string; /** @@ -31,22 +36,48 @@ export class MonthlyUsageAttributionPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - nextRecordId: { - baseName: "next_record_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "nextRecordId": { + "baseName": "next_record_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyUsageAttributionPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionResponse.ts b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionResponse.ts index fd88bbb4cbd9..d144dc9a68f6 100644 --- a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionResponse.ts +++ b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionResponse.ts @@ -6,19 +6,24 @@ import { MonthlyUsageAttributionBody } from "./MonthlyUsageAttributionBody"; import { MonthlyUsageAttributionMetadata } from "./MonthlyUsageAttributionMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the monthly Usage Summary by tag(s). - */ +*/ export class MonthlyUsageAttributionResponse { /** * The object containing document metadata. - */ + */ "metadata"?: MonthlyUsageAttributionMetadata; /** * Get usage summary by tag(s). - */ + */ "usage"?: Array; /** @@ -37,26 +42,52 @@ export class MonthlyUsageAttributionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metadata: { - baseName: "metadata", - type: "MonthlyUsageAttributionMetadata", + "metadata": { + "baseName": "metadata", + "type": "MonthlyUsageAttributionMetadata", }, - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyUsageAttributionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.ts b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.ts index 0d3132058b45..86017a8a5c39 100644 --- a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.ts +++ b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.ts @@ -4,319 +4,156 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Supported metrics for monthly usage attribution requests. - */ +*/ -export type MonthlyUsageAttributionSupportedMetrics = - | typeof API_USAGE - | typeof API_PERCENTAGE - | typeof APM_FARGATE_USAGE - | typeof APM_FARGATE_PERCENTAGE - | typeof APPSEC_FARGATE_USAGE - | typeof APPSEC_FARGATE_PERCENTAGE - | typeof APM_HOST_USAGE - | typeof APM_HOST_PERCENTAGE - | typeof APM_USM_USAGE - | typeof APM_USM_PERCENTAGE - | typeof APPSEC_USAGE - | typeof APPSEC_PERCENTAGE - | typeof ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE - | typeof ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE - | typeof BROWSER_USAGE - | typeof BROWSER_PERCENTAGE - | typeof CI_VISIBILITY_ITR_USAGE - | typeof CI_VISIBILITY_ITR_PERCENTAGE - | typeof CLOUD_SIEM_USAGE - | typeof CLOUD_SIEM_PERCENTAGE - | typeof CODE_SECURITY_HOST_USAGE - | typeof CODE_SECURITY_HOST_PERCENTAGE - | typeof CONTAINER_EXCL_AGENT_USAGE - | typeof CONTAINER_EXCL_AGENT_PERCENTAGE - | typeof CONTAINER_USAGE - | typeof CONTAINER_PERCENTAGE - | typeof CSPM_CONTAINERS_PERCENTAGE - | typeof CSPM_CONTAINERS_USAGE - | typeof CSPM_HOSTS_PERCENTAGE - | typeof CSPM_HOSTS_USAGE - | typeof CUSTOM_TIMESERIES_USAGE - | typeof CUSTOM_TIMESERIES_PERCENTAGE - | typeof CUSTOM_INGESTED_TIMESERIES_USAGE - | typeof CUSTOM_INGESTED_TIMESERIES_PERCENTAGE - | typeof CWS_CONTAINERS_PERCENTAGE - | typeof CWS_CONTAINERS_USAGE - | typeof CWS_FARGATE_TASK_PERCENTAGE - | typeof CWS_FARGATE_TASK_USAGE - | typeof CWS_HOSTS_PERCENTAGE - | typeof CWS_HOSTS_USAGE - | typeof DATA_JOBS_MONITORING_USAGE - | typeof DATA_JOBS_MONITORING_PERCENTAGE - | typeof DATA_STREAM_MONITORING_USAGE - | typeof DATA_STREAM_MONITORING_PERCENTAGE - | typeof DBM_HOSTS_PERCENTAGE - | typeof DBM_HOSTS_USAGE - | typeof DBM_QUERIES_PERCENTAGE - | typeof DBM_QUERIES_USAGE - | typeof ERROR_TRACKING_USAGE - | typeof ERROR_TRACKING_PERCENTAGE - | typeof ESTIMATED_INDEXED_SPANS_USAGE - | typeof ESTIMATED_INDEXED_SPANS_PERCENTAGE - | typeof ESTIMATED_INGESTED_SPANS_USAGE - | typeof ESTIMATED_INGESTED_SPANS_PERCENTAGE - | typeof FARGATE_USAGE - | typeof FARGATE_PERCENTAGE - | typeof FUNCTIONS_USAGE - | typeof FUNCTIONS_PERCENTAGE - | typeof INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE - | typeof INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE - | typeof INFRA_HOST_USAGE - | typeof INFRA_HOST_PERCENTAGE - | typeof INVOCATIONS_USAGE - | typeof INVOCATIONS_PERCENTAGE - | typeof LAMBDA_TRACED_INVOCATIONS_USAGE - | typeof LAMBDA_TRACED_INVOCATIONS_PERCENTAGE - | typeof MOBILE_APP_TESTING_USAGE - | typeof MOBILE_APP_TESTING_PERCENTAGE - | typeof NDM_NETFLOW_USAGE - | typeof NDM_NETFLOW_PERCENTAGE - | typeof NPM_HOST_USAGE - | typeof NPM_HOST_PERCENTAGE - | typeof OBS_PIPELINE_BYTES_USAGE - | typeof OBS_PIPELINE_BYTES_PERCENTAGE - | typeof OBS_PIPELINES_VCPU_USAGE - | typeof OBS_PIPELINES_VCPU_PERCENTAGE - | typeof ONLINE_ARCHIVE_USAGE - | typeof ONLINE_ARCHIVE_PERCENTAGE - | typeof PROFILED_CONTAINER_USAGE - | typeof PROFILED_CONTAINER_PERCENTAGE - | typeof PROFILED_FARGATE_USAGE - | typeof PROFILED_FARGATE_PERCENTAGE - | typeof PROFILED_HOST_USAGE - | typeof PROFILED_HOST_PERCENTAGE - | typeof SERVERLESS_APPS_USAGE - | typeof SERVERLESS_APPS_PERCENTAGE - | typeof SNMP_USAGE - | typeof SNMP_PERCENTAGE - | typeof UNIVERSAL_SERVICE_MONITORING_USAGE - | typeof UNIVERSAL_SERVICE_MONITORING_PERCENTAGE - | typeof VULN_MANAGEMENT_HOSTS_USAGE - | typeof VULN_MANAGEMENT_HOSTS_PERCENTAGE - | typeof SDS_SCANNED_BYTES_USAGE - | typeof SDS_SCANNED_BYTES_PERCENTAGE - | typeof CI_TEST_INDEXED_SPANS_USAGE - | typeof CI_TEST_INDEXED_SPANS_PERCENTAGE - | typeof INGESTED_LOGS_BYTES_USAGE - | typeof INGESTED_LOGS_BYTES_PERCENTAGE - | typeof CI_PIPELINE_INDEXED_SPANS_USAGE - | typeof CI_PIPELINE_INDEXED_SPANS_PERCENTAGE - | typeof INDEXED_SPANS_USAGE - | typeof INDEXED_SPANS_PERCENTAGE - | typeof CUSTOM_EVENT_USAGE - | typeof CUSTOM_EVENT_PERCENTAGE - | typeof LOGS_INDEXED_CUSTOM_RETENTION_USAGE - | typeof LOGS_INDEXED_CUSTOM_RETENTION_PERCENTAGE - | typeof LOGS_INDEXED_360DAY_USAGE - | typeof LOGS_INDEXED_360DAY_PERCENTAGE - | typeof LOGS_INDEXED_180DAY_USAGE - | typeof LOGS_INDEXED_180DAY_PERCENTAGE - | typeof LOGS_INDEXED_90DAY_USAGE - | typeof LOGS_INDEXED_90DAY_PERCENTAGE - | typeof LOGS_INDEXED_60DAY_USAGE - | typeof LOGS_INDEXED_60DAY_PERCENTAGE - | typeof LOGS_INDEXED_45DAY_USAGE - | typeof LOGS_INDEXED_45DAY_PERCENTAGE - | typeof LOGS_INDEXED_30DAY_USAGE - | typeof LOGS_INDEXED_30DAY_PERCENTAGE - | typeof LOGS_INDEXED_15DAY_USAGE - | typeof LOGS_INDEXED_15DAY_PERCENTAGE - | typeof LOGS_INDEXED_7DAY_USAGE - | typeof LOGS_INDEXED_7DAY_PERCENTAGE - | typeof LOGS_INDEXED_3DAY_USAGE - | typeof LOGS_INDEXED_3DAY_PERCENTAGE - | typeof LOGS_INDEXED_1DAY_USAGE - | typeof LOGS_INDEXED_1DAY_PERCENTAGE - | typeof RUM_REPLAY_SESSIONS_USAGE - | typeof RUM_REPLAY_SESSIONS_PERCENTAGE - | typeof RUM_BROWSER_MOBILE_SESSIONS_USAGE - | typeof RUM_BROWSER_MOBILE_SESSIONS_PERCENTAGE - | typeof INGESTED_SPANS_BYTES_USAGE - | typeof INGESTED_SPANS_BYTES_PERCENTAGE - | typeof SIEM_ANALYZED_LOGS_ADD_ON_USAGE - | typeof SIEM_ANALYZED_LOGS_ADD_ON_PERCENTAGE - | typeof SIEM_INGESTED_BYTES_USAGE - | typeof SIEM_INGESTED_BYTES_PERCENTAGE - | typeof WORKFLOW_EXECUTIONS_USAGE - | typeof WORKFLOW_EXECUTIONS_PERCENTAGE - | typeof SCA_FARGATE_USAGE - | typeof SCA_FARGATE_PERCENTAGE - | typeof ALL - | UnparsedObject; -export const API_USAGE = "api_usage"; -export const API_PERCENTAGE = "api_percentage"; -export const APM_FARGATE_USAGE = "apm_fargate_usage"; -export const APM_FARGATE_PERCENTAGE = "apm_fargate_percentage"; -export const APPSEC_FARGATE_USAGE = "appsec_fargate_usage"; -export const APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage"; -export const APM_HOST_USAGE = "apm_host_usage"; -export const APM_HOST_PERCENTAGE = "apm_host_percentage"; -export const APM_USM_USAGE = "apm_usm_usage"; -export const APM_USM_PERCENTAGE = "apm_usm_percentage"; -export const APPSEC_USAGE = "appsec_usage"; -export const APPSEC_PERCENTAGE = "appsec_percentage"; -export const ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = - "asm_serverless_traced_invocations_usage"; -export const ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = - "asm_serverless_traced_invocations_percentage"; -export const BROWSER_USAGE = "browser_usage"; -export const BROWSER_PERCENTAGE = "browser_percentage"; -export const CI_VISIBILITY_ITR_USAGE = "ci_visibility_itr_usage"; -export const CI_VISIBILITY_ITR_PERCENTAGE = "ci_visibility_itr_percentage"; -export const CLOUD_SIEM_USAGE = "cloud_siem_usage"; -export const CLOUD_SIEM_PERCENTAGE = "cloud_siem_percentage"; -export const CODE_SECURITY_HOST_USAGE = "code_security_host_usage"; -export const CODE_SECURITY_HOST_PERCENTAGE = "code_security_host_percentage"; -export const CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage"; -export const CONTAINER_EXCL_AGENT_PERCENTAGE = - "container_excl_agent_percentage"; -export const CONTAINER_USAGE = "container_usage"; -export const CONTAINER_PERCENTAGE = "container_percentage"; -export const CSPM_CONTAINERS_PERCENTAGE = "cspm_containers_percentage"; -export const CSPM_CONTAINERS_USAGE = "cspm_containers_usage"; -export const CSPM_HOSTS_PERCENTAGE = "cspm_hosts_percentage"; -export const CSPM_HOSTS_USAGE = "cspm_hosts_usage"; -export const CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage"; -export const CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage"; -export const CUSTOM_INGESTED_TIMESERIES_USAGE = - "custom_ingested_timeseries_usage"; -export const CUSTOM_INGESTED_TIMESERIES_PERCENTAGE = - "custom_ingested_timeseries_percentage"; -export const CWS_CONTAINERS_PERCENTAGE = "cws_containers_percentage"; -export const CWS_CONTAINERS_USAGE = "cws_containers_usage"; -export const CWS_FARGATE_TASK_PERCENTAGE = "cws_fargate_task_percentage"; -export const CWS_FARGATE_TASK_USAGE = "cws_fargate_task_usage"; -export const CWS_HOSTS_PERCENTAGE = "cws_hosts_percentage"; -export const CWS_HOSTS_USAGE = "cws_hosts_usage"; -export const DATA_JOBS_MONITORING_USAGE = "data_jobs_monitoring_usage"; -export const DATA_JOBS_MONITORING_PERCENTAGE = - "data_jobs_monitoring_percentage"; -export const DATA_STREAM_MONITORING_USAGE = "data_stream_monitoring_usage"; -export const DATA_STREAM_MONITORING_PERCENTAGE = - "data_stream_monitoring_percentage"; -export const DBM_HOSTS_PERCENTAGE = "dbm_hosts_percentage"; -export const DBM_HOSTS_USAGE = "dbm_hosts_usage"; -export const DBM_QUERIES_PERCENTAGE = "dbm_queries_percentage"; -export const DBM_QUERIES_USAGE = "dbm_queries_usage"; -export const ERROR_TRACKING_USAGE = "error_tracking_usage"; -export const ERROR_TRACKING_PERCENTAGE = "error_tracking_percentage"; -export const ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage"; -export const ESTIMATED_INDEXED_SPANS_PERCENTAGE = - "estimated_indexed_spans_percentage"; -export const ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage"; -export const ESTIMATED_INGESTED_SPANS_PERCENTAGE = - "estimated_ingested_spans_percentage"; -export const FARGATE_USAGE = "fargate_usage"; -export const FARGATE_PERCENTAGE = "fargate_percentage"; -export const FUNCTIONS_USAGE = "functions_usage"; -export const FUNCTIONS_PERCENTAGE = "functions_percentage"; -export const INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = - "incident_management_monthly_active_users_usage"; -export const INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE = - "incident_management_monthly_active_users_percentage"; -export const INFRA_HOST_USAGE = "infra_host_usage"; -export const INFRA_HOST_PERCENTAGE = "infra_host_percentage"; -export const INVOCATIONS_USAGE = "invocations_usage"; -export const INVOCATIONS_PERCENTAGE = "invocations_percentage"; -export const LAMBDA_TRACED_INVOCATIONS_USAGE = - "lambda_traced_invocations_usage"; -export const LAMBDA_TRACED_INVOCATIONS_PERCENTAGE = - "lambda_traced_invocations_percentage"; -export const MOBILE_APP_TESTING_USAGE = "mobile_app_testing_percentage"; -export const MOBILE_APP_TESTING_PERCENTAGE = "mobile_app_testing_usage"; -export const NDM_NETFLOW_USAGE = "ndm_netflow_usage"; -export const NDM_NETFLOW_PERCENTAGE = "ndm_netflow_percentage"; -export const NPM_HOST_USAGE = "npm_host_usage"; -export const NPM_HOST_PERCENTAGE = "npm_host_percentage"; -export const OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage"; -export const OBS_PIPELINE_BYTES_PERCENTAGE = "obs_pipeline_bytes_percentage"; -export const OBS_PIPELINES_VCPU_USAGE = "obs_pipelines_vcpu_usage"; -export const OBS_PIPELINES_VCPU_PERCENTAGE = "obs_pipelines_vcpu_percentage"; -export const ONLINE_ARCHIVE_USAGE = "online_archive_usage"; -export const ONLINE_ARCHIVE_PERCENTAGE = "online_archive_percentage"; -export const PROFILED_CONTAINER_USAGE = "profiled_container_usage"; -export const PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage"; -export const PROFILED_FARGATE_USAGE = "profiled_fargate_usage"; -export const PROFILED_FARGATE_PERCENTAGE = "profiled_fargate_percentage"; -export const PROFILED_HOST_USAGE = "profiled_host_usage"; -export const PROFILED_HOST_PERCENTAGE = "profiled_host_percentage"; -export const SERVERLESS_APPS_USAGE = "serverless_apps_usage"; -export const SERVERLESS_APPS_PERCENTAGE = "serverless_apps_percentage"; -export const SNMP_USAGE = "snmp_usage"; -export const SNMP_PERCENTAGE = "snmp_percentage"; -export const UNIVERSAL_SERVICE_MONITORING_USAGE = - "universal_service_monitoring_usage"; -export const UNIVERSAL_SERVICE_MONITORING_PERCENTAGE = - "universal_service_monitoring_percentage"; -export const VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage"; -export const VULN_MANAGEMENT_HOSTS_PERCENTAGE = - "vuln_management_hosts_percentage"; -export const SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage"; -export const SDS_SCANNED_BYTES_PERCENTAGE = "sds_scanned_bytes_percentage"; -export const CI_TEST_INDEXED_SPANS_USAGE = "ci_test_indexed_spans_usage"; -export const CI_TEST_INDEXED_SPANS_PERCENTAGE = - "ci_test_indexed_spans_percentage"; -export const INGESTED_LOGS_BYTES_USAGE = "ingested_logs_bytes_usage"; -export const INGESTED_LOGS_BYTES_PERCENTAGE = "ingested_logs_bytes_percentage"; -export const CI_PIPELINE_INDEXED_SPANS_USAGE = - "ci_pipeline_indexed_spans_usage"; -export const CI_PIPELINE_INDEXED_SPANS_PERCENTAGE = - "ci_pipeline_indexed_spans_percentage"; -export const INDEXED_SPANS_USAGE = "indexed_spans_usage"; -export const INDEXED_SPANS_PERCENTAGE = "indexed_spans_percentage"; -export const CUSTOM_EVENT_USAGE = "custom_event_usage"; -export const CUSTOM_EVENT_PERCENTAGE = "custom_event_percentage"; -export const LOGS_INDEXED_CUSTOM_RETENTION_USAGE = - "logs_indexed_custom_retention_usage"; -export const LOGS_INDEXED_CUSTOM_RETENTION_PERCENTAGE = - "logs_indexed_custom_retention_percentage"; -export const LOGS_INDEXED_360DAY_USAGE = "logs_indexed_360day_usage"; -export const LOGS_INDEXED_360DAY_PERCENTAGE = "logs_indexed_360day_percentage"; -export const LOGS_INDEXED_180DAY_USAGE = "logs_indexed_180day_usage"; -export const LOGS_INDEXED_180DAY_PERCENTAGE = "logs_indexed_180day_percentage"; -export const LOGS_INDEXED_90DAY_USAGE = "logs_indexed_90day_usage"; -export const LOGS_INDEXED_90DAY_PERCENTAGE = "logs_indexed_90day_percentage"; -export const LOGS_INDEXED_60DAY_USAGE = "logs_indexed_60day_usage"; -export const LOGS_INDEXED_60DAY_PERCENTAGE = "logs_indexed_60day_percentage"; -export const LOGS_INDEXED_45DAY_USAGE = "logs_indexed_45day_usage"; -export const LOGS_INDEXED_45DAY_PERCENTAGE = "logs_indexed_45day_percentage"; -export const LOGS_INDEXED_30DAY_USAGE = "logs_indexed_30day_usage"; -export const LOGS_INDEXED_30DAY_PERCENTAGE = "logs_indexed_30day_percentage"; -export const LOGS_INDEXED_15DAY_USAGE = "logs_indexed_15day_usage"; -export const LOGS_INDEXED_15DAY_PERCENTAGE = "logs_indexed_15day_percentage"; -export const LOGS_INDEXED_7DAY_USAGE = "logs_indexed_7day_usage"; -export const LOGS_INDEXED_7DAY_PERCENTAGE = "logs_indexed_7day_percentage"; -export const LOGS_INDEXED_3DAY_USAGE = "logs_indexed_3day_usage"; -export const LOGS_INDEXED_3DAY_PERCENTAGE = "logs_indexed_3day_percentage"; -export const LOGS_INDEXED_1DAY_USAGE = "logs_indexed_1day_usage"; -export const LOGS_INDEXED_1DAY_PERCENTAGE = "logs_indexed_1day_percentage"; -export const RUM_REPLAY_SESSIONS_USAGE = "rum_replay_sessions_usage"; -export const RUM_REPLAY_SESSIONS_PERCENTAGE = "rum_replay_sessions_percentage"; -export const RUM_BROWSER_MOBILE_SESSIONS_USAGE = - "rum_browser_mobile_sessions_usage"; -export const RUM_BROWSER_MOBILE_SESSIONS_PERCENTAGE = - "rum_browser_mobile_sessions_percentage"; -export const INGESTED_SPANS_BYTES_USAGE = "ingested_spans_bytes_usage"; -export const INGESTED_SPANS_BYTES_PERCENTAGE = - "ingested_spans_bytes_percentage"; -export const SIEM_ANALYZED_LOGS_ADD_ON_USAGE = - "siem_analyzed_logs_add_on_usage"; -export const SIEM_ANALYZED_LOGS_ADD_ON_PERCENTAGE = - "siem_analyzed_logs_add_on_percentage"; -export const SIEM_INGESTED_BYTES_USAGE = "siem_ingested_bytes_usage"; -export const SIEM_INGESTED_BYTES_PERCENTAGE = "siem_ingested_bytes_percentage"; -export const WORKFLOW_EXECUTIONS_USAGE = "workflow_executions_usage"; -export const WORKFLOW_EXECUTIONS_PERCENTAGE = "workflow_executions_percentage"; -export const SCA_FARGATE_USAGE = "sca_fargate_usage"; -export const SCA_FARGATE_PERCENTAGE = "sca_fargate_percentage"; -export const ALL = "*"; +export type MonthlyUsageAttributionSupportedMetrics = typeof API_USAGE| typeof API_PERCENTAGE| typeof APM_FARGATE_USAGE| typeof APM_FARGATE_PERCENTAGE| typeof APPSEC_FARGATE_USAGE| typeof APPSEC_FARGATE_PERCENTAGE| typeof APM_HOST_USAGE| typeof APM_HOST_PERCENTAGE| typeof APM_USM_USAGE| typeof APM_USM_PERCENTAGE| typeof APPSEC_USAGE| typeof APPSEC_PERCENTAGE| typeof ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE| typeof ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE| typeof BROWSER_USAGE| typeof BROWSER_PERCENTAGE| typeof CI_VISIBILITY_ITR_USAGE| typeof CI_VISIBILITY_ITR_PERCENTAGE| typeof CLOUD_SIEM_USAGE| typeof CLOUD_SIEM_PERCENTAGE| typeof CODE_SECURITY_HOST_USAGE| typeof CODE_SECURITY_HOST_PERCENTAGE| typeof CONTAINER_EXCL_AGENT_USAGE| typeof CONTAINER_EXCL_AGENT_PERCENTAGE| typeof CONTAINER_USAGE| typeof CONTAINER_PERCENTAGE| typeof CSPM_CONTAINERS_PERCENTAGE| typeof CSPM_CONTAINERS_USAGE| typeof CSPM_HOSTS_PERCENTAGE| typeof CSPM_HOSTS_USAGE| typeof CUSTOM_TIMESERIES_USAGE| typeof CUSTOM_TIMESERIES_PERCENTAGE| typeof CUSTOM_INGESTED_TIMESERIES_USAGE| typeof CUSTOM_INGESTED_TIMESERIES_PERCENTAGE| typeof CWS_CONTAINERS_PERCENTAGE| typeof CWS_CONTAINERS_USAGE| typeof CWS_FARGATE_TASK_PERCENTAGE| typeof CWS_FARGATE_TASK_USAGE| typeof CWS_HOSTS_PERCENTAGE| typeof CWS_HOSTS_USAGE| typeof DATA_JOBS_MONITORING_USAGE| typeof DATA_JOBS_MONITORING_PERCENTAGE| typeof DATA_STREAM_MONITORING_USAGE| typeof DATA_STREAM_MONITORING_PERCENTAGE| typeof DBM_HOSTS_PERCENTAGE| typeof DBM_HOSTS_USAGE| typeof DBM_QUERIES_PERCENTAGE| typeof DBM_QUERIES_USAGE| typeof ERROR_TRACKING_USAGE| typeof ERROR_TRACKING_PERCENTAGE| typeof ESTIMATED_INDEXED_SPANS_USAGE| typeof ESTIMATED_INDEXED_SPANS_PERCENTAGE| typeof ESTIMATED_INGESTED_SPANS_USAGE| typeof ESTIMATED_INGESTED_SPANS_PERCENTAGE| typeof FARGATE_USAGE| typeof FARGATE_PERCENTAGE| typeof FUNCTIONS_USAGE| typeof FUNCTIONS_PERCENTAGE| typeof INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE| typeof INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE| typeof INFRA_HOST_USAGE| typeof INFRA_HOST_PERCENTAGE| typeof INVOCATIONS_USAGE| typeof INVOCATIONS_PERCENTAGE| typeof LAMBDA_TRACED_INVOCATIONS_USAGE| typeof LAMBDA_TRACED_INVOCATIONS_PERCENTAGE| typeof MOBILE_APP_TESTING_USAGE| typeof MOBILE_APP_TESTING_PERCENTAGE| typeof NDM_NETFLOW_USAGE| typeof NDM_NETFLOW_PERCENTAGE| typeof NPM_HOST_USAGE| typeof NPM_HOST_PERCENTAGE| typeof OBS_PIPELINE_BYTES_USAGE| typeof OBS_PIPELINE_BYTES_PERCENTAGE| typeof OBS_PIPELINES_VCPU_USAGE| typeof OBS_PIPELINES_VCPU_PERCENTAGE| typeof ONLINE_ARCHIVE_USAGE| typeof ONLINE_ARCHIVE_PERCENTAGE| typeof PROFILED_CONTAINER_USAGE| typeof PROFILED_CONTAINER_PERCENTAGE| typeof PROFILED_FARGATE_USAGE| typeof PROFILED_FARGATE_PERCENTAGE| typeof PROFILED_HOST_USAGE| typeof PROFILED_HOST_PERCENTAGE| typeof SERVERLESS_APPS_USAGE| typeof SERVERLESS_APPS_PERCENTAGE| typeof SNMP_USAGE| typeof SNMP_PERCENTAGE| typeof UNIVERSAL_SERVICE_MONITORING_USAGE| typeof UNIVERSAL_SERVICE_MONITORING_PERCENTAGE| typeof VULN_MANAGEMENT_HOSTS_USAGE| typeof VULN_MANAGEMENT_HOSTS_PERCENTAGE| typeof SDS_SCANNED_BYTES_USAGE| typeof SDS_SCANNED_BYTES_PERCENTAGE| typeof CI_TEST_INDEXED_SPANS_USAGE| typeof CI_TEST_INDEXED_SPANS_PERCENTAGE| typeof INGESTED_LOGS_BYTES_USAGE| typeof INGESTED_LOGS_BYTES_PERCENTAGE| typeof CI_PIPELINE_INDEXED_SPANS_USAGE| typeof CI_PIPELINE_INDEXED_SPANS_PERCENTAGE| typeof INDEXED_SPANS_USAGE| typeof INDEXED_SPANS_PERCENTAGE| typeof CUSTOM_EVENT_USAGE| typeof CUSTOM_EVENT_PERCENTAGE| typeof LOGS_INDEXED_CUSTOM_RETENTION_USAGE| typeof LOGS_INDEXED_CUSTOM_RETENTION_PERCENTAGE| typeof LOGS_INDEXED_360DAY_USAGE| typeof LOGS_INDEXED_360DAY_PERCENTAGE| typeof LOGS_INDEXED_180DAY_USAGE| typeof LOGS_INDEXED_180DAY_PERCENTAGE| typeof LOGS_INDEXED_90DAY_USAGE| typeof LOGS_INDEXED_90DAY_PERCENTAGE| typeof LOGS_INDEXED_60DAY_USAGE| typeof LOGS_INDEXED_60DAY_PERCENTAGE| typeof LOGS_INDEXED_45DAY_USAGE| typeof LOGS_INDEXED_45DAY_PERCENTAGE| typeof LOGS_INDEXED_30DAY_USAGE| typeof LOGS_INDEXED_30DAY_PERCENTAGE| typeof LOGS_INDEXED_15DAY_USAGE| typeof LOGS_INDEXED_15DAY_PERCENTAGE| typeof LOGS_INDEXED_7DAY_USAGE| typeof LOGS_INDEXED_7DAY_PERCENTAGE| typeof LOGS_INDEXED_3DAY_USAGE| typeof LOGS_INDEXED_3DAY_PERCENTAGE| typeof LOGS_INDEXED_1DAY_USAGE| typeof LOGS_INDEXED_1DAY_PERCENTAGE| typeof RUM_REPLAY_SESSIONS_USAGE| typeof RUM_REPLAY_SESSIONS_PERCENTAGE| typeof RUM_BROWSER_MOBILE_SESSIONS_USAGE| typeof RUM_BROWSER_MOBILE_SESSIONS_PERCENTAGE| typeof INGESTED_SPANS_BYTES_USAGE| typeof INGESTED_SPANS_BYTES_PERCENTAGE| typeof SIEM_ANALYZED_LOGS_ADD_ON_USAGE| typeof SIEM_ANALYZED_LOGS_ADD_ON_PERCENTAGE| typeof SIEM_INGESTED_BYTES_USAGE| typeof SIEM_INGESTED_BYTES_PERCENTAGE| typeof WORKFLOW_EXECUTIONS_USAGE| typeof WORKFLOW_EXECUTIONS_PERCENTAGE| typeof SCA_FARGATE_USAGE| typeof SCA_FARGATE_PERCENTAGE| typeof ALL | UnparsedObject; +export const API_USAGE = 'api_usage'; +export const API_PERCENTAGE = 'api_percentage'; +export const APM_FARGATE_USAGE = 'apm_fargate_usage'; +export const APM_FARGATE_PERCENTAGE = 'apm_fargate_percentage'; +export const APPSEC_FARGATE_USAGE = 'appsec_fargate_usage'; +export const APPSEC_FARGATE_PERCENTAGE = 'appsec_fargate_percentage'; +export const APM_HOST_USAGE = 'apm_host_usage'; +export const APM_HOST_PERCENTAGE = 'apm_host_percentage'; +export const APM_USM_USAGE = 'apm_usm_usage'; +export const APM_USM_PERCENTAGE = 'apm_usm_percentage'; +export const APPSEC_USAGE = 'appsec_usage'; +export const APPSEC_PERCENTAGE = 'appsec_percentage'; +export const ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = 'asm_serverless_traced_invocations_usage'; +export const ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = 'asm_serverless_traced_invocations_percentage'; +export const BROWSER_USAGE = 'browser_usage'; +export const BROWSER_PERCENTAGE = 'browser_percentage'; +export const CI_VISIBILITY_ITR_USAGE = 'ci_visibility_itr_usage'; +export const CI_VISIBILITY_ITR_PERCENTAGE = 'ci_visibility_itr_percentage'; +export const CLOUD_SIEM_USAGE = 'cloud_siem_usage'; +export const CLOUD_SIEM_PERCENTAGE = 'cloud_siem_percentage'; +export const CODE_SECURITY_HOST_USAGE = 'code_security_host_usage'; +export const CODE_SECURITY_HOST_PERCENTAGE = 'code_security_host_percentage'; +export const CONTAINER_EXCL_AGENT_USAGE = 'container_excl_agent_usage'; +export const CONTAINER_EXCL_AGENT_PERCENTAGE = 'container_excl_agent_percentage'; +export const CONTAINER_USAGE = 'container_usage'; +export const CONTAINER_PERCENTAGE = 'container_percentage'; +export const CSPM_CONTAINERS_PERCENTAGE = 'cspm_containers_percentage'; +export const CSPM_CONTAINERS_USAGE = 'cspm_containers_usage'; +export const CSPM_HOSTS_PERCENTAGE = 'cspm_hosts_percentage'; +export const CSPM_HOSTS_USAGE = 'cspm_hosts_usage'; +export const CUSTOM_TIMESERIES_USAGE = 'custom_timeseries_usage'; +export const CUSTOM_TIMESERIES_PERCENTAGE = 'custom_timeseries_percentage'; +export const CUSTOM_INGESTED_TIMESERIES_USAGE = 'custom_ingested_timeseries_usage'; +export const CUSTOM_INGESTED_TIMESERIES_PERCENTAGE = 'custom_ingested_timeseries_percentage'; +export const CWS_CONTAINERS_PERCENTAGE = 'cws_containers_percentage'; +export const CWS_CONTAINERS_USAGE = 'cws_containers_usage'; +export const CWS_FARGATE_TASK_PERCENTAGE = 'cws_fargate_task_percentage'; +export const CWS_FARGATE_TASK_USAGE = 'cws_fargate_task_usage'; +export const CWS_HOSTS_PERCENTAGE = 'cws_hosts_percentage'; +export const CWS_HOSTS_USAGE = 'cws_hosts_usage'; +export const DATA_JOBS_MONITORING_USAGE = 'data_jobs_monitoring_usage'; +export const DATA_JOBS_MONITORING_PERCENTAGE = 'data_jobs_monitoring_percentage'; +export const DATA_STREAM_MONITORING_USAGE = 'data_stream_monitoring_usage'; +export const DATA_STREAM_MONITORING_PERCENTAGE = 'data_stream_monitoring_percentage'; +export const DBM_HOSTS_PERCENTAGE = 'dbm_hosts_percentage'; +export const DBM_HOSTS_USAGE = 'dbm_hosts_usage'; +export const DBM_QUERIES_PERCENTAGE = 'dbm_queries_percentage'; +export const DBM_QUERIES_USAGE = 'dbm_queries_usage'; +export const ERROR_TRACKING_USAGE = 'error_tracking_usage'; +export const ERROR_TRACKING_PERCENTAGE = 'error_tracking_percentage'; +export const ESTIMATED_INDEXED_SPANS_USAGE = 'estimated_indexed_spans_usage'; +export const ESTIMATED_INDEXED_SPANS_PERCENTAGE = 'estimated_indexed_spans_percentage'; +export const ESTIMATED_INGESTED_SPANS_USAGE = 'estimated_ingested_spans_usage'; +export const ESTIMATED_INGESTED_SPANS_PERCENTAGE = 'estimated_ingested_spans_percentage'; +export const FARGATE_USAGE = 'fargate_usage'; +export const FARGATE_PERCENTAGE = 'fargate_percentage'; +export const FUNCTIONS_USAGE = 'functions_usage'; +export const FUNCTIONS_PERCENTAGE = 'functions_percentage'; +export const INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = 'incident_management_monthly_active_users_usage'; +export const INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE = 'incident_management_monthly_active_users_percentage'; +export const INFRA_HOST_USAGE = 'infra_host_usage'; +export const INFRA_HOST_PERCENTAGE = 'infra_host_percentage'; +export const INVOCATIONS_USAGE = 'invocations_usage'; +export const INVOCATIONS_PERCENTAGE = 'invocations_percentage'; +export const LAMBDA_TRACED_INVOCATIONS_USAGE = 'lambda_traced_invocations_usage'; +export const LAMBDA_TRACED_INVOCATIONS_PERCENTAGE = 'lambda_traced_invocations_percentage'; +export const MOBILE_APP_TESTING_USAGE = 'mobile_app_testing_percentage'; +export const MOBILE_APP_TESTING_PERCENTAGE = 'mobile_app_testing_usage'; +export const NDM_NETFLOW_USAGE = 'ndm_netflow_usage'; +export const NDM_NETFLOW_PERCENTAGE = 'ndm_netflow_percentage'; +export const NPM_HOST_USAGE = 'npm_host_usage'; +export const NPM_HOST_PERCENTAGE = 'npm_host_percentage'; +export const OBS_PIPELINE_BYTES_USAGE = 'obs_pipeline_bytes_usage'; +export const OBS_PIPELINE_BYTES_PERCENTAGE = 'obs_pipeline_bytes_percentage'; +export const OBS_PIPELINES_VCPU_USAGE = 'obs_pipelines_vcpu_usage'; +export const OBS_PIPELINES_VCPU_PERCENTAGE = 'obs_pipelines_vcpu_percentage'; +export const ONLINE_ARCHIVE_USAGE = 'online_archive_usage'; +export const ONLINE_ARCHIVE_PERCENTAGE = 'online_archive_percentage'; +export const PROFILED_CONTAINER_USAGE = 'profiled_container_usage'; +export const PROFILED_CONTAINER_PERCENTAGE = 'profiled_container_percentage'; +export const PROFILED_FARGATE_USAGE = 'profiled_fargate_usage'; +export const PROFILED_FARGATE_PERCENTAGE = 'profiled_fargate_percentage'; +export const PROFILED_HOST_USAGE = 'profiled_host_usage'; +export const PROFILED_HOST_PERCENTAGE = 'profiled_host_percentage'; +export const SERVERLESS_APPS_USAGE = 'serverless_apps_usage'; +export const SERVERLESS_APPS_PERCENTAGE = 'serverless_apps_percentage'; +export const SNMP_USAGE = 'snmp_usage'; +export const SNMP_PERCENTAGE = 'snmp_percentage'; +export const UNIVERSAL_SERVICE_MONITORING_USAGE = 'universal_service_monitoring_usage'; +export const UNIVERSAL_SERVICE_MONITORING_PERCENTAGE = 'universal_service_monitoring_percentage'; +export const VULN_MANAGEMENT_HOSTS_USAGE = 'vuln_management_hosts_usage'; +export const VULN_MANAGEMENT_HOSTS_PERCENTAGE = 'vuln_management_hosts_percentage'; +export const SDS_SCANNED_BYTES_USAGE = 'sds_scanned_bytes_usage'; +export const SDS_SCANNED_BYTES_PERCENTAGE = 'sds_scanned_bytes_percentage'; +export const CI_TEST_INDEXED_SPANS_USAGE = 'ci_test_indexed_spans_usage'; +export const CI_TEST_INDEXED_SPANS_PERCENTAGE = 'ci_test_indexed_spans_percentage'; +export const INGESTED_LOGS_BYTES_USAGE = 'ingested_logs_bytes_usage'; +export const INGESTED_LOGS_BYTES_PERCENTAGE = 'ingested_logs_bytes_percentage'; +export const CI_PIPELINE_INDEXED_SPANS_USAGE = 'ci_pipeline_indexed_spans_usage'; +export const CI_PIPELINE_INDEXED_SPANS_PERCENTAGE = 'ci_pipeline_indexed_spans_percentage'; +export const INDEXED_SPANS_USAGE = 'indexed_spans_usage'; +export const INDEXED_SPANS_PERCENTAGE = 'indexed_spans_percentage'; +export const CUSTOM_EVENT_USAGE = 'custom_event_usage'; +export const CUSTOM_EVENT_PERCENTAGE = 'custom_event_percentage'; +export const LOGS_INDEXED_CUSTOM_RETENTION_USAGE = 'logs_indexed_custom_retention_usage'; +export const LOGS_INDEXED_CUSTOM_RETENTION_PERCENTAGE = 'logs_indexed_custom_retention_percentage'; +export const LOGS_INDEXED_360DAY_USAGE = 'logs_indexed_360day_usage'; +export const LOGS_INDEXED_360DAY_PERCENTAGE = 'logs_indexed_360day_percentage'; +export const LOGS_INDEXED_180DAY_USAGE = 'logs_indexed_180day_usage'; +export const LOGS_INDEXED_180DAY_PERCENTAGE = 'logs_indexed_180day_percentage'; +export const LOGS_INDEXED_90DAY_USAGE = 'logs_indexed_90day_usage'; +export const LOGS_INDEXED_90DAY_PERCENTAGE = 'logs_indexed_90day_percentage'; +export const LOGS_INDEXED_60DAY_USAGE = 'logs_indexed_60day_usage'; +export const LOGS_INDEXED_60DAY_PERCENTAGE = 'logs_indexed_60day_percentage'; +export const LOGS_INDEXED_45DAY_USAGE = 'logs_indexed_45day_usage'; +export const LOGS_INDEXED_45DAY_PERCENTAGE = 'logs_indexed_45day_percentage'; +export const LOGS_INDEXED_30DAY_USAGE = 'logs_indexed_30day_usage'; +export const LOGS_INDEXED_30DAY_PERCENTAGE = 'logs_indexed_30day_percentage'; +export const LOGS_INDEXED_15DAY_USAGE = 'logs_indexed_15day_usage'; +export const LOGS_INDEXED_15DAY_PERCENTAGE = 'logs_indexed_15day_percentage'; +export const LOGS_INDEXED_7DAY_USAGE = 'logs_indexed_7day_usage'; +export const LOGS_INDEXED_7DAY_PERCENTAGE = 'logs_indexed_7day_percentage'; +export const LOGS_INDEXED_3DAY_USAGE = 'logs_indexed_3day_usage'; +export const LOGS_INDEXED_3DAY_PERCENTAGE = 'logs_indexed_3day_percentage'; +export const LOGS_INDEXED_1DAY_USAGE = 'logs_indexed_1day_usage'; +export const LOGS_INDEXED_1DAY_PERCENTAGE = 'logs_indexed_1day_percentage'; +export const RUM_REPLAY_SESSIONS_USAGE = 'rum_replay_sessions_usage'; +export const RUM_REPLAY_SESSIONS_PERCENTAGE = 'rum_replay_sessions_percentage'; +export const RUM_BROWSER_MOBILE_SESSIONS_USAGE = 'rum_browser_mobile_sessions_usage'; +export const RUM_BROWSER_MOBILE_SESSIONS_PERCENTAGE = 'rum_browser_mobile_sessions_percentage'; +export const INGESTED_SPANS_BYTES_USAGE = 'ingested_spans_bytes_usage'; +export const INGESTED_SPANS_BYTES_PERCENTAGE = 'ingested_spans_bytes_percentage'; +export const SIEM_ANALYZED_LOGS_ADD_ON_USAGE = 'siem_analyzed_logs_add_on_usage'; +export const SIEM_ANALYZED_LOGS_ADD_ON_PERCENTAGE = 'siem_analyzed_logs_add_on_percentage'; +export const SIEM_INGESTED_BYTES_USAGE = 'siem_ingested_bytes_usage'; +export const SIEM_INGESTED_BYTES_PERCENTAGE = 'siem_ingested_bytes_percentage'; +export const WORKFLOW_EXECUTIONS_USAGE = 'workflow_executions_usage'; +export const WORKFLOW_EXECUTIONS_PERCENTAGE = 'workflow_executions_percentage'; +export const SCA_FARGATE_USAGE = 'sca_fargate_usage'; +export const SCA_FARGATE_PERCENTAGE = 'sca_fargate_percentage'; +export const ALL = '*'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.ts b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.ts index 3bf5dcbc21a4..ad38a90cd9d1 100644 --- a/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.ts +++ b/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.ts @@ -4,563 +4,568 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Fields in Usage Summary by tag(s). - */ +*/ export class MonthlyUsageAttributionValues { /** * The percentage of synthetic API test usage by tag(s). - */ + */ "apiPercentage"?: number; /** * The synthetic API test usage by tag(s). - */ + */ "apiUsage"?: number; /** * The percentage of APM ECS Fargate task usage by tag(s). - */ + */ "apmFargatePercentage"?: number; /** * The APM ECS Fargate task usage by tag(s). - */ + */ "apmFargateUsage"?: number; /** * The percentage of APM host usage by tag(s). - */ + */ "apmHostPercentage"?: number; /** * The APM host usage by tag(s). - */ + */ "apmHostUsage"?: number; /** * The percentage of APM and Universal Service Monitoring host usage by tag(s). - */ + */ "apmUsmPercentage"?: number; /** * The APM and Universal Service Monitoring host usage by tag(s). - */ + */ "apmUsmUsage"?: number; /** * The percentage of Application Security Monitoring ECS Fargate task usage by tag(s). - */ + */ "appsecFargatePercentage"?: number; /** * The Application Security Monitoring ECS Fargate task usage by tag(s). - */ + */ "appsecFargateUsage"?: number; /** * The percentage of Application Security Monitoring host usage by tag(s). - */ + */ "appsecPercentage"?: number; /** * The Application Security Monitoring host usage by tag(s). - */ + */ "appsecUsage"?: number; /** * The percentage of Application Security Monitoring Serverless traced invocations usage by tag(s). - */ + */ "asmServerlessTracedInvocationsPercentage"?: number; /** * The Application Security Monitoring Serverless traced invocations usage by tag(s). - */ + */ "asmServerlessTracedInvocationsUsage"?: number; /** * The percentage of synthetic browser test usage by tag(s). - */ + */ "browserPercentage"?: number; /** * The synthetic browser test usage by tag(s). - */ + */ "browserUsage"?: number; /** * The percentage of CI Pipeline Indexed Spans usage by tag(s). - */ + */ "ciPipelineIndexedSpansPercentage"?: number; /** * The total CI Pipeline Indexed Spans usage by tag(s). - */ + */ "ciPipelineIndexedSpansUsage"?: number; /** * The percentage of CI Test Indexed Spans usage by tag(s). - */ + */ "ciTestIndexedSpansPercentage"?: number; /** * The total CI Test Indexed Spans usage by tag(s). - */ + */ "ciTestIndexedSpansUsage"?: number; /** * The percentage of Git committers for Intelligent Test Runner usage by tag(s). - */ + */ "ciVisibilityItrPercentage"?: number; /** * The Git committers for Intelligent Test Runner usage by tag(s). - */ + */ "ciVisibilityItrUsage"?: number; /** * The percentage of Cloud Security Information and Event Management usage by tag(s). - */ + */ "cloudSiemPercentage"?: number; /** * The Cloud Security Information and Event Management usage by tag(s). - */ + */ "cloudSiemUsage"?: number; /** * The percentage of Code Security host usage by tags. - */ + */ "codeSecurityHostPercentage"?: number; /** * The Code Security host usage by tags. - */ + */ "codeSecurityHostUsage"?: number; /** * The percentage of container usage without the Datadog Agent by tag(s). - */ + */ "containerExclAgentPercentage"?: number; /** * The container usage without the Datadog Agent by tag(s). - */ + */ "containerExclAgentUsage"?: number; /** * The percentage of container usage by tag(s). - */ + */ "containerPercentage"?: number; /** * The container usage by tag(s). - */ + */ "containerUsage"?: number; /** * The percentage of Cloud Security Management Pro container usage by tag(s). - */ + */ "cspmContainersPercentage"?: number; /** * The Cloud Security Management Pro container usage by tag(s). - */ + */ "cspmContainersUsage"?: number; /** * The percentage of Cloud Security Management Pro host usage by tag(s). - */ + */ "cspmHostsPercentage"?: number; /** * The Cloud Security Management Pro host usage by tag(s). - */ + */ "cspmHostsUsage"?: number; /** * The percentage of Custom Events usage by tag(s). - */ + */ "customEventPercentage"?: number; /** * The total Custom Events usage by tag(s). - */ + */ "customEventUsage"?: number; /** * The percentage of ingested custom metrics usage by tag(s). - */ + */ "customIngestedTimeseriesPercentage"?: number; /** * The ingested custom metrics usage by tag(s). - */ + */ "customIngestedTimeseriesUsage"?: number; /** * The percentage of indexed custom metrics usage by tag(s). - */ + */ "customTimeseriesPercentage"?: number; /** * The indexed custom metrics usage by tag(s). - */ + */ "customTimeseriesUsage"?: number; /** * The percentage of Cloud Workload Security container usage by tag(s). - */ + */ "cwsContainersPercentage"?: number; /** * The Cloud Workload Security container usage by tag(s). - */ + */ "cwsContainersUsage"?: number; /** * The percentage of Cloud Workload Security Fargate task usage by tag(s). - */ + */ "cwsFargateTaskPercentage"?: number; /** * The Cloud Workload Security Fargate task usage by tag(s). - */ + */ "cwsFargateTaskUsage"?: number; /** * The percentage of Cloud Workload Security host usage by tag(s). - */ + */ "cwsHostsPercentage"?: number; /** * The Cloud Workload Security host usage by tag(s). - */ + */ "cwsHostsUsage"?: number; /** * The Data Jobs Monitoring usage by tag(s). - */ + */ "dataJobsMonitoringUsage"?: number; /** * The Data Stream Monitoring usage by tag(s). - */ + */ "dataStreamMonitoringUsage"?: number; /** * The percentage of Database Monitoring host usage by tag(s). - */ + */ "dbmHostsPercentage"?: number; /** * The Database Monitoring host usage by tag(s). - */ + */ "dbmHostsUsage"?: number; /** * The percentage of Database Monitoring queries usage by tag(s). - */ + */ "dbmQueriesPercentage"?: number; /** * The Database Monitoring queries usage by tag(s). - */ + */ "dbmQueriesUsage"?: number; /** * The percentage of error tracking events usage by tag(s). - */ + */ "errorTrackingPercentage"?: number; /** * The error tracking events usage by tag(s). - */ + */ "errorTrackingUsage"?: number; /** * The percentage of estimated indexed spans usage by tag(s). - */ + */ "estimatedIndexedSpansPercentage"?: number; /** * The estimated indexed spans usage by tag(s). - */ + */ "estimatedIndexedSpansUsage"?: number; /** * The percentage of estimated ingested spans usage by tag(s). - */ + */ "estimatedIngestedSpansPercentage"?: number; /** * The estimated ingested spans usage by tag(s). - */ + */ "estimatedIngestedSpansUsage"?: number; /** * The percentage of Fargate usage by tags. - */ + */ "fargatePercentage"?: number; /** * The Fargate usage by tags. - */ + */ "fargateUsage"?: number; /** * The percentage of Lambda function usage by tag(s). - */ + */ "functionsPercentage"?: number; /** * The Lambda function usage by tag(s). - */ + */ "functionsUsage"?: number; /** * The percentage of Incident Management monthly active users usage by tag(s). - */ + */ "incidentManagementMonthlyActiveUsersPercentage"?: number; /** * The Incident Management monthly active users usage by tag(s). - */ + */ "incidentManagementMonthlyActiveUsersUsage"?: number; /** * The percentage of APM Indexed Spans usage by tag(s). - */ + */ "indexedSpansPercentage"?: number; /** * The total APM Indexed Spans usage by tag(s). - */ + */ "indexedSpansUsage"?: number; /** * The percentage of infrastructure host usage by tag(s). - */ + */ "infraHostPercentage"?: number; /** * The infrastructure host usage by tag(s). - */ + */ "infraHostUsage"?: number; /** * The percentage of Ingested Logs usage by tag(s). - */ + */ "ingestedLogsBytesPercentage"?: number; /** * The total Ingested Logs usage by tag(s). - */ + */ "ingestedLogsBytesUsage"?: number; /** * The percentage of APM Ingested Spans usage by tag(s). - */ + */ "ingestedSpansBytesPercentage"?: number; /** * The total APM Ingested Spans usage by tag(s). - */ + */ "ingestedSpansBytesUsage"?: number; /** * The percentage of Lambda invocation usage by tag(s). - */ + */ "invocationsPercentage"?: number; /** * The Lambda invocation usage by tag(s). - */ + */ "invocationsUsage"?: number; /** * The percentage of Serverless APM usage by tag(s). - */ + */ "lambdaTracedInvocationsPercentage"?: number; /** * The Serverless APM usage by tag(s). - */ + */ "lambdaTracedInvocationsUsage"?: number; /** * The percentage of Indexed Logs (15-day Retention) usage by tag(s). - */ + */ "logsIndexed15dayPercentage"?: number; /** * The total Indexed Logs (15-day Retention) usage by tag(s). - */ + */ "logsIndexed15dayUsage"?: number; /** * The percentage of Indexed Logs (180-day Retention) usage by tag(s). - */ + */ "logsIndexed180dayPercentage"?: number; /** * The total Indexed Logs (180-day Retention) usage by tag(s). - */ + */ "logsIndexed180dayUsage"?: number; /** * The percentage of Indexed Logs (1-day Retention) usage by tag(s). - */ + */ "logsIndexed1dayPercentage"?: number; /** * The total Indexed Logs (1-day Retention) usage by tag(s). - */ + */ "logsIndexed1dayUsage"?: number; /** * The percentage of Indexed Logs (30-day Retention) usage by tag(s). - */ + */ "logsIndexed30dayPercentage"?: number; /** * The total Indexed Logs (30-day Retention) usage by tag(s). - */ + */ "logsIndexed30dayUsage"?: number; /** * The percentage of Indexed Logs (360-day Retention) usage by tag(s). - */ + */ "logsIndexed360dayPercentage"?: number; /** * The total Indexed Logs (360-day Retention) usage by tag(s). - */ + */ "logsIndexed360dayUsage"?: number; /** * The percentage of Indexed Logs (3-day Retention) usage by tag(s). - */ + */ "logsIndexed3dayPercentage"?: number; /** * The total Indexed Logs (3-day Retention) usage by tag(s). - */ + */ "logsIndexed3dayUsage"?: number; /** * The percentage of Indexed Logs (45-day Retention) usage by tag(s). - */ + */ "logsIndexed45dayPercentage"?: number; /** * The total Indexed Logs (45-day Retention) usage by tag(s). - */ + */ "logsIndexed45dayUsage"?: number; /** * The percentage of Indexed Logs (60-day Retention) usage by tag(s). - */ + */ "logsIndexed60dayPercentage"?: number; /** * The total Indexed Logs (60-day Retention) usage by tag(s). - */ + */ "logsIndexed60dayUsage"?: number; /** * The percentage of Indexed Logs (7-day Retention) usage by tag(s). - */ + */ "logsIndexed7dayPercentage"?: number; /** * The total Indexed Logs (7-day Retention) usage by tag(s). - */ + */ "logsIndexed7dayUsage"?: number; /** * The percentage of Indexed Logs (90-day Retention) usage by tag(s). - */ + */ "logsIndexed90dayPercentage"?: number; /** * The total Indexed Logs (90-day Retention) usage by tag(s). - */ + */ "logsIndexed90dayUsage"?: number; /** * The percentage of Indexed Logs (Custom Retention) usage by tag(s). - */ + */ "logsIndexedCustomRetentionPercentage"?: number; /** * The total Indexed Logs (Custom Retention) usage by tag(s). - */ + */ "logsIndexedCustomRetentionUsage"?: number; /** * The percentage of Synthetic mobile application test usage by tag(s). - */ + */ "mobileAppTestingPercentage"?: number; /** * The Synthetic mobile application test usage by tag(s). - */ + */ "mobileAppTestingUsage"?: number; /** * The percentage of Network Device Monitoring NetFlow usage by tag(s). - */ + */ "ndmNetflowPercentage"?: number; /** * The Network Device Monitoring NetFlow usage by tag(s). - */ + */ "ndmNetflowUsage"?: number; /** * The percentage of network host usage by tag(s). - */ + */ "npmHostPercentage"?: number; /** * The network host usage by tag(s). - */ + */ "npmHostUsage"?: number; /** * The percentage of observability pipeline bytes usage by tag(s). - */ + */ "obsPipelineBytesPercentage"?: number; /** * The observability pipeline bytes usage by tag(s). - */ + */ "obsPipelineBytesUsage"?: number; /** * The percentage of observability pipeline per core usage by tag(s). - */ + */ "obsPipelinesVcpuPercentage"?: number; /** * The observability pipeline per core usage by tag(s). - */ + */ "obsPipelinesVcpuUsage"?: number; /** * The percentage of online archive usage by tag(s). - */ + */ "onlineArchivePercentage"?: number; /** * The online archive usage by tag(s). - */ + */ "onlineArchiveUsage"?: number; /** * The percentage of profiled container usage by tag(s). - */ + */ "profiledContainerPercentage"?: number; /** * The profiled container usage by tag(s). - */ + */ "profiledContainerUsage"?: number; /** * The percentage of profiled Fargate task usage by tag(s). - */ + */ "profiledFargatePercentage"?: number; /** * The profiled Fargate task usage by tag(s). - */ + */ "profiledFargateUsage"?: number; /** * The percentage of profiled hosts usage by tag(s). - */ + */ "profiledHostPercentage"?: number; /** * The profiled hosts usage by tag(s). - */ + */ "profiledHostUsage"?: number; /** * The percentage of RUM Browser and Mobile usage by tag(s). - */ + */ "rumBrowserMobileSessionsPercentage"?: number; /** * The total RUM Browser and Mobile usage by tag(s). - */ + */ "rumBrowserMobileSessionsUsage"?: number; /** * The percentage of RUM Session Replay usage by tag(s). - */ + */ "rumReplaySessionsPercentage"?: number; /** * The total RUM Session Replay usage by tag(s). - */ + */ "rumReplaySessionsUsage"?: number; /** * The percentage of Software Composition Analysis Fargate task usage by tag(s). - */ + */ "scaFargatePercentage"?: number; /** * The total Software Composition Analysis Fargate task usage by tag(s). - */ + */ "scaFargateUsage"?: number; /** * The percentage of Sensitive Data Scanner usage by tag(s). - */ + */ "sdsScannedBytesPercentage"?: number; /** * The total Sensitive Data Scanner usage by tag(s). - */ + */ "sdsScannedBytesUsage"?: number; /** * The percentage of Serverless Apps usage by tag(s). - */ + */ "serverlessAppsPercentage"?: number; /** * The total Serverless Apps usage by tag(s). - */ + */ "serverlessAppsUsage"?: number; /** * The percentage of log events analyzed by Cloud SIEM usage by tag(s). - */ + */ "siemAnalyzedLogsAddOnPercentage"?: number; /** * The log events analyzed by Cloud SIEM usage by tag(s). - */ + */ "siemAnalyzedLogsAddOnUsage"?: number; /** * The percentage of SIEM usage by tag(s). - */ + */ "siemIngestedBytesPercentage"?: number; /** * The total SIEM usage by tag(s). - */ + */ "siemIngestedBytesUsage"?: number; /** * The percentage of network device usage by tag(s). - */ + */ "snmpPercentage"?: number; /** * The network device usage by tag(s). - */ + */ "snmpUsage"?: number; /** * The percentage of universal service monitoring usage by tag(s). - */ + */ "universalServiceMonitoringPercentage"?: number; /** * The universal service monitoring usage by tag(s). - */ + */ "universalServiceMonitoringUsage"?: number; /** * The percentage of Application Vulnerability Management usage by tag(s). - */ + */ "vulnManagementHostsPercentage"?: number; /** * The Application Vulnerability Management usage by tag(s). - */ + */ "vulnManagementHostsUsage"?: number; /** * The percentage of workflow executions usage by tag(s). - */ + */ "workflowExecutionsPercentage"?: number; /** * The total workflow executions usage by tag(s). - */ + */ "workflowExecutionsUsage"?: number; /** @@ -579,708 +584,734 @@ export class MonthlyUsageAttributionValues { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiPercentage: { - baseName: "api_percentage", - type: "number", - format: "double", - }, - apiUsage: { - baseName: "api_usage", - type: "number", - format: "double", - }, - apmFargatePercentage: { - baseName: "apm_fargate_percentage", - type: "number", - format: "double", - }, - apmFargateUsage: { - baseName: "apm_fargate_usage", - type: "number", - format: "double", - }, - apmHostPercentage: { - baseName: "apm_host_percentage", - type: "number", - format: "double", - }, - apmHostUsage: { - baseName: "apm_host_usage", - type: "number", - format: "double", - }, - apmUsmPercentage: { - baseName: "apm_usm_percentage", - type: "number", - format: "double", - }, - apmUsmUsage: { - baseName: "apm_usm_usage", - type: "number", - format: "double", - }, - appsecFargatePercentage: { - baseName: "appsec_fargate_percentage", - type: "number", - format: "double", - }, - appsecFargateUsage: { - baseName: "appsec_fargate_usage", - type: "number", - format: "double", - }, - appsecPercentage: { - baseName: "appsec_percentage", - type: "number", - format: "double", - }, - appsecUsage: { - baseName: "appsec_usage", - type: "number", - format: "double", - }, - asmServerlessTracedInvocationsPercentage: { - baseName: "asm_serverless_traced_invocations_percentage", - type: "number", - format: "double", - }, - asmServerlessTracedInvocationsUsage: { - baseName: "asm_serverless_traced_invocations_usage", - type: "number", - format: "double", - }, - browserPercentage: { - baseName: "browser_percentage", - type: "number", - format: "double", - }, - browserUsage: { - baseName: "browser_usage", - type: "number", - format: "double", - }, - ciPipelineIndexedSpansPercentage: { - baseName: "ci_pipeline_indexed_spans_percentage", - type: "number", - format: "double", - }, - ciPipelineIndexedSpansUsage: { - baseName: "ci_pipeline_indexed_spans_usage", - type: "number", - format: "double", - }, - ciTestIndexedSpansPercentage: { - baseName: "ci_test_indexed_spans_percentage", - type: "number", - format: "double", - }, - ciTestIndexedSpansUsage: { - baseName: "ci_test_indexed_spans_usage", - type: "number", - format: "double", - }, - ciVisibilityItrPercentage: { - baseName: "ci_visibility_itr_percentage", - type: "number", - format: "double", - }, - ciVisibilityItrUsage: { - baseName: "ci_visibility_itr_usage", - type: "number", - format: "double", - }, - cloudSiemPercentage: { - baseName: "cloud_siem_percentage", - type: "number", - format: "double", - }, - cloudSiemUsage: { - baseName: "cloud_siem_usage", - type: "number", - format: "double", - }, - codeSecurityHostPercentage: { - baseName: "code_security_host_percentage", - type: "number", - format: "double", - }, - codeSecurityHostUsage: { - baseName: "code_security_host_usage", - type: "number", - format: "double", - }, - containerExclAgentPercentage: { - baseName: "container_excl_agent_percentage", - type: "number", - format: "double", - }, - containerExclAgentUsage: { - baseName: "container_excl_agent_usage", - type: "number", - format: "double", - }, - containerPercentage: { - baseName: "container_percentage", - type: "number", - format: "double", - }, - containerUsage: { - baseName: "container_usage", - type: "number", - format: "double", - }, - cspmContainersPercentage: { - baseName: "cspm_containers_percentage", - type: "number", - format: "double", - }, - cspmContainersUsage: { - baseName: "cspm_containers_usage", - type: "number", - format: "double", - }, - cspmHostsPercentage: { - baseName: "cspm_hosts_percentage", - type: "number", - format: "double", - }, - cspmHostsUsage: { - baseName: "cspm_hosts_usage", - type: "number", - format: "double", - }, - customEventPercentage: { - baseName: "custom_event_percentage", - type: "number", - format: "double", - }, - customEventUsage: { - baseName: "custom_event_usage", - type: "number", - format: "double", - }, - customIngestedTimeseriesPercentage: { - baseName: "custom_ingested_timeseries_percentage", - type: "number", - format: "double", - }, - customIngestedTimeseriesUsage: { - baseName: "custom_ingested_timeseries_usage", - type: "number", - format: "double", - }, - customTimeseriesPercentage: { - baseName: "custom_timeseries_percentage", - type: "number", - format: "double", - }, - customTimeseriesUsage: { - baseName: "custom_timeseries_usage", - type: "number", - format: "double", - }, - cwsContainersPercentage: { - baseName: "cws_containers_percentage", - type: "number", - format: "double", - }, - cwsContainersUsage: { - baseName: "cws_containers_usage", - type: "number", - format: "double", - }, - cwsFargateTaskPercentage: { - baseName: "cws_fargate_task_percentage", - type: "number", - format: "double", - }, - cwsFargateTaskUsage: { - baseName: "cws_fargate_task_usage", - type: "number", - format: "double", - }, - cwsHostsPercentage: { - baseName: "cws_hosts_percentage", - type: "number", - format: "double", - }, - cwsHostsUsage: { - baseName: "cws_hosts_usage", - type: "number", - format: "double", - }, - dataJobsMonitoringUsage: { - baseName: "data_jobs_monitoring_usage", - type: "number", - format: "double", - }, - dataStreamMonitoringUsage: { - baseName: "data_stream_monitoring_usage", - type: "number", - format: "double", - }, - dbmHostsPercentage: { - baseName: "dbm_hosts_percentage", - type: "number", - format: "double", - }, - dbmHostsUsage: { - baseName: "dbm_hosts_usage", - type: "number", - format: "double", - }, - dbmQueriesPercentage: { - baseName: "dbm_queries_percentage", - type: "number", - format: "double", - }, - dbmQueriesUsage: { - baseName: "dbm_queries_usage", - type: "number", - format: "double", - }, - errorTrackingPercentage: { - baseName: "error_tracking_percentage", - type: "number", - format: "double", - }, - errorTrackingUsage: { - baseName: "error_tracking_usage", - type: "number", - format: "double", - }, - estimatedIndexedSpansPercentage: { - baseName: "estimated_indexed_spans_percentage", - type: "number", - format: "double", - }, - estimatedIndexedSpansUsage: { - baseName: "estimated_indexed_spans_usage", - type: "number", - format: "double", - }, - estimatedIngestedSpansPercentage: { - baseName: "estimated_ingested_spans_percentage", - type: "number", - format: "double", - }, - estimatedIngestedSpansUsage: { - baseName: "estimated_ingested_spans_usage", - type: "number", - format: "double", - }, - fargatePercentage: { - baseName: "fargate_percentage", - type: "number", - format: "double", - }, - fargateUsage: { - baseName: "fargate_usage", - type: "number", - format: "double", - }, - functionsPercentage: { - baseName: "functions_percentage", - type: "number", - format: "double", - }, - functionsUsage: { - baseName: "functions_usage", - type: "number", - format: "double", - }, - incidentManagementMonthlyActiveUsersPercentage: { - baseName: "incident_management_monthly_active_users_percentage", - type: "number", - format: "double", - }, - incidentManagementMonthlyActiveUsersUsage: { - baseName: "incident_management_monthly_active_users_usage", - type: "number", - format: "double", - }, - indexedSpansPercentage: { - baseName: "indexed_spans_percentage", - type: "number", - format: "double", - }, - indexedSpansUsage: { - baseName: "indexed_spans_usage", - type: "number", - format: "double", - }, - infraHostPercentage: { - baseName: "infra_host_percentage", - type: "number", - format: "double", - }, - infraHostUsage: { - baseName: "infra_host_usage", - type: "number", - format: "double", - }, - ingestedLogsBytesPercentage: { - baseName: "ingested_logs_bytes_percentage", - type: "number", - format: "double", - }, - ingestedLogsBytesUsage: { - baseName: "ingested_logs_bytes_usage", - type: "number", - format: "double", - }, - ingestedSpansBytesPercentage: { - baseName: "ingested_spans_bytes_percentage", - type: "number", - format: "double", - }, - ingestedSpansBytesUsage: { - baseName: "ingested_spans_bytes_usage", - type: "number", - format: "double", - }, - invocationsPercentage: { - baseName: "invocations_percentage", - type: "number", - format: "double", - }, - invocationsUsage: { - baseName: "invocations_usage", - type: "number", - format: "double", - }, - lambdaTracedInvocationsPercentage: { - baseName: "lambda_traced_invocations_percentage", - type: "number", - format: "double", - }, - lambdaTracedInvocationsUsage: { - baseName: "lambda_traced_invocations_usage", - type: "number", - format: "double", - }, - logsIndexed15dayPercentage: { - baseName: "logs_indexed_15day_percentage", - type: "number", - format: "double", - }, - logsIndexed15dayUsage: { - baseName: "logs_indexed_15day_usage", - type: "number", - format: "double", - }, - logsIndexed180dayPercentage: { - baseName: "logs_indexed_180day_percentage", - type: "number", - format: "double", - }, - logsIndexed180dayUsage: { - baseName: "logs_indexed_180day_usage", - type: "number", - format: "double", - }, - logsIndexed1dayPercentage: { - baseName: "logs_indexed_1day_percentage", - type: "number", - format: "double", - }, - logsIndexed1dayUsage: { - baseName: "logs_indexed_1day_usage", - type: "number", - format: "double", - }, - logsIndexed30dayPercentage: { - baseName: "logs_indexed_30day_percentage", - type: "number", - format: "double", - }, - logsIndexed30dayUsage: { - baseName: "logs_indexed_30day_usage", - type: "number", - format: "double", - }, - logsIndexed360dayPercentage: { - baseName: "logs_indexed_360day_percentage", - type: "number", - format: "double", - }, - logsIndexed360dayUsage: { - baseName: "logs_indexed_360day_usage", - type: "number", - format: "double", - }, - logsIndexed3dayPercentage: { - baseName: "logs_indexed_3day_percentage", - type: "number", - format: "double", - }, - logsIndexed3dayUsage: { - baseName: "logs_indexed_3day_usage", - type: "number", - format: "double", - }, - logsIndexed45dayPercentage: { - baseName: "logs_indexed_45day_percentage", - type: "number", - format: "double", - }, - logsIndexed45dayUsage: { - baseName: "logs_indexed_45day_usage", - type: "number", - format: "double", - }, - logsIndexed60dayPercentage: { - baseName: "logs_indexed_60day_percentage", - type: "number", - format: "double", - }, - logsIndexed60dayUsage: { - baseName: "logs_indexed_60day_usage", - type: "number", - format: "double", - }, - logsIndexed7dayPercentage: { - baseName: "logs_indexed_7day_percentage", - type: "number", - format: "double", - }, - logsIndexed7dayUsage: { - baseName: "logs_indexed_7day_usage", - type: "number", - format: "double", - }, - logsIndexed90dayPercentage: { - baseName: "logs_indexed_90day_percentage", - type: "number", - format: "double", - }, - logsIndexed90dayUsage: { - baseName: "logs_indexed_90day_usage", - type: "number", - format: "double", - }, - logsIndexedCustomRetentionPercentage: { - baseName: "logs_indexed_custom_retention_percentage", - type: "number", - format: "double", - }, - logsIndexedCustomRetentionUsage: { - baseName: "logs_indexed_custom_retention_usage", - type: "number", - format: "double", - }, - mobileAppTestingPercentage: { - baseName: "mobile_app_testing_percentage", - type: "number", - format: "double", - }, - mobileAppTestingUsage: { - baseName: "mobile_app_testing_usage", - type: "number", - format: "double", - }, - ndmNetflowPercentage: { - baseName: "ndm_netflow_percentage", - type: "number", - format: "double", - }, - ndmNetflowUsage: { - baseName: "ndm_netflow_usage", - type: "number", - format: "double", - }, - npmHostPercentage: { - baseName: "npm_host_percentage", - type: "number", - format: "double", - }, - npmHostUsage: { - baseName: "npm_host_usage", - type: "number", - format: "double", - }, - obsPipelineBytesPercentage: { - baseName: "obs_pipeline_bytes_percentage", - type: "number", - format: "double", - }, - obsPipelineBytesUsage: { - baseName: "obs_pipeline_bytes_usage", - type: "number", - format: "double", - }, - obsPipelinesVcpuPercentage: { - baseName: "obs_pipelines_vcpu_percentage", - type: "number", - format: "double", - }, - obsPipelinesVcpuUsage: { - baseName: "obs_pipelines_vcpu_usage", - type: "number", - format: "double", - }, - onlineArchivePercentage: { - baseName: "online_archive_percentage", - type: "number", - format: "double", - }, - onlineArchiveUsage: { - baseName: "online_archive_usage", - type: "number", - format: "double", - }, - profiledContainerPercentage: { - baseName: "profiled_container_percentage", - type: "number", - format: "double", - }, - profiledContainerUsage: { - baseName: "profiled_container_usage", - type: "number", - format: "double", - }, - profiledFargatePercentage: { - baseName: "profiled_fargate_percentage", - type: "number", - format: "double", - }, - profiledFargateUsage: { - baseName: "profiled_fargate_usage", - type: "number", - format: "double", - }, - profiledHostPercentage: { - baseName: "profiled_host_percentage", - type: "number", - format: "double", - }, - profiledHostUsage: { - baseName: "profiled_host_usage", - type: "number", - format: "double", - }, - rumBrowserMobileSessionsPercentage: { - baseName: "rum_browser_mobile_sessions_percentage", - type: "number", - format: "double", - }, - rumBrowserMobileSessionsUsage: { - baseName: "rum_browser_mobile_sessions_usage", - type: "number", - format: "double", - }, - rumReplaySessionsPercentage: { - baseName: "rum_replay_sessions_percentage", - type: "number", - format: "double", - }, - rumReplaySessionsUsage: { - baseName: "rum_replay_sessions_usage", - type: "number", - format: "double", - }, - scaFargatePercentage: { - baseName: "sca_fargate_percentage", - type: "number", - format: "double", - }, - scaFargateUsage: { - baseName: "sca_fargate_usage", - type: "number", - format: "double", - }, - sdsScannedBytesPercentage: { - baseName: "sds_scanned_bytes_percentage", - type: "number", - format: "double", - }, - sdsScannedBytesUsage: { - baseName: "sds_scanned_bytes_usage", - type: "number", - format: "double", - }, - serverlessAppsPercentage: { - baseName: "serverless_apps_percentage", - type: "number", - format: "double", - }, - serverlessAppsUsage: { - baseName: "serverless_apps_usage", - type: "number", - format: "double", - }, - siemAnalyzedLogsAddOnPercentage: { - baseName: "siem_analyzed_logs_add_on_percentage", - type: "number", - format: "double", - }, - siemAnalyzedLogsAddOnUsage: { - baseName: "siem_analyzed_logs_add_on_usage", - type: "number", - format: "double", - }, - siemIngestedBytesPercentage: { - baseName: "siem_ingested_bytes_percentage", - type: "number", - format: "double", - }, - siemIngestedBytesUsage: { - baseName: "siem_ingested_bytes_usage", - type: "number", - format: "double", - }, - snmpPercentage: { - baseName: "snmp_percentage", - type: "number", - format: "double", - }, - snmpUsage: { - baseName: "snmp_usage", - type: "number", - format: "double", - }, - universalServiceMonitoringPercentage: { - baseName: "universal_service_monitoring_percentage", - type: "number", - format: "double", - }, - universalServiceMonitoringUsage: { - baseName: "universal_service_monitoring_usage", - type: "number", - format: "double", - }, - vulnManagementHostsPercentage: { - baseName: "vuln_management_hosts_percentage", - type: "number", - format: "double", - }, - vulnManagementHostsUsage: { - baseName: "vuln_management_hosts_usage", - type: "number", - format: "double", - }, - workflowExecutionsPercentage: { - baseName: "workflow_executions_percentage", - type: "number", - format: "double", - }, - workflowExecutionsUsage: { - baseName: "workflow_executions_usage", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "apiPercentage": { + "baseName": "api_percentage", + "type": "number", + "format": "double", + }, + "apiUsage": { + "baseName": "api_usage", + "type": "number", + "format": "double", + }, + "apmFargatePercentage": { + "baseName": "apm_fargate_percentage", + "type": "number", + "format": "double", + }, + "apmFargateUsage": { + "baseName": "apm_fargate_usage", + "type": "number", + "format": "double", + }, + "apmHostPercentage": { + "baseName": "apm_host_percentage", + "type": "number", + "format": "double", + }, + "apmHostUsage": { + "baseName": "apm_host_usage", + "type": "number", + "format": "double", + }, + "apmUsmPercentage": { + "baseName": "apm_usm_percentage", + "type": "number", + "format": "double", + }, + "apmUsmUsage": { + "baseName": "apm_usm_usage", + "type": "number", + "format": "double", + }, + "appsecFargatePercentage": { + "baseName": "appsec_fargate_percentage", + "type": "number", + "format": "double", + }, + "appsecFargateUsage": { + "baseName": "appsec_fargate_usage", + "type": "number", + "format": "double", + }, + "appsecPercentage": { + "baseName": "appsec_percentage", + "type": "number", + "format": "double", + }, + "appsecUsage": { + "baseName": "appsec_usage", + "type": "number", + "format": "double", + }, + "asmServerlessTracedInvocationsPercentage": { + "baseName": "asm_serverless_traced_invocations_percentage", + "type": "number", + "format": "double", + }, + "asmServerlessTracedInvocationsUsage": { + "baseName": "asm_serverless_traced_invocations_usage", + "type": "number", + "format": "double", + }, + "browserPercentage": { + "baseName": "browser_percentage", + "type": "number", + "format": "double", + }, + "browserUsage": { + "baseName": "browser_usage", + "type": "number", + "format": "double", + }, + "ciPipelineIndexedSpansPercentage": { + "baseName": "ci_pipeline_indexed_spans_percentage", + "type": "number", + "format": "double", + }, + "ciPipelineIndexedSpansUsage": { + "baseName": "ci_pipeline_indexed_spans_usage", + "type": "number", + "format": "double", + }, + "ciTestIndexedSpansPercentage": { + "baseName": "ci_test_indexed_spans_percentage", + "type": "number", + "format": "double", + }, + "ciTestIndexedSpansUsage": { + "baseName": "ci_test_indexed_spans_usage", + "type": "number", + "format": "double", + }, + "ciVisibilityItrPercentage": { + "baseName": "ci_visibility_itr_percentage", + "type": "number", + "format": "double", + }, + "ciVisibilityItrUsage": { + "baseName": "ci_visibility_itr_usage", + "type": "number", + "format": "double", + }, + "cloudSiemPercentage": { + "baseName": "cloud_siem_percentage", + "type": "number", + "format": "double", + }, + "cloudSiemUsage": { + "baseName": "cloud_siem_usage", + "type": "number", + "format": "double", + }, + "codeSecurityHostPercentage": { + "baseName": "code_security_host_percentage", + "type": "number", + "format": "double", + }, + "codeSecurityHostUsage": { + "baseName": "code_security_host_usage", + "type": "number", + "format": "double", + }, + "containerExclAgentPercentage": { + "baseName": "container_excl_agent_percentage", + "type": "number", + "format": "double", + }, + "containerExclAgentUsage": { + "baseName": "container_excl_agent_usage", + "type": "number", + "format": "double", + }, + "containerPercentage": { + "baseName": "container_percentage", + "type": "number", + "format": "double", + }, + "containerUsage": { + "baseName": "container_usage", + "type": "number", + "format": "double", + }, + "cspmContainersPercentage": { + "baseName": "cspm_containers_percentage", + "type": "number", + "format": "double", + }, + "cspmContainersUsage": { + "baseName": "cspm_containers_usage", + "type": "number", + "format": "double", + }, + "cspmHostsPercentage": { + "baseName": "cspm_hosts_percentage", + "type": "number", + "format": "double", + }, + "cspmHostsUsage": { + "baseName": "cspm_hosts_usage", + "type": "number", + "format": "double", + }, + "customEventPercentage": { + "baseName": "custom_event_percentage", + "type": "number", + "format": "double", + }, + "customEventUsage": { + "baseName": "custom_event_usage", + "type": "number", + "format": "double", + }, + "customIngestedTimeseriesPercentage": { + "baseName": "custom_ingested_timeseries_percentage", + "type": "number", + "format": "double", + }, + "customIngestedTimeseriesUsage": { + "baseName": "custom_ingested_timeseries_usage", + "type": "number", + "format": "double", + }, + "customTimeseriesPercentage": { + "baseName": "custom_timeseries_percentage", + "type": "number", + "format": "double", + }, + "customTimeseriesUsage": { + "baseName": "custom_timeseries_usage", + "type": "number", + "format": "double", + }, + "cwsContainersPercentage": { + "baseName": "cws_containers_percentage", + "type": "number", + "format": "double", + }, + "cwsContainersUsage": { + "baseName": "cws_containers_usage", + "type": "number", + "format": "double", + }, + "cwsFargateTaskPercentage": { + "baseName": "cws_fargate_task_percentage", + "type": "number", + "format": "double", + }, + "cwsFargateTaskUsage": { + "baseName": "cws_fargate_task_usage", + "type": "number", + "format": "double", + }, + "cwsHostsPercentage": { + "baseName": "cws_hosts_percentage", + "type": "number", + "format": "double", + }, + "cwsHostsUsage": { + "baseName": "cws_hosts_usage", + "type": "number", + "format": "double", + }, + "dataJobsMonitoringUsage": { + "baseName": "data_jobs_monitoring_usage", + "type": "number", + "format": "double", + }, + "dataStreamMonitoringUsage": { + "baseName": "data_stream_monitoring_usage", + "type": "number", + "format": "double", + }, + "dbmHostsPercentage": { + "baseName": "dbm_hosts_percentage", + "type": "number", + "format": "double", + }, + "dbmHostsUsage": { + "baseName": "dbm_hosts_usage", + "type": "number", + "format": "double", + }, + "dbmQueriesPercentage": { + "baseName": "dbm_queries_percentage", + "type": "number", + "format": "double", + }, + "dbmQueriesUsage": { + "baseName": "dbm_queries_usage", + "type": "number", + "format": "double", + }, + "errorTrackingPercentage": { + "baseName": "error_tracking_percentage", + "type": "number", + "format": "double", + }, + "errorTrackingUsage": { + "baseName": "error_tracking_usage", + "type": "number", + "format": "double", + }, + "estimatedIndexedSpansPercentage": { + "baseName": "estimated_indexed_spans_percentage", + "type": "number", + "format": "double", + }, + "estimatedIndexedSpansUsage": { + "baseName": "estimated_indexed_spans_usage", + "type": "number", + "format": "double", + }, + "estimatedIngestedSpansPercentage": { + "baseName": "estimated_ingested_spans_percentage", + "type": "number", + "format": "double", + }, + "estimatedIngestedSpansUsage": { + "baseName": "estimated_ingested_spans_usage", + "type": "number", + "format": "double", + }, + "fargatePercentage": { + "baseName": "fargate_percentage", + "type": "number", + "format": "double", + }, + "fargateUsage": { + "baseName": "fargate_usage", + "type": "number", + "format": "double", + }, + "functionsPercentage": { + "baseName": "functions_percentage", + "type": "number", + "format": "double", + }, + "functionsUsage": { + "baseName": "functions_usage", + "type": "number", + "format": "double", + }, + "incidentManagementMonthlyActiveUsersPercentage": { + "baseName": "incident_management_monthly_active_users_percentage", + "type": "number", + "format": "double", + }, + "incidentManagementMonthlyActiveUsersUsage": { + "baseName": "incident_management_monthly_active_users_usage", + "type": "number", + "format": "double", + }, + "indexedSpansPercentage": { + "baseName": "indexed_spans_percentage", + "type": "number", + "format": "double", + }, + "indexedSpansUsage": { + "baseName": "indexed_spans_usage", + "type": "number", + "format": "double", + }, + "infraHostPercentage": { + "baseName": "infra_host_percentage", + "type": "number", + "format": "double", + }, + "infraHostUsage": { + "baseName": "infra_host_usage", + "type": "number", + "format": "double", + }, + "ingestedLogsBytesPercentage": { + "baseName": "ingested_logs_bytes_percentage", + "type": "number", + "format": "double", + }, + "ingestedLogsBytesUsage": { + "baseName": "ingested_logs_bytes_usage", + "type": "number", + "format": "double", + }, + "ingestedSpansBytesPercentage": { + "baseName": "ingested_spans_bytes_percentage", + "type": "number", + "format": "double", + }, + "ingestedSpansBytesUsage": { + "baseName": "ingested_spans_bytes_usage", + "type": "number", + "format": "double", + }, + "invocationsPercentage": { + "baseName": "invocations_percentage", + "type": "number", + "format": "double", + }, + "invocationsUsage": { + "baseName": "invocations_usage", + "type": "number", + "format": "double", + }, + "lambdaTracedInvocationsPercentage": { + "baseName": "lambda_traced_invocations_percentage", + "type": "number", + "format": "double", + }, + "lambdaTracedInvocationsUsage": { + "baseName": "lambda_traced_invocations_usage", + "type": "number", + "format": "double", + }, + "logsIndexed15dayPercentage": { + "baseName": "logs_indexed_15day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed15dayUsage": { + "baseName": "logs_indexed_15day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed180dayPercentage": { + "baseName": "logs_indexed_180day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed180dayUsage": { + "baseName": "logs_indexed_180day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed1dayPercentage": { + "baseName": "logs_indexed_1day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed1dayUsage": { + "baseName": "logs_indexed_1day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed30dayPercentage": { + "baseName": "logs_indexed_30day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed30dayUsage": { + "baseName": "logs_indexed_30day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed360dayPercentage": { + "baseName": "logs_indexed_360day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed360dayUsage": { + "baseName": "logs_indexed_360day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed3dayPercentage": { + "baseName": "logs_indexed_3day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed3dayUsage": { + "baseName": "logs_indexed_3day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed45dayPercentage": { + "baseName": "logs_indexed_45day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed45dayUsage": { + "baseName": "logs_indexed_45day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed60dayPercentage": { + "baseName": "logs_indexed_60day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed60dayUsage": { + "baseName": "logs_indexed_60day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed7dayPercentage": { + "baseName": "logs_indexed_7day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed7dayUsage": { + "baseName": "logs_indexed_7day_usage", + "type": "number", + "format": "double", + }, + "logsIndexed90dayPercentage": { + "baseName": "logs_indexed_90day_percentage", + "type": "number", + "format": "double", + }, + "logsIndexed90dayUsage": { + "baseName": "logs_indexed_90day_usage", + "type": "number", + "format": "double", + }, + "logsIndexedCustomRetentionPercentage": { + "baseName": "logs_indexed_custom_retention_percentage", + "type": "number", + "format": "double", + }, + "logsIndexedCustomRetentionUsage": { + "baseName": "logs_indexed_custom_retention_usage", + "type": "number", + "format": "double", + }, + "mobileAppTestingPercentage": { + "baseName": "mobile_app_testing_percentage", + "type": "number", + "format": "double", + }, + "mobileAppTestingUsage": { + "baseName": "mobile_app_testing_usage", + "type": "number", + "format": "double", + }, + "ndmNetflowPercentage": { + "baseName": "ndm_netflow_percentage", + "type": "number", + "format": "double", + }, + "ndmNetflowUsage": { + "baseName": "ndm_netflow_usage", + "type": "number", + "format": "double", + }, + "npmHostPercentage": { + "baseName": "npm_host_percentage", + "type": "number", + "format": "double", + }, + "npmHostUsage": { + "baseName": "npm_host_usage", + "type": "number", + "format": "double", + }, + "obsPipelineBytesPercentage": { + "baseName": "obs_pipeline_bytes_percentage", + "type": "number", + "format": "double", + }, + "obsPipelineBytesUsage": { + "baseName": "obs_pipeline_bytes_usage", + "type": "number", + "format": "double", + }, + "obsPipelinesVcpuPercentage": { + "baseName": "obs_pipelines_vcpu_percentage", + "type": "number", + "format": "double", + }, + "obsPipelinesVcpuUsage": { + "baseName": "obs_pipelines_vcpu_usage", + "type": "number", + "format": "double", + }, + "onlineArchivePercentage": { + "baseName": "online_archive_percentage", + "type": "number", + "format": "double", + }, + "onlineArchiveUsage": { + "baseName": "online_archive_usage", + "type": "number", + "format": "double", + }, + "profiledContainerPercentage": { + "baseName": "profiled_container_percentage", + "type": "number", + "format": "double", + }, + "profiledContainerUsage": { + "baseName": "profiled_container_usage", + "type": "number", + "format": "double", + }, + "profiledFargatePercentage": { + "baseName": "profiled_fargate_percentage", + "type": "number", + "format": "double", + }, + "profiledFargateUsage": { + "baseName": "profiled_fargate_usage", + "type": "number", + "format": "double", + }, + "profiledHostPercentage": { + "baseName": "profiled_host_percentage", + "type": "number", + "format": "double", + }, + "profiledHostUsage": { + "baseName": "profiled_host_usage", + "type": "number", + "format": "double", + }, + "rumBrowserMobileSessionsPercentage": { + "baseName": "rum_browser_mobile_sessions_percentage", + "type": "number", + "format": "double", + }, + "rumBrowserMobileSessionsUsage": { + "baseName": "rum_browser_mobile_sessions_usage", + "type": "number", + "format": "double", + }, + "rumReplaySessionsPercentage": { + "baseName": "rum_replay_sessions_percentage", + "type": "number", + "format": "double", + }, + "rumReplaySessionsUsage": { + "baseName": "rum_replay_sessions_usage", + "type": "number", + "format": "double", + }, + "scaFargatePercentage": { + "baseName": "sca_fargate_percentage", + "type": "number", + "format": "double", + }, + "scaFargateUsage": { + "baseName": "sca_fargate_usage", + "type": "number", + "format": "double", + }, + "sdsScannedBytesPercentage": { + "baseName": "sds_scanned_bytes_percentage", + "type": "number", + "format": "double", + }, + "sdsScannedBytesUsage": { + "baseName": "sds_scanned_bytes_usage", + "type": "number", + "format": "double", + }, + "serverlessAppsPercentage": { + "baseName": "serverless_apps_percentage", + "type": "number", + "format": "double", + }, + "serverlessAppsUsage": { + "baseName": "serverless_apps_usage", + "type": "number", + "format": "double", + }, + "siemAnalyzedLogsAddOnPercentage": { + "baseName": "siem_analyzed_logs_add_on_percentage", + "type": "number", + "format": "double", + }, + "siemAnalyzedLogsAddOnUsage": { + "baseName": "siem_analyzed_logs_add_on_usage", + "type": "number", + "format": "double", + }, + "siemIngestedBytesPercentage": { + "baseName": "siem_ingested_bytes_percentage", + "type": "number", + "format": "double", + }, + "siemIngestedBytesUsage": { + "baseName": "siem_ingested_bytes_usage", + "type": "number", + "format": "double", + }, + "snmpPercentage": { + "baseName": "snmp_percentage", + "type": "number", + "format": "double", + }, + "snmpUsage": { + "baseName": "snmp_usage", + "type": "number", + "format": "double", + }, + "universalServiceMonitoringPercentage": { + "baseName": "universal_service_monitoring_percentage", + "type": "number", + "format": "double", + }, + "universalServiceMonitoringUsage": { + "baseName": "universal_service_monitoring_usage", + "type": "number", + "format": "double", + }, + "vulnManagementHostsPercentage": { + "baseName": "vuln_management_hosts_percentage", + "type": "number", + "format": "double", + }, + "vulnManagementHostsUsage": { + "baseName": "vuln_management_hosts_usage", + "type": "number", + "format": "double", + }, + "workflowExecutionsPercentage": { + "baseName": "workflow_executions_percentage", + "type": "number", + "format": "double", + }, + "workflowExecutionsUsage": { + "baseName": "workflow_executions_usage", + "type": "number", + "format": "double", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyUsageAttributionValues.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NoteWidgetDefinition.ts b/packages/datadog-api-client-v1/models/NoteWidgetDefinition.ts index 193a2d7f3479..b2421e134dce 100644 --- a/packages/datadog-api-client-v1/models/NoteWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/NoteWidgetDefinition.ts @@ -8,51 +8,56 @@ import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTickEdge } from "./WidgetTickEdge"; import { WidgetVerticalAlign } from "./WidgetVerticalAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The notes and links widget is similar to free text widget, but allows for more formatting options. - */ +*/ export class NoteWidgetDefinition { /** * Background color of the note. - */ + */ "backgroundColor"?: string; /** * Content of the note. - */ + */ "content": string; /** * Size of the text. - */ + */ "fontSize"?: string; /** * Whether to add padding or not. - */ + */ "hasPadding"?: boolean; /** * Whether to show a tick or not. - */ + */ "showTick"?: boolean; /** * How to align the text on the widget. - */ + */ "textAlign"?: WidgetTextAlign; /** * Define how you want to align the text on the widget. - */ + */ "tickEdge"?: WidgetTickEdge; /** * Where to position the tick on an edge. - */ + */ "tickPos"?: string; /** * Type of the note widget. - */ + */ "type": NoteWidgetDefinitionType; /** * Vertical alignment. - */ + */ "verticalAlign"?: WidgetVerticalAlign; /** @@ -71,60 +76,86 @@ export class NoteWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - backgroundColor: { - baseName: "background_color", - type: "string", - }, - content: { - baseName: "content", - type: "string", - required: true, + "backgroundColor": { + "baseName": "background_color", + "type": "string", }, - fontSize: { - baseName: "font_size", - type: "string", + "content": { + "baseName": "content", + "type": "string", + "required": true, }, - hasPadding: { - baseName: "has_padding", - type: "boolean", + "fontSize": { + "baseName": "font_size", + "type": "string", }, - showTick: { - baseName: "show_tick", - type: "boolean", + "hasPadding": { + "baseName": "has_padding", + "type": "boolean", }, - textAlign: { - baseName: "text_align", - type: "WidgetTextAlign", + "showTick": { + "baseName": "show_tick", + "type": "boolean", }, - tickEdge: { - baseName: "tick_edge", - type: "WidgetTickEdge", + "textAlign": { + "baseName": "text_align", + "type": "WidgetTextAlign", }, - tickPos: { - baseName: "tick_pos", - type: "string", + "tickEdge": { + "baseName": "tick_edge", + "type": "WidgetTickEdge", }, - type: { - baseName: "type", - type: "NoteWidgetDefinitionType", - required: true, + "tickPos": { + "baseName": "tick_pos", + "type": "string", }, - verticalAlign: { - baseName: "vertical_align", - type: "WidgetVerticalAlign", + "type": { + "baseName": "type", + "type": "NoteWidgetDefinitionType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "verticalAlign": { + "baseName": "vertical_align", + "type": "WidgetVerticalAlign", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NoteWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NoteWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/NoteWidgetDefinitionType.ts index 9d6ad51da2eb..fb6a715d2b34 100644 --- a/packages/datadog-api-client-v1/models/NoteWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/NoteWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the note widget. - */ +*/ export type NoteWidgetDefinitionType = typeof NOTE | UnparsedObject; -export const NOTE = "note"; +export const NOTE = 'note'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookAbsoluteTime.ts b/packages/datadog-api-client-v1/models/NotebookAbsoluteTime.ts index 5e1faa79b3ea..cda4ec992c3d 100644 --- a/packages/datadog-api-client-v1/models/NotebookAbsoluteTime.ts +++ b/packages/datadog-api-client-v1/models/NotebookAbsoluteTime.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Absolute timeframe. - */ +*/ export class NotebookAbsoluteTime { /** * The end time. - */ + */ "end": Date; /** * Indicates whether the timeframe should be shifted to end at the current time. - */ + */ "live"?: boolean; /** * The start time. - */ + */ "start": Date; /** @@ -39,34 +44,60 @@ export class NotebookAbsoluteTime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - required: true, - format: "date-time", - }, - live: { - baseName: "live", - type: "boolean", + "end": { + "baseName": "end", + "type": "Date", + "required": true, + "format": "date-time", }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", + "live": { + "baseName": "live", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookAbsoluteTime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookAuthor.ts b/packages/datadog-api-client-v1/models/NotebookAuthor.ts index 104bdaecdf0c..2e7bb9996c9f 100644 --- a/packages/datadog-api-client-v1/models/NotebookAuthor.ts +++ b/packages/datadog-api-client-v1/models/NotebookAuthor.ts @@ -4,47 +4,52 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of user object returned by the API. - */ +*/ export class NotebookAuthor { /** * Creation time of the user. - */ + */ "createdAt"?: Date; /** * Whether the user is disabled. - */ + */ "disabled"?: boolean; /** * Email of the user. - */ + */ "email"?: string; /** * Handle of the user. - */ + */ "handle"?: string; /** * URL of the user's icon. - */ + */ "icon"?: string; /** * Name of the user. - */ + */ "name"?: string; /** * Status of the user. - */ + */ "status"?: string; /** * Title of the user. - */ + */ "title"?: string; /** * Whether the user is verified. - */ + */ "verified"?: boolean; /** @@ -63,55 +68,81 @@ export class NotebookAuthor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - disabled: { - baseName: "disabled", - type: "boolean", + "disabled": { + "baseName": "disabled", + "type": "boolean", }, - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - icon: { - baseName: "icon", - type: "string", + "icon": { + "baseName": "icon", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - verified: { - baseName: "verified", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "verified": { + "baseName": "verified", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookAuthor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookCellCreateRequest.ts b/packages/datadog-api-client-v1/models/NotebookCellCreateRequest.ts index e26b13ba5313..60cf936b4f6c 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellCreateRequest.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellCreateRequest.ts @@ -6,20 +6,25 @@ import { NotebookCellCreateRequestAttributes } from "./NotebookCellCreateRequestAttributes"; import { NotebookCellResourceType } from "./NotebookCellResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The description of a notebook cell create request. - */ +*/ export class NotebookCellCreateRequest { /** * The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, * `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) - */ + */ "attributes": NotebookCellCreateRequestAttributes; /** * Type of the Notebook Cell resource. - */ + */ "type": NotebookCellResourceType; /** @@ -31,24 +36,50 @@ export class NotebookCellCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebookCellCreateRequestAttributes", - required: true, - }, - type: { - baseName: "type", - type: "NotebookCellResourceType", - required: true, + "attributes": { + "baseName": "attributes", + "type": "NotebookCellCreateRequestAttributes", + "required": true, }, + "type": { + "baseName": "type", + "type": "NotebookCellResourceType", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookCellCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookCellCreateRequestAttributes.ts b/packages/datadog-api-client-v1/models/NotebookCellCreateRequestAttributes.ts index 1e5bc02f3839..de7d6f4e5351 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellCreateRequestAttributes.ts @@ -10,18 +10,16 @@ import { NotebookMarkdownCellAttributes } from "./NotebookMarkdownCellAttributes import { NotebookTimeseriesCellAttributes } from "./NotebookTimeseriesCellAttributes"; import { NotebookToplistCellAttributes } from "./NotebookToplistCellAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, * `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) - */ +*/ -export type NotebookCellCreateRequestAttributes = - | NotebookMarkdownCellAttributes - | NotebookTimeseriesCellAttributes - | NotebookToplistCellAttributes - | NotebookHeatMapCellAttributes - | NotebookDistributionCellAttributes - | NotebookLogStreamCellAttributes - | UnparsedObject; +export type NotebookCellCreateRequestAttributes = NotebookMarkdownCellAttributes | NotebookTimeseriesCellAttributes | NotebookToplistCellAttributes | NotebookHeatMapCellAttributes | NotebookDistributionCellAttributes | NotebookLogStreamCellAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookCellResourceType.ts b/packages/datadog-api-client-v1/models/NotebookCellResourceType.ts index b7350a45b9c6..554991744012 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellResourceType.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Notebook Cell resource. - */ +*/ export type NotebookCellResourceType = typeof NOTEBOOK_CELLS | UnparsedObject; -export const NOTEBOOK_CELLS = "notebook_cells"; +export const NOTEBOOK_CELLS = 'notebook_cells'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookCellResponse.ts b/packages/datadog-api-client-v1/models/NotebookCellResponse.ts index a16620c2cfa5..ecf2a811f55b 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellResponse.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellResponse.ts @@ -6,24 +6,29 @@ import { NotebookCellResourceType } from "./NotebookCellResourceType"; import { NotebookCellResponseAttributes } from "./NotebookCellResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The description of a notebook cell response. - */ +*/ export class NotebookCellResponse { /** * The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, * `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) - */ + */ "attributes": NotebookCellResponseAttributes; /** * Notebook cell ID. - */ + */ "id": string; /** * Type of the Notebook Cell resource. - */ + */ "type": NotebookCellResourceType; /** @@ -42,33 +47,59 @@ export class NotebookCellResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebookCellResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "NotebookCellResponseAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotebookCellResourceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookCellResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookCellResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookCellResponseAttributes.ts b/packages/datadog-api-client-v1/models/NotebookCellResponseAttributes.ts index d5777da51d3e..bdff1e254fff 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellResponseAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellResponseAttributes.ts @@ -10,18 +10,16 @@ import { NotebookMarkdownCellAttributes } from "./NotebookMarkdownCellAttributes import { NotebookTimeseriesCellAttributes } from "./NotebookTimeseriesCellAttributes"; import { NotebookToplistCellAttributes } from "./NotebookToplistCellAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, * `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) - */ +*/ -export type NotebookCellResponseAttributes = - | NotebookMarkdownCellAttributes - | NotebookTimeseriesCellAttributes - | NotebookToplistCellAttributes - | NotebookHeatMapCellAttributes - | NotebookDistributionCellAttributes - | NotebookLogStreamCellAttributes - | UnparsedObject; +export type NotebookCellResponseAttributes = NotebookMarkdownCellAttributes | NotebookTimeseriesCellAttributes | NotebookToplistCellAttributes | NotebookHeatMapCellAttributes | NotebookDistributionCellAttributes | NotebookLogStreamCellAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookCellTime.ts b/packages/datadog-api-client-v1/models/NotebookCellTime.ts index 6dfb5a1954be..9815e23d0f45 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellTime.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellTime.ts @@ -6,13 +6,15 @@ import { NotebookAbsoluteTime } from "./NotebookAbsoluteTime"; import { NotebookRelativeTime } from "./NotebookRelativeTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Timeframe for the notebook cell. When 'null', the notebook global time is used. - */ +*/ -export type NotebookCellTime = - | NotebookRelativeTime - | NotebookAbsoluteTime - | UnparsedObject; +export type NotebookCellTime = NotebookRelativeTime | NotebookAbsoluteTime | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookCellUpdateRequest.ts b/packages/datadog-api-client-v1/models/NotebookCellUpdateRequest.ts index f5c5825ade2c..8e3bcee66cff 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellUpdateRequest.ts @@ -6,24 +6,29 @@ import { NotebookCellResourceType } from "./NotebookCellResourceType"; import { NotebookCellUpdateRequestAttributes } from "./NotebookCellUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The description of a notebook cell update request. - */ +*/ export class NotebookCellUpdateRequest { /** * The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, * `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) - */ + */ "attributes": NotebookCellUpdateRequestAttributes; /** * Notebook cell ID. - */ + */ "id": string; /** * Type of the Notebook Cell resource. - */ + */ "type": NotebookCellResourceType; /** @@ -42,33 +47,59 @@ export class NotebookCellUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebookCellUpdateRequestAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "NotebookCellUpdateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotebookCellResourceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookCellResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookCellUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookCellUpdateRequestAttributes.ts b/packages/datadog-api-client-v1/models/NotebookCellUpdateRequestAttributes.ts index d7c1a0f19da4..689a09049514 100644 --- a/packages/datadog-api-client-v1/models/NotebookCellUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookCellUpdateRequestAttributes.ts @@ -10,18 +10,16 @@ import { NotebookMarkdownCellAttributes } from "./NotebookMarkdownCellAttributes import { NotebookTimeseriesCellAttributes } from "./NotebookTimeseriesCellAttributes"; import { NotebookToplistCellAttributes } from "./NotebookToplistCellAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, * `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) - */ +*/ -export type NotebookCellUpdateRequestAttributes = - | NotebookMarkdownCellAttributes - | NotebookTimeseriesCellAttributes - | NotebookToplistCellAttributes - | NotebookHeatMapCellAttributes - | NotebookDistributionCellAttributes - | NotebookLogStreamCellAttributes - | UnparsedObject; +export type NotebookCellUpdateRequestAttributes = NotebookMarkdownCellAttributes | NotebookTimeseriesCellAttributes | NotebookToplistCellAttributes | NotebookHeatMapCellAttributes | NotebookDistributionCellAttributes | NotebookLogStreamCellAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookCreateData.ts b/packages/datadog-api-client-v1/models/NotebookCreateData.ts index 83ad0e0de754..46d16cd810ad 100644 --- a/packages/datadog-api-client-v1/models/NotebookCreateData.ts +++ b/packages/datadog-api-client-v1/models/NotebookCreateData.ts @@ -6,19 +6,24 @@ import { NotebookCreateDataAttributes } from "./NotebookCreateDataAttributes"; import { NotebookResourceType } from "./NotebookResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data for a notebook create request. - */ +*/ export class NotebookCreateData { /** * The data attributes of a notebook. - */ + */ "attributes": NotebookCreateDataAttributes; /** * Type of the Notebook resource. - */ + */ "type": NotebookResourceType; /** @@ -37,28 +42,54 @@ export class NotebookCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebookCreateDataAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "NotebookCreateDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotebookResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookCreateDataAttributes.ts b/packages/datadog-api-client-v1/models/NotebookCreateDataAttributes.ts index 0070d6420173..e95647c4ce8d 100644 --- a/packages/datadog-api-client-v1/models/NotebookCreateDataAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookCreateDataAttributes.ts @@ -8,31 +8,36 @@ import { NotebookGlobalTime } from "./NotebookGlobalTime"; import { NotebookMetadata } from "./NotebookMetadata"; import { NotebookStatus } from "./NotebookStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data attributes of a notebook. - */ +*/ export class NotebookCreateDataAttributes { /** * List of cells to display in the notebook. - */ + */ "cells": Array; /** * Metadata associated with the notebook. - */ + */ "metadata"?: NotebookMetadata; /** * The name of the notebook. - */ + */ "name": string; /** * Publication status of the notebook. For now, always "published". - */ + */ "status"?: NotebookStatus; /** * Notebook global timeframe. - */ + */ "time": NotebookGlobalTime; /** @@ -51,41 +56,67 @@ export class NotebookCreateDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cells: { - baseName: "cells", - type: "Array", - required: true, + "cells": { + "baseName": "cells", + "type": "Array", + "required": true, }, - metadata: { - baseName: "metadata", - type: "NotebookMetadata", + "metadata": { + "baseName": "metadata", + "type": "NotebookMetadata", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "NotebookStatus", + "status": { + "baseName": "status", + "type": "NotebookStatus", }, - time: { - baseName: "time", - type: "NotebookGlobalTime", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookGlobalTime", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookCreateDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookCreateRequest.ts b/packages/datadog-api-client-v1/models/NotebookCreateRequest.ts index 3c7c68ed8da1..f4d596d049ad 100644 --- a/packages/datadog-api-client-v1/models/NotebookCreateRequest.ts +++ b/packages/datadog-api-client-v1/models/NotebookCreateRequest.ts @@ -5,15 +5,20 @@ */ import { NotebookCreateData } from "./NotebookCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The description of a notebook create request. - */ +*/ export class NotebookCreateRequest { /** * The data for a notebook create request. - */ + */ "data": NotebookCreateData; /** @@ -32,23 +37,49 @@ export class NotebookCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "NotebookCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "NotebookCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookDistributionCellAttributes.ts b/packages/datadog-api-client-v1/models/NotebookDistributionCellAttributes.ts index 9db4800ab6fe..4202e9a7a425 100644 --- a/packages/datadog-api-client-v1/models/NotebookDistributionCellAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookDistributionCellAttributes.ts @@ -8,29 +8,34 @@ import { NotebookCellTime } from "./NotebookCellTime"; import { NotebookGraphSize } from "./NotebookGraphSize"; import { NotebookSplitBy } from "./NotebookSplitBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook `distribution` cell. - */ +*/ export class NotebookDistributionCellAttributes { /** * The Distribution visualization is another way of showing metrics * aggregated across one or several tags, such as hosts. * Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. - */ + */ "definition": DistributionWidgetDefinition; /** * The size of the graph. - */ + */ "graphSize"?: NotebookGraphSize; /** * Object describing how to split the graph to display multiple visualizations per request. - */ + */ "splitBy"?: NotebookSplitBy; /** * Timeframe for the notebook cell. When 'null', the notebook global time is used. - */ + */ "time"?: NotebookCellTime; /** @@ -49,35 +54,61 @@ export class NotebookDistributionCellAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "DistributionWidgetDefinition", - required: true, + "definition": { + "baseName": "definition", + "type": "DistributionWidgetDefinition", + "required": true, }, - graphSize: { - baseName: "graph_size", - type: "NotebookGraphSize", + "graphSize": { + "baseName": "graph_size", + "type": "NotebookGraphSize", }, - splitBy: { - baseName: "split_by", - type: "NotebookSplitBy", + "splitBy": { + "baseName": "split_by", + "type": "NotebookSplitBy", }, - time: { - baseName: "time", - type: "NotebookCellTime", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookCellTime", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookDistributionCellAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookGlobalTime.ts b/packages/datadog-api-client-v1/models/NotebookGlobalTime.ts index de0a9aa8defb..f7f4200b047c 100644 --- a/packages/datadog-api-client-v1/models/NotebookGlobalTime.ts +++ b/packages/datadog-api-client-v1/models/NotebookGlobalTime.ts @@ -6,13 +6,15 @@ import { NotebookAbsoluteTime } from "./NotebookAbsoluteTime"; import { NotebookRelativeTime } from "./NotebookRelativeTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Notebook global timeframe. - */ +*/ -export type NotebookGlobalTime = - | NotebookRelativeTime - | NotebookAbsoluteTime - | UnparsedObject; +export type NotebookGlobalTime = NotebookRelativeTime | NotebookAbsoluteTime | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookGraphSize.ts b/packages/datadog-api-client-v1/models/NotebookGraphSize.ts index 9c8388626aa5..3b9da657f450 100644 --- a/packages/datadog-api-client-v1/models/NotebookGraphSize.ts +++ b/packages/datadog-api-client-v1/models/NotebookGraphSize.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The size of the graph. - */ +*/ -export type NotebookGraphSize = - | typeof EXTRA_SMALL - | typeof SMALL - | typeof MEDIUM - | typeof LARGE - | typeof EXTRA_LARGE - | UnparsedObject; -export const EXTRA_SMALL = "xs"; -export const SMALL = "s"; -export const MEDIUM = "m"; -export const LARGE = "l"; -export const EXTRA_LARGE = "xl"; +export type NotebookGraphSize = typeof EXTRA_SMALL| typeof SMALL| typeof MEDIUM| typeof LARGE| typeof EXTRA_LARGE | UnparsedObject; +export const EXTRA_SMALL = 'xs'; +export const SMALL = 's'; +export const MEDIUM = 'm'; +export const LARGE = 'l'; +export const EXTRA_LARGE = 'xl'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookHeatMapCellAttributes.ts b/packages/datadog-api-client-v1/models/NotebookHeatMapCellAttributes.ts index 1c37bb9c429d..3061f707d045 100644 --- a/packages/datadog-api-client-v1/models/NotebookHeatMapCellAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookHeatMapCellAttributes.ts @@ -8,27 +8,32 @@ import { NotebookCellTime } from "./NotebookCellTime"; import { NotebookGraphSize } from "./NotebookGraphSize"; import { NotebookSplitBy } from "./NotebookSplitBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook `heatmap` cell. - */ +*/ export class NotebookHeatMapCellAttributes { /** * The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. - */ + */ "definition": HeatMapWidgetDefinition; /** * The size of the graph. - */ + */ "graphSize"?: NotebookGraphSize; /** * Object describing how to split the graph to display multiple visualizations per request. - */ + */ "splitBy"?: NotebookSplitBy; /** * Timeframe for the notebook cell. When 'null', the notebook global time is used. - */ + */ "time"?: NotebookCellTime; /** @@ -47,35 +52,61 @@ export class NotebookHeatMapCellAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "HeatMapWidgetDefinition", - required: true, + "definition": { + "baseName": "definition", + "type": "HeatMapWidgetDefinition", + "required": true, }, - graphSize: { - baseName: "graph_size", - type: "NotebookGraphSize", + "graphSize": { + "baseName": "graph_size", + "type": "NotebookGraphSize", }, - splitBy: { - baseName: "split_by", - type: "NotebookSplitBy", + "splitBy": { + "baseName": "split_by", + "type": "NotebookSplitBy", }, - time: { - baseName: "time", - type: "NotebookCellTime", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookCellTime", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookHeatMapCellAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookLogStreamCellAttributes.ts b/packages/datadog-api-client-v1/models/NotebookLogStreamCellAttributes.ts index 4f30c23cf4c8..d0db5b7681ec 100644 --- a/packages/datadog-api-client-v1/models/NotebookLogStreamCellAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookLogStreamCellAttributes.ts @@ -7,23 +7,28 @@ import { LogStreamWidgetDefinition } from "./LogStreamWidgetDefinition"; import { NotebookCellTime } from "./NotebookCellTime"; import { NotebookGraphSize } from "./NotebookGraphSize"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook `log_stream` cell. - */ +*/ export class NotebookLogStreamCellAttributes { /** * The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. - */ + */ "definition": LogStreamWidgetDefinition; /** * The size of the graph. - */ + */ "graphSize"?: NotebookGraphSize; /** * Timeframe for the notebook cell. When 'null', the notebook global time is used. - */ + */ "time"?: NotebookCellTime; /** @@ -42,31 +47,57 @@ export class NotebookLogStreamCellAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "LogStreamWidgetDefinition", - required: true, - }, - graphSize: { - baseName: "graph_size", - type: "NotebookGraphSize", + "definition": { + "baseName": "definition", + "type": "LogStreamWidgetDefinition", + "required": true, }, - time: { - baseName: "time", - type: "NotebookCellTime", + "graphSize": { + "baseName": "graph_size", + "type": "NotebookGraphSize", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookCellTime", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookLogStreamCellAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookMarkdownCellAttributes.ts b/packages/datadog-api-client-v1/models/NotebookMarkdownCellAttributes.ts index 5e2c649016a4..fd2f6529acc7 100644 --- a/packages/datadog-api-client-v1/models/NotebookMarkdownCellAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookMarkdownCellAttributes.ts @@ -5,15 +5,20 @@ */ import { NotebookMarkdownCellDefinition } from "./NotebookMarkdownCellDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook `markdown` cell. - */ +*/ export class NotebookMarkdownCellAttributes { /** * Text in a notebook is formatted with [Markdown](https://daringfireball.net/projects/markdown/), which enables the use of headings, subheadings, links, images, lists, and code blocks. - */ + */ "definition": NotebookMarkdownCellDefinition; /** @@ -32,23 +37,49 @@ export class NotebookMarkdownCellAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "NotebookMarkdownCellDefinition", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "definition": { + "baseName": "definition", + "type": "NotebookMarkdownCellDefinition", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookMarkdownCellAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinition.ts b/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinition.ts index 2b87bf4eec8c..be0e3a15d4a1 100644 --- a/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinition.ts +++ b/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinition.ts @@ -5,19 +5,24 @@ */ import { NotebookMarkdownCellDefinitionType } from "./NotebookMarkdownCellDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Text in a notebook is formatted with [Markdown](https://daringfireball.net/projects/markdown/), which enables the use of headings, subheadings, links, images, lists, and code blocks. - */ +*/ export class NotebookMarkdownCellDefinition { /** * The markdown content. - */ + */ "text": string; /** * Type of the markdown cell. - */ + */ "type": NotebookMarkdownCellDefinitionType; /** @@ -36,28 +41,54 @@ export class NotebookMarkdownCellDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - text: { - baseName: "text", - type: "string", - required: true, + "text": { + "baseName": "text", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "NotebookMarkdownCellDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookMarkdownCellDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookMarkdownCellDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinitionType.ts b/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinitionType.ts index 314f6846363c..7daea96aa679 100644 --- a/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/NotebookMarkdownCellDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the markdown cell. - */ +*/ -export type NotebookMarkdownCellDefinitionType = - | typeof MARKDOWN - | UnparsedObject; -export const MARKDOWN = "markdown"; +export type NotebookMarkdownCellDefinitionType = typeof MARKDOWN | UnparsedObject; +export const MARKDOWN = 'markdown'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookMetadata.ts b/packages/datadog-api-client-v1/models/NotebookMetadata.ts index 6fe5072341b4..a74cd4013911 100644 --- a/packages/datadog-api-client-v1/models/NotebookMetadata.ts +++ b/packages/datadog-api-client-v1/models/NotebookMetadata.ts @@ -5,23 +5,28 @@ */ import { NotebookMetadataType } from "./NotebookMetadataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata associated with the notebook. - */ +*/ export class NotebookMetadata { /** * Whether or not the notebook is a template. - */ + */ "isTemplate"?: boolean; /** * Whether or not the notebook takes snapshot image backups of the notebook's fixed-time graphs. - */ + */ "takeSnapshots"?: boolean; /** * Metadata type of the notebook. - */ + */ "type"?: NotebookMetadataType; /** @@ -40,30 +45,56 @@ export class NotebookMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isTemplate: { - baseName: "is_template", - type: "boolean", - }, - takeSnapshots: { - baseName: "take_snapshots", - type: "boolean", + "isTemplate": { + "baseName": "is_template", + "type": "boolean", }, - type: { - baseName: "type", - type: "NotebookMetadataType", + "takeSnapshots": { + "baseName": "take_snapshots", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookMetadataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookMetadataType.ts b/packages/datadog-api-client-v1/models/NotebookMetadataType.ts index 7b8fc1cf2167..1c5fe88315ae 100644 --- a/packages/datadog-api-client-v1/models/NotebookMetadataType.ts +++ b/packages/datadog-api-client-v1/models/NotebookMetadataType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Metadata type of the notebook. - */ +*/ -export type NotebookMetadataType = - | typeof POSTMORTEM - | typeof RUNBOOK - | typeof INVESTIGATION - | typeof DOCUMENTATION - | typeof REPORT - | UnparsedObject; -export const POSTMORTEM = "postmortem"; -export const RUNBOOK = "runbook"; -export const INVESTIGATION = "investigation"; -export const DOCUMENTATION = "documentation"; -export const REPORT = "report"; +export type NotebookMetadataType = typeof POSTMORTEM| typeof RUNBOOK| typeof INVESTIGATION| typeof DOCUMENTATION| typeof REPORT | UnparsedObject; +export const POSTMORTEM = 'postmortem'; +export const RUNBOOK = 'runbook'; +export const INVESTIGATION = 'investigation'; +export const DOCUMENTATION = 'documentation'; +export const REPORT = 'report'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookRelativeTime.ts b/packages/datadog-api-client-v1/models/NotebookRelativeTime.ts index 7fc749174e26..2602f31a5f6f 100644 --- a/packages/datadog-api-client-v1/models/NotebookRelativeTime.ts +++ b/packages/datadog-api-client-v1/models/NotebookRelativeTime.ts @@ -5,15 +5,20 @@ */ import { WidgetLiveSpan } from "./WidgetLiveSpan"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relative timeframe. - */ +*/ export class NotebookRelativeTime { /** * The available timeframes depend on the widget you are using. - */ + */ "liveSpan": WidgetLiveSpan; /** @@ -32,23 +37,49 @@ export class NotebookRelativeTime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - liveSpan: { - baseName: "live_span", - type: "WidgetLiveSpan", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "liveSpan": { + "baseName": "live_span", + "type": "WidgetLiveSpan", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookRelativeTime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookResourceType.ts b/packages/datadog-api-client-v1/models/NotebookResourceType.ts index 1ecfb59e5ac3..f4e349c2eabd 100644 --- a/packages/datadog-api-client-v1/models/NotebookResourceType.ts +++ b/packages/datadog-api-client-v1/models/NotebookResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Notebook resource. - */ +*/ export type NotebookResourceType = typeof NOTEBOOKS | UnparsedObject; -export const NOTEBOOKS = "notebooks"; +export const NOTEBOOKS = 'notebooks'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookResponse.ts b/packages/datadog-api-client-v1/models/NotebookResponse.ts index 9bc75385b68e..c1a0d26127c1 100644 --- a/packages/datadog-api-client-v1/models/NotebookResponse.ts +++ b/packages/datadog-api-client-v1/models/NotebookResponse.ts @@ -5,15 +5,20 @@ */ import { NotebookResponseData } from "./NotebookResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The description of a notebook response. - */ +*/ export class NotebookResponse { /** * The data for a notebook. - */ + */ "data"?: NotebookResponseData; /** @@ -32,22 +37,48 @@ export class NotebookResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "NotebookResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "NotebookResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookResponseData.ts b/packages/datadog-api-client-v1/models/NotebookResponseData.ts index d8dd054405c7..e7c3139db35c 100644 --- a/packages/datadog-api-client-v1/models/NotebookResponseData.ts +++ b/packages/datadog-api-client-v1/models/NotebookResponseData.ts @@ -6,23 +6,28 @@ import { NotebookResourceType } from "./NotebookResourceType"; import { NotebookResponseDataAttributes } from "./NotebookResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data for a notebook. - */ +*/ export class NotebookResponseData { /** * The attributes of a notebook. - */ + */ "attributes": NotebookResponseDataAttributes; /** * Unique notebook ID, assigned when you create the notebook. - */ + */ "id": number; /** * Type of the Notebook resource. - */ + */ "type": NotebookResourceType; /** @@ -41,34 +46,60 @@ export class NotebookResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebookResponseDataAttributes", - required: true, - }, - id: { - baseName: "id", - type: "number", - required: true, - format: "int64", + "attributes": { + "baseName": "attributes", + "type": "NotebookResponseDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotebookResourceType", - required: true, + "id": { + "baseName": "id", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookResponseDataAttributes.ts b/packages/datadog-api-client-v1/models/NotebookResponseDataAttributes.ts index c58118e8b431..4cd825ad88d8 100644 --- a/packages/datadog-api-client-v1/models/NotebookResponseDataAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookResponseDataAttributes.ts @@ -9,43 +9,48 @@ import { NotebookGlobalTime } from "./NotebookGlobalTime"; import { NotebookMetadata } from "./NotebookMetadata"; import { NotebookStatus } from "./NotebookStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook. - */ +*/ export class NotebookResponseDataAttributes { /** * Attributes of user object returned by the API. - */ + */ "author"?: NotebookAuthor; /** * List of cells to display in the notebook. - */ + */ "cells": Array; /** * UTC time stamp for when the notebook was created. - */ + */ "created"?: Date; /** * Metadata associated with the notebook. - */ + */ "metadata"?: NotebookMetadata; /** * UTC time stamp for when the notebook was last modified. - */ + */ "modified"?: Date; /** * The name of the notebook. - */ + */ "name": string; /** * Publication status of the notebook. For now, always "published". - */ + */ "status"?: NotebookStatus; /** * Notebook global timeframe. - */ + */ "time": NotebookGlobalTime; /** @@ -64,55 +69,81 @@ export class NotebookResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "NotebookAuthor", + "author": { + "baseName": "author", + "type": "NotebookAuthor", }, - cells: { - baseName: "cells", - type: "Array", - required: true, + "cells": { + "baseName": "cells", + "type": "Array", + "required": true, }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - metadata: { - baseName: "metadata", - type: "NotebookMetadata", + "metadata": { + "baseName": "metadata", + "type": "NotebookMetadata", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "NotebookStatus", + "status": { + "baseName": "status", + "type": "NotebookStatus", }, - time: { - baseName: "time", - type: "NotebookGlobalTime", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookGlobalTime", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookSplitBy.ts b/packages/datadog-api-client-v1/models/NotebookSplitBy.ts index 565c53426328..5afdc38ad56b 100644 --- a/packages/datadog-api-client-v1/models/NotebookSplitBy.ts +++ b/packages/datadog-api-client-v1/models/NotebookSplitBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing how to split the graph to display multiple visualizations per request. - */ +*/ export class NotebookSplitBy { /** * Keys to split on. - */ + */ "keys": Array; /** * Tags to split on. - */ + */ "tags": Array; /** @@ -35,28 +40,54 @@ export class NotebookSplitBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - keys: { - baseName: "keys", - type: "Array", - required: true, + "keys": { + "baseName": "keys", + "type": "Array", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookSplitBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookStatus.ts b/packages/datadog-api-client-v1/models/NotebookStatus.ts index 24c279c9b47b..d2339efc9c51 100644 --- a/packages/datadog-api-client-v1/models/NotebookStatus.ts +++ b/packages/datadog-api-client-v1/models/NotebookStatus.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Publication status of the notebook. For now, always "published". - */ +*/ export type NotebookStatus = typeof PUBLISHED | UnparsedObject; -export const PUBLISHED = "published"; +export const PUBLISHED = 'published'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookTimeseriesCellAttributes.ts b/packages/datadog-api-client-v1/models/NotebookTimeseriesCellAttributes.ts index de7c39e5978a..4ed0ca48fab1 100644 --- a/packages/datadog-api-client-v1/models/NotebookTimeseriesCellAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookTimeseriesCellAttributes.ts @@ -8,27 +8,32 @@ import { NotebookGraphSize } from "./NotebookGraphSize"; import { NotebookSplitBy } from "./NotebookSplitBy"; import { TimeseriesWidgetDefinition } from "./TimeseriesWidgetDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook `timeseries` cell. - */ +*/ export class NotebookTimeseriesCellAttributes { /** * The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. - */ + */ "definition": TimeseriesWidgetDefinition; /** * The size of the graph. - */ + */ "graphSize"?: NotebookGraphSize; /** * Object describing how to split the graph to display multiple visualizations per request. - */ + */ "splitBy"?: NotebookSplitBy; /** * Timeframe for the notebook cell. When 'null', the notebook global time is used. - */ + */ "time"?: NotebookCellTime; /** @@ -47,35 +52,61 @@ export class NotebookTimeseriesCellAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "TimeseriesWidgetDefinition", - required: true, + "definition": { + "baseName": "definition", + "type": "TimeseriesWidgetDefinition", + "required": true, }, - graphSize: { - baseName: "graph_size", - type: "NotebookGraphSize", + "graphSize": { + "baseName": "graph_size", + "type": "NotebookGraphSize", }, - splitBy: { - baseName: "split_by", - type: "NotebookSplitBy", + "splitBy": { + "baseName": "split_by", + "type": "NotebookSplitBy", }, - time: { - baseName: "time", - type: "NotebookCellTime", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookCellTime", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookTimeseriesCellAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookToplistCellAttributes.ts b/packages/datadog-api-client-v1/models/NotebookToplistCellAttributes.ts index a617a1a2acf5..7a66cc7a11ea 100644 --- a/packages/datadog-api-client-v1/models/NotebookToplistCellAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookToplistCellAttributes.ts @@ -8,27 +8,32 @@ import { NotebookGraphSize } from "./NotebookGraphSize"; import { NotebookSplitBy } from "./NotebookSplitBy"; import { ToplistWidgetDefinition } from "./ToplistWidgetDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook `toplist` cell. - */ +*/ export class NotebookToplistCellAttributes { /** * The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. - */ + */ "definition": ToplistWidgetDefinition; /** * The size of the graph. - */ + */ "graphSize"?: NotebookGraphSize; /** * Object describing how to split the graph to display multiple visualizations per request. - */ + */ "splitBy"?: NotebookSplitBy; /** * Timeframe for the notebook cell. When 'null', the notebook global time is used. - */ + */ "time"?: NotebookCellTime; /** @@ -47,35 +52,61 @@ export class NotebookToplistCellAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "ToplistWidgetDefinition", - required: true, + "definition": { + "baseName": "definition", + "type": "ToplistWidgetDefinition", + "required": true, }, - graphSize: { - baseName: "graph_size", - type: "NotebookGraphSize", + "graphSize": { + "baseName": "graph_size", + "type": "NotebookGraphSize", }, - splitBy: { - baseName: "split_by", - type: "NotebookSplitBy", + "splitBy": { + "baseName": "split_by", + "type": "NotebookSplitBy", }, - time: { - baseName: "time", - type: "NotebookCellTime", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookCellTime", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookToplistCellAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookUpdateCell.ts b/packages/datadog-api-client-v1/models/NotebookUpdateCell.ts index 3248dac8c186..a1430af03320 100644 --- a/packages/datadog-api-client-v1/models/NotebookUpdateCell.ts +++ b/packages/datadog-api-client-v1/models/NotebookUpdateCell.ts @@ -6,14 +6,16 @@ import { NotebookCellCreateRequest } from "./NotebookCellCreateRequest"; import { NotebookCellUpdateRequest } from "./NotebookCellUpdateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Updating a notebook can either insert new cell(s) or update existing cell(s) by including the cell `id`. * To delete existing cell(s), simply omit it from the list of cells. - */ +*/ -export type NotebookUpdateCell = - | NotebookCellCreateRequest - | NotebookCellUpdateRequest - | UnparsedObject; +export type NotebookUpdateCell = NotebookCellCreateRequest | NotebookCellUpdateRequest | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotebookUpdateData.ts b/packages/datadog-api-client-v1/models/NotebookUpdateData.ts index 5a45282c040c..a400a5201f8f 100644 --- a/packages/datadog-api-client-v1/models/NotebookUpdateData.ts +++ b/packages/datadog-api-client-v1/models/NotebookUpdateData.ts @@ -6,19 +6,24 @@ import { NotebookResourceType } from "./NotebookResourceType"; import { NotebookUpdateDataAttributes } from "./NotebookUpdateDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data for a notebook update request. - */ +*/ export class NotebookUpdateData { /** * The data attributes of a notebook. - */ + */ "attributes": NotebookUpdateDataAttributes; /** * Type of the Notebook resource. - */ + */ "type": NotebookResourceType; /** @@ -37,28 +42,54 @@ export class NotebookUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebookUpdateDataAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "NotebookUpdateDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotebookResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookUpdateDataAttributes.ts b/packages/datadog-api-client-v1/models/NotebookUpdateDataAttributes.ts index cc839394f90c..d78e33399678 100644 --- a/packages/datadog-api-client-v1/models/NotebookUpdateDataAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebookUpdateDataAttributes.ts @@ -8,31 +8,36 @@ import { NotebookMetadata } from "./NotebookMetadata"; import { NotebookStatus } from "./NotebookStatus"; import { NotebookUpdateCell } from "./NotebookUpdateCell"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data attributes of a notebook. - */ +*/ export class NotebookUpdateDataAttributes { /** * List of cells to display in the notebook. - */ + */ "cells": Array; /** * Metadata associated with the notebook. - */ + */ "metadata"?: NotebookMetadata; /** * The name of the notebook. - */ + */ "name": string; /** * Publication status of the notebook. For now, always "published". - */ + */ "status"?: NotebookStatus; /** * Notebook global timeframe. - */ + */ "time": NotebookGlobalTime; /** @@ -51,41 +56,67 @@ export class NotebookUpdateDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cells: { - baseName: "cells", - type: "Array", - required: true, + "cells": { + "baseName": "cells", + "type": "Array", + "required": true, }, - metadata: { - baseName: "metadata", - type: "NotebookMetadata", + "metadata": { + "baseName": "metadata", + "type": "NotebookMetadata", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "NotebookStatus", + "status": { + "baseName": "status", + "type": "NotebookStatus", }, - time: { - baseName: "time", - type: "NotebookGlobalTime", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookGlobalTime", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookUpdateDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebookUpdateRequest.ts b/packages/datadog-api-client-v1/models/NotebookUpdateRequest.ts index 2a8839ed0e4b..8149658e49fc 100644 --- a/packages/datadog-api-client-v1/models/NotebookUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/NotebookUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { NotebookUpdateData } from "./NotebookUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The description of a notebook update request. - */ +*/ export class NotebookUpdateRequest { /** * The data for a notebook update request. - */ + */ "data": NotebookUpdateData; /** @@ -32,23 +37,49 @@ export class NotebookUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "NotebookUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "NotebookUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebooksResponse.ts b/packages/datadog-api-client-v1/models/NotebooksResponse.ts index 61dc4455f6ae..ec3384d54ac5 100644 --- a/packages/datadog-api-client-v1/models/NotebooksResponse.ts +++ b/packages/datadog-api-client-v1/models/NotebooksResponse.ts @@ -6,19 +6,24 @@ import { NotebooksResponseData } from "./NotebooksResponseData"; import { NotebooksResponseMeta } from "./NotebooksResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Notebooks get all response. - */ +*/ export class NotebooksResponse { /** * List of notebook definitions. - */ + */ "data"?: Array; /** * Searches metadata returned by the API. - */ + */ "meta"?: NotebooksResponseMeta; /** @@ -37,26 +42,52 @@ export class NotebooksResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "NotebooksResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "NotebooksResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebooksResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebooksResponseData.ts b/packages/datadog-api-client-v1/models/NotebooksResponseData.ts index 7949628d9964..1c00184e9941 100644 --- a/packages/datadog-api-client-v1/models/NotebooksResponseData.ts +++ b/packages/datadog-api-client-v1/models/NotebooksResponseData.ts @@ -6,23 +6,28 @@ import { NotebookResourceType } from "./NotebookResourceType"; import { NotebooksResponseDataAttributes } from "./NotebooksResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data for a notebook in get all response. - */ +*/ export class NotebooksResponseData { /** * The attributes of a notebook in get all response. - */ + */ "attributes": NotebooksResponseDataAttributes; /** * Unique notebook ID, assigned when you create the notebook. - */ + */ "id": number; /** * Type of the Notebook resource. - */ + */ "type": NotebookResourceType; /** @@ -41,34 +46,60 @@ export class NotebooksResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotebooksResponseDataAttributes", - required: true, - }, - id: { - baseName: "id", - type: "number", - required: true, - format: "int64", + "attributes": { + "baseName": "attributes", + "type": "NotebooksResponseDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotebookResourceType", - required: true, + "id": { + "baseName": "id", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotebookResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebooksResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebooksResponseDataAttributes.ts b/packages/datadog-api-client-v1/models/NotebooksResponseDataAttributes.ts index 09ff2c7bbfd3..4b4509de3cdb 100644 --- a/packages/datadog-api-client-v1/models/NotebooksResponseDataAttributes.ts +++ b/packages/datadog-api-client-v1/models/NotebooksResponseDataAttributes.ts @@ -9,43 +9,48 @@ import { NotebookGlobalTime } from "./NotebookGlobalTime"; import { NotebookMetadata } from "./NotebookMetadata"; import { NotebookStatus } from "./NotebookStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a notebook in get all response. - */ +*/ export class NotebooksResponseDataAttributes { /** * Attributes of user object returned by the API. - */ + */ "author"?: NotebookAuthor; /** * List of cells to display in the notebook. - */ + */ "cells"?: Array; /** * UTC time stamp for when the notebook was created. - */ + */ "created"?: Date; /** * Metadata associated with the notebook. - */ + */ "metadata"?: NotebookMetadata; /** * UTC time stamp for when the notebook was last modified. - */ + */ "modified"?: Date; /** * The name of the notebook. - */ + */ "name": string; /** * Publication status of the notebook. For now, always "published". - */ + */ "status"?: NotebookStatus; /** * Notebook global timeframe. - */ + */ "time"?: NotebookGlobalTime; /** @@ -64,53 +69,79 @@ export class NotebooksResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "NotebookAuthor", + "author": { + "baseName": "author", + "type": "NotebookAuthor", }, - cells: { - baseName: "cells", - type: "Array", + "cells": { + "baseName": "cells", + "type": "Array", }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - metadata: { - baseName: "metadata", - type: "NotebookMetadata", + "metadata": { + "baseName": "metadata", + "type": "NotebookMetadata", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "NotebookStatus", + "status": { + "baseName": "status", + "type": "NotebookStatus", }, - time: { - baseName: "time", - type: "NotebookGlobalTime", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "NotebookGlobalTime", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebooksResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebooksResponseMeta.ts b/packages/datadog-api-client-v1/models/NotebooksResponseMeta.ts index 030637dd271e..89cfd280f9eb 100644 --- a/packages/datadog-api-client-v1/models/NotebooksResponseMeta.ts +++ b/packages/datadog-api-client-v1/models/NotebooksResponseMeta.ts @@ -5,15 +5,20 @@ */ import { NotebooksResponsePage } from "./NotebooksResponsePage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Searches metadata returned by the API. - */ +*/ export class NotebooksResponseMeta { /** * Pagination metadata returned by the API. - */ + */ "page"?: NotebooksResponsePage; /** @@ -32,22 +37,48 @@ export class NotebooksResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "NotebooksResponsePage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "NotebooksResponsePage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebooksResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotebooksResponsePage.ts b/packages/datadog-api-client-v1/models/NotebooksResponsePage.ts index c481dc854648..0548c382a39b 100644 --- a/packages/datadog-api-client-v1/models/NotebooksResponsePage.ts +++ b/packages/datadog-api-client-v1/models/NotebooksResponsePage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata returned by the API. - */ +*/ export class NotebooksResponsePage { /** * The total number of notebooks that would be returned if the request was not filtered by `start` and `count` parameters. - */ + */ "totalCount"?: number; /** * The total number of notebooks returned. - */ + */ "totalFilteredCount"?: number; /** @@ -35,28 +40,54 @@ export class NotebooksResponsePage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebooksResponsePage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NotifyEndState.ts b/packages/datadog-api-client-v1/models/NotifyEndState.ts index 1a5a0d97547e..119a56d9b07c 100644 --- a/packages/datadog-api-client-v1/models/NotifyEndState.ts +++ b/packages/datadog-api-client-v1/models/NotifyEndState.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A notification end state. - */ +*/ -export type NotifyEndState = - | typeof ALERT - | typeof NO_DATA - | typeof WARN - | UnparsedObject; -export const ALERT = "alert"; -export const NO_DATA = "no data"; -export const WARN = "warn"; +export type NotifyEndState = typeof ALERT| typeof NO_DATA| typeof WARN | UnparsedObject; +export const ALERT = 'alert'; +export const NO_DATA = 'no data'; +export const WARN = 'warn'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NotifyEndType.ts b/packages/datadog-api-client-v1/models/NotifyEndType.ts index a0dd231f5e64..8b41d4261498 100644 --- a/packages/datadog-api-client-v1/models/NotifyEndType.ts +++ b/packages/datadog-api-client-v1/models/NotifyEndType.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A notification end type. - */ +*/ -export type NotifyEndType = typeof CANCELED | typeof EXPIRED | UnparsedObject; -export const CANCELED = "canceled"; -export const EXPIRED = "expired"; +export type NotifyEndType = typeof CANCELED| typeof EXPIRED | UnparsedObject; +export const CANCELED = 'canceled'; +export const EXPIRED = 'expired'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NumberFormatUnit.ts b/packages/datadog-api-client-v1/models/NumberFormatUnit.ts index 56fa46ede03e..77c642ee7ecc 100644 --- a/packages/datadog-api-client-v1/models/NumberFormatUnit.ts +++ b/packages/datadog-api-client-v1/models/NumberFormatUnit.ts @@ -6,13 +6,15 @@ import { NumberFormatUnitCanonical } from "./NumberFormatUnitCanonical"; import { NumberFormatUnitCustom } from "./NumberFormatUnitCustom"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Number format unit. - */ +*/ -export type NumberFormatUnit = - | NumberFormatUnitCanonical - | NumberFormatUnitCustom - | UnparsedObject; +export type NumberFormatUnit = NumberFormatUnitCanonical | NumberFormatUnitCustom | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NumberFormatUnitCanonical.ts b/packages/datadog-api-client-v1/models/NumberFormatUnitCanonical.ts index fb0eb2f29102..4511cd3987f4 100644 --- a/packages/datadog-api-client-v1/models/NumberFormatUnitCanonical.ts +++ b/packages/datadog-api-client-v1/models/NumberFormatUnitCanonical.ts @@ -5,23 +5,28 @@ */ import { NumberFormatUnitScaleType } from "./NumberFormatUnitScaleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Canonical unit. - */ +*/ export class NumberFormatUnitCanonical { /** * The name of the unit per item. - */ + */ "perUnitName"?: string; /** * The type of unit scale. - */ + */ "type"?: NumberFormatUnitScaleType; /** * The name of the unit. - */ + */ "unitName"?: string; /** @@ -40,30 +45,56 @@ export class NumberFormatUnitCanonical { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - perUnitName: { - baseName: "per_unit_name", - type: "string", - }, - type: { - baseName: "type", - type: "NumberFormatUnitScaleType", + "perUnitName": { + "baseName": "per_unit_name", + "type": "string", }, - unitName: { - baseName: "unit_name", - type: "string", + "type": { + "baseName": "type", + "type": "NumberFormatUnitScaleType", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unitName": { + "baseName": "unit_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NumberFormatUnitCanonical.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NumberFormatUnitCustom.ts b/packages/datadog-api-client-v1/models/NumberFormatUnitCustom.ts index 42632b251987..609b69124cdc 100644 --- a/packages/datadog-api-client-v1/models/NumberFormatUnitCustom.ts +++ b/packages/datadog-api-client-v1/models/NumberFormatUnitCustom.ts @@ -5,19 +5,24 @@ */ import { NumberFormatUnitCustomType } from "./NumberFormatUnitCustomType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Custom unit. - */ +*/ export class NumberFormatUnitCustom { /** * The label for the custom unit. - */ + */ "label"?: string; /** * The type of custom unit. - */ + */ "type"?: NumberFormatUnitCustomType; /** @@ -36,26 +41,52 @@ export class NumberFormatUnitCustom { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - label: { - baseName: "label", - type: "string", + "label": { + "baseName": "label", + "type": "string", }, - type: { - baseName: "type", - type: "NumberFormatUnitCustomType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NumberFormatUnitCustomType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NumberFormatUnitCustom.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NumberFormatUnitCustomType.ts b/packages/datadog-api-client-v1/models/NumberFormatUnitCustomType.ts index 5a40271c18d7..cd21fd28a80a 100644 --- a/packages/datadog-api-client-v1/models/NumberFormatUnitCustomType.ts +++ b/packages/datadog-api-client-v1/models/NumberFormatUnitCustomType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of custom unit. - */ +*/ -export type NumberFormatUnitCustomType = - | typeof CUSTOM_UNIT_LABEL - | UnparsedObject; -export const CUSTOM_UNIT_LABEL = "custom_unit_label"; +export type NumberFormatUnitCustomType = typeof CUSTOM_UNIT_LABEL | UnparsedObject; +export const CUSTOM_UNIT_LABEL = 'custom_unit_label'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/NumberFormatUnitScale.ts b/packages/datadog-api-client-v1/models/NumberFormatUnitScale.ts index 2fcb807092fa..8e752b311976 100644 --- a/packages/datadog-api-client-v1/models/NumberFormatUnitScale.ts +++ b/packages/datadog-api-client-v1/models/NumberFormatUnitScale.ts @@ -5,19 +5,24 @@ */ import { NumberFormatUnitScaleType } from "./NumberFormatUnitScaleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `NumberFormatUnitScale` object. - */ +*/ export class NumberFormatUnitScale { /** * The type of unit scale. - */ + */ "type"?: NumberFormatUnitScaleType; /** * The name of the unit. - */ + */ "unitName"?: string; /** @@ -36,26 +41,52 @@ export class NumberFormatUnitScale { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "NumberFormatUnitScaleType", + "type": { + "baseName": "type", + "type": "NumberFormatUnitScaleType", }, - unitName: { - baseName: "unit_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unitName": { + "baseName": "unit_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NumberFormatUnitScale.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/NumberFormatUnitScaleType.ts b/packages/datadog-api-client-v1/models/NumberFormatUnitScaleType.ts index 71b73b463222..af9a66126106 100644 --- a/packages/datadog-api-client-v1/models/NumberFormatUnitScaleType.ts +++ b/packages/datadog-api-client-v1/models/NumberFormatUnitScaleType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of unit scale. - */ +*/ export type NumberFormatUnitScaleType = typeof CANONICAL_UNIT | UnparsedObject; -export const CANONICAL_UNIT = "canonical_unit"; +export const CANONICAL_UNIT = 'canonical_unit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index bad96fbe0096..24f5c78518fa 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -1,3 +1,4 @@ + import { APIErrorResponse } from "./APIErrorResponse"; import { AWSAccount } from "./AWSAccount"; import { AWSAccountAndLambdaRequest } from "./AWSAccountAndLambdaRequest"; @@ -637,11 +638,7 @@ import { WidgetNumberFormat } from "./WidgetNumberFormat"; import { WidgetRequestStyle } from "./WidgetRequestStyle"; import { WidgetSortBy } from "./WidgetSortBy"; import { WidgetStyle } from "./WidgetStyle"; -import { - dateFromRFC3339String, - dateToRFC3339String, - UnparsedObject, -} from "../../datadog-api-client-common/util"; +import { dateFromRFC3339String, dateToRFC3339String, UnparsedObject } from "../../datadog-api-client-common/util"; import { logger } from "../../../logger"; const primitives = [ @@ -651,7 +648,7 @@ const primitives = [ "integer", "long", "float", - "number", + "number" ]; const ARRAY_PREFIX = "Array<"; @@ -661,1851 +658,931 @@ const TUPLE_PREFIX = "["; const supportedMediaTypes: { [mediaType: string]: number } = { "application/json": Infinity, "text/json": 100, - "application/octet-stream": 0, -}; + "application/octet-stream": 0 +} -const enumsMap: { [key: string]: any[] } = { - AWSEventBridgeCreateStatus: ["created"], - AWSEventBridgeDeleteStatus: ["empty"], - AWSNamespace: [ - "elb", - "application_elb", - "sqs", - "rds", - "custom", - "network_elb", - "lambda", - "step_functions", - ], - AccessRole: ["st", "adm", "ro", "ERROR"], - AlertGraphWidgetDefinitionType: ["alert_graph"], - AlertValueWidgetDefinitionType: ["alert_value"], - ApmStatsQueryRowType: ["service", "resource", "span"], - ChangeWidgetDefinitionType: ["change"], - CheckStatusWidgetDefinitionType: ["check_status"], - ContentEncoding: ["gzip", "deflate"], - DashboardGlobalTimeLiveSpan: [ - "15m", - "1h", - "4h", - "1d", - "2d", - "1w", - "1mo", - "3mo", - ], - DashboardInviteType: ["public_dashboard_invitation"], - DashboardLayoutType: ["ordered", "free"], - DashboardReflowType: ["auto", "fixed"], - DashboardResourceType: ["dashboard"], - DashboardShareType: ["open", "invite", "embed"], - DashboardType: ["custom_timeboard", "custom_screenboard"], - DistributionPointsContentEncoding: ["deflate"], - DistributionPointsType: ["distribution"], - DistributionWidgetDefinitionType: ["distribution"], - DistributionWidgetHistogramRequestType: ["histogram"], - EventAlertType: [ - "error", - "warning", - "info", - "success", - "user_update", - "recommendation", - "snapshot", - ], - EventPriority: ["normal", "low"], - EventStreamWidgetDefinitionType: ["event_stream"], - EventTimelineWidgetDefinitionType: ["event_timeline"], - FormulaAndFunctionApmDependencyStatName: [ - "avg_duration", - "avg_root_duration", - "avg_spans_per_trace", - "error_rate", - "pct_exec_time", - "pct_of_traces", - "total_traces_count", - ], - FormulaAndFunctionApmDependencyStatsDataSource: ["apm_dependency_stats"], - FormulaAndFunctionApmResourceStatName: [ - "errors", - "error_rate", - "hits", - "latency_avg", - "latency_distribution", - "latency_max", - "latency_p50", - "latency_p75", - "latency_p90", - "latency_p95", - "latency_p99", - ], - FormulaAndFunctionApmResourceStatsDataSource: ["apm_resource_stats"], - FormulaAndFunctionCloudCostDataSource: ["cloud_cost"], - FormulaAndFunctionEventAggregation: [ - "count", - "cardinality", - "median", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - ], - FormulaAndFunctionEventsDataSource: [ - "logs", - "spans", - "network", - "rum", - "security_signals", - "profiles", - "audit", - "events", - "ci_tests", - "ci_pipelines", - "incident_analytics", - ], - FormulaAndFunctionMetricAggregation: [ - "avg", - "min", - "max", - "sum", - "last", - "area", - "l2norm", - "percentile", - ], - FormulaAndFunctionMetricDataSource: ["metrics"], - FormulaAndFunctionProcessQueryDataSource: ["process", "container"], - FormulaAndFunctionResponseFormat: ["timeseries", "scalar", "event_list"], - FormulaAndFunctionSLODataSource: ["slo"], - FormulaAndFunctionSLOGroupMode: ["overall", "components"], - FormulaAndFunctionSLOMeasure: [ - "good_events", - "bad_events", - "good_minutes", - "bad_minutes", - "slo_status", - "error_budget_remaining", - "burn_rate", - "error_budget_burndown", - ], - FormulaAndFunctionSLOQueryType: ["metric", "time_slice"], - FormulaType: ["formula"], - FreeTextWidgetDefinitionType: ["free_text"], - FunnelRequestType: ["funnel"], - FunnelSource: ["rum"], - FunnelWidgetDefinitionType: ["funnel"], - GeomapWidgetDefinitionType: ["geomap"], - GroupType: ["group"], - GroupWidgetDefinitionType: ["group"], - HeatMapWidgetDefinitionType: ["heatmap"], - HostMapWidgetDefinitionType: ["hostmap"], - HourlyUsageAttributionUsageType: [ - "api_usage", - "apm_fargate_usage", - "apm_host_usage", - "apm_usm_usage", - "appsec_fargate_usage", - "appsec_usage", - "asm_serverless_traced_invocations_usage", - "asm_serverless_traced_invocations_percentage", - "browser_usage", - "ci_pipeline_indexed_spans_usage", - "ci_test_indexed_spans_usage", - "ci_visibility_itr_usage", - "cloud_siem_usage", - "code_security_host_usage", - "container_excl_agent_usage", - "container_usage", - "cspm_containers_usage", - "cspm_hosts_usage", - "custom_event_usage", - "custom_ingested_timeseries_usage", - "custom_timeseries_usage", - "cws_containers_usage", - "cws_fargate_task_usage", - "cws_hosts_usage", - "data_jobs_monitoring_usage", - "data_stream_monitoring_usage", - "dbm_hosts_usage", - "dbm_queries_usage", - "error_tracking_usage", - "error_tracking_percentage", - "estimated_indexed_spans_usage", - "estimated_ingested_spans_usage", - "fargate_usage", - "functions_usage", - "incident_management_monthly_active_users_usage", - "indexed_spans_usage", - "infra_host_usage", - "ingested_logs_bytes_usage", - "ingested_spans_bytes_usage", - "invocations_usage", - "lambda_traced_invocations_usage", - "logs_indexed_15day_usage", - "logs_indexed_180day_usage", - "logs_indexed_1day_usage", - "logs_indexed_30day_usage", - "logs_indexed_360day_usage", - "logs_indexed_3day_usage", - "logs_indexed_45day_usage", - "logs_indexed_60day_usage", - "logs_indexed_7day_usage", - "logs_indexed_90day_usage", - "logs_indexed_custom_retention_usage", - "mobile_app_testing_usage", - "ndm_netflow_usage", - "npm_host_usage", - "obs_pipeline_bytes_usage", - "obs_pipelines_vcpu_usage", - "online_archive_usage", - "profiled_container_usage", - "profiled_fargate_usage", - "profiled_host_usage", - "rum_browser_mobile_sessions_usage", - "rum_replay_sessions_usage", - "sca_fargate_usage", - "sds_scanned_bytes_usage", - "serverless_apps_usage", - "siem_analyzed_logs_add_on_usage", - "siem_ingested_bytes_usage", - "snmp_usage", - "universal_service_monitoring_usage", - "vuln_management_hosts_usage", - "workflow_executions_usage", - ], - IFrameWidgetDefinitionType: ["iframe"], - ImageWidgetDefinitionType: ["image"], - ListStreamColumnWidth: ["auto", "compact", "full"], - ListStreamComputeAggregation: [ - "count", - "cardinality", - "median", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - "earliest", - "latest", - "most_frequent", - ], - ListStreamResponseFormat: ["event_list"], - ListStreamSource: [ - "logs_stream", - "audit_stream", - "ci_pipeline_stream", - "ci_test_stream", - "rum_issue_stream", - "apm_issue_stream", - "trace_stream", - "logs_issue_stream", - "logs_pattern_stream", - "logs_transaction_stream", - "event_stream", - "rum_stream", - "llm_observability_stream", - ], - ListStreamWidgetDefinitionType: ["list_stream"], - LogStreamWidgetDefinitionType: ["log_stream"], - LogsArithmeticProcessorType: ["arithmetic-processor"], - LogsAttributeRemapperType: ["attribute-remapper"], - LogsCategoryProcessorType: ["category-processor"], - LogsDateRemapperType: ["date-remapper"], - LogsGeoIPParserType: ["geo-ip-parser"], - LogsGrokParserType: ["grok-parser"], - LogsLookupProcessorType: ["lookup-processor"], - LogsMessageRemapperType: ["message-remapper"], - LogsPipelineProcessorType: ["pipeline"], - LogsServiceRemapperType: ["service-remapper"], - LogsSort: ["asc", "desc"], - LogsSpanRemapperType: ["span-id-remapper"], - LogsStatusRemapperType: ["status-remapper"], - LogsStringBuilderProcessorType: ["string-builder-processor"], - LogsTraceRemapperType: ["trace-id-remapper"], - LogsURLParserType: ["url-parser"], - LogsUserAgentParserType: ["user-agent-parser"], - MetricContentEncoding: ["deflate", "gzip"], - MonitorDeviceID: [ - "laptop_large", - "tablet", - "mobile_small", - "chrome.laptop_large", - "chrome.tablet", - "chrome.mobile_small", - "firefox.laptop_large", - "firefox.tablet", - "firefox.mobile_small", - ], - MonitorFormulaAndFunctionCostAggregator: [ - "avg", - "sum", - "max", - "min", - "last", - "area", - "l2norm", - "percentile", - "stddev", - ], - MonitorFormulaAndFunctionCostDataSource: [ - "metrics", - "cloud_cost", - "datadog_usage", - ], - MonitorFormulaAndFunctionEventAggregation: [ - "count", - "cardinality", - "median", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - ], - MonitorFormulaAndFunctionEventsDataSource: [ - "rum", - "ci_pipelines", - "ci_tests", - "audit", - "events", - "logs", - "spans", - "database_queries", - "network", - ], - MonitorOptionsNotificationPresets: [ - "show_all", - "hide_query", - "hide_handles", - "hide_all", - ], - MonitorOverallStates: [ - "Alert", - "Ignored", - "No Data", - "OK", - "Skipped", - "Unknown", - "Warn", - ], - MonitorRenotifyStatusType: ["alert", "warn", "no data"], - MonitorSummaryWidgetDefinitionType: ["manage_status"], - MonitorType: [ - "composite", - "event alert", - "log alert", - "metric alert", - "process alert", - "query alert", - "rum alert", - "service check", - "synthetics alert", - "trace-analytics alert", - "slo alert", - "event-v2 alert", - "audit alert", - "ci-pipelines alert", - "ci-tests alert", - "error-tracking alert", - "database-monitoring alert", - "network-performance alert", - "cost alert", - ], - MonthlyUsageAttributionSupportedMetrics: [ - "api_usage", - "api_percentage", - "apm_fargate_usage", - "apm_fargate_percentage", - "appsec_fargate_usage", - "appsec_fargate_percentage", - "apm_host_usage", - "apm_host_percentage", - "apm_usm_usage", - "apm_usm_percentage", - "appsec_usage", - "appsec_percentage", - "asm_serverless_traced_invocations_usage", - "asm_serverless_traced_invocations_percentage", - "browser_usage", - "browser_percentage", - "ci_visibility_itr_usage", - "ci_visibility_itr_percentage", - "cloud_siem_usage", - "cloud_siem_percentage", - "code_security_host_usage", - "code_security_host_percentage", - "container_excl_agent_usage", - "container_excl_agent_percentage", - "container_usage", - "container_percentage", - "cspm_containers_percentage", - "cspm_containers_usage", - "cspm_hosts_percentage", - "cspm_hosts_usage", - "custom_timeseries_usage", - "custom_timeseries_percentage", - "custom_ingested_timeseries_usage", - "custom_ingested_timeseries_percentage", - "cws_containers_percentage", - "cws_containers_usage", - "cws_fargate_task_percentage", - "cws_fargate_task_usage", - "cws_hosts_percentage", - "cws_hosts_usage", - "data_jobs_monitoring_usage", - "data_jobs_monitoring_percentage", - "data_stream_monitoring_usage", - "data_stream_monitoring_percentage", - "dbm_hosts_percentage", - "dbm_hosts_usage", - "dbm_queries_percentage", - "dbm_queries_usage", - "error_tracking_usage", - "error_tracking_percentage", - "estimated_indexed_spans_usage", - "estimated_indexed_spans_percentage", - "estimated_ingested_spans_usage", - "estimated_ingested_spans_percentage", - "fargate_usage", - "fargate_percentage", - "functions_usage", - "functions_percentage", - "incident_management_monthly_active_users_usage", - "incident_management_monthly_active_users_percentage", - "infra_host_usage", - "infra_host_percentage", - "invocations_usage", - "invocations_percentage", - "lambda_traced_invocations_usage", - "lambda_traced_invocations_percentage", - "mobile_app_testing_percentage", - "mobile_app_testing_usage", - "ndm_netflow_usage", - "ndm_netflow_percentage", - "npm_host_usage", - "npm_host_percentage", - "obs_pipeline_bytes_usage", - "obs_pipeline_bytes_percentage", - "obs_pipelines_vcpu_usage", - "obs_pipelines_vcpu_percentage", - "online_archive_usage", - "online_archive_percentage", - "profiled_container_usage", - "profiled_container_percentage", - "profiled_fargate_usage", - "profiled_fargate_percentage", - "profiled_host_usage", - "profiled_host_percentage", - "serverless_apps_usage", - "serverless_apps_percentage", - "snmp_usage", - "snmp_percentage", - "universal_service_monitoring_usage", - "universal_service_monitoring_percentage", - "vuln_management_hosts_usage", - "vuln_management_hosts_percentage", - "sds_scanned_bytes_usage", - "sds_scanned_bytes_percentage", - "ci_test_indexed_spans_usage", - "ci_test_indexed_spans_percentage", - "ingested_logs_bytes_usage", - "ingested_logs_bytes_percentage", - "ci_pipeline_indexed_spans_usage", - "ci_pipeline_indexed_spans_percentage", - "indexed_spans_usage", - "indexed_spans_percentage", - "custom_event_usage", - "custom_event_percentage", - "logs_indexed_custom_retention_usage", - "logs_indexed_custom_retention_percentage", - "logs_indexed_360day_usage", - "logs_indexed_360day_percentage", - "logs_indexed_180day_usage", - "logs_indexed_180day_percentage", - "logs_indexed_90day_usage", - "logs_indexed_90day_percentage", - "logs_indexed_60day_usage", - "logs_indexed_60day_percentage", - "logs_indexed_45day_usage", - "logs_indexed_45day_percentage", - "logs_indexed_30day_usage", - "logs_indexed_30day_percentage", - "logs_indexed_15day_usage", - "logs_indexed_15day_percentage", - "logs_indexed_7day_usage", - "logs_indexed_7day_percentage", - "logs_indexed_3day_usage", - "logs_indexed_3day_percentage", - "logs_indexed_1day_usage", - "logs_indexed_1day_percentage", - "rum_replay_sessions_usage", - "rum_replay_sessions_percentage", - "rum_browser_mobile_sessions_usage", - "rum_browser_mobile_sessions_percentage", - "ingested_spans_bytes_usage", - "ingested_spans_bytes_percentage", - "siem_analyzed_logs_add_on_usage", - "siem_analyzed_logs_add_on_percentage", - "siem_ingested_bytes_usage", - "siem_ingested_bytes_percentage", - "workflow_executions_usage", - "workflow_executions_percentage", - "sca_fargate_usage", - "sca_fargate_percentage", - "*", - ], - NoteWidgetDefinitionType: ["note"], - NotebookCellResourceType: ["notebook_cells"], - NotebookGraphSize: ["xs", "s", "m", "l", "xl"], - NotebookMarkdownCellDefinitionType: ["markdown"], - NotebookMetadataType: [ - "postmortem", - "runbook", - "investigation", - "documentation", - "report", - ], - NotebookResourceType: ["notebooks"], - NotebookStatus: ["published"], - NotifyEndState: ["alert", "no data", "warn"], - NotifyEndType: ["canceled", "expired"], - NumberFormatUnitCustomType: ["custom_unit_label"], - NumberFormatUnitScaleType: ["canonical_unit"], - OnMissingDataOption: [ - "default", - "show_no_data", - "show_and_notify_no_data", - "resolve", - ], - PowerpackWidgetDefinitionType: ["powerpack"], - QuerySortOrder: ["asc", "desc"], - QueryValueWidgetDefinitionType: ["query_value"], - RunWorkflowWidgetDefinitionType: ["run_workflow"], - SLOCorrectionCategory: [ - "Scheduled Maintenance", - "Outside Business Hours", - "Deployment", - "Other", - ], - SLOCorrectionType: ["correction"], - SLOErrorTimeframe: ["7d", "30d", "90d", "all"], - SLOListWidgetDefinitionType: ["slo_list"], - SLOListWidgetRequestType: ["slo_list"], - SLOState: ["breached", "warning", "ok", "no_data"], - SLOTimeSliceComparator: [">", ">=", "<", "<="], - SLOTimeSliceInterval: [60, 300], - SLOTimeframe: ["7d", "30d", "90d", "custom"], - SLOType: ["metric", "monitor", "time_slice"], - SLOTypeNumeric: [0, 1, 2], - SLOWidgetDefinitionType: ["slo"], - ScatterPlotWidgetDefinitionType: ["scatterplot"], - ScatterplotDimension: ["x", "y", "radius", "color"], - ScatterplotWidgetAggregator: ["avg", "last", "max", "min", "sum"], - SearchSLOTimeframe: ["7d", "30d", "90d"], - ServiceCheckStatus: [0, 1, 2, 3], - ServiceMapWidgetDefinitionType: ["servicemap"], - ServiceSummaryWidgetDefinitionType: ["trace_service"], - SharedDashboardStatus: ["active", "paused"], - SignalArchiveReason: [ - "none", - "false_positive", - "testing_or_maintenance", - "investigated_case_opened", - "true_positive_benign", - "true_positive_malicious", - "other", - ], - SignalTriageState: ["open", "archived", "under_review"], - SplitGraphVizSize: ["xs", "sm", "md", "lg"], - SplitGraphWidgetDefinitionType: ["split_group"], - SunburstWidgetDefinitionType: ["sunburst"], - SunburstWidgetLegendInlineAutomaticType: ["inline", "automatic"], - SunburstWidgetLegendTableType: ["table", "none"], - SyntheticsAPITestStepSubtype: ["http", "grpc"], - SyntheticsAPITestType: ["api"], - SyntheticsAPIWaitStepSubtype: ["wait"], - SyntheticsApiTestFailureCode: [ - "BODY_TOO_LARGE", - "DENIED", - "TOO_MANY_REDIRECTS", - "AUTHENTICATION_ERROR", - "DECRYPTION", - "INVALID_CHAR_IN_HEADER", - "HEADER_TOO_LARGE", - "HEADERS_INCOMPATIBLE_CONTENT_LENGTH", - "INVALID_REQUEST", - "REQUIRES_UPDATE", - "UNESCAPED_CHARACTERS_IN_REQUEST_PATH", - "MALFORMED_RESPONSE", - "INCORRECT_ASSERTION", - "CONNREFUSED", - "CONNRESET", - "DNS", - "HOSTUNREACH", - "NETUNREACH", - "TIMEOUT", - "SSL", - "OCSP", - "INVALID_TEST", - "TUNNEL", - "WEBSOCKET", - "UNKNOWN", - "INTERNAL_ERROR", - ], - SyntheticsAssertionBodyHashOperator: ["md5", "sha1", "sha256"], - SyntheticsAssertionBodyHashType: ["bodyHash"], - SyntheticsAssertionJSONPathOperator: ["validatesJSONPath"], - SyntheticsAssertionJSONSchemaMetaSchema: ["draft-07", "draft-06"], - SyntheticsAssertionJSONSchemaOperator: ["validatesJSONSchema"], - SyntheticsAssertionJavascriptType: ["javascript"], - SyntheticsAssertionOperator: [ - "contains", - "doesNotContain", - "is", - "isNot", - "lessThan", - "lessThanOrEqual", - "moreThan", - "moreThanOrEqual", - "matches", - "doesNotMatch", - "validates", - "isInMoreThan", - "isInLessThan", - "doesNotExist", - "isUndefined", - ], - SyntheticsAssertionTimingsScope: ["all", "withoutDNS"], - SyntheticsAssertionType: [ - "body", - "header", - "statusCode", - "certificate", - "responseTime", - "property", - "recordEvery", - "recordSome", - "tlsVersion", - "minTlsVersion", - "latency", - "packetLossPercentage", - "packetsReceived", - "networkHop", - "receivedMessage", - "grpcHealthcheckStatus", - "grpcMetadata", - "grpcProto", - "connection", - ], - SyntheticsAssertionXPathOperator: ["validatesXPath"], - SyntheticsBasicAuthDigestType: ["digest"], - SyntheticsBasicAuthNTLMType: ["ntlm"], - SyntheticsBasicAuthOauthClientType: ["oauth-client"], - SyntheticsBasicAuthOauthROPType: ["oauth-rop"], - SyntheticsBasicAuthOauthTokenApiAuthentication: ["header", "body"], - SyntheticsBasicAuthSigv4Type: ["sigv4"], - SyntheticsBasicAuthWebType: ["web"], - SyntheticsBatchStatus: ["passed", "skipped", "failed"], - SyntheticsBrowserErrorType: ["network", "js"], - SyntheticsBrowserTestFailureCode: [ - "API_REQUEST_FAILURE", - "ASSERTION_FAILURE", - "DOWNLOAD_FILE_TOO_LARGE", - "ELEMENT_NOT_INTERACTABLE", - "EMAIL_VARIABLE_NOT_DEFINED", - "EVALUATE_JAVASCRIPT", - "EVALUATE_JAVASCRIPT_CONTEXT", - "EXTRACT_VARIABLE", - "FORBIDDEN_URL", - "FRAME_DETACHED", - "INCONSISTENCIES", - "INTERNAL_ERROR", - "INVALID_TYPE_TEXT_DELAY", - "INVALID_URL", - "INVALID_VARIABLE_PATTERN", - "INVISIBLE_ELEMENT", - "LOCATE_ELEMENT", - "NAVIGATE_TO_LINK", - "OPEN_URL", - "PRESS_KEY", - "SERVER_CERTIFICATE", - "SELECT_OPTION", - "STEP_TIMEOUT", - "SUB_TEST_NOT_PASSED", - "TEST_TIMEOUT", - "TOO_MANY_HTTP_REQUESTS", - "UNAVAILABLE_BROWSER", - "UNKNOWN", - "UNSUPPORTED_AUTH_SCHEMA", - "UPLOAD_FILES_ELEMENT_TYPE", - "UPLOAD_FILES_DIALOG", - "UPLOAD_FILES_DYNAMIC_ELEMENT", - "UPLOAD_FILES_NAME", - ], - SyntheticsBrowserTestType: ["browser"], - SyntheticsBrowserVariableType: ["element", "email", "global", "text"], - SyntheticsCheckType: [ - "equals", - "notEquals", - "contains", - "notContains", - "startsWith", - "notStartsWith", - "greater", - "lower", - "greaterEquals", - "lowerEquals", - "matchRegex", - "between", - "isEmpty", - "notIsEmpty", - ], - SyntheticsConfigVariableType: ["global", "text", "email"], - SyntheticsGlobalVariableParseTestOptionsType: [ - "http_body", - "http_header", - "http_status_code", - "local_variable", - ], - SyntheticsGlobalVariableParserType: ["raw", "json_path", "regex", "x_path"], - SyntheticsLocalVariableParsingOptionsType: [ - "grpc_message", - "grpc_metadata", - "http_body", - "http_header", - "http_status_code", - ], - SyntheticsMobileStepParamsDirection: ["up", "down", "left", "right"], - SyntheticsMobileStepParamsElementContextType: ["native", "web"], - SyntheticsMobileStepParamsElementUserLocatorValuesItemsType: [ - "accessibility-id", - "id", - "ios-predicate-string", - "ios-class-chain", - "xpath", - ], - SyntheticsMobileStepType: [ - "assertElementContent", - "assertScreenContains", - "assertScreenLacks", - "doubleTap", - "extractVariable", - "flick", - "openDeeplink", - "playSubTest", - "pressBack", - "restartApplication", - "rotate", - "scroll", - "scrollToElement", - "tap", - "toggleWiFi", - "typeText", - "wait", - ], - SyntheticsMobileTestType: ["mobile"], - SyntheticsMobileTestsMobileApplicationReferenceType: ["latest", "version"], - SyntheticsPatchTestOperationName: [ - "add", - "remove", - "replace", - "move", - "copy", - "test", - ], - SyntheticsPlayingTab: [-1, 0, 1, 2, 3], - SyntheticsStepType: [ - "assertCurrentUrl", - "assertElementAttribute", - "assertElementContent", - "assertElementPresent", - "assertEmail", - "assertFileDownload", - "assertFromJavascript", - "assertPageContains", - "assertPageLacks", - "click", - "extractFromJavascript", - "extractVariable", - "goToEmailLink", - "goToUrl", - "goToUrlAndMeasureTti", - "hover", - "playSubTest", - "pressKey", - "refresh", - "runApiTest", - "scroll", - "selectOption", - "typeText", - "uploadFiles", - "wait", - ], - SyntheticsTestCallType: ["healthcheck", "unary"], - SyntheticsTestDetailsSubType: [ - "http", - "ssl", - "tcp", - "dns", - "multi", - "icmp", - "udp", - "websocket", - "grpc", - ], - SyntheticsTestDetailsType: ["api", "browser", "mobile"], - SyntheticsTestExecutionRule: ["blocking", "non_blocking", "skipped"], - SyntheticsTestMonitorStatus: [0, 1, 2], - SyntheticsTestOptionsHTTPVersion: ["http1", "http2", "any"], - SyntheticsTestOptionsMonitorOptionsNotificationPresetName: [ - "show_all", - "hide_all", - "hide_query", - "hide_handles", - ], - SyntheticsTestPauseStatus: ["live", "paused"], - SyntheticsTestProcessStatus: [ - "not_scheduled", - "scheduled", - "finished", - "finished_with_error", - ], - SyntheticsTestRequestBodyType: [ - "text/plain", - "application/json", - "text/xml", - "text/html", - "application/x-www-form-urlencoded", - "graphql", - "application/octet-stream", - "multipart/form-data", - ], - SyntheticsTestRestrictionPolicyBindingRelation: ["editor", "viewer"], - SyntheticsWarningType: ["user_locator"], - TableWidgetCellDisplayMode: ["number", "bar", "trend"], - TableWidgetDefinitionType: ["query_table"], - TableWidgetHasSearchBar: ["always", "never", "auto"], - TableWidgetTextFormatMatchType: [ - "is", - "is_not", - "contains", - "does_not_contain", - "starts_with", - "ends_with", - ], - TableWidgetTextFormatPalette: [ - "white_on_red", - "white_on_yellow", - "white_on_green", - "black_on_light_red", - "black_on_light_yellow", - "black_on_light_green", - "red_on_white", - "yellow_on_white", - "green_on_white", - "custom_bg", - "custom_text", - ], - TableWidgetTextFormatReplaceAllType: ["all"], - TableWidgetTextFormatReplaceSubstringType: ["substring"], - TargetFormatType: ["auto", "string", "integer", "double"], - TimeseriesBackgroundType: ["bars", "area"], - TimeseriesWidgetDefinitionType: ["timeseries"], - TimeseriesWidgetLegendColumn: ["value", "avg", "sum", "min", "max"], - TimeseriesWidgetLegendLayout: ["auto", "horizontal", "vertical"], - ToplistWidgetDefinitionType: ["toplist"], - ToplistWidgetFlatType: ["flat"], - ToplistWidgetLegend: ["automatic", "inline", "none"], - ToplistWidgetScaling: ["absolute", "relative"], - ToplistWidgetStackedType: ["stacked"], - TopologyMapWidgetDefinitionType: ["topology_map"], - TopologyQueryDataSource: ["data_streams", "service_map"], - TopologyRequestType: ["topology"], - TreeMapColorBy: ["user"], - TreeMapGroupBy: ["user", "family", "process"], - TreeMapSizeBy: ["pct_cpu", "pct_mem"], - TreeMapWidgetDefinitionType: ["treemap"], - UsageMetricCategory: ["standard", "custom"], - UsageReportsType: ["reports"], - UsageSort: ["computed_on", "size", "start_date", "end_date"], - UsageSortDirection: ["desc", "asc"], - ViewingPreferencesTheme: ["system", "light", "dark"], - WebhooksIntegrationEncoding: ["json", "form"], - WidgetAggregator: ["avg", "last", "max", "min", "sum", "percentile"], - WidgetChangeType: ["absolute", "relative"], - WidgetColorPreference: ["background", "text"], - WidgetComparator: ["=", ">", ">=", "<", "<="], - WidgetCompareTo: ["hour_before", "day_before", "week_before", "month_before"], - WidgetDisplayType: ["area", "bars", "line", "overlay"], - WidgetEventSize: ["s", "l"], - WidgetFormulaCellDisplayModeOptionsTrendType: ["area", "line", "bars"], - WidgetFormulaCellDisplayModeOptionsYScale: ["shared", "independent"], - WidgetGrouping: ["check", "cluster"], - WidgetHorizontalAlign: ["center", "left", "right"], - WidgetImageSizing: [ - "fill", - "contain", - "cover", - "none", - "scale-down", - "zoom", - "fit", - "center", - ], - WidgetLayoutType: ["ordered"], - WidgetLineType: ["dashed", "dotted", "solid"], - WidgetLineWidth: ["normal", "thick", "thin"], - WidgetLiveSpan: [ - "1m", - "5m", - "10m", - "15m", - "30m", - "1h", - "4h", - "1d", - "2d", - "1w", - "1mo", - "3mo", - "6mo", - "week_to_date", - "month_to_date", - "1y", - "alert", - ], - WidgetLiveSpanUnit: ["minute", "hour", "day", "week", "month", "year"], - WidgetMargin: ["sm", "md", "lg", "small", "large"], - WidgetMessageDisplay: ["inline", "expanded-md", "expanded-lg"], - WidgetMonitorSummaryDisplayFormat: ["counts", "countsAndList", "list"], - WidgetMonitorSummarySort: [ - "name", - "group", - "status", - "tags", - "triggered", - "group,asc", - "group,desc", - "name,asc", - "name,desc", - "status,asc", - "status,desc", - "tags,asc", - "tags,desc", - "triggered,asc", - "triggered,desc", - "priority,asc", - "priority,desc", - ], - WidgetNewFixedSpanType: ["fixed"], - WidgetNewLiveSpanType: ["live"], - WidgetNodeType: ["host", "container"], - WidgetOrderBy: ["change", "name", "present", "past"], - WidgetPalette: [ - "blue", - "custom_bg", - "custom_image", - "custom_text", - "gray_on_white", - "grey", - "green", - "orange", - "red", - "red_on_white", - "white_on_gray", - "white_on_green", - "green_on_white", - "white_on_red", - "white_on_yellow", - "yellow_on_white", - "black_on_light_yellow", - "black_on_light_green", - "black_on_light_red", - ], - WidgetServiceSummaryDisplayFormat: [ - "one_column", - "two_column", - "three_column", - ], - WidgetSizeFormat: ["small", "medium", "large"], - WidgetSort: ["asc", "desc"], - WidgetSummaryType: ["monitors", "groups", "combined"], - WidgetTextAlign: ["center", "left", "right"], - WidgetTickEdge: ["bottom", "left", "right", "top"], - WidgetTimeWindows: [ - "7d", - "30d", - "90d", - "week_to_date", - "previous_week", - "month_to_date", - "previous_month", - "global_time", - ], - WidgetVerticalAlign: ["center", "top", "bottom"], - WidgetViewMode: ["overall", "component", "both"], - WidgetVizType: ["timeseries", "toplist"], +const enumsMap: {[key: string]: any[]} = { + "AWSEventBridgeCreateStatus": ['created'], + "AWSEventBridgeDeleteStatus": ['empty'], + "AWSNamespace": ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda', 'step_functions'], + "AccessRole": ['st', 'adm', 'ro', 'ERROR'], + "AlertGraphWidgetDefinitionType": ['alert_graph'], + "AlertValueWidgetDefinitionType": ['alert_value'], + "ApmStatsQueryRowType": ['service', 'resource', 'span'], + "ChangeWidgetDefinitionType": ['change'], + "CheckStatusWidgetDefinitionType": ['check_status'], + "ContentEncoding": ['gzip', 'deflate'], + "DashboardGlobalTimeLiveSpan": ['15m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo'], + "DashboardInviteType": ['public_dashboard_invitation'], + "DashboardLayoutType": ['ordered', 'free'], + "DashboardReflowType": ['auto', 'fixed'], + "DashboardResourceType": ['dashboard'], + "DashboardShareType": ['open', 'invite', 'embed'], + "DashboardType": ['custom_timeboard', 'custom_screenboard'], + "DistributionPointsContentEncoding": ['deflate'], + "DistributionPointsType": ['distribution'], + "DistributionWidgetDefinitionType": ['distribution'], + "DistributionWidgetHistogramRequestType": ['histogram'], + "EventAlertType": ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot'], + "EventPriority": ['normal', 'low'], + "EventStreamWidgetDefinitionType": ['event_stream'], + "EventTimelineWidgetDefinitionType": ['event_timeline'], + "FormulaAndFunctionApmDependencyStatName": ['avg_duration', 'avg_root_duration', 'avg_spans_per_trace', 'error_rate', 'pct_exec_time', 'pct_of_traces', 'total_traces_count'], + "FormulaAndFunctionApmDependencyStatsDataSource": ['apm_dependency_stats'], + "FormulaAndFunctionApmResourceStatName": ['errors', 'error_rate', 'hits', 'latency_avg', 'latency_distribution', 'latency_max', 'latency_p50', 'latency_p75', 'latency_p90', 'latency_p95', 'latency_p99'], + "FormulaAndFunctionApmResourceStatsDataSource": ['apm_resource_stats'], + "FormulaAndFunctionCloudCostDataSource": ['cloud_cost'], + "FormulaAndFunctionEventAggregation": ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg'], + "FormulaAndFunctionEventsDataSource": ['logs', 'spans', 'network', 'rum', 'security_signals', 'profiles', 'audit', 'events', 'ci_tests', 'ci_pipelines', 'incident_analytics'], + "FormulaAndFunctionMetricAggregation": ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile'], + "FormulaAndFunctionMetricDataSource": ['metrics'], + "FormulaAndFunctionProcessQueryDataSource": ['process', 'container'], + "FormulaAndFunctionResponseFormat": ['timeseries', 'scalar', 'event_list'], + "FormulaAndFunctionSLODataSource": ['slo'], + "FormulaAndFunctionSLOGroupMode": ['overall', 'components'], + "FormulaAndFunctionSLOMeasure": ['good_events', 'bad_events', 'good_minutes', 'bad_minutes', 'slo_status', 'error_budget_remaining', 'burn_rate', 'error_budget_burndown'], + "FormulaAndFunctionSLOQueryType": ['metric', 'time_slice'], + "FormulaType": ['formula'], + "FreeTextWidgetDefinitionType": ['free_text'], + "FunnelRequestType": ['funnel'], + "FunnelSource": ['rum'], + "FunnelWidgetDefinitionType": ['funnel'], + "GeomapWidgetDefinitionType": ['geomap'], + "GroupType": ['group'], + "GroupWidgetDefinitionType": ['group'], + "HeatMapWidgetDefinitionType": ['heatmap'], + "HostMapWidgetDefinitionType": ['hostmap'], + "HourlyUsageAttributionUsageType": ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'rum_browser_mobile_sessions_usage', 'rum_replay_sessions_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage'], + "IFrameWidgetDefinitionType": ['iframe'], + "ImageWidgetDefinitionType": ['image'], + "ListStreamColumnWidth": ['auto', 'compact', 'full'], + "ListStreamComputeAggregation": ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg', 'earliest', 'latest', 'most_frequent'], + "ListStreamResponseFormat": ['event_list'], + "ListStreamSource": ['logs_stream', 'audit_stream', 'ci_pipeline_stream', 'ci_test_stream', 'rum_issue_stream', 'apm_issue_stream', 'trace_stream', 'logs_issue_stream', 'logs_pattern_stream', 'logs_transaction_stream', 'event_stream', 'rum_stream', 'llm_observability_stream'], + "ListStreamWidgetDefinitionType": ['list_stream'], + "LogStreamWidgetDefinitionType": ['log_stream'], + "LogsArithmeticProcessorType": ['arithmetic-processor'], + "LogsAttributeRemapperType": ['attribute-remapper'], + "LogsCategoryProcessorType": ['category-processor'], + "LogsDateRemapperType": ['date-remapper'], + "LogsGeoIPParserType": ['geo-ip-parser'], + "LogsGrokParserType": ['grok-parser'], + "LogsLookupProcessorType": ['lookup-processor'], + "LogsMessageRemapperType": ['message-remapper'], + "LogsPipelineProcessorType": ['pipeline'], + "LogsServiceRemapperType": ['service-remapper'], + "LogsSort": ['asc', 'desc'], + "LogsSpanRemapperType": ['span-id-remapper'], + "LogsStatusRemapperType": ['status-remapper'], + "LogsStringBuilderProcessorType": ['string-builder-processor'], + "LogsTraceRemapperType": ['trace-id-remapper'], + "LogsURLParserType": ['url-parser'], + "LogsUserAgentParserType": ['user-agent-parser'], + "MetricContentEncoding": ['deflate', 'gzip'], + "MonitorDeviceID": ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small'], + "MonitorFormulaAndFunctionCostAggregator": ['avg', 'sum', 'max', 'min', 'last', 'area', 'l2norm', 'percentile', 'stddev'], + "MonitorFormulaAndFunctionCostDataSource": ['metrics', 'cloud_cost', 'datadog_usage'], + "MonitorFormulaAndFunctionEventAggregation": ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg'], + "MonitorFormulaAndFunctionEventsDataSource": ['rum', 'ci_pipelines', 'ci_tests', 'audit', 'events', 'logs', 'spans', 'database_queries', 'network'], + "MonitorOptionsNotificationPresets": ['show_all', 'hide_query', 'hide_handles', 'hide_all'], + "MonitorOverallStates": ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn'], + "MonitorRenotifyStatusType": ['alert', 'warn', 'no data'], + "MonitorSummaryWidgetDefinitionType": ['manage_status'], + "MonitorType": ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert', 'ci-tests alert', 'error-tracking alert', 'database-monitoring alert', 'network-performance alert', 'cost alert'], + "MonthlyUsageAttributionSupportedMetrics": ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'], + "NoteWidgetDefinitionType": ['note'], + "NotebookCellResourceType": ['notebook_cells'], + "NotebookGraphSize": ['xs', 's', 'm', 'l', 'xl'], + "NotebookMarkdownCellDefinitionType": ['markdown'], + "NotebookMetadataType": ['postmortem', 'runbook', 'investigation', 'documentation', 'report'], + "NotebookResourceType": ['notebooks'], + "NotebookStatus": ['published'], + "NotifyEndState": ['alert', 'no data', 'warn'], + "NotifyEndType": ['canceled', 'expired'], + "NumberFormatUnitCustomType": ['custom_unit_label'], + "NumberFormatUnitScaleType": ['canonical_unit'], + "OnMissingDataOption": ['default', 'show_no_data', 'show_and_notify_no_data', 'resolve'], + "PowerpackWidgetDefinitionType": ['powerpack'], + "QuerySortOrder": ['asc', 'desc'], + "QueryValueWidgetDefinitionType": ['query_value'], + "RunWorkflowWidgetDefinitionType": ['run_workflow'], + "SLOCorrectionCategory": ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other'], + "SLOCorrectionType": ['correction'], + "SLOErrorTimeframe": ['7d', '30d', '90d', 'all'], + "SLOListWidgetDefinitionType": ['slo_list'], + "SLOListWidgetRequestType": ['slo_list'], + "SLOState": ['breached', 'warning', 'ok', 'no_data'], + "SLOTimeSliceComparator": ['>', '>=', '<', '<='], + "SLOTimeSliceInterval": [60, 300], + "SLOTimeframe": ['7d', '30d', '90d', 'custom'], + "SLOType": ['metric', 'monitor', 'time_slice'], + "SLOTypeNumeric": [0, 1, 2], + "SLOWidgetDefinitionType": ['slo'], + "ScatterPlotWidgetDefinitionType": ['scatterplot'], + "ScatterplotDimension": ['x', 'y', 'radius', 'color'], + "ScatterplotWidgetAggregator": ['avg', 'last', 'max', 'min', 'sum'], + "SearchSLOTimeframe": ['7d', '30d', '90d'], + "ServiceCheckStatus": [0, 1, 2, 3], + "ServiceMapWidgetDefinitionType": ['servicemap'], + "ServiceSummaryWidgetDefinitionType": ['trace_service'], + "SharedDashboardStatus": ['active', 'paused'], + "SignalArchiveReason": ['none', 'false_positive', 'testing_or_maintenance', 'investigated_case_opened', 'true_positive_benign', 'true_positive_malicious', 'other'], + "SignalTriageState": ['open', 'archived', 'under_review'], + "SplitGraphVizSize": ['xs', 'sm', 'md', 'lg'], + "SplitGraphWidgetDefinitionType": ['split_group'], + "SunburstWidgetDefinitionType": ['sunburst'], + "SunburstWidgetLegendInlineAutomaticType": ['inline', 'automatic'], + "SunburstWidgetLegendTableType": ['table', 'none'], + "SyntheticsAPITestStepSubtype": ['http', 'grpc'], + "SyntheticsAPITestType": ['api'], + "SyntheticsAPIWaitStepSubtype": ['wait'], + "SyntheticsApiTestFailureCode": ['BODY_TOO_LARGE', 'DENIED', 'TOO_MANY_REDIRECTS', 'AUTHENTICATION_ERROR', 'DECRYPTION', 'INVALID_CHAR_IN_HEADER', 'HEADER_TOO_LARGE', 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH', 'INVALID_REQUEST', 'REQUIRES_UPDATE', 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH', 'MALFORMED_RESPONSE', 'INCORRECT_ASSERTION', 'CONNREFUSED', 'CONNRESET', 'DNS', 'HOSTUNREACH', 'NETUNREACH', 'TIMEOUT', 'SSL', 'OCSP', 'INVALID_TEST', 'TUNNEL', 'WEBSOCKET', 'UNKNOWN', 'INTERNAL_ERROR'], + "SyntheticsAssertionBodyHashOperator": ['md5', 'sha1', 'sha256'], + "SyntheticsAssertionBodyHashType": ['bodyHash'], + "SyntheticsAssertionJSONPathOperator": ['validatesJSONPath'], + "SyntheticsAssertionJSONSchemaMetaSchema": ['draft-07', 'draft-06'], + "SyntheticsAssertionJSONSchemaOperator": ['validatesJSONSchema'], + "SyntheticsAssertionJavascriptType": ['javascript'], + "SyntheticsAssertionOperator": ['contains', 'doesNotContain', 'is', 'isNot', 'lessThan', 'lessThanOrEqual', 'moreThan', 'moreThanOrEqual', 'matches', 'doesNotMatch', 'validates', 'isInMoreThan', 'isInLessThan', 'doesNotExist', 'isUndefined'], + "SyntheticsAssertionTimingsScope": ['all', 'withoutDNS'], + "SyntheticsAssertionType": ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage', 'grpcHealthcheckStatus', 'grpcMetadata', 'grpcProto', 'connection'], + "SyntheticsAssertionXPathOperator": ['validatesXPath'], + "SyntheticsBasicAuthDigestType": ['digest'], + "SyntheticsBasicAuthNTLMType": ['ntlm'], + "SyntheticsBasicAuthOauthClientType": ['oauth-client'], + "SyntheticsBasicAuthOauthROPType": ['oauth-rop'], + "SyntheticsBasicAuthOauthTokenApiAuthentication": ['header', 'body'], + "SyntheticsBasicAuthSigv4Type": ['sigv4'], + "SyntheticsBasicAuthWebType": ['web'], + "SyntheticsBatchStatus": ['passed', 'skipped', 'failed'], + "SyntheticsBrowserErrorType": ['network', 'js'], + "SyntheticsBrowserTestFailureCode": ['API_REQUEST_FAILURE', 'ASSERTION_FAILURE', 'DOWNLOAD_FILE_TOO_LARGE', 'ELEMENT_NOT_INTERACTABLE', 'EMAIL_VARIABLE_NOT_DEFINED', 'EVALUATE_JAVASCRIPT', 'EVALUATE_JAVASCRIPT_CONTEXT', 'EXTRACT_VARIABLE', 'FORBIDDEN_URL', 'FRAME_DETACHED', 'INCONSISTENCIES', 'INTERNAL_ERROR', 'INVALID_TYPE_TEXT_DELAY', 'INVALID_URL', 'INVALID_VARIABLE_PATTERN', 'INVISIBLE_ELEMENT', 'LOCATE_ELEMENT', 'NAVIGATE_TO_LINK', 'OPEN_URL', 'PRESS_KEY', 'SERVER_CERTIFICATE', 'SELECT_OPTION', 'STEP_TIMEOUT', 'SUB_TEST_NOT_PASSED', 'TEST_TIMEOUT', 'TOO_MANY_HTTP_REQUESTS', 'UNAVAILABLE_BROWSER', 'UNKNOWN', 'UNSUPPORTED_AUTH_SCHEMA', 'UPLOAD_FILES_ELEMENT_TYPE', 'UPLOAD_FILES_DIALOG', 'UPLOAD_FILES_DYNAMIC_ELEMENT', 'UPLOAD_FILES_NAME'], + "SyntheticsBrowserTestType": ['browser'], + "SyntheticsBrowserVariableType": ['element', 'email', 'global', 'text'], + "SyntheticsCheckType": ['equals', 'notEquals', 'contains', 'notContains', 'startsWith', 'notStartsWith', 'greater', 'lower', 'greaterEquals', 'lowerEquals', 'matchRegex', 'between', 'isEmpty', 'notIsEmpty'], + "SyntheticsConfigVariableType": ['global', 'text', 'email'], + "SyntheticsGlobalVariableParseTestOptionsType": ['http_body', 'http_header', 'http_status_code', 'local_variable'], + "SyntheticsGlobalVariableParserType": ['raw', 'json_path', 'regex', 'x_path'], + "SyntheticsLocalVariableParsingOptionsType": ['grpc_message', 'grpc_metadata', 'http_body', 'http_header', 'http_status_code'], + "SyntheticsMobileStepParamsDirection": ['up', 'down', 'left', 'right'], + "SyntheticsMobileStepParamsElementContextType": ['native', 'web'], + "SyntheticsMobileStepParamsElementUserLocatorValuesItemsType": ['accessibility-id', 'id', 'ios-predicate-string', 'ios-class-chain', 'xpath'], + "SyntheticsMobileStepType": ['assertElementContent', 'assertScreenContains', 'assertScreenLacks', 'doubleTap', 'extractVariable', 'flick', 'openDeeplink', 'playSubTest', 'pressBack', 'restartApplication', 'rotate', 'scroll', 'scrollToElement', 'tap', 'toggleWiFi', 'typeText', 'wait'], + "SyntheticsMobileTestType": ['mobile'], + "SyntheticsMobileTestsMobileApplicationReferenceType": ['latest', 'version'], + "SyntheticsPatchTestOperationName": ['add', 'remove', 'replace', 'move', 'copy', 'test'], + "SyntheticsPlayingTab": [-1, 0, 1, 2, 3], + "SyntheticsStepType": ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait'], + "SyntheticsTestCallType": ['healthcheck', 'unary'], + "SyntheticsTestDetailsSubType": ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket', 'grpc'], + "SyntheticsTestDetailsType": ['api', 'browser', 'mobile'], + "SyntheticsTestExecutionRule": ['blocking', 'non_blocking', 'skipped'], + "SyntheticsTestMonitorStatus": [0, 1, 2], + "SyntheticsTestOptionsHTTPVersion": ['http1', 'http2', 'any'], + "SyntheticsTestOptionsMonitorOptionsNotificationPresetName": ['show_all', 'hide_all', 'hide_query', 'hide_handles'], + "SyntheticsTestPauseStatus": ['live', 'paused'], + "SyntheticsTestProcessStatus": ['not_scheduled', 'scheduled', 'finished', 'finished_with_error'], + "SyntheticsTestRequestBodyType": ['text/plain', 'application/json', 'text/xml', 'text/html', 'application/x-www-form-urlencoded', 'graphql', 'application/octet-stream', 'multipart/form-data'], + "SyntheticsTestRestrictionPolicyBindingRelation": ['editor', 'viewer'], + "SyntheticsWarningType": ['user_locator'], + "TableWidgetCellDisplayMode": ['number', 'bar', 'trend'], + "TableWidgetDefinitionType": ['query_table'], + "TableWidgetHasSearchBar": ['always', 'never', 'auto'], + "TableWidgetTextFormatMatchType": ['is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with'], + "TableWidgetTextFormatPalette": ['white_on_red', 'white_on_yellow', 'white_on_green', 'black_on_light_red', 'black_on_light_yellow', 'black_on_light_green', 'red_on_white', 'yellow_on_white', 'green_on_white', 'custom_bg', 'custom_text'], + "TableWidgetTextFormatReplaceAllType": ['all'], + "TableWidgetTextFormatReplaceSubstringType": ['substring'], + "TargetFormatType": ['auto', 'string', 'integer', 'double'], + "TimeseriesBackgroundType": ['bars', 'area'], + "TimeseriesWidgetDefinitionType": ['timeseries'], + "TimeseriesWidgetLegendColumn": ['value', 'avg', 'sum', 'min', 'max'], + "TimeseriesWidgetLegendLayout": ['auto', 'horizontal', 'vertical'], + "ToplistWidgetDefinitionType": ['toplist'], + "ToplistWidgetFlatType": ['flat'], + "ToplistWidgetLegend": ['automatic', 'inline', 'none'], + "ToplistWidgetScaling": ['absolute', 'relative'], + "ToplistWidgetStackedType": ['stacked'], + "TopologyMapWidgetDefinitionType": ['topology_map'], + "TopologyQueryDataSource": ['data_streams', 'service_map'], + "TopologyRequestType": ['topology'], + "TreeMapColorBy": ['user'], + "TreeMapGroupBy": ['user', 'family', 'process'], + "TreeMapSizeBy": ['pct_cpu', 'pct_mem'], + "TreeMapWidgetDefinitionType": ['treemap'], + "UsageMetricCategory": ['standard', 'custom'], + "UsageReportsType": ['reports'], + "UsageSort": ['computed_on', 'size', 'start_date', 'end_date'], + "UsageSortDirection": ['desc', 'asc'], + "ViewingPreferencesTheme": ['system', 'light', 'dark'], + "WebhooksIntegrationEncoding": ['json', 'form'], + "WidgetAggregator": ['avg', 'last', 'max', 'min', 'sum', 'percentile'], + "WidgetChangeType": ['absolute', 'relative'], + "WidgetColorPreference": ['background', 'text'], + "WidgetComparator": ['=', '>', '>=', '<', '<='], + "WidgetCompareTo": ['hour_before', 'day_before', 'week_before', 'month_before'], + "WidgetDisplayType": ['area', 'bars', 'line', 'overlay'], + "WidgetEventSize": ['s', 'l'], + "WidgetFormulaCellDisplayModeOptionsTrendType": ['area', 'line', 'bars'], + "WidgetFormulaCellDisplayModeOptionsYScale": ['shared', 'independent'], + "WidgetGrouping": ['check', 'cluster'], + "WidgetHorizontalAlign": ['center', 'left', 'right'], + "WidgetImageSizing": ['fill', 'contain', 'cover', 'none', 'scale-down', 'zoom', 'fit', 'center'], + "WidgetLayoutType": ['ordered'], + "WidgetLineType": ['dashed', 'dotted', 'solid'], + "WidgetLineWidth": ['normal', 'thick', 'thin'], + "WidgetLiveSpan": ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', 'week_to_date', 'month_to_date', '1y', 'alert'], + "WidgetLiveSpanUnit": ['minute', 'hour', 'day', 'week', 'month', 'year'], + "WidgetMargin": ['sm', 'md', 'lg', 'small', 'large'], + "WidgetMessageDisplay": ['inline', 'expanded-md', 'expanded-lg'], + "WidgetMonitorSummaryDisplayFormat": ['counts', 'countsAndList', 'list'], + "WidgetMonitorSummarySort": ['name', 'group', 'status', 'tags', 'triggered', 'group,asc', 'group,desc', 'name,asc', 'name,desc', 'status,asc', 'status,desc', 'tags,asc', 'tags,desc', 'triggered,asc', 'triggered,desc', 'priority,asc', 'priority,desc'], + "WidgetNewFixedSpanType": ['fixed'], + "WidgetNewLiveSpanType": ['live'], + "WidgetNodeType": ['host', 'container'], + "WidgetOrderBy": ['change', 'name', 'present', 'past'], + "WidgetPalette": ['blue', 'custom_bg', 'custom_image', 'custom_text', 'gray_on_white', 'grey', 'green', 'orange', 'red', 'red_on_white', 'white_on_gray', 'white_on_green', 'green_on_white', 'white_on_red', 'white_on_yellow', 'yellow_on_white', 'black_on_light_yellow', 'black_on_light_green', 'black_on_light_red'], + "WidgetServiceSummaryDisplayFormat": ['one_column', 'two_column', 'three_column'], + "WidgetSizeFormat": ['small', 'medium', 'large'], + "WidgetSort": ['asc', 'desc'], + "WidgetSummaryType": ['monitors', 'groups', 'combined'], + "WidgetTextAlign": ['center', 'left', 'right'], + "WidgetTickEdge": ['bottom', 'left', 'right', 'top'], + "WidgetTimeWindows": ['7d', '30d', '90d', 'week_to_date', 'previous_week', 'month_to_date', 'previous_month', 'global_time'], + "WidgetVerticalAlign": ['center', 'top', 'bottom'], + "WidgetViewMode": ['overall', 'component', 'both'], + "WidgetVizType": ['timeseries', 'toplist'], }; -const typeMap: { [index: string]: any } = { - APIErrorResponse: APIErrorResponse, - AWSAccount: AWSAccount, - AWSAccountAndLambdaRequest: AWSAccountAndLambdaRequest, - AWSAccountCreateResponse: AWSAccountCreateResponse, - AWSAccountDeleteRequest: AWSAccountDeleteRequest, - AWSAccountListResponse: AWSAccountListResponse, - AWSEventBridgeAccountConfiguration: AWSEventBridgeAccountConfiguration, - AWSEventBridgeCreateRequest: AWSEventBridgeCreateRequest, - AWSEventBridgeCreateResponse: AWSEventBridgeCreateResponse, - AWSEventBridgeDeleteRequest: AWSEventBridgeDeleteRequest, - AWSEventBridgeDeleteResponse: AWSEventBridgeDeleteResponse, - AWSEventBridgeListResponse: AWSEventBridgeListResponse, - AWSEventBridgeSource: AWSEventBridgeSource, - AWSLogsAsyncError: AWSLogsAsyncError, - AWSLogsAsyncResponse: AWSLogsAsyncResponse, - AWSLogsLambda: AWSLogsLambda, - AWSLogsListResponse: AWSLogsListResponse, - AWSLogsListServicesResponse: AWSLogsListServicesResponse, - AWSLogsServicesRequest: AWSLogsServicesRequest, - AWSTagFilter: AWSTagFilter, - AWSTagFilterCreateRequest: AWSTagFilterCreateRequest, - AWSTagFilterDeleteRequest: AWSTagFilterDeleteRequest, - AWSTagFilterListResponse: AWSTagFilterListResponse, - AddSignalToIncidentRequest: AddSignalToIncidentRequest, - AlertGraphWidgetDefinition: AlertGraphWidgetDefinition, - AlertValueWidgetDefinition: AlertValueWidgetDefinition, - ApiKey: ApiKey, - ApiKeyListResponse: ApiKeyListResponse, - ApiKeyResponse: ApiKeyResponse, - ApmStatsQueryColumnType: ApmStatsQueryColumnType, - ApmStatsQueryDefinition: ApmStatsQueryDefinition, - ApplicationKey: ApplicationKey, - ApplicationKeyListResponse: ApplicationKeyListResponse, - ApplicationKeyResponse: ApplicationKeyResponse, - AuthenticationValidationResponse: AuthenticationValidationResponse, - AzureAccount: AzureAccount, - CancelDowntimesByScopeRequest: CancelDowntimesByScopeRequest, - CanceledDowntimesIds: CanceledDowntimesIds, - ChangeWidgetDefinition: ChangeWidgetDefinition, - ChangeWidgetRequest: ChangeWidgetRequest, - CheckCanDeleteMonitorResponse: CheckCanDeleteMonitorResponse, - CheckCanDeleteMonitorResponseData: CheckCanDeleteMonitorResponseData, - CheckCanDeleteSLOResponse: CheckCanDeleteSLOResponse, - CheckCanDeleteSLOResponseData: CheckCanDeleteSLOResponseData, - CheckStatusWidgetDefinition: CheckStatusWidgetDefinition, - Creator: Creator, - Dashboard: Dashboard, - DashboardBulkActionData: DashboardBulkActionData, - DashboardBulkDeleteRequest: DashboardBulkDeleteRequest, - DashboardDeleteResponse: DashboardDeleteResponse, - DashboardGlobalTime: DashboardGlobalTime, - DashboardList: DashboardList, - DashboardListDeleteResponse: DashboardListDeleteResponse, - DashboardListListResponse: DashboardListListResponse, - DashboardRestoreRequest: DashboardRestoreRequest, - DashboardSummary: DashboardSummary, - DashboardSummaryDefinition: DashboardSummaryDefinition, - DashboardTemplateVariable: DashboardTemplateVariable, - DashboardTemplateVariablePreset: DashboardTemplateVariablePreset, - DashboardTemplateVariablePresetValue: DashboardTemplateVariablePresetValue, - DeleteSharedDashboardResponse: DeleteSharedDashboardResponse, - DeletedMonitor: DeletedMonitor, - DistributionPointsPayload: DistributionPointsPayload, - DistributionPointsSeries: DistributionPointsSeries, - DistributionWidgetDefinition: DistributionWidgetDefinition, - DistributionWidgetRequest: DistributionWidgetRequest, - DistributionWidgetXAxis: DistributionWidgetXAxis, - DistributionWidgetYAxis: DistributionWidgetYAxis, - Downtime: Downtime, - DowntimeChild: DowntimeChild, - DowntimeRecurrence: DowntimeRecurrence, - Event: Event, - EventCreateRequest: EventCreateRequest, - EventCreateResponse: EventCreateResponse, - EventListResponse: EventListResponse, - EventQueryDefinition: EventQueryDefinition, - EventResponse: EventResponse, - EventStreamWidgetDefinition: EventStreamWidgetDefinition, - EventTimelineWidgetDefinition: EventTimelineWidgetDefinition, - FormulaAndFunctionApmDependencyStatsQueryDefinition: - FormulaAndFunctionApmDependencyStatsQueryDefinition, - FormulaAndFunctionApmResourceStatsQueryDefinition: - FormulaAndFunctionApmResourceStatsQueryDefinition, - FormulaAndFunctionCloudCostQueryDefinition: - FormulaAndFunctionCloudCostQueryDefinition, - FormulaAndFunctionEventQueryDefinition: - FormulaAndFunctionEventQueryDefinition, - FormulaAndFunctionEventQueryDefinitionCompute: - FormulaAndFunctionEventQueryDefinitionCompute, - FormulaAndFunctionEventQueryDefinitionSearch: - FormulaAndFunctionEventQueryDefinitionSearch, - FormulaAndFunctionEventQueryGroupBy: FormulaAndFunctionEventQueryGroupBy, - FormulaAndFunctionEventQueryGroupBySort: - FormulaAndFunctionEventQueryGroupBySort, - FormulaAndFunctionMetricQueryDefinition: - FormulaAndFunctionMetricQueryDefinition, - FormulaAndFunctionProcessQueryDefinition: - FormulaAndFunctionProcessQueryDefinition, - FormulaAndFunctionSLOQueryDefinition: FormulaAndFunctionSLOQueryDefinition, - FreeTextWidgetDefinition: FreeTextWidgetDefinition, - FunnelQuery: FunnelQuery, - FunnelStep: FunnelStep, - FunnelWidgetDefinition: FunnelWidgetDefinition, - FunnelWidgetRequest: FunnelWidgetRequest, - GCPAccount: GCPAccount, - GeomapWidgetDefinition: GeomapWidgetDefinition, - GeomapWidgetDefinitionStyle: GeomapWidgetDefinitionStyle, - GeomapWidgetDefinitionView: GeomapWidgetDefinitionView, - GeomapWidgetRequest: GeomapWidgetRequest, - GraphSnapshot: GraphSnapshot, - GroupWidgetDefinition: GroupWidgetDefinition, - HTTPLogError: HTTPLogError, - HTTPLogItem: HTTPLogItem, - HeatMapWidgetDefinition: HeatMapWidgetDefinition, - HeatMapWidgetRequest: HeatMapWidgetRequest, - Host: Host, - HostListResponse: HostListResponse, - HostMapRequest: HostMapRequest, - HostMapWidgetDefinition: HostMapWidgetDefinition, - HostMapWidgetDefinitionRequests: HostMapWidgetDefinitionRequests, - HostMapWidgetDefinitionStyle: HostMapWidgetDefinitionStyle, - HostMeta: HostMeta, - HostMetaInstallMethod: HostMetaInstallMethod, - HostMetrics: HostMetrics, - HostMuteResponse: HostMuteResponse, - HostMuteSettings: HostMuteSettings, - HostTags: HostTags, - HostTotals: HostTotals, - HourlyUsageAttributionBody: HourlyUsageAttributionBody, - HourlyUsageAttributionMetadata: HourlyUsageAttributionMetadata, - HourlyUsageAttributionPagination: HourlyUsageAttributionPagination, - HourlyUsageAttributionResponse: HourlyUsageAttributionResponse, - IFrameWidgetDefinition: IFrameWidgetDefinition, - IPPrefixesAPI: IPPrefixesAPI, - IPPrefixesAPM: IPPrefixesAPM, - IPPrefixesAgents: IPPrefixesAgents, - IPPrefixesGlobal: IPPrefixesGlobal, - IPPrefixesLogs: IPPrefixesLogs, - IPPrefixesOrchestrator: IPPrefixesOrchestrator, - IPPrefixesProcess: IPPrefixesProcess, - IPPrefixesRemoteConfiguration: IPPrefixesRemoteConfiguration, - IPPrefixesSynthetics: IPPrefixesSynthetics, - IPPrefixesSyntheticsPrivateLocations: IPPrefixesSyntheticsPrivateLocations, - IPPrefixesWebhooks: IPPrefixesWebhooks, - IPRanges: IPRanges, - IdpFormData: IdpFormData, - IdpResponse: IdpResponse, - ImageWidgetDefinition: ImageWidgetDefinition, - IntakePayloadAccepted: IntakePayloadAccepted, - ListStreamColumn: ListStreamColumn, - ListStreamComputeItems: ListStreamComputeItems, - ListStreamGroupByItems: ListStreamGroupByItems, - ListStreamQuery: ListStreamQuery, - ListStreamWidgetDefinition: ListStreamWidgetDefinition, - ListStreamWidgetRequest: ListStreamWidgetRequest, - Log: Log, - LogContent: LogContent, - LogQueryDefinition: LogQueryDefinition, - LogQueryDefinitionGroupBy: LogQueryDefinitionGroupBy, - LogQueryDefinitionGroupBySort: LogQueryDefinitionGroupBySort, - LogQueryDefinitionSearch: LogQueryDefinitionSearch, - LogStreamWidgetDefinition: LogStreamWidgetDefinition, - LogsAPIError: LogsAPIError, - LogsAPIErrorResponse: LogsAPIErrorResponse, - LogsArithmeticProcessor: LogsArithmeticProcessor, - LogsAttributeRemapper: LogsAttributeRemapper, - LogsByRetention: LogsByRetention, - LogsByRetentionMonthlyUsage: LogsByRetentionMonthlyUsage, - LogsByRetentionOrgUsage: LogsByRetentionOrgUsage, - LogsByRetentionOrgs: LogsByRetentionOrgs, - LogsCategoryProcessor: LogsCategoryProcessor, - LogsCategoryProcessorCategory: LogsCategoryProcessorCategory, - LogsDailyLimitReset: LogsDailyLimitReset, - LogsDateRemapper: LogsDateRemapper, - LogsExclusion: LogsExclusion, - LogsExclusionFilter: LogsExclusionFilter, - LogsFilter: LogsFilter, - LogsGeoIPParser: LogsGeoIPParser, - LogsGrokParser: LogsGrokParser, - LogsGrokParserRules: LogsGrokParserRules, - LogsIndex: LogsIndex, - LogsIndexListResponse: LogsIndexListResponse, - LogsIndexUpdateRequest: LogsIndexUpdateRequest, - LogsIndexesOrder: LogsIndexesOrder, - LogsListRequest: LogsListRequest, - LogsListRequestTime: LogsListRequestTime, - LogsListResponse: LogsListResponse, - LogsLookupProcessor: LogsLookupProcessor, - LogsMessageRemapper: LogsMessageRemapper, - LogsPipeline: LogsPipeline, - LogsPipelineProcessor: LogsPipelineProcessor, - LogsPipelinesOrder: LogsPipelinesOrder, - LogsQueryCompute: LogsQueryCompute, - LogsRetentionAggSumUsage: LogsRetentionAggSumUsage, - LogsRetentionSumUsage: LogsRetentionSumUsage, - LogsServiceRemapper: LogsServiceRemapper, - LogsSpanRemapper: LogsSpanRemapper, - LogsStatusRemapper: LogsStatusRemapper, - LogsStringBuilderProcessor: LogsStringBuilderProcessor, - LogsTraceRemapper: LogsTraceRemapper, - LogsURLParser: LogsURLParser, - LogsUserAgentParser: LogsUserAgentParser, - MatchingDowntime: MatchingDowntime, - MetricMetadata: MetricMetadata, - MetricSearchResponse: MetricSearchResponse, - MetricSearchResponseResults: MetricSearchResponseResults, - MetricsListResponse: MetricsListResponse, - MetricsPayload: MetricsPayload, - MetricsQueryMetadata: MetricsQueryMetadata, - MetricsQueryResponse: MetricsQueryResponse, - MetricsQueryUnit: MetricsQueryUnit, - Monitor: Monitor, - MonitorFormulaAndFunctionCostQueryDefinition: - MonitorFormulaAndFunctionCostQueryDefinition, - MonitorFormulaAndFunctionEventQueryDefinition: - MonitorFormulaAndFunctionEventQueryDefinition, - MonitorFormulaAndFunctionEventQueryDefinitionCompute: - MonitorFormulaAndFunctionEventQueryDefinitionCompute, - MonitorFormulaAndFunctionEventQueryDefinitionSearch: - MonitorFormulaAndFunctionEventQueryDefinitionSearch, - MonitorFormulaAndFunctionEventQueryGroupBy: - MonitorFormulaAndFunctionEventQueryGroupBy, - MonitorFormulaAndFunctionEventQueryGroupBySort: - MonitorFormulaAndFunctionEventQueryGroupBySort, - MonitorGroupSearchResponse: MonitorGroupSearchResponse, - MonitorGroupSearchResponseCounts: MonitorGroupSearchResponseCounts, - MonitorGroupSearchResult: MonitorGroupSearchResult, - MonitorOptions: MonitorOptions, - MonitorOptionsAggregation: MonitorOptionsAggregation, - MonitorOptionsCustomSchedule: MonitorOptionsCustomSchedule, - MonitorOptionsCustomScheduleRecurrence: - MonitorOptionsCustomScheduleRecurrence, - MonitorOptionsSchedulingOptions: MonitorOptionsSchedulingOptions, - MonitorOptionsSchedulingOptionsEvaluationWindow: - MonitorOptionsSchedulingOptionsEvaluationWindow, - MonitorSearchCountItem: MonitorSearchCountItem, - MonitorSearchResponse: MonitorSearchResponse, - MonitorSearchResponseCounts: MonitorSearchResponseCounts, - MonitorSearchResponseMetadata: MonitorSearchResponseMetadata, - MonitorSearchResult: MonitorSearchResult, - MonitorSearchResultNotification: MonitorSearchResultNotification, - MonitorState: MonitorState, - MonitorStateGroup: MonitorStateGroup, - MonitorSummaryWidgetDefinition: MonitorSummaryWidgetDefinition, - MonitorThresholdWindowOptions: MonitorThresholdWindowOptions, - MonitorThresholds: MonitorThresholds, - MonitorUpdateRequest: MonitorUpdateRequest, - MonthlyUsageAttributionBody: MonthlyUsageAttributionBody, - MonthlyUsageAttributionMetadata: MonthlyUsageAttributionMetadata, - MonthlyUsageAttributionPagination: MonthlyUsageAttributionPagination, - MonthlyUsageAttributionResponse: MonthlyUsageAttributionResponse, - MonthlyUsageAttributionValues: MonthlyUsageAttributionValues, - NoteWidgetDefinition: NoteWidgetDefinition, - NotebookAbsoluteTime: NotebookAbsoluteTime, - NotebookAuthor: NotebookAuthor, - NotebookCellCreateRequest: NotebookCellCreateRequest, - NotebookCellResponse: NotebookCellResponse, - NotebookCellUpdateRequest: NotebookCellUpdateRequest, - NotebookCreateData: NotebookCreateData, - NotebookCreateDataAttributes: NotebookCreateDataAttributes, - NotebookCreateRequest: NotebookCreateRequest, - NotebookDistributionCellAttributes: NotebookDistributionCellAttributes, - NotebookHeatMapCellAttributes: NotebookHeatMapCellAttributes, - NotebookLogStreamCellAttributes: NotebookLogStreamCellAttributes, - NotebookMarkdownCellAttributes: NotebookMarkdownCellAttributes, - NotebookMarkdownCellDefinition: NotebookMarkdownCellDefinition, - NotebookMetadata: NotebookMetadata, - NotebookRelativeTime: NotebookRelativeTime, - NotebookResponse: NotebookResponse, - NotebookResponseData: NotebookResponseData, - NotebookResponseDataAttributes: NotebookResponseDataAttributes, - NotebookSplitBy: NotebookSplitBy, - NotebookTimeseriesCellAttributes: NotebookTimeseriesCellAttributes, - NotebookToplistCellAttributes: NotebookToplistCellAttributes, - NotebookUpdateData: NotebookUpdateData, - NotebookUpdateDataAttributes: NotebookUpdateDataAttributes, - NotebookUpdateRequest: NotebookUpdateRequest, - NotebooksResponse: NotebooksResponse, - NotebooksResponseData: NotebooksResponseData, - NotebooksResponseDataAttributes: NotebooksResponseDataAttributes, - NotebooksResponseMeta: NotebooksResponseMeta, - NotebooksResponsePage: NotebooksResponsePage, - NumberFormatUnitCanonical: NumberFormatUnitCanonical, - NumberFormatUnitCustom: NumberFormatUnitCustom, - NumberFormatUnitScale: NumberFormatUnitScale, - OrgDowngradedResponse: OrgDowngradedResponse, - Organization: Organization, - OrganizationBilling: OrganizationBilling, - OrganizationCreateBody: OrganizationCreateBody, - OrganizationCreateResponse: OrganizationCreateResponse, - OrganizationListResponse: OrganizationListResponse, - OrganizationResponse: OrganizationResponse, - OrganizationSettings: OrganizationSettings, - OrganizationSettingsSaml: OrganizationSettingsSaml, - OrganizationSettingsSamlAutocreateUsersDomains: - OrganizationSettingsSamlAutocreateUsersDomains, - OrganizationSettingsSamlIdpInitiatedLogin: - OrganizationSettingsSamlIdpInitiatedLogin, - OrganizationSettingsSamlStrictMode: OrganizationSettingsSamlStrictMode, - OrganizationSubscription: OrganizationSubscription, - PagerDutyService: PagerDutyService, - PagerDutyServiceKey: PagerDutyServiceKey, - PagerDutyServiceName: PagerDutyServiceName, - Pagination: Pagination, - PowerpackTemplateVariableContents: PowerpackTemplateVariableContents, - PowerpackTemplateVariables: PowerpackTemplateVariables, - PowerpackWidgetDefinition: PowerpackWidgetDefinition, - ProcessQueryDefinition: ProcessQueryDefinition, - QueryValueWidgetDefinition: QueryValueWidgetDefinition, - QueryValueWidgetRequest: QueryValueWidgetRequest, - ReferenceTableLogsLookupProcessor: ReferenceTableLogsLookupProcessor, - ResourceProviderConfig: ResourceProviderConfig, - ResponseMetaAttributes: ResponseMetaAttributes, - RunWorkflowWidgetDefinition: RunWorkflowWidgetDefinition, - RunWorkflowWidgetInput: RunWorkflowWidgetInput, - SLOBulkDeleteError: SLOBulkDeleteError, - SLOBulkDeleteResponse: SLOBulkDeleteResponse, - SLOBulkDeleteResponseData: SLOBulkDeleteResponseData, - SLOCorrection: SLOCorrection, - SLOCorrectionCreateData: SLOCorrectionCreateData, - SLOCorrectionCreateRequest: SLOCorrectionCreateRequest, - SLOCorrectionCreateRequestAttributes: SLOCorrectionCreateRequestAttributes, - SLOCorrectionListResponse: SLOCorrectionListResponse, - SLOCorrectionResponse: SLOCorrectionResponse, - SLOCorrectionResponseAttributes: SLOCorrectionResponseAttributes, - SLOCorrectionResponseAttributesModifier: - SLOCorrectionResponseAttributesModifier, - SLOCorrectionUpdateData: SLOCorrectionUpdateData, - SLOCorrectionUpdateRequest: SLOCorrectionUpdateRequest, - SLOCorrectionUpdateRequestAttributes: SLOCorrectionUpdateRequestAttributes, - SLOCreator: SLOCreator, - SLODeleteResponse: SLODeleteResponse, - SLOFormula: SLOFormula, - SLOHistoryMetrics: SLOHistoryMetrics, - SLOHistoryMetricsSeries: SLOHistoryMetricsSeries, - SLOHistoryMetricsSeriesMetadata: SLOHistoryMetricsSeriesMetadata, - SLOHistoryMetricsSeriesMetadataUnit: SLOHistoryMetricsSeriesMetadataUnit, - SLOHistoryMonitor: SLOHistoryMonitor, - SLOHistoryResponse: SLOHistoryResponse, - SLOHistoryResponseData: SLOHistoryResponseData, - SLOHistoryResponseError: SLOHistoryResponseError, - SLOHistoryResponseErrorWithType: SLOHistoryResponseErrorWithType, - SLOHistorySLIData: SLOHistorySLIData, - SLOListResponse: SLOListResponse, - SLOListResponseMetadata: SLOListResponseMetadata, - SLOListResponseMetadataPage: SLOListResponseMetadataPage, - SLOListWidgetDefinition: SLOListWidgetDefinition, - SLOListWidgetQuery: SLOListWidgetQuery, - SLOListWidgetRequest: SLOListWidgetRequest, - SLOOverallStatuses: SLOOverallStatuses, - SLORawErrorBudgetRemaining: SLORawErrorBudgetRemaining, - SLOResponse: SLOResponse, - SLOResponseData: SLOResponseData, - SLOStatus: SLOStatus, - SLOThreshold: SLOThreshold, - SLOTimeSliceCondition: SLOTimeSliceCondition, - SLOTimeSliceQuery: SLOTimeSliceQuery, - SLOTimeSliceSpec: SLOTimeSliceSpec, - SLOWidgetDefinition: SLOWidgetDefinition, - ScatterPlotRequest: ScatterPlotRequest, - ScatterPlotWidgetDefinition: ScatterPlotWidgetDefinition, - ScatterPlotWidgetDefinitionRequests: ScatterPlotWidgetDefinitionRequests, - ScatterplotTableRequest: ScatterplotTableRequest, - ScatterplotWidgetFormula: ScatterplotWidgetFormula, - SearchSLOQuery: SearchSLOQuery, - SearchSLOResponse: SearchSLOResponse, - SearchSLOResponseData: SearchSLOResponseData, - SearchSLOResponseDataAttributes: SearchSLOResponseDataAttributes, - SearchSLOResponseDataAttributesFacets: SearchSLOResponseDataAttributesFacets, - SearchSLOResponseDataAttributesFacetsObjectInt: - SearchSLOResponseDataAttributesFacetsObjectInt, - SearchSLOResponseDataAttributesFacetsObjectString: - SearchSLOResponseDataAttributesFacetsObjectString, - SearchSLOResponseLinks: SearchSLOResponseLinks, - SearchSLOResponseMeta: SearchSLOResponseMeta, - SearchSLOResponseMetaPage: SearchSLOResponseMetaPage, - SearchSLOThreshold: SearchSLOThreshold, - SearchServiceLevelObjective: SearchServiceLevelObjective, - SearchServiceLevelObjectiveAttributes: SearchServiceLevelObjectiveAttributes, - SearchServiceLevelObjectiveData: SearchServiceLevelObjectiveData, - SelectableTemplateVariableItems: SelectableTemplateVariableItems, - Series: Series, - ServiceCheck: ServiceCheck, - ServiceLevelObjective: ServiceLevelObjective, - ServiceLevelObjectiveQuery: ServiceLevelObjectiveQuery, - ServiceLevelObjectiveRequest: ServiceLevelObjectiveRequest, - ServiceMapWidgetDefinition: ServiceMapWidgetDefinition, - ServiceSummaryWidgetDefinition: ServiceSummaryWidgetDefinition, - SharedDashboard: SharedDashboard, - SharedDashboardAuthor: SharedDashboardAuthor, - SharedDashboardInviteesItems: SharedDashboardInviteesItems, - SharedDashboardInvites: SharedDashboardInvites, - SharedDashboardInvitesDataObject: SharedDashboardInvitesDataObject, - SharedDashboardInvitesDataObjectAttributes: - SharedDashboardInvitesDataObjectAttributes, - SharedDashboardInvitesMeta: SharedDashboardInvitesMeta, - SharedDashboardInvitesMetaPage: SharedDashboardInvitesMetaPage, - SharedDashboardUpdateRequest: SharedDashboardUpdateRequest, - SharedDashboardUpdateRequestGlobalTime: - SharedDashboardUpdateRequestGlobalTime, - SignalAssigneeUpdateRequest: SignalAssigneeUpdateRequest, - SignalStateUpdateRequest: SignalStateUpdateRequest, - SlackIntegrationChannel: SlackIntegrationChannel, - SlackIntegrationChannelDisplay: SlackIntegrationChannelDisplay, - SplitConfig: SplitConfig, - SplitConfigSortCompute: SplitConfigSortCompute, - SplitDimension: SplitDimension, - SplitGraphWidgetDefinition: SplitGraphWidgetDefinition, - SplitSort: SplitSort, - SplitVectorEntryItem: SplitVectorEntryItem, - SuccessfulSignalUpdateResponse: SuccessfulSignalUpdateResponse, - SunburstWidgetDefinition: SunburstWidgetDefinition, - SunburstWidgetLegendInlineAutomatic: SunburstWidgetLegendInlineAutomatic, - SunburstWidgetLegendTable: SunburstWidgetLegendTable, - SunburstWidgetRequest: SunburstWidgetRequest, - SyntheticsAPITest: SyntheticsAPITest, - SyntheticsAPITestConfig: SyntheticsAPITestConfig, - SyntheticsAPITestResultData: SyntheticsAPITestResultData, - SyntheticsAPITestResultFull: SyntheticsAPITestResultFull, - SyntheticsAPITestResultFullCheck: SyntheticsAPITestResultFullCheck, - SyntheticsAPITestResultShort: SyntheticsAPITestResultShort, - SyntheticsAPITestResultShortResult: SyntheticsAPITestResultShortResult, - SyntheticsAPITestStep: SyntheticsAPITestStep, - SyntheticsAPIWaitStep: SyntheticsAPIWaitStep, - SyntheticsApiTestResultFailure: SyntheticsApiTestResultFailure, - SyntheticsAssertionBodyHashTarget: SyntheticsAssertionBodyHashTarget, - SyntheticsAssertionJSONPathTarget: SyntheticsAssertionJSONPathTarget, - SyntheticsAssertionJSONPathTargetTarget: - SyntheticsAssertionJSONPathTargetTarget, - SyntheticsAssertionJSONSchemaTarget: SyntheticsAssertionJSONSchemaTarget, - SyntheticsAssertionJSONSchemaTargetTarget: - SyntheticsAssertionJSONSchemaTargetTarget, - SyntheticsAssertionJavascript: SyntheticsAssertionJavascript, - SyntheticsAssertionTarget: SyntheticsAssertionTarget, - SyntheticsAssertionXPathTarget: SyntheticsAssertionXPathTarget, - SyntheticsAssertionXPathTargetTarget: SyntheticsAssertionXPathTargetTarget, - SyntheticsBasicAuthDigest: SyntheticsBasicAuthDigest, - SyntheticsBasicAuthNTLM: SyntheticsBasicAuthNTLM, - SyntheticsBasicAuthOauthClient: SyntheticsBasicAuthOauthClient, - SyntheticsBasicAuthOauthROP: SyntheticsBasicAuthOauthROP, - SyntheticsBasicAuthSigv4: SyntheticsBasicAuthSigv4, - SyntheticsBasicAuthWeb: SyntheticsBasicAuthWeb, - SyntheticsBatchDetails: SyntheticsBatchDetails, - SyntheticsBatchDetailsData: SyntheticsBatchDetailsData, - SyntheticsBatchResult: SyntheticsBatchResult, - SyntheticsBrowserError: SyntheticsBrowserError, - SyntheticsBrowserTest: SyntheticsBrowserTest, - SyntheticsBrowserTestConfig: SyntheticsBrowserTestConfig, - SyntheticsBrowserTestResultData: SyntheticsBrowserTestResultData, - SyntheticsBrowserTestResultFailure: SyntheticsBrowserTestResultFailure, - SyntheticsBrowserTestResultFull: SyntheticsBrowserTestResultFull, - SyntheticsBrowserTestResultFullCheck: SyntheticsBrowserTestResultFullCheck, - SyntheticsBrowserTestResultShort: SyntheticsBrowserTestResultShort, - SyntheticsBrowserTestResultShortResult: - SyntheticsBrowserTestResultShortResult, - SyntheticsBrowserTestRumSettings: SyntheticsBrowserTestRumSettings, - SyntheticsBrowserVariable: SyntheticsBrowserVariable, - SyntheticsCIBatchMetadata: SyntheticsCIBatchMetadata, - SyntheticsCIBatchMetadataCI: SyntheticsCIBatchMetadataCI, - SyntheticsCIBatchMetadataGit: SyntheticsCIBatchMetadataGit, - SyntheticsCIBatchMetadataPipeline: SyntheticsCIBatchMetadataPipeline, - SyntheticsCIBatchMetadataProvider: SyntheticsCIBatchMetadataProvider, - SyntheticsCITest: SyntheticsCITest, - SyntheticsCITestBody: SyntheticsCITestBody, - SyntheticsConfigVariable: SyntheticsConfigVariable, - SyntheticsCoreWebVitals: SyntheticsCoreWebVitals, - SyntheticsDeleteTestsPayload: SyntheticsDeleteTestsPayload, - SyntheticsDeleteTestsResponse: SyntheticsDeleteTestsResponse, - SyntheticsDeletedTest: SyntheticsDeletedTest, - SyntheticsDevice: SyntheticsDevice, - SyntheticsFetchUptimesPayload: SyntheticsFetchUptimesPayload, - SyntheticsGetAPITestLatestResultsResponse: - SyntheticsGetAPITestLatestResultsResponse, - SyntheticsGetBrowserTestLatestResultsResponse: - SyntheticsGetBrowserTestLatestResultsResponse, - SyntheticsGlobalVariable: SyntheticsGlobalVariable, - SyntheticsGlobalVariableAttributes: SyntheticsGlobalVariableAttributes, - SyntheticsGlobalVariableOptions: SyntheticsGlobalVariableOptions, - SyntheticsGlobalVariableParseTestOptions: - SyntheticsGlobalVariableParseTestOptions, - SyntheticsGlobalVariableRequest: SyntheticsGlobalVariableRequest, - SyntheticsGlobalVariableTOTPParameters: - SyntheticsGlobalVariableTOTPParameters, - SyntheticsGlobalVariableValue: SyntheticsGlobalVariableValue, - SyntheticsListGlobalVariablesResponse: SyntheticsListGlobalVariablesResponse, - SyntheticsListTestsResponse: SyntheticsListTestsResponse, - SyntheticsLocation: SyntheticsLocation, - SyntheticsLocations: SyntheticsLocations, - SyntheticsMobileStep: SyntheticsMobileStep, - SyntheticsMobileStepParams: SyntheticsMobileStepParams, - SyntheticsMobileStepParamsElement: SyntheticsMobileStepParamsElement, - SyntheticsMobileStepParamsElementRelativePosition: - SyntheticsMobileStepParamsElementRelativePosition, - SyntheticsMobileStepParamsElementUserLocator: - SyntheticsMobileStepParamsElementUserLocator, - SyntheticsMobileStepParamsElementUserLocatorValuesItems: - SyntheticsMobileStepParamsElementUserLocatorValuesItems, - SyntheticsMobileStepParamsPositionsItems: - SyntheticsMobileStepParamsPositionsItems, - SyntheticsMobileStepParamsVariable: SyntheticsMobileStepParamsVariable, - SyntheticsMobileTest: SyntheticsMobileTest, - SyntheticsMobileTestConfig: SyntheticsMobileTestConfig, - SyntheticsMobileTestOptions: SyntheticsMobileTestOptions, - SyntheticsMobileTestsMobileApplication: - SyntheticsMobileTestsMobileApplication, - SyntheticsParsingOptions: SyntheticsParsingOptions, - SyntheticsPatchTestBody: SyntheticsPatchTestBody, - SyntheticsPatchTestOperation: SyntheticsPatchTestOperation, - SyntheticsPrivateLocation: SyntheticsPrivateLocation, - SyntheticsPrivateLocationCreationResponse: - SyntheticsPrivateLocationCreationResponse, - SyntheticsPrivateLocationCreationResponseResultEncryption: - SyntheticsPrivateLocationCreationResponseResultEncryption, - SyntheticsPrivateLocationMetadata: SyntheticsPrivateLocationMetadata, - SyntheticsPrivateLocationSecrets: SyntheticsPrivateLocationSecrets, - SyntheticsPrivateLocationSecretsAuthentication: - SyntheticsPrivateLocationSecretsAuthentication, - SyntheticsPrivateLocationSecretsConfigDecryption: - SyntheticsPrivateLocationSecretsConfigDecryption, - SyntheticsSSLCertificate: SyntheticsSSLCertificate, - SyntheticsSSLCertificateIssuer: SyntheticsSSLCertificateIssuer, - SyntheticsSSLCertificateSubject: SyntheticsSSLCertificateSubject, - SyntheticsStep: SyntheticsStep, - SyntheticsStepDetail: SyntheticsStepDetail, - SyntheticsStepDetailWarning: SyntheticsStepDetailWarning, - SyntheticsTestCiOptions: SyntheticsTestCiOptions, - SyntheticsTestConfig: SyntheticsTestConfig, - SyntheticsTestDetails: SyntheticsTestDetails, - SyntheticsTestOptions: SyntheticsTestOptions, - SyntheticsTestOptionsMonitorOptions: SyntheticsTestOptionsMonitorOptions, - SyntheticsTestOptionsRetry: SyntheticsTestOptionsRetry, - SyntheticsTestOptionsScheduling: SyntheticsTestOptionsScheduling, - SyntheticsTestOptionsSchedulingTimeframe: - SyntheticsTestOptionsSchedulingTimeframe, - SyntheticsTestRequest: SyntheticsTestRequest, - SyntheticsTestRequestBodyFile: SyntheticsTestRequestBodyFile, - SyntheticsTestRequestCertificate: SyntheticsTestRequestCertificate, - SyntheticsTestRequestCertificateItem: SyntheticsTestRequestCertificateItem, - SyntheticsTestRequestProxy: SyntheticsTestRequestProxy, - SyntheticsTestRestrictionPolicyBinding: - SyntheticsTestRestrictionPolicyBinding, - SyntheticsTestUptime: SyntheticsTestUptime, - SyntheticsTiming: SyntheticsTiming, - SyntheticsTriggerBody: SyntheticsTriggerBody, - SyntheticsTriggerCITestLocation: SyntheticsTriggerCITestLocation, - SyntheticsTriggerCITestRunResult: SyntheticsTriggerCITestRunResult, - SyntheticsTriggerCITestsResponse: SyntheticsTriggerCITestsResponse, - SyntheticsTriggerTest: SyntheticsTriggerTest, - SyntheticsUpdateTestPauseStatusPayload: - SyntheticsUpdateTestPauseStatusPayload, - SyntheticsUptime: SyntheticsUptime, - SyntheticsVariableParser: SyntheticsVariableParser, - TableWidgetDefinition: TableWidgetDefinition, - TableWidgetRequest: TableWidgetRequest, - TableWidgetTextFormatMatch: TableWidgetTextFormatMatch, - TableWidgetTextFormatReplaceAll: TableWidgetTextFormatReplaceAll, - TableWidgetTextFormatReplaceSubstring: TableWidgetTextFormatReplaceSubstring, - TableWidgetTextFormatRule: TableWidgetTextFormatRule, - TagToHosts: TagToHosts, - TimeseriesBackground: TimeseriesBackground, - TimeseriesWidgetDefinition: TimeseriesWidgetDefinition, - TimeseriesWidgetExpressionAlias: TimeseriesWidgetExpressionAlias, - TimeseriesWidgetRequest: TimeseriesWidgetRequest, - ToplistWidgetDefinition: ToplistWidgetDefinition, - ToplistWidgetFlat: ToplistWidgetFlat, - ToplistWidgetRequest: ToplistWidgetRequest, - ToplistWidgetStacked: ToplistWidgetStacked, - ToplistWidgetStyle: ToplistWidgetStyle, - TopologyMapWidgetDefinition: TopologyMapWidgetDefinition, - TopologyQuery: TopologyQuery, - TopologyRequest: TopologyRequest, - TreeMapWidgetDefinition: TreeMapWidgetDefinition, - TreeMapWidgetRequest: TreeMapWidgetRequest, - UsageAnalyzedLogsHour: UsageAnalyzedLogsHour, - UsageAnalyzedLogsResponse: UsageAnalyzedLogsResponse, - UsageAttributionAggregatesBody: UsageAttributionAggregatesBody, - UsageAuditLogsHour: UsageAuditLogsHour, - UsageAuditLogsResponse: UsageAuditLogsResponse, - UsageBillableSummaryBody: UsageBillableSummaryBody, - UsageBillableSummaryHour: UsageBillableSummaryHour, - UsageBillableSummaryKeys: UsageBillableSummaryKeys, - UsageBillableSummaryResponse: UsageBillableSummaryResponse, - UsageCIVisibilityHour: UsageCIVisibilityHour, - UsageCIVisibilityResponse: UsageCIVisibilityResponse, - UsageCWSHour: UsageCWSHour, - UsageCWSResponse: UsageCWSResponse, - UsageCloudSecurityPostureManagementHour: - UsageCloudSecurityPostureManagementHour, - UsageCloudSecurityPostureManagementResponse: - UsageCloudSecurityPostureManagementResponse, - UsageCustomReportsAttributes: UsageCustomReportsAttributes, - UsageCustomReportsData: UsageCustomReportsData, - UsageCustomReportsMeta: UsageCustomReportsMeta, - UsageCustomReportsPage: UsageCustomReportsPage, - UsageCustomReportsResponse: UsageCustomReportsResponse, - UsageDBMHour: UsageDBMHour, - UsageDBMResponse: UsageDBMResponse, - UsageFargateHour: UsageFargateHour, - UsageFargateResponse: UsageFargateResponse, - UsageHostHour: UsageHostHour, - UsageHostsResponse: UsageHostsResponse, - UsageIncidentManagementHour: UsageIncidentManagementHour, - UsageIncidentManagementResponse: UsageIncidentManagementResponse, - UsageIndexedSpansHour: UsageIndexedSpansHour, - UsageIndexedSpansResponse: UsageIndexedSpansResponse, - UsageIngestedSpansHour: UsageIngestedSpansHour, - UsageIngestedSpansResponse: UsageIngestedSpansResponse, - UsageIoTHour: UsageIoTHour, - UsageIoTResponse: UsageIoTResponse, - UsageLambdaHour: UsageLambdaHour, - UsageLambdaResponse: UsageLambdaResponse, - UsageLogsByIndexHour: UsageLogsByIndexHour, - UsageLogsByIndexResponse: UsageLogsByIndexResponse, - UsageLogsByRetentionHour: UsageLogsByRetentionHour, - UsageLogsByRetentionResponse: UsageLogsByRetentionResponse, - UsageLogsHour: UsageLogsHour, - UsageLogsResponse: UsageLogsResponse, - UsageNetworkFlowsHour: UsageNetworkFlowsHour, - UsageNetworkFlowsResponse: UsageNetworkFlowsResponse, - UsageNetworkHostsHour: UsageNetworkHostsHour, - UsageNetworkHostsResponse: UsageNetworkHostsResponse, - UsageOnlineArchiveHour: UsageOnlineArchiveHour, - UsageOnlineArchiveResponse: UsageOnlineArchiveResponse, - UsageProfilingHour: UsageProfilingHour, - UsageProfilingResponse: UsageProfilingResponse, - UsageRumSessionsHour: UsageRumSessionsHour, - UsageRumSessionsResponse: UsageRumSessionsResponse, - UsageRumUnitsHour: UsageRumUnitsHour, - UsageRumUnitsResponse: UsageRumUnitsResponse, - UsageSDSHour: UsageSDSHour, - UsageSDSResponse: UsageSDSResponse, - UsageSNMPHour: UsageSNMPHour, - UsageSNMPResponse: UsageSNMPResponse, - UsageSpecifiedCustomReportsAttributes: UsageSpecifiedCustomReportsAttributes, - UsageSpecifiedCustomReportsData: UsageSpecifiedCustomReportsData, - UsageSpecifiedCustomReportsMeta: UsageSpecifiedCustomReportsMeta, - UsageSpecifiedCustomReportsPage: UsageSpecifiedCustomReportsPage, - UsageSpecifiedCustomReportsResponse: UsageSpecifiedCustomReportsResponse, - UsageSummaryDate: UsageSummaryDate, - UsageSummaryDateOrg: UsageSummaryDateOrg, - UsageSummaryResponse: UsageSummaryResponse, - UsageSyntheticsAPIHour: UsageSyntheticsAPIHour, - UsageSyntheticsAPIResponse: UsageSyntheticsAPIResponse, - UsageSyntheticsBrowserHour: UsageSyntheticsBrowserHour, - UsageSyntheticsBrowserResponse: UsageSyntheticsBrowserResponse, - UsageSyntheticsHour: UsageSyntheticsHour, - UsageSyntheticsResponse: UsageSyntheticsResponse, - UsageTimeseriesHour: UsageTimeseriesHour, - UsageTimeseriesResponse: UsageTimeseriesResponse, - UsageTopAvgMetricsHour: UsageTopAvgMetricsHour, - UsageTopAvgMetricsMetadata: UsageTopAvgMetricsMetadata, - UsageTopAvgMetricsPagination: UsageTopAvgMetricsPagination, - UsageTopAvgMetricsResponse: UsageTopAvgMetricsResponse, - User: User, - UserDisableResponse: UserDisableResponse, - UserListResponse: UserListResponse, - UserResponse: UserResponse, - ViewingPreferences: ViewingPreferences, - WebhooksIntegration: WebhooksIntegration, - WebhooksIntegrationCustomVariable: WebhooksIntegrationCustomVariable, - WebhooksIntegrationCustomVariableResponse: - WebhooksIntegrationCustomVariableResponse, - WebhooksIntegrationCustomVariableUpdateRequest: - WebhooksIntegrationCustomVariableUpdateRequest, - WebhooksIntegrationUpdateRequest: WebhooksIntegrationUpdateRequest, - Widget: Widget, - WidgetAxis: WidgetAxis, - WidgetConditionalFormat: WidgetConditionalFormat, - WidgetCustomLink: WidgetCustomLink, - WidgetEvent: WidgetEvent, - WidgetFieldSort: WidgetFieldSort, - WidgetFormula: WidgetFormula, - WidgetFormulaCellDisplayModeOptions: WidgetFormulaCellDisplayModeOptions, - WidgetFormulaLimit: WidgetFormulaLimit, - WidgetFormulaSort: WidgetFormulaSort, - WidgetFormulaStyle: WidgetFormulaStyle, - WidgetGroupSort: WidgetGroupSort, - WidgetLayout: WidgetLayout, - WidgetLegacyLiveSpan: WidgetLegacyLiveSpan, - WidgetMarker: WidgetMarker, - WidgetNewFixedSpan: WidgetNewFixedSpan, - WidgetNewLiveSpan: WidgetNewLiveSpan, - WidgetNumberFormat: WidgetNumberFormat, - WidgetRequestStyle: WidgetRequestStyle, - WidgetSortBy: WidgetSortBy, - WidgetStyle: WidgetStyle, -}; +const typeMap: {[index: string]: any} = { + "APIErrorResponse": APIErrorResponse, + "AWSAccount": AWSAccount, + "AWSAccountAndLambdaRequest": AWSAccountAndLambdaRequest, + "AWSAccountCreateResponse": AWSAccountCreateResponse, + "AWSAccountDeleteRequest": AWSAccountDeleteRequest, + "AWSAccountListResponse": AWSAccountListResponse, + "AWSEventBridgeAccountConfiguration": AWSEventBridgeAccountConfiguration, + "AWSEventBridgeCreateRequest": AWSEventBridgeCreateRequest, + "AWSEventBridgeCreateResponse": AWSEventBridgeCreateResponse, + "AWSEventBridgeDeleteRequest": AWSEventBridgeDeleteRequest, + "AWSEventBridgeDeleteResponse": AWSEventBridgeDeleteResponse, + "AWSEventBridgeListResponse": AWSEventBridgeListResponse, + "AWSEventBridgeSource": AWSEventBridgeSource, + "AWSLogsAsyncError": AWSLogsAsyncError, + "AWSLogsAsyncResponse": AWSLogsAsyncResponse, + "AWSLogsLambda": AWSLogsLambda, + "AWSLogsListResponse": AWSLogsListResponse, + "AWSLogsListServicesResponse": AWSLogsListServicesResponse, + "AWSLogsServicesRequest": AWSLogsServicesRequest, + "AWSTagFilter": AWSTagFilter, + "AWSTagFilterCreateRequest": AWSTagFilterCreateRequest, + "AWSTagFilterDeleteRequest": AWSTagFilterDeleteRequest, + "AWSTagFilterListResponse": AWSTagFilterListResponse, + "AddSignalToIncidentRequest": AddSignalToIncidentRequest, + "AlertGraphWidgetDefinition": AlertGraphWidgetDefinition, + "AlertValueWidgetDefinition": AlertValueWidgetDefinition, + "ApiKey": ApiKey, + "ApiKeyListResponse": ApiKeyListResponse, + "ApiKeyResponse": ApiKeyResponse, + "ApmStatsQueryColumnType": ApmStatsQueryColumnType, + "ApmStatsQueryDefinition": ApmStatsQueryDefinition, + "ApplicationKey": ApplicationKey, + "ApplicationKeyListResponse": ApplicationKeyListResponse, + "ApplicationKeyResponse": ApplicationKeyResponse, + "AuthenticationValidationResponse": AuthenticationValidationResponse, + "AzureAccount": AzureAccount, + "CancelDowntimesByScopeRequest": CancelDowntimesByScopeRequest, + "CanceledDowntimesIds": CanceledDowntimesIds, + "ChangeWidgetDefinition": ChangeWidgetDefinition, + "ChangeWidgetRequest": ChangeWidgetRequest, + "CheckCanDeleteMonitorResponse": CheckCanDeleteMonitorResponse, + "CheckCanDeleteMonitorResponseData": CheckCanDeleteMonitorResponseData, + "CheckCanDeleteSLOResponse": CheckCanDeleteSLOResponse, + "CheckCanDeleteSLOResponseData": CheckCanDeleteSLOResponseData, + "CheckStatusWidgetDefinition": CheckStatusWidgetDefinition, + "Creator": Creator, + "Dashboard": Dashboard, + "DashboardBulkActionData": DashboardBulkActionData, + "DashboardBulkDeleteRequest": DashboardBulkDeleteRequest, + "DashboardDeleteResponse": DashboardDeleteResponse, + "DashboardGlobalTime": DashboardGlobalTime, + "DashboardList": DashboardList, + "DashboardListDeleteResponse": DashboardListDeleteResponse, + "DashboardListListResponse": DashboardListListResponse, + "DashboardRestoreRequest": DashboardRestoreRequest, + "DashboardSummary": DashboardSummary, + "DashboardSummaryDefinition": DashboardSummaryDefinition, + "DashboardTemplateVariable": DashboardTemplateVariable, + "DashboardTemplateVariablePreset": DashboardTemplateVariablePreset, + "DashboardTemplateVariablePresetValue": DashboardTemplateVariablePresetValue, + "DeleteSharedDashboardResponse": DeleteSharedDashboardResponse, + "DeletedMonitor": DeletedMonitor, + "DistributionPointsPayload": DistributionPointsPayload, + "DistributionPointsSeries": DistributionPointsSeries, + "DistributionWidgetDefinition": DistributionWidgetDefinition, + "DistributionWidgetRequest": DistributionWidgetRequest, + "DistributionWidgetXAxis": DistributionWidgetXAxis, + "DistributionWidgetYAxis": DistributionWidgetYAxis, + "Downtime": Downtime, + "DowntimeChild": DowntimeChild, + "DowntimeRecurrence": DowntimeRecurrence, + "Event": Event, + "EventCreateRequest": EventCreateRequest, + "EventCreateResponse": EventCreateResponse, + "EventListResponse": EventListResponse, + "EventQueryDefinition": EventQueryDefinition, + "EventResponse": EventResponse, + "EventStreamWidgetDefinition": EventStreamWidgetDefinition, + "EventTimelineWidgetDefinition": EventTimelineWidgetDefinition, + "FormulaAndFunctionApmDependencyStatsQueryDefinition": FormulaAndFunctionApmDependencyStatsQueryDefinition, + "FormulaAndFunctionApmResourceStatsQueryDefinition": FormulaAndFunctionApmResourceStatsQueryDefinition, + "FormulaAndFunctionCloudCostQueryDefinition": FormulaAndFunctionCloudCostQueryDefinition, + "FormulaAndFunctionEventQueryDefinition": FormulaAndFunctionEventQueryDefinition, + "FormulaAndFunctionEventQueryDefinitionCompute": FormulaAndFunctionEventQueryDefinitionCompute, + "FormulaAndFunctionEventQueryDefinitionSearch": FormulaAndFunctionEventQueryDefinitionSearch, + "FormulaAndFunctionEventQueryGroupBy": FormulaAndFunctionEventQueryGroupBy, + "FormulaAndFunctionEventQueryGroupBySort": FormulaAndFunctionEventQueryGroupBySort, + "FormulaAndFunctionMetricQueryDefinition": FormulaAndFunctionMetricQueryDefinition, + "FormulaAndFunctionProcessQueryDefinition": FormulaAndFunctionProcessQueryDefinition, + "FormulaAndFunctionSLOQueryDefinition": FormulaAndFunctionSLOQueryDefinition, + "FreeTextWidgetDefinition": FreeTextWidgetDefinition, + "FunnelQuery": FunnelQuery, + "FunnelStep": FunnelStep, + "FunnelWidgetDefinition": FunnelWidgetDefinition, + "FunnelWidgetRequest": FunnelWidgetRequest, + "GCPAccount": GCPAccount, + "GeomapWidgetDefinition": GeomapWidgetDefinition, + "GeomapWidgetDefinitionStyle": GeomapWidgetDefinitionStyle, + "GeomapWidgetDefinitionView": GeomapWidgetDefinitionView, + "GeomapWidgetRequest": GeomapWidgetRequest, + "GraphSnapshot": GraphSnapshot, + "GroupWidgetDefinition": GroupWidgetDefinition, + "HTTPLogError": HTTPLogError, + "HTTPLogItem": HTTPLogItem, + "HeatMapWidgetDefinition": HeatMapWidgetDefinition, + "HeatMapWidgetRequest": HeatMapWidgetRequest, + "Host": Host, + "HostListResponse": HostListResponse, + "HostMapRequest": HostMapRequest, + "HostMapWidgetDefinition": HostMapWidgetDefinition, + "HostMapWidgetDefinitionRequests": HostMapWidgetDefinitionRequests, + "HostMapWidgetDefinitionStyle": HostMapWidgetDefinitionStyle, + "HostMeta": HostMeta, + "HostMetaInstallMethod": HostMetaInstallMethod, + "HostMetrics": HostMetrics, + "HostMuteResponse": HostMuteResponse, + "HostMuteSettings": HostMuteSettings, + "HostTags": HostTags, + "HostTotals": HostTotals, + "HourlyUsageAttributionBody": HourlyUsageAttributionBody, + "HourlyUsageAttributionMetadata": HourlyUsageAttributionMetadata, + "HourlyUsageAttributionPagination": HourlyUsageAttributionPagination, + "HourlyUsageAttributionResponse": HourlyUsageAttributionResponse, + "IFrameWidgetDefinition": IFrameWidgetDefinition, + "IPPrefixesAPI": IPPrefixesAPI, + "IPPrefixesAPM": IPPrefixesAPM, + "IPPrefixesAgents": IPPrefixesAgents, + "IPPrefixesGlobal": IPPrefixesGlobal, + "IPPrefixesLogs": IPPrefixesLogs, + "IPPrefixesOrchestrator": IPPrefixesOrchestrator, + "IPPrefixesProcess": IPPrefixesProcess, + "IPPrefixesRemoteConfiguration": IPPrefixesRemoteConfiguration, + "IPPrefixesSynthetics": IPPrefixesSynthetics, + "IPPrefixesSyntheticsPrivateLocations": IPPrefixesSyntheticsPrivateLocations, + "IPPrefixesWebhooks": IPPrefixesWebhooks, + "IPRanges": IPRanges, + "IdpFormData": IdpFormData, + "IdpResponse": IdpResponse, + "ImageWidgetDefinition": ImageWidgetDefinition, + "IntakePayloadAccepted": IntakePayloadAccepted, + "ListStreamColumn": ListStreamColumn, + "ListStreamComputeItems": ListStreamComputeItems, + "ListStreamGroupByItems": ListStreamGroupByItems, + "ListStreamQuery": ListStreamQuery, + "ListStreamWidgetDefinition": ListStreamWidgetDefinition, + "ListStreamWidgetRequest": ListStreamWidgetRequest, + "Log": Log, + "LogContent": LogContent, + "LogQueryDefinition": LogQueryDefinition, + "LogQueryDefinitionGroupBy": LogQueryDefinitionGroupBy, + "LogQueryDefinitionGroupBySort": LogQueryDefinitionGroupBySort, + "LogQueryDefinitionSearch": LogQueryDefinitionSearch, + "LogStreamWidgetDefinition": LogStreamWidgetDefinition, + "LogsAPIError": LogsAPIError, + "LogsAPIErrorResponse": LogsAPIErrorResponse, + "LogsArithmeticProcessor": LogsArithmeticProcessor, + "LogsAttributeRemapper": LogsAttributeRemapper, + "LogsByRetention": LogsByRetention, + "LogsByRetentionMonthlyUsage": LogsByRetentionMonthlyUsage, + "LogsByRetentionOrgUsage": LogsByRetentionOrgUsage, + "LogsByRetentionOrgs": LogsByRetentionOrgs, + "LogsCategoryProcessor": LogsCategoryProcessor, + "LogsCategoryProcessorCategory": LogsCategoryProcessorCategory, + "LogsDailyLimitReset": LogsDailyLimitReset, + "LogsDateRemapper": LogsDateRemapper, + "LogsExclusion": LogsExclusion, + "LogsExclusionFilter": LogsExclusionFilter, + "LogsFilter": LogsFilter, + "LogsGeoIPParser": LogsGeoIPParser, + "LogsGrokParser": LogsGrokParser, + "LogsGrokParserRules": LogsGrokParserRules, + "LogsIndex": LogsIndex, + "LogsIndexListResponse": LogsIndexListResponse, + "LogsIndexUpdateRequest": LogsIndexUpdateRequest, + "LogsIndexesOrder": LogsIndexesOrder, + "LogsListRequest": LogsListRequest, + "LogsListRequestTime": LogsListRequestTime, + "LogsListResponse": LogsListResponse, + "LogsLookupProcessor": LogsLookupProcessor, + "LogsMessageRemapper": LogsMessageRemapper, + "LogsPipeline": LogsPipeline, + "LogsPipelineProcessor": LogsPipelineProcessor, + "LogsPipelinesOrder": LogsPipelinesOrder, + "LogsQueryCompute": LogsQueryCompute, + "LogsRetentionAggSumUsage": LogsRetentionAggSumUsage, + "LogsRetentionSumUsage": LogsRetentionSumUsage, + "LogsServiceRemapper": LogsServiceRemapper, + "LogsSpanRemapper": LogsSpanRemapper, + "LogsStatusRemapper": LogsStatusRemapper, + "LogsStringBuilderProcessor": LogsStringBuilderProcessor, + "LogsTraceRemapper": LogsTraceRemapper, + "LogsURLParser": LogsURLParser, + "LogsUserAgentParser": LogsUserAgentParser, + "MatchingDowntime": MatchingDowntime, + "MetricMetadata": MetricMetadata, + "MetricSearchResponse": MetricSearchResponse, + "MetricSearchResponseResults": MetricSearchResponseResults, + "MetricsListResponse": MetricsListResponse, + "MetricsPayload": MetricsPayload, + "MetricsQueryMetadata": MetricsQueryMetadata, + "MetricsQueryResponse": MetricsQueryResponse, + "MetricsQueryUnit": MetricsQueryUnit, + "Monitor": Monitor, + "MonitorFormulaAndFunctionCostQueryDefinition": MonitorFormulaAndFunctionCostQueryDefinition, + "MonitorFormulaAndFunctionEventQueryDefinition": MonitorFormulaAndFunctionEventQueryDefinition, + "MonitorFormulaAndFunctionEventQueryDefinitionCompute": MonitorFormulaAndFunctionEventQueryDefinitionCompute, + "MonitorFormulaAndFunctionEventQueryDefinitionSearch": MonitorFormulaAndFunctionEventQueryDefinitionSearch, + "MonitorFormulaAndFunctionEventQueryGroupBy": MonitorFormulaAndFunctionEventQueryGroupBy, + "MonitorFormulaAndFunctionEventQueryGroupBySort": MonitorFormulaAndFunctionEventQueryGroupBySort, + "MonitorGroupSearchResponse": MonitorGroupSearchResponse, + "MonitorGroupSearchResponseCounts": MonitorGroupSearchResponseCounts, + "MonitorGroupSearchResult": MonitorGroupSearchResult, + "MonitorOptions": MonitorOptions, + "MonitorOptionsAggregation": MonitorOptionsAggregation, + "MonitorOptionsCustomSchedule": MonitorOptionsCustomSchedule, + "MonitorOptionsCustomScheduleRecurrence": MonitorOptionsCustomScheduleRecurrence, + "MonitorOptionsSchedulingOptions": MonitorOptionsSchedulingOptions, + "MonitorOptionsSchedulingOptionsEvaluationWindow": MonitorOptionsSchedulingOptionsEvaluationWindow, + "MonitorSearchCountItem": MonitorSearchCountItem, + "MonitorSearchResponse": MonitorSearchResponse, + "MonitorSearchResponseCounts": MonitorSearchResponseCounts, + "MonitorSearchResponseMetadata": MonitorSearchResponseMetadata, + "MonitorSearchResult": MonitorSearchResult, + "MonitorSearchResultNotification": MonitorSearchResultNotification, + "MonitorState": MonitorState, + "MonitorStateGroup": MonitorStateGroup, + "MonitorSummaryWidgetDefinition": MonitorSummaryWidgetDefinition, + "MonitorThresholdWindowOptions": MonitorThresholdWindowOptions, + "MonitorThresholds": MonitorThresholds, + "MonitorUpdateRequest": MonitorUpdateRequest, + "MonthlyUsageAttributionBody": MonthlyUsageAttributionBody, + "MonthlyUsageAttributionMetadata": MonthlyUsageAttributionMetadata, + "MonthlyUsageAttributionPagination": MonthlyUsageAttributionPagination, + "MonthlyUsageAttributionResponse": MonthlyUsageAttributionResponse, + "MonthlyUsageAttributionValues": MonthlyUsageAttributionValues, + "NoteWidgetDefinition": NoteWidgetDefinition, + "NotebookAbsoluteTime": NotebookAbsoluteTime, + "NotebookAuthor": NotebookAuthor, + "NotebookCellCreateRequest": NotebookCellCreateRequest, + "NotebookCellResponse": NotebookCellResponse, + "NotebookCellUpdateRequest": NotebookCellUpdateRequest, + "NotebookCreateData": NotebookCreateData, + "NotebookCreateDataAttributes": NotebookCreateDataAttributes, + "NotebookCreateRequest": NotebookCreateRequest, + "NotebookDistributionCellAttributes": NotebookDistributionCellAttributes, + "NotebookHeatMapCellAttributes": NotebookHeatMapCellAttributes, + "NotebookLogStreamCellAttributes": NotebookLogStreamCellAttributes, + "NotebookMarkdownCellAttributes": NotebookMarkdownCellAttributes, + "NotebookMarkdownCellDefinition": NotebookMarkdownCellDefinition, + "NotebookMetadata": NotebookMetadata, + "NotebookRelativeTime": NotebookRelativeTime, + "NotebookResponse": NotebookResponse, + "NotebookResponseData": NotebookResponseData, + "NotebookResponseDataAttributes": NotebookResponseDataAttributes, + "NotebookSplitBy": NotebookSplitBy, + "NotebookTimeseriesCellAttributes": NotebookTimeseriesCellAttributes, + "NotebookToplistCellAttributes": NotebookToplistCellAttributes, + "NotebookUpdateData": NotebookUpdateData, + "NotebookUpdateDataAttributes": NotebookUpdateDataAttributes, + "NotebookUpdateRequest": NotebookUpdateRequest, + "NotebooksResponse": NotebooksResponse, + "NotebooksResponseData": NotebooksResponseData, + "NotebooksResponseDataAttributes": NotebooksResponseDataAttributes, + "NotebooksResponseMeta": NotebooksResponseMeta, + "NotebooksResponsePage": NotebooksResponsePage, + "NumberFormatUnitCanonical": NumberFormatUnitCanonical, + "NumberFormatUnitCustom": NumberFormatUnitCustom, + "NumberFormatUnitScale": NumberFormatUnitScale, + "OrgDowngradedResponse": OrgDowngradedResponse, + "Organization": Organization, + "OrganizationBilling": OrganizationBilling, + "OrganizationCreateBody": OrganizationCreateBody, + "OrganizationCreateResponse": OrganizationCreateResponse, + "OrganizationListResponse": OrganizationListResponse, + "OrganizationResponse": OrganizationResponse, + "OrganizationSettings": OrganizationSettings, + "OrganizationSettingsSaml": OrganizationSettingsSaml, + "OrganizationSettingsSamlAutocreateUsersDomains": OrganizationSettingsSamlAutocreateUsersDomains, + "OrganizationSettingsSamlIdpInitiatedLogin": OrganizationSettingsSamlIdpInitiatedLogin, + "OrganizationSettingsSamlStrictMode": OrganizationSettingsSamlStrictMode, + "OrganizationSubscription": OrganizationSubscription, + "PagerDutyService": PagerDutyService, + "PagerDutyServiceKey": PagerDutyServiceKey, + "PagerDutyServiceName": PagerDutyServiceName, + "Pagination": Pagination, + "PowerpackTemplateVariableContents": PowerpackTemplateVariableContents, + "PowerpackTemplateVariables": PowerpackTemplateVariables, + "PowerpackWidgetDefinition": PowerpackWidgetDefinition, + "ProcessQueryDefinition": ProcessQueryDefinition, + "QueryValueWidgetDefinition": QueryValueWidgetDefinition, + "QueryValueWidgetRequest": QueryValueWidgetRequest, + "ReferenceTableLogsLookupProcessor": ReferenceTableLogsLookupProcessor, + "ResourceProviderConfig": ResourceProviderConfig, + "ResponseMetaAttributes": ResponseMetaAttributes, + "RunWorkflowWidgetDefinition": RunWorkflowWidgetDefinition, + "RunWorkflowWidgetInput": RunWorkflowWidgetInput, + "SLOBulkDeleteError": SLOBulkDeleteError, + "SLOBulkDeleteResponse": SLOBulkDeleteResponse, + "SLOBulkDeleteResponseData": SLOBulkDeleteResponseData, + "SLOCorrection": SLOCorrection, + "SLOCorrectionCreateData": SLOCorrectionCreateData, + "SLOCorrectionCreateRequest": SLOCorrectionCreateRequest, + "SLOCorrectionCreateRequestAttributes": SLOCorrectionCreateRequestAttributes, + "SLOCorrectionListResponse": SLOCorrectionListResponse, + "SLOCorrectionResponse": SLOCorrectionResponse, + "SLOCorrectionResponseAttributes": SLOCorrectionResponseAttributes, + "SLOCorrectionResponseAttributesModifier": SLOCorrectionResponseAttributesModifier, + "SLOCorrectionUpdateData": SLOCorrectionUpdateData, + "SLOCorrectionUpdateRequest": SLOCorrectionUpdateRequest, + "SLOCorrectionUpdateRequestAttributes": SLOCorrectionUpdateRequestAttributes, + "SLOCreator": SLOCreator, + "SLODeleteResponse": SLODeleteResponse, + "SLOFormula": SLOFormula, + "SLOHistoryMetrics": SLOHistoryMetrics, + "SLOHistoryMetricsSeries": SLOHistoryMetricsSeries, + "SLOHistoryMetricsSeriesMetadata": SLOHistoryMetricsSeriesMetadata, + "SLOHistoryMetricsSeriesMetadataUnit": SLOHistoryMetricsSeriesMetadataUnit, + "SLOHistoryMonitor": SLOHistoryMonitor, + "SLOHistoryResponse": SLOHistoryResponse, + "SLOHistoryResponseData": SLOHistoryResponseData, + "SLOHistoryResponseError": SLOHistoryResponseError, + "SLOHistoryResponseErrorWithType": SLOHistoryResponseErrorWithType, + "SLOHistorySLIData": SLOHistorySLIData, + "SLOListResponse": SLOListResponse, + "SLOListResponseMetadata": SLOListResponseMetadata, + "SLOListResponseMetadataPage": SLOListResponseMetadataPage, + "SLOListWidgetDefinition": SLOListWidgetDefinition, + "SLOListWidgetQuery": SLOListWidgetQuery, + "SLOListWidgetRequest": SLOListWidgetRequest, + "SLOOverallStatuses": SLOOverallStatuses, + "SLORawErrorBudgetRemaining": SLORawErrorBudgetRemaining, + "SLOResponse": SLOResponse, + "SLOResponseData": SLOResponseData, + "SLOStatus": SLOStatus, + "SLOThreshold": SLOThreshold, + "SLOTimeSliceCondition": SLOTimeSliceCondition, + "SLOTimeSliceQuery": SLOTimeSliceQuery, + "SLOTimeSliceSpec": SLOTimeSliceSpec, + "SLOWidgetDefinition": SLOWidgetDefinition, + "ScatterPlotRequest": ScatterPlotRequest, + "ScatterPlotWidgetDefinition": ScatterPlotWidgetDefinition, + "ScatterPlotWidgetDefinitionRequests": ScatterPlotWidgetDefinitionRequests, + "ScatterplotTableRequest": ScatterplotTableRequest, + "ScatterplotWidgetFormula": ScatterplotWidgetFormula, + "SearchSLOQuery": SearchSLOQuery, + "SearchSLOResponse": SearchSLOResponse, + "SearchSLOResponseData": SearchSLOResponseData, + "SearchSLOResponseDataAttributes": SearchSLOResponseDataAttributes, + "SearchSLOResponseDataAttributesFacets": SearchSLOResponseDataAttributesFacets, + "SearchSLOResponseDataAttributesFacetsObjectInt": SearchSLOResponseDataAttributesFacetsObjectInt, + "SearchSLOResponseDataAttributesFacetsObjectString": SearchSLOResponseDataAttributesFacetsObjectString, + "SearchSLOResponseLinks": SearchSLOResponseLinks, + "SearchSLOResponseMeta": SearchSLOResponseMeta, + "SearchSLOResponseMetaPage": SearchSLOResponseMetaPage, + "SearchSLOThreshold": SearchSLOThreshold, + "SearchServiceLevelObjective": SearchServiceLevelObjective, + "SearchServiceLevelObjectiveAttributes": SearchServiceLevelObjectiveAttributes, + "SearchServiceLevelObjectiveData": SearchServiceLevelObjectiveData, + "SelectableTemplateVariableItems": SelectableTemplateVariableItems, + "Series": Series, + "ServiceCheck": ServiceCheck, + "ServiceLevelObjective": ServiceLevelObjective, + "ServiceLevelObjectiveQuery": ServiceLevelObjectiveQuery, + "ServiceLevelObjectiveRequest": ServiceLevelObjectiveRequest, + "ServiceMapWidgetDefinition": ServiceMapWidgetDefinition, + "ServiceSummaryWidgetDefinition": ServiceSummaryWidgetDefinition, + "SharedDashboard": SharedDashboard, + "SharedDashboardAuthor": SharedDashboardAuthor, + "SharedDashboardInviteesItems": SharedDashboardInviteesItems, + "SharedDashboardInvites": SharedDashboardInvites, + "SharedDashboardInvitesDataObject": SharedDashboardInvitesDataObject, + "SharedDashboardInvitesDataObjectAttributes": SharedDashboardInvitesDataObjectAttributes, + "SharedDashboardInvitesMeta": SharedDashboardInvitesMeta, + "SharedDashboardInvitesMetaPage": SharedDashboardInvitesMetaPage, + "SharedDashboardUpdateRequest": SharedDashboardUpdateRequest, + "SharedDashboardUpdateRequestGlobalTime": SharedDashboardUpdateRequestGlobalTime, + "SignalAssigneeUpdateRequest": SignalAssigneeUpdateRequest, + "SignalStateUpdateRequest": SignalStateUpdateRequest, + "SlackIntegrationChannel": SlackIntegrationChannel, + "SlackIntegrationChannelDisplay": SlackIntegrationChannelDisplay, + "SplitConfig": SplitConfig, + "SplitConfigSortCompute": SplitConfigSortCompute, + "SplitDimension": SplitDimension, + "SplitGraphWidgetDefinition": SplitGraphWidgetDefinition, + "SplitSort": SplitSort, + "SplitVectorEntryItem": SplitVectorEntryItem, + "SuccessfulSignalUpdateResponse": SuccessfulSignalUpdateResponse, + "SunburstWidgetDefinition": SunburstWidgetDefinition, + "SunburstWidgetLegendInlineAutomatic": SunburstWidgetLegendInlineAutomatic, + "SunburstWidgetLegendTable": SunburstWidgetLegendTable, + "SunburstWidgetRequest": SunburstWidgetRequest, + "SyntheticsAPITest": SyntheticsAPITest, + "SyntheticsAPITestConfig": SyntheticsAPITestConfig, + "SyntheticsAPITestResultData": SyntheticsAPITestResultData, + "SyntheticsAPITestResultFull": SyntheticsAPITestResultFull, + "SyntheticsAPITestResultFullCheck": SyntheticsAPITestResultFullCheck, + "SyntheticsAPITestResultShort": SyntheticsAPITestResultShort, + "SyntheticsAPITestResultShortResult": SyntheticsAPITestResultShortResult, + "SyntheticsAPITestStep": SyntheticsAPITestStep, + "SyntheticsAPIWaitStep": SyntheticsAPIWaitStep, + "SyntheticsApiTestResultFailure": SyntheticsApiTestResultFailure, + "SyntheticsAssertionBodyHashTarget": SyntheticsAssertionBodyHashTarget, + "SyntheticsAssertionJSONPathTarget": SyntheticsAssertionJSONPathTarget, + "SyntheticsAssertionJSONPathTargetTarget": SyntheticsAssertionJSONPathTargetTarget, + "SyntheticsAssertionJSONSchemaTarget": SyntheticsAssertionJSONSchemaTarget, + "SyntheticsAssertionJSONSchemaTargetTarget": SyntheticsAssertionJSONSchemaTargetTarget, + "SyntheticsAssertionJavascript": SyntheticsAssertionJavascript, + "SyntheticsAssertionTarget": SyntheticsAssertionTarget, + "SyntheticsAssertionXPathTarget": SyntheticsAssertionXPathTarget, + "SyntheticsAssertionXPathTargetTarget": SyntheticsAssertionXPathTargetTarget, + "SyntheticsBasicAuthDigest": SyntheticsBasicAuthDigest, + "SyntheticsBasicAuthNTLM": SyntheticsBasicAuthNTLM, + "SyntheticsBasicAuthOauthClient": SyntheticsBasicAuthOauthClient, + "SyntheticsBasicAuthOauthROP": SyntheticsBasicAuthOauthROP, + "SyntheticsBasicAuthSigv4": SyntheticsBasicAuthSigv4, + "SyntheticsBasicAuthWeb": SyntheticsBasicAuthWeb, + "SyntheticsBatchDetails": SyntheticsBatchDetails, + "SyntheticsBatchDetailsData": SyntheticsBatchDetailsData, + "SyntheticsBatchResult": SyntheticsBatchResult, + "SyntheticsBrowserError": SyntheticsBrowserError, + "SyntheticsBrowserTest": SyntheticsBrowserTest, + "SyntheticsBrowserTestConfig": SyntheticsBrowserTestConfig, + "SyntheticsBrowserTestResultData": SyntheticsBrowserTestResultData, + "SyntheticsBrowserTestResultFailure": SyntheticsBrowserTestResultFailure, + "SyntheticsBrowserTestResultFull": SyntheticsBrowserTestResultFull, + "SyntheticsBrowserTestResultFullCheck": SyntheticsBrowserTestResultFullCheck, + "SyntheticsBrowserTestResultShort": SyntheticsBrowserTestResultShort, + "SyntheticsBrowserTestResultShortResult": SyntheticsBrowserTestResultShortResult, + "SyntheticsBrowserTestRumSettings": SyntheticsBrowserTestRumSettings, + "SyntheticsBrowserVariable": SyntheticsBrowserVariable, + "SyntheticsCIBatchMetadata": SyntheticsCIBatchMetadata, + "SyntheticsCIBatchMetadataCI": SyntheticsCIBatchMetadataCI, + "SyntheticsCIBatchMetadataGit": SyntheticsCIBatchMetadataGit, + "SyntheticsCIBatchMetadataPipeline": SyntheticsCIBatchMetadataPipeline, + "SyntheticsCIBatchMetadataProvider": SyntheticsCIBatchMetadataProvider, + "SyntheticsCITest": SyntheticsCITest, + "SyntheticsCITestBody": SyntheticsCITestBody, + "SyntheticsConfigVariable": SyntheticsConfigVariable, + "SyntheticsCoreWebVitals": SyntheticsCoreWebVitals, + "SyntheticsDeleteTestsPayload": SyntheticsDeleteTestsPayload, + "SyntheticsDeleteTestsResponse": SyntheticsDeleteTestsResponse, + "SyntheticsDeletedTest": SyntheticsDeletedTest, + "SyntheticsDevice": SyntheticsDevice, + "SyntheticsFetchUptimesPayload": SyntheticsFetchUptimesPayload, + "SyntheticsGetAPITestLatestResultsResponse": SyntheticsGetAPITestLatestResultsResponse, + "SyntheticsGetBrowserTestLatestResultsResponse": SyntheticsGetBrowserTestLatestResultsResponse, + "SyntheticsGlobalVariable": SyntheticsGlobalVariable, + "SyntheticsGlobalVariableAttributes": SyntheticsGlobalVariableAttributes, + "SyntheticsGlobalVariableOptions": SyntheticsGlobalVariableOptions, + "SyntheticsGlobalVariableParseTestOptions": SyntheticsGlobalVariableParseTestOptions, + "SyntheticsGlobalVariableRequest": SyntheticsGlobalVariableRequest, + "SyntheticsGlobalVariableTOTPParameters": SyntheticsGlobalVariableTOTPParameters, + "SyntheticsGlobalVariableValue": SyntheticsGlobalVariableValue, + "SyntheticsListGlobalVariablesResponse": SyntheticsListGlobalVariablesResponse, + "SyntheticsListTestsResponse": SyntheticsListTestsResponse, + "SyntheticsLocation": SyntheticsLocation, + "SyntheticsLocations": SyntheticsLocations, + "SyntheticsMobileStep": SyntheticsMobileStep, + "SyntheticsMobileStepParams": SyntheticsMobileStepParams, + "SyntheticsMobileStepParamsElement": SyntheticsMobileStepParamsElement, + "SyntheticsMobileStepParamsElementRelativePosition": SyntheticsMobileStepParamsElementRelativePosition, + "SyntheticsMobileStepParamsElementUserLocator": SyntheticsMobileStepParamsElementUserLocator, + "SyntheticsMobileStepParamsElementUserLocatorValuesItems": SyntheticsMobileStepParamsElementUserLocatorValuesItems, + "SyntheticsMobileStepParamsPositionsItems": SyntheticsMobileStepParamsPositionsItems, + "SyntheticsMobileStepParamsVariable": SyntheticsMobileStepParamsVariable, + "SyntheticsMobileTest": SyntheticsMobileTest, + "SyntheticsMobileTestConfig": SyntheticsMobileTestConfig, + "SyntheticsMobileTestOptions": SyntheticsMobileTestOptions, + "SyntheticsMobileTestsMobileApplication": SyntheticsMobileTestsMobileApplication, + "SyntheticsParsingOptions": SyntheticsParsingOptions, + "SyntheticsPatchTestBody": SyntheticsPatchTestBody, + "SyntheticsPatchTestOperation": SyntheticsPatchTestOperation, + "SyntheticsPrivateLocation": SyntheticsPrivateLocation, + "SyntheticsPrivateLocationCreationResponse": SyntheticsPrivateLocationCreationResponse, + "SyntheticsPrivateLocationCreationResponseResultEncryption": SyntheticsPrivateLocationCreationResponseResultEncryption, + "SyntheticsPrivateLocationMetadata": SyntheticsPrivateLocationMetadata, + "SyntheticsPrivateLocationSecrets": SyntheticsPrivateLocationSecrets, + "SyntheticsPrivateLocationSecretsAuthentication": SyntheticsPrivateLocationSecretsAuthentication, + "SyntheticsPrivateLocationSecretsConfigDecryption": SyntheticsPrivateLocationSecretsConfigDecryption, + "SyntheticsSSLCertificate": SyntheticsSSLCertificate, + "SyntheticsSSLCertificateIssuer": SyntheticsSSLCertificateIssuer, + "SyntheticsSSLCertificateSubject": SyntheticsSSLCertificateSubject, + "SyntheticsStep": SyntheticsStep, + "SyntheticsStepDetail": SyntheticsStepDetail, + "SyntheticsStepDetailWarning": SyntheticsStepDetailWarning, + "SyntheticsTestCiOptions": SyntheticsTestCiOptions, + "SyntheticsTestConfig": SyntheticsTestConfig, + "SyntheticsTestDetails": SyntheticsTestDetails, + "SyntheticsTestOptions": SyntheticsTestOptions, + "SyntheticsTestOptionsMonitorOptions": SyntheticsTestOptionsMonitorOptions, + "SyntheticsTestOptionsRetry": SyntheticsTestOptionsRetry, + "SyntheticsTestOptionsScheduling": SyntheticsTestOptionsScheduling, + "SyntheticsTestOptionsSchedulingTimeframe": SyntheticsTestOptionsSchedulingTimeframe, + "SyntheticsTestRequest": SyntheticsTestRequest, + "SyntheticsTestRequestBodyFile": SyntheticsTestRequestBodyFile, + "SyntheticsTestRequestCertificate": SyntheticsTestRequestCertificate, + "SyntheticsTestRequestCertificateItem": SyntheticsTestRequestCertificateItem, + "SyntheticsTestRequestProxy": SyntheticsTestRequestProxy, + "SyntheticsTestRestrictionPolicyBinding": SyntheticsTestRestrictionPolicyBinding, + "SyntheticsTestUptime": SyntheticsTestUptime, + "SyntheticsTiming": SyntheticsTiming, + "SyntheticsTriggerBody": SyntheticsTriggerBody, + "SyntheticsTriggerCITestLocation": SyntheticsTriggerCITestLocation, + "SyntheticsTriggerCITestRunResult": SyntheticsTriggerCITestRunResult, + "SyntheticsTriggerCITestsResponse": SyntheticsTriggerCITestsResponse, + "SyntheticsTriggerTest": SyntheticsTriggerTest, + "SyntheticsUpdateTestPauseStatusPayload": SyntheticsUpdateTestPauseStatusPayload, + "SyntheticsUptime": SyntheticsUptime, + "SyntheticsVariableParser": SyntheticsVariableParser, + "TableWidgetDefinition": TableWidgetDefinition, + "TableWidgetRequest": TableWidgetRequest, + "TableWidgetTextFormatMatch": TableWidgetTextFormatMatch, + "TableWidgetTextFormatReplaceAll": TableWidgetTextFormatReplaceAll, + "TableWidgetTextFormatReplaceSubstring": TableWidgetTextFormatReplaceSubstring, + "TableWidgetTextFormatRule": TableWidgetTextFormatRule, + "TagToHosts": TagToHosts, + "TimeseriesBackground": TimeseriesBackground, + "TimeseriesWidgetDefinition": TimeseriesWidgetDefinition, + "TimeseriesWidgetExpressionAlias": TimeseriesWidgetExpressionAlias, + "TimeseriesWidgetRequest": TimeseriesWidgetRequest, + "ToplistWidgetDefinition": ToplistWidgetDefinition, + "ToplistWidgetFlat": ToplistWidgetFlat, + "ToplistWidgetRequest": ToplistWidgetRequest, + "ToplistWidgetStacked": ToplistWidgetStacked, + "ToplistWidgetStyle": ToplistWidgetStyle, + "TopologyMapWidgetDefinition": TopologyMapWidgetDefinition, + "TopologyQuery": TopologyQuery, + "TopologyRequest": TopologyRequest, + "TreeMapWidgetDefinition": TreeMapWidgetDefinition, + "TreeMapWidgetRequest": TreeMapWidgetRequest, + "UsageAnalyzedLogsHour": UsageAnalyzedLogsHour, + "UsageAnalyzedLogsResponse": UsageAnalyzedLogsResponse, + "UsageAttributionAggregatesBody": UsageAttributionAggregatesBody, + "UsageAuditLogsHour": UsageAuditLogsHour, + "UsageAuditLogsResponse": UsageAuditLogsResponse, + "UsageBillableSummaryBody": UsageBillableSummaryBody, + "UsageBillableSummaryHour": UsageBillableSummaryHour, + "UsageBillableSummaryKeys": UsageBillableSummaryKeys, + "UsageBillableSummaryResponse": UsageBillableSummaryResponse, + "UsageCIVisibilityHour": UsageCIVisibilityHour, + "UsageCIVisibilityResponse": UsageCIVisibilityResponse, + "UsageCWSHour": UsageCWSHour, + "UsageCWSResponse": UsageCWSResponse, + "UsageCloudSecurityPostureManagementHour": UsageCloudSecurityPostureManagementHour, + "UsageCloudSecurityPostureManagementResponse": UsageCloudSecurityPostureManagementResponse, + "UsageCustomReportsAttributes": UsageCustomReportsAttributes, + "UsageCustomReportsData": UsageCustomReportsData, + "UsageCustomReportsMeta": UsageCustomReportsMeta, + "UsageCustomReportsPage": UsageCustomReportsPage, + "UsageCustomReportsResponse": UsageCustomReportsResponse, + "UsageDBMHour": UsageDBMHour, + "UsageDBMResponse": UsageDBMResponse, + "UsageFargateHour": UsageFargateHour, + "UsageFargateResponse": UsageFargateResponse, + "UsageHostHour": UsageHostHour, + "UsageHostsResponse": UsageHostsResponse, + "UsageIncidentManagementHour": UsageIncidentManagementHour, + "UsageIncidentManagementResponse": UsageIncidentManagementResponse, + "UsageIndexedSpansHour": UsageIndexedSpansHour, + "UsageIndexedSpansResponse": UsageIndexedSpansResponse, + "UsageIngestedSpansHour": UsageIngestedSpansHour, + "UsageIngestedSpansResponse": UsageIngestedSpansResponse, + "UsageIoTHour": UsageIoTHour, + "UsageIoTResponse": UsageIoTResponse, + "UsageLambdaHour": UsageLambdaHour, + "UsageLambdaResponse": UsageLambdaResponse, + "UsageLogsByIndexHour": UsageLogsByIndexHour, + "UsageLogsByIndexResponse": UsageLogsByIndexResponse, + "UsageLogsByRetentionHour": UsageLogsByRetentionHour, + "UsageLogsByRetentionResponse": UsageLogsByRetentionResponse, + "UsageLogsHour": UsageLogsHour, + "UsageLogsResponse": UsageLogsResponse, + "UsageNetworkFlowsHour": UsageNetworkFlowsHour, + "UsageNetworkFlowsResponse": UsageNetworkFlowsResponse, + "UsageNetworkHostsHour": UsageNetworkHostsHour, + "UsageNetworkHostsResponse": UsageNetworkHostsResponse, + "UsageOnlineArchiveHour": UsageOnlineArchiveHour, + "UsageOnlineArchiveResponse": UsageOnlineArchiveResponse, + "UsageProfilingHour": UsageProfilingHour, + "UsageProfilingResponse": UsageProfilingResponse, + "UsageRumSessionsHour": UsageRumSessionsHour, + "UsageRumSessionsResponse": UsageRumSessionsResponse, + "UsageRumUnitsHour": UsageRumUnitsHour, + "UsageRumUnitsResponse": UsageRumUnitsResponse, + "UsageSDSHour": UsageSDSHour, + "UsageSDSResponse": UsageSDSResponse, + "UsageSNMPHour": UsageSNMPHour, + "UsageSNMPResponse": UsageSNMPResponse, + "UsageSpecifiedCustomReportsAttributes": UsageSpecifiedCustomReportsAttributes, + "UsageSpecifiedCustomReportsData": UsageSpecifiedCustomReportsData, + "UsageSpecifiedCustomReportsMeta": UsageSpecifiedCustomReportsMeta, + "UsageSpecifiedCustomReportsPage": UsageSpecifiedCustomReportsPage, + "UsageSpecifiedCustomReportsResponse": UsageSpecifiedCustomReportsResponse, + "UsageSummaryDate": UsageSummaryDate, + "UsageSummaryDateOrg": UsageSummaryDateOrg, + "UsageSummaryResponse": UsageSummaryResponse, + "UsageSyntheticsAPIHour": UsageSyntheticsAPIHour, + "UsageSyntheticsAPIResponse": UsageSyntheticsAPIResponse, + "UsageSyntheticsBrowserHour": UsageSyntheticsBrowserHour, + "UsageSyntheticsBrowserResponse": UsageSyntheticsBrowserResponse, + "UsageSyntheticsHour": UsageSyntheticsHour, + "UsageSyntheticsResponse": UsageSyntheticsResponse, + "UsageTimeseriesHour": UsageTimeseriesHour, + "UsageTimeseriesResponse": UsageTimeseriesResponse, + "UsageTopAvgMetricsHour": UsageTopAvgMetricsHour, + "UsageTopAvgMetricsMetadata": UsageTopAvgMetricsMetadata, + "UsageTopAvgMetricsPagination": UsageTopAvgMetricsPagination, + "UsageTopAvgMetricsResponse": UsageTopAvgMetricsResponse, + "User": User, + "UserDisableResponse": UserDisableResponse, + "UserListResponse": UserListResponse, + "UserResponse": UserResponse, + "ViewingPreferences": ViewingPreferences, + "WebhooksIntegration": WebhooksIntegration, + "WebhooksIntegrationCustomVariable": WebhooksIntegrationCustomVariable, + "WebhooksIntegrationCustomVariableResponse": WebhooksIntegrationCustomVariableResponse, + "WebhooksIntegrationCustomVariableUpdateRequest": WebhooksIntegrationCustomVariableUpdateRequest, + "WebhooksIntegrationUpdateRequest": WebhooksIntegrationUpdateRequest, + "Widget": Widget, + "WidgetAxis": WidgetAxis, + "WidgetConditionalFormat": WidgetConditionalFormat, + "WidgetCustomLink": WidgetCustomLink, + "WidgetEvent": WidgetEvent, + "WidgetFieldSort": WidgetFieldSort, + "WidgetFormula": WidgetFormula, + "WidgetFormulaCellDisplayModeOptions": WidgetFormulaCellDisplayModeOptions, + "WidgetFormulaLimit": WidgetFormulaLimit, + "WidgetFormulaSort": WidgetFormulaSort, + "WidgetFormulaStyle": WidgetFormulaStyle, + "WidgetGroupSort": WidgetGroupSort, + "WidgetLayout": WidgetLayout, + "WidgetLegacyLiveSpan": WidgetLegacyLiveSpan, + "WidgetMarker": WidgetMarker, + "WidgetNewFixedSpan": WidgetNewFixedSpan, + "WidgetNewLiveSpan": WidgetNewLiveSpan, + "WidgetNumberFormat": WidgetNumberFormat, + "WidgetRequestStyle": WidgetRequestStyle, + "WidgetSortBy": WidgetSortBy, + "WidgetStyle": WidgetStyle, +} -const oneOfMap: { [index: string]: string[] } = { - DistributionPointItem: ["number", "Array"], - DistributionWidgetHistogramRequestQuery: [ - "FormulaAndFunctionMetricQueryDefinition", - "FormulaAndFunctionEventQueryDefinition", - "FormulaAndFunctionApmResourceStatsQueryDefinition", - ], - FormulaAndFunctionQueryDefinition: [ - "FormulaAndFunctionMetricQueryDefinition", - "FormulaAndFunctionEventQueryDefinition", - "FormulaAndFunctionProcessQueryDefinition", - "FormulaAndFunctionApmDependencyStatsQueryDefinition", - "FormulaAndFunctionApmResourceStatsQueryDefinition", - "FormulaAndFunctionSLOQueryDefinition", - "FormulaAndFunctionCloudCostQueryDefinition", - ], - LogsProcessor: [ - "LogsGrokParser", - "LogsDateRemapper", - "LogsStatusRemapper", - "LogsServiceRemapper", - "LogsMessageRemapper", - "LogsAttributeRemapper", - "LogsURLParser", - "LogsUserAgentParser", - "LogsCategoryProcessor", - "LogsArithmeticProcessor", - "LogsStringBuilderProcessor", - "LogsPipelineProcessor", - "LogsGeoIPParser", - "LogsLookupProcessor", - "ReferenceTableLogsLookupProcessor", - "LogsTraceRemapper", - "LogsSpanRemapper", - ], - MonitorFormulaAndFunctionQueryDefinition: [ - "MonitorFormulaAndFunctionEventQueryDefinition", - "MonitorFormulaAndFunctionCostQueryDefinition", - ], - NotebookCellCreateRequestAttributes: [ - "NotebookMarkdownCellAttributes", - "NotebookTimeseriesCellAttributes", - "NotebookToplistCellAttributes", - "NotebookHeatMapCellAttributes", - "NotebookDistributionCellAttributes", - "NotebookLogStreamCellAttributes", - ], - NotebookCellResponseAttributes: [ - "NotebookMarkdownCellAttributes", - "NotebookTimeseriesCellAttributes", - "NotebookToplistCellAttributes", - "NotebookHeatMapCellAttributes", - "NotebookDistributionCellAttributes", - "NotebookLogStreamCellAttributes", - ], - NotebookCellTime: ["NotebookRelativeTime", "NotebookAbsoluteTime"], - NotebookCellUpdateRequestAttributes: [ - "NotebookMarkdownCellAttributes", - "NotebookTimeseriesCellAttributes", - "NotebookToplistCellAttributes", - "NotebookHeatMapCellAttributes", - "NotebookDistributionCellAttributes", - "NotebookLogStreamCellAttributes", - ], - NotebookGlobalTime: ["NotebookRelativeTime", "NotebookAbsoluteTime"], - NotebookUpdateCell: [ - "NotebookCellCreateRequest", - "NotebookCellUpdateRequest", - ], - NumberFormatUnit: ["NumberFormatUnitCanonical", "NumberFormatUnitCustom"], - SLODataSourceQueryDefinition: ["FormulaAndFunctionMetricQueryDefinition"], - SLOSliSpec: ["SLOTimeSliceSpec"], - SharedDashboardInvitesData: [ - "SharedDashboardInvitesDataObject", - "Array", - ], - SplitGraphSourceWidgetDefinition: [ - "ChangeWidgetDefinition", - "GeomapWidgetDefinition", - "QueryValueWidgetDefinition", - "ScatterPlotWidgetDefinition", - "SunburstWidgetDefinition", - "TableWidgetDefinition", - "TimeseriesWidgetDefinition", - "ToplistWidgetDefinition", - "TreeMapWidgetDefinition", - ], - SunburstWidgetLegend: [ - "SunburstWidgetLegendTable", - "SunburstWidgetLegendInlineAutomatic", - ], - SyntheticsAPIStep: ["SyntheticsAPITestStep", "SyntheticsAPIWaitStep"], - SyntheticsAssertion: [ - "SyntheticsAssertionTarget", - "SyntheticsAssertionBodyHashTarget", - "SyntheticsAssertionJSONPathTarget", - "SyntheticsAssertionJSONSchemaTarget", - "SyntheticsAssertionXPathTarget", - "SyntheticsAssertionJavascript", - ], - SyntheticsBasicAuth: [ - "SyntheticsBasicAuthWeb", - "SyntheticsBasicAuthSigv4", - "SyntheticsBasicAuthNTLM", - "SyntheticsBasicAuthDigest", - "SyntheticsBasicAuthOauthClient", - "SyntheticsBasicAuthOauthROP", - ], - SyntheticsMobileStepParamsValue: ["string", "number"], - SyntheticsTestRequestPort: ["number", "string"], - TableWidgetTextFormatReplace: [ - "TableWidgetTextFormatReplaceAll", - "TableWidgetTextFormatReplaceSubstring", - ], - ToplistWidgetDisplay: ["ToplistWidgetStacked", "ToplistWidgetFlat"], - WidgetDefinition: [ - "AlertGraphWidgetDefinition", - "AlertValueWidgetDefinition", - "ChangeWidgetDefinition", - "CheckStatusWidgetDefinition", - "DistributionWidgetDefinition", - "EventStreamWidgetDefinition", - "EventTimelineWidgetDefinition", - "FreeTextWidgetDefinition", - "FunnelWidgetDefinition", - "GeomapWidgetDefinition", - "GroupWidgetDefinition", - "HeatMapWidgetDefinition", - "HostMapWidgetDefinition", - "IFrameWidgetDefinition", - "ImageWidgetDefinition", - "ListStreamWidgetDefinition", - "LogStreamWidgetDefinition", - "MonitorSummaryWidgetDefinition", - "NoteWidgetDefinition", - "PowerpackWidgetDefinition", - "QueryValueWidgetDefinition", - "RunWorkflowWidgetDefinition", - "SLOListWidgetDefinition", - "SLOWidgetDefinition", - "ScatterPlotWidgetDefinition", - "ServiceMapWidgetDefinition", - "ServiceSummaryWidgetDefinition", - "SplitGraphWidgetDefinition", - "SunburstWidgetDefinition", - "TableWidgetDefinition", - "TimeseriesWidgetDefinition", - "ToplistWidgetDefinition", - "TopologyMapWidgetDefinition", - "TreeMapWidgetDefinition", - ], - WidgetSortOrderBy: ["WidgetFormulaSort", "WidgetGroupSort"], - WidgetTime: [ - "WidgetLegacyLiveSpan", - "WidgetNewLiveSpan", - "WidgetNewFixedSpan", - ], +const oneOfMap: {[index: string]: string[]} = { + "DistributionPointItem": ["number", "Array"], + "DistributionWidgetHistogramRequestQuery": ["FormulaAndFunctionMetricQueryDefinition", "FormulaAndFunctionEventQueryDefinition", "FormulaAndFunctionApmResourceStatsQueryDefinition"], + "FormulaAndFunctionQueryDefinition": ["FormulaAndFunctionMetricQueryDefinition", "FormulaAndFunctionEventQueryDefinition", "FormulaAndFunctionProcessQueryDefinition", "FormulaAndFunctionApmDependencyStatsQueryDefinition", "FormulaAndFunctionApmResourceStatsQueryDefinition", "FormulaAndFunctionSLOQueryDefinition", "FormulaAndFunctionCloudCostQueryDefinition"], + "LogsProcessor": ["LogsGrokParser", "LogsDateRemapper", "LogsStatusRemapper", "LogsServiceRemapper", "LogsMessageRemapper", "LogsAttributeRemapper", "LogsURLParser", "LogsUserAgentParser", "LogsCategoryProcessor", "LogsArithmeticProcessor", "LogsStringBuilderProcessor", "LogsPipelineProcessor", "LogsGeoIPParser", "LogsLookupProcessor", "ReferenceTableLogsLookupProcessor", "LogsTraceRemapper", "LogsSpanRemapper"], + "MonitorFormulaAndFunctionQueryDefinition": ["MonitorFormulaAndFunctionEventQueryDefinition", "MonitorFormulaAndFunctionCostQueryDefinition"], + "NotebookCellCreateRequestAttributes": ["NotebookMarkdownCellAttributes", "NotebookTimeseriesCellAttributes", "NotebookToplistCellAttributes", "NotebookHeatMapCellAttributes", "NotebookDistributionCellAttributes", "NotebookLogStreamCellAttributes"], + "NotebookCellResponseAttributes": ["NotebookMarkdownCellAttributes", "NotebookTimeseriesCellAttributes", "NotebookToplistCellAttributes", "NotebookHeatMapCellAttributes", "NotebookDistributionCellAttributes", "NotebookLogStreamCellAttributes"], + "NotebookCellTime": ["NotebookRelativeTime", "NotebookAbsoluteTime"], + "NotebookCellUpdateRequestAttributes": ["NotebookMarkdownCellAttributes", "NotebookTimeseriesCellAttributes", "NotebookToplistCellAttributes", "NotebookHeatMapCellAttributes", "NotebookDistributionCellAttributes", "NotebookLogStreamCellAttributes"], + "NotebookGlobalTime": ["NotebookRelativeTime", "NotebookAbsoluteTime"], + "NotebookUpdateCell": ["NotebookCellCreateRequest", "NotebookCellUpdateRequest"], + "NumberFormatUnit": ["NumberFormatUnitCanonical", "NumberFormatUnitCustom"], + "SLODataSourceQueryDefinition": ["FormulaAndFunctionMetricQueryDefinition"], + "SLOSliSpec": ["SLOTimeSliceSpec"], + "SharedDashboardInvitesData": ["SharedDashboardInvitesDataObject", "Array"], + "SplitGraphSourceWidgetDefinition": ["ChangeWidgetDefinition", "GeomapWidgetDefinition", "QueryValueWidgetDefinition", "ScatterPlotWidgetDefinition", "SunburstWidgetDefinition", "TableWidgetDefinition", "TimeseriesWidgetDefinition", "ToplistWidgetDefinition", "TreeMapWidgetDefinition"], + "SunburstWidgetLegend": ["SunburstWidgetLegendTable", "SunburstWidgetLegendInlineAutomatic"], + "SyntheticsAPIStep": ["SyntheticsAPITestStep", "SyntheticsAPIWaitStep"], + "SyntheticsAssertion": ["SyntheticsAssertionTarget", "SyntheticsAssertionBodyHashTarget", "SyntheticsAssertionJSONPathTarget", "SyntheticsAssertionJSONSchemaTarget", "SyntheticsAssertionXPathTarget", "SyntheticsAssertionJavascript"], + "SyntheticsBasicAuth": ["SyntheticsBasicAuthWeb", "SyntheticsBasicAuthSigv4", "SyntheticsBasicAuthNTLM", "SyntheticsBasicAuthDigest", "SyntheticsBasicAuthOauthClient", "SyntheticsBasicAuthOauthROP"], + "SyntheticsMobileStepParamsValue": ["string", "number"], + "SyntheticsTestRequestPort": ["number", "string"], + "TableWidgetTextFormatReplace": ["TableWidgetTextFormatReplaceAll", "TableWidgetTextFormatReplaceSubstring"], + "ToplistWidgetDisplay": ["ToplistWidgetStacked", "ToplistWidgetFlat"], + "WidgetDefinition": ["AlertGraphWidgetDefinition", "AlertValueWidgetDefinition", "ChangeWidgetDefinition", "CheckStatusWidgetDefinition", "DistributionWidgetDefinition", "EventStreamWidgetDefinition", "EventTimelineWidgetDefinition", "FreeTextWidgetDefinition", "FunnelWidgetDefinition", "GeomapWidgetDefinition", "GroupWidgetDefinition", "HeatMapWidgetDefinition", "HostMapWidgetDefinition", "IFrameWidgetDefinition", "ImageWidgetDefinition", "ListStreamWidgetDefinition", "LogStreamWidgetDefinition", "MonitorSummaryWidgetDefinition", "NoteWidgetDefinition", "PowerpackWidgetDefinition", "QueryValueWidgetDefinition", "RunWorkflowWidgetDefinition", "SLOListWidgetDefinition", "SLOWidgetDefinition", "ScatterPlotWidgetDefinition", "ServiceMapWidgetDefinition", "ServiceSummaryWidgetDefinition", "SplitGraphWidgetDefinition", "SunburstWidgetDefinition", "TableWidgetDefinition", "TimeseriesWidgetDefinition", "ToplistWidgetDefinition", "TopologyMapWidgetDefinition", "TreeMapWidgetDefinition"], + "WidgetSortOrderBy": ["WidgetFormulaSort", "WidgetGroupSort"], + "WidgetTime": ["WidgetLegacyLiveSpan", "WidgetNewLiveSpan", "WidgetNewFixedSpan"], }; export class ObjectSerializer { @@ -2514,52 +1591,33 @@ export class ObjectSerializer { return data; } else if (data instanceof UnparsedObject) { return data._data; - } else if ( - primitives.includes(type.toLowerCase()) && - typeof data == type.toLowerCase() - ) { + } else if (primitives.includes(type.toLowerCase()) && typeof data == type.toLowerCase()) { return data; } else if (type.startsWith(ARRAY_PREFIX)) { if (!Array.isArray(data)) { - throw new TypeError(`mismatch types '${data}' and '${type}'`); + throw new TypeError(`mismatch types '${data}' and '${type}'`); } // Array => Type - const subType: string = type.substring( - ARRAY_PREFIX.length, - type.length - 1 - ); + const subType: string = type.substring(ARRAY_PREFIX.length, type.length - 1); const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.serialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.serialize(element, subType, format)); } return transformedData; } else if (type.startsWith(TUPLE_PREFIX)) { // We only support homegeneus tuples - const subType: string = type - .substring(TUPLE_PREFIX.length, type.length - 1) - .split(", ")[0]; + const subType: string = type.substring(TUPLE_PREFIX.length, type.length - 1).split(", ")[0]; const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.serialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.serialize(element, subType, format)); } return transformedData; } else if (type.startsWith(MAP_PREFIX)) { // { [key: string]: Type; } => Type - const subType: string = type.substring( - MAP_PREFIX.length, - type.length - 3 - ); + const subType: string = type.substring(MAP_PREFIX.length, type.length - 3); const transformedData: { [key: string]: any } = {}; for (const key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format - ); + transformedData[key] = ObjectSerializer.serialize(data[key], subType, format); } return transformedData; } else if (type === "Date") { @@ -2567,7 +1625,7 @@ export class ObjectSerializer { return data; } if (format == "date" || format == "date-time") { - return dateToRFC3339String(data); + return dateToRFC3339String(data) } else { return data.toISOString(); } @@ -2576,7 +1634,7 @@ export class ObjectSerializer { if (enumsMap[type].includes(data)) { return data; } - throw new TypeError(`unknown enum value '${data}'`); + throw new TypeError(`unknown enum value '${data}'`) } if (oneOfMap[type]) { const oneOfs: any[] = []; @@ -2584,30 +1642,25 @@ export class ObjectSerializer { try { oneOfs.push(ObjectSerializer.serialize(data, oneOf, format)); } catch (e) { - logger.debug(`could not serialize ${oneOf} (${e})`); + logger.debug(`could not serialize ${oneOf} (${e})`) } } if (oneOfs.length > 1) { - throw new TypeError( - `${data} matches multiple types from ${oneOfMap[type]} ${oneOfs}` - ); + throw new TypeError(`${data} matches multiple types from ${oneOfMap[type]} ${oneOfs}`); } if (oneOfs.length == 0) { - throw new TypeError( - `${data} doesn't match any type from ${oneOfMap[type]} ${oneOfs}` - ); + throw new TypeError(`${data} doesn't match any type from ${oneOfMap[type]} ${oneOfs}`); } return oneOfs[0]; } - if (!typeMap[type]) { - // dont know the type + if (!typeMap[type]) { // dont know the type throw new TypeError(`unknown type '${type}'`); } // get the map for the correct type. const attributesMap = typeMap[type].getAttributeTypeMap(); - const instance: { [index: string]: any } = {}; + const instance: {[index: string]: any} = {}; for (const attributeName in data) { const attributeObj = attributesMap[attributeName]; @@ -2650,13 +1703,8 @@ export class ObjectSerializer { // check for required properties for (const attributeName in attributesMap) { const attributeObj = attributesMap[attributeName]; - if ( - attributeObj?.required && - instance[attributeObj.baseName] === undefined - ) { - throw new Error( - `missing required property '${attributeObj.baseName}'` - ); + if (attributeObj?.required && instance[attributeObj.baseName] === undefined) { + throw new Error(`missing required property '${attributeObj.baseName}'`); } } @@ -2664,70 +1712,51 @@ export class ObjectSerializer { } } - public static deserialize(data: any, type: string, format = ""): any { + public static deserialize(data: any, type: string, format: string = ""): any { if (data == undefined || type == "any") { return data; - } else if ( - primitives.includes(type.toLowerCase()) && - typeof data == type.toLowerCase() - ) { + } else if (primitives.includes(type.toLowerCase()) && typeof data == type.toLowerCase()) { return data; } else if (type.startsWith(ARRAY_PREFIX)) { // Assert the passed data is Array type if (!Array.isArray(data)) { - throw new TypeError(`mismatch types '${data}' and '${type}'`); + throw new TypeError(`mismatch types '${data}' and '${type}'`); } // Array => Type - const subType: string = type.substring( - ARRAY_PREFIX.length, - type.length - 1 - ); + const subType: string = type.substring(ARRAY_PREFIX.length, type.length - 1); const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.deserialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.deserialize(element, subType, format)); } return transformedData; } else if (type.startsWith(TUPLE_PREFIX)) { // [Type,...] => Type - const subType: string = type - .substring(TUPLE_PREFIX.length, type.length - 1) - .split(", ")[0]; + const subType: string = type.substring(TUPLE_PREFIX.length, type.length - 1).split(", ")[0]; const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.deserialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.deserialize(element, subType, format)); } return transformedData; } else if (type.startsWith(MAP_PREFIX)) { // { [key: string]: Type; } => Type - const subType: string = type.substring( - MAP_PREFIX.length, - type.length - 3 - ); + const subType: string = type.substring(MAP_PREFIX.length, type.length - 3); const transformedData: { [key: string]: any } = {}; for (const key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format - ); + transformedData[key] = ObjectSerializer.deserialize(data[key], subType, format); } return transformedData; } else if (type === "Date") { try { - return dateFromRFC3339String(data); + return dateFromRFC3339String(data) } catch { - return new Date(data); + return new Date(data) } } else { if (enumsMap[type]) { if (enumsMap[type].includes(data)) { return data; } - return new UnparsedObject(data); + return new UnparsedObject(data) } if (oneOfMap[type]) { const oneOfs: any[] = []; @@ -2738,8 +1767,9 @@ export class ObjectSerializer { oneOfs.push(d); } } catch (e) { - logger.debug(`could not deserialize ${oneOf} (${e})`); + logger.debug(`could not deserialize ${oneOf} (${e})`) } + } if (oneOfs.length != 1) { return new UnparsedObject(data); @@ -2747,8 +1777,7 @@ export class ObjectSerializer { return oneOfs[0]; } - if (!typeMap[type]) { - // dont know the type + if (!typeMap[type]) { // dont know the type throw new TypeError(`unknown type '${type}'`); } @@ -2759,28 +1788,27 @@ export class ObjectSerializer { {} ); const extraAttributes = Object.keys(data).filter( - (key) => !Object.prototype.hasOwnProperty.call(attributesBaseNames, key) + (key) => + !Object.prototype.hasOwnProperty.call(attributesBaseNames, key) ); if (extraAttributes.length > 0) { if ("additionalProperties" in attributesMap) { - if (!instance.additionalProperties) { - instance.additionalProperties = {}; - } + if (!instance.additionalProperties) { + instance.additionalProperties = {}; + } - const attributeObj = attributesMap["additionalProperties"]; - for (const key in extraAttributes) { - instance.additionalProperties[extraAttributes[key]] = - ObjectSerializer.deserialize( - data[extraAttributes[key]], - attributeObj.type, - attributeObj.format - ); - } + const attributeObj = attributesMap["additionalProperties"]; + for (const key in extraAttributes) { + instance.additionalProperties[extraAttributes[key]] = + ObjectSerializer.deserialize( + data[extraAttributes[key]], + attributeObj.type, + attributeObj.format + ); + } } else { - throw new Error( - `found extra attributes '${extraAttributes}' in ${type}` - ); + throw new Error(`found extra attributes '${extraAttributes}' in ${type}`); } } @@ -2790,29 +1818,22 @@ export class ObjectSerializer { continue; } - instance[attributeName] = ObjectSerializer.deserialize( - data[attributeObj.baseName], - attributeObj.type, - attributeObj.format - ); + instance[attributeName] = ObjectSerializer.deserialize(data[attributeObj.baseName], attributeObj.type, attributeObj.format); // check for required properties if (attributeObj?.required && instance[attributeName] === undefined) { throw new Error(`missing required property '${attributeName}'`); } - if ( - instance[attributeName] instanceof UnparsedObject || - instance[attributeName]?._unparsed - ) { - instance._unparsed = true; + if (instance[attributeName] instanceof UnparsedObject || instance[attributeName]?._unparsed) { + instance._unparsed = true } if (Array.isArray(instance[attributeName])) { for (const d of instance[attributeName]) { if (d instanceof UnparsedObject || d?._unparsed) { - instance._unparsed = true; - break; + instance._unparsed = true + break } } } @@ -2822,15 +1843,14 @@ export class ObjectSerializer { } } + /** * Normalize media type * * We currently do not handle any media types attributes, i.e. anything * after a semicolon. All content is assumed to be UTF-8 compatible. */ - public static normalizeMediaType( - mediaType: string | undefined - ): string | undefined { + public static normalizeMediaType(mediaType: string | undefined): string | undefined { if (mediaType === undefined) { return undefined; } @@ -2851,12 +1871,12 @@ export class ObjectSerializer { const normalMediaTypes = mediaTypes.map(this.normalizeMediaType); let selectedMediaType: string | undefined = undefined; - let selectedRank = -Infinity; + let selectedRank: number = -Infinity; for (const mediaType of normalMediaTypes) { if (mediaType === undefined) { continue; } - const supported = supportedMediaTypes[mediaType]; + let supported = supportedMediaTypes[mediaType]; if (supported !== undefined && supported > selectedRank) { selectedMediaType = mediaType; selectedRank = supported; @@ -2864,9 +1884,7 @@ export class ObjectSerializer { } if (selectedMediaType === undefined) { - throw new Error( - "None of the given media types are supported: " + mediaTypes.join(", ") - ); + throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); } return selectedMediaType; @@ -2880,11 +1898,7 @@ export class ObjectSerializer { return JSON.stringify(data); } - throw new Error( - "The mediaType " + - mediaType + - " is not supported by ObjectSerializer.stringify." - ); + throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); } /** @@ -2898,4 +1912,4 @@ export class ObjectSerializer { return rawData; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/OnMissingDataOption.ts b/packages/datadog-api-client-v1/models/OnMissingDataOption.ts index a7c47d1e1dd2..5bcc448e8228 100644 --- a/packages/datadog-api-client-v1/models/OnMissingDataOption.ts +++ b/packages/datadog-api-client-v1/models/OnMissingDataOption.ts @@ -4,23 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Controls how groups or monitors are treated if an evaluation does not return any data points. * The default option results in different behavior depending on the monitor query type. * For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. * For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status. * This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. - */ +*/ -export type OnMissingDataOption = - | typeof DEFAULT - | typeof SHOW_NO_DATA - | typeof SHOW_AND_NOTIFY_NO_DATA - | typeof RESOLVE - | UnparsedObject; -export const DEFAULT = "default"; -export const SHOW_NO_DATA = "show_no_data"; -export const SHOW_AND_NOTIFY_NO_DATA = "show_and_notify_no_data"; -export const RESOLVE = "resolve"; +export type OnMissingDataOption = typeof DEFAULT| typeof SHOW_NO_DATA| typeof SHOW_AND_NOTIFY_NO_DATA| typeof RESOLVE | UnparsedObject; +export const DEFAULT = 'default'; +export const SHOW_NO_DATA = 'show_no_data'; +export const SHOW_AND_NOTIFY_NO_DATA = 'show_and_notify_no_data'; +export const RESOLVE = 'resolve'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/OrgDowngradedResponse.ts b/packages/datadog-api-client-v1/models/OrgDowngradedResponse.ts index 5a56b9a7617a..26f109cde5b3 100644 --- a/packages/datadog-api-client-v1/models/OrgDowngradedResponse.ts +++ b/packages/datadog-api-client-v1/models/OrgDowngradedResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Status of downgrade - */ +*/ export class OrgDowngradedResponse { /** * Information pertaining to the downgraded child organization. - */ + */ "message"?: string; /** @@ -31,22 +36,48 @@ export class OrgDowngradedResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgDowngradedResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Organization.ts b/packages/datadog-api-client-v1/models/Organization.ts index f910811519c1..5108582a0a04 100644 --- a/packages/datadog-api-client-v1/models/Organization.ts +++ b/packages/datadog-api-client-v1/models/Organization.ts @@ -7,43 +7,48 @@ import { OrganizationBilling } from "./OrganizationBilling"; import { OrganizationSettings } from "./OrganizationSettings"; import { OrganizationSubscription } from "./OrganizationSubscription"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create, edit, and manage organizations. - */ +*/ export class Organization { /** * A JSON array of billing type. - */ + */ "billing"?: OrganizationBilling; /** * Date of the organization creation. - */ + */ "created"?: string; /** * Description of the organization. - */ + */ "description"?: string; /** * The name of the child organization, limited to 32 characters. - */ + */ "name"?: string; /** * The `public_id` of the organization you are operating within. - */ + */ "publicId"?: string; /** * A JSON array of settings. - */ + */ "settings"?: OrganizationSettings; /** * Subscription definition. - */ + */ "subscription"?: OrganizationSubscription; /** * Only available for MSP customers. Allows child organizations to be created on a trial plan. - */ + */ "trial"?: boolean; /** @@ -62,50 +67,76 @@ export class Organization { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - billing: { - baseName: "billing", - type: "OrganizationBilling", + "billing": { + "baseName": "billing", + "type": "OrganizationBilling", }, - created: { - baseName: "created", - type: "string", + "created": { + "baseName": "created", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - settings: { - baseName: "settings", - type: "OrganizationSettings", + "settings": { + "baseName": "settings", + "type": "OrganizationSettings", }, - subscription: { - baseName: "subscription", - type: "OrganizationSubscription", + "subscription": { + "baseName": "subscription", + "type": "OrganizationSubscription", }, - trial: { - baseName: "trial", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "trial": { + "baseName": "trial", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Organization.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationBilling.ts b/packages/datadog-api-client-v1/models/OrganizationBilling.ts index 856a5eac68ab..c9fe13cee75a 100644 --- a/packages/datadog-api-client-v1/models/OrganizationBilling.ts +++ b/packages/datadog-api-client-v1/models/OrganizationBilling.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A JSON array of billing type. - */ +*/ export class OrganizationBilling { /** * The type of billing. Only `parent_billing` is supported. - */ + */ "type"?: string; /** @@ -31,22 +36,48 @@ export class OrganizationBilling { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationBilling.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationCreateBody.ts b/packages/datadog-api-client-v1/models/OrganizationCreateBody.ts index 36596cc8ff29..544a7fe5158a 100644 --- a/packages/datadog-api-client-v1/models/OrganizationCreateBody.ts +++ b/packages/datadog-api-client-v1/models/OrganizationCreateBody.ts @@ -6,23 +6,28 @@ import { OrganizationBilling } from "./OrganizationBilling"; import { OrganizationSubscription } from "./OrganizationSubscription"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing an organization to create. - */ +*/ export class OrganizationCreateBody { /** * A JSON array of billing type. - */ + */ "billing"?: OrganizationBilling; /** * The name of the new child-organization, limited to 32 characters. - */ + */ "name": string; /** * Subscription definition. - */ + */ "subscription"?: OrganizationSubscription; /** @@ -41,31 +46,57 @@ export class OrganizationCreateBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - billing: { - baseName: "billing", - type: "OrganizationBilling", - }, - name: { - baseName: "name", - type: "string", - required: true, + "billing": { + "baseName": "billing", + "type": "OrganizationBilling", }, - subscription: { - baseName: "subscription", - type: "OrganizationSubscription", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "subscription": { + "baseName": "subscription", + "type": "OrganizationSubscription", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationCreateBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationCreateResponse.ts b/packages/datadog-api-client-v1/models/OrganizationCreateResponse.ts index 9cae80d5092d..b139004e0b52 100644 --- a/packages/datadog-api-client-v1/models/OrganizationCreateResponse.ts +++ b/packages/datadog-api-client-v1/models/OrganizationCreateResponse.ts @@ -8,27 +8,32 @@ import { ApplicationKey } from "./ApplicationKey"; import { Organization } from "./Organization"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object for an organization creation. - */ +*/ export class OrganizationCreateResponse { /** * Datadog API key. - */ + */ "apiKey"?: ApiKey; /** * An application key with its associated metadata. - */ + */ "applicationKey"?: ApplicationKey; /** * Create, edit, and manage organizations. - */ + */ "org"?: Organization; /** * Create, edit, and disable users. - */ + */ "user"?: User; /** @@ -47,34 +52,60 @@ export class OrganizationCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "ApiKey", + "apiKey": { + "baseName": "api_key", + "type": "ApiKey", }, - applicationKey: { - baseName: "application_key", - type: "ApplicationKey", + "applicationKey": { + "baseName": "application_key", + "type": "ApplicationKey", }, - org: { - baseName: "org", - type: "Organization", + "org": { + "baseName": "org", + "type": "Organization", }, - user: { - baseName: "user", - type: "User", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "user": { + "baseName": "user", + "type": "User", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationListResponse.ts b/packages/datadog-api-client-v1/models/OrganizationListResponse.ts index d9c6a94e5823..e0d8d8cca2ef 100644 --- a/packages/datadog-api-client-v1/models/OrganizationListResponse.ts +++ b/packages/datadog-api-client-v1/models/OrganizationListResponse.ts @@ -5,15 +5,20 @@ */ import { Organization } from "./Organization"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with the list of organizations. - */ +*/ export class OrganizationListResponse { /** * Array of organization objects. - */ + */ "orgs"?: Array; /** @@ -32,22 +37,48 @@ export class OrganizationListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - orgs: { - baseName: "orgs", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "orgs": { + "baseName": "orgs", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationResponse.ts b/packages/datadog-api-client-v1/models/OrganizationResponse.ts index ed5a544445e3..b8506301a60d 100644 --- a/packages/datadog-api-client-v1/models/OrganizationResponse.ts +++ b/packages/datadog-api-client-v1/models/OrganizationResponse.ts @@ -5,15 +5,20 @@ */ import { Organization } from "./Organization"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with an organization. - */ +*/ export class OrganizationResponse { /** * Create, edit, and manage organizations. - */ + */ "org"?: Organization; /** @@ -32,22 +37,48 @@ export class OrganizationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - org: { - baseName: "org", - type: "Organization", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "org": { + "baseName": "org", + "type": "Organization", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationSettings.ts b/packages/datadog-api-client-v1/models/OrganizationSettings.ts index ccf5f39a292d..9793e1eb758a 100644 --- a/packages/datadog-api-client-v1/models/OrganizationSettings.ts +++ b/packages/datadog-api-client-v1/models/OrganizationSettings.ts @@ -9,52 +9,57 @@ import { OrganizationSettingsSamlAutocreateUsersDomains } from "./OrganizationSe import { OrganizationSettingsSamlIdpInitiatedLogin } from "./OrganizationSettingsSamlIdpInitiatedLogin"; import { OrganizationSettingsSamlStrictMode } from "./OrganizationSettingsSamlStrictMode"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A JSON array of settings. - */ +*/ export class OrganizationSettings { /** * Whether or not the organization users can share widgets outside of Datadog. - */ + */ "privateWidgetShare"?: boolean; /** * Set the boolean property enabled to enable or disable single sign on with SAML. * See the SAML documentation for more information about all SAML settings. - */ + */ "saml"?: OrganizationSettingsSaml; /** * The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). - */ + */ "samlAutocreateAccessRole"?: AccessRole; /** * Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. - */ + */ "samlAutocreateUsersDomains"?: OrganizationSettingsSamlAutocreateUsersDomains; /** * Whether or not SAML can be enabled for this organization. - */ + */ "samlCanBeEnabled"?: boolean; /** * Identity provider endpoint for SAML authentication. - */ + */ "samlIdpEndpoint"?: string; /** * Has one property enabled (boolean). - */ + */ "samlIdpInitiatedLogin"?: OrganizationSettingsSamlIdpInitiatedLogin; /** * Whether or not a SAML identity provider metadata file was provided to the Datadog organization. - */ + */ "samlIdpMetadataUploaded"?: boolean; /** * URL for SAML logging. - */ + */ "samlLoginUrl"?: string; /** * Has one property enabled (boolean). - */ + */ "samlStrictMode"?: OrganizationSettingsSamlStrictMode; /** @@ -73,58 +78,84 @@ export class OrganizationSettings { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - privateWidgetShare: { - baseName: "private_widget_share", - type: "boolean", - }, - saml: { - baseName: "saml", - type: "OrganizationSettingsSaml", + "privateWidgetShare": { + "baseName": "private_widget_share", + "type": "boolean", }, - samlAutocreateAccessRole: { - baseName: "saml_autocreate_access_role", - type: "AccessRole", + "saml": { + "baseName": "saml", + "type": "OrganizationSettingsSaml", }, - samlAutocreateUsersDomains: { - baseName: "saml_autocreate_users_domains", - type: "OrganizationSettingsSamlAutocreateUsersDomains", + "samlAutocreateAccessRole": { + "baseName": "saml_autocreate_access_role", + "type": "AccessRole", }, - samlCanBeEnabled: { - baseName: "saml_can_be_enabled", - type: "boolean", + "samlAutocreateUsersDomains": { + "baseName": "saml_autocreate_users_domains", + "type": "OrganizationSettingsSamlAutocreateUsersDomains", }, - samlIdpEndpoint: { - baseName: "saml_idp_endpoint", - type: "string", + "samlCanBeEnabled": { + "baseName": "saml_can_be_enabled", + "type": "boolean", }, - samlIdpInitiatedLogin: { - baseName: "saml_idp_initiated_login", - type: "OrganizationSettingsSamlIdpInitiatedLogin", + "samlIdpEndpoint": { + "baseName": "saml_idp_endpoint", + "type": "string", }, - samlIdpMetadataUploaded: { - baseName: "saml_idp_metadata_uploaded", - type: "boolean", + "samlIdpInitiatedLogin": { + "baseName": "saml_idp_initiated_login", + "type": "OrganizationSettingsSamlIdpInitiatedLogin", }, - samlLoginUrl: { - baseName: "saml_login_url", - type: "string", + "samlIdpMetadataUploaded": { + "baseName": "saml_idp_metadata_uploaded", + "type": "boolean", }, - samlStrictMode: { - baseName: "saml_strict_mode", - type: "OrganizationSettingsSamlStrictMode", + "samlLoginUrl": { + "baseName": "saml_login_url", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "samlStrictMode": { + "baseName": "saml_strict_mode", + "type": "OrganizationSettingsSamlStrictMode", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationSettings.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationSettingsSaml.ts b/packages/datadog-api-client-v1/models/OrganizationSettingsSaml.ts index 0154a9c0cf1c..1caaf1ec3aef 100644 --- a/packages/datadog-api-client-v1/models/OrganizationSettingsSaml.ts +++ b/packages/datadog-api-client-v1/models/OrganizationSettingsSaml.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Set the boolean property enabled to enable or disable single sign on with SAML. * See the SAML documentation for more information about all SAML settings. - */ +*/ export class OrganizationSettingsSaml { /** * Whether or not SAML is enabled for this organization. - */ + */ "enabled"?: boolean; /** @@ -32,22 +37,48 @@ export class OrganizationSettingsSaml { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationSettingsSaml.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationSettingsSamlAutocreateUsersDomains.ts b/packages/datadog-api-client-v1/models/OrganizationSettingsSamlAutocreateUsersDomains.ts index b4792bf0617e..48a069c59ec8 100644 --- a/packages/datadog-api-client-v1/models/OrganizationSettingsSamlAutocreateUsersDomains.ts +++ b/packages/datadog-api-client-v1/models/OrganizationSettingsSamlAutocreateUsersDomains.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. - */ +*/ export class OrganizationSettingsSamlAutocreateUsersDomains { /** * List of domains where the SAML automated user creation is enabled. - */ + */ "domains"?: Array; /** * Whether or not the automated user creation based on SAML domain is enabled. - */ + */ "enabled"?: boolean; /** @@ -35,26 +40,52 @@ export class OrganizationSettingsSamlAutocreateUsersDomains { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - domains: { - baseName: "domains", - type: "Array", + "domains": { + "baseName": "domains", + "type": "Array", }, - enabled: { - baseName: "enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationSettingsSamlAutocreateUsersDomains.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationSettingsSamlIdpInitiatedLogin.ts b/packages/datadog-api-client-v1/models/OrganizationSettingsSamlIdpInitiatedLogin.ts index b7ce7f485f5f..ffe44d04a617 100644 --- a/packages/datadog-api-client-v1/models/OrganizationSettingsSamlIdpInitiatedLogin.ts +++ b/packages/datadog-api-client-v1/models/OrganizationSettingsSamlIdpInitiatedLogin.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Has one property enabled (boolean). - */ +*/ export class OrganizationSettingsSamlIdpInitiatedLogin { /** * Whether SAML IdP initiated login is enabled, learn more * in the [SAML documentation](https://docs.datadoghq.com/account_management/saml/#idp-initiated-login). - */ + */ "enabled"?: boolean; /** @@ -32,22 +37,48 @@ export class OrganizationSettingsSamlIdpInitiatedLogin { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationSettingsSamlIdpInitiatedLogin.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationSettingsSamlStrictMode.ts b/packages/datadog-api-client-v1/models/OrganizationSettingsSamlStrictMode.ts index 85909b7037be..aae62de4c3fb 100644 --- a/packages/datadog-api-client-v1/models/OrganizationSettingsSamlStrictMode.ts +++ b/packages/datadog-api-client-v1/models/OrganizationSettingsSamlStrictMode.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Has one property enabled (boolean). - */ +*/ export class OrganizationSettingsSamlStrictMode { /** * Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. * Learn more on the [SAML Strict documentation](https://docs.datadoghq.com/account_management/saml/#saml-strict). - */ + */ "enabled"?: boolean; /** @@ -32,22 +37,48 @@ export class OrganizationSettingsSamlStrictMode { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationSettingsSamlStrictMode.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/OrganizationSubscription.ts b/packages/datadog-api-client-v1/models/OrganizationSubscription.ts index 0addcfd4d237..59da78afe320 100644 --- a/packages/datadog-api-client-v1/models/OrganizationSubscription.ts +++ b/packages/datadog-api-client-v1/models/OrganizationSubscription.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Subscription definition. - */ +*/ export class OrganizationSubscription { /** * The subscription type. Types available are `trial`, `free`, and `pro`. - */ + */ "type"?: string; /** @@ -31,22 +36,48 @@ export class OrganizationSubscription { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationSubscription.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PagerDutyService.ts b/packages/datadog-api-client-v1/models/PagerDutyService.ts index 2bf034309cf1..dd8ff09cf751 100644 --- a/packages/datadog-api-client-v1/models/PagerDutyService.ts +++ b/packages/datadog-api-client-v1/models/PagerDutyService.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The PagerDuty service that is available for integration with Datadog. - */ +*/ export class PagerDutyService { /** * Your service key in PagerDuty. - */ + */ "serviceKey": string; /** * Your service name associated with a service key in PagerDuty. - */ + */ "serviceName": string; /** @@ -35,28 +40,54 @@ export class PagerDutyService { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - serviceKey: { - baseName: "service_key", - type: "string", - required: true, + "serviceKey": { + "baseName": "service_key", + "type": "string", + "required": true, }, - serviceName: { - baseName: "service_name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceName": { + "baseName": "service_name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PagerDutyService.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PagerDutyServiceKey.ts b/packages/datadog-api-client-v1/models/PagerDutyServiceKey.ts index c52b6595abc8..bf6b91dd15ec 100644 --- a/packages/datadog-api-client-v1/models/PagerDutyServiceKey.ts +++ b/packages/datadog-api-client-v1/models/PagerDutyServiceKey.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * PagerDuty service object key. - */ +*/ export class PagerDutyServiceKey { /** * Your service key in PagerDuty. - */ + */ "serviceKey": string; /** @@ -31,23 +36,49 @@ export class PagerDutyServiceKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - serviceKey: { - baseName: "service_key", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceKey": { + "baseName": "service_key", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PagerDutyServiceKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PagerDutyServiceName.ts b/packages/datadog-api-client-v1/models/PagerDutyServiceName.ts index 44754cd15597..726c5ad3c802 100644 --- a/packages/datadog-api-client-v1/models/PagerDutyServiceName.ts +++ b/packages/datadog-api-client-v1/models/PagerDutyServiceName.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * PagerDuty service object name. - */ +*/ export class PagerDutyServiceName { /** * Your service name associated service key in PagerDuty. - */ + */ "serviceName": string; /** @@ -31,23 +36,49 @@ export class PagerDutyServiceName { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - serviceName: { - baseName: "service_name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceName": { + "baseName": "service_name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PagerDutyServiceName.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Pagination.ts b/packages/datadog-api-client-v1/models/Pagination.ts index 3181b52bd757..c9f6e1dda89a 100644 --- a/packages/datadog-api-client-v1/models/Pagination.ts +++ b/packages/datadog-api-client-v1/models/Pagination.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination object. - */ +*/ export class Pagination { /** * Total count. - */ + */ "totalCount"?: number; /** * Total count of elements matched by the filter. - */ + */ "totalFilteredCount"?: number; /** @@ -35,28 +40,54 @@ export class Pagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Pagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.ts b/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.ts index d89b479dfb97..8cfc170d01fb 100644 --- a/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.ts +++ b/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack template variable contents. - */ +*/ export class PowerpackTemplateVariableContents { /** * The name of the variable. - */ + */ "name": string; /** * The tag prefix associated with the variable. - */ + */ "prefix"?: string; /** * One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. - */ + */ "values": Array; /** @@ -39,32 +44,58 @@ export class PowerpackTemplateVariableContents { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - prefix: { - baseName: "prefix", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - values: { - baseName: "values", - type: "Array", - required: true, + "prefix": { + "baseName": "prefix", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackTemplateVariableContents.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.ts b/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.ts index e0a71cc9a1f0..333bdf610f6f 100644 --- a/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.ts +++ b/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.ts @@ -5,19 +5,24 @@ */ import { PowerpackTemplateVariableContents } from "./PowerpackTemplateVariableContents"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack template variables. - */ +*/ export class PowerpackTemplateVariables { /** * Template variables controlled at the powerpack level. - */ + */ "controlledByPowerpack"?: Array; /** * Template variables controlled by the external resource, such as the dashboard this powerpack is on. - */ + */ "controlledExternally"?: Array; /** @@ -36,26 +41,52 @@ export class PowerpackTemplateVariables { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - controlledByPowerpack: { - baseName: "controlled_by_powerpack", - type: "Array", + "controlledByPowerpack": { + "baseName": "controlled_by_powerpack", + "type": "Array", }, - controlledExternally: { - baseName: "controlled_externally", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "controlledExternally": { + "baseName": "controlled_externally", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackTemplateVariables.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.ts b/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.ts index 0c426de24f98..cbfd608ba1c0 100644 --- a/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.ts @@ -6,39 +6,44 @@ import { PowerpackTemplateVariables } from "./PowerpackTemplateVariables"; import { PowerpackWidgetDefinitionType } from "./PowerpackWidgetDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The powerpack widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. - */ +*/ export class PowerpackWidgetDefinition { /** * Background color of the powerpack title. - */ + */ "backgroundColor"?: string; /** * URL of image to display as a banner for the powerpack. - */ + */ "bannerImg"?: string; /** * UUID of the associated powerpack. - */ + */ "powerpackId": string; /** * Whether to show the title or not. - */ + */ "showTitle"?: boolean; /** * Powerpack template variables. - */ + */ "templateVariables"?: PowerpackTemplateVariables; /** * Title of the widget. - */ + */ "title"?: string; /** * Type of the powerpack widget. - */ + */ "type": PowerpackWidgetDefinitionType; /** @@ -57,48 +62,74 @@ export class PowerpackWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - backgroundColor: { - baseName: "background_color", - type: "string", - }, - bannerImg: { - baseName: "banner_img", - type: "string", + "backgroundColor": { + "baseName": "background_color", + "type": "string", }, - powerpackId: { - baseName: "powerpack_id", - type: "string", - required: true, + "bannerImg": { + "baseName": "banner_img", + "type": "string", }, - showTitle: { - baseName: "show_title", - type: "boolean", + "powerpackId": { + "baseName": "powerpack_id", + "type": "string", + "required": true, }, - templateVariables: { - baseName: "template_variables", - type: "PowerpackTemplateVariables", + "showTitle": { + "baseName": "show_title", + "type": "boolean", }, - title: { - baseName: "title", - type: "string", + "templateVariables": { + "baseName": "template_variables", + "type": "PowerpackTemplateVariables", }, - type: { - baseName: "type", - type: "PowerpackWidgetDefinitionType", - required: true, + "title": { + "baseName": "title", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "PowerpackWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.ts index 6c3d3bec8808..49372afe5554 100644 --- a/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the powerpack widget. - */ +*/ export type PowerpackWidgetDefinitionType = typeof POWERPACK | UnparsedObject; -export const POWERPACK = "powerpack"; +export const POWERPACK = 'powerpack'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ProcessQueryDefinition.ts b/packages/datadog-api-client-v1/models/ProcessQueryDefinition.ts index 897e0bb78d12..17762de87904 100644 --- a/packages/datadog-api-client-v1/models/ProcessQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/ProcessQueryDefinition.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The process query to use in the widget. - */ +*/ export class ProcessQueryDefinition { /** * List of processes. - */ + */ "filterBy"?: Array; /** * Max number of items in the filter list. - */ + */ "limit"?: number; /** * Your chosen metric. - */ + */ "metric": string; /** * Your chosen search term. - */ + */ "searchBy"?: string; /** @@ -43,36 +48,62 @@ export class ProcessQueryDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filterBy: { - baseName: "filter_by", - type: "Array", + "filterBy": { + "baseName": "filter_by", + "type": "Array", }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - metric: { - baseName: "metric", - type: "string", - required: true, + "metric": { + "baseName": "metric", + "type": "string", + "required": true, }, - searchBy: { - baseName: "search_by", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "searchBy": { + "baseName": "search_by", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProcessQueryDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/QuerySortOrder.ts b/packages/datadog-api-client-v1/models/QuerySortOrder.ts index 11ed6b3044b9..b01cc25adf90 100644 --- a/packages/datadog-api-client-v1/models/QuerySortOrder.ts +++ b/packages/datadog-api-client-v1/models/QuerySortOrder.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Direction of sort. - */ +*/ -export type QuerySortOrder = typeof ASC | typeof DESC | UnparsedObject; -export const ASC = "asc"; -export const DESC = "desc"; +export type QuerySortOrder = typeof ASC| typeof DESC | UnparsedObject; +export const ASC = 'asc'; +export const DESC = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/QueryValueWidgetDefinition.ts b/packages/datadog-api-client-v1/models/QueryValueWidgetDefinition.ts index 73447193f82a..416a73b32f31 100644 --- a/packages/datadog-api-client-v1/models/QueryValueWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/QueryValueWidgetDefinition.ts @@ -10,59 +10,64 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query values display the current value of a given metric, APM, or log query. - */ +*/ export class QueryValueWidgetDefinition { /** * Whether to use auto-scaling or not. - */ + */ "autoscale"?: boolean; /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Display a unit of your choice on the widget. - */ + */ "customUnit"?: string; /** * Number of decimals to show. If not defined, the widget uses the raw value. - */ + */ "precision"?: number; /** * Widget definition. - */ + */ "requests": [QueryValueWidgetRequest]; /** * How to align the text on the widget. - */ + */ "textAlign"?: WidgetTextAlign; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Set a timeseries on the widget background. - */ + */ "timeseriesBackground"?: TimeseriesBackground; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the query value widget. - */ + */ "type": QueryValueWidgetDefinitionType; /** @@ -81,69 +86,95 @@ export class QueryValueWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - autoscale: { - baseName: "autoscale", - type: "boolean", + "autoscale": { + "baseName": "autoscale", + "type": "boolean", }, - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - customUnit: { - baseName: "custom_unit", - type: "string", + "customUnit": { + "baseName": "custom_unit", + "type": "string", }, - precision: { - baseName: "precision", - type: "number", - format: "int64", + "precision": { + "baseName": "precision", + "type": "number", + "format": "int64", }, - requests: { - baseName: "requests", - type: "[QueryValueWidgetRequest]", - required: true, + "requests": { + "baseName": "requests", + "type": "[QueryValueWidgetRequest]", + "required": true, }, - textAlign: { - baseName: "text_align", - type: "WidgetTextAlign", + "textAlign": { + "baseName": "text_align", + "type": "WidgetTextAlign", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - timeseriesBackground: { - baseName: "timeseries_background", - type: "TimeseriesBackground", + "timeseriesBackground": { + "baseName": "timeseries_background", + "type": "TimeseriesBackground", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "QueryValueWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "QueryValueWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return QueryValueWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/QueryValueWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/QueryValueWidgetDefinitionType.ts index 85b3ed3a2fa6..9a59b3125125 100644 --- a/packages/datadog-api-client-v1/models/QueryValueWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/QueryValueWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the query value widget. - */ +*/ -export type QueryValueWidgetDefinitionType = - | typeof QUERY_VALUE - | UnparsedObject; -export const QUERY_VALUE = "query_value"; +export type QueryValueWidgetDefinitionType = typeof QUERY_VALUE | UnparsedObject; +export const QUERY_VALUE = 'query_value'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/QueryValueWidgetRequest.ts b/packages/datadog-api-client-v1/models/QueryValueWidgetRequest.ts index 3c11eee4e106..ec033bfde103 100644 --- a/packages/datadog-api-client-v1/models/QueryValueWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/QueryValueWidgetRequest.ts @@ -11,71 +11,76 @@ import { WidgetAggregator } from "./WidgetAggregator"; import { WidgetConditionalFormat } from "./WidgetConditionalFormat"; import { WidgetFormula } from "./WidgetFormula"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated query value widget. - */ +*/ export class QueryValueWidgetRequest { /** * Aggregator used for the request. - */ + */ "aggregator"?: WidgetAggregator; /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "auditQuery"?: LogQueryDefinition; /** * List of conditional formats. - */ + */ "conditionalFormats"?: Array; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * TODO. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** @@ -94,78 +99,104 @@ export class QueryValueWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "WidgetAggregator", - }, - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", - }, - auditQuery: { - baseName: "audit_query", - type: "LogQueryDefinition", - }, - conditionalFormats: { - baseName: "conditional_formats", - type: "Array", - }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", - }, - formulas: { - baseName: "formulas", - type: "Array", - }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", - }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", - }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", - }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", - }, - q: { - baseName: "q", - type: "string", - }, - queries: { - baseName: "queries", - type: "Array", - }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", - }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", - }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "aggregator": { + "baseName": "aggregator", + "type": "WidgetAggregator", + }, + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", + }, + "auditQuery": { + "baseName": "audit_query", + "type": "LogQueryDefinition", + }, + "conditionalFormats": { + "baseName": "conditional_formats", + "type": "Array", + }, + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", + }, + "formulas": { + "baseName": "formulas", + "type": "Array", + }, + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", + }, + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", + }, + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", + }, + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", + }, + "q": { + "baseName": "q", + "type": "string", + }, + "queries": { + "baseName": "queries", + "type": "Array", + }, + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", + }, + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", + }, + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return QueryValueWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts b/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts index 098ad4375e28..b97b45258e1c 100644 --- a/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts +++ b/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts @@ -5,8 +5,13 @@ */ import { LogsLookupProcessorType } from "./LogsLookupProcessorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * **Note**: Reference Tables are in public beta. * Use the Lookup Processor to define a mapping between a log attribute @@ -15,31 +20,31 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * into a human readable service name. Alternatively, you could also use it to check * if the MAC address that just attempted to connect to the production * environment belongs to your list of stolen machines. - */ +*/ export class ReferenceTableLogsLookupProcessor { /** * Whether or not the processor is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the Reference Table for the source attribute and their associated target attribute values. - */ + */ "lookupEnrichmentTable": string; /** * Name of the processor. - */ + */ "name"?: string; /** * Source attribute used to perform the lookup. - */ + */ "source": string; /** * Name of the attribute that contains the corresponding value in the mapping list. - */ + */ "target": string; /** * Type of logs lookup processor. - */ + */ "type": LogsLookupProcessorType; /** @@ -58,46 +63,72 @@ export class ReferenceTableLogsLookupProcessor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - lookupEnrichmentTable: { - baseName: "lookup_enrichment_table", - type: "string", - required: true, + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "lookupEnrichmentTable": { + "baseName": "lookup_enrichment_table", + "type": "string", + "required": true, }, - source: { - baseName: "source", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - target: { - baseName: "target", - type: "string", - required: true, + "source": { + "baseName": "source", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "LogsLookupProcessorType", - required: true, + "target": { + "baseName": "target", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsLookupProcessorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ReferenceTableLogsLookupProcessor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ResourceProviderConfig.ts b/packages/datadog-api-client-v1/models/ResourceProviderConfig.ts index 1d8ce4490653..394a8cbd3ab8 100644 --- a/packages/datadog-api-client-v1/models/ResourceProviderConfig.ts +++ b/packages/datadog-api-client-v1/models/ResourceProviderConfig.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration settings applied to resources from the specified Azure resource provider. - */ +*/ export class ResourceProviderConfig { /** * Collect metrics for resources from this provider. - */ + */ "metricsEnabled"?: boolean; /** * The provider namespace to apply this configuration to. - */ + */ "namespace"?: string; /** @@ -35,26 +40,52 @@ export class ResourceProviderConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metricsEnabled: { - baseName: "metrics_enabled", - type: "boolean", + "metricsEnabled": { + "baseName": "metrics_enabled", + "type": "boolean", }, - namespace: { - baseName: "namespace", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "namespace": { + "baseName": "namespace", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ResourceProviderConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ResponseMetaAttributes.ts b/packages/datadog-api-client-v1/models/ResponseMetaAttributes.ts index 33179f3379bb..300f469631ce 100644 --- a/packages/datadog-api-client-v1/models/ResponseMetaAttributes.ts +++ b/packages/datadog-api-client-v1/models/ResponseMetaAttributes.ts @@ -5,15 +5,20 @@ */ import { Pagination } from "./Pagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing meta attributes of response. - */ +*/ export class ResponseMetaAttributes { /** * Pagination object. - */ + */ "page"?: Pagination; /** @@ -32,22 +37,48 @@ export class ResponseMetaAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "Pagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "Pagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ResponseMetaAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.ts b/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.ts index 8fb5c778b25e..f4e77db3f6e3 100644 --- a/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.ts @@ -9,43 +9,48 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Run workflow is widget that allows you to run a workflow from a dashboard. - */ +*/ export class RunWorkflowWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Array of workflow inputs to map to dashboard template variables. - */ + */ "inputs"?: Array; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the run workflow widget. - */ + */ "type": RunWorkflowWidgetDefinitionType; /** * Workflow id. - */ + */ "workflowId": string; /** @@ -64,52 +69,78 @@ export class RunWorkflowWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - inputs: { - baseName: "inputs", - type: "Array", + "inputs": { + "baseName": "inputs", + "type": "Array", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "RunWorkflowWidgetDefinitionType", - required: true, + "type": { + "baseName": "type", + "type": "RunWorkflowWidgetDefinitionType", + "required": true, }, - workflowId: { - baseName: "workflow_id", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "workflowId": { + "baseName": "workflow_id", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RunWorkflowWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.ts index db13f68c1d67..e9e9edffd03f 100644 --- a/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the run workflow widget. - */ +*/ -export type RunWorkflowWidgetDefinitionType = - | typeof RUN_WORKFLOW - | UnparsedObject; -export const RUN_WORKFLOW = "run_workflow"; +export type RunWorkflowWidgetDefinitionType = typeof RUN_WORKFLOW | UnparsedObject; +export const RUN_WORKFLOW = 'run_workflow'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.ts b/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.ts index c1005bb447af..db25528008c2 100644 --- a/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.ts +++ b/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to map a dashboard template variable to a workflow input. - */ +*/ export class RunWorkflowWidgetInput { /** * Name of the workflow input. - */ + */ "name": string; /** * Dashboard template variable. Can be suffixed with '.value' or '.key'. - */ + */ "value": string; /** @@ -35,28 +40,54 @@ export class RunWorkflowWidgetInput { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RunWorkflowWidgetInput.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOBulkDeleteError.ts b/packages/datadog-api-client-v1/models/SLOBulkDeleteError.ts index d991eca11367..1505d7e5bbb8 100644 --- a/packages/datadog-api-client-v1/models/SLOBulkDeleteError.ts +++ b/packages/datadog-api-client-v1/models/SLOBulkDeleteError.ts @@ -5,25 +5,30 @@ */ import { SLOErrorTimeframe } from "./SLOErrorTimeframe"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the error. - */ +*/ export class SLOBulkDeleteError { /** * The ID of the service level objective object associated with * this error. - */ + */ "id": string; /** * The error message. - */ + */ "message": string; /** * The timeframe of the threshold associated with this error * or "all" if all thresholds are affected. - */ + */ "timeframe": SLOErrorTimeframe; /** @@ -42,33 +47,59 @@ export class SLOBulkDeleteError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - }, - message: { - baseName: "message", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - timeframe: { - baseName: "timeframe", - type: "SLOErrorTimeframe", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeframe": { + "baseName": "timeframe", + "type": "SLOErrorTimeframe", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOBulkDeleteError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOBulkDeleteResponse.ts b/packages/datadog-api-client-v1/models/SLOBulkDeleteResponse.ts index b1e66eda9b7b..f24b7696f7b9 100644 --- a/packages/datadog-api-client-v1/models/SLOBulkDeleteResponse.ts +++ b/packages/datadog-api-client-v1/models/SLOBulkDeleteResponse.ts @@ -6,24 +6,29 @@ import { SLOBulkDeleteError } from "./SLOBulkDeleteError"; import { SLOBulkDeleteResponseData } from "./SLOBulkDeleteResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The bulk partial delete service level objective object endpoint * response. - * + * * This endpoint operates on multiple service level objective objects, so * it may be partially successful. In such cases, the "data" and "error" * fields in this response indicate which deletions succeeded and failed. - */ +*/ export class SLOBulkDeleteResponse { /** * An array of service level objective objects. - */ + */ "data"?: SLOBulkDeleteResponseData; /** * Array of errors object returned. - */ + */ "errors"?: Array; /** @@ -42,26 +47,52 @@ export class SLOBulkDeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOBulkDeleteResponseData", + "data": { + "baseName": "data", + "type": "SLOBulkDeleteResponseData", }, - errors: { - baseName: "errors", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOBulkDeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOBulkDeleteResponseData.ts b/packages/datadog-api-client-v1/models/SLOBulkDeleteResponseData.ts index ddbb63b86271..30d446fc374d 100644 --- a/packages/datadog-api-client-v1/models/SLOBulkDeleteResponseData.ts +++ b/packages/datadog-api-client-v1/models/SLOBulkDeleteResponseData.ts @@ -4,22 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An array of service level objective objects. - */ +*/ export class SLOBulkDeleteResponseData { /** * An array of service level objective object IDs that indicates * which objects that were completely deleted. - */ + */ "deleted"?: Array; /** * An array of service level objective object IDs that indicates * which objects that were modified (objects for which at least one * threshold was deleted, but that were not completely deleted). - */ + */ "updated"?: Array; /** @@ -38,26 +43,52 @@ export class SLOBulkDeleteResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deleted: { - baseName: "deleted", - type: "Array", + "deleted": { + "baseName": "deleted", + "type": "Array", }, - updated: { - baseName: "updated", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "updated": { + "baseName": "updated", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOBulkDeleteResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrection.ts b/packages/datadog-api-client-v1/models/SLOCorrection.ts index c24279367099..f1e6604cd825 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrection.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrection.ts @@ -6,23 +6,28 @@ import { SLOCorrectionResponseAttributes } from "./SLOCorrectionResponseAttributes"; import { SLOCorrectionType } from "./SLOCorrectionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object of a list of SLO corrections. - */ +*/ export class SLOCorrection { /** * The attribute object associated with the SLO correction. - */ + */ "attributes"?: SLOCorrectionResponseAttributes; /** * The ID of the SLO correction. - */ + */ "id"?: string; /** * SLO correction resource type. - */ + */ "type"?: SLOCorrectionType; /** @@ -41,30 +46,56 @@ export class SLOCorrection { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SLOCorrectionResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SLOCorrectionResponseAttributes", }, - type: { - baseName: "type", - type: "SLOCorrectionType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SLOCorrectionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrection.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionCategory.ts b/packages/datadog-api-client-v1/models/SLOCorrectionCategory.ts index ce960288e5f7..9668e85d9484 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionCategory.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionCategory.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Category the SLO correction belongs to. - */ +*/ -export type SLOCorrectionCategory = - | typeof SCHEDULED_MAINTENANCE - | typeof OUTSIDE_BUSINESS_HOURS - | typeof DEPLOYMENT - | typeof OTHER - | UnparsedObject; -export const SCHEDULED_MAINTENANCE = "Scheduled Maintenance"; -export const OUTSIDE_BUSINESS_HOURS = "Outside Business Hours"; -export const DEPLOYMENT = "Deployment"; -export const OTHER = "Other"; +export type SLOCorrectionCategory = typeof SCHEDULED_MAINTENANCE| typeof OUTSIDE_BUSINESS_HOURS| typeof DEPLOYMENT| typeof OTHER | UnparsedObject; +export const SCHEDULED_MAINTENANCE = 'Scheduled Maintenance'; +export const OUTSIDE_BUSINESS_HOURS = 'Outside Business Hours'; +export const DEPLOYMENT = 'Deployment'; +export const OTHER = 'Other'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionCreateData.ts b/packages/datadog-api-client-v1/models/SLOCorrectionCreateData.ts index fb1af3f8490d..fd6c30bce090 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionCreateData.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionCreateData.ts @@ -6,19 +6,24 @@ import { SLOCorrectionCreateRequestAttributes } from "./SLOCorrectionCreateRequestAttributes"; import { SLOCorrectionType } from "./SLOCorrectionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object associated with the SLO correction to be created. - */ +*/ export class SLOCorrectionCreateData { /** * The attribute object associated with the SLO correction to be created. - */ + */ "attributes"?: SLOCorrectionCreateRequestAttributes; /** * SLO correction resource type. - */ + */ "type": SLOCorrectionType; /** @@ -37,27 +42,53 @@ export class SLOCorrectionCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SLOCorrectionCreateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "SLOCorrectionCreateRequestAttributes", }, - type: { - baseName: "type", - type: "SLOCorrectionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SLOCorrectionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequest.ts b/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequest.ts index bf0c2a051011..f693828c5f61 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequest.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequest.ts @@ -5,15 +5,20 @@ */ import { SLOCorrectionCreateData } from "./SLOCorrectionCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object that defines a correction to be applied to an SLO. - */ +*/ export class SLOCorrectionCreateRequest { /** * The data object associated with the SLO correction to be created. - */ + */ "data"?: SLOCorrectionCreateData; /** @@ -32,22 +37,48 @@ export class SLOCorrectionCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOCorrectionCreateData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SLOCorrectionCreateData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequestAttributes.ts b/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequestAttributes.ts index 023e3cb57bfd..5297065040e1 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequestAttributes.ts @@ -5,44 +5,49 @@ */ import { SLOCorrectionCategory } from "./SLOCorrectionCategory"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attribute object associated with the SLO correction to be created. - */ +*/ export class SLOCorrectionCreateRequestAttributes { /** * Category the SLO correction belongs to. - */ + */ "category": SLOCorrectionCategory; /** * Description of the correction being made. - */ + */ "description"?: string; /** * Length of time (in seconds) for a specified `rrule` recurring SLO correction. - */ + */ "duration"?: number; /** * Ending time of the correction in epoch seconds. - */ + */ "end"?: number; /** * The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections * are `FREQ`, `INTERVAL`, `COUNT`, `UNTIL` and `BYDAY`. - */ + */ "rrule"?: string; /** * ID of the SLO that this correction applies to. - */ + */ "sloId": string; /** * Starting time of the correction in epoch seconds. - */ + */ "start": number; /** * The timezone to display in the UI for the correction times (defaults to "UTC"). - */ + */ "timezone"?: string; /** @@ -61,56 +66,82 @@ export class SLOCorrectionCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "SLOCorrectionCategory", - required: true, + "category": { + "baseName": "category", + "type": "SLOCorrectionCategory", + "required": true, }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - duration: { - baseName: "duration", - type: "number", - format: "int64", + "duration": { + "baseName": "duration", + "type": "number", + "format": "int64", }, - end: { - baseName: "end", - type: "number", - format: "int64", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - rrule: { - baseName: "rrule", - type: "string", + "rrule": { + "baseName": "rrule", + "type": "string", }, - sloId: { - baseName: "slo_id", - type: "string", - required: true, + "sloId": { + "baseName": "slo_id", + "type": "string", + "required": true, }, - start: { - baseName: "start", - type: "number", - required: true, - format: "int64", + "start": { + "baseName": "start", + "type": "number", + "required": true, + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionListResponse.ts b/packages/datadog-api-client-v1/models/SLOCorrectionListResponse.ts index 968fa3c81b91..b276efe49465 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionListResponse.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionListResponse.ts @@ -6,19 +6,24 @@ import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; import { SLOCorrection } from "./SLOCorrection"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of SLO correction objects. - */ +*/ export class SLOCorrectionListResponse { /** * The list of SLO corrections objects. - */ + */ "data"?: Array; /** * Object describing meta attributes of response. - */ + */ "meta"?: ResponseMetaAttributes; /** @@ -37,26 +42,52 @@ export class SLOCorrectionListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ResponseMetaAttributes", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ResponseMetaAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionResponse.ts b/packages/datadog-api-client-v1/models/SLOCorrectionResponse.ts index c996234671d0..f3416753c3c9 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionResponse.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionResponse.ts @@ -5,15 +5,20 @@ */ import { SLOCorrection } from "./SLOCorrection"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object of an SLO correction. - */ +*/ export class SLOCorrectionResponse { /** * The response object of a list of SLO corrections. - */ + */ "data"?: SLOCorrection; /** @@ -32,22 +37,48 @@ export class SLOCorrectionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOCorrection", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SLOCorrection", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributes.ts b/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributes.ts index cfcaf923a460..46c5d359f0e9 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributes.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributes.ts @@ -7,60 +7,65 @@ import { Creator } from "./Creator"; import { SLOCorrectionCategory } from "./SLOCorrectionCategory"; import { SLOCorrectionResponseAttributesModifier } from "./SLOCorrectionResponseAttributesModifier"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attribute object associated with the SLO correction. - */ +*/ export class SLOCorrectionResponseAttributes { /** * Category the SLO correction belongs to. - */ + */ "category"?: SLOCorrectionCategory; /** * The epoch timestamp of when the correction was created at. - */ + */ "createdAt"?: number; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * Description of the correction being made. - */ + */ "description"?: string; /** * Length of time (in seconds) for a specified `rrule` recurring SLO correction. - */ + */ "duration"?: number; /** * Ending time of the correction in epoch seconds. - */ + */ "end"?: number; /** * The epoch timestamp of when the correction was modified at. - */ + */ "modifiedAt"?: number; /** * Modifier of the object. - */ + */ "modifier"?: SLOCorrectionResponseAttributesModifier; /** * The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections * are `FREQ`, `INTERVAL`, `COUNT`, `UNTIL` and `BYDAY`. - */ + */ "rrule"?: string; /** * ID of the SLO that this correction applies to. - */ + */ "sloId"?: string; /** * Starting time of the correction in epoch seconds. - */ + */ "start"?: number; /** * The timezone to display in the UI for the correction times (defaults to "UTC"). - */ + */ "timezone"?: string; /** @@ -79,71 +84,97 @@ export class SLOCorrectionResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "SLOCorrectionCategory", + "category": { + "baseName": "category", + "type": "SLOCorrectionCategory", }, - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", }, - creator: { - baseName: "creator", - type: "Creator", + "creator": { + "baseName": "creator", + "type": "Creator", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - duration: { - baseName: "duration", - type: "number", - format: "int64", + "duration": { + "baseName": "duration", + "type": "number", + "format": "int64", }, - end: { - baseName: "end", - type: "number", - format: "int64", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - modifiedAt: { - baseName: "modified_at", - type: "number", - format: "int64", + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "format": "int64", }, - modifier: { - baseName: "modifier", - type: "SLOCorrectionResponseAttributesModifier", + "modifier": { + "baseName": "modifier", + "type": "SLOCorrectionResponseAttributesModifier", }, - rrule: { - baseName: "rrule", - type: "string", + "rrule": { + "baseName": "rrule", + "type": "string", }, - sloId: { - baseName: "slo_id", - type: "string", + "sloId": { + "baseName": "slo_id", + "type": "string", }, - start: { - baseName: "start", - type: "number", - format: "int64", + "start": { + "baseName": "start", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributesModifier.ts b/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributesModifier.ts index 09154b481c68..3fcf71d2f243 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributesModifier.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributesModifier.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Modifier of the object. - */ +*/ export class SLOCorrectionResponseAttributesModifier { /** * Email of the Modifier. - */ + */ "email"?: string; /** * Handle of the Modifier. - */ + */ "handle"?: string; /** * Name of the Modifier. - */ + */ "name"?: string; /** @@ -39,30 +44,56 @@ export class SLOCorrectionResponseAttributesModifier { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - }, - handle: { - baseName: "handle", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionResponseAttributesModifier.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionType.ts b/packages/datadog-api-client-v1/models/SLOCorrectionType.ts index ffbbb19d38fa..c862501c0d37 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionType.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * SLO correction resource type. - */ +*/ export type SLOCorrectionType = typeof CORRECTION | UnparsedObject; -export const CORRECTION = "correction"; +export const CORRECTION = 'correction'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionUpdateData.ts b/packages/datadog-api-client-v1/models/SLOCorrectionUpdateData.ts index 69f08cb2d79f..cc97a5042177 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionUpdateData.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionUpdateData.ts @@ -6,19 +6,24 @@ import { SLOCorrectionType } from "./SLOCorrectionType"; import { SLOCorrectionUpdateRequestAttributes } from "./SLOCorrectionUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object associated with the SLO correction to be updated. - */ +*/ export class SLOCorrectionUpdateData { /** * The attribute object associated with the SLO correction to be updated. - */ + */ "attributes"?: SLOCorrectionUpdateRequestAttributes; /** * SLO correction resource type. - */ + */ "type"?: SLOCorrectionType; /** @@ -37,26 +42,52 @@ export class SLOCorrectionUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SLOCorrectionUpdateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "SLOCorrectionUpdateRequestAttributes", }, - type: { - baseName: "type", - type: "SLOCorrectionType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SLOCorrectionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequest.ts b/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequest.ts index e18c606d58ea..a87dd1a1e019 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SLOCorrectionUpdateData } from "./SLOCorrectionUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object that defines a correction to be applied to an SLO. - */ +*/ export class SLOCorrectionUpdateRequest { /** * The data object associated with the SLO correction to be updated. - */ + */ "data"?: SLOCorrectionUpdateData; /** @@ -32,22 +37,48 @@ export class SLOCorrectionUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOCorrectionUpdateData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SLOCorrectionUpdateData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequestAttributes.ts b/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequestAttributes.ts index db00b3fb4df3..384b3708874f 100644 --- a/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequestAttributes.ts @@ -5,40 +5,45 @@ */ import { SLOCorrectionCategory } from "./SLOCorrectionCategory"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attribute object associated with the SLO correction to be updated. - */ +*/ export class SLOCorrectionUpdateRequestAttributes { /** * Category the SLO correction belongs to. - */ + */ "category"?: SLOCorrectionCategory; /** * Description of the correction being made. - */ + */ "description"?: string; /** * Length of time (in seconds) for a specified `rrule` recurring SLO correction. - */ + */ "duration"?: number; /** * Ending time of the correction in epoch seconds. - */ + */ "end"?: number; /** * The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections * are `FREQ`, `INTERVAL`, `COUNT`, `UNTIL` and `BYDAY`. - */ + */ "rrule"?: string; /** * Starting time of the correction in epoch seconds. - */ + */ "start"?: number; /** * The timezone to display in the UI for the correction times (defaults to "UTC"). - */ + */ "timezone"?: string; /** @@ -57,49 +62,75 @@ export class SLOCorrectionUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "SLOCorrectionCategory", - }, - description: { - baseName: "description", - type: "string", + "category": { + "baseName": "category", + "type": "SLOCorrectionCategory", }, - duration: { - baseName: "duration", - type: "number", - format: "int64", + "description": { + "baseName": "description", + "type": "string", }, - end: { - baseName: "end", - type: "number", - format: "int64", + "duration": { + "baseName": "duration", + "type": "number", + "format": "int64", }, - rrule: { - baseName: "rrule", - type: "string", + "end": { + "baseName": "end", + "type": "number", + "format": "int64", }, - start: { - baseName: "start", - type: "number", - format: "int64", + "rrule": { + "baseName": "rrule", + "type": "string", }, - timezone: { - baseName: "timezone", - type: "string", + "start": { + "baseName": "start", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCorrectionUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOCreator.ts b/packages/datadog-api-client-v1/models/SLOCreator.ts index 158dca0d98e4..eea933fb24fe 100644 --- a/packages/datadog-api-client-v1/models/SLOCreator.ts +++ b/packages/datadog-api-client-v1/models/SLOCreator.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The creator of the SLO - */ +*/ export class SLOCreator { /** * Email of the creator. - */ + */ "email"?: string; /** * User ID of the creator. - */ + */ "id"?: number; /** * Name of the creator. - */ + */ "name"?: string; /** @@ -39,31 +44,57 @@ export class SLOCreator { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - }, - id: { - baseName: "id", - type: "number", - format: "int64", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOCreator.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLODataSourceQueryDefinition.ts b/packages/datadog-api-client-v1/models/SLODataSourceQueryDefinition.ts index 04842a8276d1..466017c31659 100644 --- a/packages/datadog-api-client-v1/models/SLODataSourceQueryDefinition.ts +++ b/packages/datadog-api-client-v1/models/SLODataSourceQueryDefinition.ts @@ -5,12 +5,15 @@ */ import { FormulaAndFunctionMetricQueryDefinition } from "./FormulaAndFunctionMetricQueryDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A formula and function query. - */ +*/ -export type SLODataSourceQueryDefinition = - | FormulaAndFunctionMetricQueryDefinition - | UnparsedObject; +export type SLODataSourceQueryDefinition = FormulaAndFunctionMetricQueryDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLODeleteResponse.ts b/packages/datadog-api-client-v1/models/SLODeleteResponse.ts index fc08e13ad814..bdb43bd60b5e 100644 --- a/packages/datadog-api-client-v1/models/SLODeleteResponse.ts +++ b/packages/datadog-api-client-v1/models/SLODeleteResponse.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A response list of all service level objective deleted. - */ +*/ export class SLODeleteResponse { /** * An array containing the ID of the deleted service level objective object. - */ + */ "data"?: Array; /** * An dictionary containing the ID of the SLO as key and a deletion error as value. - */ - "errors"?: { [key: string]: string }; + */ + "errors"?: { [key: string]: string; }; /** * A container for additional, undeclared properties. @@ -35,26 +40,52 @@ export class SLODeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - errors: { - baseName: "errors", - type: "{ [key: string]: string; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "{ [key: string]: string; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLODeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOErrorTimeframe.ts b/packages/datadog-api-client-v1/models/SLOErrorTimeframe.ts index 6ad31b7bfe69..7449809ea1ef 100644 --- a/packages/datadog-api-client-v1/models/SLOErrorTimeframe.ts +++ b/packages/datadog-api-client-v1/models/SLOErrorTimeframe.ts @@ -4,20 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The timeframe of the threshold associated with this error * or "all" if all thresholds are affected. - */ +*/ -export type SLOErrorTimeframe = - | typeof SEVEN_DAYS - | typeof THIRTY_DAYS - | typeof NINETY_DAYS - | typeof ALL - | UnparsedObject; -export const SEVEN_DAYS = "7d"; -export const THIRTY_DAYS = "30d"; -export const NINETY_DAYS = "90d"; -export const ALL = "all"; +export type SLOErrorTimeframe = typeof SEVEN_DAYS| typeof THIRTY_DAYS| typeof NINETY_DAYS| typeof ALL | UnparsedObject; +export const SEVEN_DAYS = '7d'; +export const THIRTY_DAYS = '30d'; +export const NINETY_DAYS = '90d'; +export const ALL = 'all'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOFormula.ts b/packages/datadog-api-client-v1/models/SLOFormula.ts index da2f594f5432..d42af7d2e2d2 100644 --- a/packages/datadog-api-client-v1/models/SLOFormula.ts +++ b/packages/datadog-api-client-v1/models/SLOFormula.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula that specifies how to combine the results of multiple queries. - */ +*/ export class SLOFormula { /** * The formula string, which is an expression involving named queries. - */ + */ "formula": string; /** @@ -31,23 +36,49 @@ export class SLOFormula { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formula: { - baseName: "formula", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "formula": { + "baseName": "formula", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOFormula.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryMetrics.ts b/packages/datadog-api-client-v1/models/SLOHistoryMetrics.ts index 5c465ddd2578..af6c49dc0a2e 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryMetrics.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryMetrics.ts @@ -5,47 +5,52 @@ */ import { SLOHistoryMetricsSeries } from "./SLOHistoryMetricsSeries"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A `metric` based SLO history response. - * + * * This is not included in responses for `monitor` based SLOs. - */ +*/ export class SLOHistoryMetrics { /** * A representation of `metric` based SLO timeseries for the provided queries. * This is the same response type from `batch_query` endpoint. - */ + */ "denominator": SLOHistoryMetricsSeries; /** * The aggregated query interval for the series data. It's implicit based on the query time window. - */ + */ "interval": number; /** * Optional message if there are specific query issues/warnings. - */ + */ "message"?: string; /** * A representation of `metric` based SLO timeseries for the provided queries. * This is the same response type from `batch_query` endpoint. - */ + */ "numerator": SLOHistoryMetricsSeries; /** * The combined numerator and denominator query CSV. - */ + */ "query": string; /** * The series result type. This mimics `batch_query` response type. - */ + */ "resType": string; /** * The series response version type. This mimics `batch_query` response type. - */ + */ "respVersion": number; /** * An array of query timestamps in EPOCH milliseconds. - */ + */ "times": Array; /** @@ -64,60 +69,86 @@ export class SLOHistoryMetrics { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - denominator: { - baseName: "denominator", - type: "SLOHistoryMetricsSeries", - required: true, + "denominator": { + "baseName": "denominator", + "type": "SLOHistoryMetricsSeries", + "required": true, }, - interval: { - baseName: "interval", - type: "number", - required: true, - format: "int64", + "interval": { + "baseName": "interval", + "type": "number", + "required": true, + "format": "int64", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - numerator: { - baseName: "numerator", - type: "SLOHistoryMetricsSeries", - required: true, + "numerator": { + "baseName": "numerator", + "type": "SLOHistoryMetricsSeries", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - resType: { - baseName: "res_type", - type: "string", - required: true, + "resType": { + "baseName": "res_type", + "type": "string", + "required": true, }, - respVersion: { - baseName: "resp_version", - type: "number", - required: true, - format: "int64", + "respVersion": { + "baseName": "resp_version", + "type": "number", + "required": true, + "format": "int64", }, - times: { - baseName: "times", - type: "Array", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "times": { + "baseName": "times", + "type": "Array", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryMetrics.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeries.ts b/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeries.ts index 557c7e44888e..f9ed3bab8a72 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeries.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeries.ts @@ -5,28 +5,33 @@ */ import { SLOHistoryMetricsSeriesMetadata } from "./SLOHistoryMetricsSeriesMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A representation of `metric` based SLO timeseries for the provided queries. * This is the same response type from `batch_query` endpoint. - */ +*/ export class SLOHistoryMetricsSeries { /** * Count of submitted metrics. - */ + */ "count": number; /** * Query metadata. - */ + */ "metadata"?: SLOHistoryMetricsSeriesMetadata; /** * Total sum of the query. - */ + */ "sum": number; /** * The query values for each metric. - */ + */ "values": Array; /** @@ -45,40 +50,66 @@ export class SLOHistoryMetricsSeries { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - required: true, - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "required": true, + "format": "int64", }, - metadata: { - baseName: "metadata", - type: "SLOHistoryMetricsSeriesMetadata", + "metadata": { + "baseName": "metadata", + "type": "SLOHistoryMetricsSeriesMetadata", }, - sum: { - baseName: "sum", - type: "number", - required: true, - format: "double", + "sum": { + "baseName": "sum", + "type": "number", + "required": true, + "format": "double", }, - values: { - baseName: "values", - type: "Array", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryMetricsSeries.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadata.ts b/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadata.ts index 0a3010f46828..d391c7f611bc 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadata.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadata.ts @@ -5,37 +5,42 @@ */ import { SLOHistoryMetricsSeriesMetadataUnit } from "./SLOHistoryMetricsSeriesMetadataUnit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query metadata. - */ +*/ export class SLOHistoryMetricsSeriesMetadata { /** * Query aggregator function. - */ + */ "aggr"?: string; /** * Query expression. - */ + */ "expression"?: string; /** * Query metric used. - */ + */ "metric"?: string; /** * Query index from original combined query. - */ + */ "queryIndex"?: number; /** * Query scope. - */ + */ "scope"?: string; /** * An array of metric units that contains up to two unit objects. * For example, bytes represents one unit object and bytes per second represents two unit objects. * If a metric query only has one unit object, the second array element is null. - */ + */ "unit"?: Array; /** @@ -54,43 +59,69 @@ export class SLOHistoryMetricsSeriesMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggr: { - baseName: "aggr", - type: "string", - }, - expression: { - baseName: "expression", - type: "string", + "aggr": { + "baseName": "aggr", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", + "expression": { + "baseName": "expression", + "type": "string", }, - queryIndex: { - baseName: "query_index", - type: "number", - format: "int64", + "metric": { + "baseName": "metric", + "type": "string", }, - scope: { - baseName: "scope", - type: "string", + "queryIndex": { + "baseName": "query_index", + "type": "number", + "format": "int64", }, - unit: { - baseName: "unit", - type: "Array", + "scope": { + "baseName": "scope", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryMetricsSeriesMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadataUnit.ts b/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadataUnit.ts index 93c30429e185..b85c7356529c 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadataUnit.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadataUnit.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An Object of metric units. - */ +*/ export class SLOHistoryMetricsSeriesMetadataUnit { /** * The family of metric unit, for example `bytes` is the family for `kibibyte`, `byte`, and `bit` units. - */ + */ "family"?: string; /** * The ID of the metric unit. - */ + */ "id"?: number; /** * The unit of the metric, for instance `byte`. - */ + */ "name"?: string; /** * The plural Unit of metric, for instance `bytes`. - */ + */ "plural"?: string; /** * The scale factor of metric unit, for instance `1.0`. - */ + */ "scaleFactor"?: number; /** * A shorter and abbreviated version of the metric unit, for instance `B`. - */ + */ "shortName"?: string; /** @@ -51,44 +56,70 @@ export class SLOHistoryMetricsSeriesMetadataUnit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - family: { - baseName: "family", - type: "string", - }, - id: { - baseName: "id", - type: "number", - format: "int64", + "family": { + "baseName": "family", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - plural: { - baseName: "plural", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - scaleFactor: { - baseName: "scale_factor", - type: "number", - format: "double", + "plural": { + "baseName": "plural", + "type": "string", }, - shortName: { - baseName: "short_name", - type: "string", + "scaleFactor": { + "baseName": "scale_factor", + "type": "number", + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "shortName": { + "baseName": "short_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryMetricsSeriesMetadataUnit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryMonitor.ts b/packages/datadog-api-client-v1/models/SLOHistoryMonitor.ts index 2a60bdb3c31f..ba74560d4157 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryMonitor.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryMonitor.ts @@ -5,24 +5,29 @@ */ import { SLOHistoryResponseErrorWithType } from "./SLOHistoryResponseErrorWithType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. * This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. - */ +*/ export class SLOHistoryMonitor { /** * A mapping of threshold `timeframe` to the remaining error budget. - */ - "errorBudgetRemaining"?: { [key: string]: number }; + */ + "errorBudgetRemaining"?: { [key: string]: number; }; /** * An array of error objects returned while querying the history data for the service level objective. - */ + */ "errors"?: Array; /** * For groups in a grouped SLO, this is the group name. - */ + */ "group"?: string; /** * The state transition history for the monitor. It is represented as @@ -32,40 +37,40 @@ export class SLOHistoryMonitor { * Periods of no data are counted either as uptime or downtime depending on monitor settings. * See [SLO documentation](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data) * for detailed information. - */ + */ "history"?: Array<[number, number]>; /** * For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. - */ + */ "monitorModified"?: number; /** * For `monitor` based SLOs, this describes the type of monitor. - */ + */ "monitorType"?: string; /** * For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. - */ + */ "name"?: string; /** * The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. Use `span_precision` instead. - */ + */ "precision"?: number; /** * For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime * calculation. - */ + */ "preview"?: boolean; /** * The current SLI value of the SLO over the history window. - */ + */ "sliValue"?: number; /** * The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. - */ + */ "spanPrecision"?: number; /** * Use `sli_value` instead. - */ + */ "uptime"?: number; /** @@ -84,72 +89,98 @@ export class SLOHistoryMonitor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errorBudgetRemaining: { - baseName: "error_budget_remaining", - type: "{ [key: string]: number; }", + "errorBudgetRemaining": { + "baseName": "error_budget_remaining", + "type": "{ [key: string]: number; }", }, - errors: { - baseName: "errors", - type: "Array", + "errors": { + "baseName": "errors", + "type": "Array", }, - group: { - baseName: "group", - type: "string", + "group": { + "baseName": "group", + "type": "string", }, - history: { - baseName: "history", - type: "Array<[number, number]>", - format: "double", + "history": { + "baseName": "history", + "type": "Array<[number, number]>", + "format": "double", }, - monitorModified: { - baseName: "monitor_modified", - type: "number", - format: "int64", + "monitorModified": { + "baseName": "monitor_modified", + "type": "number", + "format": "int64", }, - monitorType: { - baseName: "monitor_type", - type: "string", + "monitorType": { + "baseName": "monitor_type", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - precision: { - baseName: "precision", - type: "number", - format: "double", + "precision": { + "baseName": "precision", + "type": "number", + "format": "double", }, - preview: { - baseName: "preview", - type: "boolean", + "preview": { + "baseName": "preview", + "type": "boolean", }, - sliValue: { - baseName: "sli_value", - type: "number", - format: "double", + "sliValue": { + "baseName": "sli_value", + "type": "number", + "format": "double", }, - spanPrecision: { - baseName: "span_precision", - type: "number", - format: "double", + "spanPrecision": { + "baseName": "span_precision", + "type": "number", + "format": "double", }, - uptime: { - baseName: "uptime", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uptime": { + "baseName": "uptime", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryMonitor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryResponse.ts b/packages/datadog-api-client-v1/models/SLOHistoryResponse.ts index 0e986894f93c..fe2b4e33c65b 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryResponse.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryResponse.ts @@ -6,19 +6,24 @@ import { SLOHistoryResponseData } from "./SLOHistoryResponseData"; import { SLOHistoryResponseError } from "./SLOHistoryResponseError"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective history response. - */ +*/ export class SLOHistoryResponse { /** * An array of service level objective objects. - */ + */ "data"?: SLOHistoryResponseData; /** * A list of errors while querying the history data for the service level objective. - */ + */ "errors"?: Array; /** @@ -37,26 +42,52 @@ export class SLOHistoryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOHistoryResponseData", + "data": { + "baseName": "data", + "type": "SLOHistoryResponseData", }, - errors: { - baseName: "errors", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryResponseData.ts b/packages/datadog-api-client-v1/models/SLOHistoryResponseData.ts index 50be1b1045f1..a32a09063f64 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryResponseData.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryResponseData.ts @@ -10,62 +10,67 @@ import { SLOThreshold } from "./SLOThreshold"; import { SLOType } from "./SLOType"; import { SLOTypeNumeric } from "./SLOTypeNumeric"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An array of service level objective objects. - */ +*/ export class SLOHistoryResponseData { /** * The `from` timestamp in epoch seconds. - */ + */ "fromTs"?: number; /** * For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. - * + * * This is not included in responses for `monitor` based SLOs. - */ + */ "groupBy"?: Array; /** * For grouped SLOs, this represents SLI data for specific groups. - * + * * This is not included in the responses for `metric` based SLOs. - */ + */ "groups"?: Array; /** * For multi-monitor SLOs, this represents SLI data for specific monitors. - * + * * This is not included in the responses for `metric` based SLOs. - */ + */ "monitors"?: Array; /** * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. * This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. - */ + */ "overall"?: SLOHistorySLIData; /** * A `metric` based SLO history response. - * + * * This is not included in responses for `monitor` based SLOs. - */ + */ "series"?: SLOHistoryMetrics; /** * mapping of string timeframe to the SLO threshold. - */ - "thresholds"?: { [key: string]: SLOThreshold }; + */ + "thresholds"?: { [key: string]: SLOThreshold; }; /** * The `to` timestamp in epoch seconds. - */ + */ "toTs"?: number; /** * The type of the service level objective. - */ + */ "type"?: SLOType; /** * A numeric representation of the type of the service level objective (`0` for * monitor, `1` for metric). Always included in service level objective responses. * Ignored in create/update requests. - */ + */ "typeId"?: SLOTypeNumeric; /** @@ -84,61 +89,87 @@ export class SLOHistoryResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fromTs: { - baseName: "from_ts", - type: "number", - format: "int64", - }, - groupBy: { - baseName: "group_by", - type: "Array", + "fromTs": { + "baseName": "from_ts", + "type": "number", + "format": "int64", }, - groups: { - baseName: "groups", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - monitors: { - baseName: "monitors", - type: "Array", + "groups": { + "baseName": "groups", + "type": "Array", }, - overall: { - baseName: "overall", - type: "SLOHistorySLIData", + "monitors": { + "baseName": "monitors", + "type": "Array", }, - series: { - baseName: "series", - type: "SLOHistoryMetrics", + "overall": { + "baseName": "overall", + "type": "SLOHistorySLIData", }, - thresholds: { - baseName: "thresholds", - type: "{ [key: string]: SLOThreshold; }", + "series": { + "baseName": "series", + "type": "SLOHistoryMetrics", }, - toTs: { - baseName: "to_ts", - type: "number", - format: "int64", + "thresholds": { + "baseName": "thresholds", + "type": "{ [key: string]: SLOThreshold; }", }, - type: { - baseName: "type", - type: "SLOType", + "toTs": { + "baseName": "to_ts", + "type": "number", + "format": "int64", }, - typeId: { - baseName: "type_id", - type: "SLOTypeNumeric", - format: "int32", + "type": { + "baseName": "type", + "type": "SLOType", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "typeId": { + "baseName": "type_id", + "type": "SLOTypeNumeric", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryResponseError.ts b/packages/datadog-api-client-v1/models/SLOHistoryResponseError.ts index 46ddd35ceb9e..dbff0a699d26 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryResponseError.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryResponseError.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of errors while querying the history data for the service level objective. - */ +*/ export class SLOHistoryResponseError { /** * Human readable error. - */ + */ "error"?: string; /** @@ -31,22 +36,48 @@ export class SLOHistoryResponseError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - error: { - baseName: "error", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "error": { + "baseName": "error", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryResponseError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistoryResponseErrorWithType.ts b/packages/datadog-api-client-v1/models/SLOHistoryResponseErrorWithType.ts index 8211d2327a7d..5a8e0947e2c0 100644 --- a/packages/datadog-api-client-v1/models/SLOHistoryResponseErrorWithType.ts +++ b/packages/datadog-api-client-v1/models/SLOHistoryResponseErrorWithType.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object describing the error with error type and error message. - */ +*/ export class SLOHistoryResponseErrorWithType { /** * A message with more details about the error. - */ + */ "errorMessage": string; /** * Type of the error. - */ + */ "errorType": string; /** @@ -35,28 +40,54 @@ export class SLOHistoryResponseErrorWithType { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errorMessage: { - baseName: "error_message", - type: "string", - required: true, + "errorMessage": { + "baseName": "error_message", + "type": "string", + "required": true, }, - errorType: { - baseName: "error_type", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errorType": { + "baseName": "error_type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistoryResponseErrorWithType.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOHistorySLIData.ts b/packages/datadog-api-client-v1/models/SLOHistorySLIData.ts index 9ac193cbee52..34c6444efa14 100644 --- a/packages/datadog-api-client-v1/models/SLOHistorySLIData.ts +++ b/packages/datadog-api-client-v1/models/SLOHistorySLIData.ts @@ -5,24 +5,29 @@ */ import { SLOHistoryResponseErrorWithType } from "./SLOHistoryResponseErrorWithType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. * This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. - */ +*/ export class SLOHistorySLIData { /** * A mapping of threshold `timeframe` to the remaining error budget. - */ - "errorBudgetRemaining"?: { [key: string]: number }; + */ + "errorBudgetRemaining"?: { [key: string]: number; }; /** * An array of error objects returned while querying the history data for the service level objective. - */ + */ "errors"?: Array; /** * For groups in a grouped SLO, this is the group name. - */ + */ "group"?: string; /** * The state transition history for `monitor` or `time-slice` SLOs. It is represented as @@ -33,40 +38,40 @@ export class SLOHistorySLIData { * either as uptime or downtime depending on monitor settings. See * [SLO documentation](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data) * for detailed information. - */ + */ "history"?: Array<[number, number]>; /** * For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. - */ + */ "monitorModified"?: number; /** * For `monitor` based SLOs, this describes the type of monitor. - */ + */ "monitorType"?: string; /** * For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. - */ + */ "name"?: string; /** * A mapping of threshold `timeframe` to number of accurate decimals, regardless of the from && to timestamp. - */ - "precision"?: { [key: string]: number }; + */ + "precision"?: { [key: string]: number; }; /** * For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime * calculation. - */ + */ "preview"?: boolean; /** * The current SLI value of the SLO over the history window. - */ + */ "sliValue"?: number; /** * The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. - */ + */ "spanPrecision"?: number; /** * Use `sli_value` instead. - */ + */ "uptime"?: number; /** @@ -85,71 +90,97 @@ export class SLOHistorySLIData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errorBudgetRemaining: { - baseName: "error_budget_remaining", - type: "{ [key: string]: number; }", + "errorBudgetRemaining": { + "baseName": "error_budget_remaining", + "type": "{ [key: string]: number; }", }, - errors: { - baseName: "errors", - type: "Array", + "errors": { + "baseName": "errors", + "type": "Array", }, - group: { - baseName: "group", - type: "string", + "group": { + "baseName": "group", + "type": "string", }, - history: { - baseName: "history", - type: "Array<[number, number]>", - format: "double", + "history": { + "baseName": "history", + "type": "Array<[number, number]>", + "format": "double", }, - monitorModified: { - baseName: "monitor_modified", - type: "number", - format: "int64", + "monitorModified": { + "baseName": "monitor_modified", + "type": "number", + "format": "int64", }, - monitorType: { - baseName: "monitor_type", - type: "string", + "monitorType": { + "baseName": "monitor_type", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - precision: { - baseName: "precision", - type: "{ [key: string]: number; }", + "precision": { + "baseName": "precision", + "type": "{ [key: string]: number; }", }, - preview: { - baseName: "preview", - type: "boolean", + "preview": { + "baseName": "preview", + "type": "boolean", }, - sliValue: { - baseName: "sli_value", - type: "number", - format: "double", + "sliValue": { + "baseName": "sli_value", + "type": "number", + "format": "double", }, - spanPrecision: { - baseName: "span_precision", - type: "number", - format: "double", + "spanPrecision": { + "baseName": "span_precision", + "type": "number", + "format": "double", }, - uptime: { - baseName: "uptime", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uptime": { + "baseName": "uptime", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOHistorySLIData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListResponse.ts b/packages/datadog-api-client-v1/models/SLOListResponse.ts index 9547d16f3e32..9dcee0fb05a7 100644 --- a/packages/datadog-api-client-v1/models/SLOListResponse.ts +++ b/packages/datadog-api-client-v1/models/SLOListResponse.ts @@ -6,24 +6,29 @@ import { ServiceLevelObjective } from "./ServiceLevelObjective"; import { SLOListResponseMetadata } from "./SLOListResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A response with one or more service level objective. - */ +*/ export class SLOListResponse { /** * An array of service level objective objects. - */ + */ "data"?: Array; /** * An array of error messages. Each endpoint documents how/whether this field is * used. - */ + */ "errors"?: Array; /** * The metadata object containing additional information about the list of SLOs. - */ + */ "metadata"?: SLOListResponseMetadata; /** @@ -42,30 +47,56 @@ export class SLOListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - errors: { - baseName: "errors", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - metadata: { - baseName: "metadata", - type: "SLOListResponseMetadata", + "errors": { + "baseName": "errors", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metadata": { + "baseName": "metadata", + "type": "SLOListResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListResponseMetadata.ts b/packages/datadog-api-client-v1/models/SLOListResponseMetadata.ts index 8128319c9708..96f640ffef9d 100644 --- a/packages/datadog-api-client-v1/models/SLOListResponseMetadata.ts +++ b/packages/datadog-api-client-v1/models/SLOListResponseMetadata.ts @@ -5,15 +5,20 @@ */ import { SLOListResponseMetadataPage } from "./SLOListResponseMetadataPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata object containing additional information about the list of SLOs. - */ +*/ export class SLOListResponseMetadata { /** * The object containing information about the pages of the list of SLOs. - */ + */ "page"?: SLOListResponseMetadataPage; /** @@ -32,22 +37,48 @@ export class SLOListResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "SLOListResponseMetadataPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "SLOListResponseMetadataPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOListResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListResponseMetadataPage.ts b/packages/datadog-api-client-v1/models/SLOListResponseMetadataPage.ts index cc4f98acdf2e..913667b530aa 100644 --- a/packages/datadog-api-client-v1/models/SLOListResponseMetadataPage.ts +++ b/packages/datadog-api-client-v1/models/SLOListResponseMetadataPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing information about the pages of the list of SLOs. - */ +*/ export class SLOListResponseMetadataPage { /** * The total number of resources that could be retrieved ignoring the parameters and filters in the request. - */ + */ "totalCount"?: number; /** * The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages. - */ + */ "totalFilteredCount"?: number; /** @@ -35,28 +40,54 @@ export class SLOListResponseMetadataPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOListResponseMetadataPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.ts b/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.ts index 12303ca17a7c..44b207e0517d 100644 --- a/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.ts @@ -7,31 +7,36 @@ import { SLOListWidgetDefinitionType } from "./SLOListWidgetDefinitionType"; import { SLOListWidgetRequest } from "./SLOListWidgetRequest"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use the SLO List widget to track your SLOs (Service Level Objectives) on dashboards. - */ +*/ export class SLOListWidgetDefinition { /** * Array of one request object to display in the widget. - */ + */ "requests": [SLOListWidgetRequest]; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the SLO List widget. - */ + */ "type": SLOListWidgetDefinitionType; /** @@ -50,40 +55,66 @@ export class SLOListWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - requests: { - baseName: "requests", - type: "[SLOListWidgetRequest]", - required: true, + "requests": { + "baseName": "requests", + "type": "[SLOListWidgetRequest]", + "required": true, }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "SLOListWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SLOListWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOListWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.ts index 9f6bdeeb77b7..b19e9b40a6e6 100644 --- a/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the SLO List widget. - */ +*/ export type SLOListWidgetDefinitionType = typeof SLO_LIST | UnparsedObject; -export const SLO_LIST = "slo_list"; +export const SLO_LIST = 'slo_list'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOListWidgetQuery.ts b/packages/datadog-api-client-v1/models/SLOListWidgetQuery.ts index 216e28ea725a..0ce1db9ee939 100644 --- a/packages/datadog-api-client-v1/models/SLOListWidgetQuery.ts +++ b/packages/datadog-api-client-v1/models/SLOListWidgetQuery.ts @@ -5,23 +5,28 @@ */ import { WidgetFieldSort } from "./WidgetFieldSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated SLO List widget. - */ +*/ export class SLOListWidgetQuery { /** * Maximum number of results to display in the table. - */ + */ "limit"?: number; /** * Widget query. - */ + */ "queryString": string; /** * Options for sorting results. - */ + */ "sort"?: Array; /** @@ -40,32 +45,58 @@ export class SLOListWidgetQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - limit: { - baseName: "limit", - type: "number", - format: "int64", - }, - queryString: { - baseName: "query_string", - type: "string", - required: true, + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - sort: { - baseName: "sort", - type: "Array", + "queryString": { + "baseName": "query_string", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOListWidgetQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListWidgetRequest.ts b/packages/datadog-api-client-v1/models/SLOListWidgetRequest.ts index f9846fe622a4..9470b8a87d8c 100644 --- a/packages/datadog-api-client-v1/models/SLOListWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/SLOListWidgetRequest.ts @@ -6,19 +6,24 @@ import { SLOListWidgetQuery } from "./SLOListWidgetQuery"; import { SLOListWidgetRequestType } from "./SLOListWidgetRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated SLO List widget. - */ +*/ export class SLOListWidgetRequest { /** * Updated SLO List widget. - */ + */ "query": SLOListWidgetQuery; /** * Widget request type. - */ + */ "requestType": SLOListWidgetRequestType; /** @@ -37,28 +42,54 @@ export class SLOListWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "SLOListWidgetQuery", - required: true, + "query": { + "baseName": "query", + "type": "SLOListWidgetQuery", + "required": true, }, - requestType: { - baseName: "request_type", - type: "SLOListWidgetRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "requestType": { + "baseName": "request_type", + "type": "SLOListWidgetRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOListWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.ts b/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.ts index b8a0fab3809f..d50f7a799262 100644 --- a/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.ts +++ b/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget request type. - */ +*/ export type SLOListWidgetRequestType = typeof SLO_LIST | UnparsedObject; -export const SLO_LIST = "slo_list"; +export const SLO_LIST = 'slo_list'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOOverallStatuses.ts b/packages/datadog-api-client-v1/models/SLOOverallStatuses.ts index a3ec87164bf1..d54210a0df75 100644 --- a/packages/datadog-api-client-v1/models/SLOOverallStatuses.ts +++ b/packages/datadog-api-client-v1/models/SLOOverallStatuses.ts @@ -7,49 +7,54 @@ import { SLORawErrorBudgetRemaining } from "./SLORawErrorBudgetRemaining"; import { SLOState } from "./SLOState"; import { SLOTimeframe } from "./SLOTimeframe"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Overall status of the SLO by timeframes. - */ +*/ export class SLOOverallStatuses { /** * Error message if SLO status or error budget could not be calculated. - */ + */ "error"?: string; /** * Remaining error budget of the SLO in percentage. - */ + */ "errorBudgetRemaining"?: number; /** * timestamp (UNIX time in seconds) of when the SLO status and error budget * were calculated. - */ + */ "indexedAt"?: number; /** * Error budget remaining for an SLO. - */ + */ "rawErrorBudgetRemaining"?: SLORawErrorBudgetRemaining; /** * The amount of decimal places the SLI value is accurate to. - */ + */ "spanPrecision"?: number; /** * State of the SLO. - */ + */ "state"?: SLOState; /** * The status of the SLO. - */ + */ "status"?: number; /** * The target of the SLO. - */ + */ "target"?: number; /** * The SLO time window options. Note that "custom" is not a valid option for creating * or updating SLOs. It is only used when querying SLO history over custom timeframes. - */ + */ "timeframe"?: SLOTimeframe; /** @@ -68,59 +73,85 @@ export class SLOOverallStatuses { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - error: { - baseName: "error", - type: "string", + "error": { + "baseName": "error", + "type": "string", }, - errorBudgetRemaining: { - baseName: "error_budget_remaining", - type: "number", - format: "double", + "errorBudgetRemaining": { + "baseName": "error_budget_remaining", + "type": "number", + "format": "double", }, - indexedAt: { - baseName: "indexed_at", - type: "number", - format: "int64", + "indexedAt": { + "baseName": "indexed_at", + "type": "number", + "format": "int64", }, - rawErrorBudgetRemaining: { - baseName: "raw_error_budget_remaining", - type: "SLORawErrorBudgetRemaining", + "rawErrorBudgetRemaining": { + "baseName": "raw_error_budget_remaining", + "type": "SLORawErrorBudgetRemaining", }, - spanPrecision: { - baseName: "span_precision", - type: "number", - format: "int64", + "spanPrecision": { + "baseName": "span_precision", + "type": "number", + "format": "int64", }, - state: { - baseName: "state", - type: "SLOState", + "state": { + "baseName": "state", + "type": "SLOState", }, - status: { - baseName: "status", - type: "number", - format: "double", + "status": { + "baseName": "status", + "type": "number", + "format": "double", }, - target: { - baseName: "target", - type: "number", - format: "double", + "target": { + "baseName": "target", + "type": "number", + "format": "double", }, - timeframe: { - baseName: "timeframe", - type: "SLOTimeframe", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeframe": { + "baseName": "timeframe", + "type": "SLOTimeframe", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOOverallStatuses.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.ts b/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.ts index a36fb6447523..e02df339775a 100644 --- a/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.ts +++ b/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Error budget remaining for an SLO. - */ +*/ export class SLORawErrorBudgetRemaining { /** * Error budget remaining unit. - */ + */ "unit"?: string; /** * Error budget remaining value. - */ + */ "value"?: number; /** @@ -35,27 +40,53 @@ export class SLORawErrorBudgetRemaining { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - unit: { - baseName: "unit", - type: "string", + "unit": { + "baseName": "unit", + "type": "string", }, - value: { - baseName: "value", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLORawErrorBudgetRemaining.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOResponse.ts b/packages/datadog-api-client-v1/models/SLOResponse.ts index 2f9851405858..03c2ab1cf9f6 100644 --- a/packages/datadog-api-client-v1/models/SLOResponse.ts +++ b/packages/datadog-api-client-v1/models/SLOResponse.ts @@ -5,21 +5,26 @@ */ import { SLOResponseData } from "./SLOResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective response containing a single service level objective. - */ +*/ export class SLOResponse { /** * A service level objective object includes a service level indicator, thresholds * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). - */ + */ "data"?: SLOResponseData; /** * An array of error messages. Each endpoint documents how/whether this field is * used. - */ + */ "errors"?: Array; /** @@ -38,26 +43,52 @@ export class SLOResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOResponseData", + "data": { + "baseName": "data", + "type": "SLOResponseData", }, - errors: { - baseName: "errors", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOResponseData.ts b/packages/datadog-api-client-v1/models/SLOResponseData.ts index 0e62c78a7a48..fb33ecb4adf4 100644 --- a/packages/datadog-api-client-v1/models/SLOResponseData.ts +++ b/packages/datadog-api-client-v1/models/SLOResponseData.ts @@ -10,58 +10,63 @@ import { SLOThreshold } from "./SLOThreshold"; import { SLOTimeframe } from "./SLOTimeframe"; import { SLOType } from "./SLOType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective object includes a service level indicator, thresholds * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). - */ +*/ export class SLOResponseData { /** * A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. - */ + */ "configuredAlertIds"?: Array; /** * Creation timestamp (UNIX time in seconds) - * + * * Always included in service level objective responses. - */ + */ "createdAt"?: number; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * A user-defined description of the service level objective. - * + * * Always included in service level objective responses (but may be `null`). * Optional in create/update requests. - */ + */ "description"?: string; /** * A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. - * + * * Included in service level objective responses if it is not empty. Optional in * create/update requests for monitor service level objectives, but may only be * used when then length of the `monitor_ids` field is one. - */ + */ "groups"?: Array; /** * A unique identifier for the service level objective object. - * + * * Always included in service level objective responses. - */ + */ "id"?: string; /** * Modification timestamp (UNIX time in seconds) - * + * * Always included in service level objective responses. - */ + */ "modifiedAt"?: number; /** * A list of monitor ids that defines the scope of a monitor service level * objective. **Required if type is `monitor`**. - */ + */ "monitorIds"?: Array; /** * The union of monitor tags for all monitors referenced by the `monitor_ids` @@ -70,53 +75,53 @@ export class SLOResponseData { * objectives (but may be empty). Ignored in create/update requests. Does not * affect which monitors are included in the service level objective (that is * determined entirely by the `monitor_ids` field). - */ + */ "monitorTags"?: Array; /** * The name of the service level objective object. - */ + */ "name"?: string; /** * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator * to be used because this will sum up all request counts instead of averaging them, or taking the max or * min of all of those requests. - */ + */ "query"?: ServiceLevelObjectiveQuery; /** * A generic SLI specification. This is currently used for time-slice SLOs only. - */ + */ "sliSpecification"?: SLOSliSpec; /** * A list of tags associated with this service level objective. * Always included in service level objective responses (but may be empty). * Optional in create/update requests. - */ + */ "tags"?: Array; /** * The target threshold such that when the service level indicator is above this * threshold over the given timeframe, the objective is being met. - */ + */ "targetThreshold"?: number; /** * The thresholds (timeframes and associated targets) for this service level * objective object. - */ + */ "thresholds"?: Array; /** * The SLO time window options. Note that "custom" is not a valid option for creating * or updating SLOs. It is only used when querying SLO history over custom timeframes. - */ + */ "timeframe"?: SLOTimeframe; /** * The type of the service level objective. - */ + */ "type"?: SLOType; /** * The optional warning threshold such that when the service level indicator is * below this value for the given threshold, but above the target threshold, the * objective appears in a "warning" state. This value must be greater than the target * threshold. - */ + */ "warningThreshold"?: number; /** @@ -135,96 +140,122 @@ export class SLOResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - configuredAlertIds: { - baseName: "configured_alert_ids", - type: "Array", - format: "int64", - }, - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", - }, - creator: { - baseName: "creator", - type: "Creator", - }, - description: { - baseName: "description", - type: "string", - }, - groups: { - baseName: "groups", - type: "Array", - }, - id: { - baseName: "id", - type: "string", - }, - modifiedAt: { - baseName: "modified_at", - type: "number", - format: "int64", - }, - monitorIds: { - baseName: "monitor_ids", - type: "Array", - format: "int64", - }, - monitorTags: { - baseName: "monitor_tags", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - }, - query: { - baseName: "query", - type: "ServiceLevelObjectiveQuery", - }, - sliSpecification: { - baseName: "sli_specification", - type: "SLOSliSpec", - }, - tags: { - baseName: "tags", - type: "Array", - }, - targetThreshold: { - baseName: "target_threshold", - type: "number", - format: "double", - }, - thresholds: { - baseName: "thresholds", - type: "Array", - }, - timeframe: { - baseName: "timeframe", - type: "SLOTimeframe", - }, - type: { - baseName: "type", - type: "SLOType", - }, - warningThreshold: { - baseName: "warning_threshold", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "configuredAlertIds": { + "baseName": "configured_alert_ids", + "type": "Array", + "format": "int64", + }, + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", + }, + "creator": { + "baseName": "creator", + "type": "Creator", + }, + "description": { + "baseName": "description", + "type": "string", + }, + "groups": { + "baseName": "groups", + "type": "Array", + }, + "id": { + "baseName": "id", + "type": "string", + }, + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "format": "int64", + }, + "monitorIds": { + "baseName": "monitor_ids", + "type": "Array", + "format": "int64", + }, + "monitorTags": { + "baseName": "monitor_tags", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "query": { + "baseName": "query", + "type": "ServiceLevelObjectiveQuery", }, + "sliSpecification": { + "baseName": "sli_specification", + "type": "SLOSliSpec", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "targetThreshold": { + "baseName": "target_threshold", + "type": "number", + "format": "double", + }, + "thresholds": { + "baseName": "thresholds", + "type": "Array", + }, + "timeframe": { + "baseName": "timeframe", + "type": "SLOTimeframe", + }, + "type": { + "baseName": "type", + "type": "SLOType", + }, + "warningThreshold": { + "baseName": "warning_threshold", + "type": "number", + "format": "double", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOSliSpec.ts b/packages/datadog-api-client-v1/models/SLOSliSpec.ts index f8b2d08b3ef1..27487bc4f425 100644 --- a/packages/datadog-api-client-v1/models/SLOSliSpec.ts +++ b/packages/datadog-api-client-v1/models/SLOSliSpec.ts @@ -5,10 +5,15 @@ */ import { SLOTimeSliceSpec } from "./SLOTimeSliceSpec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A generic SLI specification. This is currently used for time-slice SLOs only. - */ +*/ -export type SLOSliSpec = SLOTimeSliceSpec | UnparsedObject; +export type SLOSliSpec = SLOTimeSliceSpec | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOState.ts b/packages/datadog-api-client-v1/models/SLOState.ts index 22c5ed8a0286..6bae0dbac893 100644 --- a/packages/datadog-api-client-v1/models/SLOState.ts +++ b/packages/datadog-api-client-v1/models/SLOState.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * State of the SLO. - */ +*/ -export type SLOState = - | typeof BREACHED - | typeof WARNING - | typeof OK - | typeof NO_DATA - | UnparsedObject; -export const BREACHED = "breached"; -export const WARNING = "warning"; -export const OK = "ok"; -export const NO_DATA = "no_data"; +export type SLOState = typeof BREACHED| typeof WARNING| typeof OK| typeof NO_DATA | UnparsedObject; +export const BREACHED = 'breached'; +export const WARNING = 'warning'; +export const OK = 'ok'; +export const NO_DATA = 'no_data'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOStatus.ts b/packages/datadog-api-client-v1/models/SLOStatus.ts index 3c36f9fe0bbf..7ded67322428 100644 --- a/packages/datadog-api-client-v1/models/SLOStatus.ts +++ b/packages/datadog-api-client-v1/models/SLOStatus.ts @@ -6,40 +6,45 @@ import { SLORawErrorBudgetRemaining } from "./SLORawErrorBudgetRemaining"; import { SLOState } from "./SLOState"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Status of the SLO's primary timeframe. - */ +*/ export class SLOStatus { /** * Error message if SLO status or error budget could not be calculated. - */ + */ "calculationError"?: string; /** * Remaining error budget of the SLO in percentage. - */ + */ "errorBudgetRemaining"?: number; /** * timestamp (UNIX time in seconds) of when the SLO status and error budget * were calculated. - */ + */ "indexedAt"?: number; /** * Error budget remaining for an SLO. - */ + */ "rawErrorBudgetRemaining"?: SLORawErrorBudgetRemaining; /** * The current service level indicator (SLI) of the SLO, also known as 'status'. This is a percentage value from 0-100 (inclusive). - */ + */ "sli"?: number; /** * The number of decimal places the SLI value is accurate to. - */ + */ "spanPrecision"?: number; /** * State of the SLO. - */ + */ "state"?: SLOState; /** @@ -58,50 +63,76 @@ export class SLOStatus { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - calculationError: { - baseName: "calculation_error", - type: "string", - }, - errorBudgetRemaining: { - baseName: "error_budget_remaining", - type: "number", - format: "double", + "calculationError": { + "baseName": "calculation_error", + "type": "string", }, - indexedAt: { - baseName: "indexed_at", - type: "number", - format: "int64", + "errorBudgetRemaining": { + "baseName": "error_budget_remaining", + "type": "number", + "format": "double", }, - rawErrorBudgetRemaining: { - baseName: "raw_error_budget_remaining", - type: "SLORawErrorBudgetRemaining", + "indexedAt": { + "baseName": "indexed_at", + "type": "number", + "format": "int64", }, - sli: { - baseName: "sli", - type: "number", - format: "double", + "rawErrorBudgetRemaining": { + "baseName": "raw_error_budget_remaining", + "type": "SLORawErrorBudgetRemaining", }, - spanPrecision: { - baseName: "span_precision", - type: "number", - format: "int64", + "sli": { + "baseName": "sli", + "type": "number", + "format": "double", }, - state: { - baseName: "state", - type: "SLOState", + "spanPrecision": { + "baseName": "span_precision", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "state": { + "baseName": "state", + "type": "SLOState", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOStatus.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOThreshold.ts b/packages/datadog-api-client-v1/models/SLOThreshold.ts index f72f0f91d7c5..45e976e400a5 100644 --- a/packages/datadog-api-client-v1/models/SLOThreshold.ts +++ b/packages/datadog-api-client-v1/models/SLOThreshold.ts @@ -5,41 +5,46 @@ */ import { SLOTimeframe } from "./SLOTimeframe"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * SLO thresholds (target and optionally warning) for a single time window. - */ +*/ export class SLOThreshold { /** * The target value for the service level indicator within the corresponding * timeframe. - */ + */ "target": number; /** * A string representation of the target that indicates its precision. * It uses trailing zeros to show significant decimal places (for example `98.00`). - * + * * Always included in service level objective responses. Ignored in * create/update requests. - */ + */ "targetDisplay"?: string; /** * The SLO time window options. Note that "custom" is not a valid option for creating * or updating SLOs. It is only used when querying SLO history over custom timeframes. - */ + */ "timeframe": SLOTimeframe; /** * The warning value for the service level objective. - */ + */ "warning"?: number; /** * A string representation of the warning target (see the description of * the `target_display` field for details). - * + * * Included in service level objective responses if a warning target exists. * Ignored in create/update requests. - */ + */ "warningDisplay"?: string; /** @@ -58,42 +63,68 @@ export class SLOThreshold { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - target: { - baseName: "target", - type: "number", - required: true, - format: "double", + "target": { + "baseName": "target", + "type": "number", + "required": true, + "format": "double", }, - targetDisplay: { - baseName: "target_display", - type: "string", + "targetDisplay": { + "baseName": "target_display", + "type": "string", }, - timeframe: { - baseName: "timeframe", - type: "SLOTimeframe", - required: true, + "timeframe": { + "baseName": "timeframe", + "type": "SLOTimeframe", + "required": true, }, - warning: { - baseName: "warning", - type: "number", - format: "double", + "warning": { + "baseName": "warning", + "type": "number", + "format": "double", }, - warningDisplay: { - baseName: "warning_display", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warningDisplay": { + "baseName": "warning_display", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOThreshold.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOTimeSliceComparator.ts b/packages/datadog-api-client-v1/models/SLOTimeSliceComparator.ts index fc6f6140aea6..dd4c242e8fe5 100644 --- a/packages/datadog-api-client-v1/models/SLOTimeSliceComparator.ts +++ b/packages/datadog-api-client-v1/models/SLOTimeSliceComparator.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The comparator used to compare the SLI value to the threshold. - */ +*/ -export type SLOTimeSliceComparator = - | typeof GREATER - | typeof GREATER_EQUAL - | typeof LESS - | typeof LESS_EQUAL - | UnparsedObject; -export const GREATER = ">"; -export const GREATER_EQUAL = ">="; -export const LESS = "<"; -export const LESS_EQUAL = "<="; +export type SLOTimeSliceComparator = typeof GREATER| typeof GREATER_EQUAL| typeof LESS| typeof LESS_EQUAL | UnparsedObject; +export const GREATER = '>'; +export const GREATER_EQUAL = '>='; +export const LESS = '<'; +export const LESS_EQUAL = '<='; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOTimeSliceCondition.ts b/packages/datadog-api-client-v1/models/SLOTimeSliceCondition.ts index 3a568d68faea..c550467ba7f3 100644 --- a/packages/datadog-api-client-v1/models/SLOTimeSliceCondition.ts +++ b/packages/datadog-api-client-v1/models/SLOTimeSliceCondition.ts @@ -7,30 +7,35 @@ import { SLOTimeSliceComparator } from "./SLOTimeSliceComparator"; import { SLOTimeSliceInterval } from "./SLOTimeSliceInterval"; import { SLOTimeSliceQuery } from "./SLOTimeSliceQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator, * and 3. the threshold. Optionally, a fourth part, the query interval, can be provided. - */ +*/ export class SLOTimeSliceCondition { /** * The comparator used to compare the SLI value to the threshold. - */ + */ "comparator": SLOTimeSliceComparator; /** * The queries and formula used to calculate the SLI value. - */ + */ "query": SLOTimeSliceQuery; /** * The interval used when querying data, which defines the size of a time slice. * Two values are allowed: 60 (1 minute) and 300 (5 minutes). * If not provided, the value defaults to 300 (5 minutes). - */ + */ "queryIntervalSeconds"?: SLOTimeSliceInterval; /** * The threshold value to which each SLI value will be compared. - */ + */ "threshold": number; /** @@ -49,39 +54,65 @@ export class SLOTimeSliceCondition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - comparator: { - baseName: "comparator", - type: "SLOTimeSliceComparator", - required: true, + "comparator": { + "baseName": "comparator", + "type": "SLOTimeSliceComparator", + "required": true, }, - query: { - baseName: "query", - type: "SLOTimeSliceQuery", - required: true, + "query": { + "baseName": "query", + "type": "SLOTimeSliceQuery", + "required": true, }, - queryIntervalSeconds: { - baseName: "query_interval_seconds", - type: "SLOTimeSliceInterval", - format: "int32", + "queryIntervalSeconds": { + "baseName": "query_interval_seconds", + "type": "SLOTimeSliceInterval", + "format": "int32", }, - threshold: { - baseName: "threshold", - type: "number", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "threshold": { + "baseName": "threshold", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOTimeSliceCondition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOTimeSliceInterval.ts b/packages/datadog-api-client-v1/models/SLOTimeSliceInterval.ts index 928f23165389..43852cb05407 100644 --- a/packages/datadog-api-client-v1/models/SLOTimeSliceInterval.ts +++ b/packages/datadog-api-client-v1/models/SLOTimeSliceInterval.ts @@ -4,17 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The interval used when querying data, which defines the size of a time slice. * Two values are allowed: 60 (1 minute) and 300 (5 minutes). * If not provided, the value defaults to 300 (5 minutes). - */ +*/ -export type SLOTimeSliceInterval = - | typeof ONE_MINUTE - | typeof FIVE_MINUTES - | UnparsedObject; +export type SLOTimeSliceInterval = typeof ONE_MINUTE| typeof FIVE_MINUTES | UnparsedObject; export const ONE_MINUTE = 60; -export const FIVE_MINUTES = 300; +export const FIVE_MINUTES = 300; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOTimeSliceQuery.ts b/packages/datadog-api-client-v1/models/SLOTimeSliceQuery.ts index f850b2e34373..68358e78f86e 100644 --- a/packages/datadog-api-client-v1/models/SLOTimeSliceQuery.ts +++ b/packages/datadog-api-client-v1/models/SLOTimeSliceQuery.ts @@ -6,19 +6,24 @@ import { SLODataSourceQueryDefinition } from "./SLODataSourceQueryDefinition"; import { SLOFormula } from "./SLOFormula"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The queries and formula used to calculate the SLI value. - */ +*/ export class SLOTimeSliceQuery { /** * A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO. - */ + */ "formulas": [SLOFormula]; /** * A list of queries that are used to calculate the SLI value. - */ + */ "queries": Array; /** @@ -37,28 +42,54 @@ export class SLOTimeSliceQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formulas: { - baseName: "formulas", - type: "[SLOFormula]", - required: true, + "formulas": { + "baseName": "formulas", + "type": "[SLOFormula]", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOTimeSliceQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOTimeSliceSpec.ts b/packages/datadog-api-client-v1/models/SLOTimeSliceSpec.ts index 7930896f8edf..7c9646daa7c6 100644 --- a/packages/datadog-api-client-v1/models/SLOTimeSliceSpec.ts +++ b/packages/datadog-api-client-v1/models/SLOTimeSliceSpec.ts @@ -5,16 +5,21 @@ */ import { SLOTimeSliceCondition } from "./SLOTimeSliceCondition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A time-slice SLI specification. - */ +*/ export class SLOTimeSliceSpec { /** * The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator, * and 3. the threshold. Optionally, a fourth part, the query interval, can be provided. - */ + */ "timeSlice": SLOTimeSliceCondition; /** @@ -26,19 +31,45 @@ export class SLOTimeSliceSpec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeSlice: { - baseName: "time_slice", - type: "SLOTimeSliceCondition", - required: true, - }, + "timeSlice": { + "baseName": "time_slice", + "type": "SLOTimeSliceCondition", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOTimeSliceSpec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOTimeframe.ts b/packages/datadog-api-client-v1/models/SLOTimeframe.ts index 63a1d5f754fb..f45d602c5f21 100644 --- a/packages/datadog-api-client-v1/models/SLOTimeframe.ts +++ b/packages/datadog-api-client-v1/models/SLOTimeframe.ts @@ -4,20 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The SLO time window options. Note that "custom" is not a valid option for creating * or updating SLOs. It is only used when querying SLO history over custom timeframes. - */ +*/ -export type SLOTimeframe = - | typeof SEVEN_DAYS - | typeof THIRTY_DAYS - | typeof NINETY_DAYS - | typeof CUSTOM - | UnparsedObject; -export const SEVEN_DAYS = "7d"; -export const THIRTY_DAYS = "30d"; -export const NINETY_DAYS = "90d"; -export const CUSTOM = "custom"; +export type SLOTimeframe = typeof SEVEN_DAYS| typeof THIRTY_DAYS| typeof NINETY_DAYS| typeof CUSTOM | UnparsedObject; +export const SEVEN_DAYS = '7d'; +export const THIRTY_DAYS = '30d'; +export const NINETY_DAYS = '90d'; +export const CUSTOM = 'custom'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOType.ts b/packages/datadog-api-client-v1/models/SLOType.ts index 22a51348a946..d0dbe1f032e0 100644 --- a/packages/datadog-api-client-v1/models/SLOType.ts +++ b/packages/datadog-api-client-v1/models/SLOType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the service level objective. - */ +*/ -export type SLOType = - | typeof METRIC - | typeof MONITOR - | typeof TIME_SLICE - | UnparsedObject; -export const METRIC = "metric"; -export const MONITOR = "monitor"; -export const TIME_SLICE = "time_slice"; +export type SLOType = typeof METRIC| typeof MONITOR| typeof TIME_SLICE | UnparsedObject; +export const METRIC = 'metric'; +export const MONITOR = 'monitor'; +export const TIME_SLICE = 'time_slice'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOTypeNumeric.ts b/packages/datadog-api-client-v1/models/SLOTypeNumeric.ts index edc316161f37..c6d194db7a4d 100644 --- a/packages/datadog-api-client-v1/models/SLOTypeNumeric.ts +++ b/packages/datadog-api-client-v1/models/SLOTypeNumeric.ts @@ -4,19 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A numeric representation of the type of the service level objective (`0` for * monitor, `1` for metric). Always included in service level objective responses. * Ignored in create/update requests. - */ +*/ -export type SLOTypeNumeric = - | typeof MONITOR - | typeof METRIC - | typeof TIME_SLICE - | UnparsedObject; +export type SLOTypeNumeric = typeof MONITOR| typeof METRIC| typeof TIME_SLICE | UnparsedObject; export const MONITOR = 0; export const METRIC = 1; -export const TIME_SLICE = 2; +export const TIME_SLICE = 2; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SLOWidgetDefinition.ts b/packages/datadog-api-client-v1/models/SLOWidgetDefinition.ts index 82847056295c..b7a0d39026ba 100644 --- a/packages/datadog-api-client-v1/models/SLOWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/SLOWidgetDefinition.ts @@ -8,55 +8,60 @@ import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTimeWindows } from "./WidgetTimeWindows"; import { WidgetViewMode } from "./WidgetViewMode"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on screenboards and timeboards. - */ +*/ export class SLOWidgetDefinition { /** * Additional filters applied to the SLO query. - */ + */ "additionalQueryFilters"?: string; /** * Defined global time target. - */ + */ "globalTimeTarget"?: string; /** * Defined error budget. - */ + */ "showErrorBudget"?: boolean; /** * ID of the SLO displayed. - */ + */ "sloId"?: string; /** * Times being monitored. - */ + */ "timeWindows"?: Array; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the SLO widget. - */ + */ "type": SLOWidgetDefinitionType; /** * Define how you want the SLO to be displayed. - */ + */ "viewMode"?: WidgetViewMode; /** * Type of view displayed by the widget. - */ + */ "viewType": string; /** @@ -75,64 +80,90 @@ export class SLOWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - additionalQueryFilters: { - baseName: "additional_query_filters", - type: "string", - }, - globalTimeTarget: { - baseName: "global_time_target", - type: "string", + "additionalQueryFilters": { + "baseName": "additional_query_filters", + "type": "string", }, - showErrorBudget: { - baseName: "show_error_budget", - type: "boolean", + "globalTimeTarget": { + "baseName": "global_time_target", + "type": "string", }, - sloId: { - baseName: "slo_id", - type: "string", + "showErrorBudget": { + "baseName": "show_error_budget", + "type": "boolean", }, - timeWindows: { - baseName: "time_windows", - type: "Array", + "sloId": { + "baseName": "slo_id", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "timeWindows": { + "baseName": "time_windows", + "type": "Array", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "SLOWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - viewMode: { - baseName: "view_mode", - type: "WidgetViewMode", + "type": { + "baseName": "type", + "type": "SLOWidgetDefinitionType", + "required": true, }, - viewType: { - baseName: "view_type", - type: "string", - required: true, + "viewMode": { + "baseName": "view_mode", + "type": "WidgetViewMode", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "viewType": { + "baseName": "view_type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SLOWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/SLOWidgetDefinitionType.ts index 7e44f2662d9f..5087ae287bf8 100644 --- a/packages/datadog-api-client-v1/models/SLOWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/SLOWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the SLO widget. - */ +*/ export type SLOWidgetDefinitionType = typeof SLO | UnparsedObject; -export const SLO = "slo"; +export const SLO = 'slo'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ScatterPlotRequest.ts b/packages/datadog-api-client-v1/models/ScatterPlotRequest.ts index 4781b176e948..178a0529bc26 100644 --- a/packages/datadog-api-client-v1/models/ScatterPlotRequest.ts +++ b/packages/datadog-api-client-v1/models/ScatterPlotRequest.ts @@ -7,51 +7,56 @@ import { LogQueryDefinition } from "./LogQueryDefinition"; import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; import { ScatterplotWidgetAggregator } from "./ScatterplotWidgetAggregator"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated scatter plot. - */ +*/ export class ScatterPlotRequest { /** * Aggregator used for the request. - */ + */ "aggregator"?: ScatterplotWidgetAggregator; /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Query definition. - */ + */ "q"?: string; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** @@ -70,58 +75,84 @@ export class ScatterPlotRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "ScatterplotWidgetAggregator", - }, - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", + "aggregator": { + "baseName": "aggregator", + "type": "ScatterplotWidgetAggregator", }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", }, - q: { - baseName: "q", - type: "string", + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "q": { + "baseName": "q", + "type": "string", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScatterPlotRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinition.ts index d8f96c92b2b7..641a691aa590 100644 --- a/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinition.ts @@ -10,51 +10,56 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The scatter plot visualization allows you to graph a chosen scope over two different metrics with their respective aggregation. - */ +*/ export class ScatterPlotWidgetDefinition { /** * List of groups used for colors. - */ + */ "colorByGroups"?: Array; /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Widget definition. - */ + */ "requests": ScatterPlotWidgetDefinitionRequests; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the scatter plot widget. - */ + */ "type": ScatterPlotWidgetDefinitionType; /** * Axis controls for the widget. - */ + */ "xaxis"?: WidgetAxis; /** * Axis controls for the widget. - */ + */ "yaxis"?: WidgetAxis; /** @@ -73,60 +78,86 @@ export class ScatterPlotWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - colorByGroups: { - baseName: "color_by_groups", - type: "Array", - }, - customLinks: { - baseName: "custom_links", - type: "Array", + "colorByGroups": { + "baseName": "color_by_groups", + "type": "Array", }, - requests: { - baseName: "requests", - type: "ScatterPlotWidgetDefinitionRequests", - required: true, + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - time: { - baseName: "time", - type: "WidgetTime", + "requests": { + "baseName": "requests", + "type": "ScatterPlotWidgetDefinitionRequests", + "required": true, }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "ScatterPlotWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - xaxis: { - baseName: "xaxis", - type: "WidgetAxis", + "type": { + "baseName": "type", + "type": "ScatterPlotWidgetDefinitionType", + "required": true, }, - yaxis: { - baseName: "yaxis", - type: "WidgetAxis", + "xaxis": { + "baseName": "xaxis", + "type": "WidgetAxis", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "yaxis": { + "baseName": "yaxis", + "type": "WidgetAxis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScatterPlotWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionRequests.ts b/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionRequests.ts index 1603828f7d6a..fd61e38e6870 100644 --- a/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionRequests.ts +++ b/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionRequests.ts @@ -6,23 +6,28 @@ import { ScatterPlotRequest } from "./ScatterPlotRequest"; import { ScatterplotTableRequest } from "./ScatterplotTableRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Widget definition. - */ +*/ export class ScatterPlotWidgetDefinitionRequests { /** * Scatterplot request containing formulas and functions. - */ + */ "table"?: ScatterplotTableRequest; /** * Updated scatter plot. - */ + */ "x"?: ScatterPlotRequest; /** * Updated scatter plot. - */ + */ "y"?: ScatterPlotRequest; /** @@ -41,30 +46,56 @@ export class ScatterPlotWidgetDefinitionRequests { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - table: { - baseName: "table", - type: "ScatterplotTableRequest", - }, - x: { - baseName: "x", - type: "ScatterPlotRequest", + "table": { + "baseName": "table", + "type": "ScatterplotTableRequest", }, - y: { - baseName: "y", - type: "ScatterPlotRequest", + "x": { + "baseName": "x", + "type": "ScatterPlotRequest", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "ScatterPlotRequest", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScatterPlotWidgetDefinitionRequests.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionType.ts index fc9a115fc865..9b53177a4fa1 100644 --- a/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ScatterPlotWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the scatter plot widget. - */ +*/ -export type ScatterPlotWidgetDefinitionType = - | typeof SCATTERPLOT - | UnparsedObject; -export const SCATTERPLOT = "scatterplot"; +export type ScatterPlotWidgetDefinitionType = typeof SCATTERPLOT | UnparsedObject; +export const SCATTERPLOT = 'scatterplot'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ScatterplotDimension.ts b/packages/datadog-api-client-v1/models/ScatterplotDimension.ts index ffb06b523788..16245978a1be 100644 --- a/packages/datadog-api-client-v1/models/ScatterplotDimension.ts +++ b/packages/datadog-api-client-v1/models/ScatterplotDimension.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Dimension of the Scatterplot. - */ +*/ -export type ScatterplotDimension = - | typeof X - | typeof Y - | typeof RADIUS - | typeof COLOR - | UnparsedObject; -export const X = "x"; -export const Y = "y"; -export const RADIUS = "radius"; -export const COLOR = "color"; +export type ScatterplotDimension = typeof X| typeof Y| typeof RADIUS| typeof COLOR | UnparsedObject; +export const X = 'x'; +export const Y = 'y'; +export const RADIUS = 'radius'; +export const COLOR = 'color'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ScatterplotTableRequest.ts b/packages/datadog-api-client-v1/models/ScatterplotTableRequest.ts index 228af0ed5af0..89b848f50f0f 100644 --- a/packages/datadog-api-client-v1/models/ScatterplotTableRequest.ts +++ b/packages/datadog-api-client-v1/models/ScatterplotTableRequest.ts @@ -7,23 +7,28 @@ import { FormulaAndFunctionQueryDefinition } from "./FormulaAndFunctionQueryDefi import { FormulaAndFunctionResponseFormat } from "./FormulaAndFunctionResponseFormat"; import { ScatterplotWidgetFormula } from "./ScatterplotWidgetFormula"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scatterplot request containing formulas and functions. - */ +*/ export class ScatterplotTableRequest { /** * List of Scatterplot formulas that operate on queries. - */ + */ "formulas"?: Array; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** @@ -42,30 +47,56 @@ export class ScatterplotTableRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formulas: { - baseName: "formulas", - type: "Array", - }, - queries: { - baseName: "queries", - type: "Array", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", + "queries": { + "baseName": "queries", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScatterplotTableRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ScatterplotWidgetAggregator.ts b/packages/datadog-api-client-v1/models/ScatterplotWidgetAggregator.ts index 1af2821f47c5..294c5e41757f 100644 --- a/packages/datadog-api-client-v1/models/ScatterplotWidgetAggregator.ts +++ b/packages/datadog-api-client-v1/models/ScatterplotWidgetAggregator.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Aggregator used for the request. - */ +*/ -export type ScatterplotWidgetAggregator = - | typeof AVERAGE - | typeof LAST - | typeof MAXIMUM - | typeof MINIMUM - | typeof SUM - | UnparsedObject; -export const AVERAGE = "avg"; -export const LAST = "last"; -export const MAXIMUM = "max"; -export const MINIMUM = "min"; -export const SUM = "sum"; +export type ScatterplotWidgetAggregator = typeof AVERAGE| typeof LAST| typeof MAXIMUM| typeof MINIMUM| typeof SUM | UnparsedObject; +export const AVERAGE = 'avg'; +export const LAST = 'last'; +export const MAXIMUM = 'max'; +export const MINIMUM = 'min'; +export const SUM = 'sum'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ScatterplotWidgetFormula.ts b/packages/datadog-api-client-v1/models/ScatterplotWidgetFormula.ts index d964000b715c..0c97c99a7113 100644 --- a/packages/datadog-api-client-v1/models/ScatterplotWidgetFormula.ts +++ b/packages/datadog-api-client-v1/models/ScatterplotWidgetFormula.ts @@ -5,23 +5,28 @@ */ import { ScatterplotDimension } from "./ScatterplotDimension"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Formula to be used in a Scatterplot widget query. - */ +*/ export class ScatterplotWidgetFormula { /** * Expression alias. - */ + */ "alias"?: string; /** * Dimension of the Scatterplot. - */ + */ "dimension": ScatterplotDimension; /** * String expression built from queries, formulas, and functions. - */ + */ "formula": string; /** @@ -40,32 +45,58 @@ export class ScatterplotWidgetFormula { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alias: { - baseName: "alias", - type: "string", - }, - dimension: { - baseName: "dimension", - type: "ScatterplotDimension", - required: true, + "alias": { + "baseName": "alias", + "type": "string", }, - formula: { - baseName: "formula", - type: "string", - required: true, + "dimension": { + "baseName": "dimension", + "type": "ScatterplotDimension", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "formula": { + "baseName": "formula", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScatterplotWidgetFormula.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOQuery.ts b/packages/datadog-api-client-v1/models/SearchSLOQuery.ts index bd4857e4735e..b99173905ea3 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOQuery.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOQuery.ts @@ -4,26 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator * to be used because this will sum up all request counts instead of averaging them, or taking the max or * min of all of those requests. - */ +*/ export class SearchSLOQuery { /** * A Datadog metric query for total (valid) events. - */ + */ "denominator"?: string; /** * Metric names used in the query's numerator and denominator. * This field will return null and will be implemented in the next version of this endpoint. - */ + */ "metrics"?: Array; /** * A Datadog metric query for good events. - */ + */ "numerator"?: string; /** @@ -42,30 +47,56 @@ export class SearchSLOQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - denominator: { - baseName: "denominator", - type: "string", - }, - metrics: { - baseName: "metrics", - type: "Array", + "denominator": { + "baseName": "denominator", + "type": "string", }, - numerator: { - baseName: "numerator", - type: "string", + "metrics": { + "baseName": "metrics", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "numerator": { + "baseName": "numerator", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponse.ts b/packages/datadog-api-client-v1/models/SearchSLOResponse.ts index b7fdb9f7bbb7..9cc27a3d51c0 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponse.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponse.ts @@ -7,23 +7,28 @@ import { SearchSLOResponseData } from "./SearchSLOResponseData"; import { SearchSLOResponseLinks } from "./SearchSLOResponseLinks"; import { SearchSLOResponseMeta } from "./SearchSLOResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A search SLO response containing results from the search query. - */ +*/ export class SearchSLOResponse { /** * Data from search SLO response. - */ + */ "data"?: SearchSLOResponseData; /** * Pagination links. - */ + */ "links"?: SearchSLOResponseLinks; /** * Searches metadata returned by the API. - */ + */ "meta"?: SearchSLOResponseMeta; /** @@ -42,30 +47,56 @@ export class SearchSLOResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SearchSLOResponseData", - }, - links: { - baseName: "links", - type: "SearchSLOResponseLinks", + "data": { + "baseName": "data", + "type": "SearchSLOResponseData", }, - meta: { - baseName: "meta", - type: "SearchSLOResponseMeta", + "links": { + "baseName": "links", + "type": "SearchSLOResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SearchSLOResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseData.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseData.ts index 36991be34cb2..441726909a91 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseData.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseData.ts @@ -5,19 +5,24 @@ */ import { SearchSLOResponseDataAttributes } from "./SearchSLOResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data from search SLO response. - */ +*/ export class SearchSLOResponseData { /** * Attributes - */ + */ "attributes"?: SearchSLOResponseDataAttributes; /** * Type of service level objective result. - */ + */ "type"?: string; /** @@ -36,26 +41,52 @@ export class SearchSLOResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SearchSLOResponseDataAttributes", + "attributes": { + "baseName": "attributes", + "type": "SearchSLOResponseDataAttributes", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.ts index fa1b5c51eeb9..d4796aec0398 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.ts @@ -6,19 +6,24 @@ import { SearchServiceLevelObjective } from "./SearchServiceLevelObjective"; import { SearchSLOResponseDataAttributesFacets } from "./SearchSLOResponseDataAttributesFacets"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes - */ +*/ export class SearchSLOResponseDataAttributes { /** * Facets - */ + */ "facets"?: SearchSLOResponseDataAttributesFacets; /** * SLOs - */ + */ "slos"?: Array; /** @@ -37,26 +42,52 @@ export class SearchSLOResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facets: { - baseName: "facets", - type: "SearchSLOResponseDataAttributesFacets", + "facets": { + "baseName": "facets", + "type": "SearchSLOResponseDataAttributesFacets", }, - slos: { - baseName: "slos", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "slos": { + "baseName": "slos", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.ts index b8d262a73666..0ae1ad2eea6f 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.ts @@ -6,43 +6,48 @@ import { SearchSLOResponseDataAttributesFacetsObjectInt } from "./SearchSLOResponseDataAttributesFacetsObjectInt"; import { SearchSLOResponseDataAttributesFacetsObjectString } from "./SearchSLOResponseDataAttributesFacetsObjectString"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facets - */ +*/ export class SearchSLOResponseDataAttributesFacets { /** * All tags associated with an SLO. - */ + */ "allTags"?: Array; /** * Creator of an SLO. - */ + */ "creatorName"?: Array; /** * Tags with the `env` tag key. - */ + */ "envTags"?: Array; /** * Tags with the `service` tag key. - */ + */ "serviceTags"?: Array; /** * Type of SLO. - */ + */ "sloType"?: Array; /** * SLO Target - */ + */ "target"?: Array; /** * Tags with the `team` tag key. - */ + */ "teamTags"?: Array; /** * Timeframes of SLOs. - */ + */ "timeframe"?: Array; /** @@ -61,50 +66,76 @@ export class SearchSLOResponseDataAttributesFacets { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allTags: { - baseName: "all_tags", - type: "Array", + "allTags": { + "baseName": "all_tags", + "type": "Array", }, - creatorName: { - baseName: "creator_name", - type: "Array", + "creatorName": { + "baseName": "creator_name", + "type": "Array", }, - envTags: { - baseName: "env_tags", - type: "Array", + "envTags": { + "baseName": "env_tags", + "type": "Array", }, - serviceTags: { - baseName: "service_tags", - type: "Array", + "serviceTags": { + "baseName": "service_tags", + "type": "Array", }, - sloType: { - baseName: "slo_type", - type: "Array", + "sloType": { + "baseName": "slo_type", + "type": "Array", }, - target: { - baseName: "target", - type: "Array", + "target": { + "baseName": "target", + "type": "Array", }, - teamTags: { - baseName: "team_tags", - type: "Array", + "teamTags": { + "baseName": "team_tags", + "type": "Array", }, - timeframe: { - baseName: "timeframe", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeframe": { + "baseName": "timeframe", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseDataAttributesFacets.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.ts index de11a6e109ca..2e5fbca97f6d 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet - */ +*/ export class SearchSLOResponseDataAttributesFacetsObjectInt { /** * Count - */ + */ "count"?: number; /** * Facet - */ + */ "name"?: number; /** @@ -35,28 +40,54 @@ export class SearchSLOResponseDataAttributesFacetsObjectInt { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseDataAttributesFacetsObjectInt.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.ts index 5430f4b676e6..8eb15d06a26d 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet - */ +*/ export class SearchSLOResponseDataAttributesFacetsObjectString { /** * Count - */ + */ "count"?: number; /** * Facet - */ + */ "name"?: string; /** @@ -35,27 +40,53 @@ export class SearchSLOResponseDataAttributesFacetsObjectString { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseDataAttributesFacetsObjectString.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.ts index 1df7c6ee031d..dd768c8fcbe8 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination links. - */ +*/ export class SearchSLOResponseLinks { /** * Link to last page. - */ + */ "first"?: string; /** * Link to first page. - */ + */ "last"?: string; /** * Link to the next page. - */ + */ "next"?: string; /** * Link to previous page. - */ + */ "prev"?: string; /** * Link to current page. - */ + */ "self"?: string; /** @@ -47,38 +52,64 @@ export class SearchSLOResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", + "last": { + "baseName": "last", + "type": "string", }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - prev: { - baseName: "prev", - type: "string", + "prev": { + "baseName": "prev", + "type": "string", }, - self: { - baseName: "self", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.ts index 38132f02d3af..aa84c2f73c44 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.ts @@ -5,15 +5,20 @@ */ import { SearchSLOResponseMetaPage } from "./SearchSLOResponseMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Searches metadata returned by the API. - */ +*/ export class SearchSLOResponseMeta { /** * Pagination metadata returned by the API. - */ + */ "pagination"?: SearchSLOResponseMetaPage; /** @@ -32,22 +37,48 @@ export class SearchSLOResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "SearchSLOResponseMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "SearchSLOResponseMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.ts b/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.ts index 02c902c903ea..39657ffdc7fd 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata returned by the API. - */ +*/ export class SearchSLOResponseMetaPage { /** * The first number. - */ + */ "firstNumber"?: number; /** * The last number. - */ + */ "lastNumber"?: number; /** * The next number. - */ + */ "nextNumber"?: number; /** * The page number. - */ + */ "number"?: number; /** * The previous page number. - */ + */ "prevNumber"?: number; /** * The size of the response. - */ + */ "size"?: number; /** * The total number of SLOs in the response. - */ + */ "total"?: number; /** * Type of pagination. - */ + */ "type"?: string; /** @@ -59,57 +64,83 @@ export class SearchSLOResponseMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - firstNumber: { - baseName: "first_number", - type: "number", - format: "int64", + "firstNumber": { + "baseName": "first_number", + "type": "number", + "format": "int64", }, - lastNumber: { - baseName: "last_number", - type: "number", - format: "int64", + "lastNumber": { + "baseName": "last_number", + "type": "number", + "format": "int64", }, - nextNumber: { - baseName: "next_number", - type: "number", - format: "int64", + "nextNumber": { + "baseName": "next_number", + "type": "number", + "format": "int64", }, - number: { - baseName: "number", - type: "number", - format: "int64", + "number": { + "baseName": "number", + "type": "number", + "format": "int64", }, - prevNumber: { - baseName: "prev_number", - type: "number", - format: "int64", + "prevNumber": { + "baseName": "prev_number", + "type": "number", + "format": "int64", }, - size: { - baseName: "size", - type: "number", - format: "int64", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, - total: { - baseName: "total", - type: "number", - format: "int64", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOResponseMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOThreshold.ts b/packages/datadog-api-client-v1/models/SearchSLOThreshold.ts index 4d0ac5779130..cf35b80a41ed 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOThreshold.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOThreshold.ts @@ -5,40 +5,45 @@ */ import { SearchSLOTimeframe } from "./SearchSLOTimeframe"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * SLO thresholds (target and optionally warning) for a single time window. - */ +*/ export class SearchSLOThreshold { /** * The target value for the service level indicator within the corresponding * timeframe. - */ + */ "target": number; /** * A string representation of the target that indicates its precision. * It uses trailing zeros to show significant decimal places (for example `98.00`). - * + * * Always included in service level objective responses. Ignored in * create/update requests. - */ + */ "targetDisplay"?: string; /** * The SLO time window options. - */ + */ "timeframe": SearchSLOTimeframe; /** * The warning value for the service level objective. - */ + */ "warning"?: number; /** * A string representation of the warning target (see the description of * the `target_display` field for details). - * + * * Included in service level objective responses if a warning target exists. * Ignored in create/update requests. - */ + */ "warningDisplay"?: string; /** @@ -57,42 +62,68 @@ export class SearchSLOThreshold { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - target: { - baseName: "target", - type: "number", - required: true, - format: "double", + "target": { + "baseName": "target", + "type": "number", + "required": true, + "format": "double", }, - targetDisplay: { - baseName: "target_display", - type: "string", + "targetDisplay": { + "baseName": "target_display", + "type": "string", }, - timeframe: { - baseName: "timeframe", - type: "SearchSLOTimeframe", - required: true, + "timeframe": { + "baseName": "timeframe", + "type": "SearchSLOTimeframe", + "required": true, }, - warning: { - baseName: "warning", - type: "number", - format: "double", + "warning": { + "baseName": "warning", + "type": "number", + "format": "double", }, - warningDisplay: { - baseName: "warning_display", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warningDisplay": { + "baseName": "warning_display", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchSLOThreshold.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchSLOTimeframe.ts b/packages/datadog-api-client-v1/models/SearchSLOTimeframe.ts index f59ee494d277..74ac875aeeb9 100644 --- a/packages/datadog-api-client-v1/models/SearchSLOTimeframe.ts +++ b/packages/datadog-api-client-v1/models/SearchSLOTimeframe.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The SLO time window options. - */ +*/ -export type SearchSLOTimeframe = - | typeof SEVEN_DAYS - | typeof THIRTY_DAYS - | typeof NINETY_DAYS - | UnparsedObject; -export const SEVEN_DAYS = "7d"; -export const THIRTY_DAYS = "30d"; -export const NINETY_DAYS = "90d"; +export type SearchSLOTimeframe = typeof SEVEN_DAYS| typeof THIRTY_DAYS| typeof NINETY_DAYS | UnparsedObject; +export const SEVEN_DAYS = '7d'; +export const THIRTY_DAYS = '30d'; +export const NINETY_DAYS = '90d'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.ts b/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.ts index c96d5f5d8941..a2a75500c58f 100644 --- a/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.ts +++ b/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.ts @@ -5,15 +5,20 @@ */ import { SearchServiceLevelObjectiveData } from "./SearchServiceLevelObjectiveData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective data container. - */ +*/ export class SearchServiceLevelObjective { /** * A service level objective ID and attributes. - */ + */ "data"?: SearchServiceLevelObjectiveData; /** @@ -32,22 +37,48 @@ export class SearchServiceLevelObjective { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SearchServiceLevelObjectiveData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SearchServiceLevelObjectiveData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchServiceLevelObjective.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.ts b/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.ts index a97b76d88ca2..35c6a9cf13c0 100644 --- a/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.ts +++ b/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.ts @@ -10,89 +10,94 @@ import { SLOOverallStatuses } from "./SLOOverallStatuses"; import { SLOStatus } from "./SLOStatus"; import { SLOType } from "./SLOType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective object includes a service level indicator, thresholds * for one or more timeframes, and metadata (`name`, `description`, and `tags`). - */ +*/ export class SearchServiceLevelObjectiveAttributes { /** * A list of tags associated with this service level objective. * Always included in service level objective responses (but may be empty). - */ + */ "allTags"?: Array; /** * Creation timestamp (UNIX time in seconds) - * + * * Always included in service level objective responses. - */ + */ "createdAt"?: number; /** * The creator of the SLO - */ + */ "creator"?: SLOCreator; /** * A user-defined description of the service level objective. - * + * * Always included in service level objective responses (but may be `null`). * Optional in create/update requests. - */ + */ "description"?: string; /** * Tags with the `env` tag key. - */ + */ "envTags"?: Array; /** * A list of (up to 100) monitor groups that narrow the scope of a monitor service level objective. * Included in service level objective responses if it is not empty. - */ + */ "groups"?: Array; /** * Modification timestamp (UNIX time in seconds) - * + * * Always included in service level objective responses. - */ + */ "modifiedAt"?: number; /** * A list of monitor ids that defines the scope of a monitor service level * objective. - */ + */ "monitorIds"?: Array; /** * The name of the service level objective object. - */ + */ "name"?: string; /** * calculated status and error budget remaining. - */ + */ "overallStatus"?: Array; /** * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator * to be used because this will sum up all request counts instead of averaging them, or taking the max or * min of all of those requests. - */ + */ "query"?: SearchSLOQuery; /** * Tags with the `service` tag key. - */ + */ "serviceTags"?: Array; /** * The type of the service level objective. - */ + */ "sloType"?: SLOType; /** * Status of the SLO's primary timeframe. - */ + */ "status"?: SLOStatus; /** * Tags with the `team` tag key. - */ + */ "teamTags"?: Array; /** * The thresholds (timeframes and associated targets) for this service level * objective object. - */ + */ "thresholds"?: Array; /** @@ -111,85 +116,111 @@ export class SearchServiceLevelObjectiveAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allTags: { - baseName: "all_tags", - type: "Array", - }, - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", - }, - creator: { - baseName: "creator", - type: "SLOCreator", - }, - description: { - baseName: "description", - type: "string", - }, - envTags: { - baseName: "env_tags", - type: "Array", - }, - groups: { - baseName: "groups", - type: "Array", - }, - modifiedAt: { - baseName: "modified_at", - type: "number", - format: "int64", - }, - monitorIds: { - baseName: "monitor_ids", - type: "Array", - format: "int64", - }, - name: { - baseName: "name", - type: "string", - }, - overallStatus: { - baseName: "overall_status", - type: "Array", - }, - query: { - baseName: "query", - type: "SearchSLOQuery", - }, - serviceTags: { - baseName: "service_tags", - type: "Array", - }, - sloType: { - baseName: "slo_type", - type: "SLOType", - }, - status: { - baseName: "status", - type: "SLOStatus", - }, - teamTags: { - baseName: "team_tags", - type: "Array", - }, - thresholds: { - baseName: "thresholds", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "allTags": { + "baseName": "all_tags", + "type": "Array", + }, + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", + }, + "creator": { + "baseName": "creator", + "type": "SLOCreator", + }, + "description": { + "baseName": "description", + "type": "string", + }, + "envTags": { + "baseName": "env_tags", + "type": "Array", + }, + "groups": { + "baseName": "groups", + "type": "Array", + }, + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "format": "int64", + }, + "monitorIds": { + "baseName": "monitor_ids", + "type": "Array", + "format": "int64", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "overallStatus": { + "baseName": "overall_status", + "type": "Array", + }, + "query": { + "baseName": "query", + "type": "SearchSLOQuery", + }, + "serviceTags": { + "baseName": "service_tags", + "type": "Array", + }, + "sloType": { + "baseName": "slo_type", + "type": "SLOType", + }, + "status": { + "baseName": "status", + "type": "SLOStatus", + }, + "teamTags": { + "baseName": "team_tags", + "type": "Array", + }, + "thresholds": { + "baseName": "thresholds", + "type": "Array", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchServiceLevelObjectiveAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.ts b/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.ts index cc5b4c9725d3..10d3c951de97 100644 --- a/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.ts +++ b/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.ts @@ -5,26 +5,31 @@ */ import { SearchServiceLevelObjectiveAttributes } from "./SearchServiceLevelObjectiveAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective ID and attributes. - */ +*/ export class SearchServiceLevelObjectiveData { /** * A service level objective object includes a service level indicator, thresholds * for one or more timeframes, and metadata (`name`, `description`, and `tags`). - */ + */ "attributes"?: SearchServiceLevelObjectiveAttributes; /** * A unique identifier for the service level objective object. - * + * * Always included in service level objective responses. - */ + */ "id"?: string; /** * The type of the object, must be `slo`. - */ + */ "type"?: string; /** @@ -43,30 +48,56 @@ export class SearchServiceLevelObjectiveData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SearchServiceLevelObjectiveAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SearchServiceLevelObjectiveAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SearchServiceLevelObjectiveData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.ts b/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.ts index 4b548b0e0238..e43e85861b59 100644 --- a/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.ts +++ b/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the template variable's name, associated tag/attribute, default value and selectable values. - */ +*/ export class SelectableTemplateVariableItems { /** * The default value of the template variable. - */ + */ "defaultValue"?: string; /** * Name of the template variable. - */ + */ "name"?: string; /** * The tag/attribute key associated with the template variable. - */ + */ "prefix"?: string; /** * List of visible tag values on the shared dashboard. - */ + */ "visibleTags"?: Array; /** @@ -43,34 +48,60 @@ export class SelectableTemplateVariableItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultValue: { - baseName: "default_value", - type: "string", + "defaultValue": { + "baseName": "default_value", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - prefix: { - baseName: "prefix", - type: "string", + "prefix": { + "baseName": "prefix", + "type": "string", }, - visibleTags: { - baseName: "visible_tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "visibleTags": { + "baseName": "visible_tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SelectableTemplateVariableItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Series.ts b/packages/datadog-api-client-v1/models/Series.ts index 78b4371dffed..64fcb444079e 100644 --- a/packages/datadog-api-client-v1/models/Series.ts +++ b/packages/datadog-api-client-v1/models/Series.ts @@ -3,37 +3,44 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { Point } from "./Point"; +import { PointItem } from "./PointItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A metric to submit to Datadog. * See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). - */ +*/ export class Series { /** * The name of the host that produced the metric. - */ + */ "host"?: string; /** * If the type of the metric is rate or count, define the corresponding interval in seconds. - */ + */ "interval"?: number; /** * The name of the timeseries. - */ + */ "metric": string; /** * Points relating to a metric. All points must be tuples with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past. - */ + */ "points": Array<[number, number]>; /** * A list of tags associated with the metric. - */ + */ "tags"?: Array; /** * The type of the metric. Valid types are "",`count`, `gauge`, and `rate`. - */ + */ "type"?: string; /** @@ -52,46 +59,72 @@ export class Series { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - host: { - baseName: "host", - type: "string", - }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "host": { + "baseName": "host", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", - required: true, + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - points: { - baseName: "points", - type: "Array<[number, number]>", - required: true, - format: "double", + "metric": { + "baseName": "metric", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "points": { + "baseName": "points", + "type": "Array<[number, number]>", + "required": true, + "format": "double", }, - type: { - baseName: "type", - type: "string", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Series.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceCheck.ts b/packages/datadog-api-client-v1/models/ServiceCheck.ts index 62e37ef202cb..7e16fccaf584 100644 --- a/packages/datadog-api-client-v1/models/ServiceCheck.ts +++ b/packages/datadog-api-client-v1/models/ServiceCheck.ts @@ -5,35 +5,40 @@ */ import { ServiceCheckStatus } from "./ServiceCheckStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object containing service check and status. - */ +*/ export class ServiceCheck { /** * The check. - */ + */ "check": string; /** * The host name correlated with the check. - */ + */ "hostName": string; /** * Message containing check status. - */ + */ "message"?: string; /** * The status of a service check. Set to `0` for OK, `1` for warning, `2` for critical, and `3` for unknown. - */ + */ "status": ServiceCheckStatus; /** * Tags related to a check. - */ + */ "tags": Array; /** * Time of check. - */ + */ "timestamp"?: number; /** @@ -52,48 +57,74 @@ export class ServiceCheck { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - check: { - baseName: "check", - type: "string", - required: true, - }, - hostName: { - baseName: "host_name", - type: "string", - required: true, + "check": { + "baseName": "check", + "type": "string", + "required": true, }, - message: { - baseName: "message", - type: "string", + "hostName": { + "baseName": "host_name", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "ServiceCheckStatus", - required: true, - format: "int32", + "message": { + "baseName": "message", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", - required: true, + "status": { + "baseName": "status", + "type": "ServiceCheckStatus", + "required": true, + "format": "int32", }, - timestamp: { - baseName: "timestamp", - type: "number", - format: "int64", + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceCheck.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceCheckStatus.ts b/packages/datadog-api-client-v1/models/ServiceCheckStatus.ts index 433072158cdc..fe05bc35155c 100644 --- a/packages/datadog-api-client-v1/models/ServiceCheckStatus.ts +++ b/packages/datadog-api-client-v1/models/ServiceCheckStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of a service check. Set to `0` for OK, `1` for warning, `2` for critical, and `3` for unknown. - */ +*/ -export type ServiceCheckStatus = - | typeof OK - | typeof WARNING - | typeof CRITICAL - | typeof UNKNOWN - | UnparsedObject; +export type ServiceCheckStatus = typeof OK| typeof WARNING| typeof CRITICAL| typeof UNKNOWN | UnparsedObject; export const OK = 0; export const WARNING = 1; export const CRITICAL = 2; -export const UNKNOWN = 3; +export const UNKNOWN = 3; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ServiceLevelObjective.ts b/packages/datadog-api-client-v1/models/ServiceLevelObjective.ts index bd6a28604e35..98b5337c4236 100644 --- a/packages/datadog-api-client-v1/models/ServiceLevelObjective.ts +++ b/packages/datadog-api-client-v1/models/ServiceLevelObjective.ts @@ -10,54 +10,59 @@ import { SLOThreshold } from "./SLOThreshold"; import { SLOTimeframe } from "./SLOTimeframe"; import { SLOType } from "./SLOType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective object includes a service level indicator, thresholds * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). - */ +*/ export class ServiceLevelObjective { /** * Creation timestamp (UNIX time in seconds) - * + * * Always included in service level objective responses. - */ + */ "createdAt"?: number; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * A user-defined description of the service level objective. - * + * * Always included in service level objective responses (but may be `null`). * Optional in create/update requests. - */ + */ "description"?: string; /** * A list of (up to 100) monitor groups that narrow the scope of a monitor service level objective. - * + * * Included in service level objective responses if it is not empty. Optional in * create/update requests for monitor service level objectives, but may only be * used when then length of the `monitor_ids` field is one. - */ + */ "groups"?: Array; /** * A unique identifier for the service level objective object. - * + * * Always included in service level objective responses. - */ + */ "id"?: string; /** * Modification timestamp (UNIX time in seconds) - * + * * Always included in service level objective responses. - */ + */ "modifiedAt"?: number; /** * A list of monitor ids that defines the scope of a monitor service level * objective. **Required if type is `monitor`**. - */ + */ "monitorIds"?: Array; /** * The union of monitor tags for all monitors referenced by the `monitor_ids` @@ -66,53 +71,53 @@ export class ServiceLevelObjective { * objectives (but may be empty). Ignored in create/update requests. Does not * affect which monitors are included in the service level objective (that is * determined entirely by the `monitor_ids` field). - */ + */ "monitorTags"?: Array; /** * The name of the service level objective object. - */ + */ "name": string; /** * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator * to be used because this will sum up all request counts instead of averaging them, or taking the max or * min of all of those requests. - */ + */ "query"?: ServiceLevelObjectiveQuery; /** * A generic SLI specification. This is currently used for time-slice SLOs only. - */ + */ "sliSpecification"?: SLOSliSpec; /** * A list of tags associated with this service level objective. * Always included in service level objective responses (but may be empty). * Optional in create/update requests. - */ + */ "tags"?: Array; /** * The target threshold such that when the service level indicator is above this * threshold over the given timeframe, the objective is being met. - */ + */ "targetThreshold"?: number; /** * The thresholds (timeframes and associated targets) for this service level * objective object. - */ + */ "thresholds": Array; /** * The SLO time window options. Note that "custom" is not a valid option for creating * or updating SLOs. It is only used when querying SLO history over custom timeframes. - */ + */ "timeframe"?: SLOTimeframe; /** * The type of the service level objective. - */ + */ "type": SLOType; /** * The optional warning threshold such that when the service level indicator is * below this value for the given threshold, but above the target threshold, the * objective appears in a "warning" state. This value must be greater than the target * threshold. - */ + */ "warningThreshold"?: number; /** @@ -131,94 +136,120 @@ export class ServiceLevelObjective { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", - }, - creator: { - baseName: "creator", - type: "Creator", - }, - description: { - baseName: "description", - type: "string", - }, - groups: { - baseName: "groups", - type: "Array", - }, - id: { - baseName: "id", - type: "string", - }, - modifiedAt: { - baseName: "modified_at", - type: "number", - format: "int64", - }, - monitorIds: { - baseName: "monitor_ids", - type: "Array", - format: "int64", - }, - monitorTags: { - baseName: "monitor_tags", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - required: true, - }, - query: { - baseName: "query", - type: "ServiceLevelObjectiveQuery", - }, - sliSpecification: { - baseName: "sli_specification", - type: "SLOSliSpec", - }, - tags: { - baseName: "tags", - type: "Array", - }, - targetThreshold: { - baseName: "target_threshold", - type: "number", - format: "double", - }, - thresholds: { - baseName: "thresholds", - type: "Array", - required: true, - }, - timeframe: { - baseName: "timeframe", - type: "SLOTimeframe", - }, - type: { - baseName: "type", - type: "SLOType", - required: true, - }, - warningThreshold: { - baseName: "warning_threshold", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", + }, + "creator": { + "baseName": "creator", + "type": "Creator", + }, + "description": { + "baseName": "description", + "type": "string", + }, + "groups": { + "baseName": "groups", + "type": "Array", + }, + "id": { + "baseName": "id", + "type": "string", + }, + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "format": "int64", + }, + "monitorIds": { + "baseName": "monitor_ids", + "type": "Array", + "format": "int64", + }, + "monitorTags": { + "baseName": "monitor_tags", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + "required": true, + }, + "query": { + "baseName": "query", + "type": "ServiceLevelObjectiveQuery", + }, + "sliSpecification": { + "baseName": "sli_specification", + "type": "SLOSliSpec", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "targetThreshold": { + "baseName": "target_threshold", + "type": "number", + "format": "double", + }, + "thresholds": { + "baseName": "thresholds", + "type": "Array", + "required": true, + }, + "timeframe": { + "baseName": "timeframe", + "type": "SLOTimeframe", + }, + "type": { + "baseName": "type", + "type": "SLOType", + "required": true, + }, + "warningThreshold": { + "baseName": "warning_threshold", + "type": "number", + "format": "double", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceLevelObjective.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceLevelObjectiveQuery.ts b/packages/datadog-api-client-v1/models/ServiceLevelObjectiveQuery.ts index 2e32c3b8e60c..226a7bc61af8 100644 --- a/packages/datadog-api-client-v1/models/ServiceLevelObjectiveQuery.ts +++ b/packages/datadog-api-client-v1/models/ServiceLevelObjectiveQuery.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator * to be used because this will sum up all request counts instead of averaging them, or taking the max or * min of all of those requests. - */ +*/ export class ServiceLevelObjectiveQuery { /** * A Datadog metric query for total (valid) events. - */ + */ "denominator": string; /** * A Datadog metric query for good events. - */ + */ "numerator": string; /** @@ -37,28 +42,54 @@ export class ServiceLevelObjectiveQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - denominator: { - baseName: "denominator", - type: "string", - required: true, + "denominator": { + "baseName": "denominator", + "type": "string", + "required": true, }, - numerator: { - baseName: "numerator", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "numerator": { + "baseName": "numerator", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceLevelObjectiveQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceLevelObjectiveRequest.ts b/packages/datadog-api-client-v1/models/ServiceLevelObjectiveRequest.ts index ad290dfe025f..d6d918010389 100644 --- a/packages/datadog-api-client-v1/models/ServiceLevelObjectiveRequest.ts +++ b/packages/datadog-api-client-v1/models/ServiceLevelObjectiveRequest.ts @@ -9,78 +9,83 @@ import { SLOThreshold } from "./SLOThreshold"; import { SLOTimeframe } from "./SLOTimeframe"; import { SLOType } from "./SLOType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A service level objective object includes a service level indicator, thresholds * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). - */ +*/ export class ServiceLevelObjectiveRequest { /** * A user-defined description of the service level objective. - * + * * Always included in service level objective responses (but may be `null`). * Optional in create/update requests. - */ + */ "description"?: string; /** * A list of (up to 100) monitor groups that narrow the scope of a monitor service level objective. - * + * * Included in service level objective responses if it is not empty. Optional in * create/update requests for monitor service level objectives, but may only be * used when then length of the `monitor_ids` field is one. - */ + */ "groups"?: Array; /** * A list of monitor IDs that defines the scope of a monitor service level * objective. **Required if type is `monitor`**. - */ + */ "monitorIds"?: Array; /** * The name of the service level objective object. - */ + */ "name": string; /** * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator * to be used because this will sum up all request counts instead of averaging them, or taking the max or * min of all of those requests. - */ + */ "query"?: ServiceLevelObjectiveQuery; /** * A generic SLI specification. This is currently used for time-slice SLOs only. - */ + */ "sliSpecification"?: SLOSliSpec; /** * A list of tags associated with this service level objective. * Always included in service level objective responses (but may be empty). * Optional in create/update requests. - */ + */ "tags"?: Array; /** * The target threshold such that when the service level indicator is above this * threshold over the given timeframe, the objective is being met. - */ + */ "targetThreshold"?: number; /** * The thresholds (timeframes and associated targets) for this service level * objective object. - */ + */ "thresholds": Array; /** * The SLO time window options. Note that "custom" is not a valid option for creating * or updating SLOs. It is only used when querying SLO history over custom timeframes. - */ + */ "timeframe"?: SLOTimeframe; /** * The type of the service level objective. - */ + */ "type": SLOType; /** * The optional warning threshold such that when the service level indicator is * below this value for the given threshold, but above the target threshold, the * objective appears in a "warning" state. This value must be greater than the target * threshold. - */ + */ "warningThreshold"?: number; /** @@ -99,72 +104,98 @@ export class ServiceLevelObjectiveRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - groups: { - baseName: "groups", - type: "Array", + "groups": { + "baseName": "groups", + "type": "Array", }, - monitorIds: { - baseName: "monitor_ids", - type: "Array", - format: "int64", + "monitorIds": { + "baseName": "monitor_ids", + "type": "Array", + "format": "int64", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "ServiceLevelObjectiveQuery", + "query": { + "baseName": "query", + "type": "ServiceLevelObjectiveQuery", }, - sliSpecification: { - baseName: "sli_specification", - type: "SLOSliSpec", + "sliSpecification": { + "baseName": "sli_specification", + "type": "SLOSliSpec", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - targetThreshold: { - baseName: "target_threshold", - type: "number", - format: "double", + "targetThreshold": { + "baseName": "target_threshold", + "type": "number", + "format": "double", }, - thresholds: { - baseName: "thresholds", - type: "Array", - required: true, + "thresholds": { + "baseName": "thresholds", + "type": "Array", + "required": true, }, - timeframe: { - baseName: "timeframe", - type: "SLOTimeframe", + "timeframe": { + "baseName": "timeframe", + "type": "SLOTimeframe", }, - type: { - baseName: "type", - type: "SLOType", - required: true, + "type": { + "baseName": "type", + "type": "SLOType", + "required": true, }, - warningThreshold: { - baseName: "warning_threshold", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warningThreshold": { + "baseName": "warning_threshold", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceLevelObjectiveRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinition.ts index 959f91c4d391..4c9178208122 100644 --- a/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinition.ts @@ -7,39 +7,44 @@ import { ServiceMapWidgetDefinitionType } from "./ServiceMapWidgetDefinitionType import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * This widget displays a map of a service to all of the services that call it, and all of the services that it calls. - */ +*/ export class ServiceMapWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Your environment and primary tag (or * if enabled for your account). - */ + */ "filters": Array; /** * The ID of the service you want to map. - */ + */ "service": string; /** * The title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the service map widget. - */ + */ "type": ServiceMapWidgetDefinitionType; /** @@ -58,49 +63,75 @@ export class ServiceMapWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", - }, - filters: { - baseName: "filters", - type: "Array", - required: true, + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - service: { - baseName: "service", - type: "string", - required: true, + "filters": { + "baseName": "filters", + "type": "Array", + "required": true, }, - title: { - baseName: "title", - type: "string", + "service": { + "baseName": "service", + "type": "string", + "required": true, }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "ServiceMapWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceMapWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceMapWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinitionType.ts index 07aa10d4097a..ea948d025670 100644 --- a/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ServiceMapWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the service map widget. - */ +*/ export type ServiceMapWidgetDefinitionType = typeof SERVICEMAP | UnparsedObject; -export const SERVICEMAP = "servicemap"; +export const SERVICEMAP = 'servicemap'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinition.ts index ee6d6624e095..e2f9c388017d 100644 --- a/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinition.ts @@ -9,75 +9,80 @@ import { WidgetSizeFormat } from "./WidgetSizeFormat"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The service summary displays the graphs of a chosen service in your screenboard. Only available on FREE layout dashboards. - */ +*/ export class ServiceSummaryWidgetDefinition { /** * Number of columns to display. - */ + */ "displayFormat"?: WidgetServiceSummaryDisplayFormat; /** * APM environment. - */ + */ "env": string; /** * APM service. - */ + */ "service": string; /** * Whether to show the latency breakdown or not. - */ + */ "showBreakdown"?: boolean; /** * Whether to show the latency distribution or not. - */ + */ "showDistribution"?: boolean; /** * Whether to show the error metrics or not. - */ + */ "showErrors"?: boolean; /** * Whether to show the hits metrics or not. - */ + */ "showHits"?: boolean; /** * Whether to show the latency metrics or not. - */ + */ "showLatency"?: boolean; /** * Whether to show the resource list or not. - */ + */ "showResourceList"?: boolean; /** * Size of the widget. - */ + */ "sizeFormat"?: WidgetSizeFormat; /** * APM span name. - */ + */ "spanName": string; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of the widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the service summary widget. - */ + */ "type": ServiceSummaryWidgetDefinitionType; /** @@ -96,86 +101,112 @@ export class ServiceSummaryWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - displayFormat: { - baseName: "display_format", - type: "WidgetServiceSummaryDisplayFormat", - }, - env: { - baseName: "env", - type: "string", - required: true, - }, - service: { - baseName: "service", - type: "string", - required: true, - }, - showBreakdown: { - baseName: "show_breakdown", - type: "boolean", - }, - showDistribution: { - baseName: "show_distribution", - type: "boolean", - }, - showErrors: { - baseName: "show_errors", - type: "boolean", - }, - showHits: { - baseName: "show_hits", - type: "boolean", - }, - showLatency: { - baseName: "show_latency", - type: "boolean", - }, - showResourceList: { - baseName: "show_resource_list", - type: "boolean", - }, - sizeFormat: { - baseName: "size_format", - type: "WidgetSizeFormat", - }, - spanName: { - baseName: "span_name", - type: "string", - required: true, - }, - time: { - baseName: "time", - type: "WidgetTime", - }, - title: { - baseName: "title", - type: "string", - }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", - }, - titleSize: { - baseName: "title_size", - type: "string", - }, - type: { - baseName: "type", - type: "ServiceSummaryWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "displayFormat": { + "baseName": "display_format", + "type": "WidgetServiceSummaryDisplayFormat", + }, + "env": { + "baseName": "env", + "type": "string", + "required": true, + }, + "service": { + "baseName": "service", + "type": "string", + "required": true, + }, + "showBreakdown": { + "baseName": "show_breakdown", + "type": "boolean", + }, + "showDistribution": { + "baseName": "show_distribution", + "type": "boolean", + }, + "showErrors": { + "baseName": "show_errors", + "type": "boolean", + }, + "showHits": { + "baseName": "show_hits", + "type": "boolean", + }, + "showLatency": { + "baseName": "show_latency", + "type": "boolean", + }, + "showResourceList": { + "baseName": "show_resource_list", + "type": "boolean", + }, + "sizeFormat": { + "baseName": "size_format", + "type": "WidgetSizeFormat", + }, + "spanName": { + "baseName": "span_name", + "type": "string", + "required": true, + }, + "time": { + "baseName": "time", + "type": "WidgetTime", + }, + "title": { + "baseName": "title", + "type": "string", + }, + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", + }, + "titleSize": { + "baseName": "title_size", + "type": "string", + }, + "type": { + "baseName": "type", + "type": "ServiceSummaryWidgetDefinitionType", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceSummaryWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinitionType.ts index f9f106d4f1ec..3a0e1b3f87d5 100644 --- a/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ServiceSummaryWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the service summary widget. - */ +*/ -export type ServiceSummaryWidgetDefinitionType = - | typeof TRACE_SERVICE - | UnparsedObject; -export const TRACE_SERVICE = "trace_service"; +export type ServiceSummaryWidgetDefinitionType = typeof TRACE_SERVICE | UnparsedObject; +export const TRACE_SERVICE = 'trace_service'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SharedDashboard.ts b/packages/datadog-api-client-v1/models/SharedDashboard.ts index af27f9c60f4f..6a48fc4c8fea 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboard.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboard.ts @@ -12,83 +12,88 @@ import { SharedDashboardInviteesItems } from "./SharedDashboardInviteesItems"; import { SharedDashboardStatus } from "./SharedDashboardStatus"; import { ViewingPreferences } from "./ViewingPreferences"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata object associated with how a dashboard has been/will be shared. - */ +*/ export class SharedDashboard { /** * User who shared the dashboard. - */ + */ "author"?: SharedDashboardAuthor; /** * Date the dashboard was shared. - */ + */ "created"?: Date; /** * ID of the dashboard to share. - */ + */ "dashboardId": string; /** * The type of the associated private dashboard. - */ + */ "dashboardType": DashboardType; /** * The `SharedDashboard` `embeddable_domains`. - */ + */ "embeddableDomains"?: Array; /** * The time when an OPEN shared dashboard becomes publicly unavailable. - */ + */ "expiration"?: Date; /** * Object containing the live span selection for the dashboard. - */ + */ "globalTime"?: DashboardGlobalTime; /** * Whether to allow viewers to select a different global time setting for the shared dashboard. - */ + */ "globalTimeSelectableEnabled"?: boolean; /** * The `SharedDashboard` `invitees`. - */ + */ "invitees"?: Array; /** * The last time the shared dashboard was accessed. Null if never accessed. - */ + */ "lastAccessed"?: Date; /** * URL of the shared dashboard. - */ + */ "publicUrl"?: string; /** * List of objects representing template variables on the shared dashboard which can have selectable values. - */ + */ "selectableTemplateVars"?: Array; /** * List of email addresses that can receive an invitation to access to the shared dashboard. - */ + */ "shareList"?: Array; /** * Type of sharing access (either open to anyone who has the public URL or invite-only). - */ + */ "shareType"?: DashboardShareType; /** * Active means the dashboard is publicly available. Paused means the dashboard is not publicly available. - */ + */ "status"?: SharedDashboardStatus; /** * Title of the shared dashboard. - */ + */ "title"?: string; /** * A unique token assigned to the shared dashboard. - */ + */ "token"?: string; /** * The viewing preferences for a shared dashboard. - */ + */ "viewingPreferences"?: ViewingPreferences; /** @@ -107,95 +112,121 @@ export class SharedDashboard { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "SharedDashboardAuthor", - }, - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - dashboardId: { - baseName: "dashboard_id", - type: "string", - required: true, - }, - dashboardType: { - baseName: "dashboard_type", - type: "DashboardType", - required: true, - }, - embeddableDomains: { - baseName: "embeddable_domains", - type: "Array", - }, - expiration: { - baseName: "expiration", - type: "Date", - format: "date-time", - }, - globalTime: { - baseName: "global_time", - type: "DashboardGlobalTime", - }, - globalTimeSelectableEnabled: { - baseName: "global_time_selectable_enabled", - type: "boolean", - }, - invitees: { - baseName: "invitees", - type: "Array", - }, - lastAccessed: { - baseName: "last_accessed", - type: "Date", - format: "date-time", - }, - publicUrl: { - baseName: "public_url", - type: "string", - }, - selectableTemplateVars: { - baseName: "selectable_template_vars", - type: "Array", - }, - shareList: { - baseName: "share_list", - type: "Array", - }, - shareType: { - baseName: "share_type", - type: "DashboardShareType", - }, - status: { - baseName: "status", - type: "SharedDashboardStatus", - }, - title: { - baseName: "title", - type: "string", - }, - token: { - baseName: "token", - type: "string", - }, - viewingPreferences: { - baseName: "viewing_preferences", - type: "ViewingPreferences", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "author": { + "baseName": "author", + "type": "SharedDashboardAuthor", + }, + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", + }, + "dashboardId": { + "baseName": "dashboard_id", + "type": "string", + "required": true, + }, + "dashboardType": { + "baseName": "dashboard_type", + "type": "DashboardType", + "required": true, + }, + "embeddableDomains": { + "baseName": "embeddable_domains", + "type": "Array", + }, + "expiration": { + "baseName": "expiration", + "type": "Date", + "format": "date-time", + }, + "globalTime": { + "baseName": "global_time", + "type": "DashboardGlobalTime", + }, + "globalTimeSelectableEnabled": { + "baseName": "global_time_selectable_enabled", + "type": "boolean", + }, + "invitees": { + "baseName": "invitees", + "type": "Array", + }, + "lastAccessed": { + "baseName": "last_accessed", + "type": "Date", + "format": "date-time", + }, + "publicUrl": { + "baseName": "public_url", + "type": "string", + }, + "selectableTemplateVars": { + "baseName": "selectable_template_vars", + "type": "Array", + }, + "shareList": { + "baseName": "share_list", + "type": "Array", + }, + "shareType": { + "baseName": "share_type", + "type": "DashboardShareType", + }, + "status": { + "baseName": "status", + "type": "SharedDashboardStatus", + }, + "title": { + "baseName": "title", + "type": "string", + }, + "token": { + "baseName": "token", + "type": "string", + }, + "viewingPreferences": { + "baseName": "viewing_preferences", + "type": "ViewingPreferences", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboard.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardAuthor.ts b/packages/datadog-api-client-v1/models/SharedDashboardAuthor.ts index 198a097a777a..cdbe8b7e3856 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardAuthor.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardAuthor.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User who shared the dashboard. - */ +*/ export class SharedDashboardAuthor { /** * Identifier of the user who shared the dashboard. - */ + */ "handle"?: string; /** * Name of the user who shared the dashboard. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class SharedDashboardAuthor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardAuthor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInviteesItems.ts b/packages/datadog-api-client-v1/models/SharedDashboardInviteesItems.ts index 9283312670c4..bf1617988194 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInviteesItems.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInviteesItems.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The allowlisted invitees for an INVITE-only shared dashboard. - */ +*/ export class SharedDashboardInviteesItems { /** * Time of the invitee expiration. Null means the invite will not expire. - */ + */ "accessExpiration"?: Date; /** * Time that the invitee was created. - */ + */ "createdAt"?: Date; /** * Email of the invitee. - */ + */ "email": string; /** @@ -39,33 +44,59 @@ export class SharedDashboardInviteesItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessExpiration: { - baseName: "access_expiration", - type: "Date", - format: "date-time", - }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "accessExpiration": { + "baseName": "access_expiration", + "type": "Date", + "format": "date-time", }, - email: { - baseName: "email", - type: "string", - required: true, + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "email": { + "baseName": "email", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardInviteesItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInvites.ts b/packages/datadog-api-client-v1/models/SharedDashboardInvites.ts index 1e5df890f152..c1f38ba1e796 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInvites.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInvites.ts @@ -6,19 +6,24 @@ import { SharedDashboardInvitesData } from "./SharedDashboardInvitesData"; import { SharedDashboardInvitesMeta } from "./SharedDashboardInvitesMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Invitations data and metadata that exists for a shared dashboard returned by the API. - */ +*/ export class SharedDashboardInvites { /** * An object or list of objects containing the information for an invitation to a shared dashboard. - */ + */ "data": SharedDashboardInvitesData; /** * Pagination metadata returned by the API. - */ + */ "meta"?: SharedDashboardInvitesMeta; /** @@ -37,27 +42,53 @@ export class SharedDashboardInvites { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SharedDashboardInvitesData", - required: true, + "data": { + "baseName": "data", + "type": "SharedDashboardInvitesData", + "required": true, }, - meta: { - baseName: "meta", - type: "SharedDashboardInvitesMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SharedDashboardInvitesMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardInvites.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.ts b/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.ts index 40ced276d196..cd66ab38d6fc 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.ts @@ -5,13 +5,15 @@ */ import { SharedDashboardInvitesDataObject } from "./SharedDashboardInvitesDataObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object or list of objects containing the information for an invitation to a shared dashboard. - */ +*/ -export type SharedDashboardInvitesData = - | SharedDashboardInvitesDataObject - | Array - | UnparsedObject; +export type SharedDashboardInvitesData = SharedDashboardInvitesDataObject | Array | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.ts b/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.ts index 2c098e2c8ae4..004429e0e9a2 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.ts @@ -6,19 +6,24 @@ import { DashboardInviteType } from "./DashboardInviteType"; import { SharedDashboardInvitesDataObjectAttributes } from "./SharedDashboardInvitesDataObjectAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the information for an invitation to a shared dashboard. - */ +*/ export class SharedDashboardInvitesDataObject { /** * Attributes of the shared dashboard invitation - */ + */ "attributes": SharedDashboardInvitesDataObjectAttributes; /** * Type for shared dashboard invitation request body. - */ + */ "type": DashboardInviteType; /** @@ -37,28 +42,54 @@ export class SharedDashboardInvitesDataObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SharedDashboardInvitesDataObjectAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SharedDashboardInvitesDataObjectAttributes", + "required": true, }, - type: { - baseName: "type", - type: "DashboardInviteType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DashboardInviteType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardInvitesDataObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.ts b/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.ts index a657f7d34e1f..3c93b47d1f9b 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the shared dashboard invitation - */ +*/ export class SharedDashboardInvitesDataObjectAttributes { /** * When the invitation was sent. - */ + */ "createdAt"?: Date; /** * An email address that an invitation has been (or if used in invitation request, will be) sent to. - */ + */ "email"?: string; /** * Indicates whether an active session exists for the invitation (produced when a user clicks the link in the email). - */ + */ "hasSession"?: boolean; /** * When the invitation expires. - */ + */ "invitationExpiry"?: Date; /** * When the invited user's session expires. null if the invitation has no associated session. - */ + */ "sessionExpiry"?: Date; /** * The unique token of the shared dashboard that was (or is to be) shared. - */ + */ "shareToken"?: string; /** @@ -51,45 +56,71 @@ export class SharedDashboardInvitesDataObjectAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", - }, - email: { - baseName: "email", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - hasSession: { - baseName: "has_session", - type: "boolean", + "email": { + "baseName": "email", + "type": "string", }, - invitationExpiry: { - baseName: "invitation_expiry", - type: "Date", - format: "date-time", + "hasSession": { + "baseName": "has_session", + "type": "boolean", }, - sessionExpiry: { - baseName: "session_expiry", - type: "Date", - format: "date-time", + "invitationExpiry": { + "baseName": "invitation_expiry", + "type": "Date", + "format": "date-time", }, - shareToken: { - baseName: "share_token", - type: "string", + "sessionExpiry": { + "baseName": "session_expiry", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "shareToken": { + "baseName": "share_token", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardInvitesDataObjectAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.ts b/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.ts index b2cf947c7e3b..a0b8647a8a82 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.ts @@ -5,15 +5,20 @@ */ import { SharedDashboardInvitesMetaPage } from "./SharedDashboardInvitesMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata returned by the API. - */ +*/ export class SharedDashboardInvitesMeta { /** * Object containing the total count of invitations across all pages - */ + */ "page"?: SharedDashboardInvitesMetaPage; /** @@ -32,22 +37,48 @@ export class SharedDashboardInvitesMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "SharedDashboardInvitesMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "SharedDashboardInvitesMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardInvitesMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.ts b/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.ts index d851a7360199..6aa305ca868f 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the total count of invitations across all pages - */ +*/ export class SharedDashboardInvitesMetaPage { /** * The total number of invitations on this shared board, across all pages. - */ + */ "totalCount"?: number; /** @@ -31,23 +36,49 @@ export class SharedDashboardInvitesMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardInvitesMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardStatus.ts b/packages/datadog-api-client-v1/models/SharedDashboardStatus.ts index 6b215f60c205..2533d232f492 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardStatus.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardStatus.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Active means the dashboard is publicly available. Paused means the dashboard is not publicly available. - */ +*/ -export type SharedDashboardStatus = - | typeof ACTIVE - | typeof PAUSED - | UnparsedObject; -export const ACTIVE = "active"; -export const PAUSED = "paused"; +export type SharedDashboardStatus = typeof ACTIVE| typeof PAUSED | UnparsedObject; +export const ACTIVE = 'active'; +export const PAUSED = 'paused'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.ts b/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.ts index 3f53cafe3232..33fc27a12e20 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.ts @@ -10,55 +10,60 @@ import { SharedDashboardStatus } from "./SharedDashboardStatus"; import { SharedDashboardUpdateRequestGlobalTime } from "./SharedDashboardUpdateRequestGlobalTime"; import { ViewingPreferences } from "./ViewingPreferences"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update a shared dashboard's settings. - */ +*/ export class SharedDashboardUpdateRequest { /** * The `SharedDashboard` `embeddable_domains`. - */ + */ "embeddableDomains"?: Array; /** * The time when an OPEN shared dashboard becomes publicly unavailable. - */ + */ "expiration"?: Date; /** * Timeframe setting for the shared dashboard. - */ + */ "globalTime"?: SharedDashboardUpdateRequestGlobalTime; /** * Whether to allow viewers to select a different global time setting for the shared dashboard. - */ + */ "globalTimeSelectableEnabled"?: boolean; /** * The `SharedDashboard` `invitees`. - */ + */ "invitees"?: Array; /** * List of objects representing template variables on the shared dashboard which can have selectable values. - */ + */ "selectableTemplateVars"?: Array; /** * List of email addresses that can be given access to the shared dashboard. - */ + */ "shareList"?: Array; /** * Type of sharing access (either open to anyone who has the public URL or invite-only). - */ + */ "shareType"?: DashboardShareType; /** * Active means the dashboard is publicly available. Paused means the dashboard is not publicly available. - */ + */ "status"?: SharedDashboardStatus; /** * Title of the shared dashboard. - */ + */ "title"?: string; /** * The viewing preferences for a shared dashboard. - */ + */ "viewingPreferences"?: ViewingPreferences; /** @@ -77,63 +82,89 @@ export class SharedDashboardUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - embeddableDomains: { - baseName: "embeddable_domains", - type: "Array", - }, - expiration: { - baseName: "expiration", - type: "Date", - format: "date-time", + "embeddableDomains": { + "baseName": "embeddable_domains", + "type": "Array", }, - globalTime: { - baseName: "global_time", - type: "SharedDashboardUpdateRequestGlobalTime", + "expiration": { + "baseName": "expiration", + "type": "Date", + "format": "date-time", }, - globalTimeSelectableEnabled: { - baseName: "global_time_selectable_enabled", - type: "boolean", + "globalTime": { + "baseName": "global_time", + "type": "SharedDashboardUpdateRequestGlobalTime", }, - invitees: { - baseName: "invitees", - type: "Array", + "globalTimeSelectableEnabled": { + "baseName": "global_time_selectable_enabled", + "type": "boolean", }, - selectableTemplateVars: { - baseName: "selectable_template_vars", - type: "Array", + "invitees": { + "baseName": "invitees", + "type": "Array", }, - shareList: { - baseName: "share_list", - type: "Array", + "selectableTemplateVars": { + "baseName": "selectable_template_vars", + "type": "Array", }, - shareType: { - baseName: "share_type", - type: "DashboardShareType", + "shareList": { + "baseName": "share_list", + "type": "Array", }, - status: { - baseName: "status", - type: "SharedDashboardStatus", + "shareType": { + "baseName": "share_type", + "type": "DashboardShareType", }, - title: { - baseName: "title", - type: "string", + "status": { + "baseName": "status", + "type": "SharedDashboardStatus", }, - viewingPreferences: { - baseName: "viewing_preferences", - type: "ViewingPreferences", + "title": { + "baseName": "title", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "viewingPreferences": { + "baseName": "viewing_preferences", + "type": "ViewingPreferences", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.ts b/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.ts index c90af1fefe33..83cc95b9e71d 100644 --- a/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.ts +++ b/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.ts @@ -5,15 +5,20 @@ */ import { DashboardGlobalTimeLiveSpan } from "./DashboardGlobalTimeLiveSpan"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Timeframe setting for the shared dashboard. - */ +*/ export class SharedDashboardUpdateRequestGlobalTime { /** * Dashboard global time live_span selection - */ + */ "liveSpan"?: DashboardGlobalTimeLiveSpan; /** @@ -32,22 +37,48 @@ export class SharedDashboardUpdateRequestGlobalTime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - liveSpan: { - baseName: "live_span", - type: "DashboardGlobalTimeLiveSpan", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "liveSpan": { + "baseName": "live_span", + "type": "DashboardGlobalTimeLiveSpan", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SharedDashboardUpdateRequestGlobalTime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SignalArchiveReason.ts b/packages/datadog-api-client-v1/models/SignalArchiveReason.ts index a19264ad74bd..1c2b3c8b7ac4 100644 --- a/packages/datadog-api-client-v1/models/SignalArchiveReason.ts +++ b/packages/datadog-api-client-v1/models/SignalArchiveReason.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Reason why a signal has been archived. - */ +*/ -export type SignalArchiveReason = - | typeof NONE - | typeof FALSE_POSITIVE - | typeof TESTING_OR_MAINTENANCE - | typeof INVESTIGATED_CASE_OPENED - | typeof TRUE_POSITIVE_BENIGN - | typeof TRUE_POSITIVE_MALICIOUS - | typeof OTHER - | UnparsedObject; -export const NONE = "none"; -export const FALSE_POSITIVE = "false_positive"; -export const TESTING_OR_MAINTENANCE = "testing_or_maintenance"; -export const INVESTIGATED_CASE_OPENED = "investigated_case_opened"; -export const TRUE_POSITIVE_BENIGN = "true_positive_benign"; -export const TRUE_POSITIVE_MALICIOUS = "true_positive_malicious"; -export const OTHER = "other"; +export type SignalArchiveReason = typeof NONE| typeof FALSE_POSITIVE| typeof TESTING_OR_MAINTENANCE| typeof INVESTIGATED_CASE_OPENED| typeof TRUE_POSITIVE_BENIGN| typeof TRUE_POSITIVE_MALICIOUS| typeof OTHER | UnparsedObject; +export const NONE = 'none'; +export const FALSE_POSITIVE = 'false_positive'; +export const TESTING_OR_MAINTENANCE = 'testing_or_maintenance'; +export const INVESTIGATED_CASE_OPENED = 'investigated_case_opened'; +export const TRUE_POSITIVE_BENIGN = 'true_positive_benign'; +export const TRUE_POSITIVE_MALICIOUS = 'true_positive_malicious'; +export const OTHER = 'other'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SignalAssigneeUpdateRequest.ts b/packages/datadog-api-client-v1/models/SignalAssigneeUpdateRequest.ts index e9016efcefe3..e75bb67e221e 100644 --- a/packages/datadog-api-client-v1/models/SignalAssigneeUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/SignalAssigneeUpdateRequest.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing an assignee update operation over a security signal. - */ +*/ export class SignalAssigneeUpdateRequest { /** * The UUID of the user being assigned. Use empty string to return signal to unassigned. - */ + */ "assignee": string; /** * Version of the updated signal. If server side version is higher, update will be rejected. - */ + */ "version"?: number; /** @@ -35,28 +40,54 @@ export class SignalAssigneeUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assignee: { - baseName: "assignee", - type: "string", - required: true, + "assignee": { + "baseName": "assignee", + "type": "string", + "required": true, }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SignalAssigneeUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SignalStateUpdateRequest.ts b/packages/datadog-api-client-v1/models/SignalStateUpdateRequest.ts index a816047e5a25..7e310bf7fd83 100644 --- a/packages/datadog-api-client-v1/models/SignalStateUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/SignalStateUpdateRequest.ts @@ -6,27 +6,32 @@ import { SignalArchiveReason } from "./SignalArchiveReason"; import { SignalTriageState } from "./SignalTriageState"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing the change of state for a given state. - */ +*/ export class SignalStateUpdateRequest { /** * Optional comment to explain why a signal is being archived. - */ + */ "archiveComment"?: string; /** * Reason why a signal has been archived. - */ + */ "archiveReason"?: SignalArchiveReason; /** * The new triage state of the signal. - */ + */ "state": SignalTriageState; /** * Version of the updated signal. If server side version is higher, update will be rejected. - */ + */ "version"?: number; /** @@ -45,36 +50,62 @@ export class SignalStateUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - archiveComment: { - baseName: "archiveComment", - type: "string", + "archiveComment": { + "baseName": "archiveComment", + "type": "string", }, - archiveReason: { - baseName: "archiveReason", - type: "SignalArchiveReason", + "archiveReason": { + "baseName": "archiveReason", + "type": "SignalArchiveReason", }, - state: { - baseName: "state", - type: "SignalTriageState", - required: true, + "state": { + "baseName": "state", + "type": "SignalTriageState", + "required": true, }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SignalStateUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SignalTriageState.ts b/packages/datadog-api-client-v1/models/SignalTriageState.ts index 7a3eee7b80cc..9936608e4dee 100644 --- a/packages/datadog-api-client-v1/models/SignalTriageState.ts +++ b/packages/datadog-api-client-v1/models/SignalTriageState.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The new triage state of the signal. - */ +*/ -export type SignalTriageState = - | typeof OPEN - | typeof ARCHIVED - | typeof UNDER_REVIEW - | UnparsedObject; -export const OPEN = "open"; -export const ARCHIVED = "archived"; -export const UNDER_REVIEW = "under_review"; +export type SignalTriageState = typeof OPEN| typeof ARCHIVED| typeof UNDER_REVIEW | UnparsedObject; +export const OPEN = 'open'; +export const ARCHIVED = 'archived'; +export const UNDER_REVIEW = 'under_review'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SlackIntegrationChannel.ts b/packages/datadog-api-client-v1/models/SlackIntegrationChannel.ts index 85ddd6f0adc9..cce7ed52b520 100644 --- a/packages/datadog-api-client-v1/models/SlackIntegrationChannel.ts +++ b/packages/datadog-api-client-v1/models/SlackIntegrationChannel.ts @@ -5,19 +5,24 @@ */ import { SlackIntegrationChannelDisplay } from "./SlackIntegrationChannelDisplay"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Slack channel configuration. - */ +*/ export class SlackIntegrationChannel { /** * Configuration options for what is shown in an alert event message. - */ + */ "display"?: SlackIntegrationChannelDisplay; /** * Your channel name. - */ + */ "name"?: string; /** @@ -36,26 +41,52 @@ export class SlackIntegrationChannel { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - display: { - baseName: "display", - type: "SlackIntegrationChannelDisplay", + "display": { + "baseName": "display", + "type": "SlackIntegrationChannelDisplay", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SlackIntegrationChannel.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SlackIntegrationChannelDisplay.ts b/packages/datadog-api-client-v1/models/SlackIntegrationChannelDisplay.ts index 6354510b4d13..c4bc30a73a7a 100644 --- a/packages/datadog-api-client-v1/models/SlackIntegrationChannelDisplay.ts +++ b/packages/datadog-api-client-v1/models/SlackIntegrationChannelDisplay.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration options for what is shown in an alert event message. - */ +*/ export class SlackIntegrationChannelDisplay { /** * Show the main body of the alert event. - */ + */ "message"?: boolean; /** * Show the list of @-handles in the alert event. - */ + */ "notified"?: boolean; /** * Show the alert event's snapshot image. - */ + */ "snapshot"?: boolean; /** * Show the scopes on which the monitor alerted. - */ + */ "tags"?: boolean; /** @@ -43,34 +48,60 @@ export class SlackIntegrationChannelDisplay { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - message: { - baseName: "message", - type: "boolean", + "message": { + "baseName": "message", + "type": "boolean", }, - notified: { - baseName: "notified", - type: "boolean", + "notified": { + "baseName": "notified", + "type": "boolean", }, - snapshot: { - baseName: "snapshot", - type: "boolean", + "snapshot": { + "baseName": "snapshot", + "type": "boolean", }, - tags: { - baseName: "tags", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SlackIntegrationChannelDisplay.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SplitConfig.ts b/packages/datadog-api-client-v1/models/SplitConfig.ts index 66b98545a684..f1717298df84 100644 --- a/packages/datadog-api-client-v1/models/SplitConfig.ts +++ b/packages/datadog-api-client-v1/models/SplitConfig.ts @@ -5,29 +5,35 @@ */ import { SplitDimension } from "./SplitDimension"; import { SplitSort } from "./SplitSort"; +import { SplitVectorEntry } from "./SplitVectorEntry"; import { SplitVectorEntryItem } from "./SplitVectorEntryItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Encapsulates all user choices about how to split a graph. - */ +*/ export class SplitConfig { /** * Maximum number of graphs to display in the widget. - */ + */ "limit": number; /** * Controls the order in which graphs appear in the split. - */ + */ "sort": SplitSort; /** * The dimension(s) on which to split the graph - */ + */ "splitDimensions": [SplitDimension]; /** * Manual selection of tags making split graph widget static - */ + */ "staticSplits"?: Array>; /** @@ -46,38 +52,64 @@ export class SplitConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - limit: { - baseName: "limit", - type: "number", - required: true, - format: "int64", + "limit": { + "baseName": "limit", + "type": "number", + "required": true, + "format": "int64", }, - sort: { - baseName: "sort", - type: "SplitSort", - required: true, + "sort": { + "baseName": "sort", + "type": "SplitSort", + "required": true, }, - splitDimensions: { - baseName: "split_dimensions", - type: "[SplitDimension]", - required: true, + "splitDimensions": { + "baseName": "split_dimensions", + "type": "[SplitDimension]", + "required": true, }, - staticSplits: { - baseName: "static_splits", - type: "Array>", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "staticSplits": { + "baseName": "static_splits", + "type": "Array>", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SplitConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SplitConfigSortCompute.ts b/packages/datadog-api-client-v1/models/SplitConfigSortCompute.ts index ddf185c59cb9..8f8bb4ed59cb 100644 --- a/packages/datadog-api-client-v1/models/SplitConfigSortCompute.ts +++ b/packages/datadog-api-client-v1/models/SplitConfigSortCompute.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Defines the metric and aggregation used as the sort value. - */ +*/ export class SplitConfigSortCompute { /** * How to aggregate the sort metric for the purposes of ordering. - */ + */ "aggregation": string; /** * The metric to use for sorting graphs. - */ + */ "metric": string; /** @@ -35,28 +40,54 @@ export class SplitConfigSortCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "string", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "string", + "required": true, }, - metric: { - baseName: "metric", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metric": { + "baseName": "metric", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SplitConfigSortCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SplitDimension.ts b/packages/datadog-api-client-v1/models/SplitDimension.ts index 1f9f6c78f230..e5ee88ca475a 100644 --- a/packages/datadog-api-client-v1/models/SplitDimension.ts +++ b/packages/datadog-api-client-v1/models/SplitDimension.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The property by which the graph splits - */ +*/ export class SplitDimension { /** * The system interprets this attribute differently depending on the data source of the query being split. For metrics, it's a tag. For the events platform, it's an attribute or tag. - */ + */ "oneGraphPer": string; /** @@ -31,23 +36,49 @@ export class SplitDimension { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - oneGraphPer: { - baseName: "one_graph_per", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "oneGraphPer": { + "baseName": "one_graph_per", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SplitDimension.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.ts b/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.ts index bd8a20d891ea..de59d0f38a3f 100644 --- a/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.ts @@ -13,20 +13,15 @@ import { TimeseriesWidgetDefinition } from "./TimeseriesWidgetDefinition"; import { ToplistWidgetDefinition } from "./ToplistWidgetDefinition"; import { TreeMapWidgetDefinition } from "./TreeMapWidgetDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The original widget we are splitting on. - */ +*/ -export type SplitGraphSourceWidgetDefinition = - | ChangeWidgetDefinition - | GeomapWidgetDefinition - | QueryValueWidgetDefinition - | ScatterPlotWidgetDefinition - | SunburstWidgetDefinition - | TableWidgetDefinition - | TimeseriesWidgetDefinition - | ToplistWidgetDefinition - | TreeMapWidgetDefinition - | UnparsedObject; +export type SplitGraphSourceWidgetDefinition = ChangeWidgetDefinition | GeomapWidgetDefinition | QueryValueWidgetDefinition | ScatterPlotWidgetDefinition | SunburstWidgetDefinition | TableWidgetDefinition | TimeseriesWidgetDefinition | ToplistWidgetDefinition | TreeMapWidgetDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SplitGraphVizSize.ts b/packages/datadog-api-client-v1/models/SplitGraphVizSize.ts index 014096705d1e..2b6afd39857a 100644 --- a/packages/datadog-api-client-v1/models/SplitGraphVizSize.ts +++ b/packages/datadog-api-client-v1/models/SplitGraphVizSize.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Size of the individual graphs in the split. - */ +*/ -export type SplitGraphVizSize = - | typeof XS - | typeof SM - | typeof MD - | typeof LG - | UnparsedObject; -export const XS = "xs"; -export const SM = "sm"; -export const MD = "md"; -export const LG = "lg"; +export type SplitGraphVizSize = typeof XS| typeof SM| typeof MD| typeof LG | UnparsedObject; +export const XS = 'xs'; +export const SM = 'sm'; +export const MD = 'md'; +export const LG = 'lg'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.ts b/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.ts index 252d2cc7d2d9..6a887e11cfde 100644 --- a/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.ts @@ -9,39 +9,44 @@ import { SplitGraphVizSize } from "./SplitGraphVizSize"; import { SplitGraphWidgetDefinitionType } from "./SplitGraphWidgetDefinitionType"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The split graph widget allows you to create repeating units of a graph - one for each value in a group (for example: one per service) - */ +*/ export class SplitGraphWidgetDefinition { /** * Normalize y axes across graphs - */ + */ "hasUniformYAxes"?: boolean; /** * Size of the individual graphs in the split. - */ + */ "size": SplitGraphVizSize; /** * The original widget we are splitting on. - */ + */ "sourceWidgetDefinition": SplitGraphSourceWidgetDefinition; /** * Encapsulates all user choices about how to split a graph. - */ + */ "splitConfig": SplitConfig; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * Type of the split graph widget - */ + */ "type": SplitGraphWidgetDefinitionType; /** @@ -60,50 +65,76 @@ export class SplitGraphWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hasUniformYAxes: { - baseName: "has_uniform_y_axes", - type: "boolean", - }, - size: { - baseName: "size", - type: "SplitGraphVizSize", - required: true, + "hasUniformYAxes": { + "baseName": "has_uniform_y_axes", + "type": "boolean", }, - sourceWidgetDefinition: { - baseName: "source_widget_definition", - type: "SplitGraphSourceWidgetDefinition", - required: true, + "size": { + "baseName": "size", + "type": "SplitGraphVizSize", + "required": true, }, - splitConfig: { - baseName: "split_config", - type: "SplitConfig", - required: true, + "sourceWidgetDefinition": { + "baseName": "source_widget_definition", + "type": "SplitGraphSourceWidgetDefinition", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "splitConfig": { + "baseName": "split_config", + "type": "SplitConfig", + "required": true, }, - title: { - baseName: "title", - type: "string", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - type: { - baseName: "type", - type: "SplitGraphWidgetDefinitionType", - required: true, + "title": { + "baseName": "title", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SplitGraphWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SplitGraphWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.ts index beacc9f070fd..4cdc5f59df44 100644 --- a/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the split graph widget - */ +*/ -export type SplitGraphWidgetDefinitionType = - | typeof SPLIT_GROUP - | UnparsedObject; -export const SPLIT_GROUP = "split_group"; +export type SplitGraphWidgetDefinitionType = typeof SPLIT_GROUP | UnparsedObject; +export const SPLIT_GROUP = 'split_group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SplitSort.ts b/packages/datadog-api-client-v1/models/SplitSort.ts index 766cca8fb6d5..7be7659ac757 100644 --- a/packages/datadog-api-client-v1/models/SplitSort.ts +++ b/packages/datadog-api-client-v1/models/SplitSort.ts @@ -6,19 +6,24 @@ import { SplitConfigSortCompute } from "./SplitConfigSortCompute"; import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Controls the order in which graphs appear in the split. - */ +*/ export class SplitSort { /** * Defines the metric and aggregation used as the sort value. - */ + */ "compute"?: SplitConfigSortCompute; /** * Widget sorting methods. - */ + */ "order": WidgetSort; /** @@ -37,27 +42,53 @@ export class SplitSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "SplitConfigSortCompute", + "compute": { + "baseName": "compute", + "type": "SplitConfigSortCompute", }, - order: { - baseName: "order", - type: "WidgetSort", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "WidgetSort", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SplitSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SplitVectorEntryItem.ts b/packages/datadog-api-client-v1/models/SplitVectorEntryItem.ts index e09ff40c1194..1732f3b4c146 100644 --- a/packages/datadog-api-client-v1/models/SplitVectorEntryItem.ts +++ b/packages/datadog-api-client-v1/models/SplitVectorEntryItem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The split graph list contains a graph for each value of the split dimension. - */ +*/ export class SplitVectorEntryItem { /** * The tag key. - */ + */ "tagKey": string; /** * The tag values. - */ + */ "tagValues": Array; /** @@ -35,28 +40,54 @@ export class SplitVectorEntryItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tagKey: { - baseName: "tag_key", - type: "string", - required: true, + "tagKey": { + "baseName": "tag_key", + "type": "string", + "required": true, }, - tagValues: { - baseName: "tag_values", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagValues": { + "baseName": "tag_values", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SplitVectorEntryItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SuccessfulSignalUpdateResponse.ts b/packages/datadog-api-client-v1/models/SuccessfulSignalUpdateResponse.ts index 4473c1cb9609..dfb127e50c62 100644 --- a/packages/datadog-api-client-v1/models/SuccessfulSignalUpdateResponse.ts +++ b/packages/datadog-api-client-v1/models/SuccessfulSignalUpdateResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated signal data following a successfully performed update. - */ +*/ export class SuccessfulSignalUpdateResponse { /** * Status of the response. - */ + */ "status"?: string; /** @@ -31,22 +36,48 @@ export class SuccessfulSignalUpdateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SuccessfulSignalUpdateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetDefinition.ts b/packages/datadog-api-client-v1/models/SunburstWidgetDefinition.ts index 758b0bbd448f..46b5eb169c93 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetDefinition.ts @@ -10,47 +10,52 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Sunbursts are spot on to highlight how groups contribute to the total of a query. - */ +*/ export class SunburstWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Show the total value in this widget. - */ + */ "hideTotal"?: boolean; /** * Configuration of the legend. - */ + */ "legend"?: SunburstWidgetLegend; /** * List of sunburst widget requests. - */ + */ "requests": Array; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the Sunburst widget. - */ + */ "type": SunburstWidgetDefinitionType; /** @@ -69,56 +74,82 @@ export class SunburstWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - hideTotal: { - baseName: "hide_total", - type: "boolean", + "hideTotal": { + "baseName": "hide_total", + "type": "boolean", }, - legend: { - baseName: "legend", - type: "SunburstWidgetLegend", + "legend": { + "baseName": "legend", + "type": "SunburstWidgetLegend", }, - requests: { - baseName: "requests", - type: "Array", - required: true, + "requests": { + "baseName": "requests", + "type": "Array", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "SunburstWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SunburstWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SunburstWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/SunburstWidgetDefinitionType.ts index b170cb5b3b4c..2ad632f0647f 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Sunburst widget. - */ +*/ export type SunburstWidgetDefinitionType = typeof SUNBURST | UnparsedObject; -export const SUNBURST = "sunburst"; +export const SUNBURST = 'sunburst'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetLegend.ts b/packages/datadog-api-client-v1/models/SunburstWidgetLegend.ts index 47d941ddee64..cadde0d5fd84 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetLegend.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetLegend.ts @@ -6,13 +6,15 @@ import { SunburstWidgetLegendInlineAutomatic } from "./SunburstWidgetLegendInlineAutomatic"; import { SunburstWidgetLegendTable } from "./SunburstWidgetLegendTable"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Configuration of the legend. - */ +*/ -export type SunburstWidgetLegend = - | SunburstWidgetLegendTable - | SunburstWidgetLegendInlineAutomatic - | UnparsedObject; +export type SunburstWidgetLegend = SunburstWidgetLegendTable | SunburstWidgetLegendInlineAutomatic | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomatic.ts b/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomatic.ts index 5392c784c5b1..ffea3df4ceb1 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomatic.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomatic.ts @@ -5,23 +5,28 @@ */ import { SunburstWidgetLegendInlineAutomaticType } from "./SunburstWidgetLegendInlineAutomaticType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration of inline or automatic legends. - */ +*/ export class SunburstWidgetLegendInlineAutomatic { /** * Whether to hide the percentages of the groups. - */ + */ "hidePercent"?: boolean; /** * Whether to hide the values of the groups. - */ + */ "hideValue"?: boolean; /** * Whether to show the legend inline or let it be automatically generated. - */ + */ "type": SunburstWidgetLegendInlineAutomaticType; /** @@ -40,31 +45,57 @@ export class SunburstWidgetLegendInlineAutomatic { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hidePercent: { - baseName: "hide_percent", - type: "boolean", - }, - hideValue: { - baseName: "hide_value", - type: "boolean", + "hidePercent": { + "baseName": "hide_percent", + "type": "boolean", }, - type: { - baseName: "type", - type: "SunburstWidgetLegendInlineAutomaticType", - required: true, + "hideValue": { + "baseName": "hide_value", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SunburstWidgetLegendInlineAutomaticType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SunburstWidgetLegendInlineAutomatic.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomaticType.ts b/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomaticType.ts index bed073ac96ab..3a2a3105d0e6 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomaticType.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetLegendInlineAutomaticType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether to show the legend inline or let it be automatically generated. - */ +*/ -export type SunburstWidgetLegendInlineAutomaticType = - | typeof INLINE - | typeof AUTOMATIC - | UnparsedObject; -export const INLINE = "inline"; -export const AUTOMATIC = "automatic"; +export type SunburstWidgetLegendInlineAutomaticType = typeof INLINE| typeof AUTOMATIC | UnparsedObject; +export const INLINE = 'inline'; +export const AUTOMATIC = 'automatic'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetLegendTable.ts b/packages/datadog-api-client-v1/models/SunburstWidgetLegendTable.ts index 1ca6b7352af3..85be72dafc0f 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetLegendTable.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetLegendTable.ts @@ -5,15 +5,20 @@ */ import { SunburstWidgetLegendTableType } from "./SunburstWidgetLegendTableType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration of table-based legend. - */ +*/ export class SunburstWidgetLegendTable { /** * Whether or not to show a table legend. - */ + */ "type": SunburstWidgetLegendTableType; /** @@ -32,23 +37,49 @@ export class SunburstWidgetLegendTable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "SunburstWidgetLegendTableType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SunburstWidgetLegendTableType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SunburstWidgetLegendTable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetLegendTableType.ts b/packages/datadog-api-client-v1/models/SunburstWidgetLegendTableType.ts index 6186b8b43a70..84d0c16c35ee 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetLegendTableType.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetLegendTableType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether or not to show a table legend. - */ +*/ -export type SunburstWidgetLegendTableType = - | typeof TABLE - | typeof NONE - | UnparsedObject; -export const TABLE = "table"; -export const NONE = "none"; +export type SunburstWidgetLegendTableType = typeof TABLE| typeof NONE | UnparsedObject; +export const TABLE = 'table'; +export const NONE = 'none'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SunburstWidgetRequest.ts b/packages/datadog-api-client-v1/models/SunburstWidgetRequest.ts index 6b428c6f1442..01bb710e97df 100644 --- a/packages/datadog-api-client-v1/models/SunburstWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/SunburstWidgetRequest.ts @@ -10,67 +10,72 @@ import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; import { WidgetFormula } from "./WidgetFormula"; import { WidgetStyle } from "./WidgetStyle"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request definition of sunburst widget. - */ +*/ export class SunburstWidgetRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "auditQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Widget query. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * Widget style definition. - */ + */ "style"?: WidgetStyle; /** @@ -89,74 +94,100 @@ export class SunburstWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", - }, - auditQuery: { - baseName: "audit_query", - type: "LogQueryDefinition", + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", + "auditQuery": { + "baseName": "audit_query", + "type": "LogQueryDefinition", }, - formulas: { - baseName: "formulas", - type: "Array", + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", }, - q: { - baseName: "q", - type: "string", + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", }, - queries: { - baseName: "queries", - type: "Array", + "q": { + "baseName": "q", + "type": "string", }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", + "queries": { + "baseName": "queries", + "type": "Array", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - style: { - baseName: "style", - type: "WidgetStyle", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "style": { + "baseName": "style", + "type": "WidgetStyle", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SunburstWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPIStep.ts b/packages/datadog-api-client-v1/models/SyntheticsAPIStep.ts index 43eaaaf0328d..67edd32295d9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPIStep.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPIStep.ts @@ -6,13 +6,15 @@ import { SyntheticsAPITestStep } from "./SyntheticsAPITestStep"; import { SyntheticsAPIWaitStep } from "./SyntheticsAPIWaitStep"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The steps used in a Synthetic multi-step API test. - */ +*/ -export type SyntheticsAPIStep = - | SyntheticsAPITestStep - | SyntheticsAPIWaitStep - | UnparsedObject; +export type SyntheticsAPIStep = SyntheticsAPITestStep | SyntheticsAPIWaitStep | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITest.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITest.ts index 76d6035784cd..4620bbce1885 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITest.ts @@ -9,57 +9,62 @@ import { SyntheticsTestDetailsSubType } from "./SyntheticsTestDetailsSubType"; import { SyntheticsTestOptions } from "./SyntheticsTestOptions"; import { SyntheticsTestPauseStatus } from "./SyntheticsTestPauseStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing details about a Synthetic API test. - */ +*/ export class SyntheticsAPITest { /** * Configuration object for a Synthetic API test. - */ + */ "config": SyntheticsAPITestConfig; /** * Array of locations used to run the test. - */ + */ "locations": Array; /** * Notification message associated with the test. - */ + */ "message": string; /** * The associated monitor ID. - */ + */ "monitorId"?: number; /** * Name of the test. - */ + */ "name": string; /** * Object describing the extra options for a Synthetic test. - */ + */ "options": SyntheticsTestOptions; /** * The public ID for the test. - */ + */ "publicId"?: string; /** * Define whether you want to start (`live`) or pause (`paused`) a * Synthetic test. - */ + */ "status"?: SyntheticsTestPauseStatus; /** * The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, * `dns`, `icmp`, `udp`, `websocket`, `grpc` or `multi`. - */ + */ "subtype"?: SyntheticsTestDetailsSubType; /** * Array of tags attached to the test. - */ + */ "tags"?: Array; /** * Type of the Synthetic test, `api`. - */ + */ "type": SyntheticsAPITestType; /** @@ -78,69 +83,95 @@ export class SyntheticsAPITest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "SyntheticsAPITestConfig", - required: true, - }, - locations: { - baseName: "locations", - type: "Array", - required: true, + "config": { + "baseName": "config", + "type": "SyntheticsAPITestConfig", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "locations": { + "baseName": "locations", + "type": "Array", + "required": true, }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", }, - options: { - baseName: "options", - type: "SyntheticsTestOptions", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - publicId: { - baseName: "public_id", - type: "string", + "options": { + "baseName": "options", + "type": "SyntheticsTestOptions", + "required": true, }, - status: { - baseName: "status", - type: "SyntheticsTestPauseStatus", + "publicId": { + "baseName": "public_id", + "type": "string", }, - subtype: { - baseName: "subtype", - type: "SyntheticsTestDetailsSubType", + "status": { + "baseName": "status", + "type": "SyntheticsTestPauseStatus", }, - tags: { - baseName: "tags", - type: "Array", + "subtype": { + "baseName": "subtype", + "type": "SyntheticsTestDetailsSubType", }, - type: { - baseName: "type", - type: "SyntheticsAPITestType", - required: true, + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAPITestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestConfig.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestConfig.ts index bb3c596a1d51..e55c2de9ce41 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestConfig.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestConfig.ts @@ -8,31 +8,36 @@ import { SyntheticsAssertion } from "./SyntheticsAssertion"; import { SyntheticsConfigVariable } from "./SyntheticsConfigVariable"; import { SyntheticsTestRequest } from "./SyntheticsTestRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration object for a Synthetic API test. - */ +*/ export class SyntheticsAPITestConfig { /** * Array of assertions used for the test. Required for single API tests. - */ + */ "assertions"?: Array; /** * Array of variables used for the test. - */ + */ "configVariables"?: Array; /** * Object describing the Synthetic test request. - */ + */ "request"?: SyntheticsTestRequest; /** * When the test subtype is `multi`, the steps of the test. - */ + */ "steps"?: Array; /** * Variables defined from JavaScript code. - */ + */ "variablesFromScript"?: string; /** @@ -51,38 +56,64 @@ export class SyntheticsAPITestConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assertions: { - baseName: "assertions", - type: "Array", + "assertions": { + "baseName": "assertions", + "type": "Array", }, - configVariables: { - baseName: "configVariables", - type: "Array", + "configVariables": { + "baseName": "configVariables", + "type": "Array", }, - request: { - baseName: "request", - type: "SyntheticsTestRequest", + "request": { + "baseName": "request", + "type": "SyntheticsTestRequest", }, - steps: { - baseName: "steps", - type: "Array", + "steps": { + "baseName": "steps", + "type": "Array", }, - variablesFromScript: { - baseName: "variablesFromScript", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "variablesFromScript": { + "baseName": "variablesFromScript", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultData.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultData.ts index f1f8108237da..5e00209d2d18 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultData.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultData.ts @@ -8,48 +8,53 @@ import { SyntheticsSSLCertificate } from "./SyntheticsSSLCertificate"; import { SyntheticsTestProcessStatus } from "./SyntheticsTestProcessStatus"; import { SyntheticsTiming } from "./SyntheticsTiming"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing results for your Synthetic API test. - */ +*/ export class SyntheticsAPITestResultData { /** * Object describing the SSL certificate used for a Synthetic test. - */ + */ "cert"?: SyntheticsSSLCertificate; /** * Status of a Synthetic test. - */ + */ "eventType"?: SyntheticsTestProcessStatus; /** * The API test failure details. - */ + */ "failure"?: SyntheticsApiTestResultFailure; /** * The API test HTTP status code. - */ + */ "httpStatusCode"?: number; /** * Request header object used for the API test. - */ - "requestHeaders"?: { [key: string]: any }; + */ + "requestHeaders"?: { [key: string]: any; }; /** * Response body returned for the API test. - */ + */ "responseBody"?: string; /** * Response headers returned for the API test. - */ - "responseHeaders"?: { [key: string]: any }; + */ + "responseHeaders"?: { [key: string]: any; }; /** * Global size in byte of the API test response. - */ + */ "responseSize"?: number; /** * Object containing all metrics and their values collected for a Synthetic API test. * See the [Synthetic Monitoring Metrics documentation](https://docs.datadoghq.com/synthetics/metrics/). - */ + */ "timings"?: SyntheticsTiming; /** @@ -68,56 +73,82 @@ export class SyntheticsAPITestResultData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cert: { - baseName: "cert", - type: "SyntheticsSSLCertificate", + "cert": { + "baseName": "cert", + "type": "SyntheticsSSLCertificate", }, - eventType: { - baseName: "eventType", - type: "SyntheticsTestProcessStatus", + "eventType": { + "baseName": "eventType", + "type": "SyntheticsTestProcessStatus", }, - failure: { - baseName: "failure", - type: "SyntheticsApiTestResultFailure", + "failure": { + "baseName": "failure", + "type": "SyntheticsApiTestResultFailure", }, - httpStatusCode: { - baseName: "httpStatusCode", - type: "number", - format: "int64", + "httpStatusCode": { + "baseName": "httpStatusCode", + "type": "number", + "format": "int64", }, - requestHeaders: { - baseName: "requestHeaders", - type: "{ [key: string]: any; }", + "requestHeaders": { + "baseName": "requestHeaders", + "type": "{ [key: string]: any; }", }, - responseBody: { - baseName: "responseBody", - type: "string", + "responseBody": { + "baseName": "responseBody", + "type": "string", }, - responseHeaders: { - baseName: "responseHeaders", - type: "{ [key: string]: any; }", + "responseHeaders": { + "baseName": "responseHeaders", + "type": "{ [key: string]: any; }", }, - responseSize: { - baseName: "responseSize", - type: "number", - format: "int64", + "responseSize": { + "baseName": "responseSize", + "type": "number", + "format": "int64", }, - timings: { - baseName: "timings", - type: "SyntheticsTiming", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timings": { + "baseName": "timings", + "type": "SyntheticsTiming", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestResultData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFull.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFull.ts index 669ddb66e7a1..571da2c152b6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFull.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFull.ts @@ -7,42 +7,47 @@ import { SyntheticsAPITestResultData } from "./SyntheticsAPITestResultData"; import { SyntheticsAPITestResultFullCheck } from "./SyntheticsAPITestResultFullCheck"; import { SyntheticsTestMonitorStatus } from "./SyntheticsTestMonitorStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object returned describing a API test result. - */ +*/ export class SyntheticsAPITestResultFull { /** * Object describing the API test configuration. - */ + */ "check"?: SyntheticsAPITestResultFullCheck; /** * When the API test was conducted. - */ + */ "checkTime"?: number; /** * Version of the API test used. - */ + */ "checkVersion"?: number; /** * Locations for which to query the API test results. - */ + */ "probeDc"?: string; /** * Object containing results for your Synthetic API test. - */ + */ "result"?: SyntheticsAPITestResultData; /** * ID of the API test result. - */ + */ "resultId"?: string; /** * The status of your Synthetic monitor. * * `O` for not triggered * * `1` for triggered * * `2` for no data - */ + */ "status"?: SyntheticsTestMonitorStatus; /** @@ -61,49 +66,75 @@ export class SyntheticsAPITestResultFull { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - check: { - baseName: "check", - type: "SyntheticsAPITestResultFullCheck", - }, - checkTime: { - baseName: "check_time", - type: "number", - format: "double", + "check": { + "baseName": "check", + "type": "SyntheticsAPITestResultFullCheck", }, - checkVersion: { - baseName: "check_version", - type: "number", - format: "int64", + "checkTime": { + "baseName": "check_time", + "type": "number", + "format": "double", }, - probeDc: { - baseName: "probe_dc", - type: "string", + "checkVersion": { + "baseName": "check_version", + "type": "number", + "format": "int64", }, - result: { - baseName: "result", - type: "SyntheticsAPITestResultData", + "probeDc": { + "baseName": "probe_dc", + "type": "string", }, - resultId: { - baseName: "result_id", - type: "string", + "result": { + "baseName": "result", + "type": "SyntheticsAPITestResultData", }, - status: { - baseName: "status", - type: "SyntheticsTestMonitorStatus", - format: "int64", + "resultId": { + "baseName": "result_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SyntheticsTestMonitorStatus", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestResultFull.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFullCheck.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFullCheck.ts index e066fbad8dd9..466c09b7afe4 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFullCheck.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultFullCheck.ts @@ -5,15 +5,20 @@ */ import { SyntheticsTestConfig } from "./SyntheticsTestConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the API test configuration. - */ +*/ export class SyntheticsAPITestResultFullCheck { /** * Configuration object for a Synthetic test. - */ + */ "config": SyntheticsTestConfig; /** @@ -32,23 +37,49 @@ export class SyntheticsAPITestResultFullCheck { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "SyntheticsTestConfig", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "config": { + "baseName": "config", + "type": "SyntheticsTestConfig", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestResultFullCheck.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShort.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShort.ts index c85634227e74..4c324ab75764 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShort.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShort.ts @@ -6,34 +6,39 @@ import { SyntheticsAPITestResultShortResult } from "./SyntheticsAPITestResultShortResult"; import { SyntheticsTestMonitorStatus } from "./SyntheticsTestMonitorStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with the results of a single Synthetic API test. - */ +*/ export class SyntheticsAPITestResultShort { /** * Last time the API test was performed. - */ + */ "checkTime"?: number; /** * Location from which the API test was performed. - */ + */ "probeDc"?: string; /** * Result of the last API test run. - */ + */ "result"?: SyntheticsAPITestResultShortResult; /** * ID of the API test result. - */ + */ "resultId"?: string; /** * The status of your Synthetic monitor. * * `O` for not triggered * * `1` for triggered * * `2` for no data - */ + */ "status"?: SyntheticsTestMonitorStatus; /** @@ -52,40 +57,66 @@ export class SyntheticsAPITestResultShort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - checkTime: { - baseName: "check_time", - type: "number", - format: "double", + "checkTime": { + "baseName": "check_time", + "type": "number", + "format": "double", }, - probeDc: { - baseName: "probe_dc", - type: "string", + "probeDc": { + "baseName": "probe_dc", + "type": "string", }, - result: { - baseName: "result", - type: "SyntheticsAPITestResultShortResult", + "result": { + "baseName": "result", + "type": "SyntheticsAPITestResultShortResult", }, - resultId: { - baseName: "result_id", - type: "string", + "resultId": { + "baseName": "result_id", + "type": "string", }, - status: { - baseName: "status", - type: "SyntheticsTestMonitorStatus", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SyntheticsTestMonitorStatus", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestResultShort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShortResult.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShortResult.ts index 657fabfee13f..ba78ad94cc7f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShortResult.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShortResult.ts @@ -5,20 +5,25 @@ */ import { SyntheticsTiming } from "./SyntheticsTiming"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Result of the last API test run. - */ +*/ export class SyntheticsAPITestResultShortResult { /** * Describes if the test run has passed or failed. - */ + */ "passed"?: boolean; /** * Object containing all metrics and their values collected for a Synthetic API test. * See the [Synthetic Monitoring Metrics documentation](https://docs.datadoghq.com/synthetics/metrics/). - */ + */ "timings"?: SyntheticsTiming; /** @@ -37,26 +42,52 @@ export class SyntheticsAPITestResultShortResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - passed: { - baseName: "passed", - type: "boolean", + "passed": { + "baseName": "passed", + "type": "boolean", }, - timings: { - baseName: "timings", - type: "SyntheticsTiming", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timings": { + "baseName": "timings", + "type": "SyntheticsTiming", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestResultShortResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.ts index 9438a1af1528..09b498ce6a26 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.ts @@ -9,52 +9,57 @@ import { SyntheticsParsingOptions } from "./SyntheticsParsingOptions"; import { SyntheticsTestOptionsRetry } from "./SyntheticsTestOptionsRetry"; import { SyntheticsTestRequest } from "./SyntheticsTestRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Test step used in a Synthetic multi-step API test. - */ +*/ export class SyntheticsAPITestStep { /** * Determines whether or not to continue with test if this step fails. - */ + */ "allowFailure"?: boolean; /** * Array of assertions used for the test. - */ + */ "assertions": Array; /** * Determines whether or not to exit the test if the step succeeds. - */ + */ "exitIfSucceed"?: boolean; /** * Array of values to parse and save as variables from the response. - */ + */ "extractedValues"?: Array; /** * Generate variables using JavaScript. - */ + */ "extractedValuesFromScript"?: string; /** * Determines whether or not to consider the entire test as failed if this step fails. * Can be used only if `allowFailure` is `true`. - */ + */ "isCritical"?: boolean; /** * The name of the step. - */ + */ "name": string; /** * Object describing the Synthetic test request. - */ + */ "request": SyntheticsTestRequest; /** * Object describing the retry strategy to apply to a Synthetic test. - */ + */ "retry"?: SyntheticsTestOptionsRetry; /** * The subtype of the Synthetic multi-step API test step. - */ + */ "subtype": SyntheticsAPITestStepSubtype; /** @@ -73,62 +78,88 @@ export class SyntheticsAPITestStep { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowFailure: { - baseName: "allowFailure", - type: "boolean", - }, - assertions: { - baseName: "assertions", - type: "Array", - required: true, + "allowFailure": { + "baseName": "allowFailure", + "type": "boolean", }, - exitIfSucceed: { - baseName: "exitIfSucceed", - type: "boolean", + "assertions": { + "baseName": "assertions", + "type": "Array", + "required": true, }, - extractedValues: { - baseName: "extractedValues", - type: "Array", + "exitIfSucceed": { + "baseName": "exitIfSucceed", + "type": "boolean", }, - extractedValuesFromScript: { - baseName: "extractedValuesFromScript", - type: "string", + "extractedValues": { + "baseName": "extractedValues", + "type": "Array", }, - isCritical: { - baseName: "isCritical", - type: "boolean", + "extractedValuesFromScript": { + "baseName": "extractedValuesFromScript", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "isCritical": { + "baseName": "isCritical", + "type": "boolean", }, - request: { - baseName: "request", - type: "SyntheticsTestRequest", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - retry: { - baseName: "retry", - type: "SyntheticsTestOptionsRetry", + "request": { + "baseName": "request", + "type": "SyntheticsTestRequest", + "required": true, }, - subtype: { - baseName: "subtype", - type: "SyntheticsAPITestStepSubtype", - required: true, + "retry": { + "baseName": "retry", + "type": "SyntheticsTestOptionsRetry", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "subtype": { + "baseName": "subtype", + "type": "SyntheticsAPITestStepSubtype", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPITestStep.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts index 421e99734513..fe21d2ab9862 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The subtype of the Synthetic multi-step API test step. - */ +*/ -export type SyntheticsAPITestStepSubtype = - | typeof HTTP - | typeof GRPC - | UnparsedObject; -export const HTTP = "http"; -export const GRPC = "grpc"; +export type SyntheticsAPITestStepSubtype = typeof HTTP| typeof GRPC | UnparsedObject; +export const HTTP = 'http'; +export const GRPC = 'grpc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestType.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestType.ts index a896acfa6c12..07f1f68bbd69 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Synthetic test, `api`. - */ +*/ export type SyntheticsAPITestType = typeof API | UnparsedObject; -export const API = "api"; +export const API = 'api'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStep.ts b/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStep.ts index 6cd8bc8442d7..073d73d1802e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStep.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStep.ts @@ -5,23 +5,28 @@ */ import { SyntheticsAPIWaitStepSubtype } from "./SyntheticsAPIWaitStepSubtype"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Wait step used in a Synthetic multi-step API test. - */ +*/ export class SyntheticsAPIWaitStep { /** * The name of the step. - */ + */ "name": string; /** * The subtype of the Synthetic multi-step API wait step. - */ + */ "subtype": SyntheticsAPIWaitStepSubtype; /** * The time to wait in seconds. Minimum value: 0. Maximum value: 180. - */ + */ "value": number; /** @@ -40,34 +45,60 @@ export class SyntheticsAPIWaitStep { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - subtype: { - baseName: "subtype", - type: "SyntheticsAPIWaitStepSubtype", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "number", - required: true, - format: "int32", + "subtype": { + "baseName": "subtype", + "type": "SyntheticsAPIWaitStepSubtype", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "required": true, + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAPIWaitStep.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStepSubtype.ts b/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStepSubtype.ts index e5e15fd6e0a6..85c06faf09c6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStepSubtype.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPIWaitStepSubtype.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The subtype of the Synthetic multi-step API wait step. - */ +*/ export type SyntheticsAPIWaitStepSubtype = typeof WAIT | UnparsedObject; -export const WAIT = "wait"; +export const WAIT = 'wait'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsApiTestFailureCode.ts b/packages/datadog-api-client-v1/models/SyntheticsApiTestFailureCode.ts index a1c841d5e761..e4dd22ca2bb3 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsApiTestFailureCode.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsApiTestFailureCode.ts @@ -4,65 +4,41 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Error code that can be returned by a Synthetic test. - */ +*/ -export type SyntheticsApiTestFailureCode = - | typeof BODY_TOO_LARGE - | typeof DENIED - | typeof TOO_MANY_REDIRECTS - | typeof AUTHENTICATION_ERROR - | typeof DECRYPTION - | typeof INVALID_CHAR_IN_HEADER - | typeof HEADER_TOO_LARGE - | typeof HEADERS_INCOMPATIBLE_CONTENT_LENGTH - | typeof INVALID_REQUEST - | typeof REQUIRES_UPDATE - | typeof UNESCAPED_CHARACTERS_IN_REQUEST_PATH - | typeof MALFORMED_RESPONSE - | typeof INCORRECT_ASSERTION - | typeof CONNREFUSED - | typeof CONNRESET - | typeof DNS - | typeof HOSTUNREACH - | typeof NETUNREACH - | typeof TIMEOUT - | typeof SSL - | typeof OCSP - | typeof INVALID_TEST - | typeof TUNNEL - | typeof WEBSOCKET - | typeof UNKNOWN - | typeof INTERNAL_ERROR - | UnparsedObject; -export const BODY_TOO_LARGE = "BODY_TOO_LARGE"; -export const DENIED = "DENIED"; -export const TOO_MANY_REDIRECTS = "TOO_MANY_REDIRECTS"; -export const AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR"; -export const DECRYPTION = "DECRYPTION"; -export const INVALID_CHAR_IN_HEADER = "INVALID_CHAR_IN_HEADER"; -export const HEADER_TOO_LARGE = "HEADER_TOO_LARGE"; -export const HEADERS_INCOMPATIBLE_CONTENT_LENGTH = - "HEADERS_INCOMPATIBLE_CONTENT_LENGTH"; -export const INVALID_REQUEST = "INVALID_REQUEST"; -export const REQUIRES_UPDATE = "REQUIRES_UPDATE"; -export const UNESCAPED_CHARACTERS_IN_REQUEST_PATH = - "UNESCAPED_CHARACTERS_IN_REQUEST_PATH"; -export const MALFORMED_RESPONSE = "MALFORMED_RESPONSE"; -export const INCORRECT_ASSERTION = "INCORRECT_ASSERTION"; -export const CONNREFUSED = "CONNREFUSED"; -export const CONNRESET = "CONNRESET"; -export const DNS = "DNS"; -export const HOSTUNREACH = "HOSTUNREACH"; -export const NETUNREACH = "NETUNREACH"; -export const TIMEOUT = "TIMEOUT"; -export const SSL = "SSL"; -export const OCSP = "OCSP"; -export const INVALID_TEST = "INVALID_TEST"; -export const TUNNEL = "TUNNEL"; -export const WEBSOCKET = "WEBSOCKET"; -export const UNKNOWN = "UNKNOWN"; -export const INTERNAL_ERROR = "INTERNAL_ERROR"; +export type SyntheticsApiTestFailureCode = typeof BODY_TOO_LARGE| typeof DENIED| typeof TOO_MANY_REDIRECTS| typeof AUTHENTICATION_ERROR| typeof DECRYPTION| typeof INVALID_CHAR_IN_HEADER| typeof HEADER_TOO_LARGE| typeof HEADERS_INCOMPATIBLE_CONTENT_LENGTH| typeof INVALID_REQUEST| typeof REQUIRES_UPDATE| typeof UNESCAPED_CHARACTERS_IN_REQUEST_PATH| typeof MALFORMED_RESPONSE| typeof INCORRECT_ASSERTION| typeof CONNREFUSED| typeof CONNRESET| typeof DNS| typeof HOSTUNREACH| typeof NETUNREACH| typeof TIMEOUT| typeof SSL| typeof OCSP| typeof INVALID_TEST| typeof TUNNEL| typeof WEBSOCKET| typeof UNKNOWN| typeof INTERNAL_ERROR | UnparsedObject; +export const BODY_TOO_LARGE = 'BODY_TOO_LARGE'; +export const DENIED = 'DENIED'; +export const TOO_MANY_REDIRECTS = 'TOO_MANY_REDIRECTS'; +export const AUTHENTICATION_ERROR = 'AUTHENTICATION_ERROR'; +export const DECRYPTION = 'DECRYPTION'; +export const INVALID_CHAR_IN_HEADER = 'INVALID_CHAR_IN_HEADER'; +export const HEADER_TOO_LARGE = 'HEADER_TOO_LARGE'; +export const HEADERS_INCOMPATIBLE_CONTENT_LENGTH = 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH'; +export const INVALID_REQUEST = 'INVALID_REQUEST'; +export const REQUIRES_UPDATE = 'REQUIRES_UPDATE'; +export const UNESCAPED_CHARACTERS_IN_REQUEST_PATH = 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH'; +export const MALFORMED_RESPONSE = 'MALFORMED_RESPONSE'; +export const INCORRECT_ASSERTION = 'INCORRECT_ASSERTION'; +export const CONNREFUSED = 'CONNREFUSED'; +export const CONNRESET = 'CONNRESET'; +export const DNS = 'DNS'; +export const HOSTUNREACH = 'HOSTUNREACH'; +export const NETUNREACH = 'NETUNREACH'; +export const TIMEOUT = 'TIMEOUT'; +export const SSL = 'SSL'; +export const OCSP = 'OCSP'; +export const INVALID_TEST = 'INVALID_TEST'; +export const TUNNEL = 'TUNNEL'; +export const WEBSOCKET = 'WEBSOCKET'; +export const UNKNOWN = 'UNKNOWN'; +export const INTERNAL_ERROR = 'INTERNAL_ERROR'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsApiTestResultFailure.ts b/packages/datadog-api-client-v1/models/SyntheticsApiTestResultFailure.ts index f8d0367854f7..0b6786597fe5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsApiTestResultFailure.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsApiTestResultFailure.ts @@ -5,19 +5,24 @@ */ import { SyntheticsApiTestFailureCode } from "./SyntheticsApiTestFailureCode"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The API test failure details. - */ +*/ export class SyntheticsApiTestResultFailure { /** * Error code that can be returned by a Synthetic test. - */ + */ "code"?: SyntheticsApiTestFailureCode; /** * The API test error message. - */ + */ "message"?: string; /** @@ -36,26 +41,52 @@ export class SyntheticsApiTestResultFailure { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "SyntheticsApiTestFailureCode", + "code": { + "baseName": "code", + "type": "SyntheticsApiTestFailureCode", }, - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsApiTestResultFailure.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertion.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertion.ts index 449488e2ba48..594d5866dba9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertion.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertion.ts @@ -10,18 +10,16 @@ import { SyntheticsAssertionJSONSchemaTarget } from "./SyntheticsAssertionJSONSc import { SyntheticsAssertionTarget } from "./SyntheticsAssertionTarget"; import { SyntheticsAssertionXPathTarget } from "./SyntheticsAssertionXPathTarget"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Object describing the assertions type, their associated operator, * which property they apply, and upon which target. - */ +*/ -export type SyntheticsAssertion = - | SyntheticsAssertionTarget - | SyntheticsAssertionBodyHashTarget - | SyntheticsAssertionJSONPathTarget - | SyntheticsAssertionJSONSchemaTarget - | SyntheticsAssertionXPathTarget - | SyntheticsAssertionJavascript - | UnparsedObject; +export type SyntheticsAssertion = SyntheticsAssertionTarget | SyntheticsAssertionBodyHashTarget | SyntheticsAssertionJSONPathTarget | SyntheticsAssertionJSONSchemaTarget | SyntheticsAssertionXPathTarget | SyntheticsAssertionJavascript | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashOperator.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashOperator.ts index 73acc4cd6a58..d6c93f13c998 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashOperator.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashOperator.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Assertion operator to apply. - */ +*/ -export type SyntheticsAssertionBodyHashOperator = - | typeof MD5 - | typeof SHA1 - | typeof SHA256 - | UnparsedObject; -export const MD5 = "md5"; -export const SHA1 = "sha1"; -export const SHA256 = "sha256"; +export type SyntheticsAssertionBodyHashOperator = typeof MD5| typeof SHA1| typeof SHA256 | UnparsedObject; +export const MD5 = 'md5'; +export const SHA1 = 'sha1'; +export const SHA256 = 'sha256'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashTarget.ts index 82d124169e4b..fa9b7ec8c0a6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashTarget.ts @@ -6,23 +6,28 @@ import { SyntheticsAssertionBodyHashOperator } from "./SyntheticsAssertionBodyHashOperator"; import { SyntheticsAssertionBodyHashType } from "./SyntheticsAssertionBodyHashType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An assertion which targets body hash. - */ +*/ export class SyntheticsAssertionBodyHashTarget { /** * Assertion operator to apply. - */ + */ "operator": SyntheticsAssertionBodyHashOperator; /** * Value used by the operator. - */ + */ "target": any; /** * Type of the assertion. - */ + */ "type": SyntheticsAssertionBodyHashType; /** @@ -41,33 +46,59 @@ export class SyntheticsAssertionBodyHashTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "SyntheticsAssertionBodyHashOperator", - required: true, - }, - target: { - baseName: "target", - type: "any", - required: true, + "operator": { + "baseName": "operator", + "type": "SyntheticsAssertionBodyHashOperator", + "required": true, }, - type: { - baseName: "type", - type: "SyntheticsAssertionBodyHashType", - required: true, + "target": { + "baseName": "target", + "type": "any", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAssertionBodyHashType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionBodyHashTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashType.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashType.ts index 91a2a66bb3cb..7b860018848d 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionBodyHashType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the assertion. - */ +*/ export type SyntheticsAssertionBodyHashType = typeof BODY_HASH | UnparsedObject; -export const BODY_HASH = "bodyHash"; +export const BODY_HASH = 'bodyHash'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathOperator.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathOperator.ts index aad549f4d893..30a5d8b32740 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathOperator.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathOperator.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Assertion operator to apply. - */ +*/ -export type SyntheticsAssertionJSONPathOperator = - | typeof VALIDATES_JSON_PATH - | UnparsedObject; -export const VALIDATES_JSON_PATH = "validatesJSONPath"; +export type SyntheticsAssertionJSONPathOperator = typeof VALIDATES_JSON_PATH | UnparsedObject; +export const VALIDATES_JSON_PATH = 'validatesJSONPath'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTarget.ts index 92a1bda4d37f..34729c29a93c 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTarget.ts @@ -7,27 +7,32 @@ import { SyntheticsAssertionJSONPathOperator } from "./SyntheticsAssertionJSONPa import { SyntheticsAssertionJSONPathTargetTarget } from "./SyntheticsAssertionJSONPathTargetTarget"; import { SyntheticsAssertionType } from "./SyntheticsAssertionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An assertion for the `validatesJSONPath` operator. - */ +*/ export class SyntheticsAssertionJSONPathTarget { /** * Assertion operator to apply. - */ + */ "operator": SyntheticsAssertionJSONPathOperator; /** * The associated assertion property. - */ + */ "property"?: string; /** * Composed target for `validatesJSONPath` operator. - */ + */ "target"?: SyntheticsAssertionJSONPathTargetTarget; /** * Type of the assertion. - */ + */ "type": SyntheticsAssertionType; /** @@ -46,36 +51,62 @@ export class SyntheticsAssertionJSONPathTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "SyntheticsAssertionJSONPathOperator", - required: true, + "operator": { + "baseName": "operator", + "type": "SyntheticsAssertionJSONPathOperator", + "required": true, }, - property: { - baseName: "property", - type: "string", + "property": { + "baseName": "property", + "type": "string", }, - target: { - baseName: "target", - type: "SyntheticsAssertionJSONPathTargetTarget", + "target": { + "baseName": "target", + "type": "SyntheticsAssertionJSONPathTargetTarget", }, - type: { - baseName: "type", - type: "SyntheticsAssertionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAssertionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionJSONPathTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTargetTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTargetTarget.ts index 34877f61afc6..f30ec9812666 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTargetTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONPathTargetTarget.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Composed target for `validatesJSONPath` operator. - */ +*/ export class SyntheticsAssertionJSONPathTargetTarget { /** * The element from the list of results to assert on. To choose from the first element in the list `firstElementMatches`, every element in the list `everyElementMatches`, at least one element in the list `atLeastOneElementMatches` or the serialized value of the list `serializationMatches`. - */ + */ "elementsOperator"?: string; /** * The JSON path to assert. - */ + */ "jsonPath"?: string; /** * The specific operator to use on the path. - */ + */ "operator"?: string; /** * The path target value to compare to. - */ + */ "targetValue"?: any; /** @@ -43,34 +48,60 @@ export class SyntheticsAssertionJSONPathTargetTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elementsOperator: { - baseName: "elementsOperator", - type: "string", + "elementsOperator": { + "baseName": "elementsOperator", + "type": "string", }, - jsonPath: { - baseName: "jsonPath", - type: "string", + "jsonPath": { + "baseName": "jsonPath", + "type": "string", }, - operator: { - baseName: "operator", - type: "string", + "operator": { + "baseName": "operator", + "type": "string", }, - targetValue: { - baseName: "targetValue", - type: "any", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "targetValue": { + "baseName": "targetValue", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionJSONPathTargetTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaMetaSchema.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaMetaSchema.ts index 337b589857c6..45647a12291e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaMetaSchema.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaMetaSchema.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON Schema meta-schema version used in the assertion. - */ +*/ -export type SyntheticsAssertionJSONSchemaMetaSchema = - | typeof DRAFT_07 - | typeof DRAFT_06 - | UnparsedObject; -export const DRAFT_07 = "draft-07"; -export const DRAFT_06 = "draft-06"; +export type SyntheticsAssertionJSONSchemaMetaSchema = typeof DRAFT_07| typeof DRAFT_06 | UnparsedObject; +export const DRAFT_07 = 'draft-07'; +export const DRAFT_06 = 'draft-06'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaOperator.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaOperator.ts index 43b6a1d7f475..12f178a228ad 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaOperator.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaOperator.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Assertion operator to apply. - */ +*/ -export type SyntheticsAssertionJSONSchemaOperator = - | typeof VALIDATES_JSON_SCHEMA - | UnparsedObject; -export const VALIDATES_JSON_SCHEMA = "validatesJSONSchema"; +export type SyntheticsAssertionJSONSchemaOperator = typeof VALIDATES_JSON_SCHEMA | UnparsedObject; +export const VALIDATES_JSON_SCHEMA = 'validatesJSONSchema'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTarget.ts index 33561f4d09f8..227999cf165d 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTarget.ts @@ -7,23 +7,28 @@ import { SyntheticsAssertionJSONSchemaOperator } from "./SyntheticsAssertionJSON import { SyntheticsAssertionJSONSchemaTargetTarget } from "./SyntheticsAssertionJSONSchemaTargetTarget"; import { SyntheticsAssertionType } from "./SyntheticsAssertionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An assertion for the `validatesJSONSchema` operator. - */ +*/ export class SyntheticsAssertionJSONSchemaTarget { /** * Assertion operator to apply. - */ + */ "operator": SyntheticsAssertionJSONSchemaOperator; /** * Composed target for `validatesJSONSchema` operator. - */ + */ "target"?: SyntheticsAssertionJSONSchemaTargetTarget; /** * Type of the assertion. - */ + */ "type": SyntheticsAssertionType; /** @@ -42,32 +47,58 @@ export class SyntheticsAssertionJSONSchemaTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "SyntheticsAssertionJSONSchemaOperator", - required: true, - }, - target: { - baseName: "target", - type: "SyntheticsAssertionJSONSchemaTargetTarget", + "operator": { + "baseName": "operator", + "type": "SyntheticsAssertionJSONSchemaOperator", + "required": true, }, - type: { - baseName: "type", - type: "SyntheticsAssertionType", - required: true, + "target": { + "baseName": "target", + "type": "SyntheticsAssertionJSONSchemaTargetTarget", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAssertionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionJSONSchemaTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTargetTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTargetTarget.ts index 9e3b105884ba..1cd45ebc57e2 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTargetTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJSONSchemaTargetTarget.ts @@ -5,19 +5,24 @@ */ import { SyntheticsAssertionJSONSchemaMetaSchema } from "./SyntheticsAssertionJSONSchemaMetaSchema"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Composed target for `validatesJSONSchema` operator. - */ +*/ export class SyntheticsAssertionJSONSchemaTargetTarget { /** * The JSON Schema to assert. - */ + */ "jsonSchema"?: string; /** * The JSON Schema meta-schema version used in the assertion. - */ + */ "metaSchema"?: SyntheticsAssertionJSONSchemaMetaSchema; /** @@ -36,26 +41,52 @@ export class SyntheticsAssertionJSONSchemaTargetTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - jsonSchema: { - baseName: "jsonSchema", - type: "string", + "jsonSchema": { + "baseName": "jsonSchema", + "type": "string", }, - metaSchema: { - baseName: "metaSchema", - type: "SyntheticsAssertionJSONSchemaMetaSchema", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metaSchema": { + "baseName": "metaSchema", + "type": "SyntheticsAssertionJSONSchemaMetaSchema", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionJSONSchemaTargetTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascript.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascript.ts index 75c96c6b6133..aa5ee4c5f0b3 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascript.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascript.ts @@ -5,19 +5,24 @@ */ import { SyntheticsAssertionJavascriptType } from "./SyntheticsAssertionJavascriptType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A JavaScript assertion. - */ +*/ export class SyntheticsAssertionJavascript { /** * The JavaScript code that performs the assertions. - */ + */ "code": string; /** * Type of the assertion. - */ + */ "type": SyntheticsAssertionJavascriptType; /** @@ -36,28 +41,54 @@ export class SyntheticsAssertionJavascript { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - required: true, + "code": { + "baseName": "code", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "SyntheticsAssertionJavascriptType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAssertionJavascriptType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionJavascript.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascriptType.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascriptType.ts index 6de89d94b022..214bad221247 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascriptType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionJavascriptType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the assertion. - */ +*/ -export type SyntheticsAssertionJavascriptType = - | typeof JAVASCRIPT - | UnparsedObject; -export const JAVASCRIPT = "javascript"; +export type SyntheticsAssertionJavascriptType = typeof JAVASCRIPT | UnparsedObject; +export const JAVASCRIPT = 'javascript'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.ts index 93017504e80d..7848909848e4 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.ts @@ -4,41 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Assertion operator to apply. - */ +*/ -export type SyntheticsAssertionOperator = - | typeof CONTAINS - | typeof DOES_NOT_CONTAIN - | typeof IS - | typeof IS_NOT - | typeof LESS_THAN - | typeof LESS_THAN_OR_EQUAL - | typeof MORE_THAN - | typeof MORE_THAN_OR_EQUAL - | typeof MATCHES - | typeof DOES_NOT_MATCH - | typeof VALIDATES - | typeof IS_IN_MORE_DAYS_THAN - | typeof IS_IN_LESS_DAYS_THAN - | typeof DOES_NOT_EXIST - | typeof IS_UNDEFINED - | UnparsedObject; -export const CONTAINS = "contains"; -export const DOES_NOT_CONTAIN = "doesNotContain"; -export const IS = "is"; -export const IS_NOT = "isNot"; -export const LESS_THAN = "lessThan"; -export const LESS_THAN_OR_EQUAL = "lessThanOrEqual"; -export const MORE_THAN = "moreThan"; -export const MORE_THAN_OR_EQUAL = "moreThanOrEqual"; -export const MATCHES = "matches"; -export const DOES_NOT_MATCH = "doesNotMatch"; -export const VALIDATES = "validates"; -export const IS_IN_MORE_DAYS_THAN = "isInMoreThan"; -export const IS_IN_LESS_DAYS_THAN = "isInLessThan"; -export const DOES_NOT_EXIST = "doesNotExist"; -export const IS_UNDEFINED = "isUndefined"; +export type SyntheticsAssertionOperator = typeof CONTAINS| typeof DOES_NOT_CONTAIN| typeof IS| typeof IS_NOT| typeof LESS_THAN| typeof LESS_THAN_OR_EQUAL| typeof MORE_THAN| typeof MORE_THAN_OR_EQUAL| typeof MATCHES| typeof DOES_NOT_MATCH| typeof VALIDATES| typeof IS_IN_MORE_DAYS_THAN| typeof IS_IN_LESS_DAYS_THAN| typeof DOES_NOT_EXIST| typeof IS_UNDEFINED | UnparsedObject; +export const CONTAINS = 'contains'; +export const DOES_NOT_CONTAIN = 'doesNotContain'; +export const IS = 'is'; +export const IS_NOT = 'isNot'; +export const LESS_THAN = 'lessThan'; +export const LESS_THAN_OR_EQUAL = 'lessThanOrEqual'; +export const MORE_THAN = 'moreThan'; +export const MORE_THAN_OR_EQUAL = 'moreThanOrEqual'; +export const MATCHES = 'matches'; +export const DOES_NOT_MATCH = 'doesNotMatch'; +export const VALIDATES = 'validates'; +export const IS_IN_MORE_DAYS_THAN = 'isInMoreThan'; +export const IS_IN_LESS_DAYS_THAN = 'isInLessThan'; +export const DOES_NOT_EXIST = 'doesNotExist'; +export const IS_UNDEFINED = 'isUndefined'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.ts index 8aba8e635a68..41e4d637c4fd 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.ts @@ -7,31 +7,36 @@ import { SyntheticsAssertionOperator } from "./SyntheticsAssertionOperator"; import { SyntheticsAssertionTimingsScope } from "./SyntheticsAssertionTimingsScope"; import { SyntheticsAssertionType } from "./SyntheticsAssertionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An assertion which uses a simple target. - */ +*/ export class SyntheticsAssertionTarget { /** * Assertion operator to apply. - */ + */ "operator": SyntheticsAssertionOperator; /** * The associated assertion property. - */ + */ "property"?: string; /** * Value used by the operator. - */ + */ "target": any; /** * Timings scope for response time assertions. - */ + */ "timingsScope"?: SyntheticsAssertionTimingsScope; /** * Type of the assertion. - */ + */ "type": SyntheticsAssertionType; /** @@ -50,41 +55,67 @@ export class SyntheticsAssertionTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "SyntheticsAssertionOperator", - required: true, + "operator": { + "baseName": "operator", + "type": "SyntheticsAssertionOperator", + "required": true, }, - property: { - baseName: "property", - type: "string", + "property": { + "baseName": "property", + "type": "string", }, - target: { - baseName: "target", - type: "any", - required: true, + "target": { + "baseName": "target", + "type": "any", + "required": true, }, - timingsScope: { - baseName: "timingsScope", - type: "SyntheticsAssertionTimingsScope", + "timingsScope": { + "baseName": "timingsScope", + "type": "SyntheticsAssertionTimingsScope", }, - type: { - baseName: "type", - type: "SyntheticsAssertionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAssertionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.ts index ba10af5736a7..6b31f5208858 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Timings scope for response time assertions. - */ +*/ -export type SyntheticsAssertionTimingsScope = - | typeof ALL - | typeof WITHOUT_DNS - | UnparsedObject; -export const ALL = "all"; -export const WITHOUT_DNS = "withoutDNS"; +export type SyntheticsAssertionTimingsScope = typeof ALL| typeof WITHOUT_DNS | UnparsedObject; +export const ALL = 'all'; +export const WITHOUT_DNS = 'withoutDNS'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionType.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionType.ts index 3039b635f6ae..3b3b991d90cb 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionType.ts @@ -4,49 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the assertion. - */ +*/ -export type SyntheticsAssertionType = - | typeof BODY - | typeof HEADER - | typeof STATUS_CODE - | typeof CERTIFICATE - | typeof RESPONSE_TIME - | typeof PROPERTY - | typeof RECORD_EVERY - | typeof RECORD_SOME - | typeof TLS_VERSION - | typeof MIN_TLS_VERSION - | typeof LATENCY - | typeof PACKET_LOSS_PERCENTAGE - | typeof PACKETS_RECEIVED - | typeof NETWORK_HOP - | typeof RECEIVED_MESSAGE - | typeof GRPC_HEALTHCHECK_STATUS - | typeof GRPC_METADATA - | typeof GRPC_PROTO - | typeof CONNECTION - | UnparsedObject; -export const BODY = "body"; -export const HEADER = "header"; -export const STATUS_CODE = "statusCode"; -export const CERTIFICATE = "certificate"; -export const RESPONSE_TIME = "responseTime"; -export const PROPERTY = "property"; -export const RECORD_EVERY = "recordEvery"; -export const RECORD_SOME = "recordSome"; -export const TLS_VERSION = "tlsVersion"; -export const MIN_TLS_VERSION = "minTlsVersion"; -export const LATENCY = "latency"; -export const PACKET_LOSS_PERCENTAGE = "packetLossPercentage"; -export const PACKETS_RECEIVED = "packetsReceived"; -export const NETWORK_HOP = "networkHop"; -export const RECEIVED_MESSAGE = "receivedMessage"; -export const GRPC_HEALTHCHECK_STATUS = "grpcHealthcheckStatus"; -export const GRPC_METADATA = "grpcMetadata"; -export const GRPC_PROTO = "grpcProto"; -export const CONNECTION = "connection"; +export type SyntheticsAssertionType = typeof BODY| typeof HEADER| typeof STATUS_CODE| typeof CERTIFICATE| typeof RESPONSE_TIME| typeof PROPERTY| typeof RECORD_EVERY| typeof RECORD_SOME| typeof TLS_VERSION| typeof MIN_TLS_VERSION| typeof LATENCY| typeof PACKET_LOSS_PERCENTAGE| typeof PACKETS_RECEIVED| typeof NETWORK_HOP| typeof RECEIVED_MESSAGE| typeof GRPC_HEALTHCHECK_STATUS| typeof GRPC_METADATA| typeof GRPC_PROTO| typeof CONNECTION | UnparsedObject; +export const BODY = 'body'; +export const HEADER = 'header'; +export const STATUS_CODE = 'statusCode'; +export const CERTIFICATE = 'certificate'; +export const RESPONSE_TIME = 'responseTime'; +export const PROPERTY = 'property'; +export const RECORD_EVERY = 'recordEvery'; +export const RECORD_SOME = 'recordSome'; +export const TLS_VERSION = 'tlsVersion'; +export const MIN_TLS_VERSION = 'minTlsVersion'; +export const LATENCY = 'latency'; +export const PACKET_LOSS_PERCENTAGE = 'packetLossPercentage'; +export const PACKETS_RECEIVED = 'packetsReceived'; +export const NETWORK_HOP = 'networkHop'; +export const RECEIVED_MESSAGE = 'receivedMessage'; +export const GRPC_HEALTHCHECK_STATUS = 'grpcHealthcheckStatus'; +export const GRPC_METADATA = 'grpcMetadata'; +export const GRPC_PROTO = 'grpcProto'; +export const CONNECTION = 'connection'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathOperator.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathOperator.ts index f8fe4827f944..e36040fa7281 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathOperator.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathOperator.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Assertion operator to apply. - */ +*/ -export type SyntheticsAssertionXPathOperator = - | typeof VALIDATES_X_PATH - | UnparsedObject; -export const VALIDATES_X_PATH = "validatesXPath"; +export type SyntheticsAssertionXPathOperator = typeof VALIDATES_X_PATH | UnparsedObject; +export const VALIDATES_X_PATH = 'validatesXPath'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTarget.ts index 9cc10a0bcf55..405d1323bd2c 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTarget.ts @@ -7,27 +7,32 @@ import { SyntheticsAssertionType } from "./SyntheticsAssertionType"; import { SyntheticsAssertionXPathOperator } from "./SyntheticsAssertionXPathOperator"; import { SyntheticsAssertionXPathTargetTarget } from "./SyntheticsAssertionXPathTargetTarget"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An assertion for the `validatesXPath` operator. - */ +*/ export class SyntheticsAssertionXPathTarget { /** * Assertion operator to apply. - */ + */ "operator": SyntheticsAssertionXPathOperator; /** * The associated assertion property. - */ + */ "property"?: string; /** * Composed target for `validatesXPath` operator. - */ + */ "target"?: SyntheticsAssertionXPathTargetTarget; /** * Type of the assertion. - */ + */ "type": SyntheticsAssertionType; /** @@ -46,36 +51,62 @@ export class SyntheticsAssertionXPathTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "SyntheticsAssertionXPathOperator", - required: true, + "operator": { + "baseName": "operator", + "type": "SyntheticsAssertionXPathOperator", + "required": true, }, - property: { - baseName: "property", - type: "string", + "property": { + "baseName": "property", + "type": "string", }, - target: { - baseName: "target", - type: "SyntheticsAssertionXPathTargetTarget", + "target": { + "baseName": "target", + "type": "SyntheticsAssertionXPathTargetTarget", }, - type: { - baseName: "type", - type: "SyntheticsAssertionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsAssertionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionXPathTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTargetTarget.ts b/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTargetTarget.ts index 5464389eeed9..2f925c403e34 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTargetTarget.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAssertionXPathTargetTarget.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Composed target for `validatesXPath` operator. - */ +*/ export class SyntheticsAssertionXPathTargetTarget { /** * The specific operator to use on the path. - */ + */ "operator"?: string; /** * The path target value to compare to. - */ + */ "targetValue"?: any; /** * The X path to assert. - */ + */ "xPath"?: string; /** @@ -39,30 +44,56 @@ export class SyntheticsAssertionXPathTargetTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "string", - }, - targetValue: { - baseName: "targetValue", - type: "any", + "operator": { + "baseName": "operator", + "type": "string", }, - xPath: { - baseName: "xPath", - type: "string", + "targetValue": { + "baseName": "targetValue", + "type": "any", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "xPath": { + "baseName": "xPath", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsAssertionXPathTargetTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.ts index 3e06649f5f89..f72e4a5fe202 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.ts @@ -10,17 +10,15 @@ import { SyntheticsBasicAuthOauthROP } from "./SyntheticsBasicAuthOauthROP"; import { SyntheticsBasicAuthSigv4 } from "./SyntheticsBasicAuthSigv4"; import { SyntheticsBasicAuthWeb } from "./SyntheticsBasicAuthWeb"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Object to handle basic authentication when performing the test. - */ +*/ -export type SyntheticsBasicAuth = - | SyntheticsBasicAuthWeb - | SyntheticsBasicAuthSigv4 - | SyntheticsBasicAuthNTLM - | SyntheticsBasicAuthDigest - | SyntheticsBasicAuthOauthClient - | SyntheticsBasicAuthOauthROP - | UnparsedObject; +export type SyntheticsBasicAuth = SyntheticsBasicAuthWeb | SyntheticsBasicAuthSigv4 | SyntheticsBasicAuthNTLM | SyntheticsBasicAuthDigest | SyntheticsBasicAuthOauthClient | SyntheticsBasicAuthOauthROP | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.ts index db4ba9aabfd7..3b06033e0cf5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.ts @@ -5,23 +5,28 @@ */ import { SyntheticsBasicAuthDigestType } from "./SyntheticsBasicAuthDigestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to handle digest authentication when performing the test. - */ +*/ export class SyntheticsBasicAuthDigest { /** * Password to use for the digest authentication. - */ + */ "password": string; /** * The type of basic authentication to use when performing the test. - */ + */ "type": SyntheticsBasicAuthDigestType; /** * Username to use for the digest authentication. - */ + */ "username": string; /** @@ -40,33 +45,59 @@ export class SyntheticsBasicAuthDigest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - password: { - baseName: "password", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "SyntheticsBasicAuthDigestType", - required: true, + "password": { + "baseName": "password", + "type": "string", + "required": true, }, - username: { - baseName: "username", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "SyntheticsBasicAuthDigestType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "username": { + "baseName": "username", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBasicAuthDigest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.ts index 0187abc80923..97c21d373437 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of basic authentication to use when performing the test. - */ +*/ export type SyntheticsBasicAuthDigestType = typeof DIGEST | UnparsedObject; -export const DIGEST = "digest"; +export const DIGEST = 'digest'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLM.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLM.ts index 2004dbf1158d..19f96607f736 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLM.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLM.ts @@ -5,31 +5,36 @@ */ import { SyntheticsBasicAuthNTLMType } from "./SyntheticsBasicAuthNTLMType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to handle `NTLM` authentication when performing the test. - */ +*/ export class SyntheticsBasicAuthNTLM { /** * Domain for the authentication to use when performing the test. - */ + */ "domain"?: string; /** * Password for the authentication to use when performing the test. - */ + */ "password"?: string; /** * The type of authentication to use when performing the test. - */ + */ "type": SyntheticsBasicAuthNTLMType; /** * Username for the authentication to use when performing the test. - */ + */ "username"?: string; /** * Workstation for the authentication to use when performing the test. - */ + */ "workstation"?: string; /** @@ -48,39 +53,65 @@ export class SyntheticsBasicAuthNTLM { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - domain: { - baseName: "domain", - type: "string", + "domain": { + "baseName": "domain", + "type": "string", }, - password: { - baseName: "password", - type: "string", + "password": { + "baseName": "password", + "type": "string", }, - type: { - baseName: "type", - type: "SyntheticsBasicAuthNTLMType", - required: true, + "type": { + "baseName": "type", + "type": "SyntheticsBasicAuthNTLMType", + "required": true, }, - username: { - baseName: "username", - type: "string", + "username": { + "baseName": "username", + "type": "string", }, - workstation: { - baseName: "workstation", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "workstation": { + "baseName": "workstation", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBasicAuthNTLM.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLMType.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLMType.ts index f2c29415b6f9..4d5ec7cdf7e2 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLMType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthNTLMType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of authentication to use when performing the test. - */ +*/ export type SyntheticsBasicAuthNTLMType = typeof NTLM | UnparsedObject; -export const NTLM = "ntlm"; +export const NTLM = 'ntlm'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.ts index 163c8371a4e5..949bcd3c9d01 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.ts @@ -6,43 +6,48 @@ import { SyntheticsBasicAuthOauthClientType } from "./SyntheticsBasicAuthOauthClientType"; import { SyntheticsBasicAuthOauthTokenApiAuthentication } from "./SyntheticsBasicAuthOauthTokenApiAuthentication"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to handle `oauth client` authentication when performing the test. - */ +*/ export class SyntheticsBasicAuthOauthClient { /** * Access token URL to use when performing the authentication. - */ + */ "accessTokenUrl": string; /** * Audience to use when performing the authentication. - */ + */ "audience"?: string; /** * Client ID to use when performing the authentication. - */ + */ "clientId": string; /** * Client secret to use when performing the authentication. - */ + */ "clientSecret": string; /** * Resource to use when performing the authentication. - */ + */ "resource"?: string; /** * Scope to use when performing the authentication. - */ + */ "scope"?: string; /** * Type of token to use when performing the authentication. - */ + */ "tokenApiAuthentication": SyntheticsBasicAuthOauthTokenApiAuthentication; /** * The type of basic authentication to use when performing the test. - */ + */ "type": SyntheticsBasicAuthOauthClientType; /** @@ -61,55 +66,81 @@ export class SyntheticsBasicAuthOauthClient { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessTokenUrl: { - baseName: "accessTokenUrl", - type: "string", - required: true, + "accessTokenUrl": { + "baseName": "accessTokenUrl", + "type": "string", + "required": true, }, - audience: { - baseName: "audience", - type: "string", + "audience": { + "baseName": "audience", + "type": "string", }, - clientId: { - baseName: "clientId", - type: "string", - required: true, + "clientId": { + "baseName": "clientId", + "type": "string", + "required": true, }, - clientSecret: { - baseName: "clientSecret", - type: "string", - required: true, + "clientSecret": { + "baseName": "clientSecret", + "type": "string", + "required": true, }, - resource: { - baseName: "resource", - type: "string", + "resource": { + "baseName": "resource", + "type": "string", }, - scope: { - baseName: "scope", - type: "string", + "scope": { + "baseName": "scope", + "type": "string", }, - tokenApiAuthentication: { - baseName: "tokenApiAuthentication", - type: "SyntheticsBasicAuthOauthTokenApiAuthentication", - required: true, + "tokenApiAuthentication": { + "baseName": "tokenApiAuthentication", + "type": "SyntheticsBasicAuthOauthTokenApiAuthentication", + "required": true, }, - type: { - baseName: "type", - type: "SyntheticsBasicAuthOauthClientType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsBasicAuthOauthClientType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBasicAuthOauthClient.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClientType.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClientType.ts index c5a58667d020..030a8e18f57a 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClientType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClientType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of basic authentication to use when performing the test. - */ +*/ -export type SyntheticsBasicAuthOauthClientType = - | typeof OAUTH_CLIENT - | UnparsedObject; -export const OAUTH_CLIENT = "oauth-client"; +export type SyntheticsBasicAuthOauthClientType = typeof OAUTH_CLIENT | UnparsedObject; +export const OAUTH_CLIENT = 'oauth-client'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.ts index 95c711d75f57..5140a1de8bf8 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.ts @@ -6,51 +6,56 @@ import { SyntheticsBasicAuthOauthROPType } from "./SyntheticsBasicAuthOauthROPType"; import { SyntheticsBasicAuthOauthTokenApiAuthentication } from "./SyntheticsBasicAuthOauthTokenApiAuthentication"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to handle `oauth rop` authentication when performing the test. - */ +*/ export class SyntheticsBasicAuthOauthROP { /** * Access token URL to use when performing the authentication. - */ + */ "accessTokenUrl": string; /** * Audience to use when performing the authentication. - */ + */ "audience"?: string; /** * Client ID to use when performing the authentication. - */ + */ "clientId"?: string; /** * Client secret to use when performing the authentication. - */ + */ "clientSecret"?: string; /** * Password to use when performing the authentication. - */ + */ "password": string; /** * Resource to use when performing the authentication. - */ + */ "resource"?: string; /** * Scope to use when performing the authentication. - */ + */ "scope"?: string; /** * Type of token to use when performing the authentication. - */ + */ "tokenApiAuthentication": SyntheticsBasicAuthOauthTokenApiAuthentication; /** * The type of basic authentication to use when performing the test. - */ + */ "type": SyntheticsBasicAuthOauthROPType; /** * Username to use when performing the authentication. - */ + */ "username": string; /** @@ -69,63 +74,89 @@ export class SyntheticsBasicAuthOauthROP { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessTokenUrl: { - baseName: "accessTokenUrl", - type: "string", - required: true, - }, - audience: { - baseName: "audience", - type: "string", + "accessTokenUrl": { + "baseName": "accessTokenUrl", + "type": "string", + "required": true, }, - clientId: { - baseName: "clientId", - type: "string", + "audience": { + "baseName": "audience", + "type": "string", }, - clientSecret: { - baseName: "clientSecret", - type: "string", + "clientId": { + "baseName": "clientId", + "type": "string", }, - password: { - baseName: "password", - type: "string", - required: true, + "clientSecret": { + "baseName": "clientSecret", + "type": "string", }, - resource: { - baseName: "resource", - type: "string", + "password": { + "baseName": "password", + "type": "string", + "required": true, }, - scope: { - baseName: "scope", - type: "string", + "resource": { + "baseName": "resource", + "type": "string", }, - tokenApiAuthentication: { - baseName: "tokenApiAuthentication", - type: "SyntheticsBasicAuthOauthTokenApiAuthentication", - required: true, + "scope": { + "baseName": "scope", + "type": "string", }, - type: { - baseName: "type", - type: "SyntheticsBasicAuthOauthROPType", - required: true, + "tokenApiAuthentication": { + "baseName": "tokenApiAuthentication", + "type": "SyntheticsBasicAuthOauthTokenApiAuthentication", + "required": true, }, - username: { - baseName: "username", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "SyntheticsBasicAuthOauthROPType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "username": { + "baseName": "username", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBasicAuthOauthROP.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROPType.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROPType.ts index f36307c119cd..5612885b7f49 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROPType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROPType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of basic authentication to use when performing the test. - */ +*/ export type SyntheticsBasicAuthOauthROPType = typeof OAUTH_ROP | UnparsedObject; -export const OAUTH_ROP = "oauth-rop"; +export const OAUTH_ROP = 'oauth-rop'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthTokenApiAuthentication.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthTokenApiAuthentication.ts index 9bc5dddae24f..7b375a1c3f4b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthTokenApiAuthentication.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthTokenApiAuthentication.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of token to use when performing the authentication. - */ +*/ -export type SyntheticsBasicAuthOauthTokenApiAuthentication = - | typeof HEADER - | typeof BODY - | UnparsedObject; -export const HEADER = "header"; -export const BODY = "body"; +export type SyntheticsBasicAuthOauthTokenApiAuthentication = typeof HEADER| typeof BODY | UnparsedObject; +export const HEADER = 'header'; +export const BODY = 'body'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4.ts index 1f0ce06eb536..7bc37683f2ee 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4.ts @@ -5,35 +5,40 @@ */ import { SyntheticsBasicAuthSigv4Type } from "./SyntheticsBasicAuthSigv4Type"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to handle `SIGV4` authentication when performing the test. - */ +*/ export class SyntheticsBasicAuthSigv4 { /** * Access key for the `SIGV4` authentication. - */ + */ "accessKey": string; /** * Region for the `SIGV4` authentication. - */ + */ "region"?: string; /** * Secret key for the `SIGV4` authentication. - */ + */ "secretKey": string; /** * Service name for the `SIGV4` authentication. - */ + */ "serviceName"?: string; /** * Session token for the `SIGV4` authentication. - */ + */ "sessionToken"?: string; /** * The type of authentication to use when performing the test. - */ + */ "type": SyntheticsBasicAuthSigv4Type; /** @@ -52,45 +57,71 @@ export class SyntheticsBasicAuthSigv4 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessKey: { - baseName: "accessKey", - type: "string", - required: true, - }, - region: { - baseName: "region", - type: "string", + "accessKey": { + "baseName": "accessKey", + "type": "string", + "required": true, }, - secretKey: { - baseName: "secretKey", - type: "string", - required: true, + "region": { + "baseName": "region", + "type": "string", }, - serviceName: { - baseName: "serviceName", - type: "string", + "secretKey": { + "baseName": "secretKey", + "type": "string", + "required": true, }, - sessionToken: { - baseName: "sessionToken", - type: "string", + "serviceName": { + "baseName": "serviceName", + "type": "string", }, - type: { - baseName: "type", - type: "SyntheticsBasicAuthSigv4Type", - required: true, + "sessionToken": { + "baseName": "sessionToken", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsBasicAuthSigv4Type", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBasicAuthSigv4.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4Type.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4Type.ts index 3e6084fd97b9..04074144f9ef 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4Type.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthSigv4Type.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of authentication to use when performing the test. - */ +*/ export type SyntheticsBasicAuthSigv4Type = typeof SIGV4 | UnparsedObject; -export const SIGV4 = "sigv4"; +export const SIGV4 = 'sigv4'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWeb.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWeb.ts index 6920290c0795..6fda978c1774 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWeb.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWeb.ts @@ -5,23 +5,28 @@ */ import { SyntheticsBasicAuthWebType } from "./SyntheticsBasicAuthWebType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to handle basic authentication when performing the test. - */ +*/ export class SyntheticsBasicAuthWeb { /** * Password to use for the basic authentication. - */ + */ "password": string; /** * The type of basic authentication to use when performing the test. - */ + */ "type"?: SyntheticsBasicAuthWebType; /** * Username to use for the basic authentication. - */ + */ "username": string; /** @@ -40,32 +45,58 @@ export class SyntheticsBasicAuthWeb { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - password: { - baseName: "password", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "SyntheticsBasicAuthWebType", + "password": { + "baseName": "password", + "type": "string", + "required": true, }, - username: { - baseName: "username", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "SyntheticsBasicAuthWebType", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "username": { + "baseName": "username", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBasicAuthWeb.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWebType.ts b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWebType.ts index 348861ec6c79..d3d5370ba814 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWebType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBasicAuthWebType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of basic authentication to use when performing the test. - */ +*/ export type SyntheticsBasicAuthWebType = typeof WEB | UnparsedObject; -export const WEB = "web"; +export const WEB = 'web'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBatchDetails.ts b/packages/datadog-api-client-v1/models/SyntheticsBatchDetails.ts index 5b869eadab01..229fe908a9ae 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBatchDetails.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBatchDetails.ts @@ -5,15 +5,20 @@ */ import { SyntheticsBatchDetailsData } from "./SyntheticsBatchDetailsData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details about a batch response. - */ +*/ export class SyntheticsBatchDetails { /** * Wrapper object that contains the details of a batch. - */ + */ "data"?: SyntheticsBatchDetailsData; /** @@ -32,22 +37,48 @@ export class SyntheticsBatchDetails { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SyntheticsBatchDetailsData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SyntheticsBatchDetailsData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBatchDetails.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBatchDetailsData.ts b/packages/datadog-api-client-v1/models/SyntheticsBatchDetailsData.ts index 70eab6b2c182..d1c3f4a17bcc 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBatchDetailsData.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBatchDetailsData.ts @@ -7,23 +7,28 @@ import { SyntheticsBatchResult } from "./SyntheticsBatchResult"; import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus"; import { SyntheticsCIBatchMetadata } from "./SyntheticsCIBatchMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper object that contains the details of a batch. - */ +*/ export class SyntheticsBatchDetailsData { /** * Metadata for the Synthetic tests run. - */ + */ "metadata"?: SyntheticsCIBatchMetadata; /** * List of results for the batch. - */ + */ "results"?: Array; /** * Determines whether the batch has passed, failed, or is in progress. - */ + */ "status"?: SyntheticsBatchStatus; /** @@ -42,30 +47,56 @@ export class SyntheticsBatchDetailsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metadata: { - baseName: "metadata", - type: "SyntheticsCIBatchMetadata", - }, - results: { - baseName: "results", - type: "Array", + "metadata": { + "baseName": "metadata", + "type": "SyntheticsCIBatchMetadata", }, - status: { - baseName: "status", - type: "SyntheticsBatchStatus", + "results": { + "baseName": "results", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SyntheticsBatchStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBatchDetailsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBatchResult.ts b/packages/datadog-api-client-v1/models/SyntheticsBatchResult.ts index 3a42c54d2ade..a7a0400051af 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBatchResult.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBatchResult.ts @@ -7,51 +7,56 @@ import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus"; import { SyntheticsTestDetailsType } from "./SyntheticsTestDetailsType"; import { SyntheticsTestExecutionRule } from "./SyntheticsTestExecutionRule"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with the results of a Synthetic batch. - */ +*/ export class SyntheticsBatchResult { /** * The device ID. - */ + */ "device"?: string; /** * Total duration in millisecond of the test. - */ + */ "duration"?: number; /** * Execution rule for a Synthetic test. - */ + */ "executionRule"?: SyntheticsTestExecutionRule; /** * Name of the location. - */ + */ "location"?: string; /** * The ID of the result to get. - */ + */ "resultId"?: string; /** * Number of times this result has been retried. - */ + */ "retries"?: number; /** * Determines whether the batch has passed, failed, or is in progress. - */ + */ "status"?: SyntheticsBatchStatus; /** * Name of the test. - */ + */ "testName"?: string; /** * The public ID of the Synthetic test. - */ + */ "testPublicId"?: string; /** * Type of the Synthetic test, either `api` or `browser`. - */ + */ "testType"?: SyntheticsTestDetailsType; /** @@ -70,60 +75,86 @@ export class SyntheticsBatchResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - device: { - baseName: "device", - type: "string", - }, - duration: { - baseName: "duration", - type: "number", - format: "double", + "device": { + "baseName": "device", + "type": "string", }, - executionRule: { - baseName: "execution_rule", - type: "SyntheticsTestExecutionRule", + "duration": { + "baseName": "duration", + "type": "number", + "format": "double", }, - location: { - baseName: "location", - type: "string", + "executionRule": { + "baseName": "execution_rule", + "type": "SyntheticsTestExecutionRule", }, - resultId: { - baseName: "result_id", - type: "string", + "location": { + "baseName": "location", + "type": "string", }, - retries: { - baseName: "retries", - type: "number", - format: "double", + "resultId": { + "baseName": "result_id", + "type": "string", }, - status: { - baseName: "status", - type: "SyntheticsBatchStatus", + "retries": { + "baseName": "retries", + "type": "number", + "format": "double", }, - testName: { - baseName: "test_name", - type: "string", + "status": { + "baseName": "status", + "type": "SyntheticsBatchStatus", }, - testPublicId: { - baseName: "test_public_id", - type: "string", + "testName": { + "baseName": "test_name", + "type": "string", }, - testType: { - baseName: "test_type", - type: "SyntheticsTestDetailsType", + "testPublicId": { + "baseName": "test_public_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "testType": { + "baseName": "test_type", + "type": "SyntheticsTestDetailsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBatchResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBatchStatus.ts b/packages/datadog-api-client-v1/models/SyntheticsBatchStatus.ts index c8c8dd0c269b..1d5b60aedb6d 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBatchStatus.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBatchStatus.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Determines whether the batch has passed, failed, or is in progress. - */ +*/ -export type SyntheticsBatchStatus = - | typeof PASSED - | typeof SKIPPED - | typeof FAILED - | UnparsedObject; -export const PASSED = "passed"; -export const SKIPPED = "skipped"; -export const FAILED = "failed"; +export type SyntheticsBatchStatus = typeof PASSED| typeof SKIPPED| typeof FAILED | UnparsedObject; +export const PASSED = 'passed'; +export const SKIPPED = 'skipped'; +export const FAILED = 'failed'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserError.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserError.ts index dd3b43e13773..5bffaa545924 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserError.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserError.ts @@ -5,27 +5,32 @@ */ import { SyntheticsBrowserErrorType } from "./SyntheticsBrowserErrorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Error response object for a browser test. - */ +*/ export class SyntheticsBrowserError { /** * Description of the error. - */ + */ "description": string; /** * Name of the error. - */ + */ "name": string; /** * Status Code of the error. - */ + */ "status"?: number; /** * Error type returned by a browser test. - */ + */ "type": SyntheticsBrowserErrorType; /** @@ -44,38 +49,64 @@ export class SyntheticsBrowserError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - required: true, + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "number", - format: "int64", + "status": { + "baseName": "status", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "SyntheticsBrowserErrorType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsBrowserErrorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserErrorType.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserErrorType.ts index 86f79421040b..2d461ff039ac 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserErrorType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserErrorType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Error type returned by a browser test. - */ +*/ -export type SyntheticsBrowserErrorType = - | typeof NETWORK - | typeof JS - | UnparsedObject; -export const NETWORK = "network"; -export const JS = "js"; +export type SyntheticsBrowserErrorType = typeof NETWORK| typeof JS | UnparsedObject; +export const NETWORK = 'network'; +export const JS = 'js'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.ts index 99d2511c2fe7..3d4811bc67a3 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.ts @@ -9,56 +9,61 @@ import { SyntheticsStep } from "./SyntheticsStep"; import { SyntheticsTestOptions } from "./SyntheticsTestOptions"; import { SyntheticsTestPauseStatus } from "./SyntheticsTestPauseStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing details about a Synthetic browser test. - */ +*/ export class SyntheticsBrowserTest { /** * Configuration object for a Synthetic browser test. - */ + */ "config": SyntheticsBrowserTestConfig; /** * Array of locations used to run the test. - */ + */ "locations": Array; /** * Notification message associated with the test. Message can either be text or an empty string. - */ + */ "message": string; /** * The associated monitor ID. - */ + */ "monitorId"?: number; /** * Name of the test. - */ + */ "name": string; /** * Object describing the extra options for a Synthetic test. - */ + */ "options": SyntheticsTestOptions; /** * The public ID of the test. - */ + */ "publicId"?: string; /** * Define whether you want to start (`live`) or pause (`paused`) a * Synthetic test. - */ + */ "status"?: SyntheticsTestPauseStatus; /** * Array of steps for the test. - */ + */ "steps"?: Array; /** * Array of tags attached to the test. - */ + */ "tags"?: Array; /** * Type of the Synthetic test, `browser`. - */ + */ "type": SyntheticsBrowserTestType; /** @@ -77,69 +82,95 @@ export class SyntheticsBrowserTest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "SyntheticsBrowserTestConfig", - required: true, - }, - locations: { - baseName: "locations", - type: "Array", - required: true, + "config": { + "baseName": "config", + "type": "SyntheticsBrowserTestConfig", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "locations": { + "baseName": "locations", + "type": "Array", + "required": true, }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", }, - options: { - baseName: "options", - type: "SyntheticsTestOptions", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - publicId: { - baseName: "public_id", - type: "string", + "options": { + "baseName": "options", + "type": "SyntheticsTestOptions", + "required": true, }, - status: { - baseName: "status", - type: "SyntheticsTestPauseStatus", + "publicId": { + "baseName": "public_id", + "type": "string", }, - steps: { - baseName: "steps", - type: "Array", + "status": { + "baseName": "status", + "type": "SyntheticsTestPauseStatus", }, - tags: { - baseName: "tags", - type: "Array", + "steps": { + "baseName": "steps", + "type": "Array", }, - type: { - baseName: "type", - type: "SyntheticsBrowserTestType", - required: true, + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsBrowserTestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestConfig.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestConfig.ts index b1302da9ed3d..c7d01de99dd9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestConfig.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestConfig.ts @@ -8,31 +8,36 @@ import { SyntheticsBrowserVariable } from "./SyntheticsBrowserVariable"; import { SyntheticsConfigVariable } from "./SyntheticsConfigVariable"; import { SyntheticsTestRequest } from "./SyntheticsTestRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration object for a Synthetic browser test. - */ +*/ export class SyntheticsBrowserTestConfig { /** * Array of assertions used for the test. - */ + */ "assertions": Array; /** * Array of variables used for the test. - */ + */ "configVariables"?: Array; /** * Object describing the Synthetic test request. - */ + */ "request": SyntheticsTestRequest; /** * Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. - */ + */ "setCookie"?: string; /** * Array of variables used for the test steps. - */ + */ "variables"?: Array; /** @@ -51,40 +56,66 @@ export class SyntheticsBrowserTestConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assertions: { - baseName: "assertions", - type: "Array", - required: true, + "assertions": { + "baseName": "assertions", + "type": "Array", + "required": true, }, - configVariables: { - baseName: "configVariables", - type: "Array", + "configVariables": { + "baseName": "configVariables", + "type": "Array", }, - request: { - baseName: "request", - type: "SyntheticsTestRequest", - required: true, + "request": { + "baseName": "request", + "type": "SyntheticsTestRequest", + "required": true, }, - setCookie: { - baseName: "setCookie", - type: "string", + "setCookie": { + "baseName": "setCookie", + "type": "string", }, - variables: { - baseName: "variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "variables": { + "baseName": "variables", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestFailureCode.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestFailureCode.ts index 9c0ca14455ea..b2b61972490b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestFailureCode.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestFailureCode.ts @@ -4,77 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Error code that can be returned by a Synthetic test. - */ +*/ -export type SyntheticsBrowserTestFailureCode = - | typeof API_REQUEST_FAILURE - | typeof ASSERTION_FAILURE - | typeof DOWNLOAD_FILE_TOO_LARGE - | typeof ELEMENT_NOT_INTERACTABLE - | typeof EMAIL_VARIABLE_NOT_DEFINED - | typeof EVALUATE_JAVASCRIPT - | typeof EVALUATE_JAVASCRIPT_CONTEXT - | typeof EXTRACT_VARIABLE - | typeof FORBIDDEN_URL - | typeof FRAME_DETACHED - | typeof INCONSISTENCIES - | typeof INTERNAL_ERROR - | typeof INVALID_TYPE_TEXT_DELAY - | typeof INVALID_URL - | typeof INVALID_VARIABLE_PATTERN - | typeof INVISIBLE_ELEMENT - | typeof LOCATE_ELEMENT - | typeof NAVIGATE_TO_LINK - | typeof OPEN_URL - | typeof PRESS_KEY - | typeof SERVER_CERTIFICATE - | typeof SELECT_OPTION - | typeof STEP_TIMEOUT - | typeof SUB_TEST_NOT_PASSED - | typeof TEST_TIMEOUT - | typeof TOO_MANY_HTTP_REQUESTS - | typeof UNAVAILABLE_BROWSER - | typeof UNKNOWN - | typeof UNSUPPORTED_AUTH_SCHEMA - | typeof UPLOAD_FILES_ELEMENT_TYPE - | typeof UPLOAD_FILES_DIALOG - | typeof UPLOAD_FILES_DYNAMIC_ELEMENT - | typeof UPLOAD_FILES_NAME - | UnparsedObject; -export const API_REQUEST_FAILURE = "API_REQUEST_FAILURE"; -export const ASSERTION_FAILURE = "ASSERTION_FAILURE"; -export const DOWNLOAD_FILE_TOO_LARGE = "DOWNLOAD_FILE_TOO_LARGE"; -export const ELEMENT_NOT_INTERACTABLE = "ELEMENT_NOT_INTERACTABLE"; -export const EMAIL_VARIABLE_NOT_DEFINED = "EMAIL_VARIABLE_NOT_DEFINED"; -export const EVALUATE_JAVASCRIPT = "EVALUATE_JAVASCRIPT"; -export const EVALUATE_JAVASCRIPT_CONTEXT = "EVALUATE_JAVASCRIPT_CONTEXT"; -export const EXTRACT_VARIABLE = "EXTRACT_VARIABLE"; -export const FORBIDDEN_URL = "FORBIDDEN_URL"; -export const FRAME_DETACHED = "FRAME_DETACHED"; -export const INCONSISTENCIES = "INCONSISTENCIES"; -export const INTERNAL_ERROR = "INTERNAL_ERROR"; -export const INVALID_TYPE_TEXT_DELAY = "INVALID_TYPE_TEXT_DELAY"; -export const INVALID_URL = "INVALID_URL"; -export const INVALID_VARIABLE_PATTERN = "INVALID_VARIABLE_PATTERN"; -export const INVISIBLE_ELEMENT = "INVISIBLE_ELEMENT"; -export const LOCATE_ELEMENT = "LOCATE_ELEMENT"; -export const NAVIGATE_TO_LINK = "NAVIGATE_TO_LINK"; -export const OPEN_URL = "OPEN_URL"; -export const PRESS_KEY = "PRESS_KEY"; -export const SERVER_CERTIFICATE = "SERVER_CERTIFICATE"; -export const SELECT_OPTION = "SELECT_OPTION"; -export const STEP_TIMEOUT = "STEP_TIMEOUT"; -export const SUB_TEST_NOT_PASSED = "SUB_TEST_NOT_PASSED"; -export const TEST_TIMEOUT = "TEST_TIMEOUT"; -export const TOO_MANY_HTTP_REQUESTS = "TOO_MANY_HTTP_REQUESTS"; -export const UNAVAILABLE_BROWSER = "UNAVAILABLE_BROWSER"; -export const UNKNOWN = "UNKNOWN"; -export const UNSUPPORTED_AUTH_SCHEMA = "UNSUPPORTED_AUTH_SCHEMA"; -export const UPLOAD_FILES_ELEMENT_TYPE = "UPLOAD_FILES_ELEMENT_TYPE"; -export const UPLOAD_FILES_DIALOG = "UPLOAD_FILES_DIALOG"; -export const UPLOAD_FILES_DYNAMIC_ELEMENT = "UPLOAD_FILES_DYNAMIC_ELEMENT"; -export const UPLOAD_FILES_NAME = "UPLOAD_FILES_NAME"; +export type SyntheticsBrowserTestFailureCode = typeof API_REQUEST_FAILURE| typeof ASSERTION_FAILURE| typeof DOWNLOAD_FILE_TOO_LARGE| typeof ELEMENT_NOT_INTERACTABLE| typeof EMAIL_VARIABLE_NOT_DEFINED| typeof EVALUATE_JAVASCRIPT| typeof EVALUATE_JAVASCRIPT_CONTEXT| typeof EXTRACT_VARIABLE| typeof FORBIDDEN_URL| typeof FRAME_DETACHED| typeof INCONSISTENCIES| typeof INTERNAL_ERROR| typeof INVALID_TYPE_TEXT_DELAY| typeof INVALID_URL| typeof INVALID_VARIABLE_PATTERN| typeof INVISIBLE_ELEMENT| typeof LOCATE_ELEMENT| typeof NAVIGATE_TO_LINK| typeof OPEN_URL| typeof PRESS_KEY| typeof SERVER_CERTIFICATE| typeof SELECT_OPTION| typeof STEP_TIMEOUT| typeof SUB_TEST_NOT_PASSED| typeof TEST_TIMEOUT| typeof TOO_MANY_HTTP_REQUESTS| typeof UNAVAILABLE_BROWSER| typeof UNKNOWN| typeof UNSUPPORTED_AUTH_SCHEMA| typeof UPLOAD_FILES_ELEMENT_TYPE| typeof UPLOAD_FILES_DIALOG| typeof UPLOAD_FILES_DYNAMIC_ELEMENT| typeof UPLOAD_FILES_NAME | UnparsedObject; +export const API_REQUEST_FAILURE = 'API_REQUEST_FAILURE'; +export const ASSERTION_FAILURE = 'ASSERTION_FAILURE'; +export const DOWNLOAD_FILE_TOO_LARGE = 'DOWNLOAD_FILE_TOO_LARGE'; +export const ELEMENT_NOT_INTERACTABLE = 'ELEMENT_NOT_INTERACTABLE'; +export const EMAIL_VARIABLE_NOT_DEFINED = 'EMAIL_VARIABLE_NOT_DEFINED'; +export const EVALUATE_JAVASCRIPT = 'EVALUATE_JAVASCRIPT'; +export const EVALUATE_JAVASCRIPT_CONTEXT = 'EVALUATE_JAVASCRIPT_CONTEXT'; +export const EXTRACT_VARIABLE = 'EXTRACT_VARIABLE'; +export const FORBIDDEN_URL = 'FORBIDDEN_URL'; +export const FRAME_DETACHED = 'FRAME_DETACHED'; +export const INCONSISTENCIES = 'INCONSISTENCIES'; +export const INTERNAL_ERROR = 'INTERNAL_ERROR'; +export const INVALID_TYPE_TEXT_DELAY = 'INVALID_TYPE_TEXT_DELAY'; +export const INVALID_URL = 'INVALID_URL'; +export const INVALID_VARIABLE_PATTERN = 'INVALID_VARIABLE_PATTERN'; +export const INVISIBLE_ELEMENT = 'INVISIBLE_ELEMENT'; +export const LOCATE_ELEMENT = 'LOCATE_ELEMENT'; +export const NAVIGATE_TO_LINK = 'NAVIGATE_TO_LINK'; +export const OPEN_URL = 'OPEN_URL'; +export const PRESS_KEY = 'PRESS_KEY'; +export const SERVER_CERTIFICATE = 'SERVER_CERTIFICATE'; +export const SELECT_OPTION = 'SELECT_OPTION'; +export const STEP_TIMEOUT = 'STEP_TIMEOUT'; +export const SUB_TEST_NOT_PASSED = 'SUB_TEST_NOT_PASSED'; +export const TEST_TIMEOUT = 'TEST_TIMEOUT'; +export const TOO_MANY_HTTP_REQUESTS = 'TOO_MANY_HTTP_REQUESTS'; +export const UNAVAILABLE_BROWSER = 'UNAVAILABLE_BROWSER'; +export const UNKNOWN = 'UNKNOWN'; +export const UNSUPPORTED_AUTH_SCHEMA = 'UNSUPPORTED_AUTH_SCHEMA'; +export const UPLOAD_FILES_ELEMENT_TYPE = 'UPLOAD_FILES_ELEMENT_TYPE'; +export const UPLOAD_FILES_DIALOG = 'UPLOAD_FILES_DIALOG'; +export const UPLOAD_FILES_DYNAMIC_ELEMENT = 'UPLOAD_FILES_DYNAMIC_ELEMENT'; +export const UPLOAD_FILES_NAME = 'UPLOAD_FILES_NAME'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultData.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultData.ts index dba58a69d61a..b8bad7f4e5d6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultData.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultData.ts @@ -7,60 +7,65 @@ import { SyntheticsBrowserTestResultFailure } from "./SyntheticsBrowserTestResul import { SyntheticsDevice } from "./SyntheticsDevice"; import { SyntheticsStepDetail } from "./SyntheticsStepDetail"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing results for your Synthetic browser test. - */ +*/ export class SyntheticsBrowserTestResultData { /** * Type of browser device used for the browser test. - */ + */ "browserType"?: string; /** * Browser version used for the browser test. - */ + */ "browserVersion"?: string; /** * Object describing the device used to perform the Synthetic test. - */ + */ "device"?: SyntheticsDevice; /** * Global duration in second of the browser test. - */ + */ "duration"?: number; /** * Error returned for the browser test. - */ + */ "error"?: string; /** * The browser test failure details. - */ + */ "failure"?: SyntheticsBrowserTestResultFailure; /** * Whether or not the browser test was conducted. - */ + */ "passed"?: boolean; /** * The amount of email received during the browser test. - */ + */ "receivedEmailCount"?: number; /** * Starting URL for the browser test. - */ + */ "startUrl"?: string; /** * Array containing the different browser test steps. - */ + */ "stepDetails"?: Array; /** * Whether or not a thumbnail is associated with the browser test. - */ + */ "thumbnailsBucketKey"?: boolean; /** * Time in second to wait before the browser test starts after * reaching the start URL. - */ + */ "timeToInteractive"?: number; /** @@ -79,69 +84,95 @@ export class SyntheticsBrowserTestResultData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - browserType: { - baseName: "browserType", - type: "string", + "browserType": { + "baseName": "browserType", + "type": "string", }, - browserVersion: { - baseName: "browserVersion", - type: "string", + "browserVersion": { + "baseName": "browserVersion", + "type": "string", }, - device: { - baseName: "device", - type: "SyntheticsDevice", + "device": { + "baseName": "device", + "type": "SyntheticsDevice", }, - duration: { - baseName: "duration", - type: "number", - format: "double", + "duration": { + "baseName": "duration", + "type": "number", + "format": "double", }, - error: { - baseName: "error", - type: "string", + "error": { + "baseName": "error", + "type": "string", }, - failure: { - baseName: "failure", - type: "SyntheticsBrowserTestResultFailure", + "failure": { + "baseName": "failure", + "type": "SyntheticsBrowserTestResultFailure", }, - passed: { - baseName: "passed", - type: "boolean", + "passed": { + "baseName": "passed", + "type": "boolean", }, - receivedEmailCount: { - baseName: "receivedEmailCount", - type: "number", - format: "int64", + "receivedEmailCount": { + "baseName": "receivedEmailCount", + "type": "number", + "format": "int64", }, - startUrl: { - baseName: "startUrl", - type: "string", + "startUrl": { + "baseName": "startUrl", + "type": "string", }, - stepDetails: { - baseName: "stepDetails", - type: "Array", + "stepDetails": { + "baseName": "stepDetails", + "type": "Array", }, - thumbnailsBucketKey: { - baseName: "thumbnailsBucketKey", - type: "boolean", + "thumbnailsBucketKey": { + "baseName": "thumbnailsBucketKey", + "type": "boolean", }, - timeToInteractive: { - baseName: "timeToInteractive", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeToInteractive": { + "baseName": "timeToInteractive", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestResultData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFailure.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFailure.ts index 4a80b00812ec..86bd938aa7b8 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFailure.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFailure.ts @@ -5,19 +5,24 @@ */ import { SyntheticsBrowserTestFailureCode } from "./SyntheticsBrowserTestFailureCode"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The browser test failure details. - */ +*/ export class SyntheticsBrowserTestResultFailure { /** * Error code that can be returned by a Synthetic test. - */ + */ "code"?: SyntheticsBrowserTestFailureCode; /** * The browser test error message. - */ + */ "message"?: string; /** @@ -36,26 +41,52 @@ export class SyntheticsBrowserTestResultFailure { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "SyntheticsBrowserTestFailureCode", + "code": { + "baseName": "code", + "type": "SyntheticsBrowserTestFailureCode", }, - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestResultFailure.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFull.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFull.ts index 9d2386a96422..24bcffa9dd60 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFull.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFull.ts @@ -7,42 +7,47 @@ import { SyntheticsBrowserTestResultData } from "./SyntheticsBrowserTestResultDa import { SyntheticsBrowserTestResultFullCheck } from "./SyntheticsBrowserTestResultFullCheck"; import { SyntheticsTestMonitorStatus } from "./SyntheticsTestMonitorStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object returned describing a browser test result. - */ +*/ export class SyntheticsBrowserTestResultFull { /** * Object describing the browser test configuration. - */ + */ "check"?: SyntheticsBrowserTestResultFullCheck; /** * When the browser test was conducted. - */ + */ "checkTime"?: number; /** * Version of the browser test used. - */ + */ "checkVersion"?: number; /** * Location from which the browser test was performed. - */ + */ "probeDc"?: string; /** * Object containing results for your Synthetic browser test. - */ + */ "result"?: SyntheticsBrowserTestResultData; /** * ID of the browser test result. - */ + */ "resultId"?: string; /** * The status of your Synthetic monitor. * * `O` for not triggered * * `1` for triggered * * `2` for no data - */ + */ "status"?: SyntheticsTestMonitorStatus; /** @@ -61,49 +66,75 @@ export class SyntheticsBrowserTestResultFull { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - check: { - baseName: "check", - type: "SyntheticsBrowserTestResultFullCheck", - }, - checkTime: { - baseName: "check_time", - type: "number", - format: "double", + "check": { + "baseName": "check", + "type": "SyntheticsBrowserTestResultFullCheck", }, - checkVersion: { - baseName: "check_version", - type: "number", - format: "int64", + "checkTime": { + "baseName": "check_time", + "type": "number", + "format": "double", }, - probeDc: { - baseName: "probe_dc", - type: "string", + "checkVersion": { + "baseName": "check_version", + "type": "number", + "format": "int64", }, - result: { - baseName: "result", - type: "SyntheticsBrowserTestResultData", + "probeDc": { + "baseName": "probe_dc", + "type": "string", }, - resultId: { - baseName: "result_id", - type: "string", + "result": { + "baseName": "result", + "type": "SyntheticsBrowserTestResultData", }, - status: { - baseName: "status", - type: "SyntheticsTestMonitorStatus", - format: "int64", + "resultId": { + "baseName": "result_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SyntheticsTestMonitorStatus", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestResultFull.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFullCheck.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFullCheck.ts index 399f7adbf63c..c5fa166ac01a 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFullCheck.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultFullCheck.ts @@ -5,15 +5,20 @@ */ import { SyntheticsTestConfig } from "./SyntheticsTestConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the browser test configuration. - */ +*/ export class SyntheticsBrowserTestResultFullCheck { /** * Configuration object for a Synthetic test. - */ + */ "config": SyntheticsTestConfig; /** @@ -32,23 +37,49 @@ export class SyntheticsBrowserTestResultFullCheck { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "SyntheticsTestConfig", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "config": { + "baseName": "config", + "type": "SyntheticsTestConfig", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestResultFullCheck.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShort.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShort.ts index 7bc9d52cec7d..10289904ec7e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShort.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShort.ts @@ -6,34 +6,39 @@ import { SyntheticsBrowserTestResultShortResult } from "./SyntheticsBrowserTestResultShortResult"; import { SyntheticsTestMonitorStatus } from "./SyntheticsTestMonitorStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with the results of a single Synthetic browser test. - */ +*/ export class SyntheticsBrowserTestResultShort { /** * Last time the browser test was performed. - */ + */ "checkTime"?: number; /** * Location from which the Browser test was performed. - */ + */ "probeDc"?: string; /** * Object with the result of the last browser test run. - */ + */ "result"?: SyntheticsBrowserTestResultShortResult; /** * ID of the browser test result. - */ + */ "resultId"?: string; /** * The status of your Synthetic monitor. * * `O` for not triggered * * `1` for triggered * * `2` for no data - */ + */ "status"?: SyntheticsTestMonitorStatus; /** @@ -52,40 +57,66 @@ export class SyntheticsBrowserTestResultShort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - checkTime: { - baseName: "check_time", - type: "number", - format: "double", + "checkTime": { + "baseName": "check_time", + "type": "number", + "format": "double", }, - probeDc: { - baseName: "probe_dc", - type: "string", + "probeDc": { + "baseName": "probe_dc", + "type": "string", }, - result: { - baseName: "result", - type: "SyntheticsBrowserTestResultShortResult", + "result": { + "baseName": "result", + "type": "SyntheticsBrowserTestResultShortResult", }, - resultId: { - baseName: "result_id", - type: "string", + "resultId": { + "baseName": "result_id", + "type": "string", }, - status: { - baseName: "status", - type: "SyntheticsTestMonitorStatus", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SyntheticsTestMonitorStatus", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestResultShort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShortResult.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShortResult.ts index 3d501489d4ba..f24d7699fca8 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShortResult.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestResultShortResult.ts @@ -5,31 +5,36 @@ */ import { SyntheticsDevice } from "./SyntheticsDevice"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with the result of the last browser test run. - */ +*/ export class SyntheticsBrowserTestResultShortResult { /** * Object describing the device used to perform the Synthetic test. - */ + */ "device"?: SyntheticsDevice; /** * Length in milliseconds of the browser test run. - */ + */ "duration"?: number; /** * Amount of errors collected for a single browser test run. - */ + */ "errorCount"?: number; /** * Amount of browser test steps completed before failing. - */ + */ "stepCountCompleted"?: number; /** * Total amount of browser test steps. - */ + */ "stepCountTotal"?: number; /** @@ -48,42 +53,68 @@ export class SyntheticsBrowserTestResultShortResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - device: { - baseName: "device", - type: "SyntheticsDevice", + "device": { + "baseName": "device", + "type": "SyntheticsDevice", }, - duration: { - baseName: "duration", - type: "number", - format: "double", + "duration": { + "baseName": "duration", + "type": "number", + "format": "double", }, - errorCount: { - baseName: "errorCount", - type: "number", - format: "int64", + "errorCount": { + "baseName": "errorCount", + "type": "number", + "format": "int64", }, - stepCountCompleted: { - baseName: "stepCountCompleted", - type: "number", - format: "int64", + "stepCountCompleted": { + "baseName": "stepCountCompleted", + "type": "number", + "format": "int64", }, - stepCountTotal: { - baseName: "stepCountTotal", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "stepCountTotal": { + "baseName": "stepCountTotal", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestResultShortResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestRumSettings.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestRumSettings.ts index 5da92bb0b34e..78c923cadfbb 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestRumSettings.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestRumSettings.ts @@ -4,33 +4,38 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The RUM data collection settings for the Synthetic browser test. * **Note:** There are 3 ways to format RUM settings: - * + * * `{ isEnabled: false }` * RUM data is not collected. - * + * * `{ isEnabled: true }` * RUM data is collected from the Synthetic test's default application. - * + * * `{ isEnabled: true, applicationId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", clientTokenId: 12345 }` * RUM data is collected using the specified application. - */ +*/ export class SyntheticsBrowserTestRumSettings { /** * RUM application ID used to collect RUM data for the browser test. - */ + */ "applicationId"?: string; /** * RUM application API key ID used to collect RUM data for the browser test. - */ + */ "clientTokenId"?: number; /** * Determines whether RUM data is collected during test runs. - */ + */ "isEnabled": boolean; /** @@ -49,32 +54,58 @@ export class SyntheticsBrowserTestRumSettings { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - applicationId: { - baseName: "applicationId", - type: "string", - }, - clientTokenId: { - baseName: "clientTokenId", - type: "number", - format: "int64", + "applicationId": { + "baseName": "applicationId", + "type": "string", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "clientTokenId": { + "baseName": "clientTokenId", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserTestRumSettings.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestType.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestType.ts index 6430c0e256f2..36cb7862eead 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserTestType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserTestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Synthetic test, `browser`. - */ +*/ export type SyntheticsBrowserTestType = typeof BROWSER | UnparsedObject; -export const BROWSER = "browser"; +export const BROWSER = 'browser'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.ts index c932561c8b37..f21dd5555e03 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.ts @@ -5,36 +5,41 @@ */ import { SyntheticsBrowserVariableType } from "./SyntheticsBrowserVariableType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object defining a variable that can be used in your browser test. * See the [Recording Steps documentation](https://docs.datadoghq.com/synthetics/browser_tests/actions/?tab=testanelementontheactivepage#variables). - */ +*/ export class SyntheticsBrowserVariable { /** * Example for the variable. - */ + */ "example"?: string; /** * ID for the variable. Global variables require an ID. - */ + */ "id"?: string; /** * Name of the variable. - */ + */ "name": string; /** * Pattern of the variable. - */ + */ "pattern"?: string; /** * Determines whether or not the browser test variable is obfuscated. Can only be used with browser variables of type `text`. - */ + */ "secure"?: boolean; /** * Type of browser test variable. - */ + */ "type": SyntheticsBrowserVariableType; /** @@ -53,44 +58,70 @@ export class SyntheticsBrowserVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - example: { - baseName: "example", - type: "string", - }, - id: { - baseName: "id", - type: "string", + "example": { + "baseName": "example", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - pattern: { - baseName: "pattern", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - secure: { - baseName: "secure", - type: "boolean", + "pattern": { + "baseName": "pattern", + "type": "string", }, - type: { - baseName: "type", - type: "SyntheticsBrowserVariableType", - required: true, + "secure": { + "baseName": "secure", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsBrowserVariableType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsBrowserVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsBrowserVariableType.ts b/packages/datadog-api-client-v1/models/SyntheticsBrowserVariableType.ts index 5d8d0d790ae0..873697dea6f9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsBrowserVariableType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsBrowserVariableType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of browser test variable. - */ +*/ -export type SyntheticsBrowserVariableType = - | typeof ELEMENT - | typeof EMAIL - | typeof GLOBAL - | typeof TEXT - | UnparsedObject; -export const ELEMENT = "element"; -export const EMAIL = "email"; -export const GLOBAL = "global"; -export const TEXT = "text"; +export type SyntheticsBrowserVariableType = typeof ELEMENT| typeof EMAIL| typeof GLOBAL| typeof TEXT | UnparsedObject; +export const ELEMENT = 'element'; +export const EMAIL = 'email'; +export const GLOBAL = 'global'; +export const TEXT = 'text'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadata.ts b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadata.ts index 9907e01b5cdc..e074f5e4985e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadata.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadata.ts @@ -6,19 +6,24 @@ import { SyntheticsCIBatchMetadataCI } from "./SyntheticsCIBatchMetadataCI"; import { SyntheticsCIBatchMetadataGit } from "./SyntheticsCIBatchMetadataGit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata for the Synthetic tests run. - */ +*/ export class SyntheticsCIBatchMetadata { /** * Description of the CI provider. - */ + */ "ci"?: SyntheticsCIBatchMetadataCI; /** * Git information. - */ + */ "git"?: SyntheticsCIBatchMetadataGit; /** @@ -37,26 +42,52 @@ export class SyntheticsCIBatchMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ci: { - baseName: "ci", - type: "SyntheticsCIBatchMetadataCI", + "ci": { + "baseName": "ci", + "type": "SyntheticsCIBatchMetadataCI", }, - git: { - baseName: "git", - type: "SyntheticsCIBatchMetadataGit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "git": { + "baseName": "git", + "type": "SyntheticsCIBatchMetadataGit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCIBatchMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataCI.ts b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataCI.ts index 8eb9a3204a41..220e85e0b0fe 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataCI.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataCI.ts @@ -6,19 +6,24 @@ import { SyntheticsCIBatchMetadataPipeline } from "./SyntheticsCIBatchMetadataPipeline"; import { SyntheticsCIBatchMetadataProvider } from "./SyntheticsCIBatchMetadataProvider"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Description of the CI provider. - */ +*/ export class SyntheticsCIBatchMetadataCI { /** * Description of the CI pipeline. - */ + */ "pipeline"?: SyntheticsCIBatchMetadataPipeline; /** * Description of the CI provider. - */ + */ "provider"?: SyntheticsCIBatchMetadataProvider; /** @@ -37,26 +42,52 @@ export class SyntheticsCIBatchMetadataCI { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pipeline: { - baseName: "pipeline", - type: "SyntheticsCIBatchMetadataPipeline", + "pipeline": { + "baseName": "pipeline", + "type": "SyntheticsCIBatchMetadataPipeline", }, - provider: { - baseName: "provider", - type: "SyntheticsCIBatchMetadataProvider", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "provider": { + "baseName": "provider", + "type": "SyntheticsCIBatchMetadataProvider", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCIBatchMetadataCI.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataGit.ts b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataGit.ts index d00e919011f4..cd20b6fefe37 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataGit.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataGit.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Git information. - */ +*/ export class SyntheticsCIBatchMetadataGit { /** * Branch name. - */ + */ "branch"?: string; /** * The commit SHA. - */ + */ "commitSha"?: string; /** @@ -35,26 +40,52 @@ export class SyntheticsCIBatchMetadataGit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - branch: { - baseName: "branch", - type: "string", + "branch": { + "baseName": "branch", + "type": "string", }, - commitSha: { - baseName: "commitSha", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "commitSha": { + "baseName": "commitSha", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCIBatchMetadataGit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataPipeline.ts b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataPipeline.ts index fd8a1feb30f0..77f4ab3361fe 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataPipeline.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataPipeline.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Description of the CI pipeline. - */ +*/ export class SyntheticsCIBatchMetadataPipeline { /** * URL of the pipeline. - */ + */ "url"?: string; /** @@ -31,22 +36,48 @@ export class SyntheticsCIBatchMetadataPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCIBatchMetadataPipeline.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataProvider.ts b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataProvider.ts index b11c29b3f273..f8b2de7163be 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataProvider.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadataProvider.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Description of the CI provider. - */ +*/ export class SyntheticsCIBatchMetadataProvider { /** * Name of the CI provider. - */ + */ "name"?: string; /** @@ -31,22 +36,48 @@ export class SyntheticsCIBatchMetadataProvider { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCIBatchMetadataProvider.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCITest.ts b/packages/datadog-api-client-v1/models/SyntheticsCITest.ts index b2a8692bc80e..a9279bf152ca 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCITest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCITest.ts @@ -5,70 +5,76 @@ */ import { SyntheticsBasicAuth } from "./SyntheticsBasicAuth"; import { SyntheticsCIBatchMetadata } from "./SyntheticsCIBatchMetadata"; +import { SyntheticsDeviceID } from "./SyntheticsDeviceID"; import { SyntheticsTestOptionsRetry } from "./SyntheticsTestOptionsRetry"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration for Continuous Testing. - */ +*/ export class SyntheticsCITest { /** * Disable certificate checks in API tests. - */ + */ "allowInsecureCertificates"?: boolean; /** * Object to handle basic authentication when performing the test. - */ + */ "basicAuth"?: SyntheticsBasicAuth; /** * Body to include in the test. - */ + */ "body"?: string; /** * Type of the data sent in a Synthetic API test. - */ + */ "bodyType"?: string; /** * Cookies for the request. - */ + */ "cookies"?: string; /** * For browser test, array with the different device IDs used to run the test. - */ + */ "deviceIds"?: Array; /** * For API HTTP test, whether or not the test should follow redirects. - */ + */ "followRedirects"?: boolean; /** * Headers to include when performing the test. - */ - "headers"?: { [key: string]: string }; + */ + "headers"?: { [key: string]: string; }; /** * Array of locations used to run the test. - */ + */ "locations"?: Array; /** * Metadata for the Synthetic tests run. - */ + */ "metadata"?: SyntheticsCIBatchMetadata; /** * The public ID of the Synthetic test to trigger. - */ + */ "publicId": string; /** * Object describing the retry strategy to apply to a Synthetic test. - */ + */ "retry"?: SyntheticsTestOptionsRetry; /** * Starting URL for the browser test. - */ + */ "startUrl"?: string; /** * Variables to replace in the test. - */ - "variables"?: { [key: string]: string }; + */ + "variables"?: { [key: string]: string; }; /** * A container for additional, undeclared properties. @@ -86,75 +92,101 @@ export class SyntheticsCITest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowInsecureCertificates: { - baseName: "allowInsecureCertificates", - type: "boolean", - }, - basicAuth: { - baseName: "basicAuth", - type: "SyntheticsBasicAuth", + "allowInsecureCertificates": { + "baseName": "allowInsecureCertificates", + "type": "boolean", }, - body: { - baseName: "body", - type: "string", + "basicAuth": { + "baseName": "basicAuth", + "type": "SyntheticsBasicAuth", }, - bodyType: { - baseName: "bodyType", - type: "string", + "body": { + "baseName": "body", + "type": "string", }, - cookies: { - baseName: "cookies", - type: "string", + "bodyType": { + "baseName": "bodyType", + "type": "string", }, - deviceIds: { - baseName: "deviceIds", - type: "Array", + "cookies": { + "baseName": "cookies", + "type": "string", }, - followRedirects: { - baseName: "followRedirects", - type: "boolean", + "deviceIds": { + "baseName": "deviceIds", + "type": "Array", }, - headers: { - baseName: "headers", - type: "{ [key: string]: string; }", + "followRedirects": { + "baseName": "followRedirects", + "type": "boolean", }, - locations: { - baseName: "locations", - type: "Array", + "headers": { + "baseName": "headers", + "type": "{ [key: string]: string; }", }, - metadata: { - baseName: "metadata", - type: "SyntheticsCIBatchMetadata", + "locations": { + "baseName": "locations", + "type": "Array", }, - publicId: { - baseName: "public_id", - type: "string", - required: true, + "metadata": { + "baseName": "metadata", + "type": "SyntheticsCIBatchMetadata", }, - retry: { - baseName: "retry", - type: "SyntheticsTestOptionsRetry", + "publicId": { + "baseName": "public_id", + "type": "string", + "required": true, }, - startUrl: { - baseName: "startUrl", - type: "string", + "retry": { + "baseName": "retry", + "type": "SyntheticsTestOptionsRetry", }, - variables: { - baseName: "variables", - type: "{ [key: string]: string; }", + "startUrl": { + "baseName": "startUrl", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "variables": { + "baseName": "variables", + "type": "{ [key: string]: string; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCITest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCITestBody.ts b/packages/datadog-api-client-v1/models/SyntheticsCITestBody.ts index 98d3b79458e5..0761b2f5d1c0 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCITestBody.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCITestBody.ts @@ -5,15 +5,20 @@ */ import { SyntheticsCITest } from "./SyntheticsCITest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the synthetics tests to trigger. - */ +*/ export class SyntheticsCITestBody { /** * List of Synthetic tests with overrides. - */ + */ "tests"?: Array; /** @@ -32,22 +37,48 @@ export class SyntheticsCITestBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tests: { - baseName: "tests", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tests": { + "baseName": "tests", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCITestBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsCheckType.ts b/packages/datadog-api-client-v1/models/SyntheticsCheckType.ts index 812acab29a61..b99bb39790d2 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCheckType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCheckType.ts @@ -4,39 +4,29 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of assertion to apply in an API test. - */ +*/ -export type SyntheticsCheckType = - | typeof EQUALS - | typeof NOT_EQUALS - | typeof CONTAINS - | typeof NOT_CONTAINS - | typeof STARTS_WITH - | typeof NOT_STARTS_WITH - | typeof GREATER - | typeof LOWER - | typeof GREATER_EQUALS - | typeof LOWER_EQUALS - | typeof MATCH_REGEX - | typeof BETWEEN - | typeof IS_EMPTY - | typeof NOT_IS_EMPTY - | UnparsedObject; -export const EQUALS = "equals"; -export const NOT_EQUALS = "notEquals"; -export const CONTAINS = "contains"; -export const NOT_CONTAINS = "notContains"; -export const STARTS_WITH = "startsWith"; -export const NOT_STARTS_WITH = "notStartsWith"; -export const GREATER = "greater"; -export const LOWER = "lower"; -export const GREATER_EQUALS = "greaterEquals"; -export const LOWER_EQUALS = "lowerEquals"; -export const MATCH_REGEX = "matchRegex"; -export const BETWEEN = "between"; -export const IS_EMPTY = "isEmpty"; -export const NOT_IS_EMPTY = "notIsEmpty"; +export type SyntheticsCheckType = typeof EQUALS| typeof NOT_EQUALS| typeof CONTAINS| typeof NOT_CONTAINS| typeof STARTS_WITH| typeof NOT_STARTS_WITH| typeof GREATER| typeof LOWER| typeof GREATER_EQUALS| typeof LOWER_EQUALS| typeof MATCH_REGEX| typeof BETWEEN| typeof IS_EMPTY| typeof NOT_IS_EMPTY | UnparsedObject; +export const EQUALS = 'equals'; +export const NOT_EQUALS = 'notEquals'; +export const CONTAINS = 'contains'; +export const NOT_CONTAINS = 'notContains'; +export const STARTS_WITH = 'startsWith'; +export const NOT_STARTS_WITH = 'notStartsWith'; +export const GREATER = 'greater'; +export const LOWER = 'lower'; +export const GREATER_EQUALS = 'greaterEquals'; +export const LOWER_EQUALS = 'lowerEquals'; +export const MATCH_REGEX = 'matchRegex'; +export const BETWEEN = 'between'; +export const IS_EMPTY = 'isEmpty'; +export const NOT_IS_EMPTY = 'notIsEmpty'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsConfigVariable.ts b/packages/datadog-api-client-v1/models/SyntheticsConfigVariable.ts index 6456bf20dfa5..57482e42030f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsConfigVariable.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsConfigVariable.ts @@ -5,35 +5,40 @@ */ import { SyntheticsConfigVariableType } from "./SyntheticsConfigVariableType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object defining a variable that can be used in your test configuration. - */ +*/ export class SyntheticsConfigVariable { /** * Example for the variable. - */ + */ "example"?: string; /** * ID of the variable for global variables. - */ + */ "id"?: string; /** * Name of the variable. - */ + */ "name": string; /** * Pattern of the variable. - */ + */ "pattern"?: string; /** * Whether the value of this variable will be obfuscated in test results. Only for config variables of type `text`. - */ + */ "secure"?: boolean; /** * Type of the configuration variable. - */ + */ "type": SyntheticsConfigVariableType; /** @@ -52,44 +57,70 @@ export class SyntheticsConfigVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - example: { - baseName: "example", - type: "string", - }, - id: { - baseName: "id", - type: "string", + "example": { + "baseName": "example", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - pattern: { - baseName: "pattern", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - secure: { - baseName: "secure", - type: "boolean", + "pattern": { + "baseName": "pattern", + "type": "string", }, - type: { - baseName: "type", - type: "SyntheticsConfigVariableType", - required: true, + "secure": { + "baseName": "secure", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsConfigVariableType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsConfigVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsConfigVariableType.ts b/packages/datadog-api-client-v1/models/SyntheticsConfigVariableType.ts index 5cbbe073e9e0..235123b5a857 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsConfigVariableType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsConfigVariableType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the configuration variable. - */ +*/ -export type SyntheticsConfigVariableType = - | typeof GLOBAL - | typeof TEXT - | typeof EMAIL - | UnparsedObject; -export const GLOBAL = "global"; -export const TEXT = "text"; -export const EMAIL = "email"; +export type SyntheticsConfigVariableType = typeof GLOBAL| typeof TEXT| typeof EMAIL | UnparsedObject; +export const GLOBAL = 'global'; +export const TEXT = 'text'; +export const EMAIL = 'email'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsCoreWebVitals.ts b/packages/datadog-api-client-v1/models/SyntheticsCoreWebVitals.ts index cf86d9f887df..75118053db63 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsCoreWebVitals.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsCoreWebVitals.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Core Web Vitals attached to a browser test step. - */ +*/ export class SyntheticsCoreWebVitals { /** * Cumulative Layout Shift. - */ + */ "cls"?: number; /** * Largest Contentful Paint in milliseconds. - */ + */ "lcp"?: number; /** * URL attached to the metrics. - */ + */ "url"?: string; /** @@ -39,32 +44,58 @@ export class SyntheticsCoreWebVitals { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cls: { - baseName: "cls", - type: "number", - format: "double", - }, - lcp: { - baseName: "lcp", - type: "number", - format: "double", + "cls": { + "baseName": "cls", + "type": "number", + "format": "double", }, - url: { - baseName: "url", - type: "string", + "lcp": { + "baseName": "lcp", + "type": "number", + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsCoreWebVitals.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.ts b/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.ts index e99b9c4c97b3..1f0f76f8099b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A JSON list of the ID or IDs of the Synthetic tests that you want * to delete. - */ +*/ export class SyntheticsDeleteTestsPayload { /** * Delete the Synthetic test even if it's referenced by other resources * (for example, SLOs and composite monitors). - */ + */ "forceDeleteDependencies"?: boolean; /** * An array of Synthetic test IDs you want to delete. - */ + */ "publicIds"?: Array; /** @@ -37,26 +42,52 @@ export class SyntheticsDeleteTestsPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - forceDeleteDependencies: { - baseName: "force_delete_dependencies", - type: "boolean", + "forceDeleteDependencies": { + "baseName": "force_delete_dependencies", + "type": "boolean", }, - publicIds: { - baseName: "public_ids", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicIds": { + "baseName": "public_ids", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsDeleteTestsPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsResponse.ts index ca73128fa79b..ac9acfe52a75 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsResponse.ts @@ -5,16 +5,21 @@ */ import { SyntheticsDeletedTest } from "./SyntheticsDeletedTest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object for deleting Synthetic tests. - */ +*/ export class SyntheticsDeleteTestsResponse { /** * Array of objects containing a deleted Synthetic test ID with * the associated deletion timestamp. - */ + */ "deletedTests"?: Array; /** @@ -33,22 +38,48 @@ export class SyntheticsDeleteTestsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedTests: { - baseName: "deleted_tests", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deletedTests": { + "baseName": "deleted_tests", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsDeleteTestsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsDeletedTest.ts b/packages/datadog-api-client-v1/models/SyntheticsDeletedTest.ts index 4e6677c8841d..284c7eed1a8c 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsDeletedTest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsDeletedTest.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing a deleted Synthetic test ID with the associated * deletion timestamp. - */ +*/ export class SyntheticsDeletedTest { /** * Deletion timestamp of the Synthetic test ID. - */ + */ "deletedAt"?: Date; /** * The Synthetic test ID deleted. - */ + */ "publicId"?: string; /** @@ -36,27 +41,53 @@ export class SyntheticsDeletedTest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedAt: { - baseName: "deleted_at", - type: "Date", - format: "date-time", + "deletedAt": { + "baseName": "deleted_at", + "type": "Date", + "format": "date-time", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsDeletedTest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsDevice.ts b/packages/datadog-api-client-v1/models/SyntheticsDevice.ts index c8601aa13d07..a57e89164f69 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsDevice.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsDevice.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the device used to perform the Synthetic test. - */ +*/ export class SyntheticsDevice { /** * Screen height of the device. - */ + */ "height": number; /** * The device ID. - */ + */ "id": string; /** * Whether or not the device is a mobile. - */ + */ "isMobile"?: boolean; /** * The device name. - */ + */ "name": string; /** * Screen width of the device. - */ + */ "width": number; /** @@ -47,44 +52,70 @@ export class SyntheticsDevice { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - required: true, - format: "int64", + "height": { + "baseName": "height", + "type": "number", + "required": true, + "format": "int64", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - isMobile: { - baseName: "isMobile", - type: "boolean", + "isMobile": { + "baseName": "isMobile", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - width: { - baseName: "width", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "width": { + "baseName": "width", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsDevice.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsFetchUptimesPayload.ts b/packages/datadog-api-client-v1/models/SyntheticsFetchUptimesPayload.ts index 7f38ac720632..fa5abeb189f5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsFetchUptimesPayload.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsFetchUptimesPayload.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing IDs of Synthetic tests and a timeframe. - */ +*/ export class SyntheticsFetchUptimesPayload { /** * Timestamp in seconds (Unix epoch) for the start of uptime. - */ + */ "fromTs": number; /** * An array of Synthetic test IDs you want uptimes for. - */ + */ "publicIds": Array; /** * Timestamp in seconds (Unix epoch) for the end of uptime. - */ + */ "toTs": number; /** @@ -39,35 +44,61 @@ export class SyntheticsFetchUptimesPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fromTs: { - baseName: "from_ts", - type: "number", - required: true, - format: "int64", - }, - publicIds: { - baseName: "public_ids", - type: "Array", - required: true, + "fromTs": { + "baseName": "from_ts", + "type": "number", + "required": true, + "format": "int64", }, - toTs: { - baseName: "to_ts", - type: "number", - required: true, - format: "int64", + "publicIds": { + "baseName": "public_ids", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "toTs": { + "baseName": "to_ts", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsFetchUptimesPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGetAPITestLatestResultsResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsGetAPITestLatestResultsResponse.ts index f1e118e1d2c0..b13da639c584 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGetAPITestLatestResultsResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGetAPITestLatestResultsResponse.ts @@ -5,19 +5,24 @@ */ import { SyntheticsAPITestResultShort } from "./SyntheticsAPITestResultShort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with the latest Synthetic API test run. - */ +*/ export class SyntheticsGetAPITestLatestResultsResponse { /** * Timestamp of the latest API test run. - */ + */ "lastTimestampFetched"?: number; /** * Result of the latest API test run. - */ + */ "results"?: Array; /** @@ -36,27 +41,53 @@ export class SyntheticsGetAPITestLatestResultsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lastTimestampFetched: { - baseName: "last_timestamp_fetched", - type: "number", - format: "int64", + "lastTimestampFetched": { + "baseName": "last_timestamp_fetched", + "type": "number", + "format": "int64", }, - results: { - baseName: "results", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "results": { + "baseName": "results", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGetAPITestLatestResultsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGetBrowserTestLatestResultsResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsGetBrowserTestLatestResultsResponse.ts index 4b062d078ea6..b7e85408b7fb 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGetBrowserTestLatestResultsResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGetBrowserTestLatestResultsResponse.ts @@ -5,19 +5,24 @@ */ import { SyntheticsBrowserTestResultShort } from "./SyntheticsBrowserTestResultShort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object with the latest Synthetic browser test run. - */ +*/ export class SyntheticsGetBrowserTestLatestResultsResponse { /** * Timestamp of the latest browser test run. - */ + */ "lastTimestampFetched"?: number; /** * Result of the latest browser test run. - */ + */ "results"?: Array; /** @@ -36,27 +41,53 @@ export class SyntheticsGetBrowserTestLatestResultsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lastTimestampFetched: { - baseName: "last_timestamp_fetched", - type: "number", - format: "int64", + "lastTimestampFetched": { + "baseName": "last_timestamp_fetched", + "type": "number", + "format": "int64", }, - results: { - baseName: "results", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "results": { + "baseName": "results", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGetBrowserTestLatestResultsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariable.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariable.ts index eaf099fa0a58..590ba945d86b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariable.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariable.ts @@ -7,51 +7,56 @@ import { SyntheticsGlobalVariableAttributes } from "./SyntheticsGlobalVariableAt import { SyntheticsGlobalVariableParseTestOptions } from "./SyntheticsGlobalVariableParseTestOptions"; import { SyntheticsGlobalVariableValue } from "./SyntheticsGlobalVariableValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Synthetic global variable. - */ +*/ export class SyntheticsGlobalVariable { /** * Attributes of the global variable. - */ + */ "attributes"?: SyntheticsGlobalVariableAttributes; /** * Description of the global variable. - */ + */ "description": string; /** * Unique identifier of the global variable. - */ + */ "id"?: string; /** * Determines if the global variable is a FIDO variable. - */ + */ "isFido"?: boolean; /** * Determines if the global variable is a TOTP/MFA variable. - */ + */ "isTotp"?: boolean; /** * Name of the global variable. Unique across Synthetic global variables. - */ + */ "name": string; /** * Parser options to use for retrieving a Synthetic global variable from a Synthetic test. Used in conjunction with `parse_test_public_id`. - */ + */ "parseTestOptions"?: SyntheticsGlobalVariableParseTestOptions; /** * A Synthetic test ID to use as a test to generate the variable value. - */ + */ "parseTestPublicId"?: string; /** * Tags of the global variable. - */ + */ "tags": Array; /** * Value of the global variable. - */ + */ "value": SyntheticsGlobalVariableValue; /** @@ -70,62 +75,88 @@ export class SyntheticsGlobalVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SyntheticsGlobalVariableAttributes", - }, - description: { - baseName: "description", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SyntheticsGlobalVariableAttributes", }, - id: { - baseName: "id", - type: "string", + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - isFido: { - baseName: "is_fido", - type: "boolean", + "id": { + "baseName": "id", + "type": "string", }, - isTotp: { - baseName: "is_totp", - type: "boolean", + "isFido": { + "baseName": "is_fido", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "isTotp": { + "baseName": "is_totp", + "type": "boolean", }, - parseTestOptions: { - baseName: "parse_test_options", - type: "SyntheticsGlobalVariableParseTestOptions", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - parseTestPublicId: { - baseName: "parse_test_public_id", - type: "string", + "parseTestOptions": { + "baseName": "parse_test_options", + "type": "SyntheticsGlobalVariableParseTestOptions", }, - tags: { - baseName: "tags", - type: "Array", - required: true, + "parseTestPublicId": { + "baseName": "parse_test_public_id", + "type": "string", }, - value: { - baseName: "value", - type: "SyntheticsGlobalVariableValue", - required: true, + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "SyntheticsGlobalVariableValue", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableAttributes.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableAttributes.ts index 87c0d3ccbdf8..9586f631bf72 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableAttributes.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableAttributes.ts @@ -3,16 +3,22 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { SyntheticsRestrictedRolesItem } from "./SyntheticsRestrictedRolesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the global variable. - */ +*/ export class SyntheticsGlobalVariableAttributes { /** * A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. - */ + */ "restrictedRoles"?: Array; /** @@ -31,22 +37,48 @@ export class SyntheticsGlobalVariableAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariableAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableOptions.ts index 26630cfb7f59..526c3a160c8b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableOptions.ts @@ -5,15 +5,20 @@ */ import { SyntheticsGlobalVariableTOTPParameters } from "./SyntheticsGlobalVariableTOTPParameters"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for the Global Variable for MFA. - */ +*/ export class SyntheticsGlobalVariableOptions { /** * Parameters for the TOTP/MFA variable - */ + */ "totpParameters"?: SyntheticsGlobalVariableTOTPParameters; /** @@ -32,22 +37,48 @@ export class SyntheticsGlobalVariableOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totpParameters: { - baseName: "totp_parameters", - type: "SyntheticsGlobalVariableTOTPParameters", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totpParameters": { + "baseName": "totp_parameters", + "type": "SyntheticsGlobalVariableTOTPParameters", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariableOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts index e4ec595d6ddf..07ac72849611 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts @@ -6,27 +6,32 @@ import { SyntheticsGlobalVariableParseTestOptionsType } from "./SyntheticsGlobalVariableParseTestOptionsType"; import { SyntheticsVariableParser } from "./SyntheticsVariableParser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Parser options to use for retrieving a Synthetic global variable from a Synthetic test. Used in conjunction with `parse_test_public_id`. - */ +*/ export class SyntheticsGlobalVariableParseTestOptions { /** * When type is `http_header`, name of the header to use to extract the value. - */ + */ "field"?: string; /** * When type is `local_variable`, name of the local variable to use to extract the value. - */ + */ "localVariableName"?: string; /** * Details of the parser to use for the global variable. - */ + */ "parser"?: SyntheticsVariableParser; /** * Type of value to extract from a test for a Synthetic global variable. - */ + */ "type": SyntheticsGlobalVariableParseTestOptionsType; /** @@ -45,35 +50,61 @@ export class SyntheticsGlobalVariableParseTestOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - field: { - baseName: "field", - type: "string", + "field": { + "baseName": "field", + "type": "string", }, - localVariableName: { - baseName: "localVariableName", - type: "string", + "localVariableName": { + "baseName": "localVariableName", + "type": "string", }, - parser: { - baseName: "parser", - type: "SyntheticsVariableParser", + "parser": { + "baseName": "parser", + "type": "SyntheticsVariableParser", }, - type: { - baseName: "type", - type: "SyntheticsGlobalVariableParseTestOptionsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsGlobalVariableParseTestOptionsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariableParseTestOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts index fb58ae86750d..fac2029ab53e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of value to extract from a test for a Synthetic global variable. - */ +*/ -export type SyntheticsGlobalVariableParseTestOptionsType = - | typeof HTTP_BODY - | typeof HTTP_HEADER - | typeof HTTP_STATUS_CODE - | typeof LOCAL_VARIABLE - | UnparsedObject; -export const HTTP_BODY = "http_body"; -export const HTTP_HEADER = "http_header"; -export const HTTP_STATUS_CODE = "http_status_code"; -export const LOCAL_VARIABLE = "local_variable"; +export type SyntheticsGlobalVariableParseTestOptionsType = typeof HTTP_BODY| typeof HTTP_HEADER| typeof HTTP_STATUS_CODE| typeof LOCAL_VARIABLE | UnparsedObject; +export const HTTP_BODY = 'http_body'; +export const HTTP_HEADER = 'http_header'; +export const HTTP_STATUS_CODE = 'http_status_code'; +export const LOCAL_VARIABLE = 'local_variable'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParserType.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParserType.ts index be86ddcad0bf..2028bc3d8d48 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParserType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParserType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of parser for a Synthetic global variable from a synthetics test. - */ +*/ -export type SyntheticsGlobalVariableParserType = - | typeof RAW - | typeof JSON_PATH - | typeof REGEX - | typeof X_PATH - | UnparsedObject; -export const RAW = "raw"; -export const JSON_PATH = "json_path"; -export const REGEX = "regex"; -export const X_PATH = "x_path"; +export type SyntheticsGlobalVariableParserType = typeof RAW| typeof JSON_PATH| typeof REGEX| typeof X_PATH | UnparsedObject; +export const RAW = 'raw'; +export const JSON_PATH = 'json_path'; +export const REGEX = 'regex'; +export const X_PATH = 'x_path'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableRequest.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableRequest.ts index bed691863bf3..dc36ae002373 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableRequest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableRequest.ts @@ -7,51 +7,56 @@ import { SyntheticsGlobalVariableAttributes } from "./SyntheticsGlobalVariableAt import { SyntheticsGlobalVariableParseTestOptions } from "./SyntheticsGlobalVariableParseTestOptions"; import { SyntheticsGlobalVariableValue } from "./SyntheticsGlobalVariableValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of the global variable to create. - */ +*/ export class SyntheticsGlobalVariableRequest { /** * Attributes of the global variable. - */ + */ "attributes"?: SyntheticsGlobalVariableAttributes; /** * Description of the global variable. - */ + */ "description": string; /** * Unique identifier of the global variable. - */ + */ "id"?: string; /** * Determines if the global variable is a FIDO variable. - */ + */ "isFido"?: boolean; /** * Determines if the global variable is a TOTP/MFA variable. - */ + */ "isTotp"?: boolean; /** * Name of the global variable. Unique across Synthetic global variables. - */ + */ "name": string; /** * Parser options to use for retrieving a Synthetic global variable from a Synthetic test. Used in conjunction with `parse_test_public_id`. - */ + */ "parseTestOptions"?: SyntheticsGlobalVariableParseTestOptions; /** * A Synthetic test ID to use as a test to generate the variable value. - */ + */ "parseTestPublicId"?: string; /** * Tags of the global variable. - */ + */ "tags": Array; /** * Value of the global variable. - */ + */ "value"?: SyntheticsGlobalVariableValue; /** @@ -70,61 +75,87 @@ export class SyntheticsGlobalVariableRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SyntheticsGlobalVariableAttributes", - }, - description: { - baseName: "description", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SyntheticsGlobalVariableAttributes", }, - id: { - baseName: "id", - type: "string", + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - isFido: { - baseName: "is_fido", - type: "boolean", + "id": { + "baseName": "id", + "type": "string", }, - isTotp: { - baseName: "is_totp", - type: "boolean", + "isFido": { + "baseName": "is_fido", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "isTotp": { + "baseName": "is_totp", + "type": "boolean", }, - parseTestOptions: { - baseName: "parse_test_options", - type: "SyntheticsGlobalVariableParseTestOptions", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - parseTestPublicId: { - baseName: "parse_test_public_id", - type: "string", + "parseTestOptions": { + "baseName": "parse_test_options", + "type": "SyntheticsGlobalVariableParseTestOptions", }, - tags: { - baseName: "tags", - type: "Array", - required: true, + "parseTestPublicId": { + "baseName": "parse_test_public_id", + "type": "string", }, - value: { - baseName: "value", - type: "SyntheticsGlobalVariableValue", + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "SyntheticsGlobalVariableValue", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariableRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableTOTPParameters.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableTOTPParameters.ts index a4a13c266c08..81030bd02e71 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableTOTPParameters.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableTOTPParameters.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Parameters for the TOTP/MFA variable - */ +*/ export class SyntheticsGlobalVariableTOTPParameters { /** * Number of digits for the OTP code. - */ + */ "digits"?: number; /** * Interval for which to refresh the token (in seconds). - */ + */ "refreshInterval"?: number; /** @@ -35,28 +40,54 @@ export class SyntheticsGlobalVariableTOTPParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - digits: { - baseName: "digits", - type: "number", - format: "int32", + "digits": { + "baseName": "digits", + "type": "number", + "format": "int32", }, - refreshInterval: { - baseName: "refresh_interval", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "refreshInterval": { + "baseName": "refresh_interval", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariableTOTPParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableValue.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableValue.ts index d19fce671ccc..69d01b5fe7d6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableValue.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableValue.ts @@ -5,24 +5,29 @@ */ import { SyntheticsGlobalVariableOptions } from "./SyntheticsGlobalVariableOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Value of the global variable. - */ +*/ export class SyntheticsGlobalVariableValue { /** * Options for the Global Variable for MFA. - */ + */ "options"?: SyntheticsGlobalVariableOptions; /** * Determines if the value of the variable is hidden. - */ + */ "secure"?: boolean; /** * Value of the global variable. When reading a global variable, * the value will not be present if the variable is hidden with the `secure` property. - */ + */ "value"?: string; /** @@ -41,30 +46,56 @@ export class SyntheticsGlobalVariableValue { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - options: { - baseName: "options", - type: "SyntheticsGlobalVariableOptions", - }, - secure: { - baseName: "secure", - type: "boolean", + "options": { + "baseName": "options", + "type": "SyntheticsGlobalVariableOptions", }, - value: { - baseName: "value", - type: "string", + "secure": { + "baseName": "secure", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsGlobalVariableValue.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsListGlobalVariablesResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsListGlobalVariablesResponse.ts index d316fd5c5667..56727f20cf60 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsListGlobalVariablesResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsListGlobalVariablesResponse.ts @@ -5,15 +5,20 @@ */ import { SyntheticsGlobalVariable } from "./SyntheticsGlobalVariable"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing an array of Synthetic global variables. - */ +*/ export class SyntheticsListGlobalVariablesResponse { /** * Array of Synthetic global variables. - */ + */ "variables"?: Array; /** @@ -32,22 +37,48 @@ export class SyntheticsListGlobalVariablesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - variables: { - baseName: "variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "variables": { + "baseName": "variables", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsListGlobalVariablesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsListTestsResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsListTestsResponse.ts index 0a318af8526e..b106ea328f02 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsListTestsResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsListTestsResponse.ts @@ -5,15 +5,20 @@ */ import { SyntheticsTestDetails } from "./SyntheticsTestDetails"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing an array of Synthetic tests configuration. - */ +*/ export class SyntheticsListTestsResponse { /** * Array of Synthetic tests configuration. - */ + */ "tests"?: Array; /** @@ -32,22 +37,48 @@ export class SyntheticsListTestsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tests: { - baseName: "tests", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tests": { + "baseName": "tests", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsListTestsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts b/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts index c7d905b5f14a..f0daedc08bdd 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Property of the Synthetic Test Response to extract into a local variable. - */ +*/ -export type SyntheticsLocalVariableParsingOptionsType = - | typeof GRPC_MESSAGE - | typeof GRPC_METADATA - | typeof HTTP_BODY - | typeof HTTP_HEADER - | typeof HTTP_STATUS_CODE - | UnparsedObject; -export const GRPC_MESSAGE = "grpc_message"; -export const GRPC_METADATA = "grpc_metadata"; -export const HTTP_BODY = "http_body"; -export const HTTP_HEADER = "http_header"; -export const HTTP_STATUS_CODE = "http_status_code"; +export type SyntheticsLocalVariableParsingOptionsType = typeof GRPC_MESSAGE| typeof GRPC_METADATA| typeof HTTP_BODY| typeof HTTP_HEADER| typeof HTTP_STATUS_CODE | UnparsedObject; +export const GRPC_MESSAGE = 'grpc_message'; +export const GRPC_METADATA = 'grpc_metadata'; +export const HTTP_BODY = 'http_body'; +export const HTTP_HEADER = 'http_header'; +export const HTTP_STATUS_CODE = 'http_status_code'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsLocation.ts b/packages/datadog-api-client-v1/models/SyntheticsLocation.ts index cbf9bcf8a2c3..7328cbabe988 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsLocation.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsLocation.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Synthetic location that can be used when creating or editing a * test. - */ +*/ export class SyntheticsLocation { /** * Unique identifier of the location. - */ + */ "id"?: string; /** * Name of the location. - */ + */ "name"?: string; /** @@ -36,26 +41,52 @@ export class SyntheticsLocation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsLocation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsLocations.ts b/packages/datadog-api-client-v1/models/SyntheticsLocations.ts index c0e2bbaf0eb1..d46c1870538e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsLocations.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsLocations.ts @@ -5,15 +5,20 @@ */ import { SyntheticsLocation } from "./SyntheticsLocation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of Synthetic locations. - */ +*/ export class SyntheticsLocations { /** * List of Synthetic locations. - */ + */ "locations"?: Array; /** @@ -32,22 +37,48 @@ export class SyntheticsLocations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - locations: { - baseName: "locations", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "locations": { + "baseName": "locations", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsLocations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStep.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStep.ts index bb685ab12821..c6ada2abafe5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStep.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStep.ts @@ -6,47 +6,52 @@ import { SyntheticsMobileStepParams } from "./SyntheticsMobileStepParams"; import { SyntheticsMobileStepType } from "./SyntheticsMobileStepType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The steps used in a Synthetic mobile test. - */ +*/ export class SyntheticsMobileStep { /** * A boolean set to allow this step to fail. - */ + */ "allowFailure"?: boolean; /** * A boolean set to determine if the step has a new step element. - */ + */ "hasNewStepElement"?: boolean; /** * A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails. - */ + */ "isCritical"?: boolean; /** * The name of the step. - */ + */ "name": string; /** * A boolean set to not take a screenshot for the step. - */ + */ "noScreenshot"?: boolean; /** * The parameters of a mobile step. - */ + */ "params": SyntheticsMobileStepParams; /** * The public ID of the step. - */ + */ "publicId"?: string; /** * The time before declaring a step failed. - */ + */ "timeout"?: number; /** * Step type used in your mobile Synthetic test. - */ + */ "type": SyntheticsMobileStepType; /** @@ -65,58 +70,84 @@ export class SyntheticsMobileStep { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowFailure: { - baseName: "allowFailure", - type: "boolean", + "allowFailure": { + "baseName": "allowFailure", + "type": "boolean", }, - hasNewStepElement: { - baseName: "hasNewStepElement", - type: "boolean", + "hasNewStepElement": { + "baseName": "hasNewStepElement", + "type": "boolean", }, - isCritical: { - baseName: "isCritical", - type: "boolean", + "isCritical": { + "baseName": "isCritical", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - noScreenshot: { - baseName: "noScreenshot", - type: "boolean", + "noScreenshot": { + "baseName": "noScreenshot", + "type": "boolean", }, - params: { - baseName: "params", - type: "SyntheticsMobileStepParams", - required: true, + "params": { + "baseName": "params", + "type": "SyntheticsMobileStepParams", + "required": true, }, - publicId: { - baseName: "publicId", - type: "string", + "publicId": { + "baseName": "publicId", + "type": "string", }, - timeout: { - baseName: "timeout", - type: "number", - format: "int64", + "timeout": { + "baseName": "timeout", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "SyntheticsMobileStepType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsMobileStepType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStep.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParams.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParams.ts index bf29491ce792..0c2244d04fc5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParams.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParams.ts @@ -10,63 +10,68 @@ import { SyntheticsMobileStepParamsPositionsItems } from "./SyntheticsMobileStep import { SyntheticsMobileStepParamsValue } from "./SyntheticsMobileStepParamsValue"; import { SyntheticsMobileStepParamsVariable } from "./SyntheticsMobileStepParamsVariable"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The parameters of a mobile step. - */ +*/ export class SyntheticsMobileStepParams { /** * Type of assertion to apply in an API test. - */ + */ "check"?: SyntheticsCheckType; /** * Number of milliseconds to wait between inputs in a `typeText` step type. - */ + */ "delay"?: number; /** * The direction of the scroll for a `scrollToElement` step type. - */ + */ "direction"?: SyntheticsMobileStepParamsDirection; /** * Information about the element used for a step. - */ + */ "element"?: SyntheticsMobileStepParamsElement; /** * Boolean to change the state of the wifi for a `toggleWiFi` step type. - */ + */ "enabled"?: boolean; /** * Maximum number of scrolls to do for a `scrollToElement` step type. - */ + */ "maxScrolls"?: number; /** * List of positions for the `flick` step type. The maximum is 10 flicks per step - */ + */ "positions"?: Array; /** * Public ID of the test to be played as part of a `playSubTest` step type. - */ + */ "subtestPublicId"?: string; /** * Values used in the step for in multiple step types. - */ + */ "value"?: SyntheticsMobileStepParamsValue; /** * Variable object for `extractVariable` step type. - */ + */ "variable"?: SyntheticsMobileStepParamsVariable; /** * Boolean to indicate if `Enter` should be pressed at the end of the `typeText` step type. - */ + */ "withEnter"?: boolean; /** * Amount to scroll by on the `x` axis for a `scroll` step type. - */ + */ "x"?: number; /** * Amount to scroll by on the `y` axis for a `scroll` step type. - */ + */ "y"?: number; /** @@ -85,74 +90,100 @@ export class SyntheticsMobileStepParams { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - check: { - baseName: "check", - type: "SyntheticsCheckType", + "check": { + "baseName": "check", + "type": "SyntheticsCheckType", }, - delay: { - baseName: "delay", - type: "number", - format: "int64", + "delay": { + "baseName": "delay", + "type": "number", + "format": "int64", }, - direction: { - baseName: "direction", - type: "SyntheticsMobileStepParamsDirection", + "direction": { + "baseName": "direction", + "type": "SyntheticsMobileStepParamsDirection", }, - element: { - baseName: "element", - type: "SyntheticsMobileStepParamsElement", + "element": { + "baseName": "element", + "type": "SyntheticsMobileStepParamsElement", }, - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - maxScrolls: { - baseName: "maxScrolls", - type: "number", - format: "int64", + "maxScrolls": { + "baseName": "maxScrolls", + "type": "number", + "format": "int64", }, - positions: { - baseName: "positions", - type: "Array", + "positions": { + "baseName": "positions", + "type": "Array", }, - subtestPublicId: { - baseName: "subtestPublicId", - type: "string", + "subtestPublicId": { + "baseName": "subtestPublicId", + "type": "string", }, - value: { - baseName: "value", - type: "SyntheticsMobileStepParamsValue", + "value": { + "baseName": "value", + "type": "SyntheticsMobileStepParamsValue", }, - variable: { - baseName: "variable", - type: "SyntheticsMobileStepParamsVariable", + "variable": { + "baseName": "variable", + "type": "SyntheticsMobileStepParamsVariable", }, - withEnter: { - baseName: "withEnter", - type: "boolean", + "withEnter": { + "baseName": "withEnter", + "type": "boolean", }, - x: { - baseName: "x", - type: "number", - format: "double", + "x": { + "baseName": "x", + "type": "number", + "format": "double", }, - y: { - baseName: "y", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParams.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsDirection.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsDirection.ts index 4e6c5fb40b45..9705ac3878f9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsDirection.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsDirection.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The direction of the scroll for a `scrollToElement` step type. - */ +*/ -export type SyntheticsMobileStepParamsDirection = - | typeof UP - | typeof DOWN - | typeof LEFT - | typeof RIGHT - | UnparsedObject; -export const UP = "up"; -export const DOWN = "down"; -export const LEFT = "left"; -export const RIGHT = "right"; +export type SyntheticsMobileStepParamsDirection = typeof UP| typeof DOWN| typeof LEFT| typeof RIGHT | UnparsedObject; +export const UP = 'up'; +export const DOWN = 'down'; +export const LEFT = 'left'; +export const RIGHT = 'right'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElement.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElement.ts index 891059c30b9c..572857b1120a 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElement.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElement.ts @@ -7,43 +7,48 @@ import { SyntheticsMobileStepParamsElementContextType } from "./SyntheticsMobile import { SyntheticsMobileStepParamsElementRelativePosition } from "./SyntheticsMobileStepParamsElementRelativePosition"; import { SyntheticsMobileStepParamsElementUserLocator } from "./SyntheticsMobileStepParamsElementUserLocator"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about the element used for a step. - */ +*/ export class SyntheticsMobileStepParamsElement { /** * Context of the element. - */ + */ "context"?: string; /** * Type of the context that the element is in. - */ + */ "contextType"?: SyntheticsMobileStepParamsElementContextType; /** * Description of the element. - */ + */ "elementDescription"?: string; /** * Multi-locator to find the element. - */ + */ "multiLocator"?: any; /** * Position of the action relative to the element. - */ + */ "relativePosition"?: SyntheticsMobileStepParamsElementRelativePosition; /** * Text content of the element. - */ + */ "textContent"?: string; /** * User locator to find the element. - */ + */ "userLocator"?: SyntheticsMobileStepParamsElementUserLocator; /** * Name of the view of the element. - */ + */ "viewName"?: string; /** @@ -62,50 +67,76 @@ export class SyntheticsMobileStepParamsElement { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - context: { - baseName: "context", - type: "string", + "context": { + "baseName": "context", + "type": "string", }, - contextType: { - baseName: "contextType", - type: "SyntheticsMobileStepParamsElementContextType", + "contextType": { + "baseName": "contextType", + "type": "SyntheticsMobileStepParamsElementContextType", }, - elementDescription: { - baseName: "elementDescription", - type: "string", + "elementDescription": { + "baseName": "elementDescription", + "type": "string", }, - multiLocator: { - baseName: "multiLocator", - type: "any", + "multiLocator": { + "baseName": "multiLocator", + "type": "any", }, - relativePosition: { - baseName: "relativePosition", - type: "SyntheticsMobileStepParamsElementRelativePosition", + "relativePosition": { + "baseName": "relativePosition", + "type": "SyntheticsMobileStepParamsElementRelativePosition", }, - textContent: { - baseName: "textContent", - type: "string", + "textContent": { + "baseName": "textContent", + "type": "string", }, - userLocator: { - baseName: "userLocator", - type: "SyntheticsMobileStepParamsElementUserLocator", + "userLocator": { + "baseName": "userLocator", + "type": "SyntheticsMobileStepParamsElementUserLocator", }, - viewName: { - baseName: "viewName", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "viewName": { + "baseName": "viewName", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParamsElement.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementContextType.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementContextType.ts index bbc050abe244..3cdc190d2b22 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementContextType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementContextType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the context that the element is in. - */ +*/ -export type SyntheticsMobileStepParamsElementContextType = - | typeof NATIVE - | typeof WEB - | UnparsedObject; -export const NATIVE = "native"; -export const WEB = "web"; +export type SyntheticsMobileStepParamsElementContextType = typeof NATIVE| typeof WEB | UnparsedObject; +export const NATIVE = 'native'; +export const WEB = 'web'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementRelativePosition.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementRelativePosition.ts index e3c833346966..8466c349077c 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementRelativePosition.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementRelativePosition.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Position of the action relative to the element. - */ +*/ export class SyntheticsMobileStepParamsElementRelativePosition { /** * The `relativePosition` on the `x` axis for the element. - */ + */ "x"?: number; /** * The `relativePosition` on the `y` axis for the element. - */ + */ "y"?: number; /** @@ -35,28 +40,54 @@ export class SyntheticsMobileStepParamsElementRelativePosition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - x: { - baseName: "x", - type: "number", - format: "double", + "x": { + "baseName": "x", + "type": "number", + "format": "double", }, - y: { - baseName: "y", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParamsElementRelativePosition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocator.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocator.ts index 1b35868503e6..342dbd67ad93 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocator.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocator.ts @@ -5,19 +5,24 @@ */ import { SyntheticsMobileStepParamsElementUserLocatorValuesItems } from "./SyntheticsMobileStepParamsElementUserLocatorValuesItems"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User locator to find the element. - */ +*/ export class SyntheticsMobileStepParamsElementUserLocator { /** * Whether if the test should fail if the element cannot be found. - */ + */ "failTestOnCannotLocate"?: boolean; /** * Values of the user locator. - */ + */ "values"?: Array; /** @@ -36,26 +41,52 @@ export class SyntheticsMobileStepParamsElementUserLocator { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - failTestOnCannotLocate: { - baseName: "failTestOnCannotLocate", - type: "boolean", + "failTestOnCannotLocate": { + "baseName": "failTestOnCannotLocate", + "type": "boolean", }, - values: { - baseName: "values", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParamsElementUserLocator.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItems.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItems.ts index 3be15ec1d754..09e7b9934488 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItems.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItems.ts @@ -5,19 +5,24 @@ */ import { SyntheticsMobileStepParamsElementUserLocatorValuesItemsType } from "./SyntheticsMobileStepParamsElementUserLocatorValuesItemsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single user locator object. - */ +*/ export class SyntheticsMobileStepParamsElementUserLocatorValuesItems { /** * Type of a user locator. - */ + */ "type"?: SyntheticsMobileStepParamsElementUserLocatorValuesItemsType; /** * Value of a user locator. - */ + */ "value"?: string; /** @@ -36,26 +41,52 @@ export class SyntheticsMobileStepParamsElementUserLocatorValuesItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "SyntheticsMobileStepParamsElementUserLocatorValuesItemsType", + "type": { + "baseName": "type", + "type": "SyntheticsMobileStepParamsElementUserLocatorValuesItemsType", }, - value: { - baseName: "value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParamsElementUserLocatorValuesItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItemsType.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItemsType.ts index 3721b232a254..a9fae18b7a7f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItemsType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementUserLocatorValuesItemsType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of a user locator. - */ +*/ -export type SyntheticsMobileStepParamsElementUserLocatorValuesItemsType = - | typeof ACCESSIBILITY_ID - | typeof ID - | typeof IOS_PREDICATE_STRING - | typeof IOS_CLASS_CHAIN - | typeof XPATH - | UnparsedObject; -export const ACCESSIBILITY_ID = "accessibility-id"; -export const ID = "id"; -export const IOS_PREDICATE_STRING = "ios-predicate-string"; -export const IOS_CLASS_CHAIN = "ios-class-chain"; -export const XPATH = "xpath"; +export type SyntheticsMobileStepParamsElementUserLocatorValuesItemsType = typeof ACCESSIBILITY_ID| typeof ID| typeof IOS_PREDICATE_STRING| typeof IOS_CLASS_CHAIN| typeof XPATH | UnparsedObject; +export const ACCESSIBILITY_ID = 'accessibility-id'; +export const ID = 'id'; +export const IOS_PREDICATE_STRING = 'ios-predicate-string'; +export const IOS_CLASS_CHAIN = 'ios-class-chain'; +export const XPATH = 'xpath'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsPositionsItems.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsPositionsItems.ts index 17c2b23457c9..eb9370b670a9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsPositionsItems.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsPositionsItems.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A description of a single position for a `flick` step type. - */ +*/ export class SyntheticsMobileStepParamsPositionsItems { /** * The `x` position for the flick. - */ + */ "x"?: number; /** * The `y` position for the flick. - */ + */ "y"?: number; /** @@ -35,28 +40,54 @@ export class SyntheticsMobileStepParamsPositionsItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - x: { - baseName: "x", - type: "number", - format: "double", + "x": { + "baseName": "x", + "type": "number", + "format": "double", }, - y: { - baseName: "y", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParamsPositionsItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsValue.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsValue.ts index d73d9cd842f8..4c703f8db5fa 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsValue.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsValue.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Values used in the step for in multiple step types. - */ +*/ -export type SyntheticsMobileStepParamsValue = string | number | UnparsedObject; +export type SyntheticsMobileStepParamsValue = string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsVariable.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsVariable.ts index a4ff3549a3f9..7a0747ca6023 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsVariable.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsVariable.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Variable object for `extractVariable` step type. - */ +*/ export class SyntheticsMobileStepParamsVariable { /** * An example for the variable. - */ + */ "example": string; /** * The variable name. - */ + */ "name": string; /** @@ -35,28 +40,54 @@ export class SyntheticsMobileStepParamsVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - example: { - baseName: "example", - type: "string", - required: true, + "example": { + "baseName": "example", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileStepParamsVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileStepType.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileStepType.ts index 07cb2350c609..f744db8f25f3 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileStepType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileStepType.ts @@ -4,45 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Step type used in your mobile Synthetic test. - */ +*/ -export type SyntheticsMobileStepType = - | typeof ASSERTELEMENTCONTENT - | typeof ASSERTSCREENCONTAINS - | typeof ASSERTSCREENLACKS - | typeof DOUBLETAP - | typeof EXTRACTVARIABLE - | typeof FLICK - | typeof OPENDEEPLINK - | typeof PLAYSUBTEST - | typeof PRESSBACK - | typeof RESTARTAPPLICATION - | typeof ROTATE - | typeof SCROLL - | typeof SCROLLTOELEMENT - | typeof TAP - | typeof TOGGLEWIFI - | typeof TYPETEXT - | typeof WAIT - | UnparsedObject; -export const ASSERTELEMENTCONTENT = "assertElementContent"; -export const ASSERTSCREENCONTAINS = "assertScreenContains"; -export const ASSERTSCREENLACKS = "assertScreenLacks"; -export const DOUBLETAP = "doubleTap"; -export const EXTRACTVARIABLE = "extractVariable"; -export const FLICK = "flick"; -export const OPENDEEPLINK = "openDeeplink"; -export const PLAYSUBTEST = "playSubTest"; -export const PRESSBACK = "pressBack"; -export const RESTARTAPPLICATION = "restartApplication"; -export const ROTATE = "rotate"; -export const SCROLL = "scroll"; -export const SCROLLTOELEMENT = "scrollToElement"; -export const TAP = "tap"; -export const TOGGLEWIFI = "toggleWiFi"; -export const TYPETEXT = "typeText"; -export const WAIT = "wait"; +export type SyntheticsMobileStepType = typeof ASSERTELEMENTCONTENT| typeof ASSERTSCREENCONTAINS| typeof ASSERTSCREENLACKS| typeof DOUBLETAP| typeof EXTRACTVARIABLE| typeof FLICK| typeof OPENDEEPLINK| typeof PLAYSUBTEST| typeof PRESSBACK| typeof RESTARTAPPLICATION| typeof ROTATE| typeof SCROLL| typeof SCROLLTOELEMENT| typeof TAP| typeof TOGGLEWIFI| typeof TYPETEXT| typeof WAIT | UnparsedObject; +export const ASSERTELEMENTCONTENT = 'assertElementContent'; +export const ASSERTSCREENCONTAINS = 'assertScreenContains'; +export const ASSERTSCREENLACKS = 'assertScreenLacks'; +export const DOUBLETAP = 'doubleTap'; +export const EXTRACTVARIABLE = 'extractVariable'; +export const FLICK = 'flick'; +export const OPENDEEPLINK = 'openDeeplink'; +export const PLAYSUBTEST = 'playSubTest'; +export const PRESSBACK = 'pressBack'; +export const RESTARTAPPLICATION = 'restartApplication'; +export const ROTATE = 'rotate'; +export const SCROLL = 'scroll'; +export const SCROLLTOELEMENT = 'scrollToElement'; +export const TAP = 'tap'; +export const TOGGLEWIFI = 'toggleWiFi'; +export const TYPETEXT = 'typeText'; +export const WAIT = 'wait'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileTest.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileTest.ts index 3b7a2936e497..5cc8eccf196f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileTest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileTest.ts @@ -3,62 +3,68 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { SyntheticsDeviceID } from "./SyntheticsDeviceID"; import { SyntheticsMobileStep } from "./SyntheticsMobileStep"; import { SyntheticsMobileTestConfig } from "./SyntheticsMobileTestConfig"; import { SyntheticsMobileTestOptions } from "./SyntheticsMobileTestOptions"; import { SyntheticsMobileTestType } from "./SyntheticsMobileTestType"; import { SyntheticsTestPauseStatus } from "./SyntheticsTestPauseStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing details about a Synthetic mobile test. - */ +*/ export class SyntheticsMobileTest { /** * Configuration object for a Synthetic mobile test. - */ + */ "config": SyntheticsMobileTestConfig; /** * Array with the different device IDs used to run the test. - */ + */ "deviceIds"?: Array; /** * Notification message associated with the test. - */ + */ "message"?: string; /** * The associated monitor ID. - */ + */ "monitorId"?: number; /** * Name of the test. - */ + */ "name": string; /** * Object describing the extra options for a Synthetic test. - */ + */ "options": SyntheticsMobileTestOptions; /** * The public ID of the test. - */ + */ "publicId"?: string; /** * Define whether you want to start (`live`) or pause (`paused`) a * Synthetic test. - */ + */ "status"?: SyntheticsTestPauseStatus; /** * Array of steps for the test. - */ + */ "steps"?: Array; /** * Array of tags attached to the test. - */ + */ "tags"?: Array; /** * Type of the Synthetic test, `mobile`. - */ + */ "type": SyntheticsMobileTestType; /** @@ -77,67 +83,93 @@ export class SyntheticsMobileTest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "SyntheticsMobileTestConfig", - required: true, - }, - deviceIds: { - baseName: "device_ids", - type: "Array", + "config": { + "baseName": "config", + "type": "SyntheticsMobileTestConfig", + "required": true, }, - message: { - baseName: "message", - type: "string", + "deviceIds": { + "baseName": "device_ids", + "type": "Array", }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", + "message": { + "baseName": "message", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", }, - options: { - baseName: "options", - type: "SyntheticsMobileTestOptions", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - publicId: { - baseName: "public_id", - type: "string", + "options": { + "baseName": "options", + "type": "SyntheticsMobileTestOptions", + "required": true, }, - status: { - baseName: "status", - type: "SyntheticsTestPauseStatus", + "publicId": { + "baseName": "public_id", + "type": "string", }, - steps: { - baseName: "steps", - type: "Array", + "status": { + "baseName": "status", + "type": "SyntheticsTestPauseStatus", }, - tags: { - baseName: "tags", - type: "Array", + "steps": { + "baseName": "steps", + "type": "Array", }, - type: { - baseName: "type", - type: "SyntheticsMobileTestType", - required: true, + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsMobileTestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileTest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileTestConfig.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileTestConfig.ts index 6a4330554c6d..14c5c0da0849 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileTestConfig.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileTestConfig.ts @@ -5,19 +5,24 @@ */ import { SyntheticsConfigVariable } from "./SyntheticsConfigVariable"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration object for a Synthetic mobile test. - */ +*/ export class SyntheticsMobileTestConfig { /** * Initial application arguments for a mobile test. - */ - "initialApplicationArguments"?: { [key: string]: string }; + */ + "initialApplicationArguments"?: { [key: string]: string; }; /** * Array of variables used for the test steps. - */ + */ "variables"?: Array; /** @@ -36,26 +41,52 @@ export class SyntheticsMobileTestConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - initialApplicationArguments: { - baseName: "initialApplicationArguments", - type: "{ [key: string]: string; }", + "initialApplicationArguments": { + "baseName": "initialApplicationArguments", + "type": "{ [key: string]: string; }", }, - variables: { - baseName: "variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "variables": { + "baseName": "variables", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileTestConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileTestOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileTestOptions.ts index 9df1ddb2faf0..224a7298b9e1 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileTestOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileTestOptions.ts @@ -3,87 +3,94 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { SyntheticsDeviceID } from "./SyntheticsDeviceID"; import { SyntheticsMobileTestsMobileApplication } from "./SyntheticsMobileTestsMobileApplication"; +import { SyntheticsRestrictedRolesItem } from "./SyntheticsRestrictedRolesItem"; import { SyntheticsTestCiOptions } from "./SyntheticsTestCiOptions"; import { SyntheticsTestOptionsMonitorOptions } from "./SyntheticsTestOptionsMonitorOptions"; import { SyntheticsTestOptionsRetry } from "./SyntheticsTestOptionsRetry"; import { SyntheticsTestOptionsScheduling } from "./SyntheticsTestOptionsScheduling"; import { SyntheticsTestRestrictionPolicyBinding } from "./SyntheticsTestRestrictionPolicyBinding"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the extra options for a Synthetic test. - */ +*/ export class SyntheticsMobileTestOptions { /** * A boolean to set if an application crash would mark the test as failed. - */ + */ "allowApplicationCrash"?: boolean; /** * Array of bindings used for the mobile test. - */ + */ "bindings"?: Array; /** * CI/CD options for a Synthetic test. - */ + */ "ci"?: SyntheticsTestCiOptions; /** * The default timeout for steps in the test (in seconds). - */ + */ "defaultStepTimeout"?: number; /** * For mobile test, array with the different device IDs used to run the test. - */ + */ "deviceIds": Array; /** * A boolean to disable auto accepting alerts. - */ + */ "disableAutoAcceptAlert"?: boolean; /** * Minimum amount of time in failure required to trigger an alert. - */ + */ "minFailureDuration"?: number; /** * Mobile application for mobile synthetics test. - */ + */ "mobileApplication": SyntheticsMobileTestsMobileApplication; /** * The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. - */ + */ "monitorName"?: string; /** * Object containing the options for a Synthetic test as a monitor * (for example, renotification). - */ + */ "monitorOptions"?: SyntheticsTestOptionsMonitorOptions; /** * Integer from 1 (high) to 5 (low) indicating alert severity. - */ + */ "monitorPriority"?: number; /** * A boolean set to not take a screenshot for the step. - */ + */ "noScreenshot"?: boolean; /** * A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. - */ + */ "restrictedRoles"?: Array; /** * Object describing the retry strategy to apply to a Synthetic test. - */ + */ "retry"?: SyntheticsTestOptionsRetry; /** * Object containing timeframes and timezone used for advanced scheduling. - */ + */ "scheduling"?: SyntheticsTestOptionsScheduling; /** * The frequency at which to run the Synthetic test (in seconds). - */ + */ "tickEvery": number; /** * The level of verbosity for the mobile test. This field can not be set by a user. - */ + */ "verbosity"?: number; /** @@ -102,94 +109,120 @@ export class SyntheticsMobileTestOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowApplicationCrash: { - baseName: "allowApplicationCrash", - type: "boolean", - }, - bindings: { - baseName: "bindings", - type: "Array", - }, - ci: { - baseName: "ci", - type: "SyntheticsTestCiOptions", - }, - defaultStepTimeout: { - baseName: "defaultStepTimeout", - type: "number", - format: "int32", - }, - deviceIds: { - baseName: "device_ids", - type: "Array", - required: true, - }, - disableAutoAcceptAlert: { - baseName: "disableAutoAcceptAlert", - type: "boolean", - }, - minFailureDuration: { - baseName: "min_failure_duration", - type: "number", - format: "int64", - }, - mobileApplication: { - baseName: "mobileApplication", - type: "SyntheticsMobileTestsMobileApplication", - required: true, - }, - monitorName: { - baseName: "monitor_name", - type: "string", - }, - monitorOptions: { - baseName: "monitor_options", - type: "SyntheticsTestOptionsMonitorOptions", - }, - monitorPriority: { - baseName: "monitor_priority", - type: "number", - format: "int32", - }, - noScreenshot: { - baseName: "noScreenshot", - type: "boolean", - }, - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", - }, - retry: { - baseName: "retry", - type: "SyntheticsTestOptionsRetry", - }, - scheduling: { - baseName: "scheduling", - type: "SyntheticsTestOptionsScheduling", - }, - tickEvery: { - baseName: "tick_every", - type: "number", - required: true, - format: "int64", - }, - verbosity: { - baseName: "verbosity", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "allowApplicationCrash": { + "baseName": "allowApplicationCrash", + "type": "boolean", + }, + "bindings": { + "baseName": "bindings", + "type": "Array", + }, + "ci": { + "baseName": "ci", + "type": "SyntheticsTestCiOptions", + }, + "defaultStepTimeout": { + "baseName": "defaultStepTimeout", + "type": "number", + "format": "int32", + }, + "deviceIds": { + "baseName": "device_ids", + "type": "Array", + "required": true, + }, + "disableAutoAcceptAlert": { + "baseName": "disableAutoAcceptAlert", + "type": "boolean", + }, + "minFailureDuration": { + "baseName": "min_failure_duration", + "type": "number", + "format": "int64", + }, + "mobileApplication": { + "baseName": "mobileApplication", + "type": "SyntheticsMobileTestsMobileApplication", + "required": true, + }, + "monitorName": { + "baseName": "monitor_name", + "type": "string", + }, + "monitorOptions": { + "baseName": "monitor_options", + "type": "SyntheticsTestOptionsMonitorOptions", + }, + "monitorPriority": { + "baseName": "monitor_priority", + "type": "number", + "format": "int32", + }, + "noScreenshot": { + "baseName": "noScreenshot", + "type": "boolean", + }, + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", + }, + "retry": { + "baseName": "retry", + "type": "SyntheticsTestOptionsRetry", + }, + "scheduling": { + "baseName": "scheduling", + "type": "SyntheticsTestOptionsScheduling", + }, + "tickEvery": { + "baseName": "tick_every", + "type": "number", + "required": true, + "format": "int64", + }, + "verbosity": { + "baseName": "verbosity", + "type": "number", + "format": "int32", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileTestOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileTestType.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileTestType.ts index 707545967782..3e9d90f1399a 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileTestType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileTestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Synthetic test, `mobile`. - */ +*/ export type SyntheticsMobileTestType = typeof MOBILE | UnparsedObject; -export const MOBILE = "mobile"; +export const MOBILE = 'mobile'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplication.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplication.ts index 4e3418b8e449..d382c3904fa7 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplication.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplication.ts @@ -5,23 +5,28 @@ */ import { SyntheticsMobileTestsMobileApplicationReferenceType } from "./SyntheticsMobileTestsMobileApplicationReferenceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Mobile application for mobile synthetics test. - */ +*/ export class SyntheticsMobileTestsMobileApplication { /** * Application ID of the mobile application. - */ + */ "applicationId": string; /** * Reference ID of the mobile application. - */ + */ "referenceId": string; /** * Reference type for the mobile application for a mobile synthetics test. - */ + */ "referenceType": SyntheticsMobileTestsMobileApplicationReferenceType; /** @@ -40,33 +45,59 @@ export class SyntheticsMobileTestsMobileApplication { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - applicationId: { - baseName: "applicationId", - type: "string", - required: true, - }, - referenceId: { - baseName: "referenceId", - type: "string", - required: true, + "applicationId": { + "baseName": "applicationId", + "type": "string", + "required": true, }, - referenceType: { - baseName: "referenceType", - type: "SyntheticsMobileTestsMobileApplicationReferenceType", - required: true, + "referenceId": { + "baseName": "referenceId", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "referenceType": { + "baseName": "referenceType", + "type": "SyntheticsMobileTestsMobileApplicationReferenceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsMobileTestsMobileApplication.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplicationReferenceType.ts b/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplicationReferenceType.ts index 98d1f3043256..73a9b9fd6dcf 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplicationReferenceType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsMobileTestsMobileApplicationReferenceType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Reference type for the mobile application for a mobile synthetics test. - */ +*/ -export type SyntheticsMobileTestsMobileApplicationReferenceType = - | typeof LATEST - | typeof VERSION - | UnparsedObject; -export const LATEST = "latest"; -export const VERSION = "version"; +export type SyntheticsMobileTestsMobileApplicationReferenceType = typeof LATEST| typeof VERSION | UnparsedObject; +export const LATEST = 'latest'; +export const VERSION = 'version'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts index a77a5332086a..5d9bcd253984 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts @@ -6,31 +6,36 @@ import { SyntheticsLocalVariableParsingOptionsType } from "./SyntheticsLocalVariableParsingOptionsType"; import { SyntheticsVariableParser } from "./SyntheticsVariableParser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Parsing options for variables to extract. - */ +*/ export class SyntheticsParsingOptions { /** * When type is `http_header` or `grpc_metadata`, name of the header or metadatum to extract. - */ + */ "field"?: string; /** * Name of the variable to extract. - */ + */ "name"?: string; /** * Details of the parser to use for the global variable. - */ + */ "parser"?: SyntheticsVariableParser; /** * Determines whether or not the extracted value will be obfuscated. - */ + */ "secure"?: boolean; /** * Property of the Synthetic Test Response to extract into a local variable. - */ + */ "type"?: SyntheticsLocalVariableParsingOptionsType; /** @@ -49,38 +54,64 @@ export class SyntheticsParsingOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - field: { - baseName: "field", - type: "string", + "field": { + "baseName": "field", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - parser: { - baseName: "parser", - type: "SyntheticsVariableParser", + "parser": { + "baseName": "parser", + "type": "SyntheticsVariableParser", }, - secure: { - baseName: "secure", - type: "boolean", + "secure": { + "baseName": "secure", + "type": "boolean", }, - type: { - baseName: "type", - type: "SyntheticsLocalVariableParsingOptionsType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsLocalVariableParsingOptionsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsParsingOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.ts b/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.ts index 90fc1d6357f6..d7b69076c51d 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.ts @@ -5,15 +5,20 @@ */ import { SyntheticsPatchTestOperation } from "./SyntheticsPatchTestOperation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper around an array of [JSON Patch](https://jsonpatch.com) operations to perform on the test - */ +*/ export class SyntheticsPatchTestBody { /** * Array of [JSON Patch](https://jsonpatch.com) operations to perform on the test - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class SyntheticsPatchTestBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPatchTestBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.ts b/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.ts index 3a7bf889e557..8a06aedcf74f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.ts @@ -5,23 +5,28 @@ */ import { SyntheticsPatchTestOperationName } from "./SyntheticsPatchTestOperationName"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single [JSON Patch](https://jsonpatch.com) operation to perform on the test - */ +*/ export class SyntheticsPatchTestOperation { /** * The operation to perform - */ + */ "op"?: SyntheticsPatchTestOperationName; /** * The path to the value to modify - */ + */ "path"?: string; /** * A value to use in a [JSON Patch](https://jsonpatch.com) operation - */ + */ "value"?: any; /** @@ -40,30 +45,56 @@ export class SyntheticsPatchTestOperation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - op: { - baseName: "op", - type: "SyntheticsPatchTestOperationName", - }, - path: { - baseName: "path", - type: "string", + "op": { + "baseName": "op", + "type": "SyntheticsPatchTestOperationName", }, - value: { - baseName: "value", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPatchTestOperation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.ts b/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.ts index 4b510d64314d..7691d7b429dd 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The operation to perform - */ +*/ -export type SyntheticsPatchTestOperationName = - | typeof ADD - | typeof REMOVE - | typeof REPLACE - | typeof MOVE - | typeof COPY - | typeof TEST - | UnparsedObject; -export const ADD = "add"; -export const REMOVE = "remove"; -export const REPLACE = "replace"; -export const MOVE = "move"; -export const COPY = "copy"; -export const TEST = "test"; +export type SyntheticsPatchTestOperationName = typeof ADD| typeof REMOVE| typeof REPLACE| typeof MOVE| typeof COPY| typeof TEST | UnparsedObject; +export const ADD = 'add'; +export const REMOVE = 'remove'; +export const REPLACE = 'replace'; +export const MOVE = 'move'; +export const COPY = 'copy'; +export const TEST = 'test'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsPlayingTab.ts b/packages/datadog-api-client-v1/models/SyntheticsPlayingTab.ts index 87ec640e6659..605ab9cb254e 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPlayingTab.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPlayingTab.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Navigate between different tabs for your browser test. - */ +*/ -export type SyntheticsPlayingTab = - | typeof MAIN_TAB - | typeof NEW_TAB - | typeof TAB_1 - | typeof TAB_2 - | typeof TAB_3 - | UnparsedObject; +export type SyntheticsPlayingTab = typeof MAIN_TAB| typeof NEW_TAB| typeof TAB_1| typeof TAB_2| typeof TAB_3 | UnparsedObject; export const MAIN_TAB = -1; export const NEW_TAB = 0; export const TAB_1 = 1; export const TAB_2 = 2; -export const TAB_3 = 3; +export const TAB_3 = 3; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocation.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocation.ts index ca92b98ead2b..0fdb36dbafe9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocation.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocation.ts @@ -6,35 +6,40 @@ import { SyntheticsPrivateLocationMetadata } from "./SyntheticsPrivateLocationMetadata"; import { SyntheticsPrivateLocationSecrets } from "./SyntheticsPrivateLocationSecrets"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing information about the private location to create. - */ +*/ export class SyntheticsPrivateLocation { /** * Description of the private location. - */ + */ "description": string; /** * Unique identifier of the private location. - */ + */ "id"?: string; /** * Object containing metadata about the private location. - */ + */ "metadata"?: SyntheticsPrivateLocationMetadata; /** * Name of the private location. - */ + */ "name": string; /** * Secrets for the private location. Only present in the response when creating the private location. - */ + */ "secrets"?: SyntheticsPrivateLocationSecrets; /** * Array of tags attached to the private location. - */ + */ "tags": Array; /** @@ -53,45 +58,71 @@ export class SyntheticsPrivateLocation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - required: true, - }, - id: { - baseName: "id", - type: "string", + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - metadata: { - baseName: "metadata", - type: "SyntheticsPrivateLocationMetadata", + "id": { + "baseName": "id", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "metadata": { + "baseName": "metadata", + "type": "SyntheticsPrivateLocationMetadata", }, - secrets: { - baseName: "secrets", - type: "SyntheticsPrivateLocationSecrets", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - required: true, + "secrets": { + "baseName": "secrets", + "type": "SyntheticsPrivateLocationSecrets", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponse.ts index a3ee8630a110..c157b43f1e87 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponse.ts @@ -6,23 +6,28 @@ import { SyntheticsPrivateLocation } from "./SyntheticsPrivateLocation"; import { SyntheticsPrivateLocationCreationResponseResultEncryption } from "./SyntheticsPrivateLocationCreationResponseResultEncryption"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object that contains the new private location, the public key for result encryption, and the configuration skeleton. - */ +*/ export class SyntheticsPrivateLocationCreationResponse { /** * Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. - */ + */ "config"?: any; /** * Object containing information about the private location to create. - */ + */ "privateLocation"?: SyntheticsPrivateLocation; /** * Public key for the result encryption. - */ + */ "resultEncryption"?: SyntheticsPrivateLocationCreationResponseResultEncryption; /** @@ -41,30 +46,56 @@ export class SyntheticsPrivateLocationCreationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "any", - }, - privateLocation: { - baseName: "private_location", - type: "SyntheticsPrivateLocation", + "config": { + "baseName": "config", + "type": "any", }, - resultEncryption: { - baseName: "result_encryption", - type: "SyntheticsPrivateLocationCreationResponseResultEncryption", + "privateLocation": { + "baseName": "private_location", + "type": "SyntheticsPrivateLocation", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "resultEncryption": { + "baseName": "result_encryption", + "type": "SyntheticsPrivateLocationCreationResponseResultEncryption", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocationCreationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponseResultEncryption.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponseResultEncryption.ts index 8539311402eb..42df317c0d03 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponseResultEncryption.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationCreationResponseResultEncryption.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Public key for the result encryption. - */ +*/ export class SyntheticsPrivateLocationCreationResponseResultEncryption { /** * Fingerprint for the encryption key. - */ + */ "id"?: string; /** * Public key for result encryption. - */ + */ "key"?: string; /** @@ -35,26 +40,52 @@ export class SyntheticsPrivateLocationCreationResponseResultEncryption { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - key: { - baseName: "key", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "key": { + "baseName": "key", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocationCreationResponseResultEncryption.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationMetadata.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationMetadata.ts index 482bc4095572..200d0948fe48 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationMetadata.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationMetadata.ts @@ -3,16 +3,22 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { SyntheticsRestrictedRolesItem } from "./SyntheticsRestrictedRolesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing metadata about the private location. - */ +*/ export class SyntheticsPrivateLocationMetadata { /** * A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. - */ + */ "restrictedRoles"?: Array; /** @@ -31,22 +37,48 @@ export class SyntheticsPrivateLocationMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocationMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecrets.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecrets.ts index 46c2c4e146f7..846254d7d41b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecrets.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecrets.ts @@ -6,19 +6,24 @@ import { SyntheticsPrivateLocationSecretsAuthentication } from "./SyntheticsPrivateLocationSecretsAuthentication"; import { SyntheticsPrivateLocationSecretsConfigDecryption } from "./SyntheticsPrivateLocationSecretsConfigDecryption"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Secrets for the private location. Only present in the response when creating the private location. - */ +*/ export class SyntheticsPrivateLocationSecrets { /** * Authentication part of the secrets. - */ + */ "authentication"?: SyntheticsPrivateLocationSecretsAuthentication; /** * Private key for the private location. - */ + */ "configDecryption"?: SyntheticsPrivateLocationSecretsConfigDecryption; /** @@ -37,26 +42,52 @@ export class SyntheticsPrivateLocationSecrets { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - authentication: { - baseName: "authentication", - type: "SyntheticsPrivateLocationSecretsAuthentication", + "authentication": { + "baseName": "authentication", + "type": "SyntheticsPrivateLocationSecretsAuthentication", }, - configDecryption: { - baseName: "config_decryption", - type: "SyntheticsPrivateLocationSecretsConfigDecryption", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "configDecryption": { + "baseName": "config_decryption", + "type": "SyntheticsPrivateLocationSecretsConfigDecryption", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocationSecrets.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsAuthentication.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsAuthentication.ts index 322548b33c9d..4d9ab6b2a7ff 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsAuthentication.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsAuthentication.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Authentication part of the secrets. - */ +*/ export class SyntheticsPrivateLocationSecretsAuthentication { /** * Access key for the private location. - */ + */ "id"?: string; /** * Secret access key for the private location. - */ + */ "key"?: string; /** @@ -35,26 +40,52 @@ export class SyntheticsPrivateLocationSecretsAuthentication { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - key: { - baseName: "key", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "key": { + "baseName": "key", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocationSecretsAuthentication.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsConfigDecryption.ts b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsConfigDecryption.ts index c364fbbba091..53a1c09882d8 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsConfigDecryption.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsPrivateLocationSecretsConfigDecryption.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Private key for the private location. - */ +*/ export class SyntheticsPrivateLocationSecretsConfigDecryption { /** * Private key for the private location. - */ + */ "key"?: string; /** @@ -31,22 +36,48 @@ export class SyntheticsPrivateLocationSecretsConfigDecryption { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - key: { - baseName: "key", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "key": { + "baseName": "key", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsPrivateLocationSecretsConfigDecryption.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsSSLCertificate.ts b/packages/datadog-api-client-v1/models/SyntheticsSSLCertificate.ts index 74ef0bde8759..77a1e83f1479 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsSSLCertificate.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsSSLCertificate.ts @@ -6,59 +6,64 @@ import { SyntheticsSSLCertificateIssuer } from "./SyntheticsSSLCertificateIssuer"; import { SyntheticsSSLCertificateSubject } from "./SyntheticsSSLCertificateSubject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the SSL certificate used for a Synthetic test. - */ +*/ export class SyntheticsSSLCertificate { /** * Cipher used for the connection. - */ + */ "cipher"?: string; /** * Exponent associated to the certificate. - */ + */ "exponent"?: number; /** * Array of extensions and details used for the certificate. - */ + */ "extKeyUsage"?: Array; /** * MD5 digest of the DER-encoded Certificate information. - */ + */ "fingerprint"?: string; /** * SHA-1 digest of the DER-encoded Certificate information. - */ + */ "fingerprint256"?: string; /** * Object describing the issuer of a SSL certificate. - */ + */ "issuer"?: SyntheticsSSLCertificateIssuer; /** * Modulus associated to the SSL certificate private key. - */ + */ "modulus"?: string; /** * TLS protocol used for the test. - */ + */ "protocol"?: string; /** * Serial Number assigned by Symantec to the SSL certificate. - */ + */ "serialNumber"?: string; /** * Object describing the SSL certificate used for the test. - */ + */ "subject"?: SyntheticsSSLCertificateSubject; /** * Date from which the SSL certificate is valid. - */ + */ "validFrom"?: Date; /** * Date until which the SSL certificate is valid. - */ + */ "validTo"?: Date; /** @@ -77,69 +82,95 @@ export class SyntheticsSSLCertificate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cipher: { - baseName: "cipher", - type: "string", + "cipher": { + "baseName": "cipher", + "type": "string", }, - exponent: { - baseName: "exponent", - type: "number", - format: "double", + "exponent": { + "baseName": "exponent", + "type": "number", + "format": "double", }, - extKeyUsage: { - baseName: "extKeyUsage", - type: "Array", + "extKeyUsage": { + "baseName": "extKeyUsage", + "type": "Array", }, - fingerprint: { - baseName: "fingerprint", - type: "string", + "fingerprint": { + "baseName": "fingerprint", + "type": "string", }, - fingerprint256: { - baseName: "fingerprint256", - type: "string", + "fingerprint256": { + "baseName": "fingerprint256", + "type": "string", }, - issuer: { - baseName: "issuer", - type: "SyntheticsSSLCertificateIssuer", + "issuer": { + "baseName": "issuer", + "type": "SyntheticsSSLCertificateIssuer", }, - modulus: { - baseName: "modulus", - type: "string", + "modulus": { + "baseName": "modulus", + "type": "string", }, - protocol: { - baseName: "protocol", - type: "string", + "protocol": { + "baseName": "protocol", + "type": "string", }, - serialNumber: { - baseName: "serialNumber", - type: "string", + "serialNumber": { + "baseName": "serialNumber", + "type": "string", }, - subject: { - baseName: "subject", - type: "SyntheticsSSLCertificateSubject", + "subject": { + "baseName": "subject", + "type": "SyntheticsSSLCertificateSubject", }, - validFrom: { - baseName: "validFrom", - type: "Date", - format: "date-time", + "validFrom": { + "baseName": "validFrom", + "type": "Date", + "format": "date-time", }, - validTo: { - baseName: "validTo", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "validTo": { + "baseName": "validTo", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsSSLCertificate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateIssuer.ts b/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateIssuer.ts index ab617d43b367..7fb3ce81d925 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateIssuer.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateIssuer.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the issuer of a SSL certificate. - */ +*/ export class SyntheticsSSLCertificateIssuer { /** * Country Name that issued the certificate. - */ + */ "C"?: string; /** * Common Name that issued certificate. - */ + */ "CN"?: string; /** * Locality that issued the certificate. - */ + */ "L"?: string; /** * Organization that issued the certificate. - */ + */ "O"?: string; /** * Organizational Unit that issued the certificate. - */ + */ "OU"?: string; /** * State Or Province Name that issued the certificate. - */ + */ "ST"?: string; /** @@ -51,42 +56,68 @@ export class SyntheticsSSLCertificateIssuer { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - C: { - baseName: "C", - type: "string", - }, - CN: { - baseName: "CN", - type: "string", + "C": { + "baseName": "C", + "type": "string", }, - L: { - baseName: "L", - type: "string", + "CN": { + "baseName": "CN", + "type": "string", }, - O: { - baseName: "O", - type: "string", + "L": { + "baseName": "L", + "type": "string", }, - OU: { - baseName: "OU", - type: "string", + "O": { + "baseName": "O", + "type": "string", }, - ST: { - baseName: "ST", - type: "string", + "OU": { + "baseName": "OU", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ST": { + "baseName": "ST", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsSSLCertificateIssuer.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateSubject.ts b/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateSubject.ts index c9300cbf5ba3..679b0c319043 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateSubject.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsSSLCertificateSubject.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the SSL certificate used for the test. - */ +*/ export class SyntheticsSSLCertificateSubject { /** * Country Name associated with the certificate. - */ + */ "C"?: string; /** * Common Name that associated with the certificate. - */ + */ "CN"?: string; /** * Locality associated with the certificate. - */ + */ "L"?: string; /** * Organization associated with the certificate. - */ + */ "O"?: string; /** * Organizational Unit associated with the certificate. - */ + */ "OU"?: string; /** * State Or Province Name associated with the certificate. - */ + */ "ST"?: string; /** * Subject Alternative Name associated with the certificate. - */ + */ "altName"?: string; /** @@ -55,46 +60,72 @@ export class SyntheticsSSLCertificateSubject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - C: { - baseName: "C", - type: "string", - }, - CN: { - baseName: "CN", - type: "string", + "C": { + "baseName": "C", + "type": "string", }, - L: { - baseName: "L", - type: "string", + "CN": { + "baseName": "CN", + "type": "string", }, - O: { - baseName: "O", - type: "string", + "L": { + "baseName": "L", + "type": "string", }, - OU: { - baseName: "OU", - type: "string", + "O": { + "baseName": "O", + "type": "string", }, - ST: { - baseName: "ST", - type: "string", + "OU": { + "baseName": "OU", + "type": "string", }, - altName: { - baseName: "altName", - type: "string", + "ST": { + "baseName": "ST", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "altName": { + "baseName": "altName", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsSSLCertificateSubject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsStep.ts b/packages/datadog-api-client-v1/models/SyntheticsStep.ts index 7916c2c3b5ea..be31c265ab48 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsStep.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsStep.ts @@ -5,51 +5,56 @@ */ import { SyntheticsStepType } from "./SyntheticsStepType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The steps used in a Synthetic browser test. - */ +*/ export class SyntheticsStep { /** * A boolean set to allow this step to fail. - */ + */ "allowFailure"?: boolean; /** * A boolean set to always execute this step even if the previous step failed or was skipped. - */ + */ "alwaysExecute"?: boolean; /** * A boolean set to exit the test if the step succeeds. - */ + */ "exitIfSucceed"?: boolean; /** * A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails. - */ + */ "isCritical"?: boolean; /** * The name of the step. - */ + */ "name"?: string; /** * A boolean set to skip taking a screenshot for the step. - */ + */ "noScreenshot"?: boolean; /** * The parameters of the step. - */ + */ "params"?: any; /** * The public ID of the step. - */ + */ "publicId"?: string; /** * The time before declaring a step failed. - */ + */ "timeout"?: number; /** * Step type used in your Synthetic test. - */ + */ "type"?: SyntheticsStepType; /** @@ -68,59 +73,85 @@ export class SyntheticsStep { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowFailure: { - baseName: "allowFailure", - type: "boolean", - }, - alwaysExecute: { - baseName: "alwaysExecute", - type: "boolean", + "allowFailure": { + "baseName": "allowFailure", + "type": "boolean", }, - exitIfSucceed: { - baseName: "exitIfSucceed", - type: "boolean", + "alwaysExecute": { + "baseName": "alwaysExecute", + "type": "boolean", }, - isCritical: { - baseName: "isCritical", - type: "boolean", + "exitIfSucceed": { + "baseName": "exitIfSucceed", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "isCritical": { + "baseName": "isCritical", + "type": "boolean", }, - noScreenshot: { - baseName: "noScreenshot", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - params: { - baseName: "params", - type: "any", + "noScreenshot": { + "baseName": "noScreenshot", + "type": "boolean", }, - publicId: { - baseName: "public_id", - type: "string", + "params": { + "baseName": "params", + "type": "any", }, - timeout: { - baseName: "timeout", - type: "number", - format: "int64", + "publicId": { + "baseName": "public_id", + "type": "string", }, - type: { - baseName: "type", - type: "SyntheticsStepType", + "timeout": { + "baseName": "timeout", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsStepType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsStep.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsStepDetail.ts b/packages/datadog-api-client-v1/models/SyntheticsStepDetail.ts index cf83cd5c36a2..dc7ad303d65b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsStepDetail.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsStepDetail.ts @@ -11,88 +11,93 @@ import { SyntheticsPlayingTab } from "./SyntheticsPlayingTab"; import { SyntheticsStepDetailWarning } from "./SyntheticsStepDetailWarning"; import { SyntheticsStepType } from "./SyntheticsStepType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a step for a Synthetic test. - */ +*/ export class SyntheticsStepDetail { /** * Whether or not the step was allowed to fail. - */ + */ "allowFailure"?: boolean; /** * Array of errors collected for a browser test. - */ + */ "browserErrors"?: Array; /** * Type of assertion to apply in an API test. - */ + */ "checkType"?: SyntheticsCheckType; /** * Description of the test. - */ + */ "description"?: string; /** * Total duration in millisecond of the test. - */ + */ "duration"?: number; /** * Error returned by the test. - */ + */ "error"?: string; /** * The browser test failure details. - */ + */ "failure"?: SyntheticsBrowserTestResultFailure; /** * Navigate between different tabs for your browser test. - */ + */ "playingTab"?: SyntheticsPlayingTab; /** * Whether or not screenshots where collected by the test. - */ + */ "screenshotBucketKey"?: boolean; /** * Whether or not to skip this step. - */ + */ "skipped"?: boolean; /** * Whether or not snapshots where collected by the test. - */ + */ "snapshotBucketKey"?: boolean; /** * The step ID. - */ + */ "stepId"?: number; /** * If this step includes a sub-test. * [Subtests documentation](https://docs.datadoghq.com/synthetics/browser_tests/advanced_options/#subtests). - */ + */ "subTestStepDetails"?: Array; /** * Time before starting the step. - */ + */ "timeToInteractive"?: number; /** * Step type used in your Synthetic test. - */ + */ "type"?: SyntheticsStepType; /** * URL to perform the step against. - */ + */ "url"?: string; /** * Value for the step. - */ + */ "value"?: any; /** * Array of Core Web Vitals metrics for the step. - */ + */ "vitalsMetrics"?: Array; /** * Warning collected that didn't failed the step. - */ + */ "warnings"?: Array; /** @@ -111,98 +116,124 @@ export class SyntheticsStepDetail { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowFailure: { - baseName: "allowFailure", - type: "boolean", - }, - browserErrors: { - baseName: "browserErrors", - type: "Array", - }, - checkType: { - baseName: "checkType", - type: "SyntheticsCheckType", - }, - description: { - baseName: "description", - type: "string", - }, - duration: { - baseName: "duration", - type: "number", - format: "double", - }, - error: { - baseName: "error", - type: "string", - }, - failure: { - baseName: "failure", - type: "SyntheticsBrowserTestResultFailure", - }, - playingTab: { - baseName: "playingTab", - type: "SyntheticsPlayingTab", - format: "int64", - }, - screenshotBucketKey: { - baseName: "screenshotBucketKey", - type: "boolean", - }, - skipped: { - baseName: "skipped", - type: "boolean", - }, - snapshotBucketKey: { - baseName: "snapshotBucketKey", - type: "boolean", - }, - stepId: { - baseName: "stepId", - type: "number", - format: "int64", - }, - subTestStepDetails: { - baseName: "subTestStepDetails", - type: "Array", - }, - timeToInteractive: { - baseName: "timeToInteractive", - type: "number", - format: "double", - }, - type: { - baseName: "type", - type: "SyntheticsStepType", - }, - url: { - baseName: "url", - type: "string", - }, - value: { - baseName: "value", - type: "any", - }, - vitalsMetrics: { - baseName: "vitalsMetrics", - type: "Array", - }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "allowFailure": { + "baseName": "allowFailure", + "type": "boolean", + }, + "browserErrors": { + "baseName": "browserErrors", + "type": "Array", + }, + "checkType": { + "baseName": "checkType", + "type": "SyntheticsCheckType", + }, + "description": { + "baseName": "description", + "type": "string", + }, + "duration": { + "baseName": "duration", + "type": "number", + "format": "double", + }, + "error": { + "baseName": "error", + "type": "string", + }, + "failure": { + "baseName": "failure", + "type": "SyntheticsBrowserTestResultFailure", + }, + "playingTab": { + "baseName": "playingTab", + "type": "SyntheticsPlayingTab", + "format": "int64", + }, + "screenshotBucketKey": { + "baseName": "screenshotBucketKey", + "type": "boolean", + }, + "skipped": { + "baseName": "skipped", + "type": "boolean", + }, + "snapshotBucketKey": { + "baseName": "snapshotBucketKey", + "type": "boolean", + }, + "stepId": { + "baseName": "stepId", + "type": "number", + "format": "int64", + }, + "subTestStepDetails": { + "baseName": "subTestStepDetails", + "type": "Array", + }, + "timeToInteractive": { + "baseName": "timeToInteractive", + "type": "number", + "format": "double", + }, + "type": { + "baseName": "type", + "type": "SyntheticsStepType", + }, + "url": { + "baseName": "url", + "type": "string", + }, + "value": { + "baseName": "value", + "type": "any", + }, + "vitalsMetrics": { + "baseName": "vitalsMetrics", + "type": "Array", + }, + "warnings": { + "baseName": "warnings", + "type": "Array", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsStepDetail.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsStepDetailWarning.ts b/packages/datadog-api-client-v1/models/SyntheticsStepDetailWarning.ts index 8d9e9c47b1f8..fdb31104286b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsStepDetailWarning.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsStepDetailWarning.ts @@ -5,19 +5,24 @@ */ import { SyntheticsWarningType } from "./SyntheticsWarningType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object collecting warnings for a given step. - */ +*/ export class SyntheticsStepDetailWarning { /** * Message for the warning. - */ + */ "message": string; /** * User locator used. - */ + */ "type": SyntheticsWarningType; /** @@ -36,28 +41,54 @@ export class SyntheticsStepDetailWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "SyntheticsWarningType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsWarningType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsStepDetailWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsStepType.ts b/packages/datadog-api-client-v1/models/SyntheticsStepType.ts index 181a9c5d25b0..5af807c54812 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsStepType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsStepType.ts @@ -4,61 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Step type used in your Synthetic test. - */ +*/ -export type SyntheticsStepType = - | typeof ASSERT_CURRENT_URL - | typeof ASSERT_ELEMENT_ATTRIBUTE - | typeof ASSERT_ELEMENT_CONTENT - | typeof ASSERT_ELEMENT_PRESENT - | typeof ASSERT_EMAIL - | typeof ASSERT_FILE_DOWNLOAD - | typeof ASSERT_FROM_JAVASCRIPT - | typeof ASSERT_PAGE_CONTAINS - | typeof ASSERT_PAGE_LACKS - | typeof CLICK - | typeof EXTRACT_FROM_JAVASCRIPT - | typeof EXTRACT_VARIABLE - | typeof GO_TO_EMAIL_LINK - | typeof GO_TO_URL - | typeof GO_TO_URL_AND_MEASURE_TTI - | typeof HOVER - | typeof PLAY_SUB_TEST - | typeof PRESS_KEY - | typeof REFRESH - | typeof RUN_API_TEST - | typeof SCROLL - | typeof SELECT_OPTION - | typeof TYPE_TEXT - | typeof UPLOAD_FILES - | typeof WAIT - | UnparsedObject; -export const ASSERT_CURRENT_URL = "assertCurrentUrl"; -export const ASSERT_ELEMENT_ATTRIBUTE = "assertElementAttribute"; -export const ASSERT_ELEMENT_CONTENT = "assertElementContent"; -export const ASSERT_ELEMENT_PRESENT = "assertElementPresent"; -export const ASSERT_EMAIL = "assertEmail"; -export const ASSERT_FILE_DOWNLOAD = "assertFileDownload"; -export const ASSERT_FROM_JAVASCRIPT = "assertFromJavascript"; -export const ASSERT_PAGE_CONTAINS = "assertPageContains"; -export const ASSERT_PAGE_LACKS = "assertPageLacks"; -export const CLICK = "click"; -export const EXTRACT_FROM_JAVASCRIPT = "extractFromJavascript"; -export const EXTRACT_VARIABLE = "extractVariable"; -export const GO_TO_EMAIL_LINK = "goToEmailLink"; -export const GO_TO_URL = "goToUrl"; -export const GO_TO_URL_AND_MEASURE_TTI = "goToUrlAndMeasureTti"; -export const HOVER = "hover"; -export const PLAY_SUB_TEST = "playSubTest"; -export const PRESS_KEY = "pressKey"; -export const REFRESH = "refresh"; -export const RUN_API_TEST = "runApiTest"; -export const SCROLL = "scroll"; -export const SELECT_OPTION = "selectOption"; -export const TYPE_TEXT = "typeText"; -export const UPLOAD_FILES = "uploadFiles"; -export const WAIT = "wait"; +export type SyntheticsStepType = typeof ASSERT_CURRENT_URL| typeof ASSERT_ELEMENT_ATTRIBUTE| typeof ASSERT_ELEMENT_CONTENT| typeof ASSERT_ELEMENT_PRESENT| typeof ASSERT_EMAIL| typeof ASSERT_FILE_DOWNLOAD| typeof ASSERT_FROM_JAVASCRIPT| typeof ASSERT_PAGE_CONTAINS| typeof ASSERT_PAGE_LACKS| typeof CLICK| typeof EXTRACT_FROM_JAVASCRIPT| typeof EXTRACT_VARIABLE| typeof GO_TO_EMAIL_LINK| typeof GO_TO_URL| typeof GO_TO_URL_AND_MEASURE_TTI| typeof HOVER| typeof PLAY_SUB_TEST| typeof PRESS_KEY| typeof REFRESH| typeof RUN_API_TEST| typeof SCROLL| typeof SELECT_OPTION| typeof TYPE_TEXT| typeof UPLOAD_FILES| typeof WAIT | UnparsedObject; +export const ASSERT_CURRENT_URL = 'assertCurrentUrl'; +export const ASSERT_ELEMENT_ATTRIBUTE = 'assertElementAttribute'; +export const ASSERT_ELEMENT_CONTENT = 'assertElementContent'; +export const ASSERT_ELEMENT_PRESENT = 'assertElementPresent'; +export const ASSERT_EMAIL = 'assertEmail'; +export const ASSERT_FILE_DOWNLOAD = 'assertFileDownload'; +export const ASSERT_FROM_JAVASCRIPT = 'assertFromJavascript'; +export const ASSERT_PAGE_CONTAINS = 'assertPageContains'; +export const ASSERT_PAGE_LACKS = 'assertPageLacks'; +export const CLICK = 'click'; +export const EXTRACT_FROM_JAVASCRIPT = 'extractFromJavascript'; +export const EXTRACT_VARIABLE = 'extractVariable'; +export const GO_TO_EMAIL_LINK = 'goToEmailLink'; +export const GO_TO_URL = 'goToUrl'; +export const GO_TO_URL_AND_MEASURE_TTI = 'goToUrlAndMeasureTti'; +export const HOVER = 'hover'; +export const PLAY_SUB_TEST = 'playSubTest'; +export const PRESS_KEY = 'pressKey'; +export const REFRESH = 'refresh'; +export const RUN_API_TEST = 'runApiTest'; +export const SCROLL = 'scroll'; +export const SELECT_OPTION = 'selectOption'; +export const TYPE_TEXT = 'typeText'; +export const UPLOAD_FILES = 'uploadFiles'; +export const WAIT = 'wait'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestCallType.ts b/packages/datadog-api-client-v1/models/SyntheticsTestCallType.ts index 868466173fa0..d926e460e2f0 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestCallType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestCallType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of gRPC call to perform. - */ +*/ -export type SyntheticsTestCallType = - | typeof HEALTHCHECK - | typeof UNARY - | UnparsedObject; -export const HEALTHCHECK = "healthcheck"; -export const UNARY = "unary"; +export type SyntheticsTestCallType = typeof HEALTHCHECK| typeof UNARY | UnparsedObject; +export const HEALTHCHECK = 'healthcheck'; +export const UNARY = 'unary'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.ts index 84e762cb0c9d..20742a084d80 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.ts @@ -5,15 +5,20 @@ */ import { SyntheticsTestExecutionRule } from "./SyntheticsTestExecutionRule"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CI/CD options for a Synthetic test. - */ +*/ export class SyntheticsTestCiOptions { /** * Execution rule for a Synthetic test. - */ + */ "executionRule": SyntheticsTestExecutionRule; /** @@ -32,23 +37,49 @@ export class SyntheticsTestCiOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - executionRule: { - baseName: "executionRule", - type: "SyntheticsTestExecutionRule", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "executionRule": { + "baseName": "executionRule", + "type": "SyntheticsTestExecutionRule", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestCiOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestConfig.ts b/packages/datadog-api-client-v1/models/SyntheticsTestConfig.ts index 2ea840bf7d26..ffe143386400 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestConfig.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestConfig.ts @@ -8,27 +8,32 @@ import { SyntheticsBrowserVariable } from "./SyntheticsBrowserVariable"; import { SyntheticsConfigVariable } from "./SyntheticsConfigVariable"; import { SyntheticsTestRequest } from "./SyntheticsTestRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration object for a Synthetic test. - */ +*/ export class SyntheticsTestConfig { /** * Array of assertions used for the test. Required for single API tests. - */ + */ "assertions"?: Array; /** * Array of variables used for the test. - */ + */ "configVariables"?: Array; /** * Object describing the Synthetic test request. - */ + */ "request"?: SyntheticsTestRequest; /** * Browser tests only - array of variables used for the test steps. - */ + */ "variables"?: Array; /** @@ -47,34 +52,60 @@ export class SyntheticsTestConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assertions: { - baseName: "assertions", - type: "Array", + "assertions": { + "baseName": "assertions", + "type": "Array", }, - configVariables: { - baseName: "configVariables", - type: "Array", + "configVariables": { + "baseName": "configVariables", + "type": "Array", }, - request: { - baseName: "request", - type: "SyntheticsTestRequest", + "request": { + "baseName": "request", + "type": "SyntheticsTestRequest", }, - variables: { - baseName: "variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "variables": { + "baseName": "variables", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestDetails.ts b/packages/datadog-api-client-v1/models/SyntheticsTestDetails.ts index 2e51dd27ce3b..04941ca8704f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestDetails.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestDetails.ts @@ -11,65 +11,70 @@ import { SyntheticsTestDetailsType } from "./SyntheticsTestDetailsType"; import { SyntheticsTestOptions } from "./SyntheticsTestOptions"; import { SyntheticsTestPauseStatus } from "./SyntheticsTestPauseStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing details about your Synthetic test. - */ +*/ export class SyntheticsTestDetails { /** * Configuration object for a Synthetic test. - */ + */ "config"?: SyntheticsTestConfig; /** * Object describing the creator of the shared element. - */ + */ "creator"?: Creator; /** * Array of locations used to run the test. - */ + */ "locations"?: Array; /** * Notification message associated with the test. - */ + */ "message"?: string; /** * The associated monitor ID. - */ + */ "monitorId"?: number; /** * Name of the test. - */ + */ "name"?: string; /** * Object describing the extra options for a Synthetic test. - */ + */ "options"?: SyntheticsTestOptions; /** * The test public ID. - */ + */ "publicId"?: string; /** * Define whether you want to start (`live`) or pause (`paused`) a * Synthetic test. - */ + */ "status"?: SyntheticsTestPauseStatus; /** * For browser test, the steps of the test. - */ + */ "steps"?: Array; /** * The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, * `dns`, `icmp`, `udp`, `websocket`, `grpc` or `multi`. - */ + */ "subtype"?: SyntheticsTestDetailsSubType; /** * Array of tags attached to the test. - */ + */ "tags"?: Array; /** * Type of the Synthetic test, either `api` or `browser`. - */ + */ "type"?: SyntheticsTestDetailsType; /** @@ -88,71 +93,97 @@ export class SyntheticsTestDetails { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "SyntheticsTestConfig", + "config": { + "baseName": "config", + "type": "SyntheticsTestConfig", }, - creator: { - baseName: "creator", - type: "Creator", + "creator": { + "baseName": "creator", + "type": "Creator", }, - locations: { - baseName: "locations", - type: "Array", + "locations": { + "baseName": "locations", + "type": "Array", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - options: { - baseName: "options", - type: "SyntheticsTestOptions", + "options": { + "baseName": "options", + "type": "SyntheticsTestOptions", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - status: { - baseName: "status", - type: "SyntheticsTestPauseStatus", + "status": { + "baseName": "status", + "type": "SyntheticsTestPauseStatus", }, - steps: { - baseName: "steps", - type: "Array", + "steps": { + "baseName": "steps", + "type": "Array", }, - subtype: { - baseName: "subtype", - type: "SyntheticsTestDetailsSubType", + "subtype": { + "baseName": "subtype", + "type": "SyntheticsTestDetailsSubType", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "SyntheticsTestDetailsType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SyntheticsTestDetailsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestDetails.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestDetailsSubType.ts b/packages/datadog-api-client-v1/models/SyntheticsTestDetailsSubType.ts index f78344507e7d..0b9f3939c9c5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestDetailsSubType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestDetailsSubType.ts @@ -4,30 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, * `dns`, `icmp`, `udp`, `websocket`, `grpc` or `multi`. - */ +*/ -export type SyntheticsTestDetailsSubType = - | typeof HTTP - | typeof SSL - | typeof TCP - | typeof DNS - | typeof MULTI - | typeof ICMP - | typeof UDP - | typeof WEBSOCKET - | typeof GRPC - | UnparsedObject; -export const HTTP = "http"; -export const SSL = "ssl"; -export const TCP = "tcp"; -export const DNS = "dns"; -export const MULTI = "multi"; -export const ICMP = "icmp"; -export const UDP = "udp"; -export const WEBSOCKET = "websocket"; -export const GRPC = "grpc"; +export type SyntheticsTestDetailsSubType = typeof HTTP| typeof SSL| typeof TCP| typeof DNS| typeof MULTI| typeof ICMP| typeof UDP| typeof WEBSOCKET| typeof GRPC | UnparsedObject; +export const HTTP = 'http'; +export const SSL = 'ssl'; +export const TCP = 'tcp'; +export const DNS = 'dns'; +export const MULTI = 'multi'; +export const ICMP = 'icmp'; +export const UDP = 'udp'; +export const WEBSOCKET = 'websocket'; +export const GRPC = 'grpc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestDetailsType.ts b/packages/datadog-api-client-v1/models/SyntheticsTestDetailsType.ts index 245f7f9d89b1..0dca75a58825 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestDetailsType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestDetailsType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Synthetic test, either `api` or `browser`. - */ +*/ -export type SyntheticsTestDetailsType = - | typeof API - | typeof BROWSER - | typeof MOBILE - | UnparsedObject; -export const API = "api"; -export const BROWSER = "browser"; -export const MOBILE = "mobile"; +export type SyntheticsTestDetailsType = typeof API| typeof BROWSER| typeof MOBILE | UnparsedObject; +export const API = 'api'; +export const BROWSER = 'browser'; +export const MOBILE = 'mobile'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestExecutionRule.ts b/packages/datadog-api-client-v1/models/SyntheticsTestExecutionRule.ts index ac85d5b41f73..c1455201cf3f 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestExecutionRule.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestExecutionRule.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Execution rule for a Synthetic test. - */ +*/ -export type SyntheticsTestExecutionRule = - | typeof BLOCKING - | typeof NON_BLOCKING - | typeof SKIPPED - | UnparsedObject; -export const BLOCKING = "blocking"; -export const NON_BLOCKING = "non_blocking"; -export const SKIPPED = "skipped"; +export type SyntheticsTestExecutionRule = typeof BLOCKING| typeof NON_BLOCKING| typeof SKIPPED | UnparsedObject; +export const BLOCKING = 'blocking'; +export const NON_BLOCKING = 'non_blocking'; +export const SKIPPED = 'skipped'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestMonitorStatus.ts b/packages/datadog-api-client-v1/models/SyntheticsTestMonitorStatus.ts index 3a428bf74b3c..25c977df26f9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestMonitorStatus.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestMonitorStatus.ts @@ -4,20 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of your Synthetic monitor. * * `O` for not triggered * * `1` for triggered * * `2` for no data - */ +*/ -export type SyntheticsTestMonitorStatus = - | typeof UNTRIGGERED - | typeof TRIGGERED - | typeof NO_DATA - | UnparsedObject; +export type SyntheticsTestMonitorStatus = typeof UNTRIGGERED| typeof TRIGGERED| typeof NO_DATA | UnparsedObject; export const UNTRIGGERED = 0; export const TRIGGERED = 1; -export const NO_DATA = 2; +export const NO_DATA = 2; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptions.ts index dac5686f68eb..f696c0b3183d 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptions.ts @@ -4,126 +4,133 @@ * Copyright 2020-Present Datadog, Inc. */ import { SyntheticsBrowserTestRumSettings } from "./SyntheticsBrowserTestRumSettings"; +import { SyntheticsDeviceID } from "./SyntheticsDeviceID"; +import { SyntheticsRestrictedRolesItem } from "./SyntheticsRestrictedRolesItem"; import { SyntheticsTestCiOptions } from "./SyntheticsTestCiOptions"; import { SyntheticsTestOptionsHTTPVersion } from "./SyntheticsTestOptionsHTTPVersion"; import { SyntheticsTestOptionsMonitorOptions } from "./SyntheticsTestOptionsMonitorOptions"; import { SyntheticsTestOptionsRetry } from "./SyntheticsTestOptionsRetry"; import { SyntheticsTestOptionsScheduling } from "./SyntheticsTestOptionsScheduling"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the extra options for a Synthetic test. - */ +*/ export class SyntheticsTestOptions { /** * For SSL test, whether or not the test should allow self signed * certificates. - */ + */ "acceptSelfSigned"?: boolean; /** * Allows loading insecure content for an HTTP request in an API test. - */ + */ "allowInsecure"?: boolean; /** * For SSL test, whether or not the test should fail on revoked certificate in stapled OCSP. - */ + */ "checkCertificateRevocation"?: boolean; /** * CI/CD options for a Synthetic test. - */ + */ "ci"?: SyntheticsTestCiOptions; /** * For browser test, array with the different device IDs used to run the test. - */ + */ "deviceIds"?: Array; /** * Whether or not to disable CORS mechanism. - */ + */ "disableCors"?: boolean; /** * Disable Content Security Policy for browser tests. - */ + */ "disableCsp"?: boolean; /** * Enable profiling for browser tests. - */ + */ "enableProfiling"?: boolean; /** * Enable security testing for browser tests. Security testing is not available anymore. This field is deprecated and won't be used. - */ + */ "enableSecurityTesting"?: boolean; /** * For API HTTP test, whether or not the test should follow redirects. - */ + */ "followRedirects"?: boolean; /** * HTTP version to use for a Synthetic test. - */ + */ "httpVersion"?: SyntheticsTestOptionsHTTPVersion; /** * Ignore server certificate error for browser tests. - */ + */ "ignoreServerCertificateError"?: boolean; /** * Timeout before declaring the initial step as failed (in seconds) for browser tests. - */ + */ "initialNavigationTimeout"?: number; /** * Minimum amount of time in failure required to trigger an alert. - */ + */ "minFailureDuration"?: number; /** * Minimum number of locations in failure required to trigger * an alert. - */ + */ "minLocationFailed"?: number; /** * The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. - */ + */ "monitorName"?: string; /** * Object containing the options for a Synthetic test as a monitor * (for example, renotification). - */ + */ "monitorOptions"?: SyntheticsTestOptionsMonitorOptions; /** * Integer from 1 (high) to 5 (low) indicating alert severity. - */ + */ "monitorPriority"?: number; /** * Prevents saving screenshots of the steps. - */ + */ "noScreenshot"?: boolean; /** * A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. - */ + */ "restrictedRoles"?: Array; /** * Object describing the retry strategy to apply to a Synthetic test. - */ + */ "retry"?: SyntheticsTestOptionsRetry; /** * The RUM data collection settings for the Synthetic browser test. * **Note:** There are 3 ways to format RUM settings: - * + * * `{ isEnabled: false }` * RUM data is not collected. - * + * * `{ isEnabled: true }` * RUM data is collected from the Synthetic test's default application. - * + * * `{ isEnabled: true, applicationId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", clientTokenId: 12345 }` * RUM data is collected using the specified application. - */ + */ "rumSettings"?: SyntheticsBrowserTestRumSettings; /** * Object containing timeframes and timezone used for advanced scheduling. - */ + */ "scheduling"?: SyntheticsTestOptionsScheduling; /** * The frequency at which to run the Synthetic test (in seconds). - */ + */ "tickEvery"?: number; /** @@ -142,119 +149,145 @@ export class SyntheticsTestOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - acceptSelfSigned: { - baseName: "accept_self_signed", - type: "boolean", - }, - allowInsecure: { - baseName: "allow_insecure", - type: "boolean", + "acceptSelfSigned": { + "baseName": "accept_self_signed", + "type": "boolean", }, - checkCertificateRevocation: { - baseName: "checkCertificateRevocation", - type: "boolean", + "allowInsecure": { + "baseName": "allow_insecure", + "type": "boolean", }, - ci: { - baseName: "ci", - type: "SyntheticsTestCiOptions", + "checkCertificateRevocation": { + "baseName": "checkCertificateRevocation", + "type": "boolean", }, - deviceIds: { - baseName: "device_ids", - type: "Array", + "ci": { + "baseName": "ci", + "type": "SyntheticsTestCiOptions", }, - disableCors: { - baseName: "disableCors", - type: "boolean", + "deviceIds": { + "baseName": "device_ids", + "type": "Array", }, - disableCsp: { - baseName: "disableCsp", - type: "boolean", + "disableCors": { + "baseName": "disableCors", + "type": "boolean", }, - enableProfiling: { - baseName: "enableProfiling", - type: "boolean", + "disableCsp": { + "baseName": "disableCsp", + "type": "boolean", }, - enableSecurityTesting: { - baseName: "enableSecurityTesting", - type: "boolean", + "enableProfiling": { + "baseName": "enableProfiling", + "type": "boolean", }, - followRedirects: { - baseName: "follow_redirects", - type: "boolean", + "enableSecurityTesting": { + "baseName": "enableSecurityTesting", + "type": "boolean", }, - httpVersion: { - baseName: "httpVersion", - type: "SyntheticsTestOptionsHTTPVersion", + "followRedirects": { + "baseName": "follow_redirects", + "type": "boolean", }, - ignoreServerCertificateError: { - baseName: "ignoreServerCertificateError", - type: "boolean", + "httpVersion": { + "baseName": "httpVersion", + "type": "SyntheticsTestOptionsHTTPVersion", }, - initialNavigationTimeout: { - baseName: "initialNavigationTimeout", - type: "number", - format: "int64", + "ignoreServerCertificateError": { + "baseName": "ignoreServerCertificateError", + "type": "boolean", }, - minFailureDuration: { - baseName: "min_failure_duration", - type: "number", - format: "int64", + "initialNavigationTimeout": { + "baseName": "initialNavigationTimeout", + "type": "number", + "format": "int64", }, - minLocationFailed: { - baseName: "min_location_failed", - type: "number", - format: "int64", + "minFailureDuration": { + "baseName": "min_failure_duration", + "type": "number", + "format": "int64", }, - monitorName: { - baseName: "monitor_name", - type: "string", + "minLocationFailed": { + "baseName": "min_location_failed", + "type": "number", + "format": "int64", }, - monitorOptions: { - baseName: "monitor_options", - type: "SyntheticsTestOptionsMonitorOptions", + "monitorName": { + "baseName": "monitor_name", + "type": "string", }, - monitorPriority: { - baseName: "monitor_priority", - type: "number", - format: "int32", + "monitorOptions": { + "baseName": "monitor_options", + "type": "SyntheticsTestOptionsMonitorOptions", }, - noScreenshot: { - baseName: "noScreenshot", - type: "boolean", + "monitorPriority": { + "baseName": "monitor_priority", + "type": "number", + "format": "int32", }, - restrictedRoles: { - baseName: "restricted_roles", - type: "Array", + "noScreenshot": { + "baseName": "noScreenshot", + "type": "boolean", }, - retry: { - baseName: "retry", - type: "SyntheticsTestOptionsRetry", + "restrictedRoles": { + "baseName": "restricted_roles", + "type": "Array", }, - rumSettings: { - baseName: "rumSettings", - type: "SyntheticsBrowserTestRumSettings", + "retry": { + "baseName": "retry", + "type": "SyntheticsTestOptionsRetry", }, - scheduling: { - baseName: "scheduling", - type: "SyntheticsTestOptionsScheduling", + "rumSettings": { + "baseName": "rumSettings", + "type": "SyntheticsBrowserTestRumSettings", }, - tickEvery: { - baseName: "tick_every", - type: "number", - format: "int64", + "scheduling": { + "baseName": "scheduling", + "type": "SyntheticsTestOptionsScheduling", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tickEvery": { + "baseName": "tick_every", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.ts index b69e3bde4fb3..404ee059d510 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * HTTP version to use for a Synthetic test. - */ +*/ -export type SyntheticsTestOptionsHTTPVersion = - | typeof HTTP1 - | typeof HTTP2 - | typeof ANY - | UnparsedObject; -export const HTTP1 = "http1"; -export const HTTP2 = "http2"; -export const ANY = "any"; +export type SyntheticsTestOptionsHTTPVersion = typeof HTTP1| typeof HTTP2| typeof ANY | UnparsedObject; +export const HTTP1 = 'http1'; +export const HTTP2 = 'http2'; +export const ANY = 'any'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptions.ts index 31642dada0bb..0224a85aca83 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptions.ts @@ -5,29 +5,34 @@ */ import { SyntheticsTestOptionsMonitorOptionsNotificationPresetName } from "./SyntheticsTestOptionsMonitorOptionsNotificationPresetName"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the options for a Synthetic test as a monitor * (for example, renotification). - */ +*/ export class SyntheticsTestOptionsMonitorOptions { /** * Message to include in the escalation notification. - */ + */ "escalationMessage"?: string; /** * The name of the preset for the notification for the monitor. - */ + */ "notificationPresetName"?: SyntheticsTestOptionsMonitorOptionsNotificationPresetName; /** * Time interval before renotifying if the test is still failing * (in minutes). - */ + */ "renotifyInterval"?: number; /** * The number of times to renotify if the test is still failing. - */ + */ "renotifyOccurrences"?: number; /** @@ -46,36 +51,62 @@ export class SyntheticsTestOptionsMonitorOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - escalationMessage: { - baseName: "escalation_message", - type: "string", + "escalationMessage": { + "baseName": "escalation_message", + "type": "string", }, - notificationPresetName: { - baseName: "notification_preset_name", - type: "SyntheticsTestOptionsMonitorOptionsNotificationPresetName", + "notificationPresetName": { + "baseName": "notification_preset_name", + "type": "SyntheticsTestOptionsMonitorOptionsNotificationPresetName", }, - renotifyInterval: { - baseName: "renotify_interval", - type: "number", - format: "int64", + "renotifyInterval": { + "baseName": "renotify_interval", + "type": "number", + "format": "int64", }, - renotifyOccurrences: { - baseName: "renotify_occurrences", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "renotifyOccurrences": { + "baseName": "renotify_occurrences", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestOptionsMonitorOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptionsNotificationPresetName.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptionsNotificationPresetName.ts index 504accfc00b0..484be12fcaac 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptionsNotificationPresetName.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsMonitorOptionsNotificationPresetName.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The name of the preset for the notification for the monitor. - */ +*/ -export type SyntheticsTestOptionsMonitorOptionsNotificationPresetName = - | typeof SHOW_ALL - | typeof HIDE_ALL - | typeof HIDE_QUERY - | typeof HIDE_HANDLES - | UnparsedObject; -export const SHOW_ALL = "show_all"; -export const HIDE_ALL = "hide_all"; -export const HIDE_QUERY = "hide_query"; -export const HIDE_HANDLES = "hide_handles"; +export type SyntheticsTestOptionsMonitorOptionsNotificationPresetName = typeof SHOW_ALL| typeof HIDE_ALL| typeof HIDE_QUERY| typeof HIDE_HANDLES | UnparsedObject; +export const SHOW_ALL = 'show_all'; +export const HIDE_ALL = 'hide_all'; +export const HIDE_QUERY = 'hide_query'; +export const HIDE_HANDLES = 'hide_handles'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsRetry.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsRetry.ts index 83d3c63b6b57..8368568ddb37 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsRetry.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsRetry.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the retry strategy to apply to a Synthetic test. - */ +*/ export class SyntheticsTestOptionsRetry { /** * Number of times a test needs to be retried before marking a * location as failed. Defaults to 0. - */ + */ "count"?: number; /** * Time interval between retries (in milliseconds). Defaults to * 300ms. - */ + */ "interval"?: number; /** @@ -37,28 +42,54 @@ export class SyntheticsTestOptionsRetry { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - interval: { - baseName: "interval", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "interval": { + "baseName": "interval", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestOptionsRetry.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.ts index 1914e8599ac8..9e8095092f99 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.ts @@ -5,19 +5,24 @@ */ import { SyntheticsTestOptionsSchedulingTimeframe } from "./SyntheticsTestOptionsSchedulingTimeframe"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing timeframes and timezone used for advanced scheduling. - */ +*/ export class SyntheticsTestOptionsScheduling { /** * Array containing objects describing the scheduling pattern to apply to each day. - */ + */ "timeframes": Array; /** * Timezone in which the timeframe is based. - */ + */ "timezone": string; /** @@ -36,28 +41,54 @@ export class SyntheticsTestOptionsScheduling { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeframes: { - baseName: "timeframes", - type: "Array", - required: true, + "timeframes": { + "baseName": "timeframes", + "type": "Array", + "required": true, }, - timezone: { - baseName: "timezone", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestOptionsScheduling.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.ts b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.ts index 5f9019938ea0..93276ef7319b 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a timeframe. - */ +*/ export class SyntheticsTestOptionsSchedulingTimeframe { /** * Number representing the day of the week. - */ + */ "day": number; /** * The hour of the day on which scheduling starts. - */ + */ "from": string; /** * The hour of the day on which scheduling ends. - */ + */ "to": string; /** @@ -39,34 +44,60 @@ export class SyntheticsTestOptionsSchedulingTimeframe { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - day: { - baseName: "day", - type: "number", - required: true, - format: "int32", - }, - from: { - baseName: "from", - type: "string", - required: true, + "day": { + "baseName": "day", + "type": "number", + "required": true, + "format": "int32", }, - to: { - baseName: "to", - type: "string", - required: true, + "from": { + "baseName": "from", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestOptionsSchedulingTimeframe.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestPauseStatus.ts b/packages/datadog-api-client-v1/models/SyntheticsTestPauseStatus.ts index ccbcd03a7da1..e931fab96071 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestPauseStatus.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestPauseStatus.ts @@ -4,16 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Define whether you want to start (`live`) or pause (`paused`) a * Synthetic test. - */ +*/ -export type SyntheticsTestPauseStatus = - | typeof LIVE - | typeof PAUSED - | UnparsedObject; -export const LIVE = "live"; -export const PAUSED = "paused"; +export type SyntheticsTestPauseStatus = typeof LIVE| typeof PAUSED | UnparsedObject; +export const LIVE = 'live'; +export const PAUSED = 'paused'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.ts b/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.ts index ce0abde0c52c..c8394655a1c8 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Status of a Synthetic test. - */ +*/ -export type SyntheticsTestProcessStatus = - | typeof NOT_SCHEDULED - | typeof SCHEDULED - | typeof FINISHED - | typeof FINISHED_WITH_ERROR - | UnparsedObject; -export const NOT_SCHEDULED = "not_scheduled"; -export const SCHEDULED = "scheduled"; -export const FINISHED = "finished"; -export const FINISHED_WITH_ERROR = "finished_with_error"; +export type SyntheticsTestProcessStatus = typeof NOT_SCHEDULED| typeof SCHEDULED| typeof FINISHED| typeof FINISHED_WITH_ERROR | UnparsedObject; +export const NOT_SCHEDULED = 'not_scheduled'; +export const SCHEDULED = 'scheduled'; +export const FINISHED = 'finished'; +export const FINISHED_WITH_ERROR = 'finished_with_error'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts index 9c0a065c4678..1c067af5e214 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts @@ -12,133 +12,138 @@ import { SyntheticsTestRequestCertificate } from "./SyntheticsTestRequestCertifi import { SyntheticsTestRequestPort } from "./SyntheticsTestRequestPort"; import { SyntheticsTestRequestProxy } from "./SyntheticsTestRequestProxy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the Synthetic test request. - */ +*/ export class SyntheticsTestRequest { /** * Allows loading insecure content for an HTTP request in a multistep test step. - */ + */ "allowInsecure"?: boolean; /** * Object to handle basic authentication when performing the test. - */ + */ "basicAuth"?: SyntheticsBasicAuth; /** * Body to include in the test. - */ + */ "body"?: string; /** * Type of the request body. - */ + */ "bodyType"?: SyntheticsTestRequestBodyType; /** * The type of gRPC call to perform. - */ + */ "callType"?: SyntheticsTestCallType; /** * Client certificate to use when performing the test request. - */ + */ "certificate"?: SyntheticsTestRequestCertificate; /** * By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`. - */ + */ "certificateDomains"?: Array; /** * A protobuf JSON descriptor that needs to be gzipped first then base64 encoded. - */ + */ "compressedJsonDescriptor"?: string; /** * A protobuf file that needs to be gzipped first then base64 encoded. - */ + */ "compressedProtoFile"?: string; /** * DNS server to use for DNS tests. - */ + */ "dnsServer"?: string; /** * DNS server port to use for DNS tests. - */ + */ "dnsServerPort"?: string; /** * Files to be used as part of the request in the test. - */ + */ "files"?: Array; /** * Specifies whether or not the request follows redirects. - */ + */ "followRedirects"?: boolean; /** * Headers to include when performing the test. - */ - "headers"?: { [key: string]: string }; + */ + "headers"?: { [key: string]: string; }; /** * Host name to perform the test with. - */ + */ "host"?: string; /** * HTTP version to use for a Synthetic test. - */ + */ "httpVersion"?: SyntheticsTestOptionsHTTPVersion; /** * Message to send for UDP or WebSocket tests. - */ + */ "message"?: string; /** * Metadata to include when performing the gRPC test. - */ - "metadata"?: { [key: string]: string }; + */ + "metadata"?: { [key: string]: string; }; /** * Either the HTTP method/verb to use or a gRPC method available on the service set in the `service` field. Required if `subtype` is `HTTP` or if `subtype` is `grpc` and `callType` is `unary`. - */ + */ "method"?: string; /** * Determines whether or not to save the response body. - */ + */ "noSavingResponseBody"?: boolean; /** * Number of pings to use per test. - */ + */ "numberOfPackets"?: number; /** * Persist cookies across redirects. - */ + */ "persistCookies"?: boolean; /** * Port to use when performing the test. - */ + */ "port"?: SyntheticsTestRequestPort; /** * The proxy to perform the test. - */ + */ "proxy"?: SyntheticsTestRequestProxy; /** * Query to use for the test. - */ + */ "query"?: any; /** * For SSL tests, it specifies on which server you want to initiate the TLS handshake, * allowing the server to present one of multiple possible certificates on * the same IP address and TCP port number. - */ + */ "servername"?: string; /** * The gRPC service on which you want to perform the gRPC call. - */ + */ "service"?: string; /** * Turns on a traceroute probe to discover all gateways along the path to the host destination. - */ + */ "shouldTrackHops"?: boolean; /** * Timeout in seconds for the test. - */ + */ "timeout"?: number; /** * URL to perform the test with. - */ + */ "url"?: string; /** @@ -157,140 +162,166 @@ export class SyntheticsTestRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - allowInsecure: { - baseName: "allow_insecure", - type: "boolean", + "allowInsecure": { + "baseName": "allow_insecure", + "type": "boolean", }, - basicAuth: { - baseName: "basicAuth", - type: "SyntheticsBasicAuth", + "basicAuth": { + "baseName": "basicAuth", + "type": "SyntheticsBasicAuth", }, - body: { - baseName: "body", - type: "string", + "body": { + "baseName": "body", + "type": "string", }, - bodyType: { - baseName: "bodyType", - type: "SyntheticsTestRequestBodyType", + "bodyType": { + "baseName": "bodyType", + "type": "SyntheticsTestRequestBodyType", }, - callType: { - baseName: "callType", - type: "SyntheticsTestCallType", + "callType": { + "baseName": "callType", + "type": "SyntheticsTestCallType", }, - certificate: { - baseName: "certificate", - type: "SyntheticsTestRequestCertificate", + "certificate": { + "baseName": "certificate", + "type": "SyntheticsTestRequestCertificate", }, - certificateDomains: { - baseName: "certificateDomains", - type: "Array", + "certificateDomains": { + "baseName": "certificateDomains", + "type": "Array", }, - compressedJsonDescriptor: { - baseName: "compressedJsonDescriptor", - type: "string", + "compressedJsonDescriptor": { + "baseName": "compressedJsonDescriptor", + "type": "string", }, - compressedProtoFile: { - baseName: "compressedProtoFile", - type: "string", + "compressedProtoFile": { + "baseName": "compressedProtoFile", + "type": "string", }, - dnsServer: { - baseName: "dnsServer", - type: "string", + "dnsServer": { + "baseName": "dnsServer", + "type": "string", }, - dnsServerPort: { - baseName: "dnsServerPort", - type: "string", + "dnsServerPort": { + "baseName": "dnsServerPort", + "type": "string", }, - files: { - baseName: "files", - type: "Array", + "files": { + "baseName": "files", + "type": "Array", }, - followRedirects: { - baseName: "follow_redirects", - type: "boolean", + "followRedirects": { + "baseName": "follow_redirects", + "type": "boolean", }, - headers: { - baseName: "headers", - type: "{ [key: string]: string; }", + "headers": { + "baseName": "headers", + "type": "{ [key: string]: string; }", }, - host: { - baseName: "host", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - httpVersion: { - baseName: "httpVersion", - type: "SyntheticsTestOptionsHTTPVersion", + "httpVersion": { + "baseName": "httpVersion", + "type": "SyntheticsTestOptionsHTTPVersion", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - metadata: { - baseName: "metadata", - type: "{ [key: string]: string; }", + "metadata": { + "baseName": "metadata", + "type": "{ [key: string]: string; }", }, - method: { - baseName: "method", - type: "string", + "method": { + "baseName": "method", + "type": "string", }, - noSavingResponseBody: { - baseName: "noSavingResponseBody", - type: "boolean", + "noSavingResponseBody": { + "baseName": "noSavingResponseBody", + "type": "boolean", }, - numberOfPackets: { - baseName: "numberOfPackets", - type: "number", - format: "int32", + "numberOfPackets": { + "baseName": "numberOfPackets", + "type": "number", + "format": "int32", }, - persistCookies: { - baseName: "persistCookies", - type: "boolean", + "persistCookies": { + "baseName": "persistCookies", + "type": "boolean", }, - port: { - baseName: "port", - type: "SyntheticsTestRequestPort", + "port": { + "baseName": "port", + "type": "SyntheticsTestRequestPort", }, - proxy: { - baseName: "proxy", - type: "SyntheticsTestRequestProxy", + "proxy": { + "baseName": "proxy", + "type": "SyntheticsTestRequestProxy", }, - query: { - baseName: "query", - type: "any", + "query": { + "baseName": "query", + "type": "any", }, - servername: { - baseName: "servername", - type: "string", + "servername": { + "baseName": "servername", + "type": "string", }, - service: { - baseName: "service", - type: "string", + "service": { + "baseName": "service", + "type": "string", }, - shouldTrackHops: { - baseName: "shouldTrackHops", - type: "boolean", + "shouldTrackHops": { + "baseName": "shouldTrackHops", + "type": "boolean", }, - timeout: { - baseName: "timeout", - type: "number", - format: "double", + "timeout": { + "baseName": "timeout", + "type": "number", + "format": "double", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyFile.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyFile.ts index 5275c2f70a55..df182e8fbffd 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyFile.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyFile.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing a file to be used as part of the request in the test. - */ +*/ export class SyntheticsTestRequestBodyFile { /** * Bucket key of the file. - */ + */ "bucketKey"?: string; /** * Content of the file. - */ + */ "content"?: string; /** * Name of the file. - */ + */ "name"?: string; /** * Original name of the file. - */ + */ "originalFileName"?: string; /** * Size of the file. - */ + */ "size"?: number; /** * Type of the file. - */ + */ "type"?: string; /** @@ -51,43 +56,69 @@ export class SyntheticsTestRequestBodyFile { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bucketKey: { - baseName: "bucketKey", - type: "string", - }, - content: { - baseName: "content", - type: "string", + "bucketKey": { + "baseName": "bucketKey", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "content": { + "baseName": "content", + "type": "string", }, - originalFileName: { - baseName: "originalFileName", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - size: { - baseName: "size", - type: "number", - format: "int64", + "originalFileName": { + "baseName": "originalFileName", + "type": "string", }, - type: { - baseName: "type", - type: "string", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestRequestBodyFile.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyType.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyType.ts index 43dc2f418a1e..f0837b099b19 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequestBodyType.ts @@ -4,28 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the request body. - */ +*/ -export type SyntheticsTestRequestBodyType = - | typeof TEXT_PLAIN - | typeof APPLICATION_JSON - | typeof TEXT_XML - | typeof TEXT_HTML - | typeof APPLICATION_X_WWW_FORM_URLENCODED - | typeof GRAPHQL - | typeof APPLICATION_OCTET_STREAM - | typeof MULTIPART_FORM_DATA - | UnparsedObject; -export const TEXT_PLAIN = "text/plain"; -export const APPLICATION_JSON = "application/json"; -export const TEXT_XML = "text/xml"; -export const TEXT_HTML = "text/html"; -export const APPLICATION_X_WWW_FORM_URLENCODED = - "application/x-www-form-urlencoded"; -export const GRAPHQL = "graphql"; -export const APPLICATION_OCTET_STREAM = "application/octet-stream"; -export const MULTIPART_FORM_DATA = "multipart/form-data"; +export type SyntheticsTestRequestBodyType = typeof TEXT_PLAIN| typeof APPLICATION_JSON| typeof TEXT_XML| typeof TEXT_HTML| typeof APPLICATION_X_WWW_FORM_URLENCODED| typeof GRAPHQL| typeof APPLICATION_OCTET_STREAM| typeof MULTIPART_FORM_DATA | UnparsedObject; +export const TEXT_PLAIN = 'text/plain'; +export const APPLICATION_JSON = 'application/json'; +export const TEXT_XML = 'text/xml'; +export const TEXT_HTML = 'text/html'; +export const APPLICATION_X_WWW_FORM_URLENCODED = 'application/x-www-form-urlencoded'; +export const GRAPHQL = 'graphql'; +export const APPLICATION_OCTET_STREAM = 'application/octet-stream'; +export const MULTIPART_FORM_DATA = 'multipart/form-data'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificate.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificate.ts index 725b5da93d6b..cc0e148806ff 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificate.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificate.ts @@ -5,19 +5,24 @@ */ import { SyntheticsTestRequestCertificateItem } from "./SyntheticsTestRequestCertificateItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Client certificate to use when performing the test request. - */ +*/ export class SyntheticsTestRequestCertificate { /** * Define a request certificate. - */ + */ "cert"?: SyntheticsTestRequestCertificateItem; /** * Define a request certificate. - */ + */ "key"?: SyntheticsTestRequestCertificateItem; /** @@ -36,26 +41,52 @@ export class SyntheticsTestRequestCertificate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cert: { - baseName: "cert", - type: "SyntheticsTestRequestCertificateItem", + "cert": { + "baseName": "cert", + "type": "SyntheticsTestRequestCertificateItem", }, - key: { - baseName: "key", - type: "SyntheticsTestRequestCertificateItem", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "key": { + "baseName": "key", + "type": "SyntheticsTestRequestCertificateItem", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestRequestCertificate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificateItem.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificateItem.ts index 7039ab2e3d4d..5e9d50cc85f6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificateItem.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequestCertificateItem.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Define a request certificate. - */ +*/ export class SyntheticsTestRequestCertificateItem { /** * Content of the certificate or key. - */ + */ "content"?: string; /** * File name for the certificate or key. - */ + */ "filename"?: string; /** * Date of update of the certificate or key, ISO format. - */ + */ "updatedAt"?: string; /** @@ -39,30 +44,56 @@ export class SyntheticsTestRequestCertificateItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - content: { - baseName: "content", - type: "string", - }, - filename: { - baseName: "filename", - type: "string", + "content": { + "baseName": "content", + "type": "string", }, - updatedAt: { - baseName: "updatedAt", - type: "string", + "filename": { + "baseName": "filename", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "updatedAt": { + "baseName": "updatedAt", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestRequestCertificateItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequestPort.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequestPort.ts index 1e1c697cf925..a2b47f472fa8 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequestPort.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequestPort.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Port to use when performing the test. - */ +*/ -export type SyntheticsTestRequestPort = number | string | UnparsedObject; +export type SyntheticsTestRequestPort = number | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequestProxy.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequestProxy.ts index 5d80079be856..7be545e0d477 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequestProxy.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequestProxy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The proxy to perform the test. - */ +*/ export class SyntheticsTestRequestProxy { /** * Headers to include when performing the test. - */ - "headers"?: { [key: string]: string }; + */ + "headers"?: { [key: string]: string; }; /** * URL of the proxy to perform the test. - */ + */ "url": string; /** @@ -35,27 +40,53 @@ export class SyntheticsTestRequestProxy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - headers: { - baseName: "headers", - type: "{ [key: string]: string; }", + "headers": { + "baseName": "headers", + "type": "{ [key: string]: string; }", }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestRequestProxy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBinding.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBinding.ts index 29ab75c22470..0f0152327ff4 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBinding.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBinding.ts @@ -3,21 +3,27 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { SyntheticsTestRestrictionPolicyBindingPrincipalsItem } from "./SyntheticsTestRestrictionPolicyBindingPrincipalsItem"; import { SyntheticsTestRestrictionPolicyBindingRelation } from "./SyntheticsTestRestrictionPolicyBindingRelation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Objects describing the binding used for a mobile test. - */ +*/ export class SyntheticsTestRestrictionPolicyBinding { /** * List of principals for a mobile test binding. - */ + */ "principals"?: Array; /** * The type of relation for the binding. - */ + */ "relation"?: SyntheticsTestRestrictionPolicyBindingRelation; /** @@ -36,26 +42,52 @@ export class SyntheticsTestRestrictionPolicyBinding { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - principals: { - baseName: "principals", - type: "Array", + "principals": { + "baseName": "principals", + "type": "Array", }, - relation: { - baseName: "relation", - type: "SyntheticsTestRestrictionPolicyBindingRelation", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "relation": { + "baseName": "relation", + "type": "SyntheticsTestRestrictionPolicyBindingRelation", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestRestrictionPolicyBinding.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBindingRelation.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBindingRelation.ts index 9287ffee2b1f..d5de1ef21569 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBindingRelation.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRestrictionPolicyBindingRelation.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of relation for the binding. - */ +*/ -export type SyntheticsTestRestrictionPolicyBindingRelation = - | typeof EDITOR - | typeof VIEWER - | UnparsedObject; -export const EDITOR = "editor"; -export const VIEWER = "viewer"; +export type SyntheticsTestRestrictionPolicyBindingRelation = typeof EDITOR| typeof VIEWER | UnparsedObject; +export const EDITOR = 'editor'; +export const VIEWER = 'viewer'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestUptime.ts b/packages/datadog-api-client-v1/models/SyntheticsTestUptime.ts index 3e2ef70513c1..a6a1776340a6 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestUptime.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestUptime.ts @@ -5,27 +5,32 @@ */ import { SyntheticsUptime } from "./SyntheticsUptime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the uptime for a Synthetic test ID. - */ +*/ export class SyntheticsTestUptime { /** * Timestamp in seconds for the start of uptime. - */ + */ "fromTs"?: number; /** * Object containing the uptime information. - */ + */ "overall"?: SyntheticsUptime; /** * A Synthetic test ID. - */ + */ "publicId"?: string; /** * Timestamp in seconds for the end of uptime. - */ + */ "toTs"?: number; /** @@ -44,36 +49,62 @@ export class SyntheticsTestUptime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fromTs: { - baseName: "from_ts", - type: "number", - format: "int64", + "fromTs": { + "baseName": "from_ts", + "type": "number", + "format": "int64", }, - overall: { - baseName: "overall", - type: "SyntheticsUptime", + "overall": { + "baseName": "overall", + "type": "SyntheticsUptime", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - toTs: { - baseName: "to_ts", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "toTs": { + "baseName": "to_ts", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTestUptime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTiming.ts b/packages/datadog-api-client-v1/models/SyntheticsTiming.ts index 1ee759514afd..e5200ecc941c 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTiming.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTiming.ts @@ -4,48 +4,53 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing all metrics and their values collected for a Synthetic API test. * See the [Synthetic Monitoring Metrics documentation](https://docs.datadoghq.com/synthetics/metrics/). - */ +*/ export class SyntheticsTiming { /** * The duration in millisecond of the DNS lookup. - */ + */ "dns"?: number; /** * The time in millisecond to download the response. - */ + */ "download"?: number; /** * The time in millisecond to first byte. - */ + */ "firstByte"?: number; /** * The duration in millisecond of the TLS handshake. - */ + */ "handshake"?: number; /** * The time in millisecond spent during redirections. - */ + */ "redirect"?: number; /** * The duration in millisecond of the TLS handshake. - */ + */ "ssl"?: number; /** * Time in millisecond to establish the TCP connection. - */ + */ "tcp"?: number; /** * The overall time in millisecond the request took to be processed. - */ + */ "total"?: number; /** * Time spent in millisecond waiting for a response. - */ + */ "wait"?: number; /** @@ -64,63 +69,89 @@ export class SyntheticsTiming { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dns: { - baseName: "dns", - type: "number", - format: "double", + "dns": { + "baseName": "dns", + "type": "number", + "format": "double", }, - download: { - baseName: "download", - type: "number", - format: "double", + "download": { + "baseName": "download", + "type": "number", + "format": "double", }, - firstByte: { - baseName: "firstByte", - type: "number", - format: "double", + "firstByte": { + "baseName": "firstByte", + "type": "number", + "format": "double", }, - handshake: { - baseName: "handshake", - type: "number", - format: "double", + "handshake": { + "baseName": "handshake", + "type": "number", + "format": "double", }, - redirect: { - baseName: "redirect", - type: "number", - format: "double", + "redirect": { + "baseName": "redirect", + "type": "number", + "format": "double", }, - ssl: { - baseName: "ssl", - type: "number", - format: "double", + "ssl": { + "baseName": "ssl", + "type": "number", + "format": "double", }, - tcp: { - baseName: "tcp", - type: "number", - format: "double", + "tcp": { + "baseName": "tcp", + "type": "number", + "format": "double", }, - total: { - baseName: "total", - type: "number", - format: "double", + "total": { + "baseName": "total", + "type": "number", + "format": "double", }, - wait: { - baseName: "wait", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "wait": { + "baseName": "wait", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTiming.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTriggerBody.ts b/packages/datadog-api-client-v1/models/SyntheticsTriggerBody.ts index c54959ed2c25..e249ca5ba9e9 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTriggerBody.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTriggerBody.ts @@ -5,15 +5,20 @@ */ import { SyntheticsTriggerTest } from "./SyntheticsTriggerTest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing the Synthetic tests to trigger. - */ +*/ export class SyntheticsTriggerBody { /** * List of Synthetic tests. - */ + */ "tests": Array; /** @@ -32,23 +37,49 @@ export class SyntheticsTriggerBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tests: { - baseName: "tests", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tests": { + "baseName": "tests", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTriggerBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestLocation.ts b/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestLocation.ts index 7c5cc3673d40..89a9b6e56d2a 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestLocation.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestLocation.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Synthetic location. - */ +*/ export class SyntheticsTriggerCITestLocation { /** * Unique identifier of the location. - */ + */ "id"?: number; /** * Name of the location. - */ + */ "name"?: string; /** @@ -35,27 +40,53 @@ export class SyntheticsTriggerCITestLocation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "number", - format: "int64", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTriggerCITestLocation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.ts b/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.ts index 49f393c90d61..3c670fa55131 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about a single test run. - */ +*/ export class SyntheticsTriggerCITestRunResult { /** * The device ID. - */ + */ "device"?: string; /** * The location ID of the test run. - */ + */ "location"?: number; /** * The public ID of the Synthetic test. - */ + */ "publicId"?: string; /** * ID of the result. - */ + */ "resultId"?: string; /** @@ -43,35 +48,61 @@ export class SyntheticsTriggerCITestRunResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - device: { - baseName: "device", - type: "string", + "device": { + "baseName": "device", + "type": "string", }, - location: { - baseName: "location", - type: "number", - format: "int64", + "location": { + "baseName": "location", + "type": "number", + "format": "int64", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - resultId: { - baseName: "result_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "resultId": { + "baseName": "result_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTriggerCITestRunResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestsResponse.ts b/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestsResponse.ts index b6acab4ab590..66639c201879 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestsResponse.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestsResponse.ts @@ -6,27 +6,32 @@ import { SyntheticsTriggerCITestLocation } from "./SyntheticsTriggerCITestLocation"; import { SyntheticsTriggerCITestRunResult } from "./SyntheticsTriggerCITestRunResult"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing information about the tests triggered. - */ +*/ export class SyntheticsTriggerCITestsResponse { /** * The public ID of the batch triggered. - */ + */ "batchId"?: string; /** * List of Synthetic locations. - */ + */ "locations"?: Array; /** * Information about the tests runs. - */ + */ "results"?: Array; /** * The public IDs of the Synthetic test triggered. - */ + */ "triggeredCheckIds"?: Array; /** @@ -45,34 +50,60 @@ export class SyntheticsTriggerCITestsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - batchId: { - baseName: "batch_id", - type: "string", + "batchId": { + "baseName": "batch_id", + "type": "string", }, - locations: { - baseName: "locations", - type: "Array", + "locations": { + "baseName": "locations", + "type": "Array", }, - results: { - baseName: "results", - type: "Array", + "results": { + "baseName": "results", + "type": "Array", }, - triggeredCheckIds: { - baseName: "triggered_check_ids", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "triggeredCheckIds": { + "baseName": "triggered_check_ids", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTriggerCITestsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsTriggerTest.ts b/packages/datadog-api-client-v1/models/SyntheticsTriggerTest.ts index 0877bb36d7c3..8455697eb775 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTriggerTest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTriggerTest.ts @@ -5,19 +5,24 @@ */ import { SyntheticsCIBatchMetadata } from "./SyntheticsCIBatchMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Test configuration for Synthetics - */ +*/ export class SyntheticsTriggerTest { /** * Metadata for the Synthetic tests run. - */ + */ "metadata"?: SyntheticsCIBatchMetadata; /** * The public ID of the Synthetic test to trigger. - */ + */ "publicId": string; /** @@ -36,27 +41,53 @@ export class SyntheticsTriggerTest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metadata: { - baseName: "metadata", - type: "SyntheticsCIBatchMetadata", + "metadata": { + "baseName": "metadata", + "type": "SyntheticsCIBatchMetadata", }, - publicId: { - baseName: "public_id", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsTriggerTest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsUpdateTestPauseStatusPayload.ts b/packages/datadog-api-client-v1/models/SyntheticsUpdateTestPauseStatusPayload.ts index e4e25941231c..1b078aea5041 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsUpdateTestPauseStatusPayload.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsUpdateTestPauseStatusPayload.ts @@ -5,16 +5,21 @@ */ import { SyntheticsTestPauseStatus } from "./SyntheticsTestPauseStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to start or pause an existing Synthetic test. - */ +*/ export class SyntheticsUpdateTestPauseStatusPayload { /** * Define whether you want to start (`live`) or pause (`paused`) a * Synthetic test. - */ + */ "newStatus"?: SyntheticsTestPauseStatus; /** @@ -33,22 +38,48 @@ export class SyntheticsUpdateTestPauseStatusPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - newStatus: { - baseName: "new_status", - type: "SyntheticsTestPauseStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "newStatus": { + "baseName": "new_status", + "type": "SyntheticsTestPauseStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsUpdateTestPauseStatusPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsUptime.ts b/packages/datadog-api-client-v1/models/SyntheticsUptime.ts index 59ac6f088cd2..47816d6693f4 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsUptime.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsUptime.ts @@ -5,19 +5,24 @@ */ import { SLOHistoryResponseErrorWithType } from "./SLOHistoryResponseErrorWithType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the uptime information. - */ +*/ export class SyntheticsUptime { /** * An array of error objects returned while querying the history data for the service level objective. - */ + */ "errors"?: Array; /** * The location name - */ + */ "group"?: string; /** * The state transition history for the monitor, represented as an array of @@ -25,15 +30,15 @@ export class SyntheticsUptime { * in Unix epoch format (integer) and the second element is the state (integer). * For the state, an integer value of `0` indicates uptime, `1` indicates downtime, * and `2` indicates no data. - */ + */ "history"?: Array<[number, number]>; /** * The number of decimal places to which the SLI value is accurate for the given from-to timestamps. - */ + */ "spanPrecision"?: number; /** * The overall uptime. - */ + */ "uptime"?: number; /** @@ -52,41 +57,67 @@ export class SyntheticsUptime { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", + "errors": { + "baseName": "errors", + "type": "Array", }, - group: { - baseName: "group", - type: "string", + "group": { + "baseName": "group", + "type": "string", }, - history: { - baseName: "history", - type: "Array<[number, number]>", - format: "double", + "history": { + "baseName": "history", + "type": "Array<[number, number]>", + "format": "double", }, - spanPrecision: { - baseName: "span_precision", - type: "number", - format: "double", + "spanPrecision": { + "baseName": "span_precision", + "type": "number", + "format": "double", }, - uptime: { - baseName: "uptime", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uptime": { + "baseName": "uptime", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsUptime.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsVariableParser.ts b/packages/datadog-api-client-v1/models/SyntheticsVariableParser.ts index 457b9661faf2..19c209b97074 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsVariableParser.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsVariableParser.ts @@ -5,19 +5,24 @@ */ import { SyntheticsGlobalVariableParserType } from "./SyntheticsGlobalVariableParserType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of the parser to use for the global variable. - */ +*/ export class SyntheticsVariableParser { /** * Type of parser for a Synthetic global variable from a synthetics test. - */ + */ "type": SyntheticsGlobalVariableParserType; /** * Regex or JSON path used for the parser. Not used with type `raw`. - */ + */ "value"?: string; /** @@ -36,27 +41,53 @@ export class SyntheticsVariableParser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "SyntheticsGlobalVariableParserType", - required: true, + "type": { + "baseName": "type", + "type": "SyntheticsGlobalVariableParserType", + "required": true, }, - value: { - baseName: "value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SyntheticsVariableParser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/SyntheticsWarningType.ts b/packages/datadog-api-client-v1/models/SyntheticsWarningType.ts index ee8284625a3a..2ce8a987aac5 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsWarningType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsWarningType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * User locator used. - */ +*/ export type SyntheticsWarningType = typeof USER_LOCATOR | UnparsedObject; -export const USER_LOCATOR = "user_locator"; +export const USER_LOCATOR = 'user_locator'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetCellDisplayMode.ts b/packages/datadog-api-client-v1/models/TableWidgetCellDisplayMode.ts index 17e3f8b3cf9b..f1ce8c668972 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetCellDisplayMode.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetCellDisplayMode.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Define a display mode for the table cell. - */ +*/ -export type TableWidgetCellDisplayMode = - | typeof NUMBER - | typeof BAR - | typeof TREND - | UnparsedObject; -export const NUMBER = "number"; -export const BAR = "bar"; -export const TREND = "trend"; +export type TableWidgetCellDisplayMode = typeof NUMBER| typeof BAR| typeof TREND | UnparsedObject; +export const NUMBER = 'number'; +export const BAR = 'bar'; +export const TREND = 'trend'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetDefinition.ts b/packages/datadog-api-client-v1/models/TableWidgetDefinition.ts index f8aaba2fc34c..7418966f6528 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetDefinition.ts @@ -10,43 +10,48 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The table visualization is available on timeboards and screenboards. It displays columns of metrics grouped by tag key. - */ +*/ export class TableWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * Controls the display of the search bar. - */ + */ "hasSearchBar"?: TableWidgetHasSearchBar; /** * Widget definition. - */ + */ "requests": Array; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the table widget. - */ + */ "type": TableWidgetDefinitionType; /** @@ -65,52 +70,78 @@ export class TableWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - hasSearchBar: { - baseName: "has_search_bar", - type: "TableWidgetHasSearchBar", + "hasSearchBar": { + "baseName": "has_search_bar", + "type": "TableWidgetHasSearchBar", }, - requests: { - baseName: "requests", - type: "Array", - required: true, + "requests": { + "baseName": "requests", + "type": "Array", + "required": true, }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "TableWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TableWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TableWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TableWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/TableWidgetDefinitionType.ts index e33d5cb0f2cb..8724fafc2605 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the table widget. - */ +*/ export type TableWidgetDefinitionType = typeof QUERY_TABLE | UnparsedObject; -export const QUERY_TABLE = "query_table"; +export const QUERY_TABLE = 'query_table'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetHasSearchBar.ts b/packages/datadog-api-client-v1/models/TableWidgetHasSearchBar.ts index c21bc9c2dfe3..dbde49e240d3 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetHasSearchBar.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetHasSearchBar.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Controls the display of the search bar. - */ +*/ -export type TableWidgetHasSearchBar = - | typeof ALWAYS - | typeof NEVER - | typeof AUTO - | UnparsedObject; -export const ALWAYS = "always"; -export const NEVER = "never"; -export const AUTO = "auto"; +export type TableWidgetHasSearchBar = typeof ALWAYS| typeof NEVER| typeof AUTO | UnparsedObject; +export const ALWAYS = 'always'; +export const NEVER = 'never'; +export const AUTO = 'auto'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetRequest.ts b/packages/datadog-api-client-v1/models/TableWidgetRequest.ts index 827db57996dd..f959b29faefe 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetRequest.ts @@ -9,6 +9,8 @@ import { FormulaAndFunctionResponseFormat } from "./FormulaAndFunctionResponseFo import { LogQueryDefinition } from "./LogQueryDefinition"; import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; import { TableWidgetCellDisplayMode } from "./TableWidgetCellDisplayMode"; +import { TableWidgetTextFormat } from "./TableWidgetTextFormat"; +import { TableWidgetTextFormatItem } from "./TableWidgetTextFormatItem"; import { TableWidgetTextFormatRule } from "./TableWidgetTextFormatRule"; import { WidgetAggregator } from "./WidgetAggregator"; import { WidgetConditionalFormat } from "./WidgetConditionalFormat"; @@ -16,95 +18,100 @@ import { WidgetFormula } from "./WidgetFormula"; import { WidgetSort } from "./WidgetSort"; import { WidgetSortBy } from "./WidgetSortBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated table widget. - */ +*/ export class TableWidgetRequest { /** * Aggregator used for the request. - */ + */ "aggregator"?: WidgetAggregator; /** * The column name (defaults to the metric name). - */ + */ "alias"?: string; /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The APM stats query for table and distributions widgets. - */ + */ "apmStatsQuery"?: ApmStatsQueryDefinition; /** * A list of display modes for each table cell. - */ + */ "cellDisplayMode"?: Array; /** * List of conditional formats. - */ + */ "conditionalFormats"?: Array; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * For metric queries, the number of lines to show in the table. Only one request should have this property. - */ + */ "limit"?: number; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * Widget sorting methods. - */ + */ "order"?: WidgetSort; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Query definition. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * The controls for sorting the widget. - */ + */ "sort"?: WidgetSortBy; /** * List of text formats for columns produced by tags. - */ + */ "textFormats"?: Array>; /** @@ -123,103 +130,129 @@ export class TableWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "WidgetAggregator", - }, - alias: { - baseName: "alias", - type: "string", + "aggregator": { + "baseName": "aggregator", + "type": "WidgetAggregator", }, - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", + "alias": { + "baseName": "alias", + "type": "string", }, - apmStatsQuery: { - baseName: "apm_stats_query", - type: "ApmStatsQueryDefinition", + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", }, - cellDisplayMode: { - baseName: "cell_display_mode", - type: "Array", + "apmStatsQuery": { + "baseName": "apm_stats_query", + "type": "ApmStatsQueryDefinition", }, - conditionalFormats: { - baseName: "conditional_formats", - type: "Array", + "cellDisplayMode": { + "baseName": "cell_display_mode", + "type": "Array", }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", + "conditionalFormats": { + "baseName": "conditional_formats", + "type": "Array", }, - formulas: { - baseName: "formulas", - type: "Array", + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", }, - order: { - baseName: "order", - type: "WidgetSort", + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", + "order": { + "baseName": "order", + "type": "WidgetSort", }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", }, - q: { - baseName: "q", - type: "string", + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", }, - queries: { - baseName: "queries", - type: "Array", + "q": { + "baseName": "q", + "type": "string", }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", + "queries": { + "baseName": "queries", + "type": "Array", }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", }, - sort: { - baseName: "sort", - type: "WidgetSortBy", + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", }, - textFormats: { - baseName: "text_formats", - type: "Array>", + "sort": { + "baseName": "sort", + "type": "WidgetSortBy", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "textFormats": { + "baseName": "text_formats", + "type": "Array>", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TableWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatch.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatch.ts index 0ab90ef2a669..3126a553c40f 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatch.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatch.ts @@ -5,19 +5,24 @@ */ import { TableWidgetTextFormatMatchType } from "./TableWidgetTextFormatMatchType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Match rule for the table widget text format. - */ +*/ export class TableWidgetTextFormatMatch { /** * Match or compare option. - */ + */ "type": TableWidgetTextFormatMatchType; /** * Table Widget Match String. - */ + */ "value": string; /** @@ -36,28 +41,54 @@ export class TableWidgetTextFormatMatch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "TableWidgetTextFormatMatchType", - required: true, + "type": { + "baseName": "type", + "type": "TableWidgetTextFormatMatchType", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TableWidgetTextFormatMatch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatchType.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatchType.ts index f17a63331a63..35eb673c0e7f 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatchType.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatMatchType.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Match or compare option. - */ +*/ -export type TableWidgetTextFormatMatchType = - | typeof IS - | typeof IS_NOT - | typeof CONTAINS - | typeof DOES_NOT_CONTAIN - | typeof STARTS_WITH - | typeof ENDS_WITH - | UnparsedObject; -export const IS = "is"; -export const IS_NOT = "is_not"; -export const CONTAINS = "contains"; -export const DOES_NOT_CONTAIN = "does_not_contain"; -export const STARTS_WITH = "starts_with"; -export const ENDS_WITH = "ends_with"; +export type TableWidgetTextFormatMatchType = typeof IS| typeof IS_NOT| typeof CONTAINS| typeof DOES_NOT_CONTAIN| typeof STARTS_WITH| typeof ENDS_WITH | UnparsedObject; +export const IS = 'is'; +export const IS_NOT = 'is_not'; +export const CONTAINS = 'contains'; +export const DOES_NOT_CONTAIN = 'does_not_contain'; +export const STARTS_WITH = 'starts_with'; +export const ENDS_WITH = 'ends_with'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatPalette.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatPalette.ts index f59473ea431f..948e84b5e6a3 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatPalette.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatPalette.ts @@ -4,33 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Color-on-color palette to highlight replaced text. - */ +*/ -export type TableWidgetTextFormatPalette = - | typeof WHITE_ON_RED - | typeof WHITE_ON_YELLOW - | typeof WHITE_ON_GREEN - | typeof BLACK_ON_LIGHT_RED - | typeof BLACK_ON_LIGHT_YELLOW - | typeof BLACK_ON_LIGHT_GREEN - | typeof RED_ON_WHITE - | typeof YELLOW_ON_WHITE - | typeof GREEN_ON_WHITE - | typeof CUSTOM_BG - | typeof CUSTOM_TEXT - | UnparsedObject; -export const WHITE_ON_RED = "white_on_red"; -export const WHITE_ON_YELLOW = "white_on_yellow"; -export const WHITE_ON_GREEN = "white_on_green"; -export const BLACK_ON_LIGHT_RED = "black_on_light_red"; -export const BLACK_ON_LIGHT_YELLOW = "black_on_light_yellow"; -export const BLACK_ON_LIGHT_GREEN = "black_on_light_green"; -export const RED_ON_WHITE = "red_on_white"; -export const YELLOW_ON_WHITE = "yellow_on_white"; -export const GREEN_ON_WHITE = "green_on_white"; -export const CUSTOM_BG = "custom_bg"; -export const CUSTOM_TEXT = "custom_text"; +export type TableWidgetTextFormatPalette = typeof WHITE_ON_RED| typeof WHITE_ON_YELLOW| typeof WHITE_ON_GREEN| typeof BLACK_ON_LIGHT_RED| typeof BLACK_ON_LIGHT_YELLOW| typeof BLACK_ON_LIGHT_GREEN| typeof RED_ON_WHITE| typeof YELLOW_ON_WHITE| typeof GREEN_ON_WHITE| typeof CUSTOM_BG| typeof CUSTOM_TEXT | UnparsedObject; +export const WHITE_ON_RED = 'white_on_red'; +export const WHITE_ON_YELLOW = 'white_on_yellow'; +export const WHITE_ON_GREEN = 'white_on_green'; +export const BLACK_ON_LIGHT_RED = 'black_on_light_red'; +export const BLACK_ON_LIGHT_YELLOW = 'black_on_light_yellow'; +export const BLACK_ON_LIGHT_GREEN = 'black_on_light_green'; +export const RED_ON_WHITE = 'red_on_white'; +export const YELLOW_ON_WHITE = 'yellow_on_white'; +export const GREEN_ON_WHITE = 'green_on_white'; +export const CUSTOM_BG = 'custom_bg'; +export const CUSTOM_TEXT = 'custom_text'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplace.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplace.ts index 8a83b8de04f2..913db39f8405 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplace.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplace.ts @@ -6,13 +6,15 @@ import { TableWidgetTextFormatReplaceAll } from "./TableWidgetTextFormatReplaceAll"; import { TableWidgetTextFormatReplaceSubstring } from "./TableWidgetTextFormatReplaceSubstring"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Replace rule for the table widget text format. - */ +*/ -export type TableWidgetTextFormatReplace = - | TableWidgetTextFormatReplaceAll - | TableWidgetTextFormatReplaceSubstring - | UnparsedObject; +export type TableWidgetTextFormatReplace = TableWidgetTextFormatReplaceAll | TableWidgetTextFormatReplaceSubstring | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAll.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAll.ts index 2af821a77833..d64a57e69724 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAll.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAll.ts @@ -5,19 +5,24 @@ */ import { TableWidgetTextFormatReplaceAllType } from "./TableWidgetTextFormatReplaceAllType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Match All definition. - */ +*/ export class TableWidgetTextFormatReplaceAll { /** * Table widget text format replace all type. - */ + */ "type": TableWidgetTextFormatReplaceAllType; /** * Replace All type. - */ + */ "_with": string; /** @@ -36,28 +41,54 @@ export class TableWidgetTextFormatReplaceAll { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "TableWidgetTextFormatReplaceAllType", - required: true, + "type": { + "baseName": "type", + "type": "TableWidgetTextFormatReplaceAllType", + "required": true, }, - _with: { - baseName: "with", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "_with": { + "baseName": "with", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TableWidgetTextFormatReplaceAll.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAllType.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAllType.ts index 580621a384d9..924d3aa7481f 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAllType.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceAllType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Table widget text format replace all type. - */ +*/ export type TableWidgetTextFormatReplaceAllType = typeof ALL | UnparsedObject; -export const ALL = "all"; +export const ALL = 'all'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstring.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstring.ts index 6a00bc696f9b..517ce0efb7ef 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstring.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstring.ts @@ -5,23 +5,28 @@ */ import { TableWidgetTextFormatReplaceSubstringType } from "./TableWidgetTextFormatReplaceSubstringType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Match Sub-string definition. - */ +*/ export class TableWidgetTextFormatReplaceSubstring { /** * Text that will be replaced. - */ + */ "substring": string; /** * Table widget text format replace sub-string type. - */ + */ "type": TableWidgetTextFormatReplaceSubstringType; /** * Text that will replace original sub-string. - */ + */ "_with": string; /** @@ -40,33 +45,59 @@ export class TableWidgetTextFormatReplaceSubstring { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - substring: { - baseName: "substring", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "TableWidgetTextFormatReplaceSubstringType", - required: true, + "substring": { + "baseName": "substring", + "type": "string", + "required": true, }, - _with: { - baseName: "with", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "TableWidgetTextFormatReplaceSubstringType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "_with": { + "baseName": "with", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TableWidgetTextFormatReplaceSubstring.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstringType.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstringType.ts index 4a8176da22ba..40ca038d3dd8 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstringType.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatReplaceSubstringType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Table widget text format replace sub-string type. - */ +*/ -export type TableWidgetTextFormatReplaceSubstringType = - | typeof SUBSTRING - | UnparsedObject; -export const SUBSTRING = "substring"; +export type TableWidgetTextFormatReplaceSubstringType = typeof SUBSTRING | UnparsedObject; +export const SUBSTRING = 'substring'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TableWidgetTextFormatRule.ts b/packages/datadog-api-client-v1/models/TableWidgetTextFormatRule.ts index a2d6e6b1a40b..fa73a6ae4dce 100644 --- a/packages/datadog-api-client-v1/models/TableWidgetTextFormatRule.ts +++ b/packages/datadog-api-client-v1/models/TableWidgetTextFormatRule.ts @@ -7,31 +7,36 @@ import { TableWidgetTextFormatMatch } from "./TableWidgetTextFormatMatch"; import { TableWidgetTextFormatPalette } from "./TableWidgetTextFormatPalette"; import { TableWidgetTextFormatReplace } from "./TableWidgetTextFormatReplace"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Text format rules. - */ +*/ export class TableWidgetTextFormatRule { /** * Hex representation of the custom background color. Used with custom background palette option. - */ + */ "customBgColor"?: string; /** * Hex representation of the custom text color. Used with custom text palette option. - */ + */ "customFgColor"?: string; /** * Match rule for the table widget text format. - */ + */ "match": TableWidgetTextFormatMatch; /** * Color-on-color palette to highlight replaced text. - */ + */ "palette"?: TableWidgetTextFormatPalette; /** * Replace rule for the table widget text format. - */ + */ "replace"?: TableWidgetTextFormatReplace; /** @@ -50,39 +55,65 @@ export class TableWidgetTextFormatRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customBgColor: { - baseName: "custom_bg_color", - type: "string", + "customBgColor": { + "baseName": "custom_bg_color", + "type": "string", }, - customFgColor: { - baseName: "custom_fg_color", - type: "string", + "customFgColor": { + "baseName": "custom_fg_color", + "type": "string", }, - match: { - baseName: "match", - type: "TableWidgetTextFormatMatch", - required: true, + "match": { + "baseName": "match", + "type": "TableWidgetTextFormatMatch", + "required": true, }, - palette: { - baseName: "palette", - type: "TableWidgetTextFormatPalette", + "palette": { + "baseName": "palette", + "type": "TableWidgetTextFormatPalette", }, - replace: { - baseName: "replace", - type: "TableWidgetTextFormatReplace", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "replace": { + "baseName": "replace", + "type": "TableWidgetTextFormatReplace", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TableWidgetTextFormatRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TagToHosts.ts b/packages/datadog-api-client-v1/models/TagToHosts.ts index 52ebdd3e8bf3..7637cd45de4b 100644 --- a/packages/datadog-api-client-v1/models/TagToHosts.ts +++ b/packages/datadog-api-client-v1/models/TagToHosts.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * In this object, the key is the tag, the value is a list of host names that are reporting that tag. - */ +*/ export class TagToHosts { /** * A list of tags to apply to the host. - */ - "tags"?: { [key: string]: Array }; + */ + "tags"?: { [key: string]: Array; }; /** * A container for additional, undeclared properties. @@ -31,22 +36,48 @@ export class TagToHosts { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tags: { - baseName: "tags", - type: "{ [key: string]: Array; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "{ [key: string]: Array; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TagToHosts.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TargetFormatType.ts b/packages/datadog-api-client-v1/models/TargetFormatType.ts index 9831f5389762..25287614a840 100644 --- a/packages/datadog-api-client-v1/models/TargetFormatType.ts +++ b/packages/datadog-api-client-v1/models/TargetFormatType.ts @@ -4,21 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. * If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. * If the `target_type` is `tag`, this parameter may not be specified. - */ +*/ -export type TargetFormatType = - | typeof AUTO - | typeof STRING - | typeof INTEGER - | typeof DOUBLE - | UnparsedObject; -export const AUTO = "auto"; -export const STRING = "string"; -export const INTEGER = "integer"; -export const DOUBLE = "double"; +export type TargetFormatType = typeof AUTO| typeof STRING| typeof INTEGER| typeof DOUBLE | UnparsedObject; +export const AUTO = 'auto'; +export const STRING = 'string'; +export const INTEGER = 'integer'; +export const DOUBLE = 'double'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TimeseriesBackground.ts b/packages/datadog-api-client-v1/models/TimeseriesBackground.ts index 8ba2b6280085..bd95163fd393 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesBackground.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesBackground.ts @@ -6,19 +6,24 @@ import { TimeseriesBackgroundType } from "./TimeseriesBackgroundType"; import { WidgetAxis } from "./WidgetAxis"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Set a timeseries on the widget background. - */ +*/ export class TimeseriesBackground { /** * Timeseries is made using an area or bars. - */ + */ "type": TimeseriesBackgroundType; /** * Axis controls for the widget. - */ + */ "yaxis"?: WidgetAxis; /** @@ -37,27 +42,53 @@ export class TimeseriesBackground { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "TimeseriesBackgroundType", - required: true, + "type": { + "baseName": "type", + "type": "TimeseriesBackgroundType", + "required": true, }, - yaxis: { - baseName: "yaxis", - type: "WidgetAxis", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "yaxis": { + "baseName": "yaxis", + "type": "WidgetAxis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesBackground.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TimeseriesBackgroundType.ts b/packages/datadog-api-client-v1/models/TimeseriesBackgroundType.ts index 0ebe631f58bf..d175a487c42f 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesBackgroundType.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesBackgroundType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Timeseries is made using an area or bars. - */ +*/ -export type TimeseriesBackgroundType = - | typeof BARS - | typeof AREA - | UnparsedObject; -export const BARS = "bars"; -export const AREA = "area"; +export type TimeseriesBackgroundType = typeof BARS| typeof AREA | UnparsedObject; +export const BARS = 'bars'; +export const AREA = 'area'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinition.ts b/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinition.ts index efc408e77ab3..af0b2948dfb5 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinition.ts @@ -14,71 +14,76 @@ import { WidgetMarker } from "./WidgetMarker"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. - */ +*/ export class TimeseriesWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * List of widget events. - */ + */ "events"?: Array; /** * Columns displayed in the legend. - */ + */ "legendColumns"?: Array; /** * Layout of the legend. - */ + */ "legendLayout"?: TimeseriesWidgetLegendLayout; /** * Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". - */ + */ "legendSize"?: string; /** * List of markers. - */ + */ "markers"?: Array; /** * List of timeseries widget requests. - */ + */ "requests": Array; /** * Axis controls for the widget. - */ + */ "rightYaxis"?: WidgetAxis; /** * (screenboard only) Show the legend for this widget. - */ + */ "showLegend"?: boolean; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the timeseries widget. - */ + */ "type": TimeseriesWidgetDefinitionType; /** * Axis controls for the widget. - */ + */ "yaxis"?: WidgetAxis; /** @@ -97,80 +102,106 @@ export class TimeseriesWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", - }, - events: { - baseName: "events", - type: "Array", - }, - legendColumns: { - baseName: "legend_columns", - type: "Array", - }, - legendLayout: { - baseName: "legend_layout", - type: "TimeseriesWidgetLegendLayout", - }, - legendSize: { - baseName: "legend_size", - type: "string", - }, - markers: { - baseName: "markers", - type: "Array", - }, - requests: { - baseName: "requests", - type: "Array", - required: true, - }, - rightYaxis: { - baseName: "right_yaxis", - type: "WidgetAxis", - }, - showLegend: { - baseName: "show_legend", - type: "boolean", - }, - time: { - baseName: "time", - type: "WidgetTime", - }, - title: { - baseName: "title", - type: "string", - }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", - }, - titleSize: { - baseName: "title_size", - type: "string", - }, - type: { - baseName: "type", - type: "TimeseriesWidgetDefinitionType", - required: true, - }, - yaxis: { - baseName: "yaxis", - type: "WidgetAxis", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "customLinks": { + "baseName": "custom_links", + "type": "Array", + }, + "events": { + "baseName": "events", + "type": "Array", + }, + "legendColumns": { + "baseName": "legend_columns", + "type": "Array", + }, + "legendLayout": { + "baseName": "legend_layout", + "type": "TimeseriesWidgetLegendLayout", + }, + "legendSize": { + "baseName": "legend_size", + "type": "string", + }, + "markers": { + "baseName": "markers", + "type": "Array", + }, + "requests": { + "baseName": "requests", + "type": "Array", + "required": true, + }, + "rightYaxis": { + "baseName": "right_yaxis", + "type": "WidgetAxis", + }, + "showLegend": { + "baseName": "show_legend", + "type": "boolean", + }, + "time": { + "baseName": "time", + "type": "WidgetTime", + }, + "title": { + "baseName": "title", + "type": "string", + }, + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", + }, + "titleSize": { + "baseName": "title_size", + "type": "string", + }, + "type": { + "baseName": "type", + "type": "TimeseriesWidgetDefinitionType", + "required": true, + }, + "yaxis": { + "baseName": "yaxis", + "type": "WidgetAxis", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinitionType.ts index 806edad16d94..5730511744d4 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the timeseries widget. - */ +*/ export type TimeseriesWidgetDefinitionType = typeof TIMESERIES | UnparsedObject; -export const TIMESERIES = "timeseries"; +export const TIMESERIES = 'timeseries'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TimeseriesWidgetExpressionAlias.ts b/packages/datadog-api-client-v1/models/TimeseriesWidgetExpressionAlias.ts index ebe53e25fbdc..bd63194480a9 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesWidgetExpressionAlias.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesWidgetExpressionAlias.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Define an expression alias. - */ +*/ export class TimeseriesWidgetExpressionAlias { /** * Expression alias. - */ + */ "aliasName"?: string; /** * Expression name. - */ + */ "expression": string; /** @@ -35,27 +40,53 @@ export class TimeseriesWidgetExpressionAlias { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aliasName: { - baseName: "alias_name", - type: "string", + "aliasName": { + "baseName": "alias_name", + "type": "string", }, - expression: { - baseName: "expression", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "expression": { + "baseName": "expression", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesWidgetExpressionAlias.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendColumn.ts b/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendColumn.ts index cda0f4dac21f..690d7bf7bd27 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendColumn.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendColumn.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Legend column. - */ +*/ -export type TimeseriesWidgetLegendColumn = - | typeof VALUE - | typeof AVG - | typeof SUM - | typeof MIN - | typeof MAX - | UnparsedObject; -export const VALUE = "value"; -export const AVG = "avg"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; +export type TimeseriesWidgetLegendColumn = typeof VALUE| typeof AVG| typeof SUM| typeof MIN| typeof MAX | UnparsedObject; +export const VALUE = 'value'; +export const AVG = 'avg'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendLayout.ts b/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendLayout.ts index 192e63867b34..0ef7f23aa994 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendLayout.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesWidgetLegendLayout.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Layout of the legend. - */ +*/ -export type TimeseriesWidgetLegendLayout = - | typeof AUTO - | typeof HORIZONTAL - | typeof VERTICAL - | UnparsedObject; -export const AUTO = "auto"; -export const HORIZONTAL = "horizontal"; -export const VERTICAL = "vertical"; +export type TimeseriesWidgetLegendLayout = typeof AUTO| typeof HORIZONTAL| typeof VERTICAL | UnparsedObject; +export const AUTO = 'auto'; +export const HORIZONTAL = 'horizontal'; +export const VERTICAL = 'vertical'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TimeseriesWidgetRequest.ts b/packages/datadog-api-client-v1/models/TimeseriesWidgetRequest.ts index cdfef103cf24..0c60b6b9e24a 100644 --- a/packages/datadog-api-client-v1/models/TimeseriesWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/TimeseriesWidgetRequest.ts @@ -12,79 +12,84 @@ import { WidgetDisplayType } from "./WidgetDisplayType"; import { WidgetFormula } from "./WidgetFormula"; import { WidgetRequestStyle } from "./WidgetRequestStyle"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated timeseries widget. - */ +*/ export class TimeseriesWidgetRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "auditQuery"?: LogQueryDefinition; /** * Type of display to use for the request. - */ + */ "displayType"?: WidgetDisplayType; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * Used to define expression aliases. - */ + */ "metadata"?: Array; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * Whether or not to display a second y-axis on the right. - */ + */ "onRightYaxis"?: boolean; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Widget query. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * Define request widget style. - */ + */ "style"?: WidgetRequestStyle; /** @@ -103,86 +108,112 @@ export class TimeseriesWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", - }, - auditQuery: { - baseName: "audit_query", - type: "LogQueryDefinition", - }, - displayType: { - baseName: "display_type", - type: "WidgetDisplayType", - }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", - }, - formulas: { - baseName: "formulas", - type: "Array", - }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", - }, - metadata: { - baseName: "metadata", - type: "Array", - }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", - }, - onRightYaxis: { - baseName: "on_right_yaxis", - type: "boolean", - }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", - }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", - }, - q: { - baseName: "q", - type: "string", - }, - queries: { - baseName: "queries", - type: "Array", - }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", - }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", - }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", - }, - style: { - baseName: "style", - type: "WidgetRequestStyle", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", + }, + "auditQuery": { + "baseName": "audit_query", + "type": "LogQueryDefinition", + }, + "displayType": { + "baseName": "display_type", + "type": "WidgetDisplayType", + }, + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", + }, + "formulas": { + "baseName": "formulas", + "type": "Array", + }, + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", + }, + "metadata": { + "baseName": "metadata", + "type": "Array", + }, + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", + }, + "onRightYaxis": { + "baseName": "on_right_yaxis", + "type": "boolean", + }, + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", + }, + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", + }, + "q": { + "baseName": "q", + "type": "string", + }, + "queries": { + "baseName": "queries", + "type": "Array", + }, + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", + }, + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", + }, + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", + }, + "style": { + "baseName": "style", + "type": "WidgetRequestStyle", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetDefinition.ts b/packages/datadog-api-client-v1/models/ToplistWidgetDefinition.ts index 1dc2bd37646d..1cb326d8e02d 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetDefinition.ts @@ -10,43 +10,48 @@ import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. - */ +*/ export class ToplistWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * List of top list widget requests. - */ + */ "requests": Array; /** * Style customization for a top list widget. - */ + */ "style"?: ToplistWidgetStyle; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the top list widget. - */ + */ "type": ToplistWidgetDefinitionType; /** @@ -65,52 +70,78 @@ export class ToplistWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - requests: { - baseName: "requests", - type: "Array", - required: true, + "requests": { + "baseName": "requests", + "type": "Array", + "required": true, }, - style: { - baseName: "style", - type: "ToplistWidgetStyle", + "style": { + "baseName": "style", + "type": "ToplistWidgetStyle", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleSize": { + "baseName": "title_size", + "type": "string", }, - type: { - baseName: "type", - type: "ToplistWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ToplistWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ToplistWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/ToplistWidgetDefinitionType.ts index feb350ab8930..25579979686c 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the top list widget. - */ +*/ export type ToplistWidgetDefinitionType = typeof TOPLIST | UnparsedObject; -export const TOPLIST = "toplist"; +export const TOPLIST = 'toplist'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetDisplay.ts b/packages/datadog-api-client-v1/models/ToplistWidgetDisplay.ts index d08c0d93b6da..d730892af882 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetDisplay.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetDisplay.ts @@ -6,13 +6,15 @@ import { ToplistWidgetFlat } from "./ToplistWidgetFlat"; import { ToplistWidgetStacked } from "./ToplistWidgetStacked"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Top list widget display options. - */ +*/ -export type ToplistWidgetDisplay = - | ToplistWidgetStacked - | ToplistWidgetFlat - | UnparsedObject; +export type ToplistWidgetDisplay = ToplistWidgetStacked | ToplistWidgetFlat | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetFlat.ts b/packages/datadog-api-client-v1/models/ToplistWidgetFlat.ts index 280199b3efd7..ed5a9170c8e8 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetFlat.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetFlat.ts @@ -5,15 +5,20 @@ */ import { ToplistWidgetFlatType } from "./ToplistWidgetFlatType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Top list widget flat display. - */ +*/ export class ToplistWidgetFlat { /** * Top list widget flat display type. - */ + */ "type": ToplistWidgetFlatType; /** @@ -32,23 +37,49 @@ export class ToplistWidgetFlat { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "ToplistWidgetFlatType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ToplistWidgetFlatType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ToplistWidgetFlat.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetFlatType.ts b/packages/datadog-api-client-v1/models/ToplistWidgetFlatType.ts index 929a3fc5d940..0a121cc6b3e8 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetFlatType.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetFlatType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Top list widget flat display type. - */ +*/ export type ToplistWidgetFlatType = typeof FLAT | UnparsedObject; -export const FLAT = "flat"; +export const FLAT = 'flat'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetLegend.ts b/packages/datadog-api-client-v1/models/ToplistWidgetLegend.ts index 565149fbeee5..acbf715f94e7 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetLegend.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetLegend.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Top list widget stacked legend behavior. - */ +*/ -export type ToplistWidgetLegend = - | typeof AUTOMATIC - | typeof INLINE - | typeof NONE - | UnparsedObject; -export const AUTOMATIC = "automatic"; -export const INLINE = "inline"; -export const NONE = "none"; +export type ToplistWidgetLegend = typeof AUTOMATIC| typeof INLINE| typeof NONE | UnparsedObject; +export const AUTOMATIC = 'automatic'; +export const INLINE = 'inline'; +export const NONE = 'none'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetRequest.ts b/packages/datadog-api-client-v1/models/ToplistWidgetRequest.ts index 8537ae265b89..f6bd7dfb095c 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetRequest.ts @@ -12,75 +12,80 @@ import { WidgetFormula } from "./WidgetFormula"; import { WidgetRequestStyle } from "./WidgetRequestStyle"; import { WidgetSortBy } from "./WidgetSortBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Updated top list widget. - */ +*/ export class ToplistWidgetRequest { /** * The log query. - */ + */ "apmQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "auditQuery"?: LogQueryDefinition; /** * List of conditional formats. - */ + */ "conditionalFormats"?: Array; /** * The log query. - */ + */ "eventQuery"?: LogQueryDefinition; /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The log query. - */ + */ "logQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "networkQuery"?: LogQueryDefinition; /** * The process query to use in the widget. - */ + */ "processQuery"?: ProcessQueryDefinition; /** * The log query. - */ + */ "profileMetricsQuery"?: LogQueryDefinition; /** * Widget query. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** * The log query. - */ + */ "rumQuery"?: LogQueryDefinition; /** * The log query. - */ + */ "securityQuery"?: LogQueryDefinition; /** * The controls for sorting the widget. - */ + */ "sort"?: WidgetSortBy; /** * Define request widget style. - */ + */ "style"?: WidgetRequestStyle; /** @@ -99,82 +104,108 @@ export class ToplistWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmQuery: { - baseName: "apm_query", - type: "LogQueryDefinition", - }, - auditQuery: { - baseName: "audit_query", - type: "LogQueryDefinition", - }, - conditionalFormats: { - baseName: "conditional_formats", - type: "Array", - }, - eventQuery: { - baseName: "event_query", - type: "LogQueryDefinition", - }, - formulas: { - baseName: "formulas", - type: "Array", - }, - logQuery: { - baseName: "log_query", - type: "LogQueryDefinition", - }, - networkQuery: { - baseName: "network_query", - type: "LogQueryDefinition", - }, - processQuery: { - baseName: "process_query", - type: "ProcessQueryDefinition", - }, - profileMetricsQuery: { - baseName: "profile_metrics_query", - type: "LogQueryDefinition", - }, - q: { - baseName: "q", - type: "string", - }, - queries: { - baseName: "queries", - type: "Array", - }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", - }, - rumQuery: { - baseName: "rum_query", - type: "LogQueryDefinition", - }, - securityQuery: { - baseName: "security_query", - type: "LogQueryDefinition", - }, - sort: { - baseName: "sort", - type: "WidgetSortBy", - }, - style: { - baseName: "style", - type: "WidgetRequestStyle", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "apmQuery": { + "baseName": "apm_query", + "type": "LogQueryDefinition", + }, + "auditQuery": { + "baseName": "audit_query", + "type": "LogQueryDefinition", + }, + "conditionalFormats": { + "baseName": "conditional_formats", + "type": "Array", + }, + "eventQuery": { + "baseName": "event_query", + "type": "LogQueryDefinition", + }, + "formulas": { + "baseName": "formulas", + "type": "Array", + }, + "logQuery": { + "baseName": "log_query", + "type": "LogQueryDefinition", + }, + "networkQuery": { + "baseName": "network_query", + "type": "LogQueryDefinition", + }, + "processQuery": { + "baseName": "process_query", + "type": "ProcessQueryDefinition", + }, + "profileMetricsQuery": { + "baseName": "profile_metrics_query", + "type": "LogQueryDefinition", + }, + "q": { + "baseName": "q", + "type": "string", + }, + "queries": { + "baseName": "queries", + "type": "Array", + }, + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", + }, + "rumQuery": { + "baseName": "rum_query", + "type": "LogQueryDefinition", + }, + "securityQuery": { + "baseName": "security_query", + "type": "LogQueryDefinition", + }, + "sort": { + "baseName": "sort", + "type": "WidgetSortBy", + }, + "style": { + "baseName": "style", + "type": "WidgetRequestStyle", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ToplistWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetScaling.ts b/packages/datadog-api-client-v1/models/ToplistWidgetScaling.ts index ab49d583a953..652dee6dafc0 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetScaling.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetScaling.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Top list widget scaling definition. - */ +*/ -export type ToplistWidgetScaling = - | typeof ABSOLUTE - | typeof RELATIVE - | UnparsedObject; -export const ABSOLUTE = "absolute"; -export const RELATIVE = "relative"; +export type ToplistWidgetScaling = typeof ABSOLUTE| typeof RELATIVE | UnparsedObject; +export const ABSOLUTE = 'absolute'; +export const RELATIVE = 'relative'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetStacked.ts b/packages/datadog-api-client-v1/models/ToplistWidgetStacked.ts index 45e2e0858c6b..1cddbb0d7034 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetStacked.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetStacked.ts @@ -6,19 +6,24 @@ import { ToplistWidgetLegend } from "./ToplistWidgetLegend"; import { ToplistWidgetStackedType } from "./ToplistWidgetStackedType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Top list widget stacked display options. - */ +*/ export class ToplistWidgetStacked { /** * Top list widget stacked legend behavior. - */ + */ "legend"?: ToplistWidgetLegend; /** * Top list widget stacked display type. - */ + */ "type": ToplistWidgetStackedType; /** @@ -37,27 +42,53 @@ export class ToplistWidgetStacked { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - legend: { - baseName: "legend", - type: "ToplistWidgetLegend", + "legend": { + "baseName": "legend", + "type": "ToplistWidgetLegend", }, - type: { - baseName: "type", - type: "ToplistWidgetStackedType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ToplistWidgetStackedType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ToplistWidgetStacked.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetStackedType.ts b/packages/datadog-api-client-v1/models/ToplistWidgetStackedType.ts index e9be8b77b787..5a59e661c375 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetStackedType.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetStackedType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Top list widget stacked display type. - */ +*/ export type ToplistWidgetStackedType = typeof STACKED | UnparsedObject; -export const STACKED = "stacked"; +export const STACKED = 'stacked'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/ToplistWidgetStyle.ts b/packages/datadog-api-client-v1/models/ToplistWidgetStyle.ts index a4cd6bb87e28..23fc6e2e2baf 100644 --- a/packages/datadog-api-client-v1/models/ToplistWidgetStyle.ts +++ b/packages/datadog-api-client-v1/models/ToplistWidgetStyle.ts @@ -6,23 +6,28 @@ import { ToplistWidgetDisplay } from "./ToplistWidgetDisplay"; import { ToplistWidgetScaling } from "./ToplistWidgetScaling"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Style customization for a top list widget. - */ +*/ export class ToplistWidgetStyle { /** * Top list widget display options. - */ + */ "display"?: ToplistWidgetDisplay; /** * Color palette to apply to the widget. - */ + */ "palette"?: string; /** * Top list widget scaling definition. - */ + */ "scaling"?: ToplistWidgetScaling; /** @@ -41,30 +46,56 @@ export class ToplistWidgetStyle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - display: { - baseName: "display", - type: "ToplistWidgetDisplay", - }, - palette: { - baseName: "palette", - type: "string", + "display": { + "baseName": "display", + "type": "ToplistWidgetDisplay", }, - scaling: { - baseName: "scaling", - type: "ToplistWidgetScaling", + "palette": { + "baseName": "palette", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scaling": { + "baseName": "scaling", + "type": "ToplistWidgetScaling", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ToplistWidgetStyle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.ts index e307de1b782b..4c6f6c53393a 100644 --- a/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.ts @@ -8,35 +8,40 @@ import { TopologyRequest } from "./TopologyRequest"; import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTextAlign } from "./WidgetTextAlign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * This widget displays a topology of nodes and edges for different data sources. It replaces the service map widget. - */ +*/ export class TopologyMapWidgetDefinition { /** * List of custom links. - */ + */ "customLinks"?: Array; /** * One or more Topology requests. - */ + */ "requests": Array; /** * Title of your widget. - */ + */ "title"?: string; /** * How to align the text on the widget. - */ + */ "titleAlign"?: WidgetTextAlign; /** * Size of the title. - */ + */ "titleSize"?: string; /** * Type of the topology map widget. - */ + */ "type": TopologyMapWidgetDefinitionType; /** @@ -55,44 +60,70 @@ export class TopologyMapWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customLinks: { - baseName: "custom_links", - type: "Array", - }, - requests: { - baseName: "requests", - type: "Array", - required: true, + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - title: { - baseName: "title", - type: "string", + "requests": { + "baseName": "requests", + "type": "Array", + "required": true, }, - titleAlign: { - baseName: "title_align", - type: "WidgetTextAlign", + "title": { + "baseName": "title", + "type": "string", }, - titleSize: { - baseName: "title_size", - type: "string", + "titleAlign": { + "baseName": "title_align", + "type": "WidgetTextAlign", }, - type: { - baseName: "type", - type: "TopologyMapWidgetDefinitionType", - required: true, + "titleSize": { + "baseName": "title_size", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TopologyMapWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TopologyMapWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.ts index 98a5deabb270..b2823059a3d2 100644 --- a/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the topology map widget. - */ +*/ -export type TopologyMapWidgetDefinitionType = - | typeof TOPOLOGY_MAP - | UnparsedObject; -export const TOPOLOGY_MAP = "topology_map"; +export type TopologyMapWidgetDefinitionType = typeof TOPOLOGY_MAP | UnparsedObject; +export const TOPOLOGY_MAP = 'topology_map'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TopologyQuery.ts b/packages/datadog-api-client-v1/models/TopologyQuery.ts index 36db892c26f5..a434115cb9e2 100644 --- a/packages/datadog-api-client-v1/models/TopologyQuery.ts +++ b/packages/datadog-api-client-v1/models/TopologyQuery.ts @@ -5,23 +5,28 @@ */ import { TopologyQueryDataSource } from "./TopologyQueryDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query to service-based topology data sources like the service map or data streams. - */ +*/ export class TopologyQuery { /** * Name of the data source - */ + */ "dataSource"?: TopologyQueryDataSource; /** * Your environment and primary tag (or * if enabled for your account). - */ + */ "filters"?: Array; /** * Name of the service - */ + */ "service"?: string; /** @@ -40,30 +45,56 @@ export class TopologyQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dataSource: { - baseName: "data_source", - type: "TopologyQueryDataSource", - }, - filters: { - baseName: "filters", - type: "Array", + "dataSource": { + "baseName": "data_source", + "type": "TopologyQueryDataSource", }, - service: { - baseName: "service", - type: "string", + "filters": { + "baseName": "filters", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TopologyQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TopologyQueryDataSource.ts b/packages/datadog-api-client-v1/models/TopologyQueryDataSource.ts index 02d133c9469d..bdad6832cc85 100644 --- a/packages/datadog-api-client-v1/models/TopologyQueryDataSource.ts +++ b/packages/datadog-api-client-v1/models/TopologyQueryDataSource.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Name of the data source - */ +*/ -export type TopologyQueryDataSource = - | typeof DATA_STREAMS - | typeof SERVICE_MAP - | UnparsedObject; -export const DATA_STREAMS = "data_streams"; -export const SERVICE_MAP = "service_map"; +export type TopologyQueryDataSource = typeof DATA_STREAMS| typeof SERVICE_MAP | UnparsedObject; +export const DATA_STREAMS = 'data_streams'; +export const SERVICE_MAP = 'service_map'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TopologyRequest.ts b/packages/datadog-api-client-v1/models/TopologyRequest.ts index 4da2a2926e1f..603c1a7be548 100644 --- a/packages/datadog-api-client-v1/models/TopologyRequest.ts +++ b/packages/datadog-api-client-v1/models/TopologyRequest.ts @@ -6,19 +6,24 @@ import { TopologyQuery } from "./TopologyQuery"; import { TopologyRequestType } from "./TopologyRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request that will return nodes and edges to be used by topology map. - */ +*/ export class TopologyRequest { /** * Query to service-based topology data sources like the service map or data streams. - */ + */ "query"?: TopologyQuery; /** * Widget request type. - */ + */ "requestType"?: TopologyRequestType; /** @@ -37,26 +42,52 @@ export class TopologyRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "TopologyQuery", + "query": { + "baseName": "query", + "type": "TopologyQuery", }, - requestType: { - baseName: "request_type", - type: "TopologyRequestType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "requestType": { + "baseName": "request_type", + "type": "TopologyRequestType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TopologyRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TopologyRequestType.ts b/packages/datadog-api-client-v1/models/TopologyRequestType.ts index 8342de714e5e..2759dda32dbf 100644 --- a/packages/datadog-api-client-v1/models/TopologyRequestType.ts +++ b/packages/datadog-api-client-v1/models/TopologyRequestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget request type. - */ +*/ export type TopologyRequestType = typeof TOPOLOGY | UnparsedObject; -export const TOPOLOGY = "topology"; +export const TOPOLOGY = 'topology'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TreeMapColorBy.ts b/packages/datadog-api-client-v1/models/TreeMapColorBy.ts index 1aec728ac842..65dcf3088012 100644 --- a/packages/datadog-api-client-v1/models/TreeMapColorBy.ts +++ b/packages/datadog-api-client-v1/models/TreeMapColorBy.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * (deprecated) The attribute formerly used to determine color in the widget. - */ +*/ export type TreeMapColorBy = typeof USER | UnparsedObject; -export const USER = "user"; +export const USER = 'user'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TreeMapGroupBy.ts b/packages/datadog-api-client-v1/models/TreeMapGroupBy.ts index 6625ae04abae..5c6d3532c60a 100644 --- a/packages/datadog-api-client-v1/models/TreeMapGroupBy.ts +++ b/packages/datadog-api-client-v1/models/TreeMapGroupBy.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * (deprecated) The attribute formerly used to group elements in the widget. - */ +*/ -export type TreeMapGroupBy = - | typeof USER - | typeof FAMILY - | typeof PROCESS - | UnparsedObject; -export const USER = "user"; -export const FAMILY = "family"; -export const PROCESS = "process"; +export type TreeMapGroupBy = typeof USER| typeof FAMILY| typeof PROCESS | UnparsedObject; +export const USER = 'user'; +export const FAMILY = 'family'; +export const PROCESS = 'process'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TreeMapSizeBy.ts b/packages/datadog-api-client-v1/models/TreeMapSizeBy.ts index 53e4a2753f34..ec7de11eef97 100644 --- a/packages/datadog-api-client-v1/models/TreeMapSizeBy.ts +++ b/packages/datadog-api-client-v1/models/TreeMapSizeBy.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * (deprecated) The attribute formerly used to determine size in the widget. - */ +*/ -export type TreeMapSizeBy = typeof PCT_CPU | typeof PCT_MEM | UnparsedObject; -export const PCT_CPU = "pct_cpu"; -export const PCT_MEM = "pct_mem"; +export type TreeMapSizeBy = typeof PCT_CPU| typeof PCT_MEM | UnparsedObject; +export const PCT_CPU = 'pct_cpu'; +export const PCT_MEM = 'pct_mem'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.ts index 5220184a4285..1cb09f9571f0 100644 --- a/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.ts @@ -11,43 +11,48 @@ import { TreeMapWidgetRequest } from "./TreeMapWidgetRequest"; import { WidgetCustomLink } from "./WidgetCustomLink"; import { WidgetTime } from "./WidgetTime"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The treemap visualization enables you to display hierarchical and nested data. It is well suited for queries that describe part-whole relationships, such as resource usage by availability zone, data center, or team. - */ +*/ export class TreeMapWidgetDefinition { /** * (deprecated) The attribute formerly used to determine color in the widget. - */ + */ "colorBy"?: TreeMapColorBy; /** * List of custom links. - */ + */ "customLinks"?: Array; /** * (deprecated) The attribute formerly used to group elements in the widget. - */ + */ "groupBy"?: TreeMapGroupBy; /** * List of treemap widget requests. - */ + */ "requests": [TreeMapWidgetRequest]; /** * (deprecated) The attribute formerly used to determine size in the widget. - */ + */ "sizeBy"?: TreeMapSizeBy; /** * Time setting for the widget. - */ + */ "time"?: WidgetTime; /** * Title of your widget. - */ + */ "title"?: string; /** * Type of the treemap widget. - */ + */ "type": TreeMapWidgetDefinitionType; /** @@ -66,52 +71,78 @@ export class TreeMapWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - colorBy: { - baseName: "color_by", - type: "TreeMapColorBy", + "colorBy": { + "baseName": "color_by", + "type": "TreeMapColorBy", }, - customLinks: { - baseName: "custom_links", - type: "Array", + "customLinks": { + "baseName": "custom_links", + "type": "Array", }, - groupBy: { - baseName: "group_by", - type: "TreeMapGroupBy", + "groupBy": { + "baseName": "group_by", + "type": "TreeMapGroupBy", }, - requests: { - baseName: "requests", - type: "[TreeMapWidgetRequest]", - required: true, + "requests": { + "baseName": "requests", + "type": "[TreeMapWidgetRequest]", + "required": true, }, - sizeBy: { - baseName: "size_by", - type: "TreeMapSizeBy", + "sizeBy": { + "baseName": "size_by", + "type": "TreeMapSizeBy", }, - time: { - baseName: "time", - type: "WidgetTime", + "time": { + "baseName": "time", + "type": "WidgetTime", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - type: { - baseName: "type", - type: "TreeMapWidgetDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TreeMapWidgetDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TreeMapWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/TreeMapWidgetDefinitionType.ts b/packages/datadog-api-client-v1/models/TreeMapWidgetDefinitionType.ts index 45679b1a71ea..976827828f8b 100644 --- a/packages/datadog-api-client-v1/models/TreeMapWidgetDefinitionType.ts +++ b/packages/datadog-api-client-v1/models/TreeMapWidgetDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the treemap widget. - */ +*/ export type TreeMapWidgetDefinitionType = typeof TREEMAP | UnparsedObject; -export const TREEMAP = "treemap"; +export const TREEMAP = 'treemap'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/TreeMapWidgetRequest.ts b/packages/datadog-api-client-v1/models/TreeMapWidgetRequest.ts index 9437feb669f7..ee320835d845 100644 --- a/packages/datadog-api-client-v1/models/TreeMapWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/TreeMapWidgetRequest.ts @@ -7,27 +7,32 @@ import { FormulaAndFunctionQueryDefinition } from "./FormulaAndFunctionQueryDefi import { FormulaAndFunctionResponseFormat } from "./FormulaAndFunctionResponseFormat"; import { WidgetFormula } from "./WidgetFormula"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An updated treemap widget. - */ +*/ export class TreeMapWidgetRequest { /** * List of formulas that operate on queries. - */ + */ "formulas"?: Array; /** * The widget metrics query. - */ + */ "q"?: string; /** * List of queries that can be returned directly or used in formulas. - */ + */ "queries"?: Array; /** * Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. - */ + */ "responseFormat"?: FormulaAndFunctionResponseFormat; /** @@ -46,34 +51,60 @@ export class TreeMapWidgetRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formulas: { - baseName: "formulas", - type: "Array", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - q: { - baseName: "q", - type: "string", + "q": { + "baseName": "q", + "type": "string", }, - queries: { - baseName: "queries", - type: "Array", + "queries": { + "baseName": "queries", + "type": "Array", }, - responseFormat: { - baseName: "response_format", - type: "FormulaAndFunctionResponseFormat", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "responseFormat": { + "baseName": "response_format", + "type": "FormulaAndFunctionResponseFormat", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TreeMapWidgetRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageAnalyzedLogsHour.ts b/packages/datadog-api-client-v1/models/UsageAnalyzedLogsHour.ts index 1b840064255b..e150bd988dce 100644 --- a/packages/datadog-api-client-v1/models/UsageAnalyzedLogsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageAnalyzedLogsHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The number of analyzed logs for each hour for a given organization. - */ +*/ export class UsageAnalyzedLogsHour { /** * Contains the number of analyzed logs. - */ + */ "analyzedLogs"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageAnalyzedLogsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - analyzedLogs: { - baseName: "analyzed_logs", - type: "number", - format: "int64", + "analyzedLogs": { + "baseName": "analyzed_logs", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageAnalyzedLogsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageAnalyzedLogsResponse.ts b/packages/datadog-api-client-v1/models/UsageAnalyzedLogsResponse.ts index 697936956e6d..fea29fec30a7 100644 --- a/packages/datadog-api-client-v1/models/UsageAnalyzedLogsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageAnalyzedLogsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageAnalyzedLogsHour } from "./UsageAnalyzedLogsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A response containing the number of analyzed logs for each hour for a given organization. - */ +*/ export class UsageAnalyzedLogsResponse { /** * Get hourly usage for analyzed logs. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageAnalyzedLogsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageAnalyzedLogsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageAttributionAggregatesBody.ts b/packages/datadog-api-client-v1/models/UsageAttributionAggregatesBody.ts index bbe51c5c3910..0542489bf545 100644 --- a/packages/datadog-api-client-v1/models/UsageAttributionAggregatesBody.ts +++ b/packages/datadog-api-client-v1/models/UsageAttributionAggregatesBody.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing the aggregates. - */ +*/ export class UsageAttributionAggregatesBody { /** * The aggregate type. - */ + */ "aggType"?: string; /** * The field. - */ + */ "field"?: string; /** * The value for a given field. - */ + */ "value"?: number; /** @@ -39,31 +44,57 @@ export class UsageAttributionAggregatesBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggType: { - baseName: "agg_type", - type: "string", - }, - field: { - baseName: "field", - type: "string", + "aggType": { + "baseName": "agg_type", + "type": "string", }, - value: { - baseName: "value", - type: "number", - format: "double", + "field": { + "baseName": "field", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageAttributionAggregatesBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageAuditLogsHour.ts b/packages/datadog-api-client-v1/models/UsageAuditLogsHour.ts index 32ce66fc6fb0..7f5fdce24167 100644 --- a/packages/datadog-api-client-v1/models/UsageAuditLogsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageAuditLogsHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Audit logs usage for a given organization for a given hour. - */ +*/ export class UsageAuditLogsHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The total number of audit logs lines indexed during a given hour. - */ + */ "linesIndexed"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageAuditLogsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - linesIndexed: { - baseName: "lines_indexed", - type: "number", - format: "int64", + "linesIndexed": { + "baseName": "lines_indexed", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageAuditLogsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageAuditLogsResponse.ts b/packages/datadog-api-client-v1/models/UsageAuditLogsResponse.ts index 8e86a18d0896..482b46aef7b6 100644 --- a/packages/datadog-api-client-v1/models/UsageAuditLogsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageAuditLogsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageAuditLogsHour } from "./UsageAuditLogsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the audit logs usage for each hour for a given organization. - */ +*/ export class UsageAuditLogsResponse { /** * Get hourly usage for audit logs. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageAuditLogsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageAuditLogsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageBillableSummaryBody.ts b/packages/datadog-api-client-v1/models/UsageBillableSummaryBody.ts index 153236b3e4f4..61af1ce2f945 100644 --- a/packages/datadog-api-client-v1/models/UsageBillableSummaryBody.ts +++ b/packages/datadog-api-client-v1/models/UsageBillableSummaryBody.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with properties for each aggregated usage type. - */ +*/ export class UsageBillableSummaryBody { /** * The total account usage. - */ + */ "accountBillableUsage"?: number; /** * Elapsed usage hours for some billable product. - */ + */ "elapsedUsageHours"?: number; /** * The first billable hour for the org. - */ + */ "firstBillableUsageHour"?: Date; /** * The last billable hour for the org. - */ + */ "lastBillableUsageHour"?: Date; /** * The number of units used within the billable timeframe. - */ + */ "orgBillableUsage"?: number; /** * The percentage of account usage the org represents. - */ + */ "percentageInAccount"?: number; /** * Units pertaining to the usage. - */ + */ "usageUnit"?: string; /** @@ -55,52 +60,78 @@ export class UsageBillableSummaryBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountBillableUsage: { - baseName: "account_billable_usage", - type: "number", - format: "int64", - }, - elapsedUsageHours: { - baseName: "elapsed_usage_hours", - type: "number", - format: "int64", + "accountBillableUsage": { + "baseName": "account_billable_usage", + "type": "number", + "format": "int64", }, - firstBillableUsageHour: { - baseName: "first_billable_usage_hour", - type: "Date", - format: "date-time", + "elapsedUsageHours": { + "baseName": "elapsed_usage_hours", + "type": "number", + "format": "int64", }, - lastBillableUsageHour: { - baseName: "last_billable_usage_hour", - type: "Date", - format: "date-time", + "firstBillableUsageHour": { + "baseName": "first_billable_usage_hour", + "type": "Date", + "format": "date-time", }, - orgBillableUsage: { - baseName: "org_billable_usage", - type: "number", - format: "int64", + "lastBillableUsageHour": { + "baseName": "last_billable_usage_hour", + "type": "Date", + "format": "date-time", }, - percentageInAccount: { - baseName: "percentage_in_account", - type: "number", - format: "double", + "orgBillableUsage": { + "baseName": "org_billable_usage", + "type": "number", + "format": "int64", }, - usageUnit: { - baseName: "usage_unit", - type: "string", + "percentageInAccount": { + "baseName": "percentage_in_account", + "type": "number", + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usageUnit": { + "baseName": "usage_unit", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageBillableSummaryBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.ts b/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.ts index b7fef15c1f9e..e8a4ffb68d30 100644 --- a/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.ts +++ b/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.ts @@ -5,55 +5,60 @@ */ import { UsageBillableSummaryKeys } from "./UsageBillableSummaryKeys"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with monthly summary of data billed by Datadog. - */ +*/ export class UsageBillableSummaryHour { /** * The account name. - */ + */ "accountName"?: string; /** * The account public ID. - */ + */ "accountPublicId"?: string; /** * The billing plan. - */ + */ "billingPlan"?: string; /** * Shows the last date of usage. - */ + */ "endDate"?: Date; /** * The number of organizations. - */ + */ "numOrgs"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * Shows usage aggregation for a billing period. - */ + */ "ratioInMonth"?: number; /** * The region of the organization. - */ + */ "region"?: string; /** * Shows the first date of usage. - */ + */ "startDate"?: Date; /** * Response with aggregated usage types. - */ + */ "usage"?: UsageBillableSummaryKeys; /** @@ -72,66 +77,92 @@ export class UsageBillableSummaryHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountName: { - baseName: "account_name", - type: "string", - }, - accountPublicId: { - baseName: "account_public_id", - type: "string", + "accountName": { + "baseName": "account_name", + "type": "string", }, - billingPlan: { - baseName: "billing_plan", - type: "string", + "accountPublicId": { + "baseName": "account_public_id", + "type": "string", }, - endDate: { - baseName: "end_date", - type: "Date", - format: "date-time", + "billingPlan": { + "baseName": "billing_plan", + "type": "string", }, - numOrgs: { - baseName: "num_orgs", - type: "number", - format: "int64", + "endDate": { + "baseName": "end_date", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "numOrgs": { + "baseName": "num_orgs", + "type": "number", + "format": "int64", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - ratioInMonth: { - baseName: "ratio_in_month", - type: "number", - format: "double", + "publicId": { + "baseName": "public_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "ratioInMonth": { + "baseName": "ratio_in_month", + "type": "number", + "format": "double", }, - startDate: { - baseName: "start_date", - type: "Date", - format: "date-time", + "region": { + "baseName": "region", + "type": "string", }, - usage: { - baseName: "usage", - type: "UsageBillableSummaryKeys", + "startDate": { + "baseName": "start_date", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "UsageBillableSummaryKeys", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageBillableSummaryHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.ts b/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.ts index 1bacbbe60647..1bfbadcca152 100644 --- a/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.ts +++ b/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.ts @@ -5,367 +5,372 @@ */ import { UsageBillableSummaryBody } from "./UsageBillableSummaryBody"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with aggregated usage types. - */ +*/ export class UsageBillableSummaryKeys { /** * Response with properties for each aggregated usage type. - */ + */ "apmFargateAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "apmFargateSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "apmHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "apmHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "apmProfilerHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "apmProfilerHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "apmTraceSearchSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "applicationSecurityFargateAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "applicationSecurityHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "applicationSecurityHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ciPipelineIndexedSpansSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ciPipelineMaximum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ciPipelineSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ciTestIndexedSpansSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ciTestingMaximum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ciTestingSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cloudCostManagementAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cloudCostManagementSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cspmContainerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cspmHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cspmHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "customEventSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cwsContainerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cwsHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "cwsHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "dbmHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "dbmHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "dbmNormalizedQueriesAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "dbmNormalizedQueriesSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "fargateContainerApmAndProfilerAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "fargateContainerApmAndProfilerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "fargateContainerAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "fargateContainerProfilerAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "fargateContainerProfilerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "fargateContainerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "incidentManagementMaximum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "incidentManagementSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "infraAndApmHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "infraAndApmHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "infraContainerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "infraHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "infraHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ingestedSpansSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ingestedTimeseriesAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "ingestedTimeseriesSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "iotSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "iotTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "lambdaFunctionAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "lambdaFunctionSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsForwardingSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed15daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed180daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed1daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed30daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed360daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed3daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed45daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed60daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed7daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexed90daySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexedCustomRetentionSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIndexedSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "logsIngestedSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "networkDeviceSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "networkDeviceTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "npmFlowSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "npmHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "npmHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "observabilityPipelineSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "onlineArchiveSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "profContainerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "profHostSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "profHostTop99p"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "rumLiteSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "rumReplaySum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "rumSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "rumUnitsSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "sensitiveDataScannerSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "serverlessApmSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "serverlessInfraAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "serverlessInfraSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "serverlessInvocationSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "siemSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "standardTimeseriesAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "syntheticsApiTestsSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "syntheticsAppTestingMaximum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "syntheticsBrowserChecksSum"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "timeseriesAverage"?: UsageBillableSummaryBody; /** * Response with properties for each aggregated usage type. - */ + */ "timeseriesSum"?: UsageBillableSummaryBody; /** @@ -384,374 +389,400 @@ export class UsageBillableSummaryKeys { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmFargateAverage: { - baseName: "apm_fargate_average", - type: "UsageBillableSummaryBody", - }, - apmFargateSum: { - baseName: "apm_fargate_sum", - type: "UsageBillableSummaryBody", + "apmFargateAverage": { + "baseName": "apm_fargate_average", + "type": "UsageBillableSummaryBody", }, - apmHostSum: { - baseName: "apm_host_sum", - type: "UsageBillableSummaryBody", + "apmFargateSum": { + "baseName": "apm_fargate_sum", + "type": "UsageBillableSummaryBody", }, - apmHostTop99p: { - baseName: "apm_host_top99p", - type: "UsageBillableSummaryBody", + "apmHostSum": { + "baseName": "apm_host_sum", + "type": "UsageBillableSummaryBody", }, - apmProfilerHostSum: { - baseName: "apm_profiler_host_sum", - type: "UsageBillableSummaryBody", + "apmHostTop99p": { + "baseName": "apm_host_top99p", + "type": "UsageBillableSummaryBody", }, - apmProfilerHostTop99p: { - baseName: "apm_profiler_host_top99p", - type: "UsageBillableSummaryBody", + "apmProfilerHostSum": { + "baseName": "apm_profiler_host_sum", + "type": "UsageBillableSummaryBody", }, - apmTraceSearchSum: { - baseName: "apm_trace_search_sum", - type: "UsageBillableSummaryBody", + "apmProfilerHostTop99p": { + "baseName": "apm_profiler_host_top99p", + "type": "UsageBillableSummaryBody", }, - applicationSecurityFargateAverage: { - baseName: "application_security_fargate_average", - type: "UsageBillableSummaryBody", + "apmTraceSearchSum": { + "baseName": "apm_trace_search_sum", + "type": "UsageBillableSummaryBody", }, - applicationSecurityHostSum: { - baseName: "application_security_host_sum", - type: "UsageBillableSummaryBody", + "applicationSecurityFargateAverage": { + "baseName": "application_security_fargate_average", + "type": "UsageBillableSummaryBody", }, - applicationSecurityHostTop99p: { - baseName: "application_security_host_top99p", - type: "UsageBillableSummaryBody", + "applicationSecurityHostSum": { + "baseName": "application_security_host_sum", + "type": "UsageBillableSummaryBody", }, - ciPipelineIndexedSpansSum: { - baseName: "ci_pipeline_indexed_spans_sum", - type: "UsageBillableSummaryBody", + "applicationSecurityHostTop99p": { + "baseName": "application_security_host_top99p", + "type": "UsageBillableSummaryBody", }, - ciPipelineMaximum: { - baseName: "ci_pipeline_maximum", - type: "UsageBillableSummaryBody", + "ciPipelineIndexedSpansSum": { + "baseName": "ci_pipeline_indexed_spans_sum", + "type": "UsageBillableSummaryBody", }, - ciPipelineSum: { - baseName: "ci_pipeline_sum", - type: "UsageBillableSummaryBody", + "ciPipelineMaximum": { + "baseName": "ci_pipeline_maximum", + "type": "UsageBillableSummaryBody", }, - ciTestIndexedSpansSum: { - baseName: "ci_test_indexed_spans_sum", - type: "UsageBillableSummaryBody", + "ciPipelineSum": { + "baseName": "ci_pipeline_sum", + "type": "UsageBillableSummaryBody", }, - ciTestingMaximum: { - baseName: "ci_testing_maximum", - type: "UsageBillableSummaryBody", + "ciTestIndexedSpansSum": { + "baseName": "ci_test_indexed_spans_sum", + "type": "UsageBillableSummaryBody", }, - ciTestingSum: { - baseName: "ci_testing_sum", - type: "UsageBillableSummaryBody", + "ciTestingMaximum": { + "baseName": "ci_testing_maximum", + "type": "UsageBillableSummaryBody", }, - cloudCostManagementAverage: { - baseName: "cloud_cost_management_average", - type: "UsageBillableSummaryBody", + "ciTestingSum": { + "baseName": "ci_testing_sum", + "type": "UsageBillableSummaryBody", }, - cloudCostManagementSum: { - baseName: "cloud_cost_management_sum", - type: "UsageBillableSummaryBody", + "cloudCostManagementAverage": { + "baseName": "cloud_cost_management_average", + "type": "UsageBillableSummaryBody", }, - cspmContainerSum: { - baseName: "cspm_container_sum", - type: "UsageBillableSummaryBody", + "cloudCostManagementSum": { + "baseName": "cloud_cost_management_sum", + "type": "UsageBillableSummaryBody", }, - cspmHostSum: { - baseName: "cspm_host_sum", - type: "UsageBillableSummaryBody", + "cspmContainerSum": { + "baseName": "cspm_container_sum", + "type": "UsageBillableSummaryBody", }, - cspmHostTop99p: { - baseName: "cspm_host_top99p", - type: "UsageBillableSummaryBody", + "cspmHostSum": { + "baseName": "cspm_host_sum", + "type": "UsageBillableSummaryBody", }, - customEventSum: { - baseName: "custom_event_sum", - type: "UsageBillableSummaryBody", + "cspmHostTop99p": { + "baseName": "cspm_host_top99p", + "type": "UsageBillableSummaryBody", }, - cwsContainerSum: { - baseName: "cws_container_sum", - type: "UsageBillableSummaryBody", + "customEventSum": { + "baseName": "custom_event_sum", + "type": "UsageBillableSummaryBody", }, - cwsHostSum: { - baseName: "cws_host_sum", - type: "UsageBillableSummaryBody", + "cwsContainerSum": { + "baseName": "cws_container_sum", + "type": "UsageBillableSummaryBody", }, - cwsHostTop99p: { - baseName: "cws_host_top99p", - type: "UsageBillableSummaryBody", + "cwsHostSum": { + "baseName": "cws_host_sum", + "type": "UsageBillableSummaryBody", }, - dbmHostSum: { - baseName: "dbm_host_sum", - type: "UsageBillableSummaryBody", + "cwsHostTop99p": { + "baseName": "cws_host_top99p", + "type": "UsageBillableSummaryBody", }, - dbmHostTop99p: { - baseName: "dbm_host_top99p", - type: "UsageBillableSummaryBody", + "dbmHostSum": { + "baseName": "dbm_host_sum", + "type": "UsageBillableSummaryBody", }, - dbmNormalizedQueriesAverage: { - baseName: "dbm_normalized_queries_average", - type: "UsageBillableSummaryBody", + "dbmHostTop99p": { + "baseName": "dbm_host_top99p", + "type": "UsageBillableSummaryBody", }, - dbmNormalizedQueriesSum: { - baseName: "dbm_normalized_queries_sum", - type: "UsageBillableSummaryBody", + "dbmNormalizedQueriesAverage": { + "baseName": "dbm_normalized_queries_average", + "type": "UsageBillableSummaryBody", }, - fargateContainerApmAndProfilerAverage: { - baseName: "fargate_container_apm_and_profiler_average", - type: "UsageBillableSummaryBody", + "dbmNormalizedQueriesSum": { + "baseName": "dbm_normalized_queries_sum", + "type": "UsageBillableSummaryBody", }, - fargateContainerApmAndProfilerSum: { - baseName: "fargate_container_apm_and_profiler_sum", - type: "UsageBillableSummaryBody", + "fargateContainerApmAndProfilerAverage": { + "baseName": "fargate_container_apm_and_profiler_average", + "type": "UsageBillableSummaryBody", }, - fargateContainerAverage: { - baseName: "fargate_container_average", - type: "UsageBillableSummaryBody", + "fargateContainerApmAndProfilerSum": { + "baseName": "fargate_container_apm_and_profiler_sum", + "type": "UsageBillableSummaryBody", }, - fargateContainerProfilerAverage: { - baseName: "fargate_container_profiler_average", - type: "UsageBillableSummaryBody", + "fargateContainerAverage": { + "baseName": "fargate_container_average", + "type": "UsageBillableSummaryBody", }, - fargateContainerProfilerSum: { - baseName: "fargate_container_profiler_sum", - type: "UsageBillableSummaryBody", + "fargateContainerProfilerAverage": { + "baseName": "fargate_container_profiler_average", + "type": "UsageBillableSummaryBody", }, - fargateContainerSum: { - baseName: "fargate_container_sum", - type: "UsageBillableSummaryBody", + "fargateContainerProfilerSum": { + "baseName": "fargate_container_profiler_sum", + "type": "UsageBillableSummaryBody", }, - incidentManagementMaximum: { - baseName: "incident_management_maximum", - type: "UsageBillableSummaryBody", + "fargateContainerSum": { + "baseName": "fargate_container_sum", + "type": "UsageBillableSummaryBody", }, - incidentManagementSum: { - baseName: "incident_management_sum", - type: "UsageBillableSummaryBody", + "incidentManagementMaximum": { + "baseName": "incident_management_maximum", + "type": "UsageBillableSummaryBody", }, - infraAndApmHostSum: { - baseName: "infra_and_apm_host_sum", - type: "UsageBillableSummaryBody", + "incidentManagementSum": { + "baseName": "incident_management_sum", + "type": "UsageBillableSummaryBody", }, - infraAndApmHostTop99p: { - baseName: "infra_and_apm_host_top99p", - type: "UsageBillableSummaryBody", + "infraAndApmHostSum": { + "baseName": "infra_and_apm_host_sum", + "type": "UsageBillableSummaryBody", }, - infraContainerSum: { - baseName: "infra_container_sum", - type: "UsageBillableSummaryBody", + "infraAndApmHostTop99p": { + "baseName": "infra_and_apm_host_top99p", + "type": "UsageBillableSummaryBody", }, - infraHostSum: { - baseName: "infra_host_sum", - type: "UsageBillableSummaryBody", + "infraContainerSum": { + "baseName": "infra_container_sum", + "type": "UsageBillableSummaryBody", }, - infraHostTop99p: { - baseName: "infra_host_top99p", - type: "UsageBillableSummaryBody", + "infraHostSum": { + "baseName": "infra_host_sum", + "type": "UsageBillableSummaryBody", }, - ingestedSpansSum: { - baseName: "ingested_spans_sum", - type: "UsageBillableSummaryBody", + "infraHostTop99p": { + "baseName": "infra_host_top99p", + "type": "UsageBillableSummaryBody", }, - ingestedTimeseriesAverage: { - baseName: "ingested_timeseries_average", - type: "UsageBillableSummaryBody", + "ingestedSpansSum": { + "baseName": "ingested_spans_sum", + "type": "UsageBillableSummaryBody", }, - ingestedTimeseriesSum: { - baseName: "ingested_timeseries_sum", - type: "UsageBillableSummaryBody", + "ingestedTimeseriesAverage": { + "baseName": "ingested_timeseries_average", + "type": "UsageBillableSummaryBody", }, - iotSum: { - baseName: "iot_sum", - type: "UsageBillableSummaryBody", + "ingestedTimeseriesSum": { + "baseName": "ingested_timeseries_sum", + "type": "UsageBillableSummaryBody", }, - iotTop99p: { - baseName: "iot_top99p", - type: "UsageBillableSummaryBody", + "iotSum": { + "baseName": "iot_sum", + "type": "UsageBillableSummaryBody", }, - lambdaFunctionAverage: { - baseName: "lambda_function_average", - type: "UsageBillableSummaryBody", + "iotTop99p": { + "baseName": "iot_top99p", + "type": "UsageBillableSummaryBody", }, - lambdaFunctionSum: { - baseName: "lambda_function_sum", - type: "UsageBillableSummaryBody", + "lambdaFunctionAverage": { + "baseName": "lambda_function_average", + "type": "UsageBillableSummaryBody", }, - logsForwardingSum: { - baseName: "logs_forwarding_sum", - type: "UsageBillableSummaryBody", + "lambdaFunctionSum": { + "baseName": "lambda_function_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed15daySum: { - baseName: "logs_indexed_15day_sum", - type: "UsageBillableSummaryBody", + "logsForwardingSum": { + "baseName": "logs_forwarding_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed180daySum: { - baseName: "logs_indexed_180day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed15daySum": { + "baseName": "logs_indexed_15day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed1daySum: { - baseName: "logs_indexed_1day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed180daySum": { + "baseName": "logs_indexed_180day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed30daySum: { - baseName: "logs_indexed_30day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed1daySum": { + "baseName": "logs_indexed_1day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed360daySum: { - baseName: "logs_indexed_360day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed30daySum": { + "baseName": "logs_indexed_30day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed3daySum: { - baseName: "logs_indexed_3day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed360daySum": { + "baseName": "logs_indexed_360day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed45daySum: { - baseName: "logs_indexed_45day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed3daySum": { + "baseName": "logs_indexed_3day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed60daySum: { - baseName: "logs_indexed_60day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed45daySum": { + "baseName": "logs_indexed_45day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed7daySum: { - baseName: "logs_indexed_7day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed60daySum": { + "baseName": "logs_indexed_60day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexed90daySum: { - baseName: "logs_indexed_90day_sum", - type: "UsageBillableSummaryBody", + "logsIndexed7daySum": { + "baseName": "logs_indexed_7day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexedCustomRetentionSum: { - baseName: "logs_indexed_custom_retention_sum", - type: "UsageBillableSummaryBody", + "logsIndexed90daySum": { + "baseName": "logs_indexed_90day_sum", + "type": "UsageBillableSummaryBody", }, - logsIndexedSum: { - baseName: "logs_indexed_sum", - type: "UsageBillableSummaryBody", + "logsIndexedCustomRetentionSum": { + "baseName": "logs_indexed_custom_retention_sum", + "type": "UsageBillableSummaryBody", }, - logsIngestedSum: { - baseName: "logs_ingested_sum", - type: "UsageBillableSummaryBody", + "logsIndexedSum": { + "baseName": "logs_indexed_sum", + "type": "UsageBillableSummaryBody", }, - networkDeviceSum: { - baseName: "network_device_sum", - type: "UsageBillableSummaryBody", + "logsIngestedSum": { + "baseName": "logs_ingested_sum", + "type": "UsageBillableSummaryBody", }, - networkDeviceTop99p: { - baseName: "network_device_top99p", - type: "UsageBillableSummaryBody", + "networkDeviceSum": { + "baseName": "network_device_sum", + "type": "UsageBillableSummaryBody", }, - npmFlowSum: { - baseName: "npm_flow_sum", - type: "UsageBillableSummaryBody", + "networkDeviceTop99p": { + "baseName": "network_device_top99p", + "type": "UsageBillableSummaryBody", }, - npmHostSum: { - baseName: "npm_host_sum", - type: "UsageBillableSummaryBody", + "npmFlowSum": { + "baseName": "npm_flow_sum", + "type": "UsageBillableSummaryBody", }, - npmHostTop99p: { - baseName: "npm_host_top99p", - type: "UsageBillableSummaryBody", + "npmHostSum": { + "baseName": "npm_host_sum", + "type": "UsageBillableSummaryBody", }, - observabilityPipelineSum: { - baseName: "observability_pipeline_sum", - type: "UsageBillableSummaryBody", + "npmHostTop99p": { + "baseName": "npm_host_top99p", + "type": "UsageBillableSummaryBody", }, - onlineArchiveSum: { - baseName: "online_archive_sum", - type: "UsageBillableSummaryBody", + "observabilityPipelineSum": { + "baseName": "observability_pipeline_sum", + "type": "UsageBillableSummaryBody", }, - profContainerSum: { - baseName: "prof_container_sum", - type: "UsageBillableSummaryBody", + "onlineArchiveSum": { + "baseName": "online_archive_sum", + "type": "UsageBillableSummaryBody", }, - profHostSum: { - baseName: "prof_host_sum", - type: "UsageBillableSummaryBody", + "profContainerSum": { + "baseName": "prof_container_sum", + "type": "UsageBillableSummaryBody", }, - profHostTop99p: { - baseName: "prof_host_top99p", - type: "UsageBillableSummaryBody", + "profHostSum": { + "baseName": "prof_host_sum", + "type": "UsageBillableSummaryBody", }, - rumLiteSum: { - baseName: "rum_lite_sum", - type: "UsageBillableSummaryBody", + "profHostTop99p": { + "baseName": "prof_host_top99p", + "type": "UsageBillableSummaryBody", }, - rumReplaySum: { - baseName: "rum_replay_sum", - type: "UsageBillableSummaryBody", + "rumLiteSum": { + "baseName": "rum_lite_sum", + "type": "UsageBillableSummaryBody", }, - rumSum: { - baseName: "rum_sum", - type: "UsageBillableSummaryBody", + "rumReplaySum": { + "baseName": "rum_replay_sum", + "type": "UsageBillableSummaryBody", }, - rumUnitsSum: { - baseName: "rum_units_sum", - type: "UsageBillableSummaryBody", + "rumSum": { + "baseName": "rum_sum", + "type": "UsageBillableSummaryBody", }, - sensitiveDataScannerSum: { - baseName: "sensitive_data_scanner_sum", - type: "UsageBillableSummaryBody", + "rumUnitsSum": { + "baseName": "rum_units_sum", + "type": "UsageBillableSummaryBody", }, - serverlessApmSum: { - baseName: "serverless_apm_sum", - type: "UsageBillableSummaryBody", + "sensitiveDataScannerSum": { + "baseName": "sensitive_data_scanner_sum", + "type": "UsageBillableSummaryBody", }, - serverlessInfraAverage: { - baseName: "serverless_infra_average", - type: "UsageBillableSummaryBody", + "serverlessApmSum": { + "baseName": "serverless_apm_sum", + "type": "UsageBillableSummaryBody", }, - serverlessInfraSum: { - baseName: "serverless_infra_sum", - type: "UsageBillableSummaryBody", + "serverlessInfraAverage": { + "baseName": "serverless_infra_average", + "type": "UsageBillableSummaryBody", }, - serverlessInvocationSum: { - baseName: "serverless_invocation_sum", - type: "UsageBillableSummaryBody", + "serverlessInfraSum": { + "baseName": "serverless_infra_sum", + "type": "UsageBillableSummaryBody", }, - siemSum: { - baseName: "siem_sum", - type: "UsageBillableSummaryBody", + "serverlessInvocationSum": { + "baseName": "serverless_invocation_sum", + "type": "UsageBillableSummaryBody", }, - standardTimeseriesAverage: { - baseName: "standard_timeseries_average", - type: "UsageBillableSummaryBody", + "siemSum": { + "baseName": "siem_sum", + "type": "UsageBillableSummaryBody", }, - syntheticsApiTestsSum: { - baseName: "synthetics_api_tests_sum", - type: "UsageBillableSummaryBody", + "standardTimeseriesAverage": { + "baseName": "standard_timeseries_average", + "type": "UsageBillableSummaryBody", }, - syntheticsAppTestingMaximum: { - baseName: "synthetics_app_testing_maximum", - type: "UsageBillableSummaryBody", + "syntheticsApiTestsSum": { + "baseName": "synthetics_api_tests_sum", + "type": "UsageBillableSummaryBody", }, - syntheticsBrowserChecksSum: { - baseName: "synthetics_browser_checks_sum", - type: "UsageBillableSummaryBody", + "syntheticsAppTestingMaximum": { + "baseName": "synthetics_app_testing_maximum", + "type": "UsageBillableSummaryBody", }, - timeseriesAverage: { - baseName: "timeseries_average", - type: "UsageBillableSummaryBody", + "syntheticsBrowserChecksSum": { + "baseName": "synthetics_browser_checks_sum", + "type": "UsageBillableSummaryBody", }, - timeseriesSum: { - baseName: "timeseries_sum", - type: "UsageBillableSummaryBody", + "timeseriesAverage": { + "baseName": "timeseries_average", + "type": "UsageBillableSummaryBody", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeseriesSum": { + "baseName": "timeseries_sum", + "type": "UsageBillableSummaryBody", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageBillableSummaryKeys.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageBillableSummaryResponse.ts b/packages/datadog-api-client-v1/models/UsageBillableSummaryResponse.ts index fb6ab0f763eb..dc95381da7bc 100644 --- a/packages/datadog-api-client-v1/models/UsageBillableSummaryResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageBillableSummaryResponse.ts @@ -5,15 +5,20 @@ */ import { UsageBillableSummaryHour } from "./UsageBillableSummaryHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with monthly summary of data billed by Datadog. - */ +*/ export class UsageBillableSummaryResponse { /** * An array of objects regarding usage of billable summary. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageBillableSummaryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageBillableSummaryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.ts b/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.ts index 7373860a4782..a0e2c6be337b 100644 --- a/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.ts +++ b/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CI visibility usage in a given hour. - */ +*/ export class UsageCIVisibilityHour { /** * The number of spans for pipelines in the queried hour. - */ + */ "ciPipelineIndexedSpans"?: number; /** * The number of spans for tests in the queried hour. - */ + */ "ciTestIndexedSpans"?: number; /** * Shows the total count of all active Git committers for Intelligent Test Runner in the current month. A committer is active if they commit at least 3 times in a given month. - */ + */ "ciVisibilityItrCommitters"?: number; /** * Shows the total count of all active Git committers for Pipelines in the current month. A committer is active if they commit at least 3 times in a given month. - */ + */ "ciVisibilityPipelineCommitters"?: number; /** * The total count of all active Git committers for tests in the current month. A committer is active if they commit at least 3 times in a given month. - */ + */ "ciVisibilityTestCommitters"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -55,51 +60,77 @@ export class UsageCIVisibilityHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ciPipelineIndexedSpans: { - baseName: "ci_pipeline_indexed_spans", - type: "number", - format: "int64", - }, - ciTestIndexedSpans: { - baseName: "ci_test_indexed_spans", - type: "number", - format: "int64", + "ciPipelineIndexedSpans": { + "baseName": "ci_pipeline_indexed_spans", + "type": "number", + "format": "int64", }, - ciVisibilityItrCommitters: { - baseName: "ci_visibility_itr_committers", - type: "number", - format: "int64", + "ciTestIndexedSpans": { + "baseName": "ci_test_indexed_spans", + "type": "number", + "format": "int64", }, - ciVisibilityPipelineCommitters: { - baseName: "ci_visibility_pipeline_committers", - type: "number", - format: "int64", + "ciVisibilityItrCommitters": { + "baseName": "ci_visibility_itr_committers", + "type": "number", + "format": "int64", }, - ciVisibilityTestCommitters: { - baseName: "ci_visibility_test_committers", - type: "number", - format: "int64", + "ciVisibilityPipelineCommitters": { + "baseName": "ci_visibility_pipeline_committers", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "ciVisibilityTestCommitters": { + "baseName": "ci_visibility_test_committers", + "type": "number", + "format": "int64", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCIVisibilityHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCIVisibilityResponse.ts b/packages/datadog-api-client-v1/models/UsageCIVisibilityResponse.ts index 04f110d1cce5..9b7176b9b808 100644 --- a/packages/datadog-api-client-v1/models/UsageCIVisibilityResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageCIVisibilityResponse.ts @@ -5,15 +5,20 @@ */ import { UsageCIVisibilityHour } from "./UsageCIVisibilityHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CI visibility usage response - */ +*/ export class UsageCIVisibilityResponse { /** * Response containing CI visibility usage. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageCIVisibilityResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCIVisibilityResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCWSHour.ts b/packages/datadog-api-client-v1/models/UsageCWSHour.ts index 9d8c809f3291..6230831a739c 100644 --- a/packages/datadog-api-client-v1/models/UsageCWSHour.ts +++ b/packages/datadog-api-client-v1/models/UsageCWSHour.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cloud Workload Security usage for a given organization for a given hour. - */ +*/ export class UsageCWSHour { /** * The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. - */ + */ "cwsContainerCount"?: number; /** * The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. - */ + */ "cwsHostCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -47,41 +52,67 @@ export class UsageCWSHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cwsContainerCount: { - baseName: "cws_container_count", - type: "number", - format: "int64", + "cwsContainerCount": { + "baseName": "cws_container_count", + "type": "number", + "format": "int64", }, - cwsHostCount: { - baseName: "cws_host_count", - type: "number", - format: "int64", + "cwsHostCount": { + "baseName": "cws_host_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCWSHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCWSResponse.ts b/packages/datadog-api-client-v1/models/UsageCWSResponse.ts index 5d2414bf8fda..b6a299a268b2 100644 --- a/packages/datadog-api-client-v1/models/UsageCWSResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageCWSResponse.ts @@ -5,15 +5,20 @@ */ import { UsageCWSHour } from "./UsageCWSHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the Cloud Workload Security usage for each hour for a given organization. - */ +*/ export class UsageCWSResponse { /** * Get hourly usage for Cloud Workload Security. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageCWSResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCWSResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.ts b/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.ts index eabddda96ea9..1b81aceab586 100644 --- a/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.ts +++ b/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.ts @@ -4,51 +4,56 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cloud Security Management Pro usage for a given organization for a given hour. - */ +*/ export class UsageCloudSecurityPostureManagementHour { /** * The number of Cloud Security Management Pro Azure app services hosts during a given hour. - */ + */ "aasHostCount"?: number; /** * The number of Cloud Security Management Pro AWS hosts during a given hour. - */ + */ "awsHostCount"?: number; /** * The number of Cloud Security Management Pro Azure hosts during a given hour. - */ + */ "azureHostCount"?: number; /** * The number of Cloud Security Management Pro hosts during a given hour. - */ + */ "complianceHostCount"?: number; /** * The total number of Cloud Security Management Pro containers during a given hour. - */ + */ "containerCount"?: number; /** * The number of Cloud Security Management Pro GCP hosts during a given hour. - */ + */ "gcpHostCount"?: number; /** * The total number of Cloud Security Management Pro hosts during a given hour. - */ + */ "hostCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -67,66 +72,92 @@ export class UsageCloudSecurityPostureManagementHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aasHostCount: { - baseName: "aas_host_count", - type: "number", - format: "double", - }, - awsHostCount: { - baseName: "aws_host_count", - type: "number", - format: "double", + "aasHostCount": { + "baseName": "aas_host_count", + "type": "number", + "format": "double", }, - azureHostCount: { - baseName: "azure_host_count", - type: "number", - format: "double", + "awsHostCount": { + "baseName": "aws_host_count", + "type": "number", + "format": "double", }, - complianceHostCount: { - baseName: "compliance_host_count", - type: "number", - format: "double", + "azureHostCount": { + "baseName": "azure_host_count", + "type": "number", + "format": "double", }, - containerCount: { - baseName: "container_count", - type: "number", - format: "double", + "complianceHostCount": { + "baseName": "compliance_host_count", + "type": "number", + "format": "double", }, - gcpHostCount: { - baseName: "gcp_host_count", - type: "number", - format: "double", + "containerCount": { + "baseName": "container_count", + "type": "number", + "format": "double", }, - hostCount: { - baseName: "host_count", - type: "number", - format: "double", + "gcpHostCount": { + "baseName": "gcp_host_count", + "type": "number", + "format": "double", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hostCount": { + "baseName": "host_count", + "type": "number", + "format": "double", }, - orgName: { - baseName: "org_name", - type: "string", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCloudSecurityPostureManagementHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementResponse.ts b/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementResponse.ts index 291e80484b7c..96859ab63676 100644 --- a/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementResponse.ts @@ -5,15 +5,20 @@ */ import { UsageCloudSecurityPostureManagementHour } from "./UsageCloudSecurityPostureManagementHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response containing the Cloud Security Management Pro usage for each hour for a given organization. - */ +*/ export class UsageCloudSecurityPostureManagementResponse { /** * Get hourly usage for Cloud Security Management Pro. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageCloudSecurityPostureManagementResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCloudSecurityPostureManagementResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCustomReportsAttributes.ts b/packages/datadog-api-client-v1/models/UsageCustomReportsAttributes.ts index fd8dcaca659c..9c0d9b3254e2 100644 --- a/packages/datadog-api-client-v1/models/UsageCustomReportsAttributes.ts +++ b/packages/datadog-api-client-v1/models/UsageCustomReportsAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response containing attributes for custom reports. - */ +*/ export class UsageCustomReportsAttributes { /** * The date the specified custom report was computed. - */ + */ "computedOn"?: string; /** * The ending date of custom report. - */ + */ "endDate"?: string; /** * size - */ + */ "size"?: number; /** * The starting date of custom report. - */ + */ "startDate"?: string; /** * A list of tags to apply to custom reports. - */ + */ "tags"?: Array; /** @@ -47,39 +52,65 @@ export class UsageCustomReportsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - computedOn: { - baseName: "computed_on", - type: "string", + "computedOn": { + "baseName": "computed_on", + "type": "string", }, - endDate: { - baseName: "end_date", - type: "string", + "endDate": { + "baseName": "end_date", + "type": "string", }, - size: { - baseName: "size", - type: "number", - format: "int64", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, - startDate: { - baseName: "start_date", - type: "string", + "startDate": { + "baseName": "start_date", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCustomReportsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCustomReportsData.ts b/packages/datadog-api-client-v1/models/UsageCustomReportsData.ts index 976c0046bf92..3a5d90775c8d 100644 --- a/packages/datadog-api-client-v1/models/UsageCustomReportsData.ts +++ b/packages/datadog-api-client-v1/models/UsageCustomReportsData.ts @@ -6,23 +6,28 @@ import { UsageCustomReportsAttributes } from "./UsageCustomReportsAttributes"; import { UsageReportsType } from "./UsageReportsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response containing the date and type for custom reports. - */ +*/ export class UsageCustomReportsData { /** * The response containing attributes for custom reports. - */ + */ "attributes"?: UsageCustomReportsAttributes; /** * The date for specified custom reports. - */ + */ "id"?: string; /** * The type of reports. - */ + */ "type"?: UsageReportsType; /** @@ -41,30 +46,56 @@ export class UsageCustomReportsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UsageCustomReportsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "UsageCustomReportsAttributes", }, - type: { - baseName: "type", - type: "UsageReportsType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsageReportsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCustomReportsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCustomReportsMeta.ts b/packages/datadog-api-client-v1/models/UsageCustomReportsMeta.ts index a73703ed0d73..20d072745526 100644 --- a/packages/datadog-api-client-v1/models/UsageCustomReportsMeta.ts +++ b/packages/datadog-api-client-v1/models/UsageCustomReportsMeta.ts @@ -5,15 +5,20 @@ */ import { UsageCustomReportsPage } from "./UsageCustomReportsPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class UsageCustomReportsMeta { /** * The object containing page total count. - */ + */ "page"?: UsageCustomReportsPage; /** @@ -32,22 +37,48 @@ export class UsageCustomReportsMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "UsageCustomReportsPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "UsageCustomReportsPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCustomReportsMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCustomReportsPage.ts b/packages/datadog-api-client-v1/models/UsageCustomReportsPage.ts index 39863f9b8e58..b468503300d7 100644 --- a/packages/datadog-api-client-v1/models/UsageCustomReportsPage.ts +++ b/packages/datadog-api-client-v1/models/UsageCustomReportsPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing page total count. - */ +*/ export class UsageCustomReportsPage { /** * Total page count. - */ + */ "totalCount"?: number; /** @@ -31,23 +36,49 @@ export class UsageCustomReportsPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCustomReportsPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageCustomReportsResponse.ts b/packages/datadog-api-client-v1/models/UsageCustomReportsResponse.ts index a367bd19242a..939215e99f4f 100644 --- a/packages/datadog-api-client-v1/models/UsageCustomReportsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageCustomReportsResponse.ts @@ -6,19 +6,24 @@ import { UsageCustomReportsData } from "./UsageCustomReportsData"; import { UsageCustomReportsMeta } from "./UsageCustomReportsMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing available custom reports. - */ +*/ export class UsageCustomReportsResponse { /** * An array of available custom reports. - */ + */ "data"?: Array; /** * The object containing document metadata. - */ + */ "meta"?: UsageCustomReportsMeta; /** @@ -37,26 +42,52 @@ export class UsageCustomReportsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "UsageCustomReportsMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "UsageCustomReportsMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageCustomReportsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageDBMHour.ts b/packages/datadog-api-client-v1/models/UsageDBMHour.ts index 439b7900a3c0..1bbdb8cf042d 100644 --- a/packages/datadog-api-client-v1/models/UsageDBMHour.ts +++ b/packages/datadog-api-client-v1/models/UsageDBMHour.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Database Monitoring usage for a given organization for a given hour. - */ +*/ export class UsageDBMHour { /** * The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. - */ + */ "dbmHostCount"?: number; /** * The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. - */ + */ "dbmQueriesCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -47,41 +52,67 @@ export class UsageDBMHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dbmHostCount: { - baseName: "dbm_host_count", - type: "number", - format: "int64", + "dbmHostCount": { + "baseName": "dbm_host_count", + "type": "number", + "format": "int64", }, - dbmQueriesCount: { - baseName: "dbm_queries_count", - type: "number", - format: "int64", + "dbmQueriesCount": { + "baseName": "dbm_queries_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageDBMHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageDBMResponse.ts b/packages/datadog-api-client-v1/models/UsageDBMResponse.ts index a9c44558b37f..25eb03a13954 100644 --- a/packages/datadog-api-client-v1/models/UsageDBMResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageDBMResponse.ts @@ -5,15 +5,20 @@ */ import { UsageDBMHour } from "./UsageDBMHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the Database Monitoring usage for each hour for a given organization. - */ +*/ export class UsageDBMResponse { /** * Get hourly usage for Database Monitoring - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageDBMResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageDBMResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageFargateHour.ts b/packages/datadog-api-client-v1/models/UsageFargateHour.ts index 06df8b6fc2a1..7feb23003962 100644 --- a/packages/datadog-api-client-v1/models/UsageFargateHour.ts +++ b/packages/datadog-api-client-v1/models/UsageFargateHour.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of Fargate tasks run and hourly usage. - */ +*/ export class UsageFargateHour { /** * The high-water mark of APM ECS Fargate tasks during the given hour. - */ + */ "apmFargateCount"?: number; /** * The Application Security Monitoring ECS Fargate tasks during the given hour. - */ + */ "appsecFargateCount"?: number; /** * The average profiled task count for Fargate Profiling. - */ + */ "avgProfiledFargateTasks"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The number of Fargate tasks run. - */ + */ "tasksCount"?: number; /** @@ -55,51 +60,77 @@ export class UsageFargateHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmFargateCount: { - baseName: "apm_fargate_count", - type: "number", - format: "int64", - }, - appsecFargateCount: { - baseName: "appsec_fargate_count", - type: "number", - format: "int64", + "apmFargateCount": { + "baseName": "apm_fargate_count", + "type": "number", + "format": "int64", }, - avgProfiledFargateTasks: { - baseName: "avg_profiled_fargate_tasks", - type: "number", - format: "int64", + "appsecFargateCount": { + "baseName": "appsec_fargate_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "avgProfiledFargateTasks": { + "baseName": "avg_profiled_fargate_tasks", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - tasksCount: { - baseName: "tasks_count", - type: "number", - format: "int64", + "publicId": { + "baseName": "public_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tasksCount": { + "baseName": "tasks_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageFargateHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageFargateResponse.ts b/packages/datadog-api-client-v1/models/UsageFargateResponse.ts index ca28b76a9eee..421a7879be05 100644 --- a/packages/datadog-api-client-v1/models/UsageFargateResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageFargateResponse.ts @@ -5,15 +5,20 @@ */ import { UsageFargateHour } from "./UsageFargateHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of Fargate tasks run and hourly usage. - */ +*/ export class UsageFargateResponse { /** * Array with the number of hourly Fargate tasks recorded for a given organization. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageFargateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageFargateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageHostHour.ts b/packages/datadog-api-client-v1/models/UsageHostHour.ts index 132ba53515da..3486bdb3bc20 100644 --- a/packages/datadog-api-client-v1/models/UsageHostHour.ts +++ b/packages/datadog-api-client-v1/models/UsageHostHour.ts @@ -4,88 +4,93 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of hosts/containers recorded for each hour for a given organization. - */ +*/ export class UsageHostHour { /** * Contains the total number of infrastructure hosts reporting * during a given hour that were running the Datadog Agent. - */ + */ "agentHostCount"?: number; /** * Contains the total number of hosts that reported through Alibaba integration * (and were NOT running the Datadog Agent). - */ + */ "alibabaHostCount"?: number; /** * Contains the total number of Azure App Services hosts using APM. - */ + */ "apmAzureAppServiceHostCount"?: number; /** * Shows the total number of hosts using APM during the hour, * these are counted as billable (except during trial periods). - */ + */ "apmHostCount"?: number; /** * Contains the total number of hosts that reported through the AWS integration * (and were NOT running the Datadog Agent). - */ + */ "awsHostCount"?: number; /** * Contains the total number of hosts that reported through Azure integration * (and were NOT running the Datadog Agent). - */ + */ "azureHostCount"?: number; /** * Shows the total number of containers reported by the Docker integration during the hour. - */ + */ "containerCount"?: number; /** * Contains the total number of hosts that reported through the Google Cloud integration * (and were NOT running the Datadog Agent). - */ + */ "gcpHostCount"?: number; /** * Contains the total number of Heroku dynos reported by the Datadog Agent. - */ + */ "herokuHostCount"?: number; /** * Contains the total number of billable infrastructure hosts reporting during a given hour. * This is the sum of `agent_host_count`, `aws_host_count`, and `gcp_host_count`. - */ + */ "hostCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the total number of hosts that reported through the Azure App Services integration * (and were NOT running the Datadog Agent). - */ + */ "infraAzureAppService"?: number; /** * Contains the total number of hosts using APM reported by Datadog exporter for the OpenTelemetry Collector. - */ + */ "opentelemetryApmHostCount"?: number; /** * Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. - */ + */ "opentelemetryHostCount"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * Contains the total number of hosts that reported through vSphere integration * (and were NOT running the Datadog Agent). - */ + */ "vsphereHostCount"?: number; /** @@ -104,101 +109,127 @@ export class UsageHostHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - agentHostCount: { - baseName: "agent_host_count", - type: "number", - format: "int64", - }, - alibabaHostCount: { - baseName: "alibaba_host_count", - type: "number", - format: "int64", - }, - apmAzureAppServiceHostCount: { - baseName: "apm_azure_app_service_host_count", - type: "number", - format: "int64", - }, - apmHostCount: { - baseName: "apm_host_count", - type: "number", - format: "int64", - }, - awsHostCount: { - baseName: "aws_host_count", - type: "number", - format: "int64", - }, - azureHostCount: { - baseName: "azure_host_count", - type: "number", - format: "int64", - }, - containerCount: { - baseName: "container_count", - type: "number", - format: "int64", - }, - gcpHostCount: { - baseName: "gcp_host_count", - type: "number", - format: "int64", - }, - herokuHostCount: { - baseName: "heroku_host_count", - type: "number", - format: "int64", - }, - hostCount: { - baseName: "host_count", - type: "number", - format: "int64", - }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", - }, - infraAzureAppService: { - baseName: "infra_azure_app_service", - type: "number", - format: "int64", - }, - opentelemetryApmHostCount: { - baseName: "opentelemetry_apm_host_count", - type: "number", - format: "int64", - }, - opentelemetryHostCount: { - baseName: "opentelemetry_host_count", - type: "number", - format: "int64", - }, - orgName: { - baseName: "org_name", - type: "string", - }, - publicId: { - baseName: "public_id", - type: "string", - }, - vsphereHostCount: { - baseName: "vsphere_host_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "agentHostCount": { + "baseName": "agent_host_count", + "type": "number", + "format": "int64", + }, + "alibabaHostCount": { + "baseName": "alibaba_host_count", + "type": "number", + "format": "int64", + }, + "apmAzureAppServiceHostCount": { + "baseName": "apm_azure_app_service_host_count", + "type": "number", + "format": "int64", + }, + "apmHostCount": { + "baseName": "apm_host_count", + "type": "number", + "format": "int64", + }, + "awsHostCount": { + "baseName": "aws_host_count", + "type": "number", + "format": "int64", + }, + "azureHostCount": { + "baseName": "azure_host_count", + "type": "number", + "format": "int64", + }, + "containerCount": { + "baseName": "container_count", + "type": "number", + "format": "int64", + }, + "gcpHostCount": { + "baseName": "gcp_host_count", + "type": "number", + "format": "int64", + }, + "herokuHostCount": { + "baseName": "heroku_host_count", + "type": "number", + "format": "int64", + }, + "hostCount": { + "baseName": "host_count", + "type": "number", + "format": "int64", + }, + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", + }, + "infraAzureAppService": { + "baseName": "infra_azure_app_service", + "type": "number", + "format": "int64", + }, + "opentelemetryApmHostCount": { + "baseName": "opentelemetry_apm_host_count", + "type": "number", + "format": "int64", + }, + "opentelemetryHostCount": { + "baseName": "opentelemetry_host_count", + "type": "number", + "format": "int64", + }, + "orgName": { + "baseName": "org_name", + "type": "string", + }, + "publicId": { + "baseName": "public_id", + "type": "string", + }, + "vsphereHostCount": { + "baseName": "vsphere_host_count", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageHostHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageHostsResponse.ts b/packages/datadog-api-client-v1/models/UsageHostsResponse.ts index 91b45c358bde..7371f70c15f4 100644 --- a/packages/datadog-api-client-v1/models/UsageHostsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageHostsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageHostHour } from "./UsageHostHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Host usage response. - */ +*/ export class UsageHostsResponse { /** * An array of objects related to host usage. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageHostsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageHostsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIncidentManagementHour.ts b/packages/datadog-api-client-v1/models/UsageIncidentManagementHour.ts index 5ac0b68c2214..a440c5cd973d 100644 --- a/packages/datadog-api-client-v1/models/UsageIncidentManagementHour.ts +++ b/packages/datadog-api-client-v1/models/UsageIncidentManagementHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident management usage for a given organization for a given hour. - */ +*/ export class UsageIncidentManagementHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the total number monthly active users from the start of the given hour's month until the given hour. - */ + */ "monthlyActiveUsers"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageIncidentManagementHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - monthlyActiveUsers: { - baseName: "monthly_active_users", - type: "number", - format: "int64", + "monthlyActiveUsers": { + "baseName": "monthly_active_users", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIncidentManagementHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIncidentManagementResponse.ts b/packages/datadog-api-client-v1/models/UsageIncidentManagementResponse.ts index 703be41486b1..09a1fb4dde75 100644 --- a/packages/datadog-api-client-v1/models/UsageIncidentManagementResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageIncidentManagementResponse.ts @@ -5,15 +5,20 @@ */ import { UsageIncidentManagementHour } from "./UsageIncidentManagementHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the incident management usage for each hour for a given organization. - */ +*/ export class UsageIncidentManagementResponse { /** * Get hourly usage for incident management. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageIncidentManagementResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIncidentManagementResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIndexedSpansHour.ts b/packages/datadog-api-client-v1/models/UsageIndexedSpansHour.ts index ff21f7bac187..822f112b4b86 100644 --- a/packages/datadog-api-client-v1/models/UsageIndexedSpansHour.ts +++ b/packages/datadog-api-client-v1/models/UsageIndexedSpansHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The hours of indexed spans usage. - */ +*/ export class UsageIndexedSpansHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the number of spans indexed. - */ + */ "indexedEventsCount"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageIndexedSpansHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - indexedEventsCount: { - baseName: "indexed_events_count", - type: "number", - format: "int64", + "indexedEventsCount": { + "baseName": "indexed_events_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIndexedSpansHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIndexedSpansResponse.ts b/packages/datadog-api-client-v1/models/UsageIndexedSpansResponse.ts index fa2decb030de..a48353686420 100644 --- a/packages/datadog-api-client-v1/models/UsageIndexedSpansResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageIndexedSpansResponse.ts @@ -5,15 +5,20 @@ */ import { UsageIndexedSpansHour } from "./UsageIndexedSpansHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A response containing indexed spans usage. - */ +*/ export class UsageIndexedSpansResponse { /** * Array with the number of hourly traces indexed for a given organization. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageIndexedSpansResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIndexedSpansResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIngestedSpansHour.ts b/packages/datadog-api-client-v1/models/UsageIngestedSpansHour.ts index 1c217fe6ea16..0c6ed40b01d6 100644 --- a/packages/datadog-api-client-v1/models/UsageIngestedSpansHour.ts +++ b/packages/datadog-api-client-v1/models/UsageIngestedSpansHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Ingested spans usage for a given organization for a given hour. - */ +*/ export class UsageIngestedSpansHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the total number of bytes ingested for APM spans during a given hour. - */ + */ "ingestedEventsBytes"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageIngestedSpansHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - ingestedEventsBytes: { - baseName: "ingested_events_bytes", - type: "number", - format: "int64", + "ingestedEventsBytes": { + "baseName": "ingested_events_bytes", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIngestedSpansHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIngestedSpansResponse.ts b/packages/datadog-api-client-v1/models/UsageIngestedSpansResponse.ts index 199f447c996b..71b960a67fc3 100644 --- a/packages/datadog-api-client-v1/models/UsageIngestedSpansResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageIngestedSpansResponse.ts @@ -5,15 +5,20 @@ */ import { UsageIngestedSpansHour } from "./UsageIngestedSpansHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the ingested spans usage for each hour for a given organization. - */ +*/ export class UsageIngestedSpansResponse { /** * Get hourly usage for ingested spans. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageIngestedSpansResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIngestedSpansResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIoTHour.ts b/packages/datadog-api-client-v1/models/UsageIoTHour.ts index 9ac8b2493f7c..98ced119bbba 100644 --- a/packages/datadog-api-client-v1/models/UsageIoTHour.ts +++ b/packages/datadog-api-client-v1/models/UsageIoTHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * IoT usage for a given organization for a given hour. - */ +*/ export class UsageIoTHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The total number of IoT devices during a given hour. - */ + */ "iotDeviceCount"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageIoTHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - iotDeviceCount: { - baseName: "iot_device_count", - type: "number", - format: "int64", + "iotDeviceCount": { + "baseName": "iot_device_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIoTHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageIoTResponse.ts b/packages/datadog-api-client-v1/models/UsageIoTResponse.ts index 2c652fa78545..a8ad5048dd67 100644 --- a/packages/datadog-api-client-v1/models/UsageIoTResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageIoTResponse.ts @@ -5,15 +5,20 @@ */ import { UsageIoTHour } from "./UsageIoTHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the IoT usage for each hour for a given organization. - */ +*/ export class UsageIoTResponse { /** * Get hourly usage for IoT. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageIoTResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageIoTResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLambdaHour.ts b/packages/datadog-api-client-v1/models/UsageLambdaHour.ts index 368e95bf0a0d..daf80d2ebb23 100644 --- a/packages/datadog-api-client-v1/models/UsageLambdaHour.ts +++ b/packages/datadog-api-client-v1/models/UsageLambdaHour.ts @@ -4,32 +4,37 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of Lambda functions and sum of the invocations of all Lambda functions * for each hour for a given organization. - */ +*/ export class UsageLambdaHour { /** * Contains the number of different functions for each region and AWS account. - */ + */ "funcCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the sum of invocations of all functions. - */ + */ "invocationsSum"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -48,41 +53,67 @@ export class UsageLambdaHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - funcCount: { - baseName: "func_count", - type: "number", - format: "int64", + "funcCount": { + "baseName": "func_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - invocationsSum: { - baseName: "invocations_sum", - type: "number", - format: "int64", + "invocationsSum": { + "baseName": "invocations_sum", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLambdaHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLambdaResponse.ts b/packages/datadog-api-client-v1/models/UsageLambdaResponse.ts index dcffff45b0c9..c61c69cbda2d 100644 --- a/packages/datadog-api-client-v1/models/UsageLambdaResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageLambdaResponse.ts @@ -5,16 +5,21 @@ */ import { UsageLambdaHour } from "./UsageLambdaHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of Lambda functions and sum of the invocations of all Lambda functions * for each hour for a given organization. - */ +*/ export class UsageLambdaResponse { /** * Get hourly usage for Lambda. - */ + */ "usage"?: Array; /** @@ -33,22 +38,48 @@ export class UsageLambdaResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLambdaResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLogsByIndexHour.ts b/packages/datadog-api-client-v1/models/UsageLogsByIndexHour.ts index 217bedc66807..c3abfbee884e 100644 --- a/packages/datadog-api-client-v1/models/UsageLogsByIndexHour.ts +++ b/packages/datadog-api-client-v1/models/UsageLogsByIndexHour.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of indexed logs for each hour and index for a given organization. - */ +*/ export class UsageLogsByIndexHour { /** * The total number of indexed logs for the queried hour. - */ + */ "eventCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The index ID for this usage. - */ + */ "indexId"?: string; /** * The user specified name for this index ID. - */ + */ "indexName"?: string; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The retention period (in days) for this index ID. - */ + */ "retention"?: number; /** @@ -55,49 +60,75 @@ export class UsageLogsByIndexHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - eventCount: { - baseName: "event_count", - type: "number", - format: "int64", - }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "eventCount": { + "baseName": "event_count", + "type": "number", + "format": "int64", }, - indexId: { - baseName: "index_id", - type: "string", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - indexName: { - baseName: "index_name", - type: "string", + "indexId": { + "baseName": "index_id", + "type": "string", }, - orgName: { - baseName: "org_name", - type: "string", + "indexName": { + "baseName": "index_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - retention: { - baseName: "retention", - type: "number", - format: "int64", + "publicId": { + "baseName": "public_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "retention": { + "baseName": "retention", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLogsByIndexHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLogsByIndexResponse.ts b/packages/datadog-api-client-v1/models/UsageLogsByIndexResponse.ts index 87c054e80e1e..e6a515fb0fac 100644 --- a/packages/datadog-api-client-v1/models/UsageLogsByIndexResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageLogsByIndexResponse.ts @@ -5,15 +5,20 @@ */ import { UsageLogsByIndexHour } from "./UsageLogsByIndexHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of indexed logs for each hour and index for a given organization. - */ +*/ export class UsageLogsByIndexResponse { /** * An array of objects regarding hourly usage of logs by index response. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageLogsByIndexResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLogsByIndexResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLogsByRetentionHour.ts b/packages/datadog-api-client-v1/models/UsageLogsByRetentionHour.ts index 304c63db3d0b..d0cdf807439e 100644 --- a/packages/datadog-api-client-v1/models/UsageLogsByRetentionHour.ts +++ b/packages/datadog-api-client-v1/models/UsageLogsByRetentionHour.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The number of indexed logs for each hour for a given organization broken down by retention period. - */ +*/ export class UsageLogsByRetentionHour { /** * Total logs indexed with this retention period during a given hour. - */ + */ "indexedEventsCount"?: number; /** * Live logs indexed with this retention period during a given hour. - */ + */ "liveIndexedEventsCount"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * Rehydrated logs indexed with this retention period during a given hour. - */ + */ "rehydratedIndexedEventsCount"?: number; /** * The retention period in days or "custom" for all custom retention usage. - */ + */ "retention"?: string; /** @@ -51,45 +56,71 @@ export class UsageLogsByRetentionHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - indexedEventsCount: { - baseName: "indexed_events_count", - type: "number", - format: "int64", - }, - liveIndexedEventsCount: { - baseName: "live_indexed_events_count", - type: "number", - format: "int64", + "indexedEventsCount": { + "baseName": "indexed_events_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "liveIndexedEventsCount": { + "baseName": "live_indexed_events_count", + "type": "number", + "format": "int64", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - rehydratedIndexedEventsCount: { - baseName: "rehydrated_indexed_events_count", - type: "number", - format: "int64", + "publicId": { + "baseName": "public_id", + "type": "string", }, - retention: { - baseName: "retention", - type: "string", + "rehydratedIndexedEventsCount": { + "baseName": "rehydrated_indexed_events_count", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "retention": { + "baseName": "retention", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLogsByRetentionHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLogsByRetentionResponse.ts b/packages/datadog-api-client-v1/models/UsageLogsByRetentionResponse.ts index 154fa0b9545c..02705ff22b98 100644 --- a/packages/datadog-api-client-v1/models/UsageLogsByRetentionResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageLogsByRetentionResponse.ts @@ -5,15 +5,20 @@ */ import { UsageLogsByRetentionHour } from "./UsageLogsByRetentionHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the indexed logs usage broken down by retention period for an organization during a given hour. - */ +*/ export class UsageLogsByRetentionResponse { /** * Get hourly usage for indexed logs by retention period. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageLogsByRetentionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLogsByRetentionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLogsHour.ts b/packages/datadog-api-client-v1/models/UsageLogsHour.ts index 02531af7238e..39a28c200aef 100644 --- a/packages/datadog-api-client-v1/models/UsageLogsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageLogsHour.ts @@ -4,55 +4,60 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Hour usage for logs. - */ +*/ export class UsageLogsHour { /** * Contains the number of billable log bytes ingested. - */ + */ "billableIngestedBytes"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the number of log events indexed. - */ + */ "indexedEventsCount"?: number; /** * Contains the number of log bytes ingested. - */ + */ "ingestedEventsBytes"?: number; /** * Contains the number of logs forwarded bytes (data available as of April 1st 2023) - */ + */ "logsForwardingEventsBytes"?: number; /** * Contains the number of live log events indexed (data available as of December 1, 2020). - */ + */ "logsLiveIndexedCount"?: number; /** * Contains the number of live log bytes ingested (data available as of December 1, 2020). - */ + */ "logsLiveIngestedBytes"?: number; /** * Contains the number of rehydrated log events indexed (data available as of December 1, 2020). - */ + */ "logsRehydratedIndexedCount"?: number; /** * Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020). - */ + */ "logsRehydratedIngestedBytes"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -71,71 +76,97 @@ export class UsageLogsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - billableIngestedBytes: { - baseName: "billable_ingested_bytes", - type: "number", - format: "int64", - }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "billableIngestedBytes": { + "baseName": "billable_ingested_bytes", + "type": "number", + "format": "int64", }, - indexedEventsCount: { - baseName: "indexed_events_count", - type: "number", - format: "int64", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - ingestedEventsBytes: { - baseName: "ingested_events_bytes", - type: "number", - format: "int64", + "indexedEventsCount": { + "baseName": "indexed_events_count", + "type": "number", + "format": "int64", }, - logsForwardingEventsBytes: { - baseName: "logs_forwarding_events_bytes", - type: "number", - format: "int64", + "ingestedEventsBytes": { + "baseName": "ingested_events_bytes", + "type": "number", + "format": "int64", }, - logsLiveIndexedCount: { - baseName: "logs_live_indexed_count", - type: "number", - format: "int64", + "logsForwardingEventsBytes": { + "baseName": "logs_forwarding_events_bytes", + "type": "number", + "format": "int64", }, - logsLiveIngestedBytes: { - baseName: "logs_live_ingested_bytes", - type: "number", - format: "int64", + "logsLiveIndexedCount": { + "baseName": "logs_live_indexed_count", + "type": "number", + "format": "int64", }, - logsRehydratedIndexedCount: { - baseName: "logs_rehydrated_indexed_count", - type: "number", - format: "int64", + "logsLiveIngestedBytes": { + "baseName": "logs_live_ingested_bytes", + "type": "number", + "format": "int64", }, - logsRehydratedIngestedBytes: { - baseName: "logs_rehydrated_ingested_bytes", - type: "number", - format: "int64", + "logsRehydratedIndexedCount": { + "baseName": "logs_rehydrated_indexed_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "logsRehydratedIngestedBytes": { + "baseName": "logs_rehydrated_ingested_bytes", + "type": "number", + "format": "int64", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLogsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageLogsResponse.ts b/packages/datadog-api-client-v1/models/UsageLogsResponse.ts index be67d8cc278b..da0585222801 100644 --- a/packages/datadog-api-client-v1/models/UsageLogsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageLogsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageLogsHour } from "./UsageLogsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of logs for each hour. - */ +*/ export class UsageLogsResponse { /** * An array of objects regarding hourly usage of logs. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageLogsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLogsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageMetricCategory.ts b/packages/datadog-api-client-v1/models/UsageMetricCategory.ts index 10f30f5e7201..7f61024432d4 100644 --- a/packages/datadog-api-client-v1/models/UsageMetricCategory.ts +++ b/packages/datadog-api-client-v1/models/UsageMetricCategory.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contains the metric category. - */ +*/ -export type UsageMetricCategory = - | typeof STANDARD - | typeof CUSTOM - | UnparsedObject; -export const STANDARD = "standard"; -export const CUSTOM = "custom"; +export type UsageMetricCategory = typeof STANDARD| typeof CUSTOM | UnparsedObject; +export const STANDARD = 'standard'; +export const CUSTOM = 'custom'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/UsageNetworkFlowsHour.ts b/packages/datadog-api-client-v1/models/UsageNetworkFlowsHour.ts index c03a5fcca284..5076a528261b 100644 --- a/packages/datadog-api-client-v1/models/UsageNetworkFlowsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageNetworkFlowsHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of netflow events indexed for each hour for a given organization. - */ +*/ export class UsageNetworkFlowsHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the number of netflow events indexed. - */ + */ "indexedEventsCount"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageNetworkFlowsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - indexedEventsCount: { - baseName: "indexed_events_count", - type: "number", - format: "int64", + "indexedEventsCount": { + "baseName": "indexed_events_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageNetworkFlowsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageNetworkFlowsResponse.ts b/packages/datadog-api-client-v1/models/UsageNetworkFlowsResponse.ts index 6318940b2e03..c541cc7aefa3 100644 --- a/packages/datadog-api-client-v1/models/UsageNetworkFlowsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageNetworkFlowsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageNetworkFlowsHour } from "./UsageNetworkFlowsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of netflow events indexed for each hour for a given organization. - */ +*/ export class UsageNetworkFlowsResponse { /** * Get hourly usage for Network Flows. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageNetworkFlowsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageNetworkFlowsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageNetworkHostsHour.ts b/packages/datadog-api-client-v1/models/UsageNetworkHostsHour.ts index 0ad73ace114d..3a900fc812a4 100644 --- a/packages/datadog-api-client-v1/models/UsageNetworkHostsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageNetworkHostsHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of active NPM hosts for each hour for a given organization. - */ +*/ export class UsageNetworkHostsHour { /** * Contains the number of active NPM hosts. - */ + */ "hostCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageNetworkHostsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hostCount: { - baseName: "host_count", - type: "number", - format: "int64", + "hostCount": { + "baseName": "host_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageNetworkHostsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageNetworkHostsResponse.ts b/packages/datadog-api-client-v1/models/UsageNetworkHostsResponse.ts index c90597b5adcf..bb73e31f48b7 100644 --- a/packages/datadog-api-client-v1/models/UsageNetworkHostsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageNetworkHostsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageNetworkHostsHour } from "./UsageNetworkHostsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of active NPM hosts for each hour for a given organization. - */ +*/ export class UsageNetworkHostsResponse { /** * Get hourly usage for NPM hosts. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageNetworkHostsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageNetworkHostsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.ts b/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.ts index 99117101349b..6bd231af7031 100644 --- a/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.ts +++ b/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Online Archive usage in a given hour. - */ +*/ export class UsageOnlineArchiveHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Total count of online archived events within the hour. - */ + */ "onlineArchiveEventsCount"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageOnlineArchiveHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - onlineArchiveEventsCount: { - baseName: "online_archive_events_count", - type: "number", - format: "int64", + "onlineArchiveEventsCount": { + "baseName": "online_archive_events_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageOnlineArchiveHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageOnlineArchiveResponse.ts b/packages/datadog-api-client-v1/models/UsageOnlineArchiveResponse.ts index eda3347c34bb..d172018712e5 100644 --- a/packages/datadog-api-client-v1/models/UsageOnlineArchiveResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageOnlineArchiveResponse.ts @@ -5,15 +5,20 @@ */ import { UsageOnlineArchiveHour } from "./UsageOnlineArchiveHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Online Archive usage response. - */ +*/ export class UsageOnlineArchiveResponse { /** * Response containing Online Archive usage. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageOnlineArchiveResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageOnlineArchiveResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageProfilingHour.ts b/packages/datadog-api-client-v1/models/UsageProfilingHour.ts index d6b34ce83b52..6c61d39b5576 100644 --- a/packages/datadog-api-client-v1/models/UsageProfilingHour.ts +++ b/packages/datadog-api-client-v1/models/UsageProfilingHour.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The number of profiled hosts for each hour for a given organization. - */ +*/ export class UsageProfilingHour { /** * Contains the total number of profiled Azure app services reporting during a given hour. - */ + */ "aasCount"?: number; /** * Get average number of container agents for that hour. - */ + */ "avgContainerAgentCount"?: number; /** * Contains the total number of profiled hosts reporting during a given hour. - */ + */ "hostCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -51,46 +56,72 @@ export class UsageProfilingHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aasCount: { - baseName: "aas_count", - type: "number", - format: "int64", - }, - avgContainerAgentCount: { - baseName: "avg_container_agent_count", - type: "number", - format: "int64", + "aasCount": { + "baseName": "aas_count", + "type": "number", + "format": "int64", }, - hostCount: { - baseName: "host_count", - type: "number", - format: "int64", + "avgContainerAgentCount": { + "baseName": "avg_container_agent_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hostCount": { + "baseName": "host_count", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageProfilingHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageProfilingResponse.ts b/packages/datadog-api-client-v1/models/UsageProfilingResponse.ts index 24a252d393c7..607eaa77b892 100644 --- a/packages/datadog-api-client-v1/models/UsageProfilingResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageProfilingResponse.ts @@ -5,15 +5,20 @@ */ import { UsageProfilingHour } from "./UsageProfilingHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of profiled hosts for each hour for a given organization. - */ +*/ export class UsageProfilingResponse { /** * Get hourly usage for profiled hosts. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageProfilingResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageProfilingResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageReportsType.ts b/packages/datadog-api-client-v1/models/UsageReportsType.ts index 89a1260935e7..f33c0cc37aa6 100644 --- a/packages/datadog-api-client-v1/models/UsageReportsType.ts +++ b/packages/datadog-api-client-v1/models/UsageReportsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of reports. - */ +*/ export type UsageReportsType = typeof REPORTS | UnparsedObject; -export const REPORTS = "reports"; +export const REPORTS = 'reports'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/UsageRumSessionsHour.ts b/packages/datadog-api-client-v1/models/UsageRumSessionsHour.ts index 728f43fb7707..f8dca2e512f2 100644 --- a/packages/datadog-api-client-v1/models/UsageRumSessionsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageRumSessionsHour.ts @@ -4,47 +4,52 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of RUM sessions recorded for each hour for a given organization. - */ +*/ export class UsageRumSessionsHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * Contains the number of RUM Session Replay counts (data available beginning November 1, 2021). - */ + */ "replaySessionCount"?: number; /** * Contains the number of browser RUM lite Sessions. - */ + */ "sessionCount"?: number; /** * Contains the number of mobile RUM sessions on Android (data available beginning December 1, 2020). - */ + */ "sessionCountAndroid"?: number; /** * Contains the number of mobile RUM sessions on Flutter (data available beginning March 1, 2023). - */ + */ "sessionCountFlutter"?: number; /** * Contains the number of mobile RUM sessions on iOS (data available beginning December 1, 2020). - */ + */ "sessionCountIos"?: number; /** * Contains the number of mobile RUM sessions on React Native (data available beginning May 1, 2022). - */ + */ "sessionCountReactnative"?: number; /** @@ -63,61 +68,87 @@ export class UsageRumSessionsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - replaySessionCount: { - baseName: "replay_session_count", - type: "number", - format: "int64", + "replaySessionCount": { + "baseName": "replay_session_count", + "type": "number", + "format": "int64", }, - sessionCount: { - baseName: "session_count", - type: "number", - format: "int64", + "sessionCount": { + "baseName": "session_count", + "type": "number", + "format": "int64", }, - sessionCountAndroid: { - baseName: "session_count_android", - type: "number", - format: "int64", + "sessionCountAndroid": { + "baseName": "session_count_android", + "type": "number", + "format": "int64", }, - sessionCountFlutter: { - baseName: "session_count_flutter", - type: "number", - format: "int64", + "sessionCountFlutter": { + "baseName": "session_count_flutter", + "type": "number", + "format": "int64", }, - sessionCountIos: { - baseName: "session_count_ios", - type: "number", - format: "int64", + "sessionCountIos": { + "baseName": "session_count_ios", + "type": "number", + "format": "int64", }, - sessionCountReactnative: { - baseName: "session_count_reactnative", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sessionCountReactnative": { + "baseName": "session_count_reactnative", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageRumSessionsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageRumSessionsResponse.ts b/packages/datadog-api-client-v1/models/UsageRumSessionsResponse.ts index 9a7b35dbd13f..fd85fbf29dc6 100644 --- a/packages/datadog-api-client-v1/models/UsageRumSessionsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageRumSessionsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageRumSessionsHour } from "./UsageRumSessionsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of RUM sessions for each hour for a given organization. - */ +*/ export class UsageRumSessionsResponse { /** * Get hourly usage for RUM sessions. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageRumSessionsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageRumSessionsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageRumUnitsHour.ts b/packages/datadog-api-client-v1/models/UsageRumUnitsHour.ts index 21ae73ea65e1..16f6c7601acf 100644 --- a/packages/datadog-api-client-v1/models/UsageRumUnitsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageRumUnitsHour.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of RUM Units used for each hour for a given organization (data available as of November 1, 2021). - */ +*/ export class UsageRumUnitsHour { /** * The number of browser RUM units. - */ + */ "browserRumUnits"?: number; /** * The number of mobile RUM units. - */ + */ "mobileRumUnits"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * Total RUM units across mobile and browser RUM. - */ + */ "rumUnits"?: number; /** @@ -47,41 +52,67 @@ export class UsageRumUnitsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - browserRumUnits: { - baseName: "browser_rum_units", - type: "number", - format: "int64", + "browserRumUnits": { + "baseName": "browser_rum_units", + "type": "number", + "format": "int64", }, - mobileRumUnits: { - baseName: "mobile_rum_units", - type: "number", - format: "int64", + "mobileRumUnits": { + "baseName": "mobile_rum_units", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - rumUnits: { - baseName: "rum_units", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rumUnits": { + "baseName": "rum_units", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageRumUnitsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageRumUnitsResponse.ts b/packages/datadog-api-client-v1/models/UsageRumUnitsResponse.ts index 10df89bda45c..c877fd2024ec 100644 --- a/packages/datadog-api-client-v1/models/UsageRumUnitsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageRumUnitsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageRumUnitsHour } from "./UsageRumUnitsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of RUM Units for each hour for a given organization. - */ +*/ export class UsageRumUnitsResponse { /** * Get hourly usage for RUM Units. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageRumUnitsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageRumUnitsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSDSHour.ts b/packages/datadog-api-client-v1/models/UsageSDSHour.ts index d39dc30e9018..223945ed0647 100644 --- a/packages/datadog-api-client-v1/models/UsageSDSHour.ts +++ b/packages/datadog-api-client-v1/models/UsageSDSHour.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Sensitive Data Scanner usage for a given organization for a given hour. - */ +*/ export class UsageSDSHour { /** * The total number of bytes scanned of APM usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. - */ + */ "apmScannedBytes"?: number; /** * The total number of bytes scanned of Events usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. - */ + */ "eventsScannedBytes"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The total number of bytes scanned of logs usage by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. - */ + */ "logsScannedBytes"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The total number of bytes scanned of RUM usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. - */ + */ "rumScannedBytes"?: number; /** * The total number of bytes scanned across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. - */ + */ "totalScannedBytes"?: number; /** @@ -59,56 +64,82 @@ export class UsageSDSHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apmScannedBytes: { - baseName: "apm_scanned_bytes", - type: "number", - format: "int64", + "apmScannedBytes": { + "baseName": "apm_scanned_bytes", + "type": "number", + "format": "int64", }, - eventsScannedBytes: { - baseName: "events_scanned_bytes", - type: "number", - format: "int64", + "eventsScannedBytes": { + "baseName": "events_scanned_bytes", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - logsScannedBytes: { - baseName: "logs_scanned_bytes", - type: "number", - format: "int64", + "logsScannedBytes": { + "baseName": "logs_scanned_bytes", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - rumScannedBytes: { - baseName: "rum_scanned_bytes", - type: "number", - format: "int64", + "rumScannedBytes": { + "baseName": "rum_scanned_bytes", + "type": "number", + "format": "int64", }, - totalScannedBytes: { - baseName: "total_scanned_bytes", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalScannedBytes": { + "baseName": "total_scanned_bytes", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSDSHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSDSResponse.ts b/packages/datadog-api-client-v1/models/UsageSDSResponse.ts index b74d92525f91..3c9491fbd401 100644 --- a/packages/datadog-api-client-v1/models/UsageSDSResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSDSResponse.ts @@ -5,15 +5,20 @@ */ import { UsageSDSHour } from "./UsageSDSHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the Sensitive Data Scanner usage for each hour for a given organization. - */ +*/ export class UsageSDSResponse { /** * Get hourly usage for Sensitive Data Scanner. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageSDSResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSDSResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSNMPHour.ts b/packages/datadog-api-client-v1/models/UsageSNMPHour.ts index 24e9a79f88dd..1a36113832c3 100644 --- a/packages/datadog-api-client-v1/models/UsageSNMPHour.ts +++ b/packages/datadog-api-client-v1/models/UsageSNMPHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The number of SNMP devices for each hour for a given organization. - */ +*/ export class UsageSNMPHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * Contains the number of SNMP devices. - */ + */ "snmpDevices"?: number; /** @@ -43,36 +48,62 @@ export class UsageSNMPHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - snmpDevices: { - baseName: "snmp_devices", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "snmpDevices": { + "baseName": "snmp_devices", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSNMPHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSNMPResponse.ts b/packages/datadog-api-client-v1/models/UsageSNMPResponse.ts index 42c3d47d82ae..92032422babd 100644 --- a/packages/datadog-api-client-v1/models/UsageSNMPResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSNMPResponse.ts @@ -5,15 +5,20 @@ */ import { UsageSNMPHour } from "./UsageSNMPHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of SNMP devices for each hour for a given organization. - */ +*/ export class UsageSNMPResponse { /** * Get hourly usage for SNMP devices. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageSNMPResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSNMPResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSort.ts b/packages/datadog-api-client-v1/models/UsageSort.ts index dc3ef659c187..224559e8df32 100644 --- a/packages/datadog-api-client-v1/models/UsageSort.ts +++ b/packages/datadog-api-client-v1/models/UsageSort.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The field to sort by. - */ +*/ -export type UsageSort = - | typeof COMPUTED_ON - | typeof SIZE - | typeof START_DATE - | typeof END_DATE - | UnparsedObject; -export const COMPUTED_ON = "computed_on"; -export const SIZE = "size"; -export const START_DATE = "start_date"; -export const END_DATE = "end_date"; +export type UsageSort = typeof COMPUTED_ON| typeof SIZE| typeof START_DATE| typeof END_DATE | UnparsedObject; +export const COMPUTED_ON = 'computed_on'; +export const SIZE = 'size'; +export const START_DATE = 'start_date'; +export const END_DATE = 'end_date'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/UsageSortDirection.ts b/packages/datadog-api-client-v1/models/UsageSortDirection.ts index 3a615332d91f..fa7e305614b5 100644 --- a/packages/datadog-api-client-v1/models/UsageSortDirection.ts +++ b/packages/datadog-api-client-v1/models/UsageSortDirection.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The direction to sort by. - */ +*/ -export type UsageSortDirection = typeof DESC | typeof ASC | UnparsedObject; -export const DESC = "desc"; -export const ASC = "asc"; +export type UsageSortDirection = typeof DESC| typeof ASC | UnparsedObject; +export const DESC = 'desc'; +export const ASC = 'asc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsAttributes.ts b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsAttributes.ts index 885c11a2904c..4c60fade6e29 100644 --- a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsAttributes.ts +++ b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsAttributes.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response containing attributes for specified custom reports. - */ +*/ export class UsageSpecifiedCustomReportsAttributes { /** * The date the specified custom report was computed. - */ + */ "computedOn"?: string; /** * The ending date of specified custom report. - */ + */ "endDate"?: string; /** * A downloadable file for the specified custom reporting file. - */ + */ "location"?: string; /** * size - */ + */ "size"?: number; /** * The starting date of specified custom report. - */ + */ "startDate"?: string; /** * A list of tags to apply to specified custom reports. - */ + */ "tags"?: Array; /** @@ -51,43 +56,69 @@ export class UsageSpecifiedCustomReportsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - computedOn: { - baseName: "computed_on", - type: "string", - }, - endDate: { - baseName: "end_date", - type: "string", + "computedOn": { + "baseName": "computed_on", + "type": "string", }, - location: { - baseName: "location", - type: "string", + "endDate": { + "baseName": "end_date", + "type": "string", }, - size: { - baseName: "size", - type: "number", - format: "int64", + "location": { + "baseName": "location", + "type": "string", }, - startDate: { - baseName: "start_date", - type: "string", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, - tags: { - baseName: "tags", - type: "Array", + "startDate": { + "baseName": "start_date", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSpecifiedCustomReportsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsData.ts b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsData.ts index db7283eab142..e68d9bda79f9 100644 --- a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsData.ts +++ b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsData.ts @@ -6,23 +6,28 @@ import { UsageReportsType } from "./UsageReportsType"; import { UsageSpecifiedCustomReportsAttributes } from "./UsageSpecifiedCustomReportsAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing date and type for specified custom reports. - */ +*/ export class UsageSpecifiedCustomReportsData { /** * The response containing attributes for specified custom reports. - */ + */ "attributes"?: UsageSpecifiedCustomReportsAttributes; /** * The date for specified custom reports. - */ + */ "id"?: string; /** * The type of reports. - */ + */ "type"?: UsageReportsType; /** @@ -41,30 +46,56 @@ export class UsageSpecifiedCustomReportsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UsageSpecifiedCustomReportsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "UsageSpecifiedCustomReportsAttributes", }, - type: { - baseName: "type", - type: "UsageReportsType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsageReportsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSpecifiedCustomReportsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsMeta.ts b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsMeta.ts index 7e95bf9055c1..210b0526eebb 100644 --- a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsMeta.ts +++ b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsMeta.ts @@ -5,15 +5,20 @@ */ import { UsageSpecifiedCustomReportsPage } from "./UsageSpecifiedCustomReportsPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class UsageSpecifiedCustomReportsMeta { /** * The object containing page total count for specified ID. - */ + */ "page"?: UsageSpecifiedCustomReportsPage; /** @@ -32,22 +37,48 @@ export class UsageSpecifiedCustomReportsMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "UsageSpecifiedCustomReportsPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "UsageSpecifiedCustomReportsPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSpecifiedCustomReportsMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsPage.ts b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsPage.ts index 17b54bac6a42..fab46742de43 100644 --- a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsPage.ts +++ b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing page total count for specified ID. - */ +*/ export class UsageSpecifiedCustomReportsPage { /** * Total page count. - */ + */ "totalCount"?: number; /** @@ -31,23 +36,49 @@ export class UsageSpecifiedCustomReportsPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSpecifiedCustomReportsPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsResponse.ts b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsResponse.ts index 05bdac1f23d8..02ee29e8e159 100644 --- a/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSpecifiedCustomReportsResponse.ts @@ -6,19 +6,24 @@ import { UsageSpecifiedCustomReportsData } from "./UsageSpecifiedCustomReportsData"; import { UsageSpecifiedCustomReportsMeta } from "./UsageSpecifiedCustomReportsMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Returns available specified custom reports. - */ +*/ export class UsageSpecifiedCustomReportsResponse { /** * Response containing date and type for specified custom reports. - */ + */ "data"?: UsageSpecifiedCustomReportsData; /** * The object containing document metadata. - */ + */ "meta"?: UsageSpecifiedCustomReportsMeta; /** @@ -37,26 +42,52 @@ export class UsageSpecifiedCustomReportsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UsageSpecifiedCustomReportsData", + "data": { + "baseName": "data", + "type": "UsageSpecifiedCustomReportsData", }, - meta: { - baseName: "meta", - type: "UsageSpecifiedCustomReportsMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "UsageSpecifiedCustomReportsMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSpecifiedCustomReportsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSummaryDate.ts b/packages/datadog-api-client-v1/models/UsageSummaryDate.ts index 8957f8e38c50..d2eef588c0eb 100644 --- a/packages/datadog-api-client-v1/models/UsageSummaryDate.ts +++ b/packages/datadog-api-client-v1/models/UsageSummaryDate.ts @@ -5,663 +5,668 @@ */ import { UsageSummaryDateOrg } from "./UsageSummaryDateOrg"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with hourly report of all data billed by Datadog all organizations. - */ +*/ export class UsageSummaryDate { /** * Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. - */ + */ "agentHostTop99p"?: number; /** * Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. - */ + */ "apmAzureAppServiceHostTop99p"?: number; /** * Shows the 99th percentile of all APM DevSecOps hosts over all hours in the current date for the given org. - */ + */ "apmDevsecopsHostTop99p"?: number; /** * Shows the average of all APM ECS Fargate tasks over all hours in the current date for all organizations. - */ + */ "apmFargateCountAvg"?: number; /** * Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. - */ + */ "apmHostTop99p"?: number; /** * Shows the average of all Application Security Monitoring ECS Fargate tasks over all hours in the current date for all organizations. - */ + */ "appsecFargateCountAvg"?: number; /** * Shows the sum of all Application Security Monitoring Serverless invocations over all hours in the current date for all organizations. - */ + */ "asmServerlessSum"?: number; /** * Shows the sum of audit logs lines indexed over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "auditLogsLinesIndexedSum"?: number; /** * Shows the number of organizations that had Audit Trail enabled in the current date. - */ + */ "auditTrailEnabledHwm"?: number; /** * The average total count for Fargate Container Profiler over all hours in the current date for all organizations. - */ + */ "avgProfiledFargateTasks"?: number; /** * Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. - */ + */ "awsHostTop99p"?: number; /** * Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. - */ + */ "awsLambdaFuncCount"?: number; /** * Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. - */ + */ "awsLambdaInvocationsSum"?: number; /** * Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. - */ + */ "azureAppServiceTop99p"?: number; /** * Shows the sum of all log bytes ingested over all hours in the current date for all organizations. - */ + */ "billableIngestedBytesSum"?: number; /** * Shows the sum of all browser lite sessions over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "browserRumLiteSessionCountSum"?: number; /** * Shows the sum of all browser replay sessions over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "browserRumReplaySessionCountSum"?: number; /** * Shows the sum of all browser RUM units over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "browserRumUnitsSum"?: number; /** * Shows the sum of all CI pipeline indexed spans over all hours in the current month for all organizations. - */ + */ "ciPipelineIndexedSpansSum"?: number; /** * Shows the sum of all CI test indexed spans over all hours in the current month for all organizations. - */ + */ "ciTestIndexedSpansSum"?: number; /** * Shows the high-water mark of all CI visibility intelligent test runner committers over all hours in the current month for all organizations. - */ + */ "ciVisibilityItrCommittersHwm"?: number; /** * Shows the high-water mark of all CI visibility pipeline committers over all hours in the current month for all organizations. - */ + */ "ciVisibilityPipelineCommittersHwm"?: number; /** * Shows the high-water mark of all CI visibility test committers over all hours in the current month for all organizations. - */ + */ "ciVisibilityTestCommittersHwm"?: number; /** * Host count average of Cloud Cost Management for AWS for the given date and given organization. - */ + */ "cloudCostManagementAwsHostCountAvg"?: number; /** * Host count average of Cloud Cost Management for Azure for the given date and given organization. - */ + */ "cloudCostManagementAzureHostCountAvg"?: number; /** * Host count average of Cloud Cost Management for GCP for the given date and given organization. - */ + */ "cloudCostManagementGcpHostCountAvg"?: number; /** * Host count average of Cloud Cost Management for all cloud providers for the given date and given organization. - */ + */ "cloudCostManagementHostCountAvg"?: number; /** * Shows the sum of all Cloud Security Information and Event Management events over all hours in the current date for the given org. - */ + */ "cloudSiemEventsSum"?: number; /** * Shows the high-water mark of all Static Analysis committers over all hours in the current date for the given org. - */ + */ "codeAnalysisSaCommittersHwm"?: number; /** * Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current date for the given org. - */ + */ "codeAnalysisScaCommittersHwm"?: number; /** * Shows the 99th percentile of all Code Security hosts over all hours in the current date for the given org. - */ + */ "codeSecurityHostTop99p"?: number; /** * Shows the average of all distinct containers over all hours in the current date for all organizations. - */ + */ "containerAvg"?: number; /** * Shows the average of containers without the Datadog Agent over all hours in the current date for all organizations. - */ + */ "containerExclAgentAvg"?: number; /** * Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. - */ + */ "containerHwm"?: number; /** * Shows the sum of all Cloud Security Management Enterprise compliance containers over all hours in the current date for the given org. - */ + */ "csmContainerEnterpriseComplianceCountSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise Cloud Workload Security containers over all hours in the current date for the given org. - */ + */ "csmContainerEnterpriseCwsCountSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise containers over all hours in the current date for the given org. - */ + */ "csmContainerEnterpriseTotalCountSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Azure app services hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseAasHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise AWS hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseAwsHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Azure hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseAzureHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise compliance hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseComplianceHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Cloud Workload Security hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseCwsHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise GCP hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseGcpHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseTotalHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro Azure app services hosts over all hours in the current date for all organizations. - */ + */ "cspmAasHostTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro AWS hosts over all hours in the current date for all organizations. - */ + */ "cspmAwsHostTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro Azure hosts over all hours in the current date for all organizations. - */ + */ "cspmAzureHostTop99p"?: number; /** * Shows the average number of Cloud Security Management Pro containers over all hours in the current date for all organizations. - */ + */ "cspmContainerAvg"?: number; /** * Shows the high-water mark of Cloud Security Management Pro containers over all hours in the current date for all organizations. - */ + */ "cspmContainerHwm"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro GCP hosts over all hours in the current date for all organizations. - */ + */ "cspmGcpHostTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro hosts over all hours in the current date for all organizations. - */ + */ "cspmHostTop99p"?: number; /** * Shows the average number of distinct custom metrics over all hours in the current date for all organizations. - */ + */ "customTsAvg"?: number; /** * Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations. - */ + */ "cwsContainerCountAvg"?: number; /** * Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current date for all organizations. - */ + */ "cwsFargateTaskAvg"?: number; /** * Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. - */ + */ "cwsHostTop99p"?: number; /** * Shows the sum of all Data Jobs Monitoring hosts over all hours in the current date for the given org. - */ + */ "dataJobsMonitoringHostHrSum"?: number; /** * The date for the usage. - */ + */ "date"?: Date; /** * Shows the 99th percentile of all Database Monitoring hosts over all hours in the current date for all organizations. - */ + */ "dbmHostTop99p"?: number; /** * Shows the average of all normalized Database Monitoring queries over all hours in the current date for all organizations. - */ + */ "dbmQueriesCountAvg"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with the Datadog Agent over all hours in the current date for the given org. - */ + */ "ephInfraHostAgentSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Alibaba over all hours in the current date for the given org. - */ + */ "ephInfraHostAlibabaSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on AWS over all hours in the current date for the given org. - */ + */ "ephInfraHostAwsSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current date for the given org. - */ + */ "ephInfraHostAzureSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current date for the given org. - */ + */ "ephInfraHostEntSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on GCP over all hours in the current date for the given org. - */ + */ "ephInfraHostGcpSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Heroku over all hours in the current date for the given org. - */ + */ "ephInfraHostHerokuSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with only Azure App Services over all hours in the current date for the given org. - */ + */ "ephInfraHostOnlyAasSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with only vSphere over all hours in the current date for the given org. - */ + */ "ephInfraHostOnlyVsphereSum"?: number; /** * Shows the sum of all ephemeral APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ + */ "ephInfraHostOpentelemetryApmSum"?: number; /** * Shows the sum of all ephemeral hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ + */ "ephInfraHostOpentelemetrySum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Pro over all hours in the current date for the given org. - */ + */ "ephInfraHostProSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Pro Plus over all hours in the current date for the given org. - */ + */ "ephInfraHostProplusSum"?: number; /** * Shows the sum of all Error Tracking APM error events over all hours in the current date for the given org. - */ + */ "errorTrackingApmErrorEventsSum"?: number; /** * Shows the sum of all Error Tracking error events over all hours in the current date for the given org. - */ + */ "errorTrackingErrorEventsSum"?: number; /** * Shows the sum of all Error Tracking events over all hours in the current date for the given org. - */ + */ "errorTrackingEventsSum"?: number; /** * Shows the sum of all Error Tracking RUM error events over all hours in the current date for the given org. - */ + */ "errorTrackingRumErrorEventsSum"?: number; /** * The average number of Profiling Fargate tasks over all hours in the current date for all organizations. - */ + */ "fargateContainerProfilerProfilingFargateAvg"?: number; /** * The average number of Profiling Fargate Elastic Kubernetes Service tasks over all hours in the current date for all organizations. - */ + */ "fargateContainerProfilerProfilingFargateEksAvg"?: number; /** * Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. - */ + */ "fargateTasksCountAvg"?: number; /** * Shows the average of all Fargate tasks over all hours in the current date for all organizations. - */ + */ "fargateTasksCountHwm"?: number; /** * Shows the average number of Flex Logs Compute Large Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeLargeAvg"?: number; /** * Shows the average number of Flex Logs Compute Medium Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeMediumAvg"?: number; /** * Shows the average number of Flex Logs Compute Small Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeSmallAvg"?: number; /** * Shows the average number of Flex Logs Compute Extra Small Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeXsmallAvg"?: number; /** * Shows the average number of Flex Logs Starter Instances over all hours in the current date for the given org. - */ + */ "flexLogsStarterAvg"?: number; /** * Shows the average number of Flex Logs Starter Storage Index Instances over all hours in the current date for the given org. - */ + */ "flexLogsStarterStorageIndexAvg"?: number; /** * Shows the average number of Flex Logs Starter Storage Retention Adjustment Instances over all hours in the current date for the given org. - */ + */ "flexLogsStarterStorageRetentionAdjustmentAvg"?: number; /** * Shows the average of all Flex Stored Logs over all hours in the current date for the given org. - */ + */ "flexStoredLogsAvg"?: number; /** * Shows the sum of all log bytes forwarded over all hours in the current date for all organizations. - */ + */ "forwardingEventsBytesSum"?: number; /** * Shows the 99th percentile of all GCP hosts over all hours in the current date for all organizations. - */ + */ "gcpHostTop99p"?: number; /** * Shows the 99th percentile of all Heroku dynos over all hours in the current date for all organizations. - */ + */ "herokuHostTop99p"?: number; /** * Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations. - */ + */ "incidentManagementMonthlyActiveUsersHwm"?: number; /** * Shows the sum of all log events indexed over all hours in the current date for all organizations. - */ + */ "indexedEventsCountSum"?: number; /** * Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. - */ + */ "infraHostTop99p"?: number; /** * Shows the sum of all log bytes ingested over all hours in the current date for all organizations. - */ + */ "ingestedEventsBytesSum"?: number; /** * Shows the sum of all IoT devices over all hours in the current date for all organizations. - */ + */ "iotDeviceSum"?: number; /** * Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. - */ + */ "iotDeviceTop99p"?: number; /** * Shows the sum of all mobile lite sessions over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumLiteSessionCountSum"?: number; /** * Shows the sum of all mobile RUM sessions on Android over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM sessions on Flutter over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountFlutterSum"?: number; /** * Shows the sum of all mobile RUM sessions on iOS over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM sessions on React Native over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountReactnativeSum"?: number; /** * Shows the sum of all mobile RUM sessions on Roku over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountRokuSum"?: number; /** * Shows the sum of all mobile RUM sessions over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountSum"?: number; /** * Shows the sum of all mobile RUM units over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumUnitsSum"?: number; /** * Shows the sum of all Network Device Monitoring NetFlow events over all hours in the current date for the given org. - */ + */ "ndmNetflowEventsSum"?: number; /** * Shows the sum of all Network flows indexed over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "netflowIndexedEventsCountSum"?: number; /** * Shows the 99th percentile of all distinct Cloud Network Monitoring hosts (formerly known as Network hosts) over all hours in the current date for all organizations. - */ + */ "npmHostTop99p"?: number; /** * Sum of all observability pipelines bytes processed over all hours in the current date for the given org. - */ + */ "observabilityPipelinesBytesProcessedSum"?: number; /** * Shows the sum of all Oracle Cloud Infrastructure hosts over all hours in the current date for the given org. - */ + */ "ociHostSum"?: number; /** * Shows the 99th percentile of all Oracle Cloud Infrastructure hosts over all hours in the current date for the given org. - */ + */ "ociHostTop99p"?: number; /** * Sum of all online archived events over all hours in the current date for all organizations. - */ + */ "onlineArchiveEventsCountSum"?: number; /** * Shows the 99th percentile of APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. - */ + */ "opentelemetryApmHostTop99p"?: number; /** * Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. - */ + */ "opentelemetryHostTop99p"?: number; /** * Organizations associated with a user. - */ + */ "orgs"?: Array; /** * Shows the 99th percentile of all profiled Azure app services over all hours in the current date for all organizations. - */ + */ "profilingAasCountTop99p"?: number; /** * Shows the 99th percentile of all profiled hosts over all hours within the current date for all organizations. - */ + */ "profilingHostTop99p"?: number; /** * Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rumBrowserAndMobileSessionCount"?: number; /** * Shows the sum of all browser RUM legacy sessions over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumBrowserLegacySessionCountSum"?: number; /** * Shows the sum of all browser RUM lite sessions over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumBrowserLiteSessionCountSum"?: number; /** * Shows the sum of all browser RUM Session Replay counts over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumBrowserReplaySessionCountSum"?: number; /** * Shows the sum of all RUM lite sessions (browser and mobile) over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumLiteSessionCountSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Android over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM legacy Sessions on Flutter over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountFlutterSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on iOS over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on React Native over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountReactnativeSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Roku over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountRokuSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Android over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Flutter over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountFlutterSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on iOS over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Kotlin Multiplatform over all hours within the current date for all organizations. - */ + */ "rumMobileLiteSessionCountKotlinmultiplatformSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on React Native over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountReactnativeSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Roku over all hours within the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountRokuSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Unity over all hours within the current date for all organizations. - */ + */ "rumMobileLiteSessionCountUnitySum"?: number; /** * Shows the sum of all mobile RUM replay sessions on Android over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on iOS over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on Kotlin Multiplatform over all hours within the current date for all organizations. - */ + */ "rumMobileReplaySessionCountKotlinmultiplatformSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on React Native over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountReactnativeSum"?: number; /** * Shows the sum of all RUM Session Replay counts over all hours in the current date for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumReplaySessionCountSum"?: number; /** * Shows the sum of all browser RUM lite sessions over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rumSessionCountSum"?: number; /** * Shows the sum of RUM sessions (browser and mobile) over all hours in the current date for all organizations. - */ + */ "rumTotalSessionCountSum"?: number; /** * Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rumUnitsSum"?: number; /** * Shows the average of all Software Composition Analysis Fargate tasks over all hours in the current date for the given org. - */ + */ "scaFargateCountAvg"?: number; /** * Shows the sum of the high-water marks of all Software Composition Analysis Fargate tasks over all hours in the current date for the given org. - */ + */ "scaFargateCountHwm"?: number; /** * Sum of all APM bytes scanned with sensitive data scanner over all hours in the current date for all organizations. - */ + */ "sdsApmScannedBytesSum"?: number; /** * Sum of all event stream events bytes scanned with sensitive data scanner over all hours in the current date for all organizations. - */ + */ "sdsEventsScannedBytesSum"?: number; /** * Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. - */ + */ "sdsLogsScannedBytesSum"?: number; /** * Sum of all RUM bytes scanned with sensitive data scanner over all hours in the current date for all organizations. - */ + */ "sdsRumScannedBytesSum"?: number; /** * Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. - */ + */ "sdsTotalScannedBytesSum"?: number; /** * Shows the average of the number of Serverless Apps for Azure for the given date and given org. - */ + */ "serverlessAppsAzureCountAvg"?: number; /** * Shows the average of the number of Serverless Apps for Google Cloud for the given date and given org. - */ + */ "serverlessAppsGoogleCountAvg"?: number; /** * Shows the average of the number of Serverless Apps for Azure and Google Cloud for the given date and given org. - */ + */ "serverlessAppsTotalCountAvg"?: number; /** * Shows the sum of all log events analyzed by Cloud SIEM over all hours in the current date for the given org. - */ + */ "siemAnalyzedLogsAddOnCountSum"?: number; /** * Shows the sum of all Synthetic browser tests over all hours in the current date for all organizations. - */ + */ "syntheticsBrowserCheckCallsCountSum"?: number; /** * Shows the sum of all Synthetic API tests over all hours in the current date for all organizations. - */ + */ "syntheticsCheckCallsCountSum"?: number; /** * Shows the sum of all Synthetic mobile application tests over all hours in the current date for all organizations. - */ + */ "syntheticsMobileTestRunsSum"?: number; /** * Shows the high-water mark of used synthetics parallel testing slots over all hours in the current date for all organizations. - */ + */ "syntheticsParallelTestingMaxSlotsHwm"?: number; /** * Shows the sum of all Indexed Spans indexed over all hours in the current date for all organizations. - */ + */ "traceSearchIndexedEventsCountSum"?: number; /** * Shows the sum of all ingested APM span bytes over all hours in the current date for all organizations. - */ + */ "twolIngestedEventsBytesSum"?: number; /** * Shows the 99th percentile of all universal service management hosts over all hours in the current date for the given org. - */ + */ "universalServiceMonitoringHostTop99p"?: number; /** * Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations. - */ + */ "vsphereHostTop99p"?: number; /** * Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org. - */ + */ "vulnManagementHostCountTop99p"?: number; /** * Sum of all workflows executed over all hours in the current date for all organizations. - */ + */ "workflowExecutionsUsageSum"?: number; /** @@ -680,832 +685,858 @@ export class UsageSummaryDate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - agentHostTop99p: { - baseName: "agent_host_top99p", - type: "number", - format: "int64", - }, - apmAzureAppServiceHostTop99p: { - baseName: "apm_azure_app_service_host_top99p", - type: "number", - format: "int64", - }, - apmDevsecopsHostTop99p: { - baseName: "apm_devsecops_host_top99p", - type: "number", - format: "int64", - }, - apmFargateCountAvg: { - baseName: "apm_fargate_count_avg", - type: "number", - format: "int64", - }, - apmHostTop99p: { - baseName: "apm_host_top99p", - type: "number", - format: "int64", - }, - appsecFargateCountAvg: { - baseName: "appsec_fargate_count_avg", - type: "number", - format: "int64", - }, - asmServerlessSum: { - baseName: "asm_serverless_sum", - type: "number", - format: "int64", - }, - auditLogsLinesIndexedSum: { - baseName: "audit_logs_lines_indexed_sum", - type: "number", - format: "int64", - }, - auditTrailEnabledHwm: { - baseName: "audit_trail_enabled_hwm", - type: "number", - format: "int64", - }, - avgProfiledFargateTasks: { - baseName: "avg_profiled_fargate_tasks", - type: "number", - format: "int64", - }, - awsHostTop99p: { - baseName: "aws_host_top99p", - type: "number", - format: "int64", - }, - awsLambdaFuncCount: { - baseName: "aws_lambda_func_count", - type: "number", - format: "int64", - }, - awsLambdaInvocationsSum: { - baseName: "aws_lambda_invocations_sum", - type: "number", - format: "int64", - }, - azureAppServiceTop99p: { - baseName: "azure_app_service_top99p", - type: "number", - format: "int64", - }, - billableIngestedBytesSum: { - baseName: "billable_ingested_bytes_sum", - type: "number", - format: "int64", - }, - browserRumLiteSessionCountSum: { - baseName: "browser_rum_lite_session_count_sum", - type: "number", - format: "int64", - }, - browserRumReplaySessionCountSum: { - baseName: "browser_rum_replay_session_count_sum", - type: "number", - format: "int64", - }, - browserRumUnitsSum: { - baseName: "browser_rum_units_sum", - type: "number", - format: "int64", - }, - ciPipelineIndexedSpansSum: { - baseName: "ci_pipeline_indexed_spans_sum", - type: "number", - format: "int64", - }, - ciTestIndexedSpansSum: { - baseName: "ci_test_indexed_spans_sum", - type: "number", - format: "int64", - }, - ciVisibilityItrCommittersHwm: { - baseName: "ci_visibility_itr_committers_hwm", - type: "number", - format: "int64", - }, - ciVisibilityPipelineCommittersHwm: { - baseName: "ci_visibility_pipeline_committers_hwm", - type: "number", - format: "int64", - }, - ciVisibilityTestCommittersHwm: { - baseName: "ci_visibility_test_committers_hwm", - type: "number", - format: "int64", - }, - cloudCostManagementAwsHostCountAvg: { - baseName: "cloud_cost_management_aws_host_count_avg", - type: "number", - format: "int64", - }, - cloudCostManagementAzureHostCountAvg: { - baseName: "cloud_cost_management_azure_host_count_avg", - type: "number", - format: "int64", - }, - cloudCostManagementGcpHostCountAvg: { - baseName: "cloud_cost_management_gcp_host_count_avg", - type: "number", - format: "int64", - }, - cloudCostManagementHostCountAvg: { - baseName: "cloud_cost_management_host_count_avg", - type: "number", - format: "int64", - }, - cloudSiemEventsSum: { - baseName: "cloud_siem_events_sum", - type: "number", - format: "int64", - }, - codeAnalysisSaCommittersHwm: { - baseName: "code_analysis_sa_committers_hwm", - type: "number", - format: "int64", - }, - codeAnalysisScaCommittersHwm: { - baseName: "code_analysis_sca_committers_hwm", - type: "number", - format: "int64", - }, - codeSecurityHostTop99p: { - baseName: "code_security_host_top99p", - type: "number", - format: "int64", - }, - containerAvg: { - baseName: "container_avg", - type: "number", - format: "int64", - }, - containerExclAgentAvg: { - baseName: "container_excl_agent_avg", - type: "number", - format: "int64", - }, - containerHwm: { - baseName: "container_hwm", - type: "number", - format: "int64", - }, - csmContainerEnterpriseComplianceCountSum: { - baseName: "csm_container_enterprise_compliance_count_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseCwsCountSum: { - baseName: "csm_container_enterprise_cws_count_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseTotalCountSum: { - baseName: "csm_container_enterprise_total_count_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseAasHostCountTop99p: { - baseName: "csm_host_enterprise_aas_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseAwsHostCountTop99p: { - baseName: "csm_host_enterprise_aws_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseAzureHostCountTop99p: { - baseName: "csm_host_enterprise_azure_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseComplianceHostCountTop99p: { - baseName: "csm_host_enterprise_compliance_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseCwsHostCountTop99p: { - baseName: "csm_host_enterprise_cws_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseGcpHostCountTop99p: { - baseName: "csm_host_enterprise_gcp_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseTotalHostCountTop99p: { - baseName: "csm_host_enterprise_total_host_count_top99p", - type: "number", - format: "int64", - }, - cspmAasHostTop99p: { - baseName: "cspm_aas_host_top99p", - type: "number", - format: "int64", - }, - cspmAwsHostTop99p: { - baseName: "cspm_aws_host_top99p", - type: "number", - format: "int64", - }, - cspmAzureHostTop99p: { - baseName: "cspm_azure_host_top99p", - type: "number", - format: "int64", - }, - cspmContainerAvg: { - baseName: "cspm_container_avg", - type: "number", - format: "int64", - }, - cspmContainerHwm: { - baseName: "cspm_container_hwm", - type: "number", - format: "int64", - }, - cspmGcpHostTop99p: { - baseName: "cspm_gcp_host_top99p", - type: "number", - format: "int64", - }, - cspmHostTop99p: { - baseName: "cspm_host_top99p", - type: "number", - format: "int64", - }, - customTsAvg: { - baseName: "custom_ts_avg", - type: "number", - format: "int64", - }, - cwsContainerCountAvg: { - baseName: "cws_container_count_avg", - type: "number", - format: "int64", - }, - cwsFargateTaskAvg: { - baseName: "cws_fargate_task_avg", - type: "number", - format: "int64", - }, - cwsHostTop99p: { - baseName: "cws_host_top99p", - type: "number", - format: "int64", - }, - dataJobsMonitoringHostHrSum: { - baseName: "data_jobs_monitoring_host_hr_sum", - type: "number", - format: "int64", - }, - date: { - baseName: "date", - type: "Date", - format: "date-time", - }, - dbmHostTop99p: { - baseName: "dbm_host_top99p", - type: "number", - format: "int64", - }, - dbmQueriesCountAvg: { - baseName: "dbm_queries_count_avg", - type: "number", - format: "int64", - }, - ephInfraHostAgentSum: { - baseName: "eph_infra_host_agent_sum", - type: "number", - format: "int64", - }, - ephInfraHostAlibabaSum: { - baseName: "eph_infra_host_alibaba_sum", - type: "number", - format: "int64", - }, - ephInfraHostAwsSum: { - baseName: "eph_infra_host_aws_sum", - type: "number", - format: "int64", - }, - ephInfraHostAzureSum: { - baseName: "eph_infra_host_azure_sum", - type: "number", - format: "int64", - }, - ephInfraHostEntSum: { - baseName: "eph_infra_host_ent_sum", - type: "number", - format: "int64", - }, - ephInfraHostGcpSum: { - baseName: "eph_infra_host_gcp_sum", - type: "number", - format: "int64", - }, - ephInfraHostHerokuSum: { - baseName: "eph_infra_host_heroku_sum", - type: "number", - format: "int64", - }, - ephInfraHostOnlyAasSum: { - baseName: "eph_infra_host_only_aas_sum", - type: "number", - format: "int64", - }, - ephInfraHostOnlyVsphereSum: { - baseName: "eph_infra_host_only_vsphere_sum", - type: "number", - format: "int64", - }, - ephInfraHostOpentelemetryApmSum: { - baseName: "eph_infra_host_opentelemetry_apm_sum", - type: "number", - format: "int64", - }, - ephInfraHostOpentelemetrySum: { - baseName: "eph_infra_host_opentelemetry_sum", - type: "number", - format: "int64", - }, - ephInfraHostProSum: { - baseName: "eph_infra_host_pro_sum", - type: "number", - format: "int64", - }, - ephInfraHostProplusSum: { - baseName: "eph_infra_host_proplus_sum", - type: "number", - format: "int64", - }, - errorTrackingApmErrorEventsSum: { - baseName: "error_tracking_apm_error_events_sum", - type: "number", - format: "int64", - }, - errorTrackingErrorEventsSum: { - baseName: "error_tracking_error_events_sum", - type: "number", - format: "int64", - }, - errorTrackingEventsSum: { - baseName: "error_tracking_events_sum", - type: "number", - format: "int64", - }, - errorTrackingRumErrorEventsSum: { - baseName: "error_tracking_rum_error_events_sum", - type: "number", - format: "int64", - }, - fargateContainerProfilerProfilingFargateAvg: { - baseName: "fargate_container_profiler_profiling_fargate_avg", - type: "number", - format: "int64", - }, - fargateContainerProfilerProfilingFargateEksAvg: { - baseName: "fargate_container_profiler_profiling_fargate_eks_avg", - type: "number", - format: "int64", - }, - fargateTasksCountAvg: { - baseName: "fargate_tasks_count_avg", - type: "number", - format: "int64", - }, - fargateTasksCountHwm: { - baseName: "fargate_tasks_count_hwm", - type: "number", - format: "int64", - }, - flexLogsComputeLargeAvg: { - baseName: "flex_logs_compute_large_avg", - type: "number", - format: "int64", - }, - flexLogsComputeMediumAvg: { - baseName: "flex_logs_compute_medium_avg", - type: "number", - format: "int64", - }, - flexLogsComputeSmallAvg: { - baseName: "flex_logs_compute_small_avg", - type: "number", - format: "int64", - }, - flexLogsComputeXsmallAvg: { - baseName: "flex_logs_compute_xsmall_avg", - type: "number", - format: "int64", - }, - flexLogsStarterAvg: { - baseName: "flex_logs_starter_avg", - type: "number", - format: "int64", - }, - flexLogsStarterStorageIndexAvg: { - baseName: "flex_logs_starter_storage_index_avg", - type: "number", - format: "int64", - }, - flexLogsStarterStorageRetentionAdjustmentAvg: { - baseName: "flex_logs_starter_storage_retention_adjustment_avg", - type: "number", - format: "int64", - }, - flexStoredLogsAvg: { - baseName: "flex_stored_logs_avg", - type: "number", - format: "int64", - }, - forwardingEventsBytesSum: { - baseName: "forwarding_events_bytes_sum", - type: "number", - format: "int64", - }, - gcpHostTop99p: { - baseName: "gcp_host_top99p", - type: "number", - format: "int64", - }, - herokuHostTop99p: { - baseName: "heroku_host_top99p", - type: "number", - format: "int64", - }, - incidentManagementMonthlyActiveUsersHwm: { - baseName: "incident_management_monthly_active_users_hwm", - type: "number", - format: "int64", - }, - indexedEventsCountSum: { - baseName: "indexed_events_count_sum", - type: "number", - format: "int64", - }, - infraHostTop99p: { - baseName: "infra_host_top99p", - type: "number", - format: "int64", - }, - ingestedEventsBytesSum: { - baseName: "ingested_events_bytes_sum", - type: "number", - format: "int64", - }, - iotDeviceSum: { - baseName: "iot_device_sum", - type: "number", - format: "int64", - }, - iotDeviceTop99p: { - baseName: "iot_device_top99p", - type: "number", - format: "int64", - }, - mobileRumLiteSessionCountSum: { - baseName: "mobile_rum_lite_session_count_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountAndroidSum: { - baseName: "mobile_rum_session_count_android_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountFlutterSum: { - baseName: "mobile_rum_session_count_flutter_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountIosSum: { - baseName: "mobile_rum_session_count_ios_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountReactnativeSum: { - baseName: "mobile_rum_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountRokuSum: { - baseName: "mobile_rum_session_count_roku_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountSum: { - baseName: "mobile_rum_session_count_sum", - type: "number", - format: "int64", - }, - mobileRumUnitsSum: { - baseName: "mobile_rum_units_sum", - type: "number", - format: "int64", - }, - ndmNetflowEventsSum: { - baseName: "ndm_netflow_events_sum", - type: "number", - format: "int64", - }, - netflowIndexedEventsCountSum: { - baseName: "netflow_indexed_events_count_sum", - type: "number", - format: "int64", - }, - npmHostTop99p: { - baseName: "npm_host_top99p", - type: "number", - format: "int64", - }, - observabilityPipelinesBytesProcessedSum: { - baseName: "observability_pipelines_bytes_processed_sum", - type: "number", - format: "int64", - }, - ociHostSum: { - baseName: "oci_host_sum", - type: "number", - format: "int64", - }, - ociHostTop99p: { - baseName: "oci_host_top99p", - type: "number", - format: "int64", - }, - onlineArchiveEventsCountSum: { - baseName: "online_archive_events_count_sum", - type: "number", - format: "int64", - }, - opentelemetryApmHostTop99p: { - baseName: "opentelemetry_apm_host_top99p", - type: "number", - format: "int64", - }, - opentelemetryHostTop99p: { - baseName: "opentelemetry_host_top99p", - type: "number", - format: "int64", - }, - orgs: { - baseName: "orgs", - type: "Array", - }, - profilingAasCountTop99p: { - baseName: "profiling_aas_count_top99p", - type: "number", - format: "int64", - }, - profilingHostTop99p: { - baseName: "profiling_host_top99p", - type: "number", - format: "int64", - }, - rumBrowserAndMobileSessionCount: { - baseName: "rum_browser_and_mobile_session_count", - type: "number", - format: "int64", - }, - rumBrowserLegacySessionCountSum: { - baseName: "rum_browser_legacy_session_count_sum", - type: "number", - format: "int64", - }, - rumBrowserLiteSessionCountSum: { - baseName: "rum_browser_lite_session_count_sum", - type: "number", - format: "int64", - }, - rumBrowserReplaySessionCountSum: { - baseName: "rum_browser_replay_session_count_sum", - type: "number", - format: "int64", - }, - rumLiteSessionCountSum: { - baseName: "rum_lite_session_count_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountAndroidSum: { - baseName: "rum_mobile_legacy_session_count_android_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountFlutterSum: { - baseName: "rum_mobile_legacy_session_count_flutter_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountIosSum: { - baseName: "rum_mobile_legacy_session_count_ios_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountReactnativeSum: { - baseName: "rum_mobile_legacy_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountRokuSum: { - baseName: "rum_mobile_legacy_session_count_roku_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountAndroidSum: { - baseName: "rum_mobile_lite_session_count_android_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountFlutterSum: { - baseName: "rum_mobile_lite_session_count_flutter_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountIosSum: { - baseName: "rum_mobile_lite_session_count_ios_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountKotlinmultiplatformSum: { - baseName: "rum_mobile_lite_session_count_kotlinmultiplatform_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountReactnativeSum: { - baseName: "rum_mobile_lite_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountRokuSum: { - baseName: "rum_mobile_lite_session_count_roku_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountUnitySum: { - baseName: "rum_mobile_lite_session_count_unity_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountAndroidSum: { - baseName: "rum_mobile_replay_session_count_android_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountIosSum: { - baseName: "rum_mobile_replay_session_count_ios_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountKotlinmultiplatformSum: { - baseName: "rum_mobile_replay_session_count_kotlinmultiplatform_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountReactnativeSum: { - baseName: "rum_mobile_replay_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - rumReplaySessionCountSum: { - baseName: "rum_replay_session_count_sum", - type: "number", - format: "int64", - }, - rumSessionCountSum: { - baseName: "rum_session_count_sum", - type: "number", - format: "int64", - }, - rumTotalSessionCountSum: { - baseName: "rum_total_session_count_sum", - type: "number", - format: "int64", - }, - rumUnitsSum: { - baseName: "rum_units_sum", - type: "number", - format: "int64", - }, - scaFargateCountAvg: { - baseName: "sca_fargate_count_avg", - type: "number", - format: "int64", - }, - scaFargateCountHwm: { - baseName: "sca_fargate_count_hwm", - type: "number", - format: "int64", - }, - sdsApmScannedBytesSum: { - baseName: "sds_apm_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsEventsScannedBytesSum: { - baseName: "sds_events_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsLogsScannedBytesSum: { - baseName: "sds_logs_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsRumScannedBytesSum: { - baseName: "sds_rum_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsTotalScannedBytesSum: { - baseName: "sds_total_scanned_bytes_sum", - type: "number", - format: "int64", - }, - serverlessAppsAzureCountAvg: { - baseName: "serverless_apps_azure_count_avg", - type: "number", - format: "int64", - }, - serverlessAppsGoogleCountAvg: { - baseName: "serverless_apps_google_count_avg", - type: "number", - format: "int64", - }, - serverlessAppsTotalCountAvg: { - baseName: "serverless_apps_total_count_avg", - type: "number", - format: "int64", - }, - siemAnalyzedLogsAddOnCountSum: { - baseName: "siem_analyzed_logs_add_on_count_sum", - type: "number", - format: "int64", - }, - syntheticsBrowserCheckCallsCountSum: { - baseName: "synthetics_browser_check_calls_count_sum", - type: "number", - format: "int64", - }, - syntheticsCheckCallsCountSum: { - baseName: "synthetics_check_calls_count_sum", - type: "number", - format: "int64", - }, - syntheticsMobileTestRunsSum: { - baseName: "synthetics_mobile_test_runs_sum", - type: "number", - format: "int64", - }, - syntheticsParallelTestingMaxSlotsHwm: { - baseName: "synthetics_parallel_testing_max_slots_hwm", - type: "number", - format: "int64", - }, - traceSearchIndexedEventsCountSum: { - baseName: "trace_search_indexed_events_count_sum", - type: "number", - format: "int64", - }, - twolIngestedEventsBytesSum: { - baseName: "twol_ingested_events_bytes_sum", - type: "number", - format: "int64", - }, - universalServiceMonitoringHostTop99p: { - baseName: "universal_service_monitoring_host_top99p", - type: "number", - format: "int64", - }, - vsphereHostTop99p: { - baseName: "vsphere_host_top99p", - type: "number", - format: "int64", - }, - vulnManagementHostCountTop99p: { - baseName: "vuln_management_host_count_top99p", - type: "number", - format: "int64", - }, - workflowExecutionsUsageSum: { - baseName: "workflow_executions_usage_sum", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "agentHostTop99p": { + "baseName": "agent_host_top99p", + "type": "number", + "format": "int64", + }, + "apmAzureAppServiceHostTop99p": { + "baseName": "apm_azure_app_service_host_top99p", + "type": "number", + "format": "int64", + }, + "apmDevsecopsHostTop99p": { + "baseName": "apm_devsecops_host_top99p", + "type": "number", + "format": "int64", + }, + "apmFargateCountAvg": { + "baseName": "apm_fargate_count_avg", + "type": "number", + "format": "int64", + }, + "apmHostTop99p": { + "baseName": "apm_host_top99p", + "type": "number", + "format": "int64", + }, + "appsecFargateCountAvg": { + "baseName": "appsec_fargate_count_avg", + "type": "number", + "format": "int64", + }, + "asmServerlessSum": { + "baseName": "asm_serverless_sum", + "type": "number", + "format": "int64", + }, + "auditLogsLinesIndexedSum": { + "baseName": "audit_logs_lines_indexed_sum", + "type": "number", + "format": "int64", + }, + "auditTrailEnabledHwm": { + "baseName": "audit_trail_enabled_hwm", + "type": "number", + "format": "int64", + }, + "avgProfiledFargateTasks": { + "baseName": "avg_profiled_fargate_tasks", + "type": "number", + "format": "int64", + }, + "awsHostTop99p": { + "baseName": "aws_host_top99p", + "type": "number", + "format": "int64", + }, + "awsLambdaFuncCount": { + "baseName": "aws_lambda_func_count", + "type": "number", + "format": "int64", + }, + "awsLambdaInvocationsSum": { + "baseName": "aws_lambda_invocations_sum", + "type": "number", + "format": "int64", + }, + "azureAppServiceTop99p": { + "baseName": "azure_app_service_top99p", + "type": "number", + "format": "int64", + }, + "billableIngestedBytesSum": { + "baseName": "billable_ingested_bytes_sum", + "type": "number", + "format": "int64", + }, + "browserRumLiteSessionCountSum": { + "baseName": "browser_rum_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "browserRumReplaySessionCountSum": { + "baseName": "browser_rum_replay_session_count_sum", + "type": "number", + "format": "int64", + }, + "browserRumUnitsSum": { + "baseName": "browser_rum_units_sum", + "type": "number", + "format": "int64", + }, + "ciPipelineIndexedSpansSum": { + "baseName": "ci_pipeline_indexed_spans_sum", + "type": "number", + "format": "int64", + }, + "ciTestIndexedSpansSum": { + "baseName": "ci_test_indexed_spans_sum", + "type": "number", + "format": "int64", + }, + "ciVisibilityItrCommittersHwm": { + "baseName": "ci_visibility_itr_committers_hwm", + "type": "number", + "format": "int64", + }, + "ciVisibilityPipelineCommittersHwm": { + "baseName": "ci_visibility_pipeline_committers_hwm", + "type": "number", + "format": "int64", + }, + "ciVisibilityTestCommittersHwm": { + "baseName": "ci_visibility_test_committers_hwm", + "type": "number", + "format": "int64", + }, + "cloudCostManagementAwsHostCountAvg": { + "baseName": "cloud_cost_management_aws_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudCostManagementAzureHostCountAvg": { + "baseName": "cloud_cost_management_azure_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudCostManagementGcpHostCountAvg": { + "baseName": "cloud_cost_management_gcp_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudCostManagementHostCountAvg": { + "baseName": "cloud_cost_management_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudSiemEventsSum": { + "baseName": "cloud_siem_events_sum", + "type": "number", + "format": "int64", + }, + "codeAnalysisSaCommittersHwm": { + "baseName": "code_analysis_sa_committers_hwm", + "type": "number", + "format": "int64", + }, + "codeAnalysisScaCommittersHwm": { + "baseName": "code_analysis_sca_committers_hwm", + "type": "number", + "format": "int64", + }, + "codeSecurityHostTop99p": { + "baseName": "code_security_host_top99p", + "type": "number", + "format": "int64", + }, + "containerAvg": { + "baseName": "container_avg", + "type": "number", + "format": "int64", + }, + "containerExclAgentAvg": { + "baseName": "container_excl_agent_avg", + "type": "number", + "format": "int64", + }, + "containerHwm": { + "baseName": "container_hwm", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseComplianceCountSum": { + "baseName": "csm_container_enterprise_compliance_count_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseCwsCountSum": { + "baseName": "csm_container_enterprise_cws_count_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseTotalCountSum": { + "baseName": "csm_container_enterprise_total_count_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAasHostCountTop99p": { + "baseName": "csm_host_enterprise_aas_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAwsHostCountTop99p": { + "baseName": "csm_host_enterprise_aws_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAzureHostCountTop99p": { + "baseName": "csm_host_enterprise_azure_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseComplianceHostCountTop99p": { + "baseName": "csm_host_enterprise_compliance_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseCwsHostCountTop99p": { + "baseName": "csm_host_enterprise_cws_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseGcpHostCountTop99p": { + "baseName": "csm_host_enterprise_gcp_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseTotalHostCountTop99p": { + "baseName": "csm_host_enterprise_total_host_count_top99p", + "type": "number", + "format": "int64", + }, + "cspmAasHostTop99p": { + "baseName": "cspm_aas_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmAwsHostTop99p": { + "baseName": "cspm_aws_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmAzureHostTop99p": { + "baseName": "cspm_azure_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmContainerAvg": { + "baseName": "cspm_container_avg", + "type": "number", + "format": "int64", + }, + "cspmContainerHwm": { + "baseName": "cspm_container_hwm", + "type": "number", + "format": "int64", + }, + "cspmGcpHostTop99p": { + "baseName": "cspm_gcp_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmHostTop99p": { + "baseName": "cspm_host_top99p", + "type": "number", + "format": "int64", + }, + "customTsAvg": { + "baseName": "custom_ts_avg", + "type": "number", + "format": "int64", + }, + "cwsContainerCountAvg": { + "baseName": "cws_container_count_avg", + "type": "number", + "format": "int64", + }, + "cwsFargateTaskAvg": { + "baseName": "cws_fargate_task_avg", + "type": "number", + "format": "int64", + }, + "cwsHostTop99p": { + "baseName": "cws_host_top99p", + "type": "number", + "format": "int64", + }, + "dataJobsMonitoringHostHrSum": { + "baseName": "data_jobs_monitoring_host_hr_sum", + "type": "number", + "format": "int64", + }, + "date": { + "baseName": "date", + "type": "Date", + "format": "date-time", + }, + "dbmHostTop99p": { + "baseName": "dbm_host_top99p", + "type": "number", + "format": "int64", + }, + "dbmQueriesCountAvg": { + "baseName": "dbm_queries_count_avg", + "type": "number", + "format": "int64", + }, + "ephInfraHostAgentSum": { + "baseName": "eph_infra_host_agent_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAlibabaSum": { + "baseName": "eph_infra_host_alibaba_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAwsSum": { + "baseName": "eph_infra_host_aws_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAzureSum": { + "baseName": "eph_infra_host_azure_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostEntSum": { + "baseName": "eph_infra_host_ent_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostGcpSum": { + "baseName": "eph_infra_host_gcp_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostHerokuSum": { + "baseName": "eph_infra_host_heroku_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOnlyAasSum": { + "baseName": "eph_infra_host_only_aas_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOnlyVsphereSum": { + "baseName": "eph_infra_host_only_vsphere_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOpentelemetryApmSum": { + "baseName": "eph_infra_host_opentelemetry_apm_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOpentelemetrySum": { + "baseName": "eph_infra_host_opentelemetry_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostProSum": { + "baseName": "eph_infra_host_pro_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostProplusSum": { + "baseName": "eph_infra_host_proplus_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingApmErrorEventsSum": { + "baseName": "error_tracking_apm_error_events_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingErrorEventsSum": { + "baseName": "error_tracking_error_events_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingEventsSum": { + "baseName": "error_tracking_events_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingRumErrorEventsSum": { + "baseName": "error_tracking_rum_error_events_sum", + "type": "number", + "format": "int64", + }, + "fargateContainerProfilerProfilingFargateAvg": { + "baseName": "fargate_container_profiler_profiling_fargate_avg", + "type": "number", + "format": "int64", + }, + "fargateContainerProfilerProfilingFargateEksAvg": { + "baseName": "fargate_container_profiler_profiling_fargate_eks_avg", + "type": "number", + "format": "int64", + }, + "fargateTasksCountAvg": { + "baseName": "fargate_tasks_count_avg", + "type": "number", + "format": "int64", + }, + "fargateTasksCountHwm": { + "baseName": "fargate_tasks_count_hwm", + "type": "number", + "format": "int64", + }, + "flexLogsComputeLargeAvg": { + "baseName": "flex_logs_compute_large_avg", + "type": "number", + "format": "int64", + }, + "flexLogsComputeMediumAvg": { + "baseName": "flex_logs_compute_medium_avg", + "type": "number", + "format": "int64", + }, + "flexLogsComputeSmallAvg": { + "baseName": "flex_logs_compute_small_avg", + "type": "number", + "format": "int64", + }, + "flexLogsComputeXsmallAvg": { + "baseName": "flex_logs_compute_xsmall_avg", + "type": "number", + "format": "int64", + }, + "flexLogsStarterAvg": { + "baseName": "flex_logs_starter_avg", + "type": "number", + "format": "int64", + }, + "flexLogsStarterStorageIndexAvg": { + "baseName": "flex_logs_starter_storage_index_avg", + "type": "number", + "format": "int64", + }, + "flexLogsStarterStorageRetentionAdjustmentAvg": { + "baseName": "flex_logs_starter_storage_retention_adjustment_avg", + "type": "number", + "format": "int64", + }, + "flexStoredLogsAvg": { + "baseName": "flex_stored_logs_avg", + "type": "number", + "format": "int64", + }, + "forwardingEventsBytesSum": { + "baseName": "forwarding_events_bytes_sum", + "type": "number", + "format": "int64", + }, + "gcpHostTop99p": { + "baseName": "gcp_host_top99p", + "type": "number", + "format": "int64", + }, + "herokuHostTop99p": { + "baseName": "heroku_host_top99p", + "type": "number", + "format": "int64", + }, + "incidentManagementMonthlyActiveUsersHwm": { + "baseName": "incident_management_monthly_active_users_hwm", + "type": "number", + "format": "int64", + }, + "indexedEventsCountSum": { + "baseName": "indexed_events_count_sum", + "type": "number", + "format": "int64", + }, + "infraHostTop99p": { + "baseName": "infra_host_top99p", + "type": "number", + "format": "int64", + }, + "ingestedEventsBytesSum": { + "baseName": "ingested_events_bytes_sum", + "type": "number", + "format": "int64", + }, + "iotDeviceSum": { + "baseName": "iot_device_sum", + "type": "number", + "format": "int64", + }, + "iotDeviceTop99p": { + "baseName": "iot_device_top99p", + "type": "number", + "format": "int64", + }, + "mobileRumLiteSessionCountSum": { + "baseName": "mobile_rum_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountAndroidSum": { + "baseName": "mobile_rum_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountFlutterSum": { + "baseName": "mobile_rum_session_count_flutter_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountIosSum": { + "baseName": "mobile_rum_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountReactnativeSum": { + "baseName": "mobile_rum_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountRokuSum": { + "baseName": "mobile_rum_session_count_roku_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountSum": { + "baseName": "mobile_rum_session_count_sum", + "type": "number", + "format": "int64", + }, + "mobileRumUnitsSum": { + "baseName": "mobile_rum_units_sum", + "type": "number", + "format": "int64", + }, + "ndmNetflowEventsSum": { + "baseName": "ndm_netflow_events_sum", + "type": "number", + "format": "int64", + }, + "netflowIndexedEventsCountSum": { + "baseName": "netflow_indexed_events_count_sum", + "type": "number", + "format": "int64", + }, + "npmHostTop99p": { + "baseName": "npm_host_top99p", + "type": "number", + "format": "int64", + }, + "observabilityPipelinesBytesProcessedSum": { + "baseName": "observability_pipelines_bytes_processed_sum", + "type": "number", + "format": "int64", + }, + "ociHostSum": { + "baseName": "oci_host_sum", + "type": "number", + "format": "int64", + }, + "ociHostTop99p": { + "baseName": "oci_host_top99p", + "type": "number", + "format": "int64", + }, + "onlineArchiveEventsCountSum": { + "baseName": "online_archive_events_count_sum", + "type": "number", + "format": "int64", + }, + "opentelemetryApmHostTop99p": { + "baseName": "opentelemetry_apm_host_top99p", + "type": "number", + "format": "int64", + }, + "opentelemetryHostTop99p": { + "baseName": "opentelemetry_host_top99p", + "type": "number", + "format": "int64", + }, + "orgs": { + "baseName": "orgs", + "type": "Array", + }, + "profilingAasCountTop99p": { + "baseName": "profiling_aas_count_top99p", + "type": "number", + "format": "int64", + }, + "profilingHostTop99p": { + "baseName": "profiling_host_top99p", + "type": "number", + "format": "int64", + }, + "rumBrowserAndMobileSessionCount": { + "baseName": "rum_browser_and_mobile_session_count", + "type": "number", + "format": "int64", + }, + "rumBrowserLegacySessionCountSum": { + "baseName": "rum_browser_legacy_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserLiteSessionCountSum": { + "baseName": "rum_browser_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserReplaySessionCountSum": { + "baseName": "rum_browser_replay_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumLiteSessionCountSum": { + "baseName": "rum_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountAndroidSum": { + "baseName": "rum_mobile_legacy_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountFlutterSum": { + "baseName": "rum_mobile_legacy_session_count_flutter_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountIosSum": { + "baseName": "rum_mobile_legacy_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountReactnativeSum": { + "baseName": "rum_mobile_legacy_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountRokuSum": { + "baseName": "rum_mobile_legacy_session_count_roku_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountAndroidSum": { + "baseName": "rum_mobile_lite_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountFlutterSum": { + "baseName": "rum_mobile_lite_session_count_flutter_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountIosSum": { + "baseName": "rum_mobile_lite_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountKotlinmultiplatformSum": { + "baseName": "rum_mobile_lite_session_count_kotlinmultiplatform_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountReactnativeSum": { + "baseName": "rum_mobile_lite_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountRokuSum": { + "baseName": "rum_mobile_lite_session_count_roku_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountUnitySum": { + "baseName": "rum_mobile_lite_session_count_unity_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountAndroidSum": { + "baseName": "rum_mobile_replay_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountIosSum": { + "baseName": "rum_mobile_replay_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountKotlinmultiplatformSum": { + "baseName": "rum_mobile_replay_session_count_kotlinmultiplatform_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountReactnativeSum": { + "baseName": "rum_mobile_replay_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "rumReplaySessionCountSum": { + "baseName": "rum_replay_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumSessionCountSum": { + "baseName": "rum_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumTotalSessionCountSum": { + "baseName": "rum_total_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumUnitsSum": { + "baseName": "rum_units_sum", + "type": "number", + "format": "int64", + }, + "scaFargateCountAvg": { + "baseName": "sca_fargate_count_avg", + "type": "number", + "format": "int64", + }, + "scaFargateCountHwm": { + "baseName": "sca_fargate_count_hwm", + "type": "number", + "format": "int64", + }, + "sdsApmScannedBytesSum": { + "baseName": "sds_apm_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsEventsScannedBytesSum": { + "baseName": "sds_events_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsLogsScannedBytesSum": { + "baseName": "sds_logs_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsRumScannedBytesSum": { + "baseName": "sds_rum_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsTotalScannedBytesSum": { + "baseName": "sds_total_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "serverlessAppsAzureCountAvg": { + "baseName": "serverless_apps_azure_count_avg", + "type": "number", + "format": "int64", + }, + "serverlessAppsGoogleCountAvg": { + "baseName": "serverless_apps_google_count_avg", + "type": "number", + "format": "int64", + }, + "serverlessAppsTotalCountAvg": { + "baseName": "serverless_apps_total_count_avg", + "type": "number", + "format": "int64", + }, + "siemAnalyzedLogsAddOnCountSum": { + "baseName": "siem_analyzed_logs_add_on_count_sum", + "type": "number", + "format": "int64", + }, + "syntheticsBrowserCheckCallsCountSum": { + "baseName": "synthetics_browser_check_calls_count_sum", + "type": "number", + "format": "int64", + }, + "syntheticsCheckCallsCountSum": { + "baseName": "synthetics_check_calls_count_sum", + "type": "number", + "format": "int64", + }, + "syntheticsMobileTestRunsSum": { + "baseName": "synthetics_mobile_test_runs_sum", + "type": "number", + "format": "int64", + }, + "syntheticsParallelTestingMaxSlotsHwm": { + "baseName": "synthetics_parallel_testing_max_slots_hwm", + "type": "number", + "format": "int64", + }, + "traceSearchIndexedEventsCountSum": { + "baseName": "trace_search_indexed_events_count_sum", + "type": "number", + "format": "int64", + }, + "twolIngestedEventsBytesSum": { + "baseName": "twol_ingested_events_bytes_sum", + "type": "number", + "format": "int64", + }, + "universalServiceMonitoringHostTop99p": { + "baseName": "universal_service_monitoring_host_top99p", + "type": "number", + "format": "int64", + }, + "vsphereHostTop99p": { + "baseName": "vsphere_host_top99p", + "type": "number", + "format": "int64", + }, + "vulnManagementHostCountTop99p": { + "baseName": "vuln_management_host_count_top99p", + "type": "number", + "format": "int64", + }, + "workflowExecutionsUsageSum": { + "baseName": "workflow_executions_usage_sum", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSummaryDate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts b/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts index 45ca74355f2a..ccda0fd1423c 100644 --- a/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts +++ b/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts @@ -4,687 +4,692 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Global hourly report of all data billed by Datadog for a given organization. - */ +*/ export class UsageSummaryDateOrg { /** * The account name. - */ + */ "accountName"?: string; /** * The account public id. - */ + */ "accountPublicId"?: string; /** * Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. - */ + */ "agentHostTop99p"?: number; /** * Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. - */ + */ "apmAzureAppServiceHostTop99p"?: number; /** * Shows the 99th percentile of all APM DevSecOps hosts over all hours in the current date for the given org. - */ + */ "apmDevsecopsHostTop99p"?: number; /** * Shows the average of all APM ECS Fargate tasks over all hours in the current month for the given org. - */ + */ "apmFargateCountAvg"?: number; /** * Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. - */ + */ "apmHostTop99p"?: number; /** * Shows the average of all Application Security Monitoring ECS Fargate tasks over all hours in the current month for the given org. - */ + */ "appsecFargateCountAvg"?: number; /** * Shows the sum of all Application Security Monitoring Serverless invocations over all hours in the current month for the given org. - */ + */ "asmServerlessSum"?: number; /** * Shows the sum of all audit logs lines indexed over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "auditLogsLinesIndexedSum"?: number; /** * Shows whether Audit Trail is enabled for the current date for the given org. - */ + */ "auditTrailEnabledHwm"?: number; /** * The average total count for Fargate Container Profiler over all hours in the current month for the given org. - */ + */ "avgProfiledFargateTasks"?: number; /** * Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. - */ + */ "awsHostTop99p"?: number; /** * Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. - */ + */ "awsLambdaFuncCount"?: number; /** * Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. - */ + */ "awsLambdaInvocationsSum"?: number; /** * Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. - */ + */ "azureAppServiceTop99p"?: number; /** * Shows the sum of all log bytes ingested over all hours in the current date for the given org. - */ + */ "billableIngestedBytesSum"?: number; /** * Shows the sum of all browser lite sessions over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "browserRumLiteSessionCountSum"?: number; /** * Shows the sum of all browser replay sessions over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "browserRumReplaySessionCountSum"?: number; /** * Shows the sum of all browser RUM units over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "browserRumUnitsSum"?: number; /** * Shows the sum of all CI pipeline indexed spans over all hours in the current date for the given org. - */ + */ "ciPipelineIndexedSpansSum"?: number; /** * Shows the sum of all CI test indexed spans over all hours in the current date for the given org. - */ + */ "ciTestIndexedSpansSum"?: number; /** * Shows the high-water mark of all CI visibility intelligent test runner committers over all hours in the current date for the given org. - */ + */ "ciVisibilityItrCommittersHwm"?: number; /** * Shows the high-water mark of all CI visibility pipeline committers over all hours in the current date for the given org. - */ + */ "ciVisibilityPipelineCommittersHwm"?: number; /** * Shows the high-water mark of all CI visibility test committers over all hours in the current date for the given org. - */ + */ "ciVisibilityTestCommittersHwm"?: number; /** * Host count average of Cloud Cost Management for AWS for the given date and given org. - */ + */ "cloudCostManagementAwsHostCountAvg"?: number; /** * Host count average of Cloud Cost Management for Azure for the given date and given org. - */ + */ "cloudCostManagementAzureHostCountAvg"?: number; /** * Host count average of Cloud Cost Management for GCP for the given date and given org. - */ + */ "cloudCostManagementGcpHostCountAvg"?: number; /** * Host count average of Cloud Cost Management for all cloud providers for the given date and given org. - */ + */ "cloudCostManagementHostCountAvg"?: number; /** * Shows the sum of all Cloud Security Information and Event Management events over all hours in the current date for the given org. - */ + */ "cloudSiemEventsSum"?: number; /** * Shows the high-water mark of all Static Analysis committers over all hours in the current date for the given org. - */ + */ "codeAnalysisSaCommittersHwm"?: number; /** * Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current date for the given org. - */ + */ "codeAnalysisScaCommittersHwm"?: number; /** * Shows the 99th percentile of all Code Security hosts over all hours in the current date for the given org. - */ + */ "codeSecurityHostTop99p"?: number; /** * Shows the average of all distinct containers over all hours in the current date for the given org. - */ + */ "containerAvg"?: number; /** * Shows the average of containers without the Datadog Agent over all hours in the current date for the given organization. - */ + */ "containerExclAgentAvg"?: number; /** * Shows the high-water mark of all distinct containers over all hours in the current date for the given org. - */ + */ "containerHwm"?: number; /** * Shows the sum of all Cloud Security Management Enterprise compliance containers over all hours in the current date for the given org. - */ + */ "csmContainerEnterpriseComplianceCountSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise Cloud Workload Security containers over all hours in the current date for the given org. - */ + */ "csmContainerEnterpriseCwsCountSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise containers over all hours in the current date for the given org. - */ + */ "csmContainerEnterpriseTotalCountSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Azure app services hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseAasHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise AWS hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseAwsHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Azure hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseAzureHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise compliance hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseComplianceHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Cloud Workload Security hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseCwsHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise GCP hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseGcpHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise hosts over all hours in the current date for the given org. - */ + */ "csmHostEnterpriseTotalHostCountTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro Azure app services hosts over all hours in the current date for the given org. - */ + */ "cspmAasHostTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro AWS hosts over all hours in the current date for the given org. - */ + */ "cspmAwsHostTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro Azure hosts over all hours in the current date for the given org. - */ + */ "cspmAzureHostTop99p"?: number; /** * Shows the average number of Cloud Security Management Pro containers over all hours in the current date for the given org. - */ + */ "cspmContainerAvg"?: number; /** * Shows the high-water mark of Cloud Security Management Pro containers over all hours in the current date for the given org. - */ + */ "cspmContainerHwm"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro GCP hosts over all hours in the current date for the given org. - */ + */ "cspmGcpHostTop99p"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro hosts over all hours in the current date for the given org. - */ + */ "cspmHostTop99p"?: number; /** * Shows the average number of distinct historical custom metrics over all hours in the current date for the given org. - */ + */ "customHistoricalTsAvg"?: number; /** * Shows the average number of distinct live custom metrics over all hours in the current date for the given org. - */ + */ "customLiveTsAvg"?: number; /** * Shows the average number of distinct custom metrics over all hours in the current date for the given org. - */ + */ "customTsAvg"?: number; /** * Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. - */ + */ "cwsContainerCountAvg"?: number; /** * Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current date for the given org. - */ + */ "cwsFargateTaskAvg"?: number; /** * Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. - */ + */ "cwsHostTop99p"?: number; /** * Shows the sum of all Data Jobs Monitoring hosts over all hours in the current date for the given org. - */ + */ "dataJobsMonitoringHostHrSum"?: number; /** * Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. - */ + */ "dbmHostTop99pSum"?: number; /** * Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. - */ + */ "dbmQueriesAvgSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with the Datadog Agent over all hours in the current date for the given org. - */ + */ "ephInfraHostAgentSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Alibaba over all hours in the current date for the given org. - */ + */ "ephInfraHostAlibabaSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on AWS over all hours in the current date for the given org. - */ + */ "ephInfraHostAwsSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current date for the given org. - */ + */ "ephInfraHostAzureSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current date for the given org. - */ + */ "ephInfraHostEntSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on GCP over all hours in the current date for the given org. - */ + */ "ephInfraHostGcpSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Heroku over all hours in the current date for the given org. - */ + */ "ephInfraHostHerokuSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with only Azure App Services over all hours in the current date for the given org. - */ + */ "ephInfraHostOnlyAasSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with only vSphere over all hours in the current date for the given org. - */ + */ "ephInfraHostOnlyVsphereSum"?: number; /** * Shows the sum of all ephemeral APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ + */ "ephInfraHostOpentelemetryApmSum"?: number; /** * Shows the sum of all ephemeral hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ + */ "ephInfraHostOpentelemetrySum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Pro over all hours in the current date for the given org. - */ + */ "ephInfraHostProSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Pro Plus over all hours in the current date for the given org. - */ + */ "ephInfraHostProplusSum"?: number; /** * Shows the sum of all Error Tracking APM error events over all hours in the current date for the given org. - */ + */ "errorTrackingApmErrorEventsSum"?: number; /** * Shows the sum of all Error Tracking error events over all hours in the current date for the given org. - */ + */ "errorTrackingErrorEventsSum"?: number; /** * Shows the sum of all Error Tracking events over all hours in the current date for the given org. - */ + */ "errorTrackingEventsSum"?: number; /** * Shows the sum of all Error Tracking RUM error events over all hours in the current date for the given org. - */ + */ "errorTrackingRumErrorEventsSum"?: number; /** * The average number of Profiling Fargate tasks over all hours in the current month for the given org. - */ + */ "fargateContainerProfilerProfilingFargateAvg"?: number; /** * The average number of Profiling Fargate Elastic Kubernetes Service tasks over all hours in the current month for the given org. - */ + */ "fargateContainerProfilerProfilingFargateEksAvg"?: number; /** * The average task count for Fargate. - */ + */ "fargateTasksCountAvg"?: number; /** * Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. - */ + */ "fargateTasksCountHwm"?: number; /** * Shows the average number of Flex Logs Compute Large Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeLargeAvg"?: number; /** * Shows the average number of Flex Logs Compute Medium Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeMediumAvg"?: number; /** * Shows the average number of Flex Logs Compute Small Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeSmallAvg"?: number; /** * Shows the average number of Flex Logs Compute Extra Small Instances over all hours in the current date for the given org. - */ + */ "flexLogsComputeXsmallAvg"?: number; /** * Shows the average number of Flex Logs Starter Instances over all hours in the current date for the given org. - */ + */ "flexLogsStarterAvg"?: number; /** * Shows the average number of Flex Logs Starter Storage Index Instances over all hours in the current date for the given org. - */ + */ "flexLogsStarterStorageIndexAvg"?: number; /** * Shows the average number of Flex Logs Starter Storage Retention Adjustment Instances over all hours in the current date for the given org. - */ + */ "flexLogsStarterStorageRetentionAdjustmentAvg"?: number; /** * Shows the average of all Flex Stored Logs over all hours in the current date for the given org. - */ + */ "flexStoredLogsAvg"?: number; /** * Shows the sum of all log bytes forwarded over all hours in the current date for the given org. - */ + */ "forwardingEventsBytesSum"?: number; /** * Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. - */ + */ "gcpHostTop99p"?: number; /** * Shows the 99th percentile of all Heroku dynos over all hours in the current date for the given org. - */ + */ "herokuHostTop99p"?: number; /** * The organization id. - */ + */ "id"?: string; /** * Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. - */ + */ "incidentManagementMonthlyActiveUsersHwm"?: number; /** * Shows the sum of all log events indexed over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "indexedEventsCountSum"?: number; /** * Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. - */ + */ "infraHostTop99p"?: number; /** * Shows the sum of all log bytes ingested over all hours in the current date for the given org. - */ + */ "ingestedEventsBytesSum"?: number; /** * Shows the sum of all IoT devices over all hours in the current date for the given org. - */ + */ "iotDeviceAggSum"?: number; /** * Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. - */ + */ "iotDeviceTop99pSum"?: number; /** * Shows the sum of all mobile lite sessions over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumLiteSessionCountSum"?: number; /** * Shows the sum of all mobile RUM sessions on Android over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM sessions on Flutter over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountFlutterSum"?: number; /** * Shows the sum of all mobile RUM sessions on iOS over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM sessions on React Native over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountReactnativeSum"?: number; /** * Shows the sum of all mobile RUM sessions on Roku over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountRokuSum"?: number; /** * Shows the sum of all mobile RUM sessions over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountSum"?: number; /** * Shows the sum of all mobile RUM units over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "mobileRumUnitsSum"?: number; /** * The organization name. - */ + */ "name"?: string; /** * Shows the sum of all Network Device Monitoring NetFlow events over all hours in the current date for the given org. - */ + */ "ndmNetflowEventsSum"?: number; /** * Shows the sum of all Network flows indexed over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "netflowIndexedEventsCountSum"?: number; /** * Shows the 99th percentile of all distinct Cloud Network Monitoring hosts (formerly known as Network hosts) over all hours in the current date for the given org. - */ + */ "npmHostTop99p"?: number; /** * Sum of all observability pipelines bytes processed over all hours in the current date for the given org. - */ + */ "observabilityPipelinesBytesProcessedSum"?: number; /** * Shows the sum of all Oracle Cloud Infrastructure hosts over all hours in the current date for the given org. - */ + */ "ociHostSum"?: number; /** * Shows the 99th percentile of all Oracle Cloud Infrastructure hosts over all hours in the current date for the given org. - */ + */ "ociHostTop99p"?: number; /** * Sum of all online archived events over all hours in the current date for the given org. - */ + */ "onlineArchiveEventsCountSum"?: number; /** * Shows the 99th percentile of APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ + */ "opentelemetryApmHostTop99p"?: number; /** * Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ + */ "opentelemetryHostTop99p"?: number; /** * Shows the 99th percentile of all profiled Azure app services over all hours in the current date for all organizations. - */ + */ "profilingAasCountTop99p"?: number; /** * Shows the 99th percentile of all profiled hosts over all hours within the current date for the given org. - */ + */ "profilingHostTop99p"?: number; /** * The organization public id. - */ + */ "publicId"?: string; /** * The region of the organization. - */ + */ "region"?: string; /** * Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "rumBrowserAndMobileSessionCount"?: number; /** * Shows the sum of all browser RUM legacy sessions over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumBrowserLegacySessionCountSum"?: number; /** * Shows the sum of all browser RUM lite sessions over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumBrowserLiteSessionCountSum"?: number; /** * Shows the sum of all browser RUM Session Replay counts over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumBrowserReplaySessionCountSum"?: number; /** * Shows the sum of all RUM lite sessions (browser and mobile) over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumLiteSessionCountSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Android over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Flutter over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountFlutterSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on iOS over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on React Native over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountReactnativeSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Roku over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountRokuSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Android over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Flutter over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountFlutterSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on iOS over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Kotlin Multiplatform over all hours within the current date for the given org. - */ + */ "rumMobileLiteSessionCountKotlinmultiplatformSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on React Native over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountReactnativeSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Roku over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountRokuSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Unity over all hours within the current date for the given org. - */ + */ "rumMobileLiteSessionCountUnitySum"?: number; /** * Shows the sum of all mobile RUM replay sessions on Android over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountAndroidSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on iOS over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountIosSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on Kotlin Multiplatform over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountKotlinmultiplatformSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on React Native over all hours within the current date for the given org. - */ + */ "rumMobileReplaySessionCountReactnativeSum"?: number; /** * Shows the sum of all RUM Session Replay counts over all hours in the current date for the given org (To be introduced on October 1st, 2024). - */ + */ "rumReplaySessionCountSum"?: number; /** * Shows the sum of all browser RUM lite sessions over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "rumSessionCountSum"?: number; /** * Shows the sum of RUM sessions (browser and mobile) over all hours in the current date for the given org. - */ + */ "rumTotalSessionCountSum"?: number; /** * Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org (To be deprecated on October 1st, 2024). - */ + */ "rumUnitsSum"?: number; /** * Shows the average of all Software Composition Analysis Fargate tasks over all hours in the current date for the given org. - */ + */ "scaFargateCountAvg"?: number; /** * Shows the sum of the high-water marks of all Software Composition Analysis Fargate tasks over all hours in the current date for the given org. - */ + */ "scaFargateCountHwm"?: number; /** * Sum of all APM bytes scanned with sensitive data scanner over all hours in the current date for the given org. - */ + */ "sdsApmScannedBytesSum"?: number; /** * Sum of all event stream events bytes scanned with sensitive data scanner over all hours in the current date for the given org. - */ + */ "sdsEventsScannedBytesSum"?: number; /** * Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. - */ + */ "sdsLogsScannedBytesSum"?: number; /** * Sum of all RUM bytes scanned with sensitive data scanner over all hours in the current date for the given org. - */ + */ "sdsRumScannedBytesSum"?: number; /** * Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. - */ + */ "sdsTotalScannedBytesSum"?: number; /** * Shows the average of the number of Serverless Apps for Azure for the given date and given org. - */ + */ "serverlessAppsAzureCountAvg"?: number; /** * Shows the average of the number of Serverless Apps for Google Cloud for the given date and given org. - */ + */ "serverlessAppsGoogleCountAvg"?: number; /** * Shows the average of the number of Serverless Apps for Azure and Google Cloud for the given date and given org. - */ + */ "serverlessAppsTotalCountAvg"?: number; /** * Shows the sum of all log events analyzed by Cloud SIEM over all hours in the current date for the given org. - */ + */ "siemAnalyzedLogsAddOnCountSum"?: number; /** * Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. - */ + */ "syntheticsBrowserCheckCallsCountSum"?: number; /** * Shows the sum of all Synthetic API tests over all hours in the current date for the given org. - */ + */ "syntheticsCheckCallsCountSum"?: number; /** * Shows the sum of all Synthetic mobile application tests over all hours in the current date for the given org. - */ + */ "syntheticsMobileTestRunsSum"?: number; /** * Shows the high-water mark of used synthetics parallel testing slots over all hours in the current date for the given org. - */ + */ "syntheticsParallelTestingMaxSlotsHwm"?: number; /** * Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. - */ + */ "traceSearchIndexedEventsCountSum"?: number; /** * Shows the sum of all ingested APM span bytes over all hours in the current date for the given org. - */ + */ "twolIngestedEventsBytesSum"?: number; /** * Shows the 99th percentile of all Universal Service Monitoring hosts over all hours in the current date for the given org. - */ + */ "universalServiceMonitoringHostTop99p"?: number; /** * Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org. - */ + */ "vsphereHostTop99p"?: number; /** * Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org. - */ + */ "vulnManagementHostCountTop99p"?: number; /** * Sum of all workflows executed over all hours in the current date for the given org. - */ + */ "workflowExecutionsUsageSum"?: number; /** @@ -703,857 +708,883 @@ export class UsageSummaryDateOrg { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountName: { - baseName: "account_name", - type: "string", - }, - accountPublicId: { - baseName: "account_public_id", - type: "string", - }, - agentHostTop99p: { - baseName: "agent_host_top99p", - type: "number", - format: "int64", - }, - apmAzureAppServiceHostTop99p: { - baseName: "apm_azure_app_service_host_top99p", - type: "number", - format: "int64", - }, - apmDevsecopsHostTop99p: { - baseName: "apm_devsecops_host_top99p", - type: "number", - format: "int64", - }, - apmFargateCountAvg: { - baseName: "apm_fargate_count_avg", - type: "number", - format: "int64", - }, - apmHostTop99p: { - baseName: "apm_host_top99p", - type: "number", - format: "int64", - }, - appsecFargateCountAvg: { - baseName: "appsec_fargate_count_avg", - type: "number", - format: "int64", - }, - asmServerlessSum: { - baseName: "asm_serverless_sum", - type: "number", - format: "int64", - }, - auditLogsLinesIndexedSum: { - baseName: "audit_logs_lines_indexed_sum", - type: "number", - format: "int64", - }, - auditTrailEnabledHwm: { - baseName: "audit_trail_enabled_hwm", - type: "number", - format: "int64", - }, - avgProfiledFargateTasks: { - baseName: "avg_profiled_fargate_tasks", - type: "number", - format: "int64", - }, - awsHostTop99p: { - baseName: "aws_host_top99p", - type: "number", - format: "int64", - }, - awsLambdaFuncCount: { - baseName: "aws_lambda_func_count", - type: "number", - format: "int64", - }, - awsLambdaInvocationsSum: { - baseName: "aws_lambda_invocations_sum", - type: "number", - format: "int64", - }, - azureAppServiceTop99p: { - baseName: "azure_app_service_top99p", - type: "number", - format: "int64", - }, - billableIngestedBytesSum: { - baseName: "billable_ingested_bytes_sum", - type: "number", - format: "int64", - }, - browserRumLiteSessionCountSum: { - baseName: "browser_rum_lite_session_count_sum", - type: "number", - format: "int64", - }, - browserRumReplaySessionCountSum: { - baseName: "browser_rum_replay_session_count_sum", - type: "number", - format: "int64", - }, - browserRumUnitsSum: { - baseName: "browser_rum_units_sum", - type: "number", - format: "int64", - }, - ciPipelineIndexedSpansSum: { - baseName: "ci_pipeline_indexed_spans_sum", - type: "number", - format: "int64", - }, - ciTestIndexedSpansSum: { - baseName: "ci_test_indexed_spans_sum", - type: "number", - format: "int64", - }, - ciVisibilityItrCommittersHwm: { - baseName: "ci_visibility_itr_committers_hwm", - type: "number", - format: "int64", - }, - ciVisibilityPipelineCommittersHwm: { - baseName: "ci_visibility_pipeline_committers_hwm", - type: "number", - format: "int64", - }, - ciVisibilityTestCommittersHwm: { - baseName: "ci_visibility_test_committers_hwm", - type: "number", - format: "int64", - }, - cloudCostManagementAwsHostCountAvg: { - baseName: "cloud_cost_management_aws_host_count_avg", - type: "number", - format: "int64", - }, - cloudCostManagementAzureHostCountAvg: { - baseName: "cloud_cost_management_azure_host_count_avg", - type: "number", - format: "int64", - }, - cloudCostManagementGcpHostCountAvg: { - baseName: "cloud_cost_management_gcp_host_count_avg", - type: "number", - format: "int64", - }, - cloudCostManagementHostCountAvg: { - baseName: "cloud_cost_management_host_count_avg", - type: "number", - format: "int64", - }, - cloudSiemEventsSum: { - baseName: "cloud_siem_events_sum", - type: "number", - format: "int64", - }, - codeAnalysisSaCommittersHwm: { - baseName: "code_analysis_sa_committers_hwm", - type: "number", - format: "int64", - }, - codeAnalysisScaCommittersHwm: { - baseName: "code_analysis_sca_committers_hwm", - type: "number", - format: "int64", - }, - codeSecurityHostTop99p: { - baseName: "code_security_host_top99p", - type: "number", - format: "int64", - }, - containerAvg: { - baseName: "container_avg", - type: "number", - format: "int64", - }, - containerExclAgentAvg: { - baseName: "container_excl_agent_avg", - type: "number", - format: "int64", - }, - containerHwm: { - baseName: "container_hwm", - type: "number", - format: "int64", - }, - csmContainerEnterpriseComplianceCountSum: { - baseName: "csm_container_enterprise_compliance_count_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseCwsCountSum: { - baseName: "csm_container_enterprise_cws_count_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseTotalCountSum: { - baseName: "csm_container_enterprise_total_count_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseAasHostCountTop99p: { - baseName: "csm_host_enterprise_aas_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseAwsHostCountTop99p: { - baseName: "csm_host_enterprise_aws_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseAzureHostCountTop99p: { - baseName: "csm_host_enterprise_azure_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseComplianceHostCountTop99p: { - baseName: "csm_host_enterprise_compliance_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseCwsHostCountTop99p: { - baseName: "csm_host_enterprise_cws_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseGcpHostCountTop99p: { - baseName: "csm_host_enterprise_gcp_host_count_top99p", - type: "number", - format: "int64", - }, - csmHostEnterpriseTotalHostCountTop99p: { - baseName: "csm_host_enterprise_total_host_count_top99p", - type: "number", - format: "int64", - }, - cspmAasHostTop99p: { - baseName: "cspm_aas_host_top99p", - type: "number", - format: "int64", - }, - cspmAwsHostTop99p: { - baseName: "cspm_aws_host_top99p", - type: "number", - format: "int64", - }, - cspmAzureHostTop99p: { - baseName: "cspm_azure_host_top99p", - type: "number", - format: "int64", - }, - cspmContainerAvg: { - baseName: "cspm_container_avg", - type: "number", - format: "int64", - }, - cspmContainerHwm: { - baseName: "cspm_container_hwm", - type: "number", - format: "int64", - }, - cspmGcpHostTop99p: { - baseName: "cspm_gcp_host_top99p", - type: "number", - format: "int64", - }, - cspmHostTop99p: { - baseName: "cspm_host_top99p", - type: "number", - format: "int64", - }, - customHistoricalTsAvg: { - baseName: "custom_historical_ts_avg", - type: "number", - format: "int64", - }, - customLiveTsAvg: { - baseName: "custom_live_ts_avg", - type: "number", - format: "int64", - }, - customTsAvg: { - baseName: "custom_ts_avg", - type: "number", - format: "int64", - }, - cwsContainerCountAvg: { - baseName: "cws_container_count_avg", - type: "number", - format: "int64", - }, - cwsFargateTaskAvg: { - baseName: "cws_fargate_task_avg", - type: "number", - format: "int64", - }, - cwsHostTop99p: { - baseName: "cws_host_top99p", - type: "number", - format: "int64", - }, - dataJobsMonitoringHostHrSum: { - baseName: "data_jobs_monitoring_host_hr_sum", - type: "number", - format: "int64", - }, - dbmHostTop99pSum: { - baseName: "dbm_host_top99p_sum", - type: "number", - format: "int64", - }, - dbmQueriesAvgSum: { - baseName: "dbm_queries_avg_sum", - type: "number", - format: "int64", - }, - ephInfraHostAgentSum: { - baseName: "eph_infra_host_agent_sum", - type: "number", - format: "int64", - }, - ephInfraHostAlibabaSum: { - baseName: "eph_infra_host_alibaba_sum", - type: "number", - format: "int64", - }, - ephInfraHostAwsSum: { - baseName: "eph_infra_host_aws_sum", - type: "number", - format: "int64", - }, - ephInfraHostAzureSum: { - baseName: "eph_infra_host_azure_sum", - type: "number", - format: "int64", - }, - ephInfraHostEntSum: { - baseName: "eph_infra_host_ent_sum", - type: "number", - format: "int64", - }, - ephInfraHostGcpSum: { - baseName: "eph_infra_host_gcp_sum", - type: "number", - format: "int64", - }, - ephInfraHostHerokuSum: { - baseName: "eph_infra_host_heroku_sum", - type: "number", - format: "int64", - }, - ephInfraHostOnlyAasSum: { - baseName: "eph_infra_host_only_aas_sum", - type: "number", - format: "int64", - }, - ephInfraHostOnlyVsphereSum: { - baseName: "eph_infra_host_only_vsphere_sum", - type: "number", - format: "int64", - }, - ephInfraHostOpentelemetryApmSum: { - baseName: "eph_infra_host_opentelemetry_apm_sum", - type: "number", - format: "int64", - }, - ephInfraHostOpentelemetrySum: { - baseName: "eph_infra_host_opentelemetry_sum", - type: "number", - format: "int64", - }, - ephInfraHostProSum: { - baseName: "eph_infra_host_pro_sum", - type: "number", - format: "int64", - }, - ephInfraHostProplusSum: { - baseName: "eph_infra_host_proplus_sum", - type: "number", - format: "int64", - }, - errorTrackingApmErrorEventsSum: { - baseName: "error_tracking_apm_error_events_sum", - type: "number", - format: "int64", - }, - errorTrackingErrorEventsSum: { - baseName: "error_tracking_error_events_sum", - type: "number", - format: "int64", - }, - errorTrackingEventsSum: { - baseName: "error_tracking_events_sum", - type: "number", - format: "int64", - }, - errorTrackingRumErrorEventsSum: { - baseName: "error_tracking_rum_error_events_sum", - type: "number", - format: "int64", - }, - fargateContainerProfilerProfilingFargateAvg: { - baseName: "fargate_container_profiler_profiling_fargate_avg", - type: "number", - format: "int64", - }, - fargateContainerProfilerProfilingFargateEksAvg: { - baseName: "fargate_container_profiler_profiling_fargate_eks_avg", - type: "number", - format: "int64", - }, - fargateTasksCountAvg: { - baseName: "fargate_tasks_count_avg", - type: "number", - format: "int64", - }, - fargateTasksCountHwm: { - baseName: "fargate_tasks_count_hwm", - type: "number", - format: "int64", - }, - flexLogsComputeLargeAvg: { - baseName: "flex_logs_compute_large_avg", - type: "number", - format: "int64", - }, - flexLogsComputeMediumAvg: { - baseName: "flex_logs_compute_medium_avg", - type: "number", - format: "int64", - }, - flexLogsComputeSmallAvg: { - baseName: "flex_logs_compute_small_avg", - type: "number", - format: "int64", - }, - flexLogsComputeXsmallAvg: { - baseName: "flex_logs_compute_xsmall_avg", - type: "number", - format: "int64", - }, - flexLogsStarterAvg: { - baseName: "flex_logs_starter_avg", - type: "number", - format: "int64", - }, - flexLogsStarterStorageIndexAvg: { - baseName: "flex_logs_starter_storage_index_avg", - type: "number", - format: "int64", - }, - flexLogsStarterStorageRetentionAdjustmentAvg: { - baseName: "flex_logs_starter_storage_retention_adjustment_avg", - type: "number", - format: "int64", - }, - flexStoredLogsAvg: { - baseName: "flex_stored_logs_avg", - type: "number", - format: "int64", - }, - forwardingEventsBytesSum: { - baseName: "forwarding_events_bytes_sum", - type: "number", - format: "int64", - }, - gcpHostTop99p: { - baseName: "gcp_host_top99p", - type: "number", - format: "int64", - }, - herokuHostTop99p: { - baseName: "heroku_host_top99p", - type: "number", - format: "int64", - }, - id: { - baseName: "id", - type: "string", - }, - incidentManagementMonthlyActiveUsersHwm: { - baseName: "incident_management_monthly_active_users_hwm", - type: "number", - format: "int64", - }, - indexedEventsCountSum: { - baseName: "indexed_events_count_sum", - type: "number", - format: "int64", - }, - infraHostTop99p: { - baseName: "infra_host_top99p", - type: "number", - format: "int64", - }, - ingestedEventsBytesSum: { - baseName: "ingested_events_bytes_sum", - type: "number", - format: "int64", - }, - iotDeviceAggSum: { - baseName: "iot_device_agg_sum", - type: "number", - format: "int64", - }, - iotDeviceTop99pSum: { - baseName: "iot_device_top99p_sum", - type: "number", - format: "int64", - }, - mobileRumLiteSessionCountSum: { - baseName: "mobile_rum_lite_session_count_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountAndroidSum: { - baseName: "mobile_rum_session_count_android_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountFlutterSum: { - baseName: "mobile_rum_session_count_flutter_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountIosSum: { - baseName: "mobile_rum_session_count_ios_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountReactnativeSum: { - baseName: "mobile_rum_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountRokuSum: { - baseName: "mobile_rum_session_count_roku_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountSum: { - baseName: "mobile_rum_session_count_sum", - type: "number", - format: "int64", - }, - mobileRumUnitsSum: { - baseName: "mobile_rum_units_sum", - type: "number", - format: "int64", - }, - name: { - baseName: "name", - type: "string", - }, - ndmNetflowEventsSum: { - baseName: "ndm_netflow_events_sum", - type: "number", - format: "int64", - }, - netflowIndexedEventsCountSum: { - baseName: "netflow_indexed_events_count_sum", - type: "number", - format: "int64", - }, - npmHostTop99p: { - baseName: "npm_host_top99p", - type: "number", - format: "int64", - }, - observabilityPipelinesBytesProcessedSum: { - baseName: "observability_pipelines_bytes_processed_sum", - type: "number", - format: "int64", - }, - ociHostSum: { - baseName: "oci_host_sum", - type: "number", - format: "int64", - }, - ociHostTop99p: { - baseName: "oci_host_top99p", - type: "number", - format: "int64", - }, - onlineArchiveEventsCountSum: { - baseName: "online_archive_events_count_sum", - type: "number", - format: "int64", - }, - opentelemetryApmHostTop99p: { - baseName: "opentelemetry_apm_host_top99p", - type: "number", - format: "int64", - }, - opentelemetryHostTop99p: { - baseName: "opentelemetry_host_top99p", - type: "number", - format: "int64", - }, - profilingAasCountTop99p: { - baseName: "profiling_aas_count_top99p", - type: "number", - format: "int64", - }, - profilingHostTop99p: { - baseName: "profiling_host_top99p", - type: "number", - format: "int64", - }, - publicId: { - baseName: "public_id", - type: "string", - }, - region: { - baseName: "region", - type: "string", - }, - rumBrowserAndMobileSessionCount: { - baseName: "rum_browser_and_mobile_session_count", - type: "number", - format: "int64", - }, - rumBrowserLegacySessionCountSum: { - baseName: "rum_browser_legacy_session_count_sum", - type: "number", - format: "int64", - }, - rumBrowserLiteSessionCountSum: { - baseName: "rum_browser_lite_session_count_sum", - type: "number", - format: "int64", - }, - rumBrowserReplaySessionCountSum: { - baseName: "rum_browser_replay_session_count_sum", - type: "number", - format: "int64", - }, - rumLiteSessionCountSum: { - baseName: "rum_lite_session_count_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountAndroidSum: { - baseName: "rum_mobile_legacy_session_count_android_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountFlutterSum: { - baseName: "rum_mobile_legacy_session_count_flutter_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountIosSum: { - baseName: "rum_mobile_legacy_session_count_ios_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountReactnativeSum: { - baseName: "rum_mobile_legacy_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountRokuSum: { - baseName: "rum_mobile_legacy_session_count_roku_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountAndroidSum: { - baseName: "rum_mobile_lite_session_count_android_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountFlutterSum: { - baseName: "rum_mobile_lite_session_count_flutter_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountIosSum: { - baseName: "rum_mobile_lite_session_count_ios_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountKotlinmultiplatformSum: { - baseName: "rum_mobile_lite_session_count_kotlinmultiplatform_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountReactnativeSum: { - baseName: "rum_mobile_lite_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountRokuSum: { - baseName: "rum_mobile_lite_session_count_roku_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountUnitySum: { - baseName: "rum_mobile_lite_session_count_unity_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountAndroidSum: { - baseName: "rum_mobile_replay_session_count_android_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountIosSum: { - baseName: "rum_mobile_replay_session_count_ios_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountKotlinmultiplatformSum: { - baseName: "rum_mobile_replay_session_count_kotlinmultiplatform_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountReactnativeSum: { - baseName: "rum_mobile_replay_session_count_reactnative_sum", - type: "number", - format: "int64", - }, - rumReplaySessionCountSum: { - baseName: "rum_replay_session_count_sum", - type: "number", - format: "int64", - }, - rumSessionCountSum: { - baseName: "rum_session_count_sum", - type: "number", - format: "int64", - }, - rumTotalSessionCountSum: { - baseName: "rum_total_session_count_sum", - type: "number", - format: "int64", - }, - rumUnitsSum: { - baseName: "rum_units_sum", - type: "number", - format: "int64", - }, - scaFargateCountAvg: { - baseName: "sca_fargate_count_avg", - type: "number", - format: "int64", - }, - scaFargateCountHwm: { - baseName: "sca_fargate_count_hwm", - type: "number", - format: "int64", - }, - sdsApmScannedBytesSum: { - baseName: "sds_apm_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsEventsScannedBytesSum: { - baseName: "sds_events_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsLogsScannedBytesSum: { - baseName: "sds_logs_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsRumScannedBytesSum: { - baseName: "sds_rum_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsTotalScannedBytesSum: { - baseName: "sds_total_scanned_bytes_sum", - type: "number", - format: "int64", - }, - serverlessAppsAzureCountAvg: { - baseName: "serverless_apps_azure_count_avg", - type: "number", - format: "int64", - }, - serverlessAppsGoogleCountAvg: { - baseName: "serverless_apps_google_count_avg", - type: "number", - format: "int64", - }, - serverlessAppsTotalCountAvg: { - baseName: "serverless_apps_total_count_avg", - type: "number", - format: "int64", - }, - siemAnalyzedLogsAddOnCountSum: { - baseName: "siem_analyzed_logs_add_on_count_sum", - type: "number", - format: "int64", - }, - syntheticsBrowserCheckCallsCountSum: { - baseName: "synthetics_browser_check_calls_count_sum", - type: "number", - format: "int64", - }, - syntheticsCheckCallsCountSum: { - baseName: "synthetics_check_calls_count_sum", - type: "number", - format: "int64", - }, - syntheticsMobileTestRunsSum: { - baseName: "synthetics_mobile_test_runs_sum", - type: "number", - format: "int64", - }, - syntheticsParallelTestingMaxSlotsHwm: { - baseName: "synthetics_parallel_testing_max_slots_hwm", - type: "number", - format: "int64", - }, - traceSearchIndexedEventsCountSum: { - baseName: "trace_search_indexed_events_count_sum", - type: "number", - format: "int64", - }, - twolIngestedEventsBytesSum: { - baseName: "twol_ingested_events_bytes_sum", - type: "number", - format: "int64", - }, - universalServiceMonitoringHostTop99p: { - baseName: "universal_service_monitoring_host_top99p", - type: "number", - format: "int64", - }, - vsphereHostTop99p: { - baseName: "vsphere_host_top99p", - type: "number", - format: "int64", - }, - vulnManagementHostCountTop99p: { - baseName: "vuln_management_host_count_top99p", - type: "number", - format: "int64", - }, - workflowExecutionsUsageSum: { - baseName: "workflow_executions_usage_sum", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "accountName": { + "baseName": "account_name", + "type": "string", + }, + "accountPublicId": { + "baseName": "account_public_id", + "type": "string", + }, + "agentHostTop99p": { + "baseName": "agent_host_top99p", + "type": "number", + "format": "int64", + }, + "apmAzureAppServiceHostTop99p": { + "baseName": "apm_azure_app_service_host_top99p", + "type": "number", + "format": "int64", + }, + "apmDevsecopsHostTop99p": { + "baseName": "apm_devsecops_host_top99p", + "type": "number", + "format": "int64", + }, + "apmFargateCountAvg": { + "baseName": "apm_fargate_count_avg", + "type": "number", + "format": "int64", + }, + "apmHostTop99p": { + "baseName": "apm_host_top99p", + "type": "number", + "format": "int64", + }, + "appsecFargateCountAvg": { + "baseName": "appsec_fargate_count_avg", + "type": "number", + "format": "int64", + }, + "asmServerlessSum": { + "baseName": "asm_serverless_sum", + "type": "number", + "format": "int64", + }, + "auditLogsLinesIndexedSum": { + "baseName": "audit_logs_lines_indexed_sum", + "type": "number", + "format": "int64", + }, + "auditTrailEnabledHwm": { + "baseName": "audit_trail_enabled_hwm", + "type": "number", + "format": "int64", + }, + "avgProfiledFargateTasks": { + "baseName": "avg_profiled_fargate_tasks", + "type": "number", + "format": "int64", + }, + "awsHostTop99p": { + "baseName": "aws_host_top99p", + "type": "number", + "format": "int64", + }, + "awsLambdaFuncCount": { + "baseName": "aws_lambda_func_count", + "type": "number", + "format": "int64", + }, + "awsLambdaInvocationsSum": { + "baseName": "aws_lambda_invocations_sum", + "type": "number", + "format": "int64", + }, + "azureAppServiceTop99p": { + "baseName": "azure_app_service_top99p", + "type": "number", + "format": "int64", + }, + "billableIngestedBytesSum": { + "baseName": "billable_ingested_bytes_sum", + "type": "number", + "format": "int64", + }, + "browserRumLiteSessionCountSum": { + "baseName": "browser_rum_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "browserRumReplaySessionCountSum": { + "baseName": "browser_rum_replay_session_count_sum", + "type": "number", + "format": "int64", + }, + "browserRumUnitsSum": { + "baseName": "browser_rum_units_sum", + "type": "number", + "format": "int64", + }, + "ciPipelineIndexedSpansSum": { + "baseName": "ci_pipeline_indexed_spans_sum", + "type": "number", + "format": "int64", + }, + "ciTestIndexedSpansSum": { + "baseName": "ci_test_indexed_spans_sum", + "type": "number", + "format": "int64", + }, + "ciVisibilityItrCommittersHwm": { + "baseName": "ci_visibility_itr_committers_hwm", + "type": "number", + "format": "int64", + }, + "ciVisibilityPipelineCommittersHwm": { + "baseName": "ci_visibility_pipeline_committers_hwm", + "type": "number", + "format": "int64", + }, + "ciVisibilityTestCommittersHwm": { + "baseName": "ci_visibility_test_committers_hwm", + "type": "number", + "format": "int64", + }, + "cloudCostManagementAwsHostCountAvg": { + "baseName": "cloud_cost_management_aws_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudCostManagementAzureHostCountAvg": { + "baseName": "cloud_cost_management_azure_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudCostManagementGcpHostCountAvg": { + "baseName": "cloud_cost_management_gcp_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudCostManagementHostCountAvg": { + "baseName": "cloud_cost_management_host_count_avg", + "type": "number", + "format": "int64", + }, + "cloudSiemEventsSum": { + "baseName": "cloud_siem_events_sum", + "type": "number", + "format": "int64", + }, + "codeAnalysisSaCommittersHwm": { + "baseName": "code_analysis_sa_committers_hwm", + "type": "number", + "format": "int64", + }, + "codeAnalysisScaCommittersHwm": { + "baseName": "code_analysis_sca_committers_hwm", + "type": "number", + "format": "int64", + }, + "codeSecurityHostTop99p": { + "baseName": "code_security_host_top99p", + "type": "number", + "format": "int64", + }, + "containerAvg": { + "baseName": "container_avg", + "type": "number", + "format": "int64", + }, + "containerExclAgentAvg": { + "baseName": "container_excl_agent_avg", + "type": "number", + "format": "int64", + }, + "containerHwm": { + "baseName": "container_hwm", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseComplianceCountSum": { + "baseName": "csm_container_enterprise_compliance_count_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseCwsCountSum": { + "baseName": "csm_container_enterprise_cws_count_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseTotalCountSum": { + "baseName": "csm_container_enterprise_total_count_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAasHostCountTop99p": { + "baseName": "csm_host_enterprise_aas_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAwsHostCountTop99p": { + "baseName": "csm_host_enterprise_aws_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAzureHostCountTop99p": { + "baseName": "csm_host_enterprise_azure_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseComplianceHostCountTop99p": { + "baseName": "csm_host_enterprise_compliance_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseCwsHostCountTop99p": { + "baseName": "csm_host_enterprise_cws_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseGcpHostCountTop99p": { + "baseName": "csm_host_enterprise_gcp_host_count_top99p", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseTotalHostCountTop99p": { + "baseName": "csm_host_enterprise_total_host_count_top99p", + "type": "number", + "format": "int64", + }, + "cspmAasHostTop99p": { + "baseName": "cspm_aas_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmAwsHostTop99p": { + "baseName": "cspm_aws_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmAzureHostTop99p": { + "baseName": "cspm_azure_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmContainerAvg": { + "baseName": "cspm_container_avg", + "type": "number", + "format": "int64", + }, + "cspmContainerHwm": { + "baseName": "cspm_container_hwm", + "type": "number", + "format": "int64", + }, + "cspmGcpHostTop99p": { + "baseName": "cspm_gcp_host_top99p", + "type": "number", + "format": "int64", + }, + "cspmHostTop99p": { + "baseName": "cspm_host_top99p", + "type": "number", + "format": "int64", + }, + "customHistoricalTsAvg": { + "baseName": "custom_historical_ts_avg", + "type": "number", + "format": "int64", + }, + "customLiveTsAvg": { + "baseName": "custom_live_ts_avg", + "type": "number", + "format": "int64", + }, + "customTsAvg": { + "baseName": "custom_ts_avg", + "type": "number", + "format": "int64", + }, + "cwsContainerCountAvg": { + "baseName": "cws_container_count_avg", + "type": "number", + "format": "int64", + }, + "cwsFargateTaskAvg": { + "baseName": "cws_fargate_task_avg", + "type": "number", + "format": "int64", + }, + "cwsHostTop99p": { + "baseName": "cws_host_top99p", + "type": "number", + "format": "int64", + }, + "dataJobsMonitoringHostHrSum": { + "baseName": "data_jobs_monitoring_host_hr_sum", + "type": "number", + "format": "int64", + }, + "dbmHostTop99pSum": { + "baseName": "dbm_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "dbmQueriesAvgSum": { + "baseName": "dbm_queries_avg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAgentSum": { + "baseName": "eph_infra_host_agent_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAlibabaSum": { + "baseName": "eph_infra_host_alibaba_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAwsSum": { + "baseName": "eph_infra_host_aws_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAzureSum": { + "baseName": "eph_infra_host_azure_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostEntSum": { + "baseName": "eph_infra_host_ent_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostGcpSum": { + "baseName": "eph_infra_host_gcp_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostHerokuSum": { + "baseName": "eph_infra_host_heroku_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOnlyAasSum": { + "baseName": "eph_infra_host_only_aas_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOnlyVsphereSum": { + "baseName": "eph_infra_host_only_vsphere_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOpentelemetryApmSum": { + "baseName": "eph_infra_host_opentelemetry_apm_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOpentelemetrySum": { + "baseName": "eph_infra_host_opentelemetry_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostProSum": { + "baseName": "eph_infra_host_pro_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostProplusSum": { + "baseName": "eph_infra_host_proplus_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingApmErrorEventsSum": { + "baseName": "error_tracking_apm_error_events_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingErrorEventsSum": { + "baseName": "error_tracking_error_events_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingEventsSum": { + "baseName": "error_tracking_events_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingRumErrorEventsSum": { + "baseName": "error_tracking_rum_error_events_sum", + "type": "number", + "format": "int64", + }, + "fargateContainerProfilerProfilingFargateAvg": { + "baseName": "fargate_container_profiler_profiling_fargate_avg", + "type": "number", + "format": "int64", + }, + "fargateContainerProfilerProfilingFargateEksAvg": { + "baseName": "fargate_container_profiler_profiling_fargate_eks_avg", + "type": "number", + "format": "int64", + }, + "fargateTasksCountAvg": { + "baseName": "fargate_tasks_count_avg", + "type": "number", + "format": "int64", + }, + "fargateTasksCountHwm": { + "baseName": "fargate_tasks_count_hwm", + "type": "number", + "format": "int64", + }, + "flexLogsComputeLargeAvg": { + "baseName": "flex_logs_compute_large_avg", + "type": "number", + "format": "int64", + }, + "flexLogsComputeMediumAvg": { + "baseName": "flex_logs_compute_medium_avg", + "type": "number", + "format": "int64", + }, + "flexLogsComputeSmallAvg": { + "baseName": "flex_logs_compute_small_avg", + "type": "number", + "format": "int64", + }, + "flexLogsComputeXsmallAvg": { + "baseName": "flex_logs_compute_xsmall_avg", + "type": "number", + "format": "int64", + }, + "flexLogsStarterAvg": { + "baseName": "flex_logs_starter_avg", + "type": "number", + "format": "int64", + }, + "flexLogsStarterStorageIndexAvg": { + "baseName": "flex_logs_starter_storage_index_avg", + "type": "number", + "format": "int64", + }, + "flexLogsStarterStorageRetentionAdjustmentAvg": { + "baseName": "flex_logs_starter_storage_retention_adjustment_avg", + "type": "number", + "format": "int64", + }, + "flexStoredLogsAvg": { + "baseName": "flex_stored_logs_avg", + "type": "number", + "format": "int64", + }, + "forwardingEventsBytesSum": { + "baseName": "forwarding_events_bytes_sum", + "type": "number", + "format": "int64", + }, + "gcpHostTop99p": { + "baseName": "gcp_host_top99p", + "type": "number", + "format": "int64", + }, + "herokuHostTop99p": { + "baseName": "heroku_host_top99p", + "type": "number", + "format": "int64", + }, + "id": { + "baseName": "id", + "type": "string", + }, + "incidentManagementMonthlyActiveUsersHwm": { + "baseName": "incident_management_monthly_active_users_hwm", + "type": "number", + "format": "int64", + }, + "indexedEventsCountSum": { + "baseName": "indexed_events_count_sum", + "type": "number", + "format": "int64", + }, + "infraHostTop99p": { + "baseName": "infra_host_top99p", + "type": "number", + "format": "int64", + }, + "ingestedEventsBytesSum": { + "baseName": "ingested_events_bytes_sum", + "type": "number", + "format": "int64", + }, + "iotDeviceAggSum": { + "baseName": "iot_device_agg_sum", + "type": "number", + "format": "int64", + }, + "iotDeviceTop99pSum": { + "baseName": "iot_device_top99p_sum", + "type": "number", + "format": "int64", + }, + "mobileRumLiteSessionCountSum": { + "baseName": "mobile_rum_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountAndroidSum": { + "baseName": "mobile_rum_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountFlutterSum": { + "baseName": "mobile_rum_session_count_flutter_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountIosSum": { + "baseName": "mobile_rum_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountReactnativeSum": { + "baseName": "mobile_rum_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountRokuSum": { + "baseName": "mobile_rum_session_count_roku_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountSum": { + "baseName": "mobile_rum_session_count_sum", + "type": "number", + "format": "int64", + }, + "mobileRumUnitsSum": { + "baseName": "mobile_rum_units_sum", + "type": "number", + "format": "int64", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "ndmNetflowEventsSum": { + "baseName": "ndm_netflow_events_sum", + "type": "number", + "format": "int64", + }, + "netflowIndexedEventsCountSum": { + "baseName": "netflow_indexed_events_count_sum", + "type": "number", + "format": "int64", + }, + "npmHostTop99p": { + "baseName": "npm_host_top99p", + "type": "number", + "format": "int64", + }, + "observabilityPipelinesBytesProcessedSum": { + "baseName": "observability_pipelines_bytes_processed_sum", + "type": "number", + "format": "int64", + }, + "ociHostSum": { + "baseName": "oci_host_sum", + "type": "number", + "format": "int64", + }, + "ociHostTop99p": { + "baseName": "oci_host_top99p", + "type": "number", + "format": "int64", + }, + "onlineArchiveEventsCountSum": { + "baseName": "online_archive_events_count_sum", + "type": "number", + "format": "int64", + }, + "opentelemetryApmHostTop99p": { + "baseName": "opentelemetry_apm_host_top99p", + "type": "number", + "format": "int64", + }, + "opentelemetryHostTop99p": { + "baseName": "opentelemetry_host_top99p", + "type": "number", + "format": "int64", + }, + "profilingAasCountTop99p": { + "baseName": "profiling_aas_count_top99p", + "type": "number", + "format": "int64", + }, + "profilingHostTop99p": { + "baseName": "profiling_host_top99p", + "type": "number", + "format": "int64", + }, + "publicId": { + "baseName": "public_id", + "type": "string", + }, + "region": { + "baseName": "region", + "type": "string", + }, + "rumBrowserAndMobileSessionCount": { + "baseName": "rum_browser_and_mobile_session_count", + "type": "number", + "format": "int64", + }, + "rumBrowserLegacySessionCountSum": { + "baseName": "rum_browser_legacy_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserLiteSessionCountSum": { + "baseName": "rum_browser_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserReplaySessionCountSum": { + "baseName": "rum_browser_replay_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumLiteSessionCountSum": { + "baseName": "rum_lite_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountAndroidSum": { + "baseName": "rum_mobile_legacy_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountFlutterSum": { + "baseName": "rum_mobile_legacy_session_count_flutter_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountIosSum": { + "baseName": "rum_mobile_legacy_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountReactnativeSum": { + "baseName": "rum_mobile_legacy_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountRokuSum": { + "baseName": "rum_mobile_legacy_session_count_roku_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountAndroidSum": { + "baseName": "rum_mobile_lite_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountFlutterSum": { + "baseName": "rum_mobile_lite_session_count_flutter_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountIosSum": { + "baseName": "rum_mobile_lite_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountKotlinmultiplatformSum": { + "baseName": "rum_mobile_lite_session_count_kotlinmultiplatform_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountReactnativeSum": { + "baseName": "rum_mobile_lite_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountRokuSum": { + "baseName": "rum_mobile_lite_session_count_roku_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountUnitySum": { + "baseName": "rum_mobile_lite_session_count_unity_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountAndroidSum": { + "baseName": "rum_mobile_replay_session_count_android_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountIosSum": { + "baseName": "rum_mobile_replay_session_count_ios_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountKotlinmultiplatformSum": { + "baseName": "rum_mobile_replay_session_count_kotlinmultiplatform_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountReactnativeSum": { + "baseName": "rum_mobile_replay_session_count_reactnative_sum", + "type": "number", + "format": "int64", + }, + "rumReplaySessionCountSum": { + "baseName": "rum_replay_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumSessionCountSum": { + "baseName": "rum_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumTotalSessionCountSum": { + "baseName": "rum_total_session_count_sum", + "type": "number", + "format": "int64", + }, + "rumUnitsSum": { + "baseName": "rum_units_sum", + "type": "number", + "format": "int64", + }, + "scaFargateCountAvg": { + "baseName": "sca_fargate_count_avg", + "type": "number", + "format": "int64", + }, + "scaFargateCountHwm": { + "baseName": "sca_fargate_count_hwm", + "type": "number", + "format": "int64", + }, + "sdsApmScannedBytesSum": { + "baseName": "sds_apm_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsEventsScannedBytesSum": { + "baseName": "sds_events_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsLogsScannedBytesSum": { + "baseName": "sds_logs_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsRumScannedBytesSum": { + "baseName": "sds_rum_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsTotalScannedBytesSum": { + "baseName": "sds_total_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "serverlessAppsAzureCountAvg": { + "baseName": "serverless_apps_azure_count_avg", + "type": "number", + "format": "int64", + }, + "serverlessAppsGoogleCountAvg": { + "baseName": "serverless_apps_google_count_avg", + "type": "number", + "format": "int64", + }, + "serverlessAppsTotalCountAvg": { + "baseName": "serverless_apps_total_count_avg", + "type": "number", + "format": "int64", + }, + "siemAnalyzedLogsAddOnCountSum": { + "baseName": "siem_analyzed_logs_add_on_count_sum", + "type": "number", + "format": "int64", + }, + "syntheticsBrowserCheckCallsCountSum": { + "baseName": "synthetics_browser_check_calls_count_sum", + "type": "number", + "format": "int64", + }, + "syntheticsCheckCallsCountSum": { + "baseName": "synthetics_check_calls_count_sum", + "type": "number", + "format": "int64", + }, + "syntheticsMobileTestRunsSum": { + "baseName": "synthetics_mobile_test_runs_sum", + "type": "number", + "format": "int64", + }, + "syntheticsParallelTestingMaxSlotsHwm": { + "baseName": "synthetics_parallel_testing_max_slots_hwm", + "type": "number", + "format": "int64", + }, + "traceSearchIndexedEventsCountSum": { + "baseName": "trace_search_indexed_events_count_sum", + "type": "number", + "format": "int64", + }, + "twolIngestedEventsBytesSum": { + "baseName": "twol_ingested_events_bytes_sum", + "type": "number", + "format": "int64", + }, + "universalServiceMonitoringHostTop99p": { + "baseName": "universal_service_monitoring_host_top99p", + "type": "number", + "format": "int64", + }, + "vsphereHostTop99p": { + "baseName": "vsphere_host_top99p", + "type": "number", + "format": "int64", + }, + "vulnManagementHostCountTop99p": { + "baseName": "vuln_management_host_count_top99p", + "type": "number", + "format": "int64", + }, + "workflowExecutionsUsageSum": { + "baseName": "workflow_executions_usage_sum", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSummaryDateOrg.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts b/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts index 3d24fdbc2bd8..b3080129ff42 100644 --- a/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts @@ -6,707 +6,712 @@ import { LogsByRetention } from "./LogsByRetention"; import { UsageSummaryDate } from "./UsageSummaryDate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response summarizing all usage aggregated across the months in the request for all organizations, and broken down by month and by organization. - */ +*/ export class UsageSummaryResponse { /** * Shows the 99th percentile of all agent hosts over all hours in the current month for all organizations. - */ + */ "agentHostTop99pSum"?: number; /** * Shows the 99th percentile of all Azure app services using APM over all hours in the current month all organizations. - */ + */ "apmAzureAppServiceHostTop99pSum"?: number; /** * Shows the 99th percentile of all APM DevSecOps hosts over all hours in the current month for all organizations. - */ + */ "apmDevsecopsHostTop99pSum"?: number; /** * Shows the average of all APM ECS Fargate tasks over all hours in the current month for all organizations. - */ + */ "apmFargateCountAvgSum"?: number; /** * Shows the 99th percentile of all distinct APM hosts over all hours in the current month for all organizations. - */ + */ "apmHostTop99pSum"?: number; /** * Shows the average of all Application Security Monitoring ECS Fargate tasks over all hours in the current month for all organizations. - */ + */ "appsecFargateCountAvgSum"?: number; /** * Shows the sum of all Application Security Monitoring Serverless invocations over all hours in the current months for all organizations. - */ + */ "asmServerlessAggSum"?: number; /** * Shows the sum of all audit logs lines indexed over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "auditLogsLinesIndexedAggSum"?: number; /** * Shows the total number of organizations that had Audit Trail enabled over a specific number of months. - */ + */ "auditTrailEnabledHwmSum"?: number; /** * The average total count for Fargate Container Profiler over all hours in the current month for all organizations. - */ + */ "avgProfiledFargateTasksSum"?: number; /** * Shows the 99th percentile of all AWS hosts over all hours in the current month for all organizations. - */ + */ "awsHostTop99pSum"?: number; /** * Shows the average of the number of functions that executed 1 or more times each hour in the current month for all organizations. - */ + */ "awsLambdaFuncCount"?: number; /** * Shows the sum of all AWS Lambda invocations over all hours in the current month for all organizations. - */ + */ "awsLambdaInvocationsSum"?: number; /** * Shows the 99th percentile of all Azure app services over all hours in the current month for all organizations. - */ + */ "azureAppServiceTop99pSum"?: number; /** * Shows the 99th percentile of all Azure hosts over all hours in the current month for all organizations. - */ + */ "azureHostTop99pSum"?: number; /** * Shows the sum of all log bytes ingested over all hours in the current month for all organizations. - */ + */ "billableIngestedBytesAggSum"?: number; /** * Shows the sum of all browser lite sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "browserRumLiteSessionCountAggSum"?: number; /** * Shows the sum of all browser replay sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "browserRumReplaySessionCountAggSum"?: number; /** * Shows the sum of all browser RUM units over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "browserRumUnitsAggSum"?: number; /** * Shows the sum of all CI pipeline indexed spans over all hours in the current month for all organizations. - */ + */ "ciPipelineIndexedSpansAggSum"?: number; /** * Shows the sum of all CI test indexed spans over all hours in the current month for all organizations. - */ + */ "ciTestIndexedSpansAggSum"?: number; /** * Shows the high-water mark of all CI visibility intelligent test runner committers over all hours in the current month for all organizations. - */ + */ "ciVisibilityItrCommittersHwmSum"?: number; /** * Shows the high-water mark of all CI visibility pipeline committers over all hours in the current month for all organizations. - */ + */ "ciVisibilityPipelineCommittersHwmSum"?: number; /** * Shows the high-water mark of all CI visibility test committers over all hours in the current month for all organizations. - */ + */ "ciVisibilityTestCommittersHwmSum"?: number; /** * Sum of the host count average for Cloud Cost Management for AWS. - */ + */ "cloudCostManagementAwsHostCountAvgSum"?: number; /** * Sum of the host count average for Cloud Cost Management for Azure. - */ + */ "cloudCostManagementAzureHostCountAvgSum"?: number; /** * Sum of the host count average for Cloud Cost Management for GCP. - */ + */ "cloudCostManagementGcpHostCountAvgSum"?: number; /** * Sum of the host count average for Cloud Cost Management for all cloud providers. - */ + */ "cloudCostManagementHostCountAvgSum"?: number; /** * Shows the sum of all Cloud Security Information and Event Management events over all hours in the current month for all organizations. - */ + */ "cloudSiemEventsAggSum"?: number; /** * Shows the high-water mark of all Static Analysis committers over all hours in the current month for all organizations. - */ + */ "codeAnalysisSaCommittersHwmSum"?: number; /** * Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current month for all organizations. - */ + */ "codeAnalysisScaCommittersHwmSum"?: number; /** * Shows the 99th percentile of all Code Security hosts over all hours in the current month for all organizations. - */ + */ "codeSecurityHostTop99pSum"?: number; /** * Shows the average of all distinct containers over all hours in the current month for all organizations. - */ + */ "containerAvgSum"?: number; /** * Shows the average of the containers without the Datadog Agent over all hours in the current month for all organizations. - */ + */ "containerExclAgentAvgSum"?: number; /** * Shows the sum of the high-water marks of all distinct containers over all hours in the current month for all organizations. - */ + */ "containerHwmSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise compliance containers over all hours in the current month for all organizations. - */ + */ "csmContainerEnterpriseComplianceCountAggSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise Cloud Workload Security containers over all hours in the current month for all organizations. - */ + */ "csmContainerEnterpriseCwsCountAggSum"?: number; /** * Shows the sum of all Cloud Security Management Enterprise containers over all hours in the current month for all organizations. - */ + */ "csmContainerEnterpriseTotalCountAggSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Azure app services hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseAasHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise AWS hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseAwsHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Azure hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseAzureHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise compliance hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseComplianceHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise Cloud Workload Security hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseCwsHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise GCP hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseGcpHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Enterprise hosts over all hours in the current month for all organizations. - */ + */ "csmHostEnterpriseTotalHostCountTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro Azure app services hosts over all hours in the current month for all organizations. - */ + */ "cspmAasHostTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro AWS hosts over all hours in the current month for all organizations. - */ + */ "cspmAwsHostTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro Azure hosts over all hours in the current month for all organizations. - */ + */ "cspmAzureHostTop99pSum"?: number; /** * Shows the average number of Cloud Security Management Pro containers over all hours in the current month for all organizations. - */ + */ "cspmContainerAvgSum"?: number; /** * Shows the sum of the high-water marks of Cloud Security Management Pro containers over all hours in the current month for all organizations. - */ + */ "cspmContainerHwmSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro GCP hosts over all hours in the current month for all organizations. - */ + */ "cspmGcpHostTop99pSum"?: number; /** * Shows the 99th percentile of all Cloud Security Management Pro hosts over all hours in the current month for all organizations. - */ + */ "cspmHostTop99pSum"?: number; /** * Shows the average number of distinct historical custom metrics over all hours in the current month for all organizations. - */ + */ "customHistoricalTsSum"?: number; /** * Shows the average number of distinct live custom metrics over all hours in the current month for all organizations. - */ + */ "customLiveTsSum"?: number; /** * Shows the average number of distinct custom metrics over all hours in the current month for all organizations. - */ + */ "customTsSum"?: number; /** * Shows the average of all distinct Cloud Workload Security containers over all hours in the current month for all organizations. - */ + */ "cwsContainerAvgSum"?: number; /** * Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current month for all organizations. - */ + */ "cwsFargateTaskAvgSum"?: number; /** * Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current month for all organizations. - */ + */ "cwsHostTop99pSum"?: number; /** * Shows the sum of Data Jobs Monitoring hosts over all hours in the current months for all organizations - */ + */ "dataJobsMonitoringHostHrAggSum"?: number; /** * Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. - */ + */ "dbmHostTop99pSum"?: number; /** * Shows the average of all distinct Database Monitoring Normalized Queries over all hours in the current month for all organizations. - */ + */ "dbmQueriesAvgSum"?: number; /** * Shows the last date of usage in the current month for all organizations. - */ + */ "endDate"?: Date; /** * Shows the sum of all ephemeral infrastructure hosts with the Datadog Agent over all hours in the current month for all organizations. - */ + */ "ephInfraHostAgentAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Alibaba over all hours in the current month for all organizations. - */ + */ "ephInfraHostAlibabaAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on AWS over all hours in the current month for all organizations. - */ + */ "ephInfraHostAwsAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current month for all organizations. - */ + */ "ephInfraHostAzureAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current month for all organizations. - */ + */ "ephInfraHostEntAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on GCP over all hours in the current month for all organizations. - */ + */ "ephInfraHostGcpAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts on Heroku over all hours in the current month for all organizations. - */ + */ "ephInfraHostHerokuAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with only Azure App Services over all hours in the current month for all organizations. - */ + */ "ephInfraHostOnlyAasAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts with only vSphere over all hours in the current month for all organizations. - */ + */ "ephInfraHostOnlyVsphereAggSum"?: number; /** * Shows the sum of all ephemeral hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current month for all organizations. - */ + */ "ephInfraHostOpentelemetryAggSum"?: number; /** * Shows the sum of all ephemeral APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current month for all organizations. - */ + */ "ephInfraHostOpentelemetryApmAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Pro over all hours in the current month for all organizations. - */ + */ "ephInfraHostProAggSum"?: number; /** * Shows the sum of all ephemeral infrastructure hosts for Pro Plus over all hours in the current month for all organizations. - */ + */ "ephInfraHostProplusAggSum"?: number; /** * Shows the sum of all Error Tracking APM error events over all hours in the current month for all organizations. - */ + */ "errorTrackingApmErrorEventsAggSum"?: number; /** * Shows the sum of all Error Tracking error events over all hours in the current month for all organizations. - */ + */ "errorTrackingErrorEventsAggSum"?: number; /** * Shows the sum of all Error Tracking events over all hours in the current months for all organizations. - */ + */ "errorTrackingEventsAggSum"?: number; /** * Shows the sum of all Error Tracking RUM error events over all hours in the current month for all organizations. - */ + */ "errorTrackingRumErrorEventsAggSum"?: number; /** * The average number of Profiling Fargate tasks over all hours in the current month for all organizations. - */ + */ "fargateContainerProfilerProfilingFargateAvgSum"?: number; /** * The average number of Profiling Fargate Elastic Kubernetes Service tasks over all hours in the current month for all organizations. - */ + */ "fargateContainerProfilerProfilingFargateEksAvgSum"?: number; /** * Shows the average of all Fargate tasks over all hours in the current month for all organizations. - */ + */ "fargateTasksCountAvgSum"?: number; /** * Shows the sum of the high-water marks of all Fargate tasks over all hours in the current month for all organizations. - */ + */ "fargateTasksCountHwmSum"?: number; /** * Shows the average number of Flex Logs Compute Large Instances over all hours in the current months for all organizations. - */ + */ "flexLogsComputeLargeAvgSum"?: number; /** * Shows the average number of Flex Logs Compute Medium Instances over all hours in the current months for all organizations. - */ + */ "flexLogsComputeMediumAvgSum"?: number; /** * Shows the average number of Flex Logs Compute Small Instances over all hours in the current months for all organizations. - */ + */ "flexLogsComputeSmallAvgSum"?: number; /** * Shows the average number of Flex Logs Compute Extra Small Instances over all hours in the current months for all organizations. - */ + */ "flexLogsComputeXsmallAvgSum"?: number; /** * Shows the average number of Flex Logs Starter Instances over all hours in the current months for all organizations. - */ + */ "flexLogsStarterAvgSum"?: number; /** * Shows the average number of Flex Logs Starter Storage Index Instances over all hours in the current months for all organizations. - */ + */ "flexLogsStarterStorageIndexAvgSum"?: number; /** * Shows the average number of Flex Logs Starter Storage Retention Adjustment Instances over all hours in the current months for all organizations. - */ + */ "flexLogsStarterStorageRetentionAdjustmentAvgSum"?: number; /** * Shows the average of all Flex Stored Logs over all hours in the current months for all organizations. - */ + */ "flexStoredLogsAvgSum"?: number; /** * Shows the sum of all logs forwarding bytes over all hours in the current month for all organizations (data available as of April 1, 2023) - */ + */ "forwardingEventsBytesAggSum"?: number; /** * Shows the 99th percentile of all GCP hosts over all hours in the current month for all organizations. - */ + */ "gcpHostTop99pSum"?: number; /** * Shows the 99th percentile of all Heroku dynos over all hours in the current month for all organizations. - */ + */ "herokuHostTop99pSum"?: number; /** * Shows sum of the high-water marks of incident management monthly active users in the current month for all organizations. - */ + */ "incidentManagementMonthlyActiveUsersHwmSum"?: number; /** * Shows the sum of all log events indexed over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "indexedEventsCountAggSum"?: number; /** * Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current month for all organizations. - */ + */ "infraHostTop99pSum"?: number; /** * Shows the sum of all log bytes ingested over all hours in the current month for all organizations. - */ + */ "ingestedEventsBytesAggSum"?: number; /** * Shows the sum of all IoT devices over all hours in the current month for all organizations. - */ + */ "iotDeviceAggSum"?: number; /** * Shows the 99th percentile of all IoT devices over all hours in the current month of all organizations. - */ + */ "iotDeviceTop99pSum"?: number; /** * Shows the most recent hour in the current month for all organizations for which all usages were calculated. - */ + */ "lastUpdated"?: Date; /** * Shows the sum of all live logs indexed over all hours in the current month for all organization (To be deprecated on October 1st, 2024). - */ + */ "liveIndexedEventsAggSum"?: number; /** * Shows the sum of all live logs bytes ingested over all hours in the current month for all organizations (data available as of December 1, 2020). - */ + */ "liveIngestedBytesAggSum"?: number; /** * Object containing logs usage data broken down by retention period. - */ + */ "logsByRetention"?: LogsByRetention; /** * Shows the sum of all mobile lite sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumLiteSessionCountAggSum"?: number; /** * Shows the sum of all mobile RUM sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountAggSum"?: number; /** * Shows the sum of all mobile RUM sessions on Android over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountAndroidAggSum"?: number; /** * Shows the sum of all mobile RUM sessions on Flutter over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountFlutterAggSum"?: number; /** * Shows the sum of all mobile RUM sessions on iOS over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountIosAggSum"?: number; /** * Shows the sum of all mobile RUM sessions on React Native over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountReactnativeAggSum"?: number; /** * Shows the sum of all mobile RUM sessions on Roku over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumSessionCountRokuAggSum"?: number; /** * Shows the sum of all mobile RUM units over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "mobileRumUnitsAggSum"?: number; /** * Shows the sum of all Network Device Monitoring NetFlow events over all hours in the current month for all organizations. - */ + */ "ndmNetflowEventsAggSum"?: number; /** * Shows the sum of all Network flows indexed over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "netflowIndexedEventsCountAggSum"?: number; /** * Shows the 99th percentile of all distinct Cloud Network Monitoring hosts (formerly known as Network hosts) over all hours in the current month for all organizations. - */ + */ "npmHostTop99pSum"?: number; /** * Sum of all observability pipelines bytes processed over all hours in the current month for all organizations. - */ + */ "observabilityPipelinesBytesProcessedAggSum"?: number; /** * Shows the sum of Oracle Cloud Infrastructure hosts over all hours in the current months for all organizations - */ + */ "ociHostAggSum"?: number; /** * Shows the 99th percentile of Oracle Cloud Infrastructure hosts over all hours in the current months for all organizations - */ + */ "ociHostTop99pSum"?: number; /** * Sum of all online archived events over all hours in the current month for all organizations. - */ + */ "onlineArchiveEventsCountAggSum"?: number; /** * Shows the 99th percentile of APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current month for all organizations. - */ + */ "opentelemetryApmHostTop99pSum"?: number; /** * Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current month for all organizations. - */ + */ "opentelemetryHostTop99pSum"?: number; /** * Shows the 99th percentile of all profiled Azure app services over all hours in the current month for all organizations. - */ + */ "profilingAasCountTop99pSum"?: number; /** * Shows the average number of profiled containers over all hours in the current month for all organizations. - */ + */ "profilingContainerAgentCountAvg"?: number; /** * Shows the 99th percentile of all profiled hosts over all hours in the current month for all organizations. - */ + */ "profilingHostCountTop99pSum"?: number; /** * Shows the sum of all rehydrated logs indexed over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rehydratedIndexedEventsAggSum"?: number; /** * Shows the sum of all rehydrated logs bytes ingested over all hours in the current month for all organizations (data available as of December 1, 2020). - */ + */ "rehydratedIngestedBytesAggSum"?: number; /** * Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rumBrowserAndMobileSessionCount"?: number; /** * Shows the sum of all browser RUM legacy sessions over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumBrowserLegacySessionCountAggSum"?: number; /** * Shows the sum of all browser RUM lite sessions over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumBrowserLiteSessionCountAggSum"?: number; /** * Shows the sum of all browser RUM Session Replay counts over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumBrowserReplaySessionCountAggSum"?: number; /** * Shows the sum of all RUM lite sessions (browser and mobile) over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumLiteSessionCountAggSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Android over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountAndroidAggSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Flutter over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountFlutterAggSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on iOS over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountIosAggSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on React Native over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountReactnativeAggSum"?: number; /** * Shows the sum of all mobile RUM legacy sessions on Roku over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLegacySessionCountRokuAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Android over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountAndroidAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Flutter over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountFlutterAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on iOS over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountIosAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Kotlin Multiplatform over all hours within the current month for all organizations. - */ + */ "rumMobileLiteSessionCountKotlinmultiplatformAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on React Native over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountReactnativeAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Roku over all hours within the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumMobileLiteSessionCountRokuAggSum"?: number; /** * Shows the sum of all mobile RUM lite sessions on Unity over all hours within the current month for all organizations. - */ + */ "rumMobileLiteSessionCountUnityAggSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on Android over all hours within the current month for all organizations. - */ + */ "rumMobileReplaySessionCountAndroidAggSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on iOS over all hours within the current month for all organizations. - */ + */ "rumMobileReplaySessionCountIosAggSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on Kotlin Multiplatform over all hours within the current month for all organizations. - */ + */ "rumMobileReplaySessionCountKotlinmultiplatformAggSum"?: number; /** * Shows the sum of all mobile RUM replay sessions on React Native over all hours within the current month for all organizations. - */ + */ "rumMobileReplaySessionCountReactnativeAggSum"?: number; /** * Shows the sum of all RUM Session Replay counts over all hours in the current month for all organizations (To be introduced on October 1st, 2024). - */ + */ "rumReplaySessionCountAggSum"?: number; /** * Shows the sum of all browser RUM lite sessions over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rumSessionCountAggSum"?: number; /** * Shows the sum of RUM sessions (browser and mobile) over all hours in the current month for all organizations. - */ + */ "rumTotalSessionCountAggSum"?: number; /** * Shows the sum of all browser and mobile RUM units over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). - */ + */ "rumUnitsAggSum"?: number; /** * Shows the average of all Software Composition Analysis Fargate tasks over all hours in the current months for all organizations. - */ + */ "scaFargateCountAvgSum"?: number; /** * Shows the sum of the high-water marks of all Software Composition Analysis Fargate tasks over all hours in the current months for all organizations. - */ + */ "scaFargateCountHwmSum"?: number; /** * Sum of all APM bytes scanned with sensitive data scanner in the current month for all organizations. - */ + */ "sdsApmScannedBytesSum"?: number; /** * Sum of all event stream events bytes scanned with sensitive data scanner in the current month for all organizations. - */ + */ "sdsEventsScannedBytesSum"?: number; /** * Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. - */ + */ "sdsLogsScannedBytesSum"?: number; /** * Sum of all RUM bytes scanned with sensitive data scanner in the current month for all organizations. - */ + */ "sdsRumScannedBytesSum"?: number; /** * Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. - */ + */ "sdsTotalScannedBytesSum"?: number; /** * Sum of the average number of Serverless Apps for Azure in the current month for all organizations. - */ + */ "serverlessAppsAzureCountAvgSum"?: number; /** * Sum of the average number of Serverless Apps for Google Cloud in the current month for all organizations. - */ + */ "serverlessAppsGoogleCountAvgSum"?: number; /** * Sum of the average number of Serverless Apps for Azure and Google Cloud in the current month for all organizations. - */ + */ "serverlessAppsTotalCountAvgSum"?: number; /** * Shows the sum of all log events analyzed by Cloud SIEM over all hours in the current month for all organizations. - */ + */ "siemAnalyzedLogsAddOnCountAggSum"?: number; /** * Shows the first date of usage in the current month for all organizations. - */ + */ "startDate"?: Date; /** * Shows the sum of all Synthetic browser tests over all hours in the current month for all organizations. - */ + */ "syntheticsBrowserCheckCallsCountAggSum"?: number; /** * Shows the sum of all Synthetic API tests over all hours in the current month for all organizations. - */ + */ "syntheticsCheckCallsCountAggSum"?: number; /** * Shows the sum of Synthetic mobile application tests over all hours in the current month for all organizations. - */ + */ "syntheticsMobileTestRunsAggSum"?: number; /** * Shows the sum of the high-water marks of used synthetics parallel testing slots over all hours in the current month for all organizations. - */ + */ "syntheticsParallelTestingMaxSlotsHwmSum"?: number; /** * Shows the sum of all Indexed Spans indexed over all hours in the current month for all organizations. - */ + */ "traceSearchIndexedEventsCountAggSum"?: number; /** * Shows the sum of all ingested APM span bytes over all hours in the current month for all organizations. - */ + */ "twolIngestedEventsBytesAggSum"?: number; /** * Shows the 99th percentile of all Universal Service Monitoring hosts over all hours in the current month for all organizations. - */ + */ "universalServiceMonitoringHostTop99pSum"?: number; /** * An array of objects regarding hourly usage. - */ + */ "usage"?: Array; /** * Shows the 99th percentile of all vSphere hosts over all hours in the current month for all organizations. - */ + */ "vsphereHostTop99pSum"?: number; /** * Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current month for all organizations. - */ + */ "vulnManagementHostCountTop99pSum"?: number; /** * Sum of all workflows executed over all hours in the current month for all organizations. - */ + */ "workflowExecutionsUsageAggSum"?: number; /** @@ -725,886 +730,912 @@ export class UsageSummaryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - agentHostTop99pSum: { - baseName: "agent_host_top99p_sum", - type: "number", - format: "int64", - }, - apmAzureAppServiceHostTop99pSum: { - baseName: "apm_azure_app_service_host_top99p_sum", - type: "number", - format: "int64", - }, - apmDevsecopsHostTop99pSum: { - baseName: "apm_devsecops_host_top99p_sum", - type: "number", - format: "int64", - }, - apmFargateCountAvgSum: { - baseName: "apm_fargate_count_avg_sum", - type: "number", - format: "int64", - }, - apmHostTop99pSum: { - baseName: "apm_host_top99p_sum", - type: "number", - format: "int64", - }, - appsecFargateCountAvgSum: { - baseName: "appsec_fargate_count_avg_sum", - type: "number", - format: "int64", - }, - asmServerlessAggSum: { - baseName: "asm_serverless_agg_sum", - type: "number", - format: "int64", - }, - auditLogsLinesIndexedAggSum: { - baseName: "audit_logs_lines_indexed_agg_sum", - type: "number", - format: "int64", - }, - auditTrailEnabledHwmSum: { - baseName: "audit_trail_enabled_hwm_sum", - type: "number", - format: "int64", - }, - avgProfiledFargateTasksSum: { - baseName: "avg_profiled_fargate_tasks_sum", - type: "number", - format: "int64", - }, - awsHostTop99pSum: { - baseName: "aws_host_top99p_sum", - type: "number", - format: "int64", - }, - awsLambdaFuncCount: { - baseName: "aws_lambda_func_count", - type: "number", - format: "int64", - }, - awsLambdaInvocationsSum: { - baseName: "aws_lambda_invocations_sum", - type: "number", - format: "int64", - }, - azureAppServiceTop99pSum: { - baseName: "azure_app_service_top99p_sum", - type: "number", - format: "int64", - }, - azureHostTop99pSum: { - baseName: "azure_host_top99p_sum", - type: "number", - format: "int64", - }, - billableIngestedBytesAggSum: { - baseName: "billable_ingested_bytes_agg_sum", - type: "number", - format: "int64", - }, - browserRumLiteSessionCountAggSum: { - baseName: "browser_rum_lite_session_count_agg_sum", - type: "number", - format: "int64", - }, - browserRumReplaySessionCountAggSum: { - baseName: "browser_rum_replay_session_count_agg_sum", - type: "number", - format: "int64", - }, - browserRumUnitsAggSum: { - baseName: "browser_rum_units_agg_sum", - type: "number", - format: "int64", - }, - ciPipelineIndexedSpansAggSum: { - baseName: "ci_pipeline_indexed_spans_agg_sum", - type: "number", - format: "int64", - }, - ciTestIndexedSpansAggSum: { - baseName: "ci_test_indexed_spans_agg_sum", - type: "number", - format: "int64", - }, - ciVisibilityItrCommittersHwmSum: { - baseName: "ci_visibility_itr_committers_hwm_sum", - type: "number", - format: "int64", - }, - ciVisibilityPipelineCommittersHwmSum: { - baseName: "ci_visibility_pipeline_committers_hwm_sum", - type: "number", - format: "int64", - }, - ciVisibilityTestCommittersHwmSum: { - baseName: "ci_visibility_test_committers_hwm_sum", - type: "number", - format: "int64", - }, - cloudCostManagementAwsHostCountAvgSum: { - baseName: "cloud_cost_management_aws_host_count_avg_sum", - type: "number", - format: "int64", - }, - cloudCostManagementAzureHostCountAvgSum: { - baseName: "cloud_cost_management_azure_host_count_avg_sum", - type: "number", - format: "int64", - }, - cloudCostManagementGcpHostCountAvgSum: { - baseName: "cloud_cost_management_gcp_host_count_avg_sum", - type: "number", - format: "int64", - }, - cloudCostManagementHostCountAvgSum: { - baseName: "cloud_cost_management_host_count_avg_sum", - type: "number", - format: "int64", - }, - cloudSiemEventsAggSum: { - baseName: "cloud_siem_events_agg_sum", - type: "number", - format: "int64", - }, - codeAnalysisSaCommittersHwmSum: { - baseName: "code_analysis_sa_committers_hwm_sum", - type: "number", - format: "int64", - }, - codeAnalysisScaCommittersHwmSum: { - baseName: "code_analysis_sca_committers_hwm_sum", - type: "number", - format: "int64", - }, - codeSecurityHostTop99pSum: { - baseName: "code_security_host_top99p_sum", - type: "number", - format: "int64", - }, - containerAvgSum: { - baseName: "container_avg_sum", - type: "number", - format: "int64", - }, - containerExclAgentAvgSum: { - baseName: "container_excl_agent_avg_sum", - type: "number", - format: "int64", - }, - containerHwmSum: { - baseName: "container_hwm_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseComplianceCountAggSum: { - baseName: "csm_container_enterprise_compliance_count_agg_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseCwsCountAggSum: { - baseName: "csm_container_enterprise_cws_count_agg_sum", - type: "number", - format: "int64", - }, - csmContainerEnterpriseTotalCountAggSum: { - baseName: "csm_container_enterprise_total_count_agg_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseAasHostCountTop99pSum: { - baseName: "csm_host_enterprise_aas_host_count_top99p_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseAwsHostCountTop99pSum: { - baseName: "csm_host_enterprise_aws_host_count_top99p_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseAzureHostCountTop99pSum: { - baseName: "csm_host_enterprise_azure_host_count_top99p_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseComplianceHostCountTop99pSum: { - baseName: "csm_host_enterprise_compliance_host_count_top99p_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseCwsHostCountTop99pSum: { - baseName: "csm_host_enterprise_cws_host_count_top99p_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseGcpHostCountTop99pSum: { - baseName: "csm_host_enterprise_gcp_host_count_top99p_sum", - type: "number", - format: "int64", - }, - csmHostEnterpriseTotalHostCountTop99pSum: { - baseName: "csm_host_enterprise_total_host_count_top99p_sum", - type: "number", - format: "int64", - }, - cspmAasHostTop99pSum: { - baseName: "cspm_aas_host_top99p_sum", - type: "number", - format: "int64", - }, - cspmAwsHostTop99pSum: { - baseName: "cspm_aws_host_top99p_sum", - type: "number", - format: "int64", - }, - cspmAzureHostTop99pSum: { - baseName: "cspm_azure_host_top99p_sum", - type: "number", - format: "int64", - }, - cspmContainerAvgSum: { - baseName: "cspm_container_avg_sum", - type: "number", - format: "int64", - }, - cspmContainerHwmSum: { - baseName: "cspm_container_hwm_sum", - type: "number", - format: "int64", - }, - cspmGcpHostTop99pSum: { - baseName: "cspm_gcp_host_top99p_sum", - type: "number", - format: "int64", - }, - cspmHostTop99pSum: { - baseName: "cspm_host_top99p_sum", - type: "number", - format: "int64", - }, - customHistoricalTsSum: { - baseName: "custom_historical_ts_sum", - type: "number", - format: "int64", - }, - customLiveTsSum: { - baseName: "custom_live_ts_sum", - type: "number", - format: "int64", - }, - customTsSum: { - baseName: "custom_ts_sum", - type: "number", - format: "int64", - }, - cwsContainerAvgSum: { - baseName: "cws_container_avg_sum", - type: "number", - format: "int64", - }, - cwsFargateTaskAvgSum: { - baseName: "cws_fargate_task_avg_sum", - type: "number", - format: "int64", - }, - cwsHostTop99pSum: { - baseName: "cws_host_top99p_sum", - type: "number", - format: "int64", - }, - dataJobsMonitoringHostHrAggSum: { - baseName: "data_jobs_monitoring_host_hr_agg_sum", - type: "number", - format: "int64", - }, - dbmHostTop99pSum: { - baseName: "dbm_host_top99p_sum", - type: "number", - format: "int64", - }, - dbmQueriesAvgSum: { - baseName: "dbm_queries_avg_sum", - type: "number", - format: "int64", - }, - endDate: { - baseName: "end_date", - type: "Date", - format: "date-time", - }, - ephInfraHostAgentAggSum: { - baseName: "eph_infra_host_agent_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostAlibabaAggSum: { - baseName: "eph_infra_host_alibaba_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostAwsAggSum: { - baseName: "eph_infra_host_aws_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostAzureAggSum: { - baseName: "eph_infra_host_azure_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostEntAggSum: { - baseName: "eph_infra_host_ent_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostGcpAggSum: { - baseName: "eph_infra_host_gcp_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostHerokuAggSum: { - baseName: "eph_infra_host_heroku_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostOnlyAasAggSum: { - baseName: "eph_infra_host_only_aas_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostOnlyVsphereAggSum: { - baseName: "eph_infra_host_only_vsphere_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostOpentelemetryAggSum: { - baseName: "eph_infra_host_opentelemetry_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostOpentelemetryApmAggSum: { - baseName: "eph_infra_host_opentelemetry_apm_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostProAggSum: { - baseName: "eph_infra_host_pro_agg_sum", - type: "number", - format: "int64", - }, - ephInfraHostProplusAggSum: { - baseName: "eph_infra_host_proplus_agg_sum", - type: "number", - format: "int64", - }, - errorTrackingApmErrorEventsAggSum: { - baseName: "error_tracking_apm_error_events_agg_sum", - type: "number", - format: "int64", - }, - errorTrackingErrorEventsAggSum: { - baseName: "error_tracking_error_events_agg_sum", - type: "number", - format: "int64", - }, - errorTrackingEventsAggSum: { - baseName: "error_tracking_events_agg_sum", - type: "number", - format: "int64", - }, - errorTrackingRumErrorEventsAggSum: { - baseName: "error_tracking_rum_error_events_agg_sum", - type: "number", - format: "int64", - }, - fargateContainerProfilerProfilingFargateAvgSum: { - baseName: "fargate_container_profiler_profiling_fargate_avg_sum", - type: "number", - format: "int64", - }, - fargateContainerProfilerProfilingFargateEksAvgSum: { - baseName: "fargate_container_profiler_profiling_fargate_eks_avg_sum", - type: "number", - format: "int64", - }, - fargateTasksCountAvgSum: { - baseName: "fargate_tasks_count_avg_sum", - type: "number", - format: "int64", - }, - fargateTasksCountHwmSum: { - baseName: "fargate_tasks_count_hwm_sum", - type: "number", - format: "int64", - }, - flexLogsComputeLargeAvgSum: { - baseName: "flex_logs_compute_large_avg_sum", - type: "number", - format: "int64", - }, - flexLogsComputeMediumAvgSum: { - baseName: "flex_logs_compute_medium_avg_sum", - type: "number", - format: "int64", - }, - flexLogsComputeSmallAvgSum: { - baseName: "flex_logs_compute_small_avg_sum", - type: "number", - format: "int64", - }, - flexLogsComputeXsmallAvgSum: { - baseName: "flex_logs_compute_xsmall_avg_sum", - type: "number", - format: "int64", - }, - flexLogsStarterAvgSum: { - baseName: "flex_logs_starter_avg_sum", - type: "number", - format: "int64", - }, - flexLogsStarterStorageIndexAvgSum: { - baseName: "flex_logs_starter_storage_index_avg_sum", - type: "number", - format: "int64", - }, - flexLogsStarterStorageRetentionAdjustmentAvgSum: { - baseName: "flex_logs_starter_storage_retention_adjustment_avg_sum", - type: "number", - format: "int64", - }, - flexStoredLogsAvgSum: { - baseName: "flex_stored_logs_avg_sum", - type: "number", - format: "int64", - }, - forwardingEventsBytesAggSum: { - baseName: "forwarding_events_bytes_agg_sum", - type: "number", - format: "int64", - }, - gcpHostTop99pSum: { - baseName: "gcp_host_top99p_sum", - type: "number", - format: "int64", - }, - herokuHostTop99pSum: { - baseName: "heroku_host_top99p_sum", - type: "number", - format: "int64", - }, - incidentManagementMonthlyActiveUsersHwmSum: { - baseName: "incident_management_monthly_active_users_hwm_sum", - type: "number", - format: "int64", - }, - indexedEventsCountAggSum: { - baseName: "indexed_events_count_agg_sum", - type: "number", - format: "int64", - }, - infraHostTop99pSum: { - baseName: "infra_host_top99p_sum", - type: "number", - format: "int64", - }, - ingestedEventsBytesAggSum: { - baseName: "ingested_events_bytes_agg_sum", - type: "number", - format: "int64", - }, - iotDeviceAggSum: { - baseName: "iot_device_agg_sum", - type: "number", - format: "int64", - }, - iotDeviceTop99pSum: { - baseName: "iot_device_top99p_sum", - type: "number", - format: "int64", - }, - lastUpdated: { - baseName: "last_updated", - type: "Date", - format: "date-time", - }, - liveIndexedEventsAggSum: { - baseName: "live_indexed_events_agg_sum", - type: "number", - format: "int64", - }, - liveIngestedBytesAggSum: { - baseName: "live_ingested_bytes_agg_sum", - type: "number", - format: "int64", - }, - logsByRetention: { - baseName: "logs_by_retention", - type: "LogsByRetention", - }, - mobileRumLiteSessionCountAggSum: { - baseName: "mobile_rum_lite_session_count_agg_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountAggSum: { - baseName: "mobile_rum_session_count_agg_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountAndroidAggSum: { - baseName: "mobile_rum_session_count_android_agg_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountFlutterAggSum: { - baseName: "mobile_rum_session_count_flutter_agg_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountIosAggSum: { - baseName: "mobile_rum_session_count_ios_agg_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountReactnativeAggSum: { - baseName: "mobile_rum_session_count_reactnative_agg_sum", - type: "number", - format: "int64", - }, - mobileRumSessionCountRokuAggSum: { - baseName: "mobile_rum_session_count_roku_agg_sum", - type: "number", - format: "int64", - }, - mobileRumUnitsAggSum: { - baseName: "mobile_rum_units_agg_sum", - type: "number", - format: "int64", - }, - ndmNetflowEventsAggSum: { - baseName: "ndm_netflow_events_agg_sum", - type: "number", - format: "int64", - }, - netflowIndexedEventsCountAggSum: { - baseName: "netflow_indexed_events_count_agg_sum", - type: "number", - format: "int64", - }, - npmHostTop99pSum: { - baseName: "npm_host_top99p_sum", - type: "number", - format: "int64", - }, - observabilityPipelinesBytesProcessedAggSum: { - baseName: "observability_pipelines_bytes_processed_agg_sum", - type: "number", - format: "int64", - }, - ociHostAggSum: { - baseName: "oci_host_agg_sum", - type: "number", - format: "int64", - }, - ociHostTop99pSum: { - baseName: "oci_host_top99p_sum", - type: "number", - format: "int64", - }, - onlineArchiveEventsCountAggSum: { - baseName: "online_archive_events_count_agg_sum", - type: "number", - format: "int64", - }, - opentelemetryApmHostTop99pSum: { - baseName: "opentelemetry_apm_host_top99p_sum", - type: "number", - format: "int64", - }, - opentelemetryHostTop99pSum: { - baseName: "opentelemetry_host_top99p_sum", - type: "number", - format: "int64", - }, - profilingAasCountTop99pSum: { - baseName: "profiling_aas_count_top99p_sum", - type: "number", - format: "int64", - }, - profilingContainerAgentCountAvg: { - baseName: "profiling_container_agent_count_avg", - type: "number", - format: "int64", - }, - profilingHostCountTop99pSum: { - baseName: "profiling_host_count_top99p_sum", - type: "number", - format: "int64", - }, - rehydratedIndexedEventsAggSum: { - baseName: "rehydrated_indexed_events_agg_sum", - type: "number", - format: "int64", - }, - rehydratedIngestedBytesAggSum: { - baseName: "rehydrated_ingested_bytes_agg_sum", - type: "number", - format: "int64", - }, - rumBrowserAndMobileSessionCount: { - baseName: "rum_browser_and_mobile_session_count", - type: "number", - format: "int64", - }, - rumBrowserLegacySessionCountAggSum: { - baseName: "rum_browser_legacy_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumBrowserLiteSessionCountAggSum: { - baseName: "rum_browser_lite_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumBrowserReplaySessionCountAggSum: { - baseName: "rum_browser_replay_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumLiteSessionCountAggSum: { - baseName: "rum_lite_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountAndroidAggSum: { - baseName: "rum_mobile_legacy_session_count_android_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountFlutterAggSum: { - baseName: "rum_mobile_legacy_session_count_flutter_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountIosAggSum: { - baseName: "rum_mobile_legacy_session_count_ios_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountReactnativeAggSum: { - baseName: "rum_mobile_legacy_session_count_reactnative_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLegacySessionCountRokuAggSum: { - baseName: "rum_mobile_legacy_session_count_roku_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountAndroidAggSum: { - baseName: "rum_mobile_lite_session_count_android_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountFlutterAggSum: { - baseName: "rum_mobile_lite_session_count_flutter_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountIosAggSum: { - baseName: "rum_mobile_lite_session_count_ios_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountKotlinmultiplatformAggSum: { - baseName: "rum_mobile_lite_session_count_kotlinmultiplatform_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountReactnativeAggSum: { - baseName: "rum_mobile_lite_session_count_reactnative_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountRokuAggSum: { - baseName: "rum_mobile_lite_session_count_roku_agg_sum", - type: "number", - format: "int64", - }, - rumMobileLiteSessionCountUnityAggSum: { - baseName: "rum_mobile_lite_session_count_unity_agg_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountAndroidAggSum: { - baseName: "rum_mobile_replay_session_count_android_agg_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountIosAggSum: { - baseName: "rum_mobile_replay_session_count_ios_agg_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountKotlinmultiplatformAggSum: { - baseName: "rum_mobile_replay_session_count_kotlinmultiplatform_agg_sum", - type: "number", - format: "int64", - }, - rumMobileReplaySessionCountReactnativeAggSum: { - baseName: "rum_mobile_replay_session_count_reactnative_agg_sum", - type: "number", - format: "int64", - }, - rumReplaySessionCountAggSum: { - baseName: "rum_replay_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumSessionCountAggSum: { - baseName: "rum_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumTotalSessionCountAggSum: { - baseName: "rum_total_session_count_agg_sum", - type: "number", - format: "int64", - }, - rumUnitsAggSum: { - baseName: "rum_units_agg_sum", - type: "number", - format: "int64", - }, - scaFargateCountAvgSum: { - baseName: "sca_fargate_count_avg_sum", - type: "number", - format: "int64", - }, - scaFargateCountHwmSum: { - baseName: "sca_fargate_count_hwm_sum", - type: "number", - format: "int64", - }, - sdsApmScannedBytesSum: { - baseName: "sds_apm_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsEventsScannedBytesSum: { - baseName: "sds_events_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsLogsScannedBytesSum: { - baseName: "sds_logs_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsRumScannedBytesSum: { - baseName: "sds_rum_scanned_bytes_sum", - type: "number", - format: "int64", - }, - sdsTotalScannedBytesSum: { - baseName: "sds_total_scanned_bytes_sum", - type: "number", - format: "int64", - }, - serverlessAppsAzureCountAvgSum: { - baseName: "serverless_apps_azure_count_avg_sum", - type: "number", - format: "int64", - }, - serverlessAppsGoogleCountAvgSum: { - baseName: "serverless_apps_google_count_avg_sum", - type: "number", - format: "int64", - }, - serverlessAppsTotalCountAvgSum: { - baseName: "serverless_apps_total_count_avg_sum", - type: "number", - format: "int64", - }, - siemAnalyzedLogsAddOnCountAggSum: { - baseName: "siem_analyzed_logs_add_on_count_agg_sum", - type: "number", - format: "int64", - }, - startDate: { - baseName: "start_date", - type: "Date", - format: "date-time", - }, - syntheticsBrowserCheckCallsCountAggSum: { - baseName: "synthetics_browser_check_calls_count_agg_sum", - type: "number", - format: "int64", - }, - syntheticsCheckCallsCountAggSum: { - baseName: "synthetics_check_calls_count_agg_sum", - type: "number", - format: "int64", - }, - syntheticsMobileTestRunsAggSum: { - baseName: "synthetics_mobile_test_runs_agg_sum", - type: "number", - format: "int64", - }, - syntheticsParallelTestingMaxSlotsHwmSum: { - baseName: "synthetics_parallel_testing_max_slots_hwm_sum", - type: "number", - format: "int64", - }, - traceSearchIndexedEventsCountAggSum: { - baseName: "trace_search_indexed_events_count_agg_sum", - type: "number", - format: "int64", - }, - twolIngestedEventsBytesAggSum: { - baseName: "twol_ingested_events_bytes_agg_sum", - type: "number", - format: "int64", - }, - universalServiceMonitoringHostTop99pSum: { - baseName: "universal_service_monitoring_host_top99p_sum", - type: "number", - format: "int64", - }, - usage: { - baseName: "usage", - type: "Array", - }, - vsphereHostTop99pSum: { - baseName: "vsphere_host_top99p_sum", - type: "number", - format: "int64", - }, - vulnManagementHostCountTop99pSum: { - baseName: "vuln_management_host_count_top99p_sum", - type: "number", - format: "int64", - }, - workflowExecutionsUsageAggSum: { - baseName: "workflow_executions_usage_agg_sum", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "agentHostTop99pSum": { + "baseName": "agent_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "apmAzureAppServiceHostTop99pSum": { + "baseName": "apm_azure_app_service_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "apmDevsecopsHostTop99pSum": { + "baseName": "apm_devsecops_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "apmFargateCountAvgSum": { + "baseName": "apm_fargate_count_avg_sum", + "type": "number", + "format": "int64", + }, + "apmHostTop99pSum": { + "baseName": "apm_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "appsecFargateCountAvgSum": { + "baseName": "appsec_fargate_count_avg_sum", + "type": "number", + "format": "int64", + }, + "asmServerlessAggSum": { + "baseName": "asm_serverless_agg_sum", + "type": "number", + "format": "int64", + }, + "auditLogsLinesIndexedAggSum": { + "baseName": "audit_logs_lines_indexed_agg_sum", + "type": "number", + "format": "int64", + }, + "auditTrailEnabledHwmSum": { + "baseName": "audit_trail_enabled_hwm_sum", + "type": "number", + "format": "int64", + }, + "avgProfiledFargateTasksSum": { + "baseName": "avg_profiled_fargate_tasks_sum", + "type": "number", + "format": "int64", + }, + "awsHostTop99pSum": { + "baseName": "aws_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "awsLambdaFuncCount": { + "baseName": "aws_lambda_func_count", + "type": "number", + "format": "int64", + }, + "awsLambdaInvocationsSum": { + "baseName": "aws_lambda_invocations_sum", + "type": "number", + "format": "int64", + }, + "azureAppServiceTop99pSum": { + "baseName": "azure_app_service_top99p_sum", + "type": "number", + "format": "int64", + }, + "azureHostTop99pSum": { + "baseName": "azure_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "billableIngestedBytesAggSum": { + "baseName": "billable_ingested_bytes_agg_sum", + "type": "number", + "format": "int64", + }, + "browserRumLiteSessionCountAggSum": { + "baseName": "browser_rum_lite_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "browserRumReplaySessionCountAggSum": { + "baseName": "browser_rum_replay_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "browserRumUnitsAggSum": { + "baseName": "browser_rum_units_agg_sum", + "type": "number", + "format": "int64", + }, + "ciPipelineIndexedSpansAggSum": { + "baseName": "ci_pipeline_indexed_spans_agg_sum", + "type": "number", + "format": "int64", + }, + "ciTestIndexedSpansAggSum": { + "baseName": "ci_test_indexed_spans_agg_sum", + "type": "number", + "format": "int64", + }, + "ciVisibilityItrCommittersHwmSum": { + "baseName": "ci_visibility_itr_committers_hwm_sum", + "type": "number", + "format": "int64", + }, + "ciVisibilityPipelineCommittersHwmSum": { + "baseName": "ci_visibility_pipeline_committers_hwm_sum", + "type": "number", + "format": "int64", + }, + "ciVisibilityTestCommittersHwmSum": { + "baseName": "ci_visibility_test_committers_hwm_sum", + "type": "number", + "format": "int64", + }, + "cloudCostManagementAwsHostCountAvgSum": { + "baseName": "cloud_cost_management_aws_host_count_avg_sum", + "type": "number", + "format": "int64", + }, + "cloudCostManagementAzureHostCountAvgSum": { + "baseName": "cloud_cost_management_azure_host_count_avg_sum", + "type": "number", + "format": "int64", + }, + "cloudCostManagementGcpHostCountAvgSum": { + "baseName": "cloud_cost_management_gcp_host_count_avg_sum", + "type": "number", + "format": "int64", + }, + "cloudCostManagementHostCountAvgSum": { + "baseName": "cloud_cost_management_host_count_avg_sum", + "type": "number", + "format": "int64", + }, + "cloudSiemEventsAggSum": { + "baseName": "cloud_siem_events_agg_sum", + "type": "number", + "format": "int64", + }, + "codeAnalysisSaCommittersHwmSum": { + "baseName": "code_analysis_sa_committers_hwm_sum", + "type": "number", + "format": "int64", + }, + "codeAnalysisScaCommittersHwmSum": { + "baseName": "code_analysis_sca_committers_hwm_sum", + "type": "number", + "format": "int64", + }, + "codeSecurityHostTop99pSum": { + "baseName": "code_security_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "containerAvgSum": { + "baseName": "container_avg_sum", + "type": "number", + "format": "int64", + }, + "containerExclAgentAvgSum": { + "baseName": "container_excl_agent_avg_sum", + "type": "number", + "format": "int64", + }, + "containerHwmSum": { + "baseName": "container_hwm_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseComplianceCountAggSum": { + "baseName": "csm_container_enterprise_compliance_count_agg_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseCwsCountAggSum": { + "baseName": "csm_container_enterprise_cws_count_agg_sum", + "type": "number", + "format": "int64", + }, + "csmContainerEnterpriseTotalCountAggSum": { + "baseName": "csm_container_enterprise_total_count_agg_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAasHostCountTop99pSum": { + "baseName": "csm_host_enterprise_aas_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAwsHostCountTop99pSum": { + "baseName": "csm_host_enterprise_aws_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseAzureHostCountTop99pSum": { + "baseName": "csm_host_enterprise_azure_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseComplianceHostCountTop99pSum": { + "baseName": "csm_host_enterprise_compliance_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseCwsHostCountTop99pSum": { + "baseName": "csm_host_enterprise_cws_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseGcpHostCountTop99pSum": { + "baseName": "csm_host_enterprise_gcp_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "csmHostEnterpriseTotalHostCountTop99pSum": { + "baseName": "csm_host_enterprise_total_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "cspmAasHostTop99pSum": { + "baseName": "cspm_aas_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "cspmAwsHostTop99pSum": { + "baseName": "cspm_aws_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "cspmAzureHostTop99pSum": { + "baseName": "cspm_azure_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "cspmContainerAvgSum": { + "baseName": "cspm_container_avg_sum", + "type": "number", + "format": "int64", + }, + "cspmContainerHwmSum": { + "baseName": "cspm_container_hwm_sum", + "type": "number", + "format": "int64", + }, + "cspmGcpHostTop99pSum": { + "baseName": "cspm_gcp_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "cspmHostTop99pSum": { + "baseName": "cspm_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "customHistoricalTsSum": { + "baseName": "custom_historical_ts_sum", + "type": "number", + "format": "int64", + }, + "customLiveTsSum": { + "baseName": "custom_live_ts_sum", + "type": "number", + "format": "int64", + }, + "customTsSum": { + "baseName": "custom_ts_sum", + "type": "number", + "format": "int64", + }, + "cwsContainerAvgSum": { + "baseName": "cws_container_avg_sum", + "type": "number", + "format": "int64", + }, + "cwsFargateTaskAvgSum": { + "baseName": "cws_fargate_task_avg_sum", + "type": "number", + "format": "int64", + }, + "cwsHostTop99pSum": { + "baseName": "cws_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "dataJobsMonitoringHostHrAggSum": { + "baseName": "data_jobs_monitoring_host_hr_agg_sum", + "type": "number", + "format": "int64", + }, + "dbmHostTop99pSum": { + "baseName": "dbm_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "dbmQueriesAvgSum": { + "baseName": "dbm_queries_avg_sum", + "type": "number", + "format": "int64", + }, + "endDate": { + "baseName": "end_date", + "type": "Date", + "format": "date-time", + }, + "ephInfraHostAgentAggSum": { + "baseName": "eph_infra_host_agent_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAlibabaAggSum": { + "baseName": "eph_infra_host_alibaba_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAwsAggSum": { + "baseName": "eph_infra_host_aws_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostAzureAggSum": { + "baseName": "eph_infra_host_azure_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostEntAggSum": { + "baseName": "eph_infra_host_ent_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostGcpAggSum": { + "baseName": "eph_infra_host_gcp_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostHerokuAggSum": { + "baseName": "eph_infra_host_heroku_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOnlyAasAggSum": { + "baseName": "eph_infra_host_only_aas_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOnlyVsphereAggSum": { + "baseName": "eph_infra_host_only_vsphere_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOpentelemetryAggSum": { + "baseName": "eph_infra_host_opentelemetry_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostOpentelemetryApmAggSum": { + "baseName": "eph_infra_host_opentelemetry_apm_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostProAggSum": { + "baseName": "eph_infra_host_pro_agg_sum", + "type": "number", + "format": "int64", + }, + "ephInfraHostProplusAggSum": { + "baseName": "eph_infra_host_proplus_agg_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingApmErrorEventsAggSum": { + "baseName": "error_tracking_apm_error_events_agg_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingErrorEventsAggSum": { + "baseName": "error_tracking_error_events_agg_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingEventsAggSum": { + "baseName": "error_tracking_events_agg_sum", + "type": "number", + "format": "int64", + }, + "errorTrackingRumErrorEventsAggSum": { + "baseName": "error_tracking_rum_error_events_agg_sum", + "type": "number", + "format": "int64", + }, + "fargateContainerProfilerProfilingFargateAvgSum": { + "baseName": "fargate_container_profiler_profiling_fargate_avg_sum", + "type": "number", + "format": "int64", + }, + "fargateContainerProfilerProfilingFargateEksAvgSum": { + "baseName": "fargate_container_profiler_profiling_fargate_eks_avg_sum", + "type": "number", + "format": "int64", + }, + "fargateTasksCountAvgSum": { + "baseName": "fargate_tasks_count_avg_sum", + "type": "number", + "format": "int64", + }, + "fargateTasksCountHwmSum": { + "baseName": "fargate_tasks_count_hwm_sum", + "type": "number", + "format": "int64", + }, + "flexLogsComputeLargeAvgSum": { + "baseName": "flex_logs_compute_large_avg_sum", + "type": "number", + "format": "int64", + }, + "flexLogsComputeMediumAvgSum": { + "baseName": "flex_logs_compute_medium_avg_sum", + "type": "number", + "format": "int64", + }, + "flexLogsComputeSmallAvgSum": { + "baseName": "flex_logs_compute_small_avg_sum", + "type": "number", + "format": "int64", + }, + "flexLogsComputeXsmallAvgSum": { + "baseName": "flex_logs_compute_xsmall_avg_sum", + "type": "number", + "format": "int64", + }, + "flexLogsStarterAvgSum": { + "baseName": "flex_logs_starter_avg_sum", + "type": "number", + "format": "int64", + }, + "flexLogsStarterStorageIndexAvgSum": { + "baseName": "flex_logs_starter_storage_index_avg_sum", + "type": "number", + "format": "int64", + }, + "flexLogsStarterStorageRetentionAdjustmentAvgSum": { + "baseName": "flex_logs_starter_storage_retention_adjustment_avg_sum", + "type": "number", + "format": "int64", + }, + "flexStoredLogsAvgSum": { + "baseName": "flex_stored_logs_avg_sum", + "type": "number", + "format": "int64", + }, + "forwardingEventsBytesAggSum": { + "baseName": "forwarding_events_bytes_agg_sum", + "type": "number", + "format": "int64", + }, + "gcpHostTop99pSum": { + "baseName": "gcp_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "herokuHostTop99pSum": { + "baseName": "heroku_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "incidentManagementMonthlyActiveUsersHwmSum": { + "baseName": "incident_management_monthly_active_users_hwm_sum", + "type": "number", + "format": "int64", + }, + "indexedEventsCountAggSum": { + "baseName": "indexed_events_count_agg_sum", + "type": "number", + "format": "int64", + }, + "infraHostTop99pSum": { + "baseName": "infra_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "ingestedEventsBytesAggSum": { + "baseName": "ingested_events_bytes_agg_sum", + "type": "number", + "format": "int64", + }, + "iotDeviceAggSum": { + "baseName": "iot_device_agg_sum", + "type": "number", + "format": "int64", + }, + "iotDeviceTop99pSum": { + "baseName": "iot_device_top99p_sum", + "type": "number", + "format": "int64", + }, + "lastUpdated": { + "baseName": "last_updated", + "type": "Date", + "format": "date-time", + }, + "liveIndexedEventsAggSum": { + "baseName": "live_indexed_events_agg_sum", + "type": "number", + "format": "int64", + }, + "liveIngestedBytesAggSum": { + "baseName": "live_ingested_bytes_agg_sum", + "type": "number", + "format": "int64", + }, + "logsByRetention": { + "baseName": "logs_by_retention", + "type": "LogsByRetention", + }, + "mobileRumLiteSessionCountAggSum": { + "baseName": "mobile_rum_lite_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountAggSum": { + "baseName": "mobile_rum_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountAndroidAggSum": { + "baseName": "mobile_rum_session_count_android_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountFlutterAggSum": { + "baseName": "mobile_rum_session_count_flutter_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountIosAggSum": { + "baseName": "mobile_rum_session_count_ios_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountReactnativeAggSum": { + "baseName": "mobile_rum_session_count_reactnative_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumSessionCountRokuAggSum": { + "baseName": "mobile_rum_session_count_roku_agg_sum", + "type": "number", + "format": "int64", + }, + "mobileRumUnitsAggSum": { + "baseName": "mobile_rum_units_agg_sum", + "type": "number", + "format": "int64", + }, + "ndmNetflowEventsAggSum": { + "baseName": "ndm_netflow_events_agg_sum", + "type": "number", + "format": "int64", + }, + "netflowIndexedEventsCountAggSum": { + "baseName": "netflow_indexed_events_count_agg_sum", + "type": "number", + "format": "int64", + }, + "npmHostTop99pSum": { + "baseName": "npm_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "observabilityPipelinesBytesProcessedAggSum": { + "baseName": "observability_pipelines_bytes_processed_agg_sum", + "type": "number", + "format": "int64", + }, + "ociHostAggSum": { + "baseName": "oci_host_agg_sum", + "type": "number", + "format": "int64", + }, + "ociHostTop99pSum": { + "baseName": "oci_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "onlineArchiveEventsCountAggSum": { + "baseName": "online_archive_events_count_agg_sum", + "type": "number", + "format": "int64", + }, + "opentelemetryApmHostTop99pSum": { + "baseName": "opentelemetry_apm_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "opentelemetryHostTop99pSum": { + "baseName": "opentelemetry_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "profilingAasCountTop99pSum": { + "baseName": "profiling_aas_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "profilingContainerAgentCountAvg": { + "baseName": "profiling_container_agent_count_avg", + "type": "number", + "format": "int64", + }, + "profilingHostCountTop99pSum": { + "baseName": "profiling_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "rehydratedIndexedEventsAggSum": { + "baseName": "rehydrated_indexed_events_agg_sum", + "type": "number", + "format": "int64", + }, + "rehydratedIngestedBytesAggSum": { + "baseName": "rehydrated_ingested_bytes_agg_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserAndMobileSessionCount": { + "baseName": "rum_browser_and_mobile_session_count", + "type": "number", + "format": "int64", + }, + "rumBrowserLegacySessionCountAggSum": { + "baseName": "rum_browser_legacy_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserLiteSessionCountAggSum": { + "baseName": "rum_browser_lite_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumBrowserReplaySessionCountAggSum": { + "baseName": "rum_browser_replay_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumLiteSessionCountAggSum": { + "baseName": "rum_lite_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountAndroidAggSum": { + "baseName": "rum_mobile_legacy_session_count_android_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountFlutterAggSum": { + "baseName": "rum_mobile_legacy_session_count_flutter_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountIosAggSum": { + "baseName": "rum_mobile_legacy_session_count_ios_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountReactnativeAggSum": { + "baseName": "rum_mobile_legacy_session_count_reactnative_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLegacySessionCountRokuAggSum": { + "baseName": "rum_mobile_legacy_session_count_roku_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountAndroidAggSum": { + "baseName": "rum_mobile_lite_session_count_android_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountFlutterAggSum": { + "baseName": "rum_mobile_lite_session_count_flutter_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountIosAggSum": { + "baseName": "rum_mobile_lite_session_count_ios_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountKotlinmultiplatformAggSum": { + "baseName": "rum_mobile_lite_session_count_kotlinmultiplatform_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountReactnativeAggSum": { + "baseName": "rum_mobile_lite_session_count_reactnative_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountRokuAggSum": { + "baseName": "rum_mobile_lite_session_count_roku_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileLiteSessionCountUnityAggSum": { + "baseName": "rum_mobile_lite_session_count_unity_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountAndroidAggSum": { + "baseName": "rum_mobile_replay_session_count_android_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountIosAggSum": { + "baseName": "rum_mobile_replay_session_count_ios_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountKotlinmultiplatformAggSum": { + "baseName": "rum_mobile_replay_session_count_kotlinmultiplatform_agg_sum", + "type": "number", + "format": "int64", + }, + "rumMobileReplaySessionCountReactnativeAggSum": { + "baseName": "rum_mobile_replay_session_count_reactnative_agg_sum", + "type": "number", + "format": "int64", + }, + "rumReplaySessionCountAggSum": { + "baseName": "rum_replay_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumSessionCountAggSum": { + "baseName": "rum_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumTotalSessionCountAggSum": { + "baseName": "rum_total_session_count_agg_sum", + "type": "number", + "format": "int64", + }, + "rumUnitsAggSum": { + "baseName": "rum_units_agg_sum", + "type": "number", + "format": "int64", + }, + "scaFargateCountAvgSum": { + "baseName": "sca_fargate_count_avg_sum", + "type": "number", + "format": "int64", + }, + "scaFargateCountHwmSum": { + "baseName": "sca_fargate_count_hwm_sum", + "type": "number", + "format": "int64", + }, + "sdsApmScannedBytesSum": { + "baseName": "sds_apm_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsEventsScannedBytesSum": { + "baseName": "sds_events_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsLogsScannedBytesSum": { + "baseName": "sds_logs_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsRumScannedBytesSum": { + "baseName": "sds_rum_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "sdsTotalScannedBytesSum": { + "baseName": "sds_total_scanned_bytes_sum", + "type": "number", + "format": "int64", + }, + "serverlessAppsAzureCountAvgSum": { + "baseName": "serverless_apps_azure_count_avg_sum", + "type": "number", + "format": "int64", + }, + "serverlessAppsGoogleCountAvgSum": { + "baseName": "serverless_apps_google_count_avg_sum", + "type": "number", + "format": "int64", + }, + "serverlessAppsTotalCountAvgSum": { + "baseName": "serverless_apps_total_count_avg_sum", + "type": "number", + "format": "int64", + }, + "siemAnalyzedLogsAddOnCountAggSum": { + "baseName": "siem_analyzed_logs_add_on_count_agg_sum", + "type": "number", + "format": "int64", + }, + "startDate": { + "baseName": "start_date", + "type": "Date", + "format": "date-time", + }, + "syntheticsBrowserCheckCallsCountAggSum": { + "baseName": "synthetics_browser_check_calls_count_agg_sum", + "type": "number", + "format": "int64", + }, + "syntheticsCheckCallsCountAggSum": { + "baseName": "synthetics_check_calls_count_agg_sum", + "type": "number", + "format": "int64", + }, + "syntheticsMobileTestRunsAggSum": { + "baseName": "synthetics_mobile_test_runs_agg_sum", + "type": "number", + "format": "int64", + }, + "syntheticsParallelTestingMaxSlotsHwmSum": { + "baseName": "synthetics_parallel_testing_max_slots_hwm_sum", + "type": "number", + "format": "int64", + }, + "traceSearchIndexedEventsCountAggSum": { + "baseName": "trace_search_indexed_events_count_agg_sum", + "type": "number", + "format": "int64", + }, + "twolIngestedEventsBytesAggSum": { + "baseName": "twol_ingested_events_bytes_agg_sum", + "type": "number", + "format": "int64", + }, + "universalServiceMonitoringHostTop99pSum": { + "baseName": "universal_service_monitoring_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "usage": { + "baseName": "usage", + "type": "Array", + }, + "vsphereHostTop99pSum": { + "baseName": "vsphere_host_top99p_sum", + "type": "number", + "format": "int64", + }, + "vulnManagementHostCountTop99pSum": { + "baseName": "vuln_management_host_count_top99p_sum", + "type": "number", + "format": "int64", + }, + "workflowExecutionsUsageAggSum": { + "baseName": "workflow_executions_usage_agg_sum", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSummaryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSyntheticsAPIHour.ts b/packages/datadog-api-client-v1/models/UsageSyntheticsAPIHour.ts index fe1fd07948a9..32bb6634d939 100644 --- a/packages/datadog-api-client-v1/models/UsageSyntheticsAPIHour.ts +++ b/packages/datadog-api-client-v1/models/UsageSyntheticsAPIHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of Synthetics API tests run for each hour for a given organization. - */ +*/ export class UsageSyntheticsAPIHour { /** * Contains the number of Synthetics API tests run. - */ + */ "checkCallsCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageSyntheticsAPIHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - checkCallsCount: { - baseName: "check_calls_count", - type: "number", - format: "int64", + "checkCallsCount": { + "baseName": "check_calls_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSyntheticsAPIHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSyntheticsAPIResponse.ts b/packages/datadog-api-client-v1/models/UsageSyntheticsAPIResponse.ts index 42812f42f883..a4065dc39b58 100644 --- a/packages/datadog-api-client-v1/models/UsageSyntheticsAPIResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSyntheticsAPIResponse.ts @@ -5,15 +5,20 @@ */ import { UsageSyntheticsAPIHour } from "./UsageSyntheticsAPIHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of Synthetics API tests run for each hour for a given organization. - */ +*/ export class UsageSyntheticsAPIResponse { /** * Get hourly usage for Synthetics API tests. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageSyntheticsAPIResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSyntheticsAPIResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserHour.ts b/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserHour.ts index a19bdbc08a41..cb23e6dfecf9 100644 --- a/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserHour.ts +++ b/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of Synthetics Browser tests run for each hour for a given organization. - */ +*/ export class UsageSyntheticsBrowserHour { /** * Contains the number of Synthetics Browser tests run. - */ + */ "browserCheckCallsCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageSyntheticsBrowserHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - browserCheckCallsCount: { - baseName: "browser_check_calls_count", - type: "number", - format: "int64", + "browserCheckCallsCount": { + "baseName": "browser_check_calls_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSyntheticsBrowserHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserResponse.ts b/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserResponse.ts index 945e329cbb78..cfa81474617a 100644 --- a/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSyntheticsBrowserResponse.ts @@ -5,15 +5,20 @@ */ import { UsageSyntheticsBrowserHour } from "./UsageSyntheticsBrowserHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of Synthetics Browser tests run for each hour for a given organization. - */ +*/ export class UsageSyntheticsBrowserResponse { /** * Get hourly usage for Synthetics Browser tests. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageSyntheticsBrowserResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSyntheticsBrowserResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSyntheticsHour.ts b/packages/datadog-api-client-v1/models/UsageSyntheticsHour.ts index 83bdc9af6382..d376c50eafa5 100644 --- a/packages/datadog-api-client-v1/models/UsageSyntheticsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageSyntheticsHour.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The number of synthetics tests run for each hour for a given organization. - */ +*/ export class UsageSyntheticsHour { /** * Contains the number of Synthetics API tests run. - */ + */ "checkCallsCount"?: number; /** * The hour for the usage. - */ + */ "hour"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -43,36 +48,62 @@ export class UsageSyntheticsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - checkCallsCount: { - baseName: "check_calls_count", - type: "number", - format: "int64", + "checkCallsCount": { + "baseName": "check_calls_count", + "type": "number", + "format": "int64", }, - hour: { - baseName: "hour", - type: "Date", - format: "date-time", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSyntheticsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageSyntheticsResponse.ts b/packages/datadog-api-client-v1/models/UsageSyntheticsResponse.ts index f4477a90d6cf..ebcdab948cad 100644 --- a/packages/datadog-api-client-v1/models/UsageSyntheticsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSyntheticsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageSyntheticsHour } from "./UsageSyntheticsHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of Synthetics API tests run for each hour for a given organization. - */ +*/ export class UsageSyntheticsResponse { /** * Array with the number of hourly Synthetics test run for a given organization. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageSyntheticsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageSyntheticsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageTimeseriesHour.ts b/packages/datadog-api-client-v1/models/UsageTimeseriesHour.ts index 7340470fb281..aa6b55e40c25 100644 --- a/packages/datadog-api-client-v1/models/UsageTimeseriesHour.ts +++ b/packages/datadog-api-client-v1/models/UsageTimeseriesHour.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The hourly usage of timeseries. - */ +*/ export class UsageTimeseriesHour { /** * The hour for the usage. - */ + */ "hour"?: Date; /** * Contains the number of custom metrics that are inputs for aggregations (metric configured is custom). - */ + */ "numCustomInputTimeseries"?: number; /** * Contains the number of custom metrics that are outputs for aggregations (metric configured is custom). - */ + */ "numCustomOutputTimeseries"?: number; /** * Contains sum of non-aggregation custom metrics and custom metrics that are outputs for aggregations. - */ + */ "numCustomTimeseries"?: number; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** @@ -51,46 +56,72 @@ export class UsageTimeseriesHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hour: { - baseName: "hour", - type: "Date", - format: "date-time", - }, - numCustomInputTimeseries: { - baseName: "num_custom_input_timeseries", - type: "number", - format: "int64", + "hour": { + "baseName": "hour", + "type": "Date", + "format": "date-time", }, - numCustomOutputTimeseries: { - baseName: "num_custom_output_timeseries", - type: "number", - format: "int64", + "numCustomInputTimeseries": { + "baseName": "num_custom_input_timeseries", + "type": "number", + "format": "int64", }, - numCustomTimeseries: { - baseName: "num_custom_timeseries", - type: "number", - format: "int64", + "numCustomOutputTimeseries": { + "baseName": "num_custom_output_timeseries", + "type": "number", + "format": "int64", }, - orgName: { - baseName: "org_name", - type: "string", + "numCustomTimeseries": { + "baseName": "num_custom_timeseries", + "type": "number", + "format": "int64", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "publicId": { + "baseName": "public_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTimeseriesHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageTimeseriesResponse.ts b/packages/datadog-api-client-v1/models/UsageTimeseriesResponse.ts index 1cef676dc920..a1fd4c94aa35 100644 --- a/packages/datadog-api-client-v1/models/UsageTimeseriesResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageTimeseriesResponse.ts @@ -5,15 +5,20 @@ */ import { UsageTimeseriesHour } from "./UsageTimeseriesHour"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing hourly usage of timeseries. - */ +*/ export class UsageTimeseriesResponse { /** * An array of objects regarding hourly usage of timeseries. - */ + */ "usage"?: Array; /** @@ -32,22 +37,48 @@ export class UsageTimeseriesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTimeseriesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsHour.ts b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsHour.ts index 7240c7e5128b..9973c6610de8 100644 --- a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsHour.ts +++ b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsHour.ts @@ -5,27 +5,32 @@ */ import { UsageMetricCategory } from "./UsageMetricCategory"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number of hourly recorded custom metrics for a given organization. - */ +*/ export class UsageTopAvgMetricsHour { /** * Average number of timeseries per hour in which the metric occurs. - */ + */ "avgMetricHour"?: number; /** * Maximum number of timeseries per hour in which the metric occurs. - */ + */ "maxMetricHour"?: number; /** * Contains the metric category. - */ + */ "metricCategory"?: UsageMetricCategory; /** * Contains the custom metric name. - */ + */ "metricName"?: string; /** @@ -44,36 +49,62 @@ export class UsageTopAvgMetricsHour { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - avgMetricHour: { - baseName: "avg_metric_hour", - type: "number", - format: "int64", + "avgMetricHour": { + "baseName": "avg_metric_hour", + "type": "number", + "format": "int64", }, - maxMetricHour: { - baseName: "max_metric_hour", - type: "number", - format: "int64", + "maxMetricHour": { + "baseName": "max_metric_hour", + "type": "number", + "format": "int64", }, - metricCategory: { - baseName: "metric_category", - type: "UsageMetricCategory", + "metricCategory": { + "baseName": "metric_category", + "type": "UsageMetricCategory", }, - metricName: { - baseName: "metric_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metricName": { + "baseName": "metric_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTopAvgMetricsHour.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsMetadata.ts b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsMetadata.ts index 38f9fa1286e8..1dc5efd5d58e 100644 --- a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsMetadata.ts +++ b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsMetadata.ts @@ -5,23 +5,28 @@ */ import { UsageTopAvgMetricsPagination } from "./UsageTopAvgMetricsPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class UsageTopAvgMetricsMetadata { /** * The day value from the user request that contains the returned usage data. (If day was used the request) - */ + */ "day"?: Date; /** * The month value from the user request that contains the returned usage data. (If month was used the request) - */ + */ "month"?: Date; /** * The metadata for the current pagination. - */ + */ "pagination"?: UsageTopAvgMetricsPagination; /** @@ -40,32 +45,58 @@ export class UsageTopAvgMetricsMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - day: { - baseName: "day", - type: "Date", - format: "date-time", - }, - month: { - baseName: "month", - type: "Date", - format: "date-time", + "day": { + "baseName": "day", + "type": "Date", + "format": "date-time", }, - pagination: { - baseName: "pagination", - type: "UsageTopAvgMetricsPagination", + "month": { + "baseName": "month", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "UsageTopAvgMetricsPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTopAvgMetricsMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsPagination.ts b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsPagination.ts index ae563db473b4..999cc52e9c63 100644 --- a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsPagination.ts +++ b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsPagination.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata for the current pagination. - */ +*/ export class UsageTopAvgMetricsPagination { /** * Maximum amount of records to be returned. - */ + */ "limit"?: number; /** * The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. - */ + */ "nextRecordId"?: string; /** * Total number of records. - */ + */ "totalNumberOfRecords"?: number; /** @@ -39,32 +44,58 @@ export class UsageTopAvgMetricsPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - limit: { - baseName: "limit", - type: "number", - format: "int64", - }, - nextRecordId: { - baseName: "next_record_id", - type: "string", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - totalNumberOfRecords: { - baseName: "total_number_of_records", - type: "number", - format: "int64", + "nextRecordId": { + "baseName": "next_record_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalNumberOfRecords": { + "baseName": "total_number_of_records", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTopAvgMetricsPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsResponse.ts b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsResponse.ts index f60fbc66864a..c351da14ef80 100644 --- a/packages/datadog-api-client-v1/models/UsageTopAvgMetricsResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageTopAvgMetricsResponse.ts @@ -6,19 +6,24 @@ import { UsageTopAvgMetricsHour } from "./UsageTopAvgMetricsHour"; import { UsageTopAvgMetricsMetadata } from "./UsageTopAvgMetricsMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the number of hourly recorded custom metrics for a given organization. - */ +*/ export class UsageTopAvgMetricsResponse { /** * The object containing document metadata. - */ + */ "metadata"?: UsageTopAvgMetricsMetadata; /** * Number of hourly recorded custom metrics for a given organization. - */ + */ "usage"?: Array; /** @@ -37,26 +42,52 @@ export class UsageTopAvgMetricsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metadata: { - baseName: "metadata", - type: "UsageTopAvgMetricsMetadata", + "metadata": { + "baseName": "metadata", + "type": "UsageTopAvgMetricsMetadata", }, - usage: { - baseName: "usage", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usage": { + "baseName": "usage", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTopAvgMetricsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/User.ts b/packages/datadog-api-client-v1/models/User.ts index bbc8a5fb4598..86d384a226ec 100644 --- a/packages/datadog-api-client-v1/models/User.ts +++ b/packages/datadog-api-client-v1/models/User.ts @@ -5,39 +5,44 @@ */ import { AccessRole } from "./AccessRole"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create, edit, and disable users. - */ +*/ export class User { /** * The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). - */ + */ "accessRole"?: AccessRole; /** * The new disabled status of the user. - */ + */ "disabled"?: boolean; /** * The new email of the user. - */ + */ "email"?: string; /** * The user handle, must be a valid email. - */ + */ "handle"?: string; /** * Gravatar icon associated to the user. - */ + */ "icon"?: string; /** * The name of the user. - */ + */ "name"?: string; /** * Whether or not the user logged in Datadog at least once. - */ + */ "verified"?: boolean; /** @@ -56,46 +61,72 @@ export class User { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessRole: { - baseName: "access_role", - type: "AccessRole", - }, - disabled: { - baseName: "disabled", - type: "boolean", + "accessRole": { + "baseName": "access_role", + "type": "AccessRole", }, - email: { - baseName: "email", - type: "string", + "disabled": { + "baseName": "disabled", + "type": "boolean", }, - handle: { - baseName: "handle", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - icon: { - baseName: "icon", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "icon": { + "baseName": "icon", + "type": "string", }, - verified: { - baseName: "verified", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "verified": { + "baseName": "verified", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return User.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UserDisableResponse.ts b/packages/datadog-api-client-v1/models/UserDisableResponse.ts index bf71f172da21..894599e05d06 100644 --- a/packages/datadog-api-client-v1/models/UserDisableResponse.ts +++ b/packages/datadog-api-client-v1/models/UserDisableResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Array of user disabled for a given organization. - */ +*/ export class UserDisableResponse { /** * Information pertaining to a user disabled for a given organization. - */ + */ "message"?: string; /** @@ -31,22 +36,48 @@ export class UserDisableResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserDisableResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UserListResponse.ts b/packages/datadog-api-client-v1/models/UserListResponse.ts index 89fd93afb528..c17b7d1ce2b6 100644 --- a/packages/datadog-api-client-v1/models/UserListResponse.ts +++ b/packages/datadog-api-client-v1/models/UserListResponse.ts @@ -5,15 +5,20 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Array of Datadog users for a given organization. - */ +*/ export class UserListResponse { /** * Array of users. - */ + */ "users"?: Array; /** @@ -32,22 +37,48 @@ export class UserListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - users: { - baseName: "users", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "users": { + "baseName": "users", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/UserResponse.ts b/packages/datadog-api-client-v1/models/UserResponse.ts index 7505b65679a3..348561a443a0 100644 --- a/packages/datadog-api-client-v1/models/UserResponse.ts +++ b/packages/datadog-api-client-v1/models/UserResponse.ts @@ -5,15 +5,20 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Datadog User. - */ +*/ export class UserResponse { /** * Create, edit, and disable users. - */ + */ "user"?: User; /** @@ -32,22 +37,48 @@ export class UserResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - user: { - baseName: "user", - type: "User", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "user": { + "baseName": "user", + "type": "User", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ViewingPreferences.ts b/packages/datadog-api-client-v1/models/ViewingPreferences.ts index ce0e8c652f3b..db452bea6b00 100644 --- a/packages/datadog-api-client-v1/models/ViewingPreferences.ts +++ b/packages/datadog-api-client-v1/models/ViewingPreferences.ts @@ -5,19 +5,24 @@ */ import { ViewingPreferencesTheme } from "./ViewingPreferencesTheme"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The viewing preferences for a shared dashboard. - */ +*/ export class ViewingPreferences { /** * Whether the widgets on the shared dashboard should be displayed with high density. - */ + */ "highDensity"?: boolean; /** * The theme of the shared dashboard view. "system" follows your system's default viewing theme. - */ + */ "theme"?: ViewingPreferencesTheme; /** @@ -36,26 +41,52 @@ export class ViewingPreferences { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - highDensity: { - baseName: "high_density", - type: "boolean", + "highDensity": { + "baseName": "high_density", + "type": "boolean", }, - theme: { - baseName: "theme", - type: "ViewingPreferencesTheme", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "theme": { + "baseName": "theme", + "type": "ViewingPreferencesTheme", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ViewingPreferences.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/ViewingPreferencesTheme.ts b/packages/datadog-api-client-v1/models/ViewingPreferencesTheme.ts index a8aa030d15a5..bf2a9a8c3394 100644 --- a/packages/datadog-api-client-v1/models/ViewingPreferencesTheme.ts +++ b/packages/datadog-api-client-v1/models/ViewingPreferencesTheme.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The theme of the shared dashboard view. "system" follows your system's default viewing theme. - */ +*/ -export type ViewingPreferencesTheme = - | typeof SYSTEM - | typeof LIGHT - | typeof DARK - | UnparsedObject; -export const SYSTEM = "system"; -export const LIGHT = "light"; -export const DARK = "dark"; +export type ViewingPreferencesTheme = typeof SYSTEM| typeof LIGHT| typeof DARK | UnparsedObject; +export const SYSTEM = 'system'; +export const LIGHT = 'light'; +export const DARK = 'dark'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WebhooksIntegration.ts b/packages/datadog-api-client-v1/models/WebhooksIntegration.ts index 576bc6da5f56..81c13e91477a 100644 --- a/packages/datadog-api-client-v1/models/WebhooksIntegration.ts +++ b/packages/datadog-api-client-v1/models/WebhooksIntegration.ts @@ -5,37 +5,42 @@ */ import { WebhooksIntegrationEncoding } from "./WebhooksIntegrationEncoding"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog-Webhooks integration. - */ +*/ export class WebhooksIntegration { /** * If `null`, uses no header. * If given a JSON payload, these will be headers attached to your webhook. - */ + */ "customHeaders"?: string; /** * Encoding type. Can be given either `json` or `form`. - */ + */ "encodeAs"?: WebhooksIntegrationEncoding; /** * The name of the webhook. It corresponds with ``. * Learn more on how to use it in * [monitor notifications](https://docs.datadoghq.com/monitors/notify). - */ + */ "name": string; /** * If `null`, uses the default payload. * If given a JSON payload, the webhook returns the payload * specified by the given payload. * [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). - */ + */ "payload"?: string; /** * URL of the webhook. - */ + */ "url": string; /** @@ -54,40 +59,66 @@ export class WebhooksIntegration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customHeaders: { - baseName: "custom_headers", - type: "string", + "customHeaders": { + "baseName": "custom_headers", + "type": "string", }, - encodeAs: { - baseName: "encode_as", - type: "WebhooksIntegrationEncoding", + "encodeAs": { + "baseName": "encode_as", + "type": "WebhooksIntegrationEncoding", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - payload: { - baseName: "payload", - type: "string", + "payload": { + "baseName": "payload", + "type": "string", }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WebhooksIntegration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariable.ts b/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariable.ts index c8175caa888a..defc87018f01 100644 --- a/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariable.ts +++ b/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariable.ts @@ -4,24 +4,29 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Custom variable for Webhook integration. - */ +*/ export class WebhooksIntegrationCustomVariable { /** * Make custom variable is secret or not. * If the custom variable is secret, the value is not returned in the response payload. - */ + */ "isSecret": boolean; /** * The name of the variable. It corresponds with ``. - */ + */ "name": string; /** * Value of the custom variable. - */ + */ "value": string; /** @@ -40,33 +45,59 @@ export class WebhooksIntegrationCustomVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isSecret: { - baseName: "is_secret", - type: "boolean", - required: true, - }, - name: { - baseName: "name", - type: "string", - required: true, + "isSecret": { + "baseName": "is_secret", + "type": "boolean", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WebhooksIntegrationCustomVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableResponse.ts b/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableResponse.ts index fd426b6be2e8..81c2d6e0aca0 100644 --- a/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableResponse.ts +++ b/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableResponse.ts @@ -4,24 +4,29 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Custom variable for Webhook integration. - */ +*/ export class WebhooksIntegrationCustomVariableResponse { /** * Make custom variable is secret or not. * If the custom variable is secret, the value is not returned in the response payload. - */ + */ "isSecret": boolean; /** * The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. - */ + */ "name": string; /** * Value of the custom variable. It won't be returned if the variable is secret. - */ + */ "value"?: string; /** @@ -40,32 +45,58 @@ export class WebhooksIntegrationCustomVariableResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isSecret: { - baseName: "is_secret", - type: "boolean", - required: true, - }, - name: { - baseName: "name", - type: "string", - required: true, + "isSecret": { + "baseName": "is_secret", + "type": "boolean", + "required": true, }, - value: { - baseName: "value", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WebhooksIntegrationCustomVariableResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableUpdateRequest.ts b/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableUpdateRequest.ts index 63b064d85a03..6902a695c9ad 100644 --- a/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/WebhooksIntegrationCustomVariableUpdateRequest.ts @@ -4,26 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request of a custom variable object. - * + * * *All properties are optional.* - */ +*/ export class WebhooksIntegrationCustomVariableUpdateRequest { /** * Make custom variable is secret or not. * If the custom variable is secret, the value is not returned in the response payload. - */ + */ "isSecret"?: boolean; /** * The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. - */ + */ "name"?: string; /** * Value of the custom variable. - */ + */ "value"?: string; /** @@ -42,30 +47,56 @@ export class WebhooksIntegrationCustomVariableUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isSecret: { - baseName: "is_secret", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", + "isSecret": { + "baseName": "is_secret", + "type": "boolean", }, - value: { - baseName: "value", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WebhooksIntegrationCustomVariableUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WebhooksIntegrationEncoding.ts b/packages/datadog-api-client-v1/models/WebhooksIntegrationEncoding.ts index feb79b9a7da0..4d9e69aabef3 100644 --- a/packages/datadog-api-client-v1/models/WebhooksIntegrationEncoding.ts +++ b/packages/datadog-api-client-v1/models/WebhooksIntegrationEncoding.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Encoding type. Can be given either `json` or `form`. - */ +*/ -export type WebhooksIntegrationEncoding = - | typeof JSON - | typeof FORM - | UnparsedObject; -export const JSON = "json"; -export const FORM = "form"; +export type WebhooksIntegrationEncoding = typeof JSON| typeof FORM | UnparsedObject; +export const JSON = 'json'; +export const FORM = 'form'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WebhooksIntegrationUpdateRequest.ts b/packages/datadog-api-client-v1/models/WebhooksIntegrationUpdateRequest.ts index 087e3730bbbc..6e6eabe4d8ba 100644 --- a/packages/datadog-api-client-v1/models/WebhooksIntegrationUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/WebhooksIntegrationUpdateRequest.ts @@ -5,39 +5,44 @@ */ import { WebhooksIntegrationEncoding } from "./WebhooksIntegrationEncoding"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request of a Webhooks integration object. - * + * * *All properties are optional.* - */ +*/ export class WebhooksIntegrationUpdateRequest { /** * If `null`, uses no header. * If given a JSON payload, these will be headers attached to your webhook. - */ + */ "customHeaders"?: string; /** * Encoding type. Can be given either `json` or `form`. - */ + */ "encodeAs"?: WebhooksIntegrationEncoding; /** * The name of the webhook. It corresponds with ``. * Learn more on how to use it in * [monitor notifications](https://docs.datadoghq.com/monitors/notify). - */ + */ "name"?: string; /** * If `null`, uses the default payload. * If given a JSON payload, the webhook returns the payload * specified by the given payload. * [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). - */ + */ "payload"?: string; /** * URL of the webhook. - */ + */ "url"?: string; /** @@ -56,38 +61,64 @@ export class WebhooksIntegrationUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customHeaders: { - baseName: "custom_headers", - type: "string", + "customHeaders": { + "baseName": "custom_headers", + "type": "string", }, - encodeAs: { - baseName: "encode_as", - type: "WebhooksIntegrationEncoding", + "encodeAs": { + "baseName": "encode_as", + "type": "WebhooksIntegrationEncoding", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - payload: { - baseName: "payload", - type: "string", + "payload": { + "baseName": "payload", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WebhooksIntegrationUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/Widget.ts b/packages/datadog-api-client-v1/models/Widget.ts index a991fceeda57..d622dbfa79f1 100644 --- a/packages/datadog-api-client-v1/models/Widget.ts +++ b/packages/datadog-api-client-v1/models/Widget.ts @@ -6,28 +6,33 @@ import { WidgetDefinition } from "./WidgetDefinition"; import { WidgetLayout } from "./WidgetLayout"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about widget. - * + * * **Note**: The `layout` property is required for widgets in dashboards with `free` `layout_type`. * For the **new dashboard layout**, the `layout` property depends on the `reflow_type` of the dashboard. * - If `reflow_type` is `fixed`, `layout` is required. * - If `reflow_type` is `auto`, `layout` should not be set. - */ +*/ export class Widget { /** * [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). - */ + */ "definition": WidgetDefinition; /** * ID of the widget. - */ + */ "id"?: number; /** * The layout for a widget on a `free` or **new dashboard layout** dashboard. - */ + */ "layout"?: WidgetLayout; /** @@ -46,32 +51,58 @@ export class Widget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "WidgetDefinition", - required: true, - }, - id: { - baseName: "id", - type: "number", - format: "int64", + "definition": { + "baseName": "definition", + "type": "WidgetDefinition", + "required": true, }, - layout: { - baseName: "layout", - type: "WidgetLayout", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "layout": { + "baseName": "layout", + "type": "WidgetLayout", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Widget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetAggregator.ts b/packages/datadog-api-client-v1/models/WidgetAggregator.ts index c51491ccecc8..ae815ec84708 100644 --- a/packages/datadog-api-client-v1/models/WidgetAggregator.ts +++ b/packages/datadog-api-client-v1/models/WidgetAggregator.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Aggregator used for the request. - */ +*/ -export type WidgetAggregator = - | typeof AVERAGE - | typeof LAST - | typeof MAXIMUM - | typeof MINIMUM - | typeof SUM - | typeof PERCENTILE - | UnparsedObject; -export const AVERAGE = "avg"; -export const LAST = "last"; -export const MAXIMUM = "max"; -export const MINIMUM = "min"; -export const SUM = "sum"; -export const PERCENTILE = "percentile"; +export type WidgetAggregator = typeof AVERAGE| typeof LAST| typeof MAXIMUM| typeof MINIMUM| typeof SUM| typeof PERCENTILE | UnparsedObject; +export const AVERAGE = 'avg'; +export const LAST = 'last'; +export const MAXIMUM = 'max'; +export const MINIMUM = 'min'; +export const SUM = 'sum'; +export const PERCENTILE = 'percentile'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetAxis.ts b/packages/datadog-api-client-v1/models/WidgetAxis.ts index 04df83685de5..9f96c33d6b78 100644 --- a/packages/datadog-api-client-v1/models/WidgetAxis.ts +++ b/packages/datadog-api-client-v1/models/WidgetAxis.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Axis controls for the widget. - */ +*/ export class WidgetAxis { /** * Set to `true` to include zero. - */ + */ "includeZero"?: boolean; /** * The label of the axis to display on the graph. Only usable on Scatterplot Widgets. - */ + */ "label"?: string; /** * Specifies maximum numeric value to show on the axis. Defaults to `auto`. - */ + */ "max"?: string; /** * Specifies minimum numeric value to show on the axis. Defaults to `auto`. - */ + */ "min"?: string; /** * Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). - */ + */ "scale"?: string; /** @@ -47,38 +52,64 @@ export class WidgetAxis { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeZero: { - baseName: "include_zero", - type: "boolean", + "includeZero": { + "baseName": "include_zero", + "type": "boolean", }, - label: { - baseName: "label", - type: "string", + "label": { + "baseName": "label", + "type": "string", }, - max: { - baseName: "max", - type: "string", + "max": { + "baseName": "max", + "type": "string", }, - min: { - baseName: "min", - type: "string", + "min": { + "baseName": "min", + "type": "string", }, - scale: { - baseName: "scale", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scale": { + "baseName": "scale", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetAxis.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetChangeType.ts b/packages/datadog-api-client-v1/models/WidgetChangeType.ts index 4053117eb04c..f9ca9e61c564 100644 --- a/packages/datadog-api-client-v1/models/WidgetChangeType.ts +++ b/packages/datadog-api-client-v1/models/WidgetChangeType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Show the absolute or the relative change. - */ +*/ -export type WidgetChangeType = - | typeof ABSOLUTE - | typeof RELATIVE - | UnparsedObject; -export const ABSOLUTE = "absolute"; -export const RELATIVE = "relative"; +export type WidgetChangeType = typeof ABSOLUTE| typeof RELATIVE | UnparsedObject; +export const ABSOLUTE = 'absolute'; +export const RELATIVE = 'relative'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetColorPreference.ts b/packages/datadog-api-client-v1/models/WidgetColorPreference.ts index 61fb55044dbf..11abadd44a6b 100644 --- a/packages/datadog-api-client-v1/models/WidgetColorPreference.ts +++ b/packages/datadog-api-client-v1/models/WidgetColorPreference.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Which color to use on the widget. - */ +*/ -export type WidgetColorPreference = - | typeof BACKGROUND - | typeof TEXT - | UnparsedObject; -export const BACKGROUND = "background"; -export const TEXT = "text"; +export type WidgetColorPreference = typeof BACKGROUND| typeof TEXT | UnparsedObject; +export const BACKGROUND = 'background'; +export const TEXT = 'text'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetComparator.ts b/packages/datadog-api-client-v1/models/WidgetComparator.ts index ede9b201089a..ab03dd5fb8ab 100644 --- a/packages/datadog-api-client-v1/models/WidgetComparator.ts +++ b/packages/datadog-api-client-v1/models/WidgetComparator.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Comparator to apply. - */ +*/ -export type WidgetComparator = - | typeof EQUAL_TO - | typeof GREATER_THAN - | typeof GREATER_THAN_OR_EQUAL_TO - | typeof LESS_THAN - | typeof LESS_THAN_OR_EQUAL_TO - | UnparsedObject; -export const EQUAL_TO = "="; -export const GREATER_THAN = ">"; -export const GREATER_THAN_OR_EQUAL_TO = ">="; -export const LESS_THAN = "<"; -export const LESS_THAN_OR_EQUAL_TO = "<="; +export type WidgetComparator = typeof EQUAL_TO| typeof GREATER_THAN| typeof GREATER_THAN_OR_EQUAL_TO| typeof LESS_THAN| typeof LESS_THAN_OR_EQUAL_TO | UnparsedObject; +export const EQUAL_TO = '='; +export const GREATER_THAN = '>'; +export const GREATER_THAN_OR_EQUAL_TO = '>='; +export const LESS_THAN = '<'; +export const LESS_THAN_OR_EQUAL_TO = '<='; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetCompareTo.ts b/packages/datadog-api-client-v1/models/WidgetCompareTo.ts index 4087aaa1a7e6..c9e8e27d7ceb 100644 --- a/packages/datadog-api-client-v1/models/WidgetCompareTo.ts +++ b/packages/datadog-api-client-v1/models/WidgetCompareTo.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Timeframe used for the change comparison. - */ +*/ -export type WidgetCompareTo = - | typeof HOUR_BEFORE - | typeof DAY_BEFORE - | typeof WEEK_BEFORE - | typeof MONTH_BEFORE - | UnparsedObject; -export const HOUR_BEFORE = "hour_before"; -export const DAY_BEFORE = "day_before"; -export const WEEK_BEFORE = "week_before"; -export const MONTH_BEFORE = "month_before"; +export type WidgetCompareTo = typeof HOUR_BEFORE| typeof DAY_BEFORE| typeof WEEK_BEFORE| typeof MONTH_BEFORE | UnparsedObject; +export const HOUR_BEFORE = 'hour_before'; +export const DAY_BEFORE = 'day_before'; +export const WEEK_BEFORE = 'week_before'; +export const MONTH_BEFORE = 'month_before'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetConditionalFormat.ts b/packages/datadog-api-client-v1/models/WidgetConditionalFormat.ts index 779b275047e5..ea465f56d460 100644 --- a/packages/datadog-api-client-v1/models/WidgetConditionalFormat.ts +++ b/packages/datadog-api-client-v1/models/WidgetConditionalFormat.ts @@ -6,47 +6,52 @@ import { WidgetComparator } from "./WidgetComparator"; import { WidgetPalette } from "./WidgetPalette"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Define a conditional format for the widget. - */ +*/ export class WidgetConditionalFormat { /** * Comparator to apply. - */ + */ "comparator": WidgetComparator; /** * Color palette to apply to the background, same values available as palette. - */ + */ "customBgColor"?: string; /** * Color palette to apply to the foreground, same values available as palette. - */ + */ "customFgColor"?: string; /** * True hides values. - */ + */ "hideValue"?: boolean; /** * Displays an image as the background. - */ + */ "imageUrl"?: string; /** * Metric from the request to correlate this conditional format with. - */ + */ "metric"?: string; /** * Color palette to apply. - */ + */ "palette": WidgetPalette; /** * Defines the displayed timeframe. - */ + */ "timeframe"?: string; /** * Value for the comparator. - */ + */ "value": number; /** @@ -65,58 +70,84 @@ export class WidgetConditionalFormat { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - comparator: { - baseName: "comparator", - type: "WidgetComparator", - required: true, + "comparator": { + "baseName": "comparator", + "type": "WidgetComparator", + "required": true, }, - customBgColor: { - baseName: "custom_bg_color", - type: "string", + "customBgColor": { + "baseName": "custom_bg_color", + "type": "string", }, - customFgColor: { - baseName: "custom_fg_color", - type: "string", + "customFgColor": { + "baseName": "custom_fg_color", + "type": "string", }, - hideValue: { - baseName: "hide_value", - type: "boolean", + "hideValue": { + "baseName": "hide_value", + "type": "boolean", }, - imageUrl: { - baseName: "image_url", - type: "string", + "imageUrl": { + "baseName": "image_url", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - palette: { - baseName: "palette", - type: "WidgetPalette", - required: true, + "palette": { + "baseName": "palette", + "type": "WidgetPalette", + "required": true, }, - timeframe: { - baseName: "timeframe", - type: "string", + "timeframe": { + "baseName": "timeframe", + "type": "string", }, - value: { - baseName: "value", - type: "number", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetConditionalFormat.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetCustomLink.ts b/packages/datadog-api-client-v1/models/WidgetCustomLink.ts index 4395c3ac7504..c482aabf4695 100644 --- a/packages/datadog-api-client-v1/models/WidgetCustomLink.ts +++ b/packages/datadog-api-client-v1/models/WidgetCustomLink.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Custom links help you connect a data value to a URL, like a Datadog page or your AWS console. - */ +*/ export class WidgetCustomLink { /** * The flag for toggling context menu link visibility. - */ + */ "isHidden"?: boolean; /** * The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. - */ + */ "label"?: string; /** * The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. - */ + */ "link"?: string; /** * The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. - */ + */ "overrideLabel"?: string; /** @@ -43,34 +48,60 @@ export class WidgetCustomLink { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isHidden: { - baseName: "is_hidden", - type: "boolean", + "isHidden": { + "baseName": "is_hidden", + "type": "boolean", }, - label: { - baseName: "label", - type: "string", + "label": { + "baseName": "label", + "type": "string", }, - link: { - baseName: "link", - type: "string", + "link": { + "baseName": "link", + "type": "string", }, - overrideLabel: { - baseName: "override_label", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "overrideLabel": { + "baseName": "override_label", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetCustomLink.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetDefinition.ts b/packages/datadog-api-client-v1/models/WidgetDefinition.ts index 79f1d078cd2e..d0c098c37760 100644 --- a/packages/datadog-api-client-v1/models/WidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/WidgetDefinition.ts @@ -38,45 +38,15 @@ import { ToplistWidgetDefinition } from "./ToplistWidgetDefinition"; import { TopologyMapWidgetDefinition } from "./TopologyMapWidgetDefinition"; import { TreeMapWidgetDefinition } from "./TreeMapWidgetDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). - */ +*/ -export type WidgetDefinition = - | AlertGraphWidgetDefinition - | AlertValueWidgetDefinition - | ChangeWidgetDefinition - | CheckStatusWidgetDefinition - | DistributionWidgetDefinition - | EventStreamWidgetDefinition - | EventTimelineWidgetDefinition - | FreeTextWidgetDefinition - | FunnelWidgetDefinition - | GeomapWidgetDefinition - | GroupWidgetDefinition - | HeatMapWidgetDefinition - | HostMapWidgetDefinition - | IFrameWidgetDefinition - | ImageWidgetDefinition - | ListStreamWidgetDefinition - | LogStreamWidgetDefinition - | MonitorSummaryWidgetDefinition - | NoteWidgetDefinition - | PowerpackWidgetDefinition - | QueryValueWidgetDefinition - | RunWorkflowWidgetDefinition - | SLOListWidgetDefinition - | SLOWidgetDefinition - | ScatterPlotWidgetDefinition - | ServiceMapWidgetDefinition - | ServiceSummaryWidgetDefinition - | SplitGraphWidgetDefinition - | SunburstWidgetDefinition - | TableWidgetDefinition - | TimeseriesWidgetDefinition - | ToplistWidgetDefinition - | TopologyMapWidgetDefinition - | TreeMapWidgetDefinition - | UnparsedObject; +export type WidgetDefinition = AlertGraphWidgetDefinition | AlertValueWidgetDefinition | ChangeWidgetDefinition | CheckStatusWidgetDefinition | DistributionWidgetDefinition | EventStreamWidgetDefinition | EventTimelineWidgetDefinition | FreeTextWidgetDefinition | FunnelWidgetDefinition | GeomapWidgetDefinition | GroupWidgetDefinition | HeatMapWidgetDefinition | HostMapWidgetDefinition | IFrameWidgetDefinition | ImageWidgetDefinition | ListStreamWidgetDefinition | LogStreamWidgetDefinition | MonitorSummaryWidgetDefinition | NoteWidgetDefinition | PowerpackWidgetDefinition | QueryValueWidgetDefinition | RunWorkflowWidgetDefinition | SLOListWidgetDefinition | SLOWidgetDefinition | ScatterPlotWidgetDefinition | ServiceMapWidgetDefinition | ServiceSummaryWidgetDefinition | SplitGraphWidgetDefinition | SunburstWidgetDefinition | TableWidgetDefinition | TimeseriesWidgetDefinition | ToplistWidgetDefinition | TopologyMapWidgetDefinition | TreeMapWidgetDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetDisplayType.ts b/packages/datadog-api-client-v1/models/WidgetDisplayType.ts index b9575a0fa133..4280c32c6ed0 100644 --- a/packages/datadog-api-client-v1/models/WidgetDisplayType.ts +++ b/packages/datadog-api-client-v1/models/WidgetDisplayType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of display to use for the request. - */ +*/ -export type WidgetDisplayType = - | typeof AREA - | typeof BARS - | typeof LINE - | typeof OVERLAY - | UnparsedObject; -export const AREA = "area"; -export const BARS = "bars"; -export const LINE = "line"; -export const OVERLAY = "overlay"; +export type WidgetDisplayType = typeof AREA| typeof BARS| typeof LINE| typeof OVERLAY | UnparsedObject; +export const AREA = 'area'; +export const BARS = 'bars'; +export const LINE = 'line'; +export const OVERLAY = 'overlay'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetEvent.ts b/packages/datadog-api-client-v1/models/WidgetEvent.ts index 94dceeb1f3f5..d1242c4de9e9 100644 --- a/packages/datadog-api-client-v1/models/WidgetEvent.ts +++ b/packages/datadog-api-client-v1/models/WidgetEvent.ts @@ -4,22 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Event overlay control options. - * + * * See the dedicated [Events JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/widget_json/#events-schema) * to learn how to build the ``. - */ +*/ export class WidgetEvent { /** * Query definition. - */ + */ "q": string; /** * The execution method for multi-value filters. - */ + */ "tagsExecution"?: string; /** @@ -38,27 +43,53 @@ export class WidgetEvent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - q: { - baseName: "q", - type: "string", - required: true, + "q": { + "baseName": "q", + "type": "string", + "required": true, }, - tagsExecution: { - baseName: "tags_execution", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagsExecution": { + "baseName": "tags_execution", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetEvent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetEventSize.ts b/packages/datadog-api-client-v1/models/WidgetEventSize.ts index a3d9281a46e5..fbd00bb6c639 100644 --- a/packages/datadog-api-client-v1/models/WidgetEventSize.ts +++ b/packages/datadog-api-client-v1/models/WidgetEventSize.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Size to use to display an event. - */ +*/ -export type WidgetEventSize = typeof SMALL | typeof LARGE | UnparsedObject; -export const SMALL = "s"; -export const LARGE = "l"; +export type WidgetEventSize = typeof SMALL| typeof LARGE | UnparsedObject; +export const SMALL = 's'; +export const LARGE = 'l'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetFieldSort.ts b/packages/datadog-api-client-v1/models/WidgetFieldSort.ts index 272a74a5c9b1..dd6e4a8136e2 100644 --- a/packages/datadog-api-client-v1/models/WidgetFieldSort.ts +++ b/packages/datadog-api-client-v1/models/WidgetFieldSort.ts @@ -5,19 +5,24 @@ */ import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Which column and order to sort by - */ +*/ export class WidgetFieldSort { /** * Facet path for the column - */ + */ "column": string; /** * Widget sorting methods. - */ + */ "order": WidgetSort; /** @@ -36,28 +41,54 @@ export class WidgetFieldSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - column: { - baseName: "column", - type: "string", - required: true, + "column": { + "baseName": "column", + "type": "string", + "required": true, }, - order: { - baseName: "order", - type: "WidgetSort", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "WidgetSort", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetFieldSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetFormula.ts b/packages/datadog-api-client-v1/models/WidgetFormula.ts index 7b7235082018..b36eea576c2f 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormula.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormula.ts @@ -10,43 +10,48 @@ import { WidgetFormulaLimit } from "./WidgetFormulaLimit"; import { WidgetFormulaStyle } from "./WidgetFormulaStyle"; import { WidgetNumberFormat } from "./WidgetNumberFormat"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Formula to be used in a widget query. - */ +*/ export class WidgetFormula { /** * Expression alias. - */ + */ "alias"?: string; /** * Define a display mode for the table cell. - */ + */ "cellDisplayMode"?: TableWidgetCellDisplayMode; /** * Cell display mode options for the widget formula. (only if `cell_display_mode` is set to `trend`). - */ + */ "cellDisplayModeOptions"?: WidgetFormulaCellDisplayModeOptions; /** * List of conditional formats. - */ + */ "conditionalFormats"?: Array; /** * String expression built from queries, formulas, and functions. - */ + */ "formula": string; /** * Options for limiting results returned. - */ + */ "limit"?: WidgetFormulaLimit; /** * Number format options for the widget. - */ + */ "numberFormat"?: WidgetNumberFormat; /** * Styling options for widget formulas. - */ + */ "style"?: WidgetFormulaStyle; /** @@ -65,51 +70,77 @@ export class WidgetFormula { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alias: { - baseName: "alias", - type: "string", + "alias": { + "baseName": "alias", + "type": "string", }, - cellDisplayMode: { - baseName: "cell_display_mode", - type: "TableWidgetCellDisplayMode", + "cellDisplayMode": { + "baseName": "cell_display_mode", + "type": "TableWidgetCellDisplayMode", }, - cellDisplayModeOptions: { - baseName: "cell_display_mode_options", - type: "WidgetFormulaCellDisplayModeOptions", + "cellDisplayModeOptions": { + "baseName": "cell_display_mode_options", + "type": "WidgetFormulaCellDisplayModeOptions", }, - conditionalFormats: { - baseName: "conditional_formats", - type: "Array", + "conditionalFormats": { + "baseName": "conditional_formats", + "type": "Array", }, - formula: { - baseName: "formula", - type: "string", - required: true, + "formula": { + "baseName": "formula", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "WidgetFormulaLimit", + "limit": { + "baseName": "limit", + "type": "WidgetFormulaLimit", }, - numberFormat: { - baseName: "number_format", - type: "WidgetNumberFormat", + "numberFormat": { + "baseName": "number_format", + "type": "WidgetNumberFormat", }, - style: { - baseName: "style", - type: "WidgetFormulaStyle", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "style": { + "baseName": "style", + "type": "WidgetFormulaStyle", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetFormula.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptions.ts b/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptions.ts index ef49a885daa2..eca0a0800db7 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptions.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptions.ts @@ -6,19 +6,24 @@ import { WidgetFormulaCellDisplayModeOptionsTrendType } from "./WidgetFormulaCellDisplayModeOptionsTrendType"; import { WidgetFormulaCellDisplayModeOptionsYScale } from "./WidgetFormulaCellDisplayModeOptionsYScale"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cell display mode options for the widget formula. (only if `cell_display_mode` is set to `trend`). - */ +*/ export class WidgetFormulaCellDisplayModeOptions { /** * Trend type for the cell display mode options. - */ + */ "trendType"?: WidgetFormulaCellDisplayModeOptionsTrendType; /** * Y scale for the cell display mode options. - */ + */ "yScale"?: WidgetFormulaCellDisplayModeOptionsYScale; /** @@ -37,26 +42,52 @@ export class WidgetFormulaCellDisplayModeOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - trendType: { - baseName: "trend_type", - type: "WidgetFormulaCellDisplayModeOptionsTrendType", + "trendType": { + "baseName": "trend_type", + "type": "WidgetFormulaCellDisplayModeOptionsTrendType", }, - yScale: { - baseName: "y_scale", - type: "WidgetFormulaCellDisplayModeOptionsYScale", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "yScale": { + "baseName": "y_scale", + "type": "WidgetFormulaCellDisplayModeOptionsYScale", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetFormulaCellDisplayModeOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsTrendType.ts b/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsTrendType.ts index 46eb55016da1..bf016469004b 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsTrendType.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsTrendType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Trend type for the cell display mode options. - */ +*/ -export type WidgetFormulaCellDisplayModeOptionsTrendType = - | typeof AREA - | typeof LINE - | typeof BARS - | UnparsedObject; -export const AREA = "area"; -export const LINE = "line"; -export const BARS = "bars"; +export type WidgetFormulaCellDisplayModeOptionsTrendType = typeof AREA| typeof LINE| typeof BARS | UnparsedObject; +export const AREA = 'area'; +export const LINE = 'line'; +export const BARS = 'bars'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsYScale.ts b/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsYScale.ts index 6327ef51027e..6df8e1c1f8d0 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsYScale.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormulaCellDisplayModeOptionsYScale.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Y scale for the cell display mode options. - */ +*/ -export type WidgetFormulaCellDisplayModeOptionsYScale = - | typeof SHARED - | typeof INDEPENDENT - | UnparsedObject; -export const SHARED = "shared"; -export const INDEPENDENT = "independent"; +export type WidgetFormulaCellDisplayModeOptionsYScale = typeof SHARED| typeof INDEPENDENT | UnparsedObject; +export const SHARED = 'shared'; +export const INDEPENDENT = 'independent'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetFormulaLimit.ts b/packages/datadog-api-client-v1/models/WidgetFormulaLimit.ts index 4d8da6323a67..99836446803c 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormulaLimit.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormulaLimit.ts @@ -5,19 +5,24 @@ */ import { QuerySortOrder } from "./QuerySortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for limiting results returned. - */ +*/ export class WidgetFormulaLimit { /** * Number of results to return. - */ + */ "count"?: number; /** * Direction of sort. - */ + */ "order"?: QuerySortOrder; /** @@ -36,27 +41,53 @@ export class WidgetFormulaLimit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - order: { - baseName: "order", - type: "QuerySortOrder", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "QuerySortOrder", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetFormulaLimit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetFormulaSort.ts b/packages/datadog-api-client-v1/models/WidgetFormulaSort.ts index 0c0fb04fa3ff..1f105d462ccd 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormulaSort.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormulaSort.ts @@ -6,23 +6,28 @@ import { FormulaType } from "./FormulaType"; import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The formula to sort the widget by. - */ +*/ export class WidgetFormulaSort { /** * The index of the formula to sort by. - */ + */ "index": number; /** * Widget sorting methods. - */ + */ "order": WidgetSort; /** * Set the sort type to formula. - */ + */ "type": FormulaType; /** @@ -41,34 +46,60 @@ export class WidgetFormulaSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - index: { - baseName: "index", - type: "number", - required: true, - format: "int64", - }, - order: { - baseName: "order", - type: "WidgetSort", - required: true, + "index": { + "baseName": "index", + "type": "number", + "required": true, + "format": "int64", }, - type: { - baseName: "type", - type: "FormulaType", - required: true, + "order": { + "baseName": "order", + "type": "WidgetSort", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FormulaType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetFormulaSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetFormulaStyle.ts b/packages/datadog-api-client-v1/models/WidgetFormulaStyle.ts index 5274498b1a08..8704b8929314 100644 --- a/packages/datadog-api-client-v1/models/WidgetFormulaStyle.ts +++ b/packages/datadog-api-client-v1/models/WidgetFormulaStyle.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Styling options for widget formulas. - */ +*/ export class WidgetFormulaStyle { /** * The color palette used to display the formula. A guide to the available color palettes can be found at https://docs.datadoghq.com/dashboards/guide/widget_colors - */ + */ "palette"?: string; /** * Index specifying which color to use within the palette. - */ + */ "paletteIndex"?: number; /** @@ -35,27 +40,53 @@ export class WidgetFormulaStyle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - palette: { - baseName: "palette", - type: "string", + "palette": { + "baseName": "palette", + "type": "string", }, - paletteIndex: { - baseName: "palette_index", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "paletteIndex": { + "baseName": "palette_index", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetFormulaStyle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetGroupSort.ts b/packages/datadog-api-client-v1/models/WidgetGroupSort.ts index 5204349d0955..0426d760f544 100644 --- a/packages/datadog-api-client-v1/models/WidgetGroupSort.ts +++ b/packages/datadog-api-client-v1/models/WidgetGroupSort.ts @@ -6,23 +6,28 @@ import { GroupType } from "./GroupType"; import { WidgetSort } from "./WidgetSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The group to sort the widget by. - */ +*/ export class WidgetGroupSort { /** * The name of the group. - */ + */ "name": string; /** * Widget sorting methods. - */ + */ "order": WidgetSort; /** * Set the sort type to group. - */ + */ "type": GroupType; /** @@ -41,33 +46,59 @@ export class WidgetGroupSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - order: { - baseName: "order", - type: "WidgetSort", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "GroupType", - required: true, + "order": { + "baseName": "order", + "type": "WidgetSort", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "GroupType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetGroupSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetGrouping.ts b/packages/datadog-api-client-v1/models/WidgetGrouping.ts index b4af3d34d556..37bb277cc4da 100644 --- a/packages/datadog-api-client-v1/models/WidgetGrouping.ts +++ b/packages/datadog-api-client-v1/models/WidgetGrouping.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The kind of grouping to use. - */ +*/ -export type WidgetGrouping = typeof CHECK | typeof CLUSTER | UnparsedObject; -export const CHECK = "check"; -export const CLUSTER = "cluster"; +export type WidgetGrouping = typeof CHECK| typeof CLUSTER | UnparsedObject; +export const CHECK = 'check'; +export const CLUSTER = 'cluster'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetHorizontalAlign.ts b/packages/datadog-api-client-v1/models/WidgetHorizontalAlign.ts index 35dac5e29d53..df3a7827576b 100644 --- a/packages/datadog-api-client-v1/models/WidgetHorizontalAlign.ts +++ b/packages/datadog-api-client-v1/models/WidgetHorizontalAlign.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Horizontal alignment. - */ +*/ -export type WidgetHorizontalAlign = - | typeof CENTER - | typeof LEFT - | typeof RIGHT - | UnparsedObject; -export const CENTER = "center"; -export const LEFT = "left"; -export const RIGHT = "right"; +export type WidgetHorizontalAlign = typeof CENTER| typeof LEFT| typeof RIGHT | UnparsedObject; +export const CENTER = 'center'; +export const LEFT = 'left'; +export const RIGHT = 'right'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetImageSizing.ts b/packages/datadog-api-client-v1/models/WidgetImageSizing.ts index c9e09ca1628b..fc7e35584a80 100644 --- a/packages/datadog-api-client-v1/models/WidgetImageSizing.ts +++ b/packages/datadog-api-client-v1/models/WidgetImageSizing.ts @@ -4,28 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * How to size the image on the widget. The values are based on the image `object-fit` CSS properties. * **Note**: `zoom`, `fit` and `center` values are deprecated. - */ +*/ -export type WidgetImageSizing = - | typeof FILL - | typeof CONTAIN - | typeof COVER - | typeof NONE - | typeof SCALEDOWN - | typeof ZOOM - | typeof FIT - | typeof CENTER - | UnparsedObject; -export const FILL = "fill"; -export const CONTAIN = "contain"; -export const COVER = "cover"; -export const NONE = "none"; -export const SCALEDOWN = "scale-down"; -export const ZOOM = "zoom"; -export const FIT = "fit"; -export const CENTER = "center"; +export type WidgetImageSizing = typeof FILL| typeof CONTAIN| typeof COVER| typeof NONE| typeof SCALEDOWN| typeof ZOOM| typeof FIT| typeof CENTER | UnparsedObject; +export const FILL = 'fill'; +export const CONTAIN = 'contain'; +export const COVER = 'cover'; +export const NONE = 'none'; +export const SCALEDOWN = 'scale-down'; +export const ZOOM = 'zoom'; +export const FIT = 'fit'; +export const CENTER = 'center'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetLayout.ts b/packages/datadog-api-client-v1/models/WidgetLayout.ts index af50622a7df1..5445d6eccc39 100644 --- a/packages/datadog-api-client-v1/models/WidgetLayout.ts +++ b/packages/datadog-api-client-v1/models/WidgetLayout.ts @@ -4,32 +4,37 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The layout for a widget on a `free` or **new dashboard layout** dashboard. - */ +*/ export class WidgetLayout { /** * The height of the widget. Should be a non-negative integer. - */ + */ "height": number; /** * Whether the widget should be the first one on the second column in high density or not. * **Note**: Only for the **new dashboard layout** and only one widget in the dashboard should have this property set to `true`. - */ + */ "isColumnBreak"?: boolean; /** * The width of the widget. Should be a non-negative integer. - */ + */ "width": number; /** * The position of the widget on the x (horizontal) axis. Should be a non-negative integer. - */ + */ "x": number; /** * The position of the widget on the y (vertical) axis. Should be a non-negative integer. - */ + */ "y": number; /** @@ -48,46 +53,72 @@ export class WidgetLayout { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - required: true, - format: "int64", + "height": { + "baseName": "height", + "type": "number", + "required": true, + "format": "int64", }, - isColumnBreak: { - baseName: "is_column_break", - type: "boolean", + "isColumnBreak": { + "baseName": "is_column_break", + "type": "boolean", }, - width: { - baseName: "width", - type: "number", - required: true, - format: "int64", + "width": { + "baseName": "width", + "type": "number", + "required": true, + "format": "int64", }, - x: { - baseName: "x", - type: "number", - required: true, - format: "int64", + "x": { + "baseName": "x", + "type": "number", + "required": true, + "format": "int64", }, - y: { - baseName: "y", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetLayout.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetLayoutType.ts b/packages/datadog-api-client-v1/models/WidgetLayoutType.ts index 8ab0717054a6..c5c8d5394a3c 100644 --- a/packages/datadog-api-client-v1/models/WidgetLayoutType.ts +++ b/packages/datadog-api-client-v1/models/WidgetLayoutType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Layout type of the group. - */ +*/ export type WidgetLayoutType = typeof ORDERED | UnparsedObject; -export const ORDERED = "ordered"; +export const ORDERED = 'ordered'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetLegacyLiveSpan.ts b/packages/datadog-api-client-v1/models/WidgetLegacyLiveSpan.ts index 60083d8c8384..646e28c67a4d 100644 --- a/packages/datadog-api-client-v1/models/WidgetLegacyLiveSpan.ts +++ b/packages/datadog-api-client-v1/models/WidgetLegacyLiveSpan.ts @@ -5,15 +5,20 @@ */ import { WidgetLiveSpan } from "./WidgetLiveSpan"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper for live span - */ +*/ export class WidgetLegacyLiveSpan { /** * The available timeframes depend on the widget you are using. - */ + */ "liveSpan"?: WidgetLiveSpan; /** @@ -25,18 +30,44 @@ export class WidgetLegacyLiveSpan { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - liveSpan: { - baseName: "live_span", - type: "WidgetLiveSpan", - }, + "liveSpan": { + "baseName": "live_span", + "type": "WidgetLiveSpan", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetLegacyLiveSpan.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetLineType.ts b/packages/datadog-api-client-v1/models/WidgetLineType.ts index 7c230a9dbf2c..d4a0676c5505 100644 --- a/packages/datadog-api-client-v1/models/WidgetLineType.ts +++ b/packages/datadog-api-client-v1/models/WidgetLineType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of lines displayed. - */ +*/ -export type WidgetLineType = - | typeof DASHED - | typeof DOTTED - | typeof SOLID - | UnparsedObject; -export const DASHED = "dashed"; -export const DOTTED = "dotted"; -export const SOLID = "solid"; +export type WidgetLineType = typeof DASHED| typeof DOTTED| typeof SOLID | UnparsedObject; +export const DASHED = 'dashed'; +export const DOTTED = 'dotted'; +export const SOLID = 'solid'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetLineWidth.ts b/packages/datadog-api-client-v1/models/WidgetLineWidth.ts index d645b8bc9e2b..e39e0afad7de 100644 --- a/packages/datadog-api-client-v1/models/WidgetLineWidth.ts +++ b/packages/datadog-api-client-v1/models/WidgetLineWidth.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Width of line displayed. - */ +*/ -export type WidgetLineWidth = - | typeof NORMAL - | typeof THICK - | typeof THIN - | UnparsedObject; -export const NORMAL = "normal"; -export const THICK = "thick"; -export const THIN = "thin"; +export type WidgetLineWidth = typeof NORMAL| typeof THICK| typeof THIN | UnparsedObject; +export const NORMAL = 'normal'; +export const THICK = 'thick'; +export const THIN = 'thin'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetLiveSpan.ts b/packages/datadog-api-client-v1/models/WidgetLiveSpan.ts index e46d46044012..52e2e39e80cf 100644 --- a/packages/datadog-api-client-v1/models/WidgetLiveSpan.ts +++ b/packages/datadog-api-client-v1/models/WidgetLiveSpan.ts @@ -4,45 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The available timeframes depend on the widget you are using. - */ +*/ -export type WidgetLiveSpan = - | typeof PAST_ONE_MINUTE - | typeof PAST_FIVE_MINUTES - | typeof PAST_TEN_MINUTES - | typeof PAST_FIFTEEN_MINUTES - | typeof PAST_THIRTY_MINUTES - | typeof PAST_ONE_HOUR - | typeof PAST_FOUR_HOURS - | typeof PAST_ONE_DAY - | typeof PAST_TWO_DAYS - | typeof PAST_ONE_WEEK - | typeof PAST_ONE_MONTH - | typeof PAST_THREE_MONTHS - | typeof PAST_SIX_MONTHS - | typeof WEEK_TO_DATE - | typeof MONTH_TO_DATE - | typeof PAST_ONE_YEAR - | typeof ALERT - | UnparsedObject; -export const PAST_ONE_MINUTE = "1m"; -export const PAST_FIVE_MINUTES = "5m"; -export const PAST_TEN_MINUTES = "10m"; -export const PAST_FIFTEEN_MINUTES = "15m"; -export const PAST_THIRTY_MINUTES = "30m"; -export const PAST_ONE_HOUR = "1h"; -export const PAST_FOUR_HOURS = "4h"; -export const PAST_ONE_DAY = "1d"; -export const PAST_TWO_DAYS = "2d"; -export const PAST_ONE_WEEK = "1w"; -export const PAST_ONE_MONTH = "1mo"; -export const PAST_THREE_MONTHS = "3mo"; -export const PAST_SIX_MONTHS = "6mo"; -export const WEEK_TO_DATE = "week_to_date"; -export const MONTH_TO_DATE = "month_to_date"; -export const PAST_ONE_YEAR = "1y"; -export const ALERT = "alert"; +export type WidgetLiveSpan = typeof PAST_ONE_MINUTE| typeof PAST_FIVE_MINUTES| typeof PAST_TEN_MINUTES| typeof PAST_FIFTEEN_MINUTES| typeof PAST_THIRTY_MINUTES| typeof PAST_ONE_HOUR| typeof PAST_FOUR_HOURS| typeof PAST_ONE_DAY| typeof PAST_TWO_DAYS| typeof PAST_ONE_WEEK| typeof PAST_ONE_MONTH| typeof PAST_THREE_MONTHS| typeof PAST_SIX_MONTHS| typeof WEEK_TO_DATE| typeof MONTH_TO_DATE| typeof PAST_ONE_YEAR| typeof ALERT | UnparsedObject; +export const PAST_ONE_MINUTE = '1m'; +export const PAST_FIVE_MINUTES = '5m'; +export const PAST_TEN_MINUTES = '10m'; +export const PAST_FIFTEEN_MINUTES = '15m'; +export const PAST_THIRTY_MINUTES = '30m'; +export const PAST_ONE_HOUR = '1h'; +export const PAST_FOUR_HOURS = '4h'; +export const PAST_ONE_DAY = '1d'; +export const PAST_TWO_DAYS = '2d'; +export const PAST_ONE_WEEK = '1w'; +export const PAST_ONE_MONTH = '1mo'; +export const PAST_THREE_MONTHS = '3mo'; +export const PAST_SIX_MONTHS = '6mo'; +export const WEEK_TO_DATE = 'week_to_date'; +export const MONTH_TO_DATE = 'month_to_date'; +export const PAST_ONE_YEAR = '1y'; +export const ALERT = 'alert'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetLiveSpanUnit.ts b/packages/datadog-api-client-v1/models/WidgetLiveSpanUnit.ts index dc4837b8bf86..0e0a39c4a24d 100644 --- a/packages/datadog-api-client-v1/models/WidgetLiveSpanUnit.ts +++ b/packages/datadog-api-client-v1/models/WidgetLiveSpanUnit.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Unit of the time span. - */ +*/ -export type WidgetLiveSpanUnit = - | typeof MINUTE - | typeof HOUR - | typeof DAY - | typeof WEEK - | typeof MONTH - | typeof YEAR - | UnparsedObject; -export const MINUTE = "minute"; -export const HOUR = "hour"; -export const DAY = "day"; -export const WEEK = "week"; -export const MONTH = "month"; -export const YEAR = "year"; +export type WidgetLiveSpanUnit = typeof MINUTE| typeof HOUR| typeof DAY| typeof WEEK| typeof MONTH| typeof YEAR | UnparsedObject; +export const MINUTE = 'minute'; +export const HOUR = 'hour'; +export const DAY = 'day'; +export const WEEK = 'week'; +export const MONTH = 'month'; +export const YEAR = 'year'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetMargin.ts b/packages/datadog-api-client-v1/models/WidgetMargin.ts index 80e11e2526c3..4035a5c35e3c 100644 --- a/packages/datadog-api-client-v1/models/WidgetMargin.ts +++ b/packages/datadog-api-client-v1/models/WidgetMargin.ts @@ -4,22 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Size of the margins around the image. * **Note**: `small` and `large` values are deprecated. - */ +*/ -export type WidgetMargin = - | typeof SM - | typeof MD - | typeof LG - | typeof SMALL - | typeof LARGE - | UnparsedObject; -export const SM = "sm"; -export const MD = "md"; -export const LG = "lg"; -export const SMALL = "small"; -export const LARGE = "large"; +export type WidgetMargin = typeof SM| typeof MD| typeof LG| typeof SMALL| typeof LARGE | UnparsedObject; +export const SM = 'sm'; +export const MD = 'md'; +export const LG = 'lg'; +export const SMALL = 'small'; +export const LARGE = 'large'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetMarker.ts b/packages/datadog-api-client-v1/models/WidgetMarker.ts index 6f441881cbb9..9c9866495944 100644 --- a/packages/datadog-api-client-v1/models/WidgetMarker.ts +++ b/packages/datadog-api-client-v1/models/WidgetMarker.ts @@ -4,30 +4,35 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Markers allow you to add visual conditional formatting for your graphs. - */ +*/ export class WidgetMarker { /** * Combination of: * - A severity error, warning, ok, or info * - A line type: dashed, solid, or bold * In this case of a Distribution widget, this can be set to be `x_axis_percentile`. - */ + */ "displayType"?: string; /** * Label to display over the marker. - */ + */ "label"?: string; /** * Timestamp for the widget. - */ + */ "time"?: string; /** * Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. - */ + */ "value": string; /** @@ -46,35 +51,61 @@ export class WidgetMarker { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - displayType: { - baseName: "display_type", - type: "string", + "displayType": { + "baseName": "display_type", + "type": "string", }, - label: { - baseName: "label", - type: "string", + "label": { + "baseName": "label", + "type": "string", }, - time: { - baseName: "time", - type: "string", + "time": { + "baseName": "time", + "type": "string", }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetMarker.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetMessageDisplay.ts b/packages/datadog-api-client-v1/models/WidgetMessageDisplay.ts index 1a0e67c05c11..3eb386f679d5 100644 --- a/packages/datadog-api-client-v1/models/WidgetMessageDisplay.ts +++ b/packages/datadog-api-client-v1/models/WidgetMessageDisplay.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Amount of log lines to display - */ +*/ -export type WidgetMessageDisplay = - | typeof INLINE - | typeof EXPANDED_MEDIUM - | typeof EXPANDED_LARGE - | UnparsedObject; -export const INLINE = "inline"; -export const EXPANDED_MEDIUM = "expanded-md"; -export const EXPANDED_LARGE = "expanded-lg"; +export type WidgetMessageDisplay = typeof INLINE| typeof EXPANDED_MEDIUM| typeof EXPANDED_LARGE | UnparsedObject; +export const INLINE = 'inline'; +export const EXPANDED_MEDIUM = 'expanded-md'; +export const EXPANDED_LARGE = 'expanded-lg'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetMonitorSummaryDisplayFormat.ts b/packages/datadog-api-client-v1/models/WidgetMonitorSummaryDisplayFormat.ts index 9f54912c90a3..d7f3a3d30287 100644 --- a/packages/datadog-api-client-v1/models/WidgetMonitorSummaryDisplayFormat.ts +++ b/packages/datadog-api-client-v1/models/WidgetMonitorSummaryDisplayFormat.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * What to display on the widget. - */ +*/ -export type WidgetMonitorSummaryDisplayFormat = - | typeof COUNTS - | typeof COUNTS_AND_LIST - | typeof LIST - | UnparsedObject; -export const COUNTS = "counts"; -export const COUNTS_AND_LIST = "countsAndList"; -export const LIST = "list"; +export type WidgetMonitorSummaryDisplayFormat = typeof COUNTS| typeof COUNTS_AND_LIST| typeof LIST | UnparsedObject; +export const COUNTS = 'counts'; +export const COUNTS_AND_LIST = 'countsAndList'; +export const LIST = 'list'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.ts b/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.ts index fc4258457ab7..6dad36c15124 100644 --- a/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.ts +++ b/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.ts @@ -4,45 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget sorting methods. - */ +*/ -export type WidgetMonitorSummarySort = - | typeof NAME - | typeof GROUP - | typeof STATUS - | typeof TAGS - | typeof TRIGGERED - | typeof GROUP_ASCENDING - | typeof GROUP_DESCENDING - | typeof NAME_ASCENDING - | typeof NAME_DESCENDING - | typeof STATUS_ASCENDING - | typeof STATUS_DESCENDING - | typeof TAGS_ASCENDING - | typeof TAGS_DESCENDING - | typeof TRIGGERED_ASCENDING - | typeof TRIGGERED_DESCENDING - | typeof PRIORITY_ASCENDING - | typeof PRIORITY_DESCENDING - | UnparsedObject; -export const NAME = "name"; -export const GROUP = "group"; -export const STATUS = "status"; -export const TAGS = "tags"; -export const TRIGGERED = "triggered"; -export const GROUP_ASCENDING = "group,asc"; -export const GROUP_DESCENDING = "group,desc"; -export const NAME_ASCENDING = "name,asc"; -export const NAME_DESCENDING = "name,desc"; -export const STATUS_ASCENDING = "status,asc"; -export const STATUS_DESCENDING = "status,desc"; -export const TAGS_ASCENDING = "tags,asc"; -export const TAGS_DESCENDING = "tags,desc"; -export const TRIGGERED_ASCENDING = "triggered,asc"; -export const TRIGGERED_DESCENDING = "triggered,desc"; -export const PRIORITY_ASCENDING = "priority,asc"; -export const PRIORITY_DESCENDING = "priority,desc"; +export type WidgetMonitorSummarySort = typeof NAME| typeof GROUP| typeof STATUS| typeof TAGS| typeof TRIGGERED| typeof GROUP_ASCENDING| typeof GROUP_DESCENDING| typeof NAME_ASCENDING| typeof NAME_DESCENDING| typeof STATUS_ASCENDING| typeof STATUS_DESCENDING| typeof TAGS_ASCENDING| typeof TAGS_DESCENDING| typeof TRIGGERED_ASCENDING| typeof TRIGGERED_DESCENDING| typeof PRIORITY_ASCENDING| typeof PRIORITY_DESCENDING | UnparsedObject; +export const NAME = 'name'; +export const GROUP = 'group'; +export const STATUS = 'status'; +export const TAGS = 'tags'; +export const TRIGGERED = 'triggered'; +export const GROUP_ASCENDING = 'group,asc'; +export const GROUP_DESCENDING = 'group,desc'; +export const NAME_ASCENDING = 'name,asc'; +export const NAME_DESCENDING = 'name,desc'; +export const STATUS_ASCENDING = 'status,asc'; +export const STATUS_DESCENDING = 'status,desc'; +export const TAGS_ASCENDING = 'tags,asc'; +export const TAGS_DESCENDING = 'tags,desc'; +export const TRIGGERED_ASCENDING = 'triggered,asc'; +export const TRIGGERED_DESCENDING = 'triggered,desc'; +export const PRIORITY_ASCENDING = 'priority,asc'; +export const PRIORITY_DESCENDING = 'priority,desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetNewFixedSpan.ts b/packages/datadog-api-client-v1/models/WidgetNewFixedSpan.ts index 17f26be6c99e..7448b967bab8 100644 --- a/packages/datadog-api-client-v1/models/WidgetNewFixedSpan.ts +++ b/packages/datadog-api-client-v1/models/WidgetNewFixedSpan.ts @@ -5,23 +5,28 @@ */ import { WidgetNewFixedSpanType } from "./WidgetNewFixedSpanType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used for fixed span times, such as 'March 1 to March 7'. - */ +*/ export class WidgetNewFixedSpan { /** * Start time in seconds since epoch. - */ + */ "from": number; /** * End time in seconds since epoch. - */ + */ "to": number; /** * Type "fixed" denotes a fixed span. - */ + */ "type": WidgetNewFixedSpanType; /** @@ -40,35 +45,61 @@ export class WidgetNewFixedSpan { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", - }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", + "from": { + "baseName": "from", + "type": "number", + "required": true, + "format": "int64", }, - type: { - baseName: "type", - type: "WidgetNewFixedSpanType", - required: true, + "to": { + "baseName": "to", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "WidgetNewFixedSpanType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetNewFixedSpan.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetNewFixedSpanType.ts b/packages/datadog-api-client-v1/models/WidgetNewFixedSpanType.ts index 0a78552cde8b..fed666352780 100644 --- a/packages/datadog-api-client-v1/models/WidgetNewFixedSpanType.ts +++ b/packages/datadog-api-client-v1/models/WidgetNewFixedSpanType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type "fixed" denotes a fixed span. - */ +*/ export type WidgetNewFixedSpanType = typeof FIXED | UnparsedObject; -export const FIXED = "fixed"; +export const FIXED = 'fixed'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetNewLiveSpan.ts b/packages/datadog-api-client-v1/models/WidgetNewLiveSpan.ts index 758947620799..150315ced0b0 100644 --- a/packages/datadog-api-client-v1/models/WidgetNewLiveSpan.ts +++ b/packages/datadog-api-client-v1/models/WidgetNewLiveSpan.ts @@ -6,23 +6,28 @@ import { WidgetLiveSpanUnit } from "./WidgetLiveSpanUnit"; import { WidgetNewLiveSpanType } from "./WidgetNewLiveSpanType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used for arbitrary live span times, such as 17 minutes or 6 hours. - */ +*/ export class WidgetNewLiveSpan { /** * Type "live" denotes a live span in the new format. - */ + */ "type": WidgetNewLiveSpanType; /** * Unit of the time span. - */ + */ "unit": WidgetLiveSpanUnit; /** * Value of the time span. - */ + */ "value": number; /** @@ -41,34 +46,60 @@ export class WidgetNewLiveSpan { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "WidgetNewLiveSpanType", - required: true, - }, - unit: { - baseName: "unit", - type: "WidgetLiveSpanUnit", - required: true, + "type": { + "baseName": "type", + "type": "WidgetNewLiveSpanType", + "required": true, }, - value: { - baseName: "value", - type: "number", - required: true, - format: "int64", + "unit": { + "baseName": "unit", + "type": "WidgetLiveSpanUnit", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetNewLiveSpan.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetNewLiveSpanType.ts b/packages/datadog-api-client-v1/models/WidgetNewLiveSpanType.ts index c8d724b9580e..eba39a911307 100644 --- a/packages/datadog-api-client-v1/models/WidgetNewLiveSpanType.ts +++ b/packages/datadog-api-client-v1/models/WidgetNewLiveSpanType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type "live" denotes a live span in the new format. - */ +*/ export type WidgetNewLiveSpanType = typeof LIVE | UnparsedObject; -export const LIVE = "live"; +export const LIVE = 'live'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetNodeType.ts b/packages/datadog-api-client-v1/models/WidgetNodeType.ts index f12a806bc21e..2663c931628c 100644 --- a/packages/datadog-api-client-v1/models/WidgetNodeType.ts +++ b/packages/datadog-api-client-v1/models/WidgetNodeType.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Which type of node to use in the map. - */ +*/ -export type WidgetNodeType = typeof HOST | typeof CONTAINER | UnparsedObject; -export const HOST = "host"; -export const CONTAINER = "container"; +export type WidgetNodeType = typeof HOST| typeof CONTAINER | UnparsedObject; +export const HOST = 'host'; +export const CONTAINER = 'container'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetNumberFormat.ts b/packages/datadog-api-client-v1/models/WidgetNumberFormat.ts index f155c2e63b2d..cd686e452b8f 100644 --- a/packages/datadog-api-client-v1/models/WidgetNumberFormat.ts +++ b/packages/datadog-api-client-v1/models/WidgetNumberFormat.ts @@ -6,19 +6,24 @@ import { NumberFormatUnit } from "./NumberFormatUnit"; import { NumberFormatUnitScale } from "./NumberFormatUnitScale"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Number format options for the widget. - */ +*/ export class WidgetNumberFormat { /** * Number format unit. - */ + */ "unit"?: NumberFormatUnit; /** * The definition of `NumberFormatUnitScale` object. - */ + */ "unitScale"?: NumberFormatUnitScale; /** @@ -37,26 +42,52 @@ export class WidgetNumberFormat { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - unit: { - baseName: "unit", - type: "NumberFormatUnit", + "unit": { + "baseName": "unit", + "type": "NumberFormatUnit", }, - unitScale: { - baseName: "unit_scale", - type: "NumberFormatUnitScale", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unitScale": { + "baseName": "unit_scale", + "type": "NumberFormatUnitScale", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetNumberFormat.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetOrderBy.ts b/packages/datadog-api-client-v1/models/WidgetOrderBy.ts index c6377aca75bd..f36cbe1c3bdb 100644 --- a/packages/datadog-api-client-v1/models/WidgetOrderBy.ts +++ b/packages/datadog-api-client-v1/models/WidgetOrderBy.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * What to order by. - */ +*/ -export type WidgetOrderBy = - | typeof CHANGE - | typeof NAME - | typeof PRESENT - | typeof PAST - | UnparsedObject; -export const CHANGE = "change"; -export const NAME = "name"; -export const PRESENT = "present"; -export const PAST = "past"; +export type WidgetOrderBy = typeof CHANGE| typeof NAME| typeof PRESENT| typeof PAST | UnparsedObject; +export const CHANGE = 'change'; +export const NAME = 'name'; +export const PRESENT = 'present'; +export const PAST = 'past'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetPalette.ts b/packages/datadog-api-client-v1/models/WidgetPalette.ts index 5ddc487dba2e..a23d571a02aa 100644 --- a/packages/datadog-api-client-v1/models/WidgetPalette.ts +++ b/packages/datadog-api-client-v1/models/WidgetPalette.ts @@ -4,49 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Color palette to apply. - */ +*/ -export type WidgetPalette = - | typeof BLUE - | typeof CUSTOM_BACKGROUND - | typeof CUSTOM_IMAGE - | typeof CUSTOM_TEXT - | typeof GRAY_ON_WHITE - | typeof GREY - | typeof GREEN - | typeof ORANGE - | typeof RED - | typeof RED_ON_WHITE - | typeof WHITE_ON_GRAY - | typeof WHITE_ON_GREEN - | typeof GREEN_ON_WHITE - | typeof WHITE_ON_RED - | typeof WHITE_ON_YELLOW - | typeof YELLOW_ON_WHITE - | typeof BLACK_ON_LIGHT_YELLOW - | typeof BLACK_ON_LIGHT_GREEN - | typeof BLACK_ON_LIGHT_RED - | UnparsedObject; -export const BLUE = "blue"; -export const CUSTOM_BACKGROUND = "custom_bg"; -export const CUSTOM_IMAGE = "custom_image"; -export const CUSTOM_TEXT = "custom_text"; -export const GRAY_ON_WHITE = "gray_on_white"; -export const GREY = "grey"; -export const GREEN = "green"; -export const ORANGE = "orange"; -export const RED = "red"; -export const RED_ON_WHITE = "red_on_white"; -export const WHITE_ON_GRAY = "white_on_gray"; -export const WHITE_ON_GREEN = "white_on_green"; -export const GREEN_ON_WHITE = "green_on_white"; -export const WHITE_ON_RED = "white_on_red"; -export const WHITE_ON_YELLOW = "white_on_yellow"; -export const YELLOW_ON_WHITE = "yellow_on_white"; -export const BLACK_ON_LIGHT_YELLOW = "black_on_light_yellow"; -export const BLACK_ON_LIGHT_GREEN = "black_on_light_green"; -export const BLACK_ON_LIGHT_RED = "black_on_light_red"; +export type WidgetPalette = typeof BLUE| typeof CUSTOM_BACKGROUND| typeof CUSTOM_IMAGE| typeof CUSTOM_TEXT| typeof GRAY_ON_WHITE| typeof GREY| typeof GREEN| typeof ORANGE| typeof RED| typeof RED_ON_WHITE| typeof WHITE_ON_GRAY| typeof WHITE_ON_GREEN| typeof GREEN_ON_WHITE| typeof WHITE_ON_RED| typeof WHITE_ON_YELLOW| typeof YELLOW_ON_WHITE| typeof BLACK_ON_LIGHT_YELLOW| typeof BLACK_ON_LIGHT_GREEN| typeof BLACK_ON_LIGHT_RED | UnparsedObject; +export const BLUE = 'blue'; +export const CUSTOM_BACKGROUND = 'custom_bg'; +export const CUSTOM_IMAGE = 'custom_image'; +export const CUSTOM_TEXT = 'custom_text'; +export const GRAY_ON_WHITE = 'gray_on_white'; +export const GREY = 'grey'; +export const GREEN = 'green'; +export const ORANGE = 'orange'; +export const RED = 'red'; +export const RED_ON_WHITE = 'red_on_white'; +export const WHITE_ON_GRAY = 'white_on_gray'; +export const WHITE_ON_GREEN = 'white_on_green'; +export const GREEN_ON_WHITE = 'green_on_white'; +export const WHITE_ON_RED = 'white_on_red'; +export const WHITE_ON_YELLOW = 'white_on_yellow'; +export const YELLOW_ON_WHITE = 'yellow_on_white'; +export const BLACK_ON_LIGHT_YELLOW = 'black_on_light_yellow'; +export const BLACK_ON_LIGHT_GREEN = 'black_on_light_green'; +export const BLACK_ON_LIGHT_RED = 'black_on_light_red'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetRequestStyle.ts b/packages/datadog-api-client-v1/models/WidgetRequestStyle.ts index b2b5abdb8b05..b9f8d3938506 100644 --- a/packages/datadog-api-client-v1/models/WidgetRequestStyle.ts +++ b/packages/datadog-api-client-v1/models/WidgetRequestStyle.ts @@ -6,23 +6,28 @@ import { WidgetLineType } from "./WidgetLineType"; import { WidgetLineWidth } from "./WidgetLineWidth"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Define request widget style. - */ +*/ export class WidgetRequestStyle { /** * Type of lines displayed. - */ + */ "lineType"?: WidgetLineType; /** * Width of line displayed. - */ + */ "lineWidth"?: WidgetLineWidth; /** * Color palette to apply to the widget. - */ + */ "palette"?: string; /** @@ -41,30 +46,56 @@ export class WidgetRequestStyle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lineType: { - baseName: "line_type", - type: "WidgetLineType", - }, - lineWidth: { - baseName: "line_width", - type: "WidgetLineWidth", + "lineType": { + "baseName": "line_type", + "type": "WidgetLineType", }, - palette: { - baseName: "palette", - type: "string", + "lineWidth": { + "baseName": "line_width", + "type": "WidgetLineWidth", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "palette": { + "baseName": "palette", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetRequestStyle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetServiceSummaryDisplayFormat.ts b/packages/datadog-api-client-v1/models/WidgetServiceSummaryDisplayFormat.ts index 9d519831b6a5..90dee9345893 100644 --- a/packages/datadog-api-client-v1/models/WidgetServiceSummaryDisplayFormat.ts +++ b/packages/datadog-api-client-v1/models/WidgetServiceSummaryDisplayFormat.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Number of columns to display. - */ +*/ -export type WidgetServiceSummaryDisplayFormat = - | typeof ONE_COLUMN - | typeof TWO_COLUMN - | typeof THREE_COLUMN - | UnparsedObject; -export const ONE_COLUMN = "one_column"; -export const TWO_COLUMN = "two_column"; -export const THREE_COLUMN = "three_column"; +export type WidgetServiceSummaryDisplayFormat = typeof ONE_COLUMN| typeof TWO_COLUMN| typeof THREE_COLUMN | UnparsedObject; +export const ONE_COLUMN = 'one_column'; +export const TWO_COLUMN = 'two_column'; +export const THREE_COLUMN = 'three_column'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetSizeFormat.ts b/packages/datadog-api-client-v1/models/WidgetSizeFormat.ts index 0ae8ad3b3e9a..18c78827316e 100644 --- a/packages/datadog-api-client-v1/models/WidgetSizeFormat.ts +++ b/packages/datadog-api-client-v1/models/WidgetSizeFormat.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Size of the widget. - */ +*/ -export type WidgetSizeFormat = - | typeof SMALL - | typeof MEDIUM - | typeof LARGE - | UnparsedObject; -export const SMALL = "small"; -export const MEDIUM = "medium"; -export const LARGE = "large"; +export type WidgetSizeFormat = typeof SMALL| typeof MEDIUM| typeof LARGE | UnparsedObject; +export const SMALL = 'small'; +export const MEDIUM = 'medium'; +export const LARGE = 'large'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetSort.ts b/packages/datadog-api-client-v1/models/WidgetSort.ts index 4e9a0facd526..cc260f1ebc94 100644 --- a/packages/datadog-api-client-v1/models/WidgetSort.ts +++ b/packages/datadog-api-client-v1/models/WidgetSort.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Widget sorting methods. - */ +*/ -export type WidgetSort = typeof ASCENDING | typeof DESCENDING | UnparsedObject; -export const ASCENDING = "asc"; -export const DESCENDING = "desc"; +export type WidgetSort = typeof ASCENDING| typeof DESCENDING | UnparsedObject; +export const ASCENDING = 'asc'; +export const DESCENDING = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetSortBy.ts b/packages/datadog-api-client-v1/models/WidgetSortBy.ts index 7b280cc460e5..2adf92b3fafe 100644 --- a/packages/datadog-api-client-v1/models/WidgetSortBy.ts +++ b/packages/datadog-api-client-v1/models/WidgetSortBy.ts @@ -5,19 +5,24 @@ */ import { WidgetSortOrderBy } from "./WidgetSortOrderBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The controls for sorting the widget. - */ +*/ export class WidgetSortBy { /** * The number of items to limit the widget to. - */ + */ "count"?: number; /** * The array of items to sort the widget by in order. - */ + */ "orderBy"?: Array; /** @@ -36,27 +41,53 @@ export class WidgetSortBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - orderBy: { - baseName: "order_by", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "orderBy": { + "baseName": "order_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetSortBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetSortOrderBy.ts b/packages/datadog-api-client-v1/models/WidgetSortOrderBy.ts index db47e7b1acf6..7dfa59face4a 100644 --- a/packages/datadog-api-client-v1/models/WidgetSortOrderBy.ts +++ b/packages/datadog-api-client-v1/models/WidgetSortOrderBy.ts @@ -6,13 +6,15 @@ import { WidgetFormulaSort } from "./WidgetFormulaSort"; import { WidgetGroupSort } from "./WidgetGroupSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The item to sort the widget by. - */ +*/ -export type WidgetSortOrderBy = - | WidgetFormulaSort - | WidgetGroupSort - | UnparsedObject; +export type WidgetSortOrderBy = WidgetFormulaSort | WidgetGroupSort | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetStyle.ts b/packages/datadog-api-client-v1/models/WidgetStyle.ts index be74f8b5b5df..39b7762023f9 100644 --- a/packages/datadog-api-client-v1/models/WidgetStyle.ts +++ b/packages/datadog-api-client-v1/models/WidgetStyle.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Widget style definition. - */ +*/ export class WidgetStyle { /** * Color palette to apply to the widget. - */ + */ "palette"?: string; /** @@ -31,22 +36,48 @@ export class WidgetStyle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - palette: { - baseName: "palette", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "palette": { + "baseName": "palette", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WidgetStyle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v1/models/WidgetSummaryType.ts b/packages/datadog-api-client-v1/models/WidgetSummaryType.ts index 583dc8131076..d7e4fc91439c 100644 --- a/packages/datadog-api-client-v1/models/WidgetSummaryType.ts +++ b/packages/datadog-api-client-v1/models/WidgetSummaryType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Which summary type should be used. - */ +*/ -export type WidgetSummaryType = - | typeof MONITORS - | typeof GROUPS - | typeof COMBINED - | UnparsedObject; -export const MONITORS = "monitors"; -export const GROUPS = "groups"; -export const COMBINED = "combined"; +export type WidgetSummaryType = typeof MONITORS| typeof GROUPS| typeof COMBINED | UnparsedObject; +export const MONITORS = 'monitors'; +export const GROUPS = 'groups'; +export const COMBINED = 'combined'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetTextAlign.ts b/packages/datadog-api-client-v1/models/WidgetTextAlign.ts index 14ac3bcbdb41..09d299a96bbe 100644 --- a/packages/datadog-api-client-v1/models/WidgetTextAlign.ts +++ b/packages/datadog-api-client-v1/models/WidgetTextAlign.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * How to align the text on the widget. - */ +*/ -export type WidgetTextAlign = - | typeof CENTER - | typeof LEFT - | typeof RIGHT - | UnparsedObject; -export const CENTER = "center"; -export const LEFT = "left"; -export const RIGHT = "right"; +export type WidgetTextAlign = typeof CENTER| typeof LEFT| typeof RIGHT | UnparsedObject; +export const CENTER = 'center'; +export const LEFT = 'left'; +export const RIGHT = 'right'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetTickEdge.ts b/packages/datadog-api-client-v1/models/WidgetTickEdge.ts index 148d90021ae5..2d18bd362b32 100644 --- a/packages/datadog-api-client-v1/models/WidgetTickEdge.ts +++ b/packages/datadog-api-client-v1/models/WidgetTickEdge.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Define how you want to align the text on the widget. - */ +*/ -export type WidgetTickEdge = - | typeof BOTTOM - | typeof LEFT - | typeof RIGHT - | typeof TOP - | UnparsedObject; -export const BOTTOM = "bottom"; -export const LEFT = "left"; -export const RIGHT = "right"; -export const TOP = "top"; +export type WidgetTickEdge = typeof BOTTOM| typeof LEFT| typeof RIGHT| typeof TOP | UnparsedObject; +export const BOTTOM = 'bottom'; +export const LEFT = 'left'; +export const RIGHT = 'right'; +export const TOP = 'top'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetTime.ts b/packages/datadog-api-client-v1/models/WidgetTime.ts index a585d2e601fd..1775ad20fc28 100644 --- a/packages/datadog-api-client-v1/models/WidgetTime.ts +++ b/packages/datadog-api-client-v1/models/WidgetTime.ts @@ -7,14 +7,15 @@ import { WidgetLegacyLiveSpan } from "./WidgetLegacyLiveSpan"; import { WidgetNewFixedSpan } from "./WidgetNewFixedSpan"; import { WidgetNewLiveSpan } from "./WidgetNewLiveSpan"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Time setting for the widget. - */ +*/ -export type WidgetTime = - | WidgetLegacyLiveSpan - | WidgetNewLiveSpan - | WidgetNewFixedSpan - | UnparsedObject; +export type WidgetTime = WidgetLegacyLiveSpan | WidgetNewLiveSpan | WidgetNewFixedSpan | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetTimeWindows.ts b/packages/datadog-api-client-v1/models/WidgetTimeWindows.ts index 2121db8a7aaf..8377471d6d39 100644 --- a/packages/datadog-api-client-v1/models/WidgetTimeWindows.ts +++ b/packages/datadog-api-client-v1/models/WidgetTimeWindows.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Define a time window. - */ +*/ -export type WidgetTimeWindows = - | typeof SEVEN_DAYS - | typeof THIRTY_DAYS - | typeof NINETY_DAYS - | typeof WEEK_TO_DATE - | typeof PREVIOUS_WEEK - | typeof MONTH_TO_DATE - | typeof PREVIOUS_MONTH - | typeof GLOBAL_TIME - | UnparsedObject; -export const SEVEN_DAYS = "7d"; -export const THIRTY_DAYS = "30d"; -export const NINETY_DAYS = "90d"; -export const WEEK_TO_DATE = "week_to_date"; -export const PREVIOUS_WEEK = "previous_week"; -export const MONTH_TO_DATE = "month_to_date"; -export const PREVIOUS_MONTH = "previous_month"; -export const GLOBAL_TIME = "global_time"; +export type WidgetTimeWindows = typeof SEVEN_DAYS| typeof THIRTY_DAYS| typeof NINETY_DAYS| typeof WEEK_TO_DATE| typeof PREVIOUS_WEEK| typeof MONTH_TO_DATE| typeof PREVIOUS_MONTH| typeof GLOBAL_TIME | UnparsedObject; +export const SEVEN_DAYS = '7d'; +export const THIRTY_DAYS = '30d'; +export const NINETY_DAYS = '90d'; +export const WEEK_TO_DATE = 'week_to_date'; +export const PREVIOUS_WEEK = 'previous_week'; +export const MONTH_TO_DATE = 'month_to_date'; +export const PREVIOUS_MONTH = 'previous_month'; +export const GLOBAL_TIME = 'global_time'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetVerticalAlign.ts b/packages/datadog-api-client-v1/models/WidgetVerticalAlign.ts index 88d42e949172..42cd9b7df4a5 100644 --- a/packages/datadog-api-client-v1/models/WidgetVerticalAlign.ts +++ b/packages/datadog-api-client-v1/models/WidgetVerticalAlign.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Vertical alignment. - */ +*/ -export type WidgetVerticalAlign = - | typeof CENTER - | typeof TOP - | typeof BOTTOM - | UnparsedObject; -export const CENTER = "center"; -export const TOP = "top"; -export const BOTTOM = "bottom"; +export type WidgetVerticalAlign = typeof CENTER| typeof TOP| typeof BOTTOM | UnparsedObject; +export const CENTER = 'center'; +export const TOP = 'top'; +export const BOTTOM = 'bottom'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetViewMode.ts b/packages/datadog-api-client-v1/models/WidgetViewMode.ts index 46fac93d7f84..6e1c5ba556f9 100644 --- a/packages/datadog-api-client-v1/models/WidgetViewMode.ts +++ b/packages/datadog-api-client-v1/models/WidgetViewMode.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Define how you want the SLO to be displayed. - */ +*/ -export type WidgetViewMode = - | typeof OVERALL - | typeof COMPONENT - | typeof BOTH - | UnparsedObject; -export const OVERALL = "overall"; -export const COMPONENT = "component"; -export const BOTH = "both"; +export type WidgetViewMode = typeof OVERALL| typeof COMPONENT| typeof BOTH | UnparsedObject; +export const OVERALL = 'overall'; +export const COMPONENT = 'component'; +export const BOTH = 'both'; \ No newline at end of file diff --git a/packages/datadog-api-client-v1/models/WidgetVizType.ts b/packages/datadog-api-client-v1/models/WidgetVizType.ts index 6d16089d5ec1..b07040c781e5 100644 --- a/packages/datadog-api-client-v1/models/WidgetVizType.ts +++ b/packages/datadog-api-client-v1/models/WidgetVizType.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether to display the Alert Graph as a timeseries or a top list. - */ +*/ -export type WidgetVizType = typeof TIMESERIES | typeof TOPLIST | UnparsedObject; -export const TIMESERIES = "timeseries"; -export const TOPLIST = "toplist"; +export type WidgetVizType = typeof TIMESERIES| typeof TOPLIST | UnparsedObject; +export const TIMESERIES = 'timeseries'; +export const TOPLIST = 'toplist'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/APIManagementApi.ts b/packages/datadog-api-client-v2/apis/APIManagementApi.ts index bb1baed74c26..86215e15e229 100644 --- a/packages/datadog-api-client-v2/apis/APIManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/APIManagementApi.ts @@ -1,17 +1,11 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, - HttpFile, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; import FormData from "form-data"; @@ -19,247 +13,174 @@ import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CreateOpenAPIResponse } from "../models/CreateOpenAPIResponse"; import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse"; import { ListAPIsResponse } from "../models/ListAPIsResponse"; +import { OpenAPIFile } from "../models/OpenAPIFile"; import { UpdateOpenAPIResponse } from "../models/UpdateOpenAPIResponse"; export class APIManagementApiRequestFactory extends BaseAPIRequestFactory { - public async createOpenAPI( - openapiSpecFile?: HttpFile, - _options?: Configuration - ): Promise { + + public async createOpenAPI(openapiSpecFile?: HttpFile,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createOpenAPI'"); - if (!_config.unstableOperations["v2.createOpenAPI"]) { + if (!_config.unstableOperations['v2.createOpenAPI']) { throw new Error("Unstable operation 'createOpenAPI' is disabled"); } // Path Params - const localVarPath = "/api/v2/apicatalog/openapi"; + const localVarPath = '/api/v2/apicatalog/openapi'; // Make Request Context - const requestContext = _config - .getServer("v2.APIManagementApi.createOpenAPI") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.APIManagementApi.createOpenAPI').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Form Params const localVarFormParams = new FormData(); if (openapiSpecFile !== undefined) { - // TODO: replace .append with .set - localVarFormParams.append( - "openapi_spec_file", - openapiSpecFile.data, - openapiSpecFile.name - ); + // TODO: replace .append with .set + localVarFormParams.append('openapi_spec_file', openapiSpecFile.data, openapiSpecFile.name); } requestContext.setBody(localVarFormParams); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteOpenAPI( - id: string, - _options?: Configuration - ): Promise { + public async deleteOpenAPI(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteOpenAPI'"); - if (!_config.unstableOperations["v2.deleteOpenAPI"]) { + if (!_config.unstableOperations['v2.deleteOpenAPI']) { throw new Error("Unstable operation 'deleteOpenAPI' is disabled"); } // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "deleteOpenAPI"); + throw new RequiredError('id', 'deleteOpenAPI'); } // Path Params - const localVarPath = "/api/v2/apicatalog/api/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/apicatalog/api/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.APIManagementApi.deleteOpenAPI") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.APIManagementApi.deleteOpenAPI').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getOpenAPI( - id: string, - _options?: Configuration - ): Promise { + public async getOpenAPI(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getOpenAPI'"); - if (!_config.unstableOperations["v2.getOpenAPI"]) { + if (!_config.unstableOperations['v2.getOpenAPI']) { throw new Error("Unstable operation 'getOpenAPI' is disabled"); } // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "getOpenAPI"); + throw new RequiredError('id', 'getOpenAPI'); } // Path Params - const localVarPath = "/api/v2/apicatalog/api/{id}/openapi".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/apicatalog/api/{id}/openapi' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.APIManagementApi.getOpenAPI") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "multipart/form-data, application/json" - ); + const requestContext = _config.getServer('v2.APIManagementApi.getOpenAPI').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "multipart/form-data, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAPIs( - query?: string, - pageLimit?: number, - pageOffset?: number, - _options?: Configuration - ): Promise { + public async listAPIs(query?: string,pageLimit?: number,pageOffset?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listAPIs'"); - if (!_config.unstableOperations["v2.listAPIs"]) { + if (!_config.unstableOperations['v2.listAPIs']) { throw new Error("Unstable operation 'listAPIs' is disabled"); } // Path Params - const localVarPath = "/api/v2/apicatalog/api"; + const localVarPath = '/api/v2/apicatalog/api'; // Make Request Context - const requestContext = _config - .getServer("v2.APIManagementApi.listAPIs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.APIManagementApi.listAPIs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateOpenAPI( - id: string, - openapiSpecFile?: HttpFile, - _options?: Configuration - ): Promise { + public async updateOpenAPI(id: string,openapiSpecFile?: HttpFile,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateOpenAPI'"); - if (!_config.unstableOperations["v2.updateOpenAPI"]) { + if (!_config.unstableOperations['v2.updateOpenAPI']) { throw new Error("Unstable operation 'updateOpenAPI' is disabled"); } // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "updateOpenAPI"); + throw new RequiredError('id', 'updateOpenAPI'); } // Path Params - const localVarPath = "/api/v2/apicatalog/api/{id}/openapi".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/apicatalog/api/{id}/openapi' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.APIManagementApi.updateOpenAPI") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.APIManagementApi.updateOpenAPI').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Form Params const localVarFormParams = new FormData(); if (openapiSpecFile !== undefined) { - // TODO: replace .append with .set - localVarFormParams.append( - "openapi_spec_file", - openapiSpecFile.data, - openapiSpecFile.name - ); + // TODO: replace .append with .set + localVarFormParams.append('openapi_spec_file', openapiSpecFile.data, openapiSpecFile.name); } requestContext.setBody(localVarFormParams); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class APIManagementApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -267,12 +188,8 @@ export class APIManagementApiResponseProcessor { * @params response Response returned by the server for a request to createOpenAPI * @throws ApiException if the response code was not in [200, 299] */ - public async createOpenAPI( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createOpenAPI(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CreateOpenAPIResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -280,11 +197,8 @@ export class APIManagementApiResponseProcessor { ) as CreateOpenAPIResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -293,21 +207,12 @@ export class APIManagementApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -316,11 +221,8 @@ export class APIManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -328,17 +230,13 @@ export class APIManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CreateOpenAPIResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CreateOpenAPIResponse", - "" + "CreateOpenAPIResponse", "" ) as CreateOpenAPIResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -348,22 +246,13 @@ export class APIManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteOpenAPI * @throws ApiException if the response code was not in [200, 299] */ - public async deleteOpenAPI(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteOpenAPI(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -372,21 +261,12 @@ export class APIManagementApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -395,11 +275,8 @@ export class APIManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -407,17 +284,13 @@ export class APIManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -427,23 +300,14 @@ export class APIManagementApiResponseProcessor { * @params response Response returned by the server for a request to getOpenAPI * @throws ApiException if the response code was not in [200, 299] */ - public async getOpenAPI(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getOpenAPI(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: HttpFile = (await response.getBodyAsFile()) as HttpFile; + const body: HttpFile = await response.getBodyAsFile() as HttpFile; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -452,21 +316,12 @@ export class APIManagementApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -475,26 +330,19 @@ export class APIManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: HttpFile = - (await response.getBodyAsFile()) as any as HttpFile; + const body: HttpFile = await response.getBodyAsFile() as any as HttpFile; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -504,10 +352,8 @@ export class APIManagementApiResponseProcessor { * @params response Response returned by the server for a request to listAPIs * @throws ApiException if the response code was not in [200, 299] */ - public async listAPIs(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAPIs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListAPIsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -515,11 +361,8 @@ export class APIManagementApiResponseProcessor { ) as ListAPIsResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -528,21 +371,12 @@ export class APIManagementApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -551,11 +385,8 @@ export class APIManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -563,17 +394,13 @@ export class APIManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListAPIsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListAPIsResponse", - "" + "ListAPIsResponse", "" ) as ListAPIsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -583,12 +410,8 @@ export class APIManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateOpenAPI * @throws ApiException if the response code was not in [200, 299] */ - public async updateOpenAPI( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateOpenAPI(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UpdateOpenAPIResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -596,15 +419,8 @@ export class APIManagementApiResponseProcessor { ) as UpdateOpenAPIResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -613,21 +429,12 @@ export class APIManagementApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -636,11 +443,8 @@ export class APIManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -648,17 +452,13 @@ export class APIManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UpdateOpenAPIResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UpdateOpenAPIResponse", - "" + "UpdateOpenAPIResponse", "" ) as UpdateOpenAPIResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -667,7 +467,7 @@ export interface APIManagementApiCreateOpenAPIRequest { * Binary `OpenAPI` spec file * @type HttpFile */ - openapiSpecFile?: HttpFile; + openapiSpecFile?: HttpFile } export interface APIManagementApiDeleteOpenAPIRequest { @@ -675,7 +475,7 @@ export interface APIManagementApiDeleteOpenAPIRequest { * ID of the API to delete * @type string */ - id: string; + id: string } export interface APIManagementApiGetOpenAPIRequest { @@ -683,7 +483,7 @@ export interface APIManagementApiGetOpenAPIRequest { * ID of the API to retrieve * @type string */ - id: string; + id: string } export interface APIManagementApiListAPIsRequest { @@ -691,17 +491,17 @@ export interface APIManagementApiListAPIsRequest { * Filter APIs by name * @type string */ - query?: string; + query?: string /** * Number of items per page. * @type number */ - pageLimit?: number; + pageLimit?: number /** * Offset for pagination. * @type number */ - pageOffset?: number; + pageOffset?: number } export interface APIManagementApiUpdateOpenAPIRequest { @@ -709,12 +509,12 @@ export interface APIManagementApiUpdateOpenAPIRequest { * ID of the API to modify * @type string */ - id: string; + id: string /** * Binary `OpenAPI` spec file * @type HttpFile */ - openapiSpecFile?: HttpFile; + openapiSpecFile?: HttpFile } export class APIManagementApi { @@ -722,16 +522,10 @@ export class APIManagementApi { private responseProcessor: APIManagementApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: APIManagementApiRequestFactory, - responseProcessor?: APIManagementApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: APIManagementApiRequestFactory, responseProcessor?: APIManagementApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new APIManagementApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new APIManagementApiResponseProcessor(); + this.requestFactory = requestFactory || new APIManagementApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new APIManagementApiResponseProcessor(); } /** @@ -741,19 +535,11 @@ export class APIManagementApi { * It returns the created API ID. * @param param The request object */ - public createOpenAPI( - param: APIManagementApiCreateOpenAPIRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createOpenAPI( - param.openapiSpecFile, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createOpenAPI(responseContext); + public createOpenAPI(param: APIManagementApiCreateOpenAPIRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createOpenAPI(param.openapiSpecFile,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createOpenAPI(responseContext); }); }); } @@ -762,19 +548,11 @@ export class APIManagementApi { * Delete a specific API by ID. * @param param The request object */ - public deleteOpenAPI( - param: APIManagementApiDeleteOpenAPIRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteOpenAPI( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteOpenAPI(responseContext); + public deleteOpenAPI(param: APIManagementApiDeleteOpenAPIRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteOpenAPI(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteOpenAPI(responseContext); }); }); } @@ -783,19 +561,11 @@ export class APIManagementApi { * Retrieve information about a specific API in [OpenAPI](https://spec.openapis.org/oas/latest.html) format file. * @param param The request object */ - public getOpenAPI( - param: APIManagementApiGetOpenAPIRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOpenAPI( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOpenAPI(responseContext); + public getOpenAPI(param: APIManagementApiGetOpenAPIRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getOpenAPI(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getOpenAPI(responseContext); }); }); } @@ -804,21 +574,11 @@ export class APIManagementApi { * List APIs and their IDs. * @param param The request object */ - public listAPIs( - param: APIManagementApiListAPIsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAPIs( - param.query, - param.pageLimit, - param.pageOffset, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAPIs(responseContext); + public listAPIs(param: APIManagementApiListAPIsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAPIs(param.query,param.pageLimit,param.pageOffset,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAPIs(responseContext); }); }); } @@ -828,21 +588,12 @@ export class APIManagementApi { * The ID is returned by the create API, or can be found in the URL in the API catalog UI. * @param param The request object */ - public updateOpenAPI( - param: APIManagementApiUpdateOpenAPIRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateOpenAPI( - param.id, - param.openapiSpecFile, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateOpenAPI(responseContext); + public updateOpenAPI(param: APIManagementApiUpdateOpenAPIRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateOpenAPI(param.id,param.openapiSpecFile,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateOpenAPI(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/APMRetentionFiltersApi.ts b/packages/datadog-api-client-v2/apis/APMRetentionFiltersApi.ts index 973eb2b444f1..d58958b612b4 100644 --- a/packages/datadog-api-client-v2/apis/APMRetentionFiltersApi.ts +++ b/packages/datadog-api-client-v2/apis/APMRetentionFiltersApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ReorderRetentionFiltersRequest } from "../models/ReorderRetentionFiltersRequest"; import { RetentionFilterCreateRequest } from "../models/RetentionFilterCreateRequest"; @@ -25,31 +23,26 @@ import { RetentionFiltersResponse } from "../models/RetentionFiltersResponse"; import { RetentionFilterUpdateRequest } from "../models/RetentionFilterUpdateRequest"; export class APMRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory { - public async createApmRetentionFilter( - body: RetentionFilterCreateRequest, - _options?: Configuration - ): Promise { + + public async createApmRetentionFilter(body: RetentionFilterCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createApmRetentionFilter"); + throw new RequiredError('body', 'createApmRetentionFilter'); } // Path Params - const localVarPath = "/api/v2/apm/config/retention-filters"; + const localVarPath = '/api/v2/apm/config/retention-filters'; // Make Request Context - const requestContext = _config - .getServer("v2.APMRetentionFiltersApi.createApmRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.APMRetentionFiltersApi.createApmRetentionFilter').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RetentionFilterCreateRequest", ""), @@ -58,131 +51,93 @@ export class APMRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApmRetentionFilter( - filterId: string, - _options?: Configuration - ): Promise { + public async deleteApmRetentionFilter(filterId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'filterId' is not null or undefined if (filterId === null || filterId === undefined) { - throw new RequiredError("filterId", "deleteApmRetentionFilter"); + throw new RequiredError('filterId', 'deleteApmRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/apm/config/retention-filters/{filter_id}".replace( - "{filter_id}", - encodeURIComponent(String(filterId)) - ); + const localVarPath = '/api/v2/apm/config/retention-filters/{filter_id}' + .replace('{filter_id}', encodeURIComponent(String(filterId))); // Make Request Context - const requestContext = _config - .getServer("v2.APMRetentionFiltersApi.deleteApmRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.APMRetentionFiltersApi.deleteApmRetentionFilter').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getApmRetentionFilter( - filterId: string, - _options?: Configuration - ): Promise { + public async getApmRetentionFilter(filterId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'filterId' is not null or undefined if (filterId === null || filterId === undefined) { - throw new RequiredError("filterId", "getApmRetentionFilter"); + throw new RequiredError('filterId', 'getApmRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/apm/config/retention-filters/{filter_id}".replace( - "{filter_id}", - encodeURIComponent(String(filterId)) - ); + const localVarPath = '/api/v2/apm/config/retention-filters/{filter_id}' + .replace('{filter_id}', encodeURIComponent(String(filterId))); // Make Request Context - const requestContext = _config - .getServer("v2.APMRetentionFiltersApi.getApmRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.APMRetentionFiltersApi.getApmRetentionFilter').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listApmRetentionFilters( - _options?: Configuration - ): Promise { + public async listApmRetentionFilters(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/apm/config/retention-filters"; + const localVarPath = '/api/v2/apm/config/retention-filters'; // Make Request Context - const requestContext = _config - .getServer("v2.APMRetentionFiltersApi.listApmRetentionFilters") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.APMRetentionFiltersApi.listApmRetentionFilters').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async reorderApmRetentionFilters( - body: ReorderRetentionFiltersRequest, - _options?: Configuration - ): Promise { + public async reorderApmRetentionFilters(body: ReorderRetentionFiltersRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "reorderApmRetentionFilters"); + throw new RequiredError('body', 'reorderApmRetentionFilters'); } // Path Params - const localVarPath = "/api/v2/apm/config/retention-filters-execution-order"; + const localVarPath = '/api/v2/apm/config/retention-filters-execution-order'; // Make Request Context - const requestContext = _config - .getServer("v2.APMRetentionFiltersApi.reorderApmRetentionFilters") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.APMRetentionFiltersApi.reorderApmRetentionFilters').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ReorderRetentionFiltersRequest", ""), @@ -191,49 +146,36 @@ export class APMRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateApmRetentionFilter( - filterId: string, - body: RetentionFilterUpdateRequest, - _options?: Configuration - ): Promise { + public async updateApmRetentionFilter(filterId: string,body: RetentionFilterUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'filterId' is not null or undefined if (filterId === null || filterId === undefined) { - throw new RequiredError("filterId", "updateApmRetentionFilter"); + throw new RequiredError('filterId', 'updateApmRetentionFilter'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateApmRetentionFilter"); + throw new RequiredError('body', 'updateApmRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/apm/config/retention-filters/{filter_id}".replace( - "{filter_id}", - encodeURIComponent(String(filterId)) - ); + const localVarPath = '/api/v2/apm/config/retention-filters/{filter_id}' + .replace('{filter_id}', encodeURIComponent(String(filterId))); // Make Request Context - const requestContext = _config - .getServer("v2.APMRetentionFiltersApi.updateApmRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.APMRetentionFiltersApi.updateApmRetentionFilter').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RetentionFilterUpdateRequest", ""), @@ -242,16 +184,14 @@ export class APMRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class APMRetentionFiltersApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -259,12 +199,8 @@ export class APMRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to createApmRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async createApmRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createApmRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RetentionFilterCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -272,16 +208,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as RetentionFilterCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -290,11 +218,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -302,17 +227,13 @@ export class APMRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RetentionFilterCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RetentionFilterCreateResponse", - "" + "RetentionFilterCreateResponse", "" ) as RetentionFilterCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -322,24 +243,13 @@ export class APMRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to deleteApmRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApmRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApmRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -348,11 +258,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -360,17 +267,13 @@ export class APMRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -380,12 +283,8 @@ export class APMRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to getApmRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async getApmRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getApmRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -393,15 +292,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as RetentionFilterResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -410,11 +302,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -422,17 +311,13 @@ export class APMRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RetentionFilterResponse", - "" + "RetentionFilterResponse", "" ) as RetentionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -442,12 +327,8 @@ export class APMRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to listApmRetentionFilters * @throws ApiException if the response code was not in [200, 299] */ - public async listApmRetentionFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listApmRetentionFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RetentionFiltersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -455,11 +336,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as RetentionFiltersResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -468,11 +346,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -480,17 +355,13 @@ export class APMRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RetentionFiltersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RetentionFiltersResponse", - "" + "RetentionFiltersResponse", "" ) as RetentionFiltersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -500,24 +371,13 @@ export class APMRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to reorderApmRetentionFilters * @throws ApiException if the response code was not in [200, 299] */ - public async reorderApmRetentionFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async reorderApmRetentionFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -526,11 +386,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -538,17 +395,13 @@ export class APMRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -558,12 +411,8 @@ export class APMRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to updateApmRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async updateApmRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateApmRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -571,16 +420,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as RetentionFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -589,11 +430,8 @@ export class APMRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -601,17 +439,13 @@ export class APMRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RetentionFilterResponse", - "" + "RetentionFilterResponse", "" ) as RetentionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -620,7 +454,7 @@ export interface APMRetentionFiltersApiCreateApmRetentionFilterRequest { * The definition of the new retention filter. * @type RetentionFilterCreateRequest */ - body: RetentionFilterCreateRequest; + body: RetentionFilterCreateRequest } export interface APMRetentionFiltersApiDeleteApmRetentionFilterRequest { @@ -628,7 +462,7 @@ export interface APMRetentionFiltersApiDeleteApmRetentionFilterRequest { * The ID of the retention filter. * @type string */ - filterId: string; + filterId: string } export interface APMRetentionFiltersApiGetApmRetentionFilterRequest { @@ -636,7 +470,7 @@ export interface APMRetentionFiltersApiGetApmRetentionFilterRequest { * The ID of the retention filter. * @type string */ - filterId: string; + filterId: string } export interface APMRetentionFiltersApiReorderApmRetentionFiltersRequest { @@ -644,7 +478,7 @@ export interface APMRetentionFiltersApiReorderApmRetentionFiltersRequest { * The list of retention filters in the new order. * @type ReorderRetentionFiltersRequest */ - body: ReorderRetentionFiltersRequest; + body: ReorderRetentionFiltersRequest } export interface APMRetentionFiltersApiUpdateApmRetentionFilterRequest { @@ -652,12 +486,12 @@ export interface APMRetentionFiltersApiUpdateApmRetentionFilterRequest { * The ID of the retention filter. * @type string */ - filterId: string; + filterId: string /** * The updated definition of the retention filter. * @type RetentionFilterUpdateRequest */ - body: RetentionFilterUpdateRequest; + body: RetentionFilterUpdateRequest } export class APMRetentionFiltersApi { @@ -665,65 +499,39 @@ export class APMRetentionFiltersApi { private responseProcessor: APMRetentionFiltersApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: APMRetentionFiltersApiRequestFactory, - responseProcessor?: APMRetentionFiltersApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: APMRetentionFiltersApiRequestFactory, responseProcessor?: APMRetentionFiltersApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new APMRetentionFiltersApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new APMRetentionFiltersApiResponseProcessor(); + this.requestFactory = requestFactory || new APMRetentionFiltersApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new APMRetentionFiltersApiResponseProcessor(); } /** * Create a retention filter to index spans in your organization. * Returns the retention filter definition when the request is successful. - * + * * Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created. * @param param The request object */ - public createApmRetentionFilter( - param: APMRetentionFiltersApiCreateApmRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createApmRetentionFilter( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createApmRetentionFilter( - responseContext - ); + public createApmRetentionFilter(param: APMRetentionFiltersApiCreateApmRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createApmRetentionFilter(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createApmRetentionFilter(responseContext); }); }); } /** * Delete a specific retention filter from your organization. - * + * * Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted. * @param param The request object */ - public deleteApmRetentionFilter( - param: APMRetentionFiltersApiDeleteApmRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteApmRetentionFilter( - param.filterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApmRetentionFilter( - responseContext - ); + public deleteApmRetentionFilter(param: APMRetentionFiltersApiDeleteApmRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApmRetentionFilter(param.filterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApmRetentionFilter(responseContext); }); }); } @@ -732,19 +540,11 @@ export class APMRetentionFiltersApi { * Get an APM retention filter. * @param param The request object */ - public getApmRetentionFilter( - param: APMRetentionFiltersApiGetApmRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getApmRetentionFilter( - param.filterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getApmRetentionFilter(responseContext); + public getApmRetentionFilter(param: APMRetentionFiltersApiGetApmRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getApmRetentionFilter(param.filterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getApmRetentionFilter(responseContext); }); }); } @@ -753,18 +553,11 @@ export class APMRetentionFiltersApi { * Get the list of APM retention filters. * @param param The request object */ - public listApmRetentionFilters( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listApmRetentionFilters(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listApmRetentionFilters( - responseContext - ); + public listApmRetentionFilters( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listApmRetentionFilters(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listApmRetentionFilters(responseContext); }); }); } @@ -773,46 +566,27 @@ export class APMRetentionFiltersApi { * Re-order the execution order of retention filters. * @param param The request object */ - public reorderApmRetentionFilters( - param: APMRetentionFiltersApiReorderApmRetentionFiltersRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.reorderApmRetentionFilters(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.reorderApmRetentionFilters( - responseContext - ); + public reorderApmRetentionFilters(param: APMRetentionFiltersApiReorderApmRetentionFiltersRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.reorderApmRetentionFilters(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.reorderApmRetentionFilters(responseContext); }); }); } /** * Update a retention filter from your organization. - * + * * Default filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed. * @param param The request object */ - public updateApmRetentionFilter( - param: APMRetentionFiltersApiUpdateApmRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateApmRetentionFilter( - param.filterId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateApmRetentionFilter( - responseContext - ); + public updateApmRetentionFilter(param: APMRetentionFiltersApiUpdateApmRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateApmRetentionFilter(param.filterId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateApmRetentionFilter(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts b/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts index 803db7d13393..87fb96f84fd3 100644 --- a/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AWSAccountCreateRequest } from "../models/AWSAccountCreateRequest"; import { AWSAccountResponse } from "../models/AWSAccountResponse"; @@ -25,36 +23,31 @@ import { AWSNamespacesResponse } from "../models/AWSNamespacesResponse"; import { AWSNewExternalIDResponse } from "../models/AWSNewExternalIDResponse"; export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createAWSAccount( - body: AWSAccountCreateRequest, - _options?: Configuration - ): Promise { + + public async createAWSAccount(body: AWSAccountCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createAWSAccount'"); - if (!_config.unstableOperations["v2.createAWSAccount"]) { + if (!_config.unstableOperations['v2.createAWSAccount']) { throw new Error("Unstable operation 'createAWSAccount' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAWSAccount"); + throw new RequiredError('body', 'createAWSAccount'); } // Path Params - const localVarPath = "/api/v2/integration/aws/accounts"; + const localVarPath = '/api/v2/integration/aws/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.createAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AWSIntegrationApi.createAWSAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccountCreateRequest", ""), @@ -63,231 +56,168 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createNewAWSExternalID( - _options?: Configuration - ): Promise { + public async createNewAWSExternalID(_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createNewAWSExternalID'"); - if (!_config.unstableOperations["v2.createNewAWSExternalID"]) { - throw new Error( - "Unstable operation 'createNewAWSExternalID' is disabled" - ); + if (!_config.unstableOperations['v2.createNewAWSExternalID']) { + throw new Error("Unstable operation 'createNewAWSExternalID' is disabled"); } // Path Params - const localVarPath = "/api/v2/integration/aws/generate_new_external_id"; + const localVarPath = '/api/v2/integration/aws/generate_new_external_id'; // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.createNewAWSExternalID") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AWSIntegrationApi.createNewAWSExternalID').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAWSAccount( - awsAccountConfigId: string, - _options?: Configuration - ): Promise { + public async deleteAWSAccount(awsAccountConfigId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteAWSAccount'"); - if (!_config.unstableOperations["v2.deleteAWSAccount"]) { + if (!_config.unstableOperations['v2.deleteAWSAccount']) { throw new Error("Unstable operation 'deleteAWSAccount' is disabled"); } // verify required parameter 'awsAccountConfigId' is not null or undefined if (awsAccountConfigId === null || awsAccountConfigId === undefined) { - throw new RequiredError("awsAccountConfigId", "deleteAWSAccount"); + throw new RequiredError('awsAccountConfigId', 'deleteAWSAccount'); } // Path Params - const localVarPath = - "/api/v2/integration/aws/accounts/{aws_account_config_id}".replace( - "{aws_account_config_id}", - encodeURIComponent(String(awsAccountConfigId)) - ); + const localVarPath = '/api/v2/integration/aws/accounts/{aws_account_config_id}' + .replace('{aws_account_config_id}', encodeURIComponent(String(awsAccountConfigId))); // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.deleteAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.AWSIntegrationApi.deleteAWSAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAWSAccount( - awsAccountConfigId: string, - _options?: Configuration - ): Promise { + public async getAWSAccount(awsAccountConfigId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getAWSAccount'"); - if (!_config.unstableOperations["v2.getAWSAccount"]) { + if (!_config.unstableOperations['v2.getAWSAccount']) { throw new Error("Unstable operation 'getAWSAccount' is disabled"); } // verify required parameter 'awsAccountConfigId' is not null or undefined if (awsAccountConfigId === null || awsAccountConfigId === undefined) { - throw new RequiredError("awsAccountConfigId", "getAWSAccount"); + throw new RequiredError('awsAccountConfigId', 'getAWSAccount'); } // Path Params - const localVarPath = - "/api/v2/integration/aws/accounts/{aws_account_config_id}".replace( - "{aws_account_config_id}", - encodeURIComponent(String(awsAccountConfigId)) - ); + const localVarPath = '/api/v2/integration/aws/accounts/{aws_account_config_id}' + .replace('{aws_account_config_id}', encodeURIComponent(String(awsAccountConfigId))); // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.getAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AWSIntegrationApi.getAWSAccount').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSAccounts( - awsAccountId?: string, - _options?: Configuration - ): Promise { + public async listAWSAccounts(awsAccountId?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listAWSAccounts'"); - if (!_config.unstableOperations["v2.listAWSAccounts"]) { + if (!_config.unstableOperations['v2.listAWSAccounts']) { throw new Error("Unstable operation 'listAWSAccounts' is disabled"); } // Path Params - const localVarPath = "/api/v2/integration/aws/accounts"; + const localVarPath = '/api/v2/integration/aws/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.listAWSAccounts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AWSIntegrationApi.listAWSAccounts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (awsAccountId !== undefined) { - requestContext.setQueryParam( - "aws_account_id", - ObjectSerializer.serialize(awsAccountId, "string", ""), - "" - ); + requestContext.setQueryParam("aws_account_id", ObjectSerializer.serialize(awsAccountId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAWSNamespaces( - _options?: Configuration - ): Promise { + public async listAWSNamespaces(_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listAWSNamespaces'"); - if (!_config.unstableOperations["v2.listAWSNamespaces"]) { + if (!_config.unstableOperations['v2.listAWSNamespaces']) { throw new Error("Unstable operation 'listAWSNamespaces' is disabled"); } // Path Params - const localVarPath = "/api/v2/integration/aws/available_namespaces"; + const localVarPath = '/api/v2/integration/aws/available_namespaces'; // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.listAWSNamespaces") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AWSIntegrationApi.listAWSNamespaces').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAWSAccount( - awsAccountConfigId: string, - body: AWSAccountUpdateRequest, - _options?: Configuration - ): Promise { + public async updateAWSAccount(awsAccountConfigId: string,body: AWSAccountUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateAWSAccount'"); - if (!_config.unstableOperations["v2.updateAWSAccount"]) { + if (!_config.unstableOperations['v2.updateAWSAccount']) { throw new Error("Unstable operation 'updateAWSAccount' is disabled"); } // verify required parameter 'awsAccountConfigId' is not null or undefined if (awsAccountConfigId === null || awsAccountConfigId === undefined) { - throw new RequiredError("awsAccountConfigId", "updateAWSAccount"); + throw new RequiredError('awsAccountConfigId', 'updateAWSAccount'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAWSAccount"); + throw new RequiredError('body', 'updateAWSAccount'); } // Path Params - const localVarPath = - "/api/v2/integration/aws/accounts/{aws_account_config_id}".replace( - "{aws_account_config_id}", - encodeURIComponent(String(awsAccountConfigId)) - ); + const localVarPath = '/api/v2/integration/aws/accounts/{aws_account_config_id}' + .replace('{aws_account_config_id}', encodeURIComponent(String(awsAccountConfigId))); // Make Request Context - const requestContext = _config - .getServer("v2.AWSIntegrationApi.updateAWSAccount") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.AWSIntegrationApi.updateAWSAccount').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AWSAccountUpdateRequest", ""), @@ -296,16 +226,14 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AWSIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -313,12 +241,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createAWSAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -326,16 +250,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -344,11 +260,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -356,17 +269,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountResponse", - "" + "AWSAccountResponse", "" ) as AWSAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -376,12 +285,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createNewAWSExternalID * @throws ApiException if the response code was not in [200, 299] */ - public async createNewAWSExternalID( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createNewAWSExternalID(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSNewExternalIDResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -389,11 +294,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSNewExternalIDResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -402,11 +304,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -414,17 +313,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSNewExternalIDResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSNewExternalIDResponse", - "" + "AWSNewExternalIDResponse", "" ) as AWSNewExternalIDResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -434,23 +329,13 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAWSAccount(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -459,11 +344,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -471,17 +353,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -491,12 +369,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async getAWSAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -504,16 +378,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -522,11 +388,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -534,17 +397,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountResponse", - "" + "AWSAccountResponse", "" ) as AWSAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -554,12 +413,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSAccounts * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSAccounts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSAccounts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -567,11 +422,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -580,11 +432,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -592,17 +441,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountsResponse", - "" + "AWSAccountsResponse", "" ) as AWSAccountsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -612,12 +457,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSNamespaces( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSNamespaces(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSNamespacesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -625,11 +466,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSNamespacesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -638,11 +476,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -650,17 +485,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSNamespacesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSNamespacesResponse", - "" + "AWSNamespacesResponse", "" ) as AWSNamespacesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -670,12 +501,8 @@ export class AWSIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateAWSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateAWSAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAWSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -683,16 +510,8 @@ export class AWSIntegrationApiResponseProcessor { ) as AWSAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -701,11 +520,8 @@ export class AWSIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -713,17 +529,13 @@ export class AWSIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSAccountResponse", - "" + "AWSAccountResponse", "" ) as AWSAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -731,7 +543,7 @@ export interface AWSIntegrationApiCreateAWSAccountRequest { /** * @type AWSAccountCreateRequest */ - body: AWSAccountCreateRequest; + body: AWSAccountCreateRequest } export interface AWSIntegrationApiDeleteAWSAccountRequest { @@ -740,7 +552,7 @@ export interface AWSIntegrationApiDeleteAWSAccountRequest { * [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID. * @type string */ - awsAccountConfigId: string; + awsAccountConfigId: string } export interface AWSIntegrationApiGetAWSAccountRequest { @@ -749,7 +561,7 @@ export interface AWSIntegrationApiGetAWSAccountRequest { * [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID. * @type string */ - awsAccountConfigId: string; + awsAccountConfigId: string } export interface AWSIntegrationApiListAWSAccountsRequest { @@ -757,7 +569,7 @@ export interface AWSIntegrationApiListAWSAccountsRequest { * Optional query parameter to filter accounts by AWS Account ID. If not provided, all accounts are returned. * @type string */ - awsAccountId?: string; + awsAccountId?: string } export interface AWSIntegrationApiUpdateAWSAccountRequest { @@ -766,11 +578,11 @@ export interface AWSIntegrationApiUpdateAWSAccountRequest { * [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID. * @type string */ - awsAccountConfigId: string; + awsAccountConfigId: string /** * @type AWSAccountUpdateRequest */ - body: AWSAccountUpdateRequest; + body: AWSAccountUpdateRequest } export class AWSIntegrationApi { @@ -778,35 +590,21 @@ export class AWSIntegrationApi { private responseProcessor: AWSIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AWSIntegrationApiRequestFactory, - responseProcessor?: AWSIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AWSIntegrationApiRequestFactory, responseProcessor?: AWSIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AWSIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AWSIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new AWSIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AWSIntegrationApiResponseProcessor(); } /** * Create a new AWS Account Integration Config. * @param param The request object */ - public createAWSAccount( - param: AWSIntegrationApiCreateAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAWSAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAWSAccount(responseContext); + public createAWSAccount(param: AWSIntegrationApiCreateAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAWSAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAWSAccount(responseContext); }); }); } @@ -815,16 +613,11 @@ export class AWSIntegrationApi { * Generate a new external ID for AWS role-based authentication. * @param param The request object */ - public createNewAWSExternalID( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createNewAWSExternalID(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createNewAWSExternalID(responseContext); + public createNewAWSExternalID( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createNewAWSExternalID(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createNewAWSExternalID(responseContext); }); }); } @@ -833,19 +626,11 @@ export class AWSIntegrationApi { * Delete an AWS Account Integration Config by config ID. * @param param The request object */ - public deleteAWSAccount( - param: AWSIntegrationApiDeleteAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAWSAccount( - param.awsAccountConfigId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAWSAccount(responseContext); + public deleteAWSAccount(param: AWSIntegrationApiDeleteAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAWSAccount(param.awsAccountConfigId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAWSAccount(responseContext); }); }); } @@ -854,19 +639,11 @@ export class AWSIntegrationApi { * Get an AWS Account Integration Config by config ID. * @param param The request object */ - public getAWSAccount( - param: AWSIntegrationApiGetAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAWSAccount( - param.awsAccountConfigId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAWSAccount(responseContext); + public getAWSAccount(param: AWSIntegrationApiGetAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAWSAccount(param.awsAccountConfigId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAWSAccount(responseContext); }); }); } @@ -875,19 +652,11 @@ export class AWSIntegrationApi { * Get a list of AWS Account Integration Configs. * @param param The request object */ - public listAWSAccounts( - param: AWSIntegrationApiListAWSAccountsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAWSAccounts( - param.awsAccountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSAccounts(responseContext); + public listAWSAccounts(param: AWSIntegrationApiListAWSAccountsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAWSAccounts(param.awsAccountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSAccounts(responseContext); }); }); } @@ -896,16 +665,11 @@ export class AWSIntegrationApi { * Get a list of available AWS CloudWatch namespaces that can send metrics to Datadog. * @param param The request object */ - public listAWSNamespaces( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listAWSNamespaces(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSNamespaces(responseContext); + public listAWSNamespaces( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAWSNamespaces(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSNamespaces(responseContext); }); }); } @@ -914,21 +678,12 @@ export class AWSIntegrationApi { * Update an AWS Account Integration Config by config ID. * @param param The request object */ - public updateAWSAccount( - param: AWSIntegrationApiUpdateAWSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAWSAccount( - param.awsAccountConfigId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAWSAccount(responseContext); + public updateAWSAccount(param: AWSIntegrationApiUpdateAWSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAWSAccount(param.awsAccountConfigId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAWSAccount(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.ts b/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.ts index f92213f2761e..3a9f1ff3f81b 100644 --- a/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.ts @@ -1,53 +1,49 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AWSLogsServicesResponse } from "../models/AWSLogsServicesResponse"; export class AWSLogsIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async listAWSLogsServices( - _options?: Configuration - ): Promise { + + public async listAWSLogsServices(_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listAWSLogsServices'"); - if (!_config.unstableOperations["v2.listAWSLogsServices"]) { + if (!_config.unstableOperations['v2.listAWSLogsServices']) { throw new Error("Unstable operation 'listAWSLogsServices' is disabled"); } // Path Params - const localVarPath = "/api/v2/integration/aws/logs/services"; + const localVarPath = '/api/v2/integration/aws/logs/services'; // Make Request Context - const requestContext = _config - .getServer("v2.AWSLogsIntegrationApi.listAWSLogsServices") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AWSLogsIntegrationApi.listAWSLogsServices').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AWSLogsIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -55,12 +51,8 @@ export class AWSLogsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listAWSLogsServices * @throws ApiException if the response code was not in [200, 299] */ - public async listAWSLogsServices( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAWSLogsServices(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AWSLogsServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -68,11 +60,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as AWSLogsServicesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -81,11 +70,8 @@ export class AWSLogsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -93,17 +79,13 @@ export class AWSLogsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AWSLogsServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AWSLogsServicesResponse", - "" + "AWSLogsServicesResponse", "" ) as AWSLogsServicesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -112,33 +94,22 @@ export class AWSLogsIntegrationApi { private responseProcessor: AWSLogsIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AWSLogsIntegrationApiRequestFactory, - responseProcessor?: AWSLogsIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AWSLogsIntegrationApiRequestFactory, responseProcessor?: AWSLogsIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AWSLogsIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AWSLogsIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new AWSLogsIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AWSLogsIntegrationApiResponseProcessor(); } /** * Get a list of AWS services that can send logs to Datadog. * @param param The request object */ - public listAWSLogsServices( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listAWSLogsServices(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAWSLogsServices(responseContext); + public listAWSLogsServices( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAWSLogsServices(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAWSLogsServices(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ActionConnectionApi.ts b/packages/datadog-api-client-v2/apis/ActionConnectionApi.ts index 83e09e46b2a0..23ec3307c7b6 100644 --- a/packages/datadog-api-client-v2/apis/ActionConnectionApi.ts +++ b/packages/datadog-api-client-v2/apis/ActionConnectionApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { CreateActionConnectionRequest } from "../models/CreateActionConnectionRequest"; import { CreateActionConnectionResponse } from "../models/CreateActionConnectionResponse"; import { GetActionConnectionResponse } from "../models/GetActionConnectionResponse"; @@ -24,31 +22,26 @@ import { UpdateActionConnectionRequest } from "../models/UpdateActionConnectionR import { UpdateActionConnectionResponse } from "../models/UpdateActionConnectionResponse"; export class ActionConnectionApiRequestFactory extends BaseAPIRequestFactory { - public async createActionConnection( - body: CreateActionConnectionRequest, - _options?: Configuration - ): Promise { + + public async createActionConnection(body: CreateActionConnectionRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createActionConnection"); + throw new RequiredError('body', 'createActionConnection'); } // Path Params - const localVarPath = "/api/v2/actions/connections"; + const localVarPath = '/api/v2/actions/connections'; // Make Request Context - const requestContext = _config - .getServer("v2.ActionConnectionApi.createActionConnection") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ActionConnectionApi.createActionConnection').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateActionConnectionRequest", ""), @@ -57,114 +50,82 @@ export class ActionConnectionApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteActionConnection( - connectionId: string, - _options?: Configuration - ): Promise { + public async deleteActionConnection(connectionId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'connectionId' is not null or undefined if (connectionId === null || connectionId === undefined) { - throw new RequiredError("connectionId", "deleteActionConnection"); + throw new RequiredError('connectionId', 'deleteActionConnection'); } // Path Params - const localVarPath = "/api/v2/actions/connections/{connection_id}".replace( - "{connection_id}", - encodeURIComponent(String(connectionId)) - ); + const localVarPath = '/api/v2/actions/connections/{connection_id}' + .replace('{connection_id}', encodeURIComponent(String(connectionId))); // Make Request Context - const requestContext = _config - .getServer("v2.ActionConnectionApi.deleteActionConnection") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ActionConnectionApi.deleteActionConnection').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getActionConnection( - connectionId: string, - _options?: Configuration - ): Promise { + public async getActionConnection(connectionId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'connectionId' is not null or undefined if (connectionId === null || connectionId === undefined) { - throw new RequiredError("connectionId", "getActionConnection"); + throw new RequiredError('connectionId', 'getActionConnection'); } // Path Params - const localVarPath = "/api/v2/actions/connections/{connection_id}".replace( - "{connection_id}", - encodeURIComponent(String(connectionId)) - ); + const localVarPath = '/api/v2/actions/connections/{connection_id}' + .replace('{connection_id}', encodeURIComponent(String(connectionId))); // Make Request Context - const requestContext = _config - .getServer("v2.ActionConnectionApi.getActionConnection") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ActionConnectionApi.getActionConnection').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateActionConnection( - connectionId: string, - body: UpdateActionConnectionRequest, - _options?: Configuration - ): Promise { + public async updateActionConnection(connectionId: string,body: UpdateActionConnectionRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'connectionId' is not null or undefined if (connectionId === null || connectionId === undefined) { - throw new RequiredError("connectionId", "updateActionConnection"); + throw new RequiredError('connectionId', 'updateActionConnection'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateActionConnection"); + throw new RequiredError('body', 'updateActionConnection'); } // Path Params - const localVarPath = "/api/v2/actions/connections/{connection_id}".replace( - "{connection_id}", - encodeURIComponent(String(connectionId)) - ); + const localVarPath = '/api/v2/actions/connections/{connection_id}' + .replace('{connection_id}', encodeURIComponent(String(connectionId))); // Make Request Context - const requestContext = _config - .getServer("v2.ActionConnectionApi.updateActionConnection") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.ActionConnectionApi.updateActionConnection').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UpdateActionConnectionRequest", ""), @@ -173,16 +134,14 @@ export class ActionConnectionApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ActionConnectionApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -190,12 +149,8 @@ export class ActionConnectionApiResponseProcessor { * @params response Response returned by the server for a request to createActionConnection * @throws ApiException if the response code was not in [200, 299] */ - public async createActionConnection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createActionConnection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CreateActionConnectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -203,15 +158,8 @@ export class ActionConnectionApiResponseProcessor { ) as CreateActionConnectionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -220,32 +168,22 @@ export class ActionConnectionApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CreateActionConnectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CreateActionConnectionResponse", - "" + "CreateActionConnectionResponse", "" ) as CreateActionConnectionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -255,24 +193,13 @@ export class ActionConnectionApiResponseProcessor { * @params response Response returned by the server for a request to deleteActionConnection * @throws ApiException if the response code was not in [200, 299] */ - public async deleteActionConnection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteActionConnection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -281,32 +208,22 @@ export class ActionConnectionApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -316,12 +233,8 @@ export class ActionConnectionApiResponseProcessor { * @params response Response returned by the server for a request to getActionConnection * @throws ApiException if the response code was not in [200, 299] */ - public async getActionConnection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getActionConnection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetActionConnectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -329,16 +242,8 @@ export class ActionConnectionApiResponseProcessor { ) as GetActionConnectionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -347,32 +252,22 @@ export class ActionConnectionApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetActionConnectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetActionConnectionResponse", - "" + "GetActionConnectionResponse", "" ) as GetActionConnectionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -382,12 +277,8 @@ export class ActionConnectionApiResponseProcessor { * @params response Response returned by the server for a request to updateActionConnection * @throws ApiException if the response code was not in [200, 299] */ - public async updateActionConnection( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateActionConnection(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UpdateActionConnectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -395,16 +286,8 @@ export class ActionConnectionApiResponseProcessor { ) as UpdateActionConnectionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -413,32 +296,22 @@ export class ActionConnectionApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UpdateActionConnectionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UpdateActionConnectionResponse", - "" + "UpdateActionConnectionResponse", "" ) as UpdateActionConnectionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -446,7 +319,7 @@ export interface ActionConnectionApiCreateActionConnectionRequest { /** * @type CreateActionConnectionRequest */ - body: CreateActionConnectionRequest; + body: CreateActionConnectionRequest } export interface ActionConnectionApiDeleteActionConnectionRequest { @@ -454,7 +327,7 @@ export interface ActionConnectionApiDeleteActionConnectionRequest { * The ID of the action connection * @type string */ - connectionId: string; + connectionId: string } export interface ActionConnectionApiGetActionConnectionRequest { @@ -462,7 +335,7 @@ export interface ActionConnectionApiGetActionConnectionRequest { * The ID of the action connection * @type string */ - connectionId: string; + connectionId: string } export interface ActionConnectionApiUpdateActionConnectionRequest { @@ -470,12 +343,12 @@ export interface ActionConnectionApiUpdateActionConnectionRequest { * The ID of the action connection * @type string */ - connectionId: string; + connectionId: string /** * Update an existing Action Connection request body * @type UpdateActionConnectionRequest */ - body: UpdateActionConnectionRequest; + body: UpdateActionConnectionRequest } export class ActionConnectionApi { @@ -483,35 +356,21 @@ export class ActionConnectionApi { private responseProcessor: ActionConnectionApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ActionConnectionApiRequestFactory, - responseProcessor?: ActionConnectionApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ActionConnectionApiRequestFactory, responseProcessor?: ActionConnectionApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ActionConnectionApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ActionConnectionApiResponseProcessor(); + this.requestFactory = requestFactory || new ActionConnectionApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ActionConnectionApiResponseProcessor(); } /** * Create a new Action Connection * @param param The request object */ - public createActionConnection( - param: ActionConnectionApiCreateActionConnectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createActionConnection( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createActionConnection(responseContext); + public createActionConnection(param: ActionConnectionApiCreateActionConnectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createActionConnection(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createActionConnection(responseContext); }); }); } @@ -520,19 +379,11 @@ export class ActionConnectionApi { * Delete an existing Action Connection * @param param The request object */ - public deleteActionConnection( - param: ActionConnectionApiDeleteActionConnectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteActionConnection( - param.connectionId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteActionConnection(responseContext); + public deleteActionConnection(param: ActionConnectionApiDeleteActionConnectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteActionConnection(param.connectionId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteActionConnection(responseContext); }); }); } @@ -541,19 +392,11 @@ export class ActionConnectionApi { * Get an existing Action Connection * @param param The request object */ - public getActionConnection( - param: ActionConnectionApiGetActionConnectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getActionConnection( - param.connectionId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getActionConnection(responseContext); + public getActionConnection(param: ActionConnectionApiGetActionConnectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getActionConnection(param.connectionId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getActionConnection(responseContext); }); }); } @@ -562,21 +405,12 @@ export class ActionConnectionApi { * Update an existing Action Connection * @param param The request object */ - public updateActionConnection( - param: ActionConnectionApiUpdateActionConnectionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateActionConnection( - param.connectionId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateActionConnection(responseContext); + public updateActionConnection(param: ActionConnectionApiUpdateActionConnectionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateActionConnection(param.connectionId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateActionConnection(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/AgentlessScanningApi.ts b/packages/datadog-api-client-v2/apis/AgentlessScanningApi.ts index 88a89ed4e509..bd3ad4c4f5bc 100644 --- a/packages/datadog-api-client-v2/apis/AgentlessScanningApi.ts +++ b/packages/datadog-api-client-v2/apis/AgentlessScanningApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AwsOnDemandCreateRequest } from "../models/AwsOnDemandCreateRequest"; import { AwsOnDemandListResponse } from "../models/AwsOnDemandListResponse"; @@ -26,31 +24,26 @@ import { AwsScanOptionsResponse } from "../models/AwsScanOptionsResponse"; import { AwsScanOptionsUpdateRequest } from "../models/AwsScanOptionsUpdateRequest"; export class AgentlessScanningApiRequestFactory extends BaseAPIRequestFactory { - public async createAwsOnDemandTask( - body: AwsOnDemandCreateRequest, - _options?: Configuration - ): Promise { + + public async createAwsOnDemandTask(body: AwsOnDemandCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAwsOnDemandTask"); + throw new RequiredError('body', 'createAwsOnDemandTask'); } // Path Params - const localVarPath = "/api/v2/agentless_scanning/ondemand/aws"; + const localVarPath = '/api/v2/agentless_scanning/ondemand/aws'; // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.createAwsOnDemandTask") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AgentlessScanningApi.createAwsOnDemandTask').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AwsOnDemandCreateRequest", ""), @@ -59,39 +52,30 @@ export class AgentlessScanningApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createAwsScanOptions( - body: AwsScanOptionsCreateRequest, - _options?: Configuration - ): Promise { + public async createAwsScanOptions(body: AwsScanOptionsCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAwsScanOptions"); + throw new RequiredError('body', 'createAwsScanOptions'); } // Path Params - const localVarPath = "/api/v2/agentless_scanning/accounts/aws"; + const localVarPath = '/api/v2/agentless_scanning/accounts/aws'; // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.createAwsScanOptions") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AgentlessScanningApi.createAwsScanOptions').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AwsScanOptionsCreateRequest", ""), @@ -100,165 +84,116 @@ export class AgentlessScanningApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAwsScanOptions( - accountId: string, - _options?: Configuration - ): Promise { + public async deleteAwsScanOptions(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteAwsScanOptions"); + throw new RequiredError('accountId', 'deleteAwsScanOptions'); } // Path Params - const localVarPath = - "/api/v2/agentless_scanning/accounts/aws/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/agentless_scanning/accounts/aws/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.deleteAwsScanOptions") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.AgentlessScanningApi.deleteAwsScanOptions').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAwsOnDemandTask( - taskId: string, - _options?: Configuration - ): Promise { + public async getAwsOnDemandTask(taskId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'taskId' is not null or undefined if (taskId === null || taskId === undefined) { - throw new RequiredError("taskId", "getAwsOnDemandTask"); + throw new RequiredError('taskId', 'getAwsOnDemandTask'); } // Path Params - const localVarPath = - "/api/v2/agentless_scanning/ondemand/aws/{task_id}".replace( - "{task_id}", - encodeURIComponent(String(taskId)) - ); + const localVarPath = '/api/v2/agentless_scanning/ondemand/aws/{task_id}' + .replace('{task_id}', encodeURIComponent(String(taskId))); // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.getAwsOnDemandTask") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AgentlessScanningApi.getAwsOnDemandTask').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAwsOnDemandTasks( - _options?: Configuration - ): Promise { + public async listAwsOnDemandTasks(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/agentless_scanning/ondemand/aws"; + const localVarPath = '/api/v2/agentless_scanning/ondemand/aws'; // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.listAwsOnDemandTasks") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AgentlessScanningApi.listAwsOnDemandTasks').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAwsScanOptions( - _options?: Configuration - ): Promise { + public async listAwsScanOptions(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/agentless_scanning/accounts/aws"; + const localVarPath = '/api/v2/agentless_scanning/accounts/aws'; // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.listAwsScanOptions") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AgentlessScanningApi.listAwsScanOptions').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAwsScanOptions( - accountId: string, - body: AwsScanOptionsUpdateRequest, - _options?: Configuration - ): Promise { + public async updateAwsScanOptions(accountId: string,body: AwsScanOptionsUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateAwsScanOptions"); + throw new RequiredError('accountId', 'updateAwsScanOptions'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAwsScanOptions"); + throw new RequiredError('body', 'updateAwsScanOptions'); } // Path Params - const localVarPath = - "/api/v2/agentless_scanning/accounts/aws/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/agentless_scanning/accounts/aws/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.AgentlessScanningApi.updateAwsScanOptions") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.AgentlessScanningApi.updateAwsScanOptions').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AwsScanOptionsUpdateRequest", ""), @@ -267,16 +202,14 @@ export class AgentlessScanningApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AgentlessScanningApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -284,12 +217,8 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to createAwsOnDemandTask * @throws ApiException if the response code was not in [200, 299] */ - public async createAwsOnDemandTask( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAwsOnDemandTask(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: AwsOnDemandResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -297,15 +226,8 @@ export class AgentlessScanningApiResponseProcessor { ) as AwsOnDemandResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -314,11 +236,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -326,17 +245,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsOnDemandResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsOnDemandResponse", - "" + "AwsOnDemandResponse", "" ) as AwsOnDemandResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -346,12 +261,8 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to createAwsScanOptions * @throws ApiException if the response code was not in [200, 299] */ - public async createAwsScanOptions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAwsScanOptions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: AwsScanOptionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -359,16 +270,8 @@ export class AgentlessScanningApiResponseProcessor { ) as AwsScanOptionsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -377,11 +280,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -389,17 +289,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsScanOptionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsScanOptionsResponse", - "" + "AwsScanOptionsResponse", "" ) as AwsScanOptionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -409,23 +305,13 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to deleteAwsScanOptions * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAwsScanOptions(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAwsScanOptions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -434,11 +320,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -446,17 +329,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -466,12 +345,8 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to getAwsOnDemandTask * @throws ApiException if the response code was not in [200, 299] */ - public async getAwsOnDemandTask( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAwsOnDemandTask(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AwsOnDemandResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -479,16 +354,8 @@ export class AgentlessScanningApiResponseProcessor { ) as AwsOnDemandResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -497,11 +364,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -509,17 +373,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsOnDemandResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsOnDemandResponse", - "" + "AwsOnDemandResponse", "" ) as AwsOnDemandResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -529,12 +389,8 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to listAwsOnDemandTasks * @throws ApiException if the response code was not in [200, 299] */ - public async listAwsOnDemandTasks( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAwsOnDemandTasks(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AwsOnDemandListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -542,11 +398,8 @@ export class AgentlessScanningApiResponseProcessor { ) as AwsOnDemandListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -555,11 +408,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -567,17 +417,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsOnDemandListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsOnDemandListResponse", - "" + "AwsOnDemandListResponse", "" ) as AwsOnDemandListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -587,12 +433,8 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to listAwsScanOptions * @throws ApiException if the response code was not in [200, 299] */ - public async listAwsScanOptions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAwsScanOptions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AwsScanOptionsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -600,11 +442,8 @@ export class AgentlessScanningApiResponseProcessor { ) as AwsScanOptionsListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -613,11 +452,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -625,17 +461,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsScanOptionsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsScanOptionsListResponse", - "" + "AwsScanOptionsListResponse", "" ) as AwsScanOptionsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -645,23 +477,13 @@ export class AgentlessScanningApiResponseProcessor { * @params response Response returned by the server for a request to updateAwsScanOptions * @throws ApiException if the response code was not in [200, 299] */ - public async updateAwsScanOptions(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAwsScanOptions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -670,11 +492,8 @@ export class AgentlessScanningApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -682,17 +501,13 @@ export class AgentlessScanningApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -701,7 +516,7 @@ export interface AgentlessScanningApiCreateAwsOnDemandTaskRequest { * The definition of the on demand task. * @type AwsOnDemandCreateRequest */ - body: AwsOnDemandCreateRequest; + body: AwsOnDemandCreateRequest } export interface AgentlessScanningApiCreateAwsScanOptionsRequest { @@ -709,7 +524,7 @@ export interface AgentlessScanningApiCreateAwsScanOptionsRequest { * The definition of the new scan options. * @type AwsScanOptionsCreateRequest */ - body: AwsScanOptionsCreateRequest; + body: AwsScanOptionsCreateRequest } export interface AgentlessScanningApiDeleteAwsScanOptionsRequest { @@ -717,7 +532,7 @@ export interface AgentlessScanningApiDeleteAwsScanOptionsRequest { * The ID of an AWS account. * @type string */ - accountId: string; + accountId: string } export interface AgentlessScanningApiGetAwsOnDemandTaskRequest { @@ -725,7 +540,7 @@ export interface AgentlessScanningApiGetAwsOnDemandTaskRequest { * The UUID of the task. * @type string */ - taskId: string; + taskId: string } export interface AgentlessScanningApiUpdateAwsScanOptionsRequest { @@ -733,12 +548,12 @@ export interface AgentlessScanningApiUpdateAwsScanOptionsRequest { * The ID of an AWS account. * @type string */ - accountId: string; + accountId: string /** * New definition of the scan options. * @type AwsScanOptionsUpdateRequest */ - body: AwsScanOptionsUpdateRequest; + body: AwsScanOptionsUpdateRequest } export class AgentlessScanningApi { @@ -746,35 +561,21 @@ export class AgentlessScanningApi { private responseProcessor: AgentlessScanningApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AgentlessScanningApiRequestFactory, - responseProcessor?: AgentlessScanningApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AgentlessScanningApiRequestFactory, responseProcessor?: AgentlessScanningApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AgentlessScanningApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AgentlessScanningApiResponseProcessor(); + this.requestFactory = requestFactory || new AgentlessScanningApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AgentlessScanningApiResponseProcessor(); } /** * Trigger the scan of an AWS resource with a high priority. Agentless scanning must be activated for the AWS account containing the resource to scan. * @param param The request object */ - public createAwsOnDemandTask( - param: AgentlessScanningApiCreateAwsOnDemandTaskRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAwsOnDemandTask( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAwsOnDemandTask(responseContext); + public createAwsOnDemandTask(param: AgentlessScanningApiCreateAwsOnDemandTaskRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAwsOnDemandTask(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAwsOnDemandTask(responseContext); }); }); } @@ -783,19 +584,11 @@ export class AgentlessScanningApi { * Activate Agentless scan options for an AWS account. * @param param The request object */ - public createAwsScanOptions( - param: AgentlessScanningApiCreateAwsScanOptionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAwsScanOptions( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAwsScanOptions(responseContext); + public createAwsScanOptions(param: AgentlessScanningApiCreateAwsScanOptionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAwsScanOptions(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAwsScanOptions(responseContext); }); }); } @@ -804,19 +597,11 @@ export class AgentlessScanningApi { * Delete Agentless scan options for an AWS account. * @param param The request object */ - public deleteAwsScanOptions( - param: AgentlessScanningApiDeleteAwsScanOptionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAwsScanOptions( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAwsScanOptions(responseContext); + public deleteAwsScanOptions(param: AgentlessScanningApiDeleteAwsScanOptionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAwsScanOptions(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAwsScanOptions(responseContext); }); }); } @@ -825,19 +610,11 @@ export class AgentlessScanningApi { * Fetch the data of a specific on demand task. * @param param The request object */ - public getAwsOnDemandTask( - param: AgentlessScanningApiGetAwsOnDemandTaskRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAwsOnDemandTask( - param.taskId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAwsOnDemandTask(responseContext); + public getAwsOnDemandTask(param: AgentlessScanningApiGetAwsOnDemandTaskRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAwsOnDemandTask(param.taskId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAwsOnDemandTask(responseContext); }); }); } @@ -846,16 +623,11 @@ export class AgentlessScanningApi { * Fetches the most recent 1000 AWS on demand tasks. * @param param The request object */ - public listAwsOnDemandTasks( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listAwsOnDemandTasks(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAwsOnDemandTasks(responseContext); + public listAwsOnDemandTasks( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAwsOnDemandTasks(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAwsOnDemandTasks(responseContext); }); }); } @@ -864,16 +636,11 @@ export class AgentlessScanningApi { * Fetches the scan options configured for AWS accounts. * @param param The request object */ - public listAwsScanOptions( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listAwsScanOptions(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAwsScanOptions(responseContext); + public listAwsScanOptions( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAwsScanOptions(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAwsScanOptions(responseContext); }); }); } @@ -882,21 +649,12 @@ export class AgentlessScanningApi { * Update the Agentless scan options for an activated account. * @param param The request object */ - public updateAwsScanOptions( - param: AgentlessScanningApiUpdateAwsScanOptionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAwsScanOptions( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAwsScanOptions(responseContext); + public updateAwsScanOptions(param: AgentlessScanningApiUpdateAwsScanOptionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAwsScanOptions(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAwsScanOptions(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/AppBuilderApi.ts b/packages/datadog-api-client-v2/apis/AppBuilderApi.ts index 94149b843529..bac4023d87c7 100644 --- a/packages/datadog-api-client-v2/apis/AppBuilderApi.ts +++ b/packages/datadog-api-client-v2/apis/AppBuilderApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AppsSortField } from "../models/AppsSortField"; import { CreateAppRequest } from "../models/CreateAppRequest"; @@ -32,31 +30,26 @@ import { UpdateAppRequest } from "../models/UpdateAppRequest"; import { UpdateAppResponse } from "../models/UpdateAppResponse"; export class AppBuilderApiRequestFactory extends BaseAPIRequestFactory { - public async createApp( - body: CreateAppRequest, - _options?: Configuration - ): Promise { + + public async createApp(body: CreateAppRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createApp"); + throw new RequiredError('body', 'createApp'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps"; + const localVarPath = '/api/v2/app-builder/apps'; // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.createApp") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AppBuilderApi.createApp').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateAppRequest", ""), @@ -65,72 +58,53 @@ export class AppBuilderApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApp( - appId: string, - _options?: Configuration - ): Promise { + public async deleteApp(appId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "deleteApp"); + throw new RequiredError('appId', 'deleteApp'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps/{app_id}".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/app-builder/apps/{app_id}' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.deleteApp") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.AppBuilderApi.deleteApp').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApps( - body: DeleteAppsRequest, - _options?: Configuration - ): Promise { + public async deleteApps(body: DeleteAppsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteApps"); + throw new RequiredError('body', 'deleteApps'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps"; + const localVarPath = '/api/v2/app-builder/apps'; // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.deleteApps") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.AppBuilderApi.deleteApps').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DeleteAppsRequest", ""), @@ -139,271 +113,162 @@ export class AppBuilderApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getApp( - appId: string, - version?: string, - _options?: Configuration - ): Promise { + public async getApp(appId: string,version?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "getApp"); + throw new RequiredError('appId', 'getApp'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps/{app_id}".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/app-builder/apps/{app_id}' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.getApp") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AppBuilderApi.getApp').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (version !== undefined) { - requestContext.setQueryParam( - "version", - ObjectSerializer.serialize(version, "string", ""), - "" - ); + requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listApps( - limit?: number, - page?: number, - filterUserName?: string, - filterUserUuid?: string, - filterName?: string, - filterQuery?: string, - filterDeployed?: boolean, - filterTags?: string, - filterFavorite?: boolean, - filterSelfService?: boolean, - sort?: Array, - _options?: Configuration - ): Promise { + public async listApps(limit?: number,page?: number,filterUserName?: string,filterUserUuid?: string,filterName?: string,filterQuery?: string,filterDeployed?: boolean,filterTags?: string,filterFavorite?: boolean,filterSelfService?: boolean,sort?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/app-builder/apps"; + const localVarPath = '/api/v2/app-builder/apps'; // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.listApps") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AppBuilderApi.listApps').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (limit !== undefined) { - requestContext.setQueryParam( - "limit", - ObjectSerializer.serialize(limit, "number", "int64"), - "" - ); + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int64"), ""); } if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int64"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int64"), ""); } if (filterUserName !== undefined) { - requestContext.setQueryParam( - "filter[user_name]", - ObjectSerializer.serialize(filterUserName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[user_name]", ObjectSerializer.serialize(filterUserName, "string", ""), ""); } if (filterUserUuid !== undefined) { - requestContext.setQueryParam( - "filter[user_uuid]", - ObjectSerializer.serialize(filterUserUuid, "string", "uuid"), - "" - ); + requestContext.setQueryParam("filter[user_uuid]", ObjectSerializer.serialize(filterUserUuid, "string", "uuid"), ""); } if (filterName !== undefined) { - requestContext.setQueryParam( - "filter[name]", - ObjectSerializer.serialize(filterName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[name]", ObjectSerializer.serialize(filterName, "string", ""), ""); } if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterDeployed !== undefined) { - requestContext.setQueryParam( - "filter[deployed]", - ObjectSerializer.serialize(filterDeployed, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[deployed]", ObjectSerializer.serialize(filterDeployed, "boolean", ""), ""); } if (filterTags !== undefined) { - requestContext.setQueryParam( - "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tags]", ObjectSerializer.serialize(filterTags, "string", ""), ""); } if (filterFavorite !== undefined) { - requestContext.setQueryParam( - "filter[favorite]", - ObjectSerializer.serialize(filterFavorite, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[favorite]", ObjectSerializer.serialize(filterFavorite, "boolean", ""), ""); } if (filterSelfService !== undefined) { - requestContext.setQueryParam( - "filter[self_service]", - ObjectSerializer.serialize(filterSelfService, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[self_service]", ObjectSerializer.serialize(filterSelfService, "boolean", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "Array", ""), - "csv" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "Array", ""), "csv"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async publishApp( - appId: string, - _options?: Configuration - ): Promise { + public async publishApp(appId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "publishApp"); + throw new RequiredError('appId', 'publishApp'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps/{app_id}/deployment".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/app-builder/apps/{app_id}/deployment' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.publishApp") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AppBuilderApi.publishApp').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async unpublishApp( - appId: string, - _options?: Configuration - ): Promise { + public async unpublishApp(appId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "unpublishApp"); + throw new RequiredError('appId', 'unpublishApp'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps/{app_id}/deployment".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/app-builder/apps/{app_id}/deployment' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.unpublishApp") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.AppBuilderApi.unpublishApp').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateApp( - appId: string, - body: UpdateAppRequest, - _options?: Configuration - ): Promise { + public async updateApp(appId: string,body: UpdateAppRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "updateApp"); + throw new RequiredError('appId', 'updateApp'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateApp"); + throw new RequiredError('body', 'updateApp'); } // Path Params - const localVarPath = "/api/v2/app-builder/apps/{app_id}".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/app-builder/apps/{app_id}' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.AppBuilderApi.updateApp") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.AppBuilderApi.updateApp').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UpdateAppRequest", ""), @@ -412,16 +277,14 @@ export class AppBuilderApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AppBuilderApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -429,12 +292,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to createApp * @throws ApiException if the response code was not in [200, 299] */ - public async createApp( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CreateAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -442,11 +301,8 @@ export class AppBuilderApiResponseProcessor { ) as CreateAppResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -455,21 +311,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -478,11 +325,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -490,17 +334,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CreateAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CreateAppResponse", - "" + "CreateAppResponse", "" ) as CreateAppResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -510,12 +350,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to deleteApp * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApp( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DeleteAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -523,16 +359,8 @@ export class AppBuilderApiResponseProcessor { ) as DeleteAppResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 410 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 410) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -541,21 +369,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -564,11 +383,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -576,17 +392,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DeleteAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DeleteAppResponse", - "" + "DeleteAppResponse", "" ) as DeleteAppResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -596,12 +408,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to deleteApps * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApps( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApps(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DeleteAppsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -609,15 +417,8 @@ export class AppBuilderApiResponseProcessor { ) as DeleteAppsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -626,21 +427,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -649,11 +441,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -661,17 +450,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DeleteAppsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DeleteAppsResponse", - "" + "DeleteAppsResponse", "" ) as DeleteAppsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -681,10 +466,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to getApp * @throws ApiException if the response code was not in [200, 299] */ - public async getApp(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -692,16 +475,8 @@ export class AppBuilderApiResponseProcessor { ) as GetAppResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 410 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 410) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -710,21 +485,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -733,11 +499,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -745,17 +508,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetAppResponse", - "" + "GetAppResponse", "" ) as GetAppResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -765,10 +524,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to listApps * @throws ApiException if the response code was not in [200, 299] */ - public async listApps(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listApps(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListAppsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -776,11 +533,8 @@ export class AppBuilderApiResponseProcessor { ) as ListAppsResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -789,21 +543,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -812,11 +557,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -824,17 +566,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListAppsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListAppsResponse", - "" + "ListAppsResponse", "" ) as ListAppsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -844,12 +582,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to publishApp * @throws ApiException if the response code was not in [200, 299] */ - public async publishApp( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async publishApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: PublishAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -857,15 +591,8 @@ export class AppBuilderApiResponseProcessor { ) as PublishAppResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -874,21 +601,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -897,11 +615,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -909,17 +624,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PublishAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PublishAppResponse", - "" + "PublishAppResponse", "" ) as PublishAppResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -929,12 +640,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to unpublishApp * @throws ApiException if the response code was not in [200, 299] */ - public async unpublishApp( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async unpublishApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UnpublishAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -942,15 +649,8 @@ export class AppBuilderApiResponseProcessor { ) as UnpublishAppResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -959,21 +659,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -982,11 +673,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -994,17 +682,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UnpublishAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UnpublishAppResponse", - "" + "UnpublishAppResponse", "" ) as UnpublishAppResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1014,12 +698,8 @@ export class AppBuilderApiResponseProcessor { * @params response Response returned by the server for a request to updateApp * @throws ApiException if the response code was not in [200, 299] */ - public async updateApp( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateApp(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UpdateAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1027,11 +707,8 @@ export class AppBuilderApiResponseProcessor { ) as UpdateAppResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1040,21 +717,12 @@ export class AppBuilderApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1063,11 +731,8 @@ export class AppBuilderApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1075,17 +740,13 @@ export class AppBuilderApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UpdateAppResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UpdateAppResponse", - "" + "UpdateAppResponse", "" ) as UpdateAppResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1093,7 +754,7 @@ export interface AppBuilderApiCreateAppRequest { /** * @type CreateAppRequest */ - body: CreateAppRequest; + body: CreateAppRequest } export interface AppBuilderApiDeleteAppRequest { @@ -1101,14 +762,14 @@ export interface AppBuilderApiDeleteAppRequest { * The ID of the app to delete. * @type string */ - appId: string; + appId: string } export interface AppBuilderApiDeleteAppsRequest { /** * @type DeleteAppsRequest */ - body: DeleteAppsRequest; + body: DeleteAppsRequest } export interface AppBuilderApiGetAppRequest { @@ -1116,12 +777,12 @@ export interface AppBuilderApiGetAppRequest { * The ID of the app to retrieve. * @type string */ - appId: string; + appId: string /** * The version number of the app to retrieve. If not specified, the latest version is returned. Version numbers start at 1 and increment with each update. The special values `latest` and `deployed` can be used to retrieve the latest version or the published version, respectively. * @type string */ - version?: string; + version?: string } export interface AppBuilderApiListAppsRequest { @@ -1129,57 +790,57 @@ export interface AppBuilderApiListAppsRequest { * The number of apps to return per page. * @type number */ - limit?: number; + limit?: number /** * The page number to return. * @type number */ - page?: number; + page?: number /** * Filter apps by the app creator. Usually the user's email. * @type string */ - filterUserName?: string; + filterUserName?: string /** * Filter apps by the app creator's UUID. * @type string */ - filterUserUuid?: string; + filterUserUuid?: string /** * Filter by app name. * @type string */ - filterName?: string; + filterName?: string /** * Filter apps by the app name or the app creator. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Filter apps by whether they are published. * @type boolean */ - filterDeployed?: boolean; + filterDeployed?: boolean /** * Filter apps by tags. * @type string */ - filterTags?: string; + filterTags?: string /** * Filter apps by whether you have added them to your favorites. * @type boolean */ - filterFavorite?: boolean; + filterFavorite?: boolean /** * Filter apps by whether they are enabled for self-service. * @type boolean */ - filterSelfService?: boolean; + filterSelfService?: boolean /** * The fields and direction to sort apps by. * @type Array */ - sort?: Array; + sort?: Array } export interface AppBuilderApiPublishAppRequest { @@ -1187,7 +848,7 @@ export interface AppBuilderApiPublishAppRequest { * The ID of the app to publish. * @type string */ - appId: string; + appId: string } export interface AppBuilderApiUnpublishAppRequest { @@ -1195,7 +856,7 @@ export interface AppBuilderApiUnpublishAppRequest { * The ID of the app to unpublish. * @type string */ - appId: string; + appId: string } export interface AppBuilderApiUpdateAppRequest { @@ -1203,11 +864,11 @@ export interface AppBuilderApiUpdateAppRequest { * The ID of the app to update. * @type string */ - appId: string; + appId: string /** * @type UpdateAppRequest */ - body: UpdateAppRequest; + body: UpdateAppRequest } export class AppBuilderApi { @@ -1215,35 +876,21 @@ export class AppBuilderApi { private responseProcessor: AppBuilderApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AppBuilderApiRequestFactory, - responseProcessor?: AppBuilderApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AppBuilderApiRequestFactory, responseProcessor?: AppBuilderApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AppBuilderApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AppBuilderApiResponseProcessor(); + this.requestFactory = requestFactory || new AppBuilderApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AppBuilderApiResponseProcessor(); } /** * Create a new app, returning the app ID. * @param param The request object */ - public createApp( - param: AppBuilderApiCreateAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createApp( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createApp(responseContext); + public createApp(param: AppBuilderApiCreateAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createApp(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createApp(responseContext); }); }); } @@ -1252,19 +899,11 @@ export class AppBuilderApi { * Delete a single app. * @param param The request object */ - public deleteApp( - param: AppBuilderApiDeleteAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteApp( - param.appId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApp(responseContext); + public deleteApp(param: AppBuilderApiDeleteAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApp(param.appId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApp(responseContext); }); }); } @@ -1273,19 +912,11 @@ export class AppBuilderApi { * Delete multiple apps in a single request from a list of app IDs. * @param param The request object */ - public deleteApps( - param: AppBuilderApiDeleteAppsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteApps( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApps(responseContext); + public deleteApps(param: AppBuilderApiDeleteAppsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApps(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApps(responseContext); }); }); } @@ -1294,20 +925,11 @@ export class AppBuilderApi { * Get the full definition of an app. * @param param The request object */ - public getApp( - param: AppBuilderApiGetAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getApp( - param.appId, - param.version, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getApp(responseContext); + public getApp(param: AppBuilderApiGetAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getApp(param.appId,param.version,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getApp(responseContext); }); }); } @@ -1316,29 +938,11 @@ export class AppBuilderApi { * List all apps, with optional filters and sorting. This endpoint is paginated. Only basic app information such as the app ID, name, and description is returned by this endpoint. * @param param The request object */ - public listApps( - param: AppBuilderApiListAppsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listApps( - param.limit, - param.page, - param.filterUserName, - param.filterUserUuid, - param.filterName, - param.filterQuery, - param.filterDeployed, - param.filterTags, - param.filterFavorite, - param.filterSelfService, - param.sort, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listApps(responseContext); + public listApps(param: AppBuilderApiListAppsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listApps(param.limit,param.page,param.filterUserName,param.filterUserUuid,param.filterName,param.filterQuery,param.filterDeployed,param.filterTags,param.filterFavorite,param.filterSelfService,param.sort,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listApps(responseContext); }); }); } @@ -1347,19 +951,11 @@ export class AppBuilderApi { * Publish an app for use by other users. To ensure the app is accessible to the correct users, you also need to set a [Restriction Policy](https://docs.datadoghq.com/api/latest/restriction-policies/) on the app if a policy does not yet exist. * @param param The request object */ - public publishApp( - param: AppBuilderApiPublishAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.publishApp( - param.appId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.publishApp(responseContext); + public publishApp(param: AppBuilderApiPublishAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.publishApp(param.appId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.publishApp(responseContext); }); }); } @@ -1368,19 +964,11 @@ export class AppBuilderApi { * Unpublish an app, removing the live version of the app. Unpublishing creates a new instance of a `deployment` object on the app, with a nil `app_version_id` (`00000000-0000-0000-0000-000000000000`). The app can still be updated and published again in the future. * @param param The request object */ - public unpublishApp( - param: AppBuilderApiUnpublishAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.unpublishApp( - param.appId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.unpublishApp(responseContext); + public unpublishApp(param: AppBuilderApiUnpublishAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.unpublishApp(param.appId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.unpublishApp(responseContext); }); }); } @@ -1389,21 +977,12 @@ export class AppBuilderApi { * Update an existing app. This creates a new version of the app. * @param param The request object */ - public updateApp( - param: AppBuilderApiUpdateAppRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateApp( - param.appId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateApp(responseContext); + public updateApp(param: AppBuilderApiUpdateAppRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateApp(param.appId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateApp(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ApplicationSecurityApi.ts b/packages/datadog-api-client-v2/apis/ApplicationSecurityApi.ts index e65a8ca822a1..eda43579cb2a 100644 --- a/packages/datadog-api-client-v2/apis/ApplicationSecurityApi.ts +++ b/packages/datadog-api-client-v2/apis/ApplicationSecurityApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ApplicationSecurityWafCustomRuleCreateRequest } from "../models/ApplicationSecurityWafCustomRuleCreateRequest"; import { ApplicationSecurityWafCustomRuleListResponse } from "../models/ApplicationSecurityWafCustomRuleListResponse"; @@ -27,438 +25,276 @@ import { ApplicationSecurityWafExclusionFiltersResponse } from "../models/Applic import { ApplicationSecurityWafExclusionFilterUpdateRequest } from "../models/ApplicationSecurityWafExclusionFilterUpdateRequest"; export class ApplicationSecurityApiRequestFactory extends BaseAPIRequestFactory { - public async createApplicationSecurityWafCustomRule( - body: ApplicationSecurityWafCustomRuleCreateRequest, - _options?: Configuration - ): Promise { + + public async createApplicationSecurityWafCustomRule(body: ApplicationSecurityWafCustomRuleCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createApplicationSecurityWafCustomRule"); + throw new RequiredError('body', 'createApplicationSecurityWafCustomRule'); } // Path Params - const localVarPath = "/api/v2/remote_config/products/asm/waf/custom_rules"; + const localVarPath = '/api/v2/remote_config/products/asm/waf/custom_rules'; // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.createApplicationSecurityWafCustomRule" - ) - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.createApplicationSecurityWafCustomRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "ApplicationSecurityWafCustomRuleCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "ApplicationSecurityWafCustomRuleCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createApplicationSecurityWafExclusionFilter( - body: ApplicationSecurityWafExclusionFilterCreateRequest, - _options?: Configuration - ): Promise { + public async createApplicationSecurityWafExclusionFilter(body: ApplicationSecurityWafExclusionFilterCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError( - "body", - "createApplicationSecurityWafExclusionFilter" - ); + throw new RequiredError('body', 'createApplicationSecurityWafExclusionFilter'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/exclusion_filters"; + const localVarPath = '/api/v2/remote_config/products/asm/waf/exclusion_filters'; // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.createApplicationSecurityWafExclusionFilter" - ) - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.createApplicationSecurityWafExclusionFilter').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "ApplicationSecurityWafExclusionFilterCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "ApplicationSecurityWafExclusionFilterCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApplicationSecurityWafCustomRule( - customRuleId: string, - _options?: Configuration - ): Promise { + public async deleteApplicationSecurityWafCustomRule(customRuleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customRuleId' is not null or undefined if (customRuleId === null || customRuleId === undefined) { - throw new RequiredError( - "customRuleId", - "deleteApplicationSecurityWafCustomRule" - ); + throw new RequiredError('customRuleId', 'deleteApplicationSecurityWafCustomRule'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/custom_rules/{custom_rule_id}".replace( - "{custom_rule_id}", - encodeURIComponent(String(customRuleId)) - ); + const localVarPath = '/api/v2/remote_config/products/asm/waf/custom_rules/{custom_rule_id}' + .replace('{custom_rule_id}', encodeURIComponent(String(customRuleId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.deleteApplicationSecurityWafCustomRule" - ) - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.deleteApplicationSecurityWafCustomRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApplicationSecurityWafExclusionFilter( - exclusionFilterId: string, - _options?: Configuration - ): Promise { + public async deleteApplicationSecurityWafExclusionFilter(exclusionFilterId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'exclusionFilterId' is not null or undefined if (exclusionFilterId === null || exclusionFilterId === undefined) { - throw new RequiredError( - "exclusionFilterId", - "deleteApplicationSecurityWafExclusionFilter" - ); + throw new RequiredError('exclusionFilterId', 'deleteApplicationSecurityWafExclusionFilter'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}".replace( - "{exclusion_filter_id}", - encodeURIComponent(String(exclusionFilterId)) - ); + const localVarPath = '/api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}' + .replace('{exclusion_filter_id}', encodeURIComponent(String(exclusionFilterId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.deleteApplicationSecurityWafExclusionFilter" - ) - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.deleteApplicationSecurityWafExclusionFilter').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getApplicationSecurityWafCustomRule( - customRuleId: string, - _options?: Configuration - ): Promise { + public async getApplicationSecurityWafCustomRule(customRuleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customRuleId' is not null or undefined if (customRuleId === null || customRuleId === undefined) { - throw new RequiredError( - "customRuleId", - "getApplicationSecurityWafCustomRule" - ); + throw new RequiredError('customRuleId', 'getApplicationSecurityWafCustomRule'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/custom_rules/{custom_rule_id}".replace( - "{custom_rule_id}", - encodeURIComponent(String(customRuleId)) - ); + const localVarPath = '/api/v2/remote_config/products/asm/waf/custom_rules/{custom_rule_id}' + .replace('{custom_rule_id}', encodeURIComponent(String(customRuleId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.getApplicationSecurityWafCustomRule" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.getApplicationSecurityWafCustomRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getApplicationSecurityWafExclusionFilter( - exclusionFilterId: string, - _options?: Configuration - ): Promise { + public async getApplicationSecurityWafExclusionFilter(exclusionFilterId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'exclusionFilterId' is not null or undefined if (exclusionFilterId === null || exclusionFilterId === undefined) { - throw new RequiredError( - "exclusionFilterId", - "getApplicationSecurityWafExclusionFilter" - ); + throw new RequiredError('exclusionFilterId', 'getApplicationSecurityWafExclusionFilter'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}".replace( - "{exclusion_filter_id}", - encodeURIComponent(String(exclusionFilterId)) - ); + const localVarPath = '/api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}' + .replace('{exclusion_filter_id}', encodeURIComponent(String(exclusionFilterId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.getApplicationSecurityWafExclusionFilter" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.getApplicationSecurityWafExclusionFilter').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listApplicationSecurityWAFCustomRules( - _options?: Configuration - ): Promise { + public async listApplicationSecurityWAFCustomRules(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/remote_config/products/asm/waf/custom_rules"; + const localVarPath = '/api/v2/remote_config/products/asm/waf/custom_rules'; // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.listApplicationSecurityWAFCustomRules" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.listApplicationSecurityWAFCustomRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listApplicationSecurityWafExclusionFilters( - _options?: Configuration - ): Promise { + public async listApplicationSecurityWafExclusionFilters(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/exclusion_filters"; + const localVarPath = '/api/v2/remote_config/products/asm/waf/exclusion_filters'; // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.listApplicationSecurityWafExclusionFilters" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.listApplicationSecurityWafExclusionFilters').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateApplicationSecurityWafCustomRule( - customRuleId: string, - body: ApplicationSecurityWafCustomRuleUpdateRequest, - _options?: Configuration - ): Promise { + public async updateApplicationSecurityWafCustomRule(customRuleId: string,body: ApplicationSecurityWafCustomRuleUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customRuleId' is not null or undefined if (customRuleId === null || customRuleId === undefined) { - throw new RequiredError( - "customRuleId", - "updateApplicationSecurityWafCustomRule" - ); + throw new RequiredError('customRuleId', 'updateApplicationSecurityWafCustomRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateApplicationSecurityWafCustomRule"); + throw new RequiredError('body', 'updateApplicationSecurityWafCustomRule'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/custom_rules/{custom_rule_id}".replace( - "{custom_rule_id}", - encodeURIComponent(String(customRuleId)) - ); + const localVarPath = '/api/v2/remote_config/products/asm/waf/custom_rules/{custom_rule_id}' + .replace('{custom_rule_id}', encodeURIComponent(String(customRuleId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.updateApplicationSecurityWafCustomRule" - ) - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.updateApplicationSecurityWafCustomRule').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "ApplicationSecurityWafCustomRuleUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "ApplicationSecurityWafCustomRuleUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateApplicationSecurityWafExclusionFilter( - exclusionFilterId: string, - body: ApplicationSecurityWafExclusionFilterUpdateRequest, - _options?: Configuration - ): Promise { + public async updateApplicationSecurityWafExclusionFilter(exclusionFilterId: string,body: ApplicationSecurityWafExclusionFilterUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'exclusionFilterId' is not null or undefined if (exclusionFilterId === null || exclusionFilterId === undefined) { - throw new RequiredError( - "exclusionFilterId", - "updateApplicationSecurityWafExclusionFilter" - ); + throw new RequiredError('exclusionFilterId', 'updateApplicationSecurityWafExclusionFilter'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError( - "body", - "updateApplicationSecurityWafExclusionFilter" - ); + throw new RequiredError('body', 'updateApplicationSecurityWafExclusionFilter'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}".replace( - "{exclusion_filter_id}", - encodeURIComponent(String(exclusionFilterId)) - ); + const localVarPath = '/api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}' + .replace('{exclusion_filter_id}', encodeURIComponent(String(exclusionFilterId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.ApplicationSecurityApi.updateApplicationSecurityWafExclusionFilter" - ) - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.ApplicationSecurityApi.updateApplicationSecurityWafExclusionFilter').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "ApplicationSecurityWafExclusionFilterUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "ApplicationSecurityWafExclusionFilterUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ApplicationSecurityApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -466,30 +302,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to createApplicationSecurityWafCustomRule * @throws ApiException if the response code was not in [200, 299] */ - public async createApplicationSecurityWafCustomRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createApplicationSecurityWafCustomRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { - const body: ApplicationSecurityWafCustomRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleResponse" - ) as ApplicationSecurityWafCustomRuleResponse; + const body: ApplicationSecurityWafCustomRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleResponse" + ) as ApplicationSecurityWafCustomRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -498,30 +321,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafCustomRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleResponse", - "" - ) as ApplicationSecurityWafCustomRuleResponse; + const body: ApplicationSecurityWafCustomRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleResponse", "" + ) as ApplicationSecurityWafCustomRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -531,30 +346,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to createApplicationSecurityWafExclusionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async createApplicationSecurityWafExclusionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createApplicationSecurityWafExclusionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafExclusionFilterResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFilterResponse" - ) as ApplicationSecurityWafExclusionFilterResponse; + const body: ApplicationSecurityWafExclusionFilterResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFilterResponse" + ) as ApplicationSecurityWafExclusionFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -563,30 +365,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafExclusionFilterResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFilterResponse", - "" - ) as ApplicationSecurityWafExclusionFilterResponse; + const body: ApplicationSecurityWafExclusionFilterResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFilterResponse", "" + ) as ApplicationSecurityWafExclusionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -596,25 +390,13 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to deleteApplicationSecurityWafCustomRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApplicationSecurityWafCustomRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApplicationSecurityWafCustomRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -623,11 +405,8 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -635,17 +414,13 @@ export class ApplicationSecurityApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -655,25 +430,13 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to deleteApplicationSecurityWafExclusionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApplicationSecurityWafExclusionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApplicationSecurityWafExclusionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -682,11 +445,8 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -694,17 +454,13 @@ export class ApplicationSecurityApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -714,25 +470,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to getApplicationSecurityWafCustomRule * @throws ApiException if the response code was not in [200, 299] */ - public async getApplicationSecurityWafCustomRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getApplicationSecurityWafCustomRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafCustomRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleResponse" - ) as ApplicationSecurityWafCustomRuleResponse; + const body: ApplicationSecurityWafCustomRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleResponse" + ) as ApplicationSecurityWafCustomRuleResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -741,30 +489,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafCustomRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleResponse", - "" - ) as ApplicationSecurityWafCustomRuleResponse; + const body: ApplicationSecurityWafCustomRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleResponse", "" + ) as ApplicationSecurityWafCustomRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -774,29 +514,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to getApplicationSecurityWafExclusionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async getApplicationSecurityWafExclusionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getApplicationSecurityWafExclusionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafExclusionFilterResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFilterResponse" - ) as ApplicationSecurityWafExclusionFilterResponse; + const body: ApplicationSecurityWafExclusionFilterResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFilterResponse" + ) as ApplicationSecurityWafExclusionFilterResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -805,30 +533,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafExclusionFilterResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFilterResponse", - "" - ) as ApplicationSecurityWafExclusionFilterResponse; + const body: ApplicationSecurityWafExclusionFilterResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFilterResponse", "" + ) as ApplicationSecurityWafExclusionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -838,25 +558,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to listApplicationSecurityWAFCustomRules * @throws ApiException if the response code was not in [200, 299] */ - public async listApplicationSecurityWAFCustomRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listApplicationSecurityWAFCustomRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafCustomRuleListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleListResponse" - ) as ApplicationSecurityWafCustomRuleListResponse; + const body: ApplicationSecurityWafCustomRuleListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleListResponse" + ) as ApplicationSecurityWafCustomRuleListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -865,30 +577,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafCustomRuleListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleListResponse", - "" - ) as ApplicationSecurityWafCustomRuleListResponse; + const body: ApplicationSecurityWafCustomRuleListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleListResponse", "" + ) as ApplicationSecurityWafCustomRuleListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -898,25 +602,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to listApplicationSecurityWafExclusionFilters * @throws ApiException if the response code was not in [200, 299] */ - public async listApplicationSecurityWafExclusionFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listApplicationSecurityWafExclusionFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafExclusionFiltersResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFiltersResponse" - ) as ApplicationSecurityWafExclusionFiltersResponse; + const body: ApplicationSecurityWafExclusionFiltersResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFiltersResponse" + ) as ApplicationSecurityWafExclusionFiltersResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -925,30 +621,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafExclusionFiltersResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFiltersResponse", - "" - ) as ApplicationSecurityWafExclusionFiltersResponse; + const body: ApplicationSecurityWafExclusionFiltersResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFiltersResponse", "" + ) as ApplicationSecurityWafExclusionFiltersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -958,31 +646,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to updateApplicationSecurityWafCustomRule * @throws ApiException if the response code was not in [200, 299] */ - public async updateApplicationSecurityWafCustomRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateApplicationSecurityWafCustomRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafCustomRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleResponse" - ) as ApplicationSecurityWafCustomRuleResponse; + const body: ApplicationSecurityWafCustomRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleResponse" + ) as ApplicationSecurityWafCustomRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -991,30 +665,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafCustomRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafCustomRuleResponse", - "" - ) as ApplicationSecurityWafCustomRuleResponse; + const body: ApplicationSecurityWafCustomRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafCustomRuleResponse", "" + ) as ApplicationSecurityWafCustomRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1024,31 +690,17 @@ export class ApplicationSecurityApiResponseProcessor { * @params response Response returned by the server for a request to updateApplicationSecurityWafExclusionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async updateApplicationSecurityWafExclusionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateApplicationSecurityWafExclusionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ApplicationSecurityWafExclusionFilterResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFilterResponse" - ) as ApplicationSecurityWafExclusionFilterResponse; + const body: ApplicationSecurityWafExclusionFilterResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFilterResponse" + ) as ApplicationSecurityWafExclusionFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1057,30 +709,22 @@ export class ApplicationSecurityApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ApplicationSecurityWafExclusionFilterResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationSecurityWafExclusionFilterResponse", - "" - ) as ApplicationSecurityWafExclusionFilterResponse; + const body: ApplicationSecurityWafExclusionFilterResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ApplicationSecurityWafExclusionFilterResponse", "" + ) as ApplicationSecurityWafExclusionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1089,7 +733,7 @@ export interface ApplicationSecurityApiCreateApplicationSecurityWafCustomRuleReq * The definition of the new WAF Custom Rule. * @type ApplicationSecurityWafCustomRuleCreateRequest */ - body: ApplicationSecurityWafCustomRuleCreateRequest; + body: ApplicationSecurityWafCustomRuleCreateRequest } export interface ApplicationSecurityApiCreateApplicationSecurityWafExclusionFilterRequest { @@ -1097,7 +741,7 @@ export interface ApplicationSecurityApiCreateApplicationSecurityWafExclusionFilt * The definition of the new WAF exclusion filter. * @type ApplicationSecurityWafExclusionFilterCreateRequest */ - body: ApplicationSecurityWafExclusionFilterCreateRequest; + body: ApplicationSecurityWafExclusionFilterCreateRequest } export interface ApplicationSecurityApiDeleteApplicationSecurityWafCustomRuleRequest { @@ -1105,7 +749,7 @@ export interface ApplicationSecurityApiDeleteApplicationSecurityWafCustomRuleReq * The ID of the custom rule. * @type string */ - customRuleId: string; + customRuleId: string } export interface ApplicationSecurityApiDeleteApplicationSecurityWafExclusionFilterRequest { @@ -1113,7 +757,7 @@ export interface ApplicationSecurityApiDeleteApplicationSecurityWafExclusionFilt * The identifier of the WAF exclusion filter. * @type string */ - exclusionFilterId: string; + exclusionFilterId: string } export interface ApplicationSecurityApiGetApplicationSecurityWafCustomRuleRequest { @@ -1121,7 +765,7 @@ export interface ApplicationSecurityApiGetApplicationSecurityWafCustomRuleReques * The ID of the custom rule. * @type string */ - customRuleId: string; + customRuleId: string } export interface ApplicationSecurityApiGetApplicationSecurityWafExclusionFilterRequest { @@ -1129,7 +773,7 @@ export interface ApplicationSecurityApiGetApplicationSecurityWafExclusionFilterR * The identifier of the WAF exclusion filter. * @type string */ - exclusionFilterId: string; + exclusionFilterId: string } export interface ApplicationSecurityApiUpdateApplicationSecurityWafCustomRuleRequest { @@ -1137,12 +781,12 @@ export interface ApplicationSecurityApiUpdateApplicationSecurityWafCustomRuleReq * The ID of the custom rule. * @type string */ - customRuleId: string; + customRuleId: string /** * New definition of the WAF Custom Rule. * @type ApplicationSecurityWafCustomRuleUpdateRequest */ - body: ApplicationSecurityWafCustomRuleUpdateRequest; + body: ApplicationSecurityWafCustomRuleUpdateRequest } export interface ApplicationSecurityApiUpdateApplicationSecurityWafExclusionFilterRequest { @@ -1150,12 +794,12 @@ export interface ApplicationSecurityApiUpdateApplicationSecurityWafExclusionFilt * The identifier of the WAF exclusion filter. * @type string */ - exclusionFilterId: string; + exclusionFilterId: string /** * The exclusion filter to update. * @type ApplicationSecurityWafExclusionFilterUpdateRequest */ - body: ApplicationSecurityWafExclusionFilterUpdateRequest; + body: ApplicationSecurityWafExclusionFilterUpdateRequest } export class ApplicationSecurityApi { @@ -1163,65 +807,37 @@ export class ApplicationSecurityApi { private responseProcessor: ApplicationSecurityApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ApplicationSecurityApiRequestFactory, - responseProcessor?: ApplicationSecurityApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ApplicationSecurityApiRequestFactory, responseProcessor?: ApplicationSecurityApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ApplicationSecurityApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ApplicationSecurityApiResponseProcessor(); + this.requestFactory = requestFactory || new ApplicationSecurityApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ApplicationSecurityApiResponseProcessor(); } /** * Create a new WAF custom rule with the given parameters. * @param param The request object */ - public createApplicationSecurityWafCustomRule( - param: ApplicationSecurityApiCreateApplicationSecurityWafCustomRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createApplicationSecurityWafCustomRule( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createApplicationSecurityWafCustomRule( - responseContext - ); + public createApplicationSecurityWafCustomRule(param: ApplicationSecurityApiCreateApplicationSecurityWafCustomRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createApplicationSecurityWafCustomRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createApplicationSecurityWafCustomRule(responseContext); }); }); } /** * Create a new WAF exclusion filter with the given parameters. - * + * * A request matched by an exclusion filter will be ignored by the Application Security WAF product. * Go to https://app.datadoghq.com/security/appsec/passlist to review existing exclusion filters (also called passlist entries). * @param param The request object */ - public createApplicationSecurityWafExclusionFilter( - param: ApplicationSecurityApiCreateApplicationSecurityWafExclusionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createApplicationSecurityWafExclusionFilter( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createApplicationSecurityWafExclusionFilter( - responseContext - ); + public createApplicationSecurityWafExclusionFilter(param: ApplicationSecurityApiCreateApplicationSecurityWafExclusionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createApplicationSecurityWafExclusionFilter(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createApplicationSecurityWafExclusionFilter(responseContext); }); }); } @@ -1230,22 +846,11 @@ export class ApplicationSecurityApi { * Delete a specific WAF custom rule. * @param param The request object */ - public deleteApplicationSecurityWafCustomRule( - param: ApplicationSecurityApiDeleteApplicationSecurityWafCustomRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteApplicationSecurityWafCustomRule( - param.customRuleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApplicationSecurityWafCustomRule( - responseContext - ); + public deleteApplicationSecurityWafCustomRule(param: ApplicationSecurityApiDeleteApplicationSecurityWafCustomRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApplicationSecurityWafCustomRule(param.customRuleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApplicationSecurityWafCustomRule(responseContext); }); }); } @@ -1254,22 +859,11 @@ export class ApplicationSecurityApi { * Delete a specific WAF exclusion filter using its identifier. * @param param The request object */ - public deleteApplicationSecurityWafExclusionFilter( - param: ApplicationSecurityApiDeleteApplicationSecurityWafExclusionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteApplicationSecurityWafExclusionFilter( - param.exclusionFilterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApplicationSecurityWafExclusionFilter( - responseContext - ); + public deleteApplicationSecurityWafExclusionFilter(param: ApplicationSecurityApiDeleteApplicationSecurityWafExclusionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApplicationSecurityWafExclusionFilter(param.exclusionFilterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApplicationSecurityWafExclusionFilter(responseContext); }); }); } @@ -1278,22 +872,11 @@ export class ApplicationSecurityApi { * Retrieve a WAF custom rule by ID. * @param param The request object */ - public getApplicationSecurityWafCustomRule( - param: ApplicationSecurityApiGetApplicationSecurityWafCustomRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getApplicationSecurityWafCustomRule( - param.customRuleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getApplicationSecurityWafCustomRule( - responseContext - ); + public getApplicationSecurityWafCustomRule(param: ApplicationSecurityApiGetApplicationSecurityWafCustomRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getApplicationSecurityWafCustomRule(param.customRuleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getApplicationSecurityWafCustomRule(responseContext); }); }); } @@ -1302,22 +885,11 @@ export class ApplicationSecurityApi { * Retrieve a specific WAF exclusion filter using its identifier. * @param param The request object */ - public getApplicationSecurityWafExclusionFilter( - param: ApplicationSecurityApiGetApplicationSecurityWafExclusionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getApplicationSecurityWafExclusionFilter( - param.exclusionFilterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getApplicationSecurityWafExclusionFilter( - responseContext - ); + public getApplicationSecurityWafExclusionFilter(param: ApplicationSecurityApiGetApplicationSecurityWafExclusionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getApplicationSecurityWafExclusionFilter(param.exclusionFilterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getApplicationSecurityWafExclusionFilter(responseContext); }); }); } @@ -1326,18 +898,11 @@ export class ApplicationSecurityApi { * Retrieve a list of WAF custom rule. * @param param The request object */ - public listApplicationSecurityWAFCustomRules( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listApplicationSecurityWAFCustomRules(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listApplicationSecurityWAFCustomRules( - responseContext - ); + public listApplicationSecurityWAFCustomRules( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listApplicationSecurityWAFCustomRules(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listApplicationSecurityWAFCustomRules(responseContext); }); }); } @@ -1346,18 +911,11 @@ export class ApplicationSecurityApi { * Retrieve a list of WAF exclusion filters. * @param param The request object */ - public listApplicationSecurityWafExclusionFilters( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listApplicationSecurityWafExclusionFilters(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listApplicationSecurityWafExclusionFilters( - responseContext - ); + public listApplicationSecurityWafExclusionFilters( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listApplicationSecurityWafExclusionFilters(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listApplicationSecurityWafExclusionFilters(responseContext); }); }); } @@ -1367,23 +925,11 @@ export class ApplicationSecurityApi { * Returns the Custom Rule object when the request is successful. * @param param The request object */ - public updateApplicationSecurityWafCustomRule( - param: ApplicationSecurityApiUpdateApplicationSecurityWafCustomRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateApplicationSecurityWafCustomRule( - param.customRuleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateApplicationSecurityWafCustomRule( - responseContext - ); + public updateApplicationSecurityWafCustomRule(param: ApplicationSecurityApiUpdateApplicationSecurityWafCustomRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateApplicationSecurityWafCustomRule(param.customRuleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateApplicationSecurityWafCustomRule(responseContext); }); }); } @@ -1393,24 +939,12 @@ export class ApplicationSecurityApi { * Returns the exclusion filter object when the request is successful. * @param param The request object */ - public updateApplicationSecurityWafExclusionFilter( - param: ApplicationSecurityApiUpdateApplicationSecurityWafExclusionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateApplicationSecurityWafExclusionFilter( - param.exclusionFilterId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateApplicationSecurityWafExclusionFilter( - responseContext - ); + public updateApplicationSecurityWafExclusionFilter(param: ApplicationSecurityApiUpdateApplicationSecurityWafExclusionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateApplicationSecurityWafExclusionFilter(param.exclusionFilterId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateApplicationSecurityWafExclusionFilter(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/AuditApi.ts b/packages/datadog-api-client-v2/apis/AuditApi.ts index d32ce12054e8..e3046798c761 100644 --- a/packages/datadog-api-client-v2/apis/AuditApi.ts +++ b/packages/datadog-api-client-v2/apis/AuditApi.ts @@ -1,18 +1,19 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AuditLogsEvent } from "../models/AuditLogsEvent"; import { AuditLogsEventsResponse } from "../models/AuditLogsEventsResponse"; @@ -21,100 +22,58 @@ import { AuditLogsSearchEventsRequest } from "../models/AuditLogsSearchEventsReq import { AuditLogsSort } from "../models/AuditLogsSort"; export class AuditApiRequestFactory extends BaseAPIRequestFactory { - public async listAuditLogs( - filterQuery?: string, - filterFrom?: Date, - filterTo?: Date, - sort?: AuditLogsSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + + public async listAuditLogs(filterQuery?: string,filterFrom?: Date,filterTo?: Date,sort?: AuditLogsSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/audit/events"; + const localVarPath = '/api/v2/audit/events'; // Make Request Context - const requestContext = _config - .getServer("v2.AuditApi.listAuditLogs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AuditApi.listAuditLogs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "AuditLogsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "AuditLogsSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchAuditLogs( - body?: AuditLogsSearchEventsRequest, - _options?: Configuration - ): Promise { + public async searchAuditLogs(body?: AuditLogsSearchEventsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/audit/events/search"; + const localVarPath = '/api/v2/audit/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.AuditApi.searchAuditLogs") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AuditApi.searchAuditLogs').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AuditLogsSearchEventsRequest", ""), @@ -123,16 +82,14 @@ export class AuditApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AuditApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -140,12 +97,8 @@ export class AuditApiResponseProcessor { * @params response Response returned by the server for a request to listAuditLogs * @throws ApiException if the response code was not in [200, 299] */ - public async listAuditLogs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAuditLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AuditLogsEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -153,15 +106,8 @@ export class AuditApiResponseProcessor { ) as AuditLogsEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -170,11 +116,8 @@ export class AuditApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -182,17 +125,13 @@ export class AuditApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AuditLogsEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AuditLogsEventsResponse", - "" + "AuditLogsEventsResponse", "" ) as AuditLogsEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -202,12 +141,8 @@ export class AuditApiResponseProcessor { * @params response Response returned by the server for a request to searchAuditLogs * @throws ApiException if the response code was not in [200, 299] */ - public async searchAuditLogs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchAuditLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AuditLogsEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -215,15 +150,8 @@ export class AuditApiResponseProcessor { ) as AuditLogsEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -232,11 +160,8 @@ export class AuditApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -244,17 +169,13 @@ export class AuditApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AuditLogsEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AuditLogsEventsResponse", - "" + "AuditLogsEventsResponse", "" ) as AuditLogsEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -263,39 +184,39 @@ export interface AuditApiListAuditLogsRequest { * Search query following Audit Logs syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Minimum timestamp for requested events. * @type Date */ - filterFrom?: Date; + filterFrom?: Date /** * Maximum timestamp for requested events. * @type Date */ - filterTo?: Date; + filterTo?: Date /** * Order of events in results. * @type AuditLogsSort */ - sort?: AuditLogsSort; + sort?: AuditLogsSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of events in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface AuditApiSearchAuditLogsRequest { /** * @type AuditLogsSearchEventsRequest */ - body?: AuditLogsSearchEventsRequest; + body?: AuditLogsSearchEventsRequest } export class AuditApi { @@ -303,45 +224,26 @@ export class AuditApi { private responseProcessor: AuditApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AuditApiRequestFactory, - responseProcessor?: AuditApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AuditApiRequestFactory, responseProcessor?: AuditApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AuditApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AuditApiResponseProcessor(); + this.requestFactory = requestFactory || new AuditApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AuditApiResponseProcessor(); } /** * List endpoint returns events that match a Audit Logs search query. * [Results are paginated][1]. - * + * * Use this endpoint to see your latest Audit Logs events. - * + * * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination * @param param The request object */ - public listAuditLogs( - param: AuditApiListAuditLogsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAuditLogs( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAuditLogs(responseContext); + public listAuditLogs(param: AuditApiListAuditLogsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAuditLogs(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAuditLogs(responseContext); }); }); } @@ -349,32 +251,18 @@ export class AuditApi { /** * Provide a paginated version of listAuditLogs returning a generator with all the items. */ - public async *listAuditLogsWithPagination( - param: AuditApiListAuditLogsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listAuditLogsWithPagination(param: AuditApiListAuditLogsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listAuditLogs( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listAuditLogs( - responseContext - ); + const requestContext = await this.requestFactory.listAuditLogs(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listAuditLogs(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -406,25 +294,17 @@ export class AuditApi { /** * List endpoint returns Audit Logs events that match an Audit search query. * [Results are paginated][1]. - * + * * Use this endpoint to build complex Audit Logs events filtering and search. - * + * * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination * @param param The request object */ - public searchAuditLogs( - param: AuditApiSearchAuditLogsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchAuditLogs( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchAuditLogs(responseContext); + public searchAuditLogs(param: AuditApiSearchAuditLogsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchAuditLogs(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchAuditLogs(responseContext); }); }); } @@ -432,10 +312,8 @@ export class AuditApi { /** * Provide a paginated version of searchAuditLogs returning a generator with all the items. */ - public async *searchAuditLogsWithPagination( - param: AuditApiSearchAuditLogsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *searchAuditLogsWithPagination(param: AuditApiSearchAuditLogsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.body === undefined) { param.body = new AuditLogsSearchEventsRequest(); @@ -448,17 +326,10 @@ export class AuditApi { } param.body.page.limit = pageSize; while (true) { - const requestContext = await this.requestFactory.searchAuditLogs( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchAuditLogs( - responseContext - ); + const requestContext = await this.requestFactory.searchAuditLogs(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchAuditLogs(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -486,4 +357,4 @@ export class AuditApi { param.body.page.cursor = cursorMetaPageAfter; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts b/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts index 297a42a8c195..221d61510f29 100644 --- a/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts +++ b/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AuthNMappingCreateRequest } from "../models/AuthNMappingCreateRequest"; import { AuthNMappingResourceType } from "../models/AuthNMappingResourceType"; @@ -25,31 +23,26 @@ import { AuthNMappingsSort } from "../models/AuthNMappingsSort"; import { AuthNMappingUpdateRequest } from "../models/AuthNMappingUpdateRequest"; export class AuthNMappingsApiRequestFactory extends BaseAPIRequestFactory { - public async createAuthNMapping( - body: AuthNMappingCreateRequest, - _options?: Configuration - ): Promise { + + public async createAuthNMapping(body: AuthNMappingCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAuthNMapping"); + throw new RequiredError('body', 'createAuthNMapping'); } // Path Params - const localVarPath = "/api/v2/authn_mappings"; + const localVarPath = '/api/v2/authn_mappings'; // Make Request Context - const requestContext = _config - .getServer("v2.AuthNMappingsApi.createAuthNMapping") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.AuthNMappingsApi.createAuthNMapping').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AuthNMappingCreateRequest", ""), @@ -58,184 +51,116 @@ export class AuthNMappingsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAuthNMapping( - authnMappingId: string, - _options?: Configuration - ): Promise { + public async deleteAuthNMapping(authnMappingId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'authnMappingId' is not null or undefined if (authnMappingId === null || authnMappingId === undefined) { - throw new RequiredError("authnMappingId", "deleteAuthNMapping"); + throw new RequiredError('authnMappingId', 'deleteAuthNMapping'); } // Path Params - const localVarPath = "/api/v2/authn_mappings/{authn_mapping_id}".replace( - "{authn_mapping_id}", - encodeURIComponent(String(authnMappingId)) - ); + const localVarPath = '/api/v2/authn_mappings/{authn_mapping_id}' + .replace('{authn_mapping_id}', encodeURIComponent(String(authnMappingId))); // Make Request Context - const requestContext = _config - .getServer("v2.AuthNMappingsApi.deleteAuthNMapping") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.AuthNMappingsApi.deleteAuthNMapping').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAuthNMapping( - authnMappingId: string, - _options?: Configuration - ): Promise { + public async getAuthNMapping(authnMappingId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'authnMappingId' is not null or undefined if (authnMappingId === null || authnMappingId === undefined) { - throw new RequiredError("authnMappingId", "getAuthNMapping"); + throw new RequiredError('authnMappingId', 'getAuthNMapping'); } // Path Params - const localVarPath = "/api/v2/authn_mappings/{authn_mapping_id}".replace( - "{authn_mapping_id}", - encodeURIComponent(String(authnMappingId)) - ); + const localVarPath = '/api/v2/authn_mappings/{authn_mapping_id}' + .replace('{authn_mapping_id}', encodeURIComponent(String(authnMappingId))); // Make Request Context - const requestContext = _config - .getServer("v2.AuthNMappingsApi.getAuthNMapping") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AuthNMappingsApi.getAuthNMapping').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAuthNMappings( - pageSize?: number, - pageNumber?: number, - sort?: AuthNMappingsSort, - filter?: string, - resourceType?: AuthNMappingResourceType, - _options?: Configuration - ): Promise { + public async listAuthNMappings(pageSize?: number,pageNumber?: number,sort?: AuthNMappingsSort,filter?: string,resourceType?: AuthNMappingResourceType,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/authn_mappings"; + const localVarPath = '/api/v2/authn_mappings'; // Make Request Context - const requestContext = _config - .getServer("v2.AuthNMappingsApi.listAuthNMappings") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.AuthNMappingsApi.listAuthNMappings').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "AuthNMappingsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "AuthNMappingsSort", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (resourceType !== undefined) { - requestContext.setQueryParam( - "resource_type", - ObjectSerializer.serialize( - resourceType, - "AuthNMappingResourceType", - "" - ), - "" - ); + requestContext.setQueryParam("resource_type", ObjectSerializer.serialize(resourceType, "AuthNMappingResourceType", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAuthNMapping( - authnMappingId: string, - body: AuthNMappingUpdateRequest, - _options?: Configuration - ): Promise { + public async updateAuthNMapping(authnMappingId: string,body: AuthNMappingUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'authnMappingId' is not null or undefined if (authnMappingId === null || authnMappingId === undefined) { - throw new RequiredError("authnMappingId", "updateAuthNMapping"); + throw new RequiredError('authnMappingId', 'updateAuthNMapping'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAuthNMapping"); + throw new RequiredError('body', 'updateAuthNMapping'); } // Path Params - const localVarPath = "/api/v2/authn_mappings/{authn_mapping_id}".replace( - "{authn_mapping_id}", - encodeURIComponent(String(authnMappingId)) - ); + const localVarPath = '/api/v2/authn_mappings/{authn_mapping_id}' + .replace('{authn_mapping_id}', encodeURIComponent(String(authnMappingId))); // Make Request Context - const requestContext = _config - .getServer("v2.AuthNMappingsApi.updateAuthNMapping") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.AuthNMappingsApi.updateAuthNMapping').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AuthNMappingUpdateRequest", ""), @@ -244,16 +169,14 @@ export class AuthNMappingsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class AuthNMappingsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -261,12 +184,8 @@ export class AuthNMappingsApiResponseProcessor { * @params response Response returned by the server for a request to createAuthNMapping * @throws ApiException if the response code was not in [200, 299] */ - public async createAuthNMapping( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAuthNMapping(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AuthNMappingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -274,16 +193,8 @@ export class AuthNMappingsApiResponseProcessor { ) as AuthNMappingResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -292,11 +203,8 @@ export class AuthNMappingsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -304,17 +212,13 @@ export class AuthNMappingsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AuthNMappingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AuthNMappingResponse", - "" + "AuthNMappingResponse", "" ) as AuthNMappingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -324,22 +228,13 @@ export class AuthNMappingsApiResponseProcessor { * @params response Response returned by the server for a request to deleteAuthNMapping * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAuthNMapping(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAuthNMapping(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -348,11 +243,8 @@ export class AuthNMappingsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -360,17 +252,13 @@ export class AuthNMappingsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -380,12 +268,8 @@ export class AuthNMappingsApiResponseProcessor { * @params response Response returned by the server for a request to getAuthNMapping * @throws ApiException if the response code was not in [200, 299] */ - public async getAuthNMapping( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAuthNMapping(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AuthNMappingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -393,15 +277,8 @@ export class AuthNMappingsApiResponseProcessor { ) as AuthNMappingResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -410,11 +287,8 @@ export class AuthNMappingsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -422,17 +296,13 @@ export class AuthNMappingsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AuthNMappingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AuthNMappingResponse", - "" + "AuthNMappingResponse", "" ) as AuthNMappingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -442,12 +312,8 @@ export class AuthNMappingsApiResponseProcessor { * @params response Response returned by the server for a request to listAuthNMappings * @throws ApiException if the response code was not in [200, 299] */ - public async listAuthNMappings( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAuthNMappings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AuthNMappingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -455,11 +321,8 @@ export class AuthNMappingsApiResponseProcessor { ) as AuthNMappingsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -468,11 +331,8 @@ export class AuthNMappingsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -480,17 +340,13 @@ export class AuthNMappingsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AuthNMappingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AuthNMappingsResponse", - "" + "AuthNMappingsResponse", "" ) as AuthNMappingsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -500,12 +356,8 @@ export class AuthNMappingsApiResponseProcessor { * @params response Response returned by the server for a request to updateAuthNMapping * @throws ApiException if the response code was not in [200, 299] */ - public async updateAuthNMapping( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAuthNMapping(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AuthNMappingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -513,18 +365,8 @@ export class AuthNMappingsApiResponseProcessor { ) as AuthNMappingResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -533,11 +375,8 @@ export class AuthNMappingsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -545,17 +384,13 @@ export class AuthNMappingsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AuthNMappingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AuthNMappingResponse", - "" + "AuthNMappingResponse", "" ) as AuthNMappingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -563,7 +398,7 @@ export interface AuthNMappingsApiCreateAuthNMappingRequest { /** * @type AuthNMappingCreateRequest */ - body: AuthNMappingCreateRequest; + body: AuthNMappingCreateRequest } export interface AuthNMappingsApiDeleteAuthNMappingRequest { @@ -571,7 +406,7 @@ export interface AuthNMappingsApiDeleteAuthNMappingRequest { * The UUID of the AuthN Mapping. * @type string */ - authnMappingId: string; + authnMappingId: string } export interface AuthNMappingsApiGetAuthNMappingRequest { @@ -579,7 +414,7 @@ export interface AuthNMappingsApiGetAuthNMappingRequest { * The UUID of the AuthN Mapping. * @type string */ - authnMappingId: string; + authnMappingId: string } export interface AuthNMappingsApiListAuthNMappingsRequest { @@ -587,27 +422,27 @@ export interface AuthNMappingsApiListAuthNMappingsRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Sort AuthN Mappings depending on the given field. * @type AuthNMappingsSort */ - sort?: AuthNMappingsSort; + sort?: AuthNMappingsSort /** * Filter all mappings by the given string. * @type string */ - filter?: string; + filter?: string /** * Filter by mapping resource type. Defaults to "role" if not specified. * @type AuthNMappingResourceType */ - resourceType?: AuthNMappingResourceType; + resourceType?: AuthNMappingResourceType } export interface AuthNMappingsApiUpdateAuthNMappingRequest { @@ -615,11 +450,11 @@ export interface AuthNMappingsApiUpdateAuthNMappingRequest { * The UUID of the AuthN Mapping. * @type string */ - authnMappingId: string; + authnMappingId: string /** * @type AuthNMappingUpdateRequest */ - body: AuthNMappingUpdateRequest; + body: AuthNMappingUpdateRequest } export class AuthNMappingsApi { @@ -627,35 +462,21 @@ export class AuthNMappingsApi { private responseProcessor: AuthNMappingsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: AuthNMappingsApiRequestFactory, - responseProcessor?: AuthNMappingsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: AuthNMappingsApiRequestFactory, responseProcessor?: AuthNMappingsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new AuthNMappingsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new AuthNMappingsApiResponseProcessor(); + this.requestFactory = requestFactory || new AuthNMappingsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new AuthNMappingsApiResponseProcessor(); } /** * Create an AuthN Mapping. * @param param The request object */ - public createAuthNMapping( - param: AuthNMappingsApiCreateAuthNMappingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAuthNMapping( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAuthNMapping(responseContext); + public createAuthNMapping(param: AuthNMappingsApiCreateAuthNMappingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAuthNMapping(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAuthNMapping(responseContext); }); }); } @@ -664,19 +485,11 @@ export class AuthNMappingsApi { * Delete an AuthN Mapping specified by AuthN Mapping UUID. * @param param The request object */ - public deleteAuthNMapping( - param: AuthNMappingsApiDeleteAuthNMappingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAuthNMapping( - param.authnMappingId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAuthNMapping(responseContext); + public deleteAuthNMapping(param: AuthNMappingsApiDeleteAuthNMappingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAuthNMapping(param.authnMappingId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAuthNMapping(responseContext); }); }); } @@ -685,19 +498,11 @@ export class AuthNMappingsApi { * Get an AuthN Mapping specified by the AuthN Mapping UUID. * @param param The request object */ - public getAuthNMapping( - param: AuthNMappingsApiGetAuthNMappingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAuthNMapping( - param.authnMappingId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAuthNMapping(responseContext); + public getAuthNMapping(param: AuthNMappingsApiGetAuthNMappingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAuthNMapping(param.authnMappingId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAuthNMapping(responseContext); }); }); } @@ -706,23 +511,11 @@ export class AuthNMappingsApi { * List all AuthN Mappings in the org. * @param param The request object */ - public listAuthNMappings( - param: AuthNMappingsApiListAuthNMappingsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAuthNMappings( - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - param.resourceType, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAuthNMappings(responseContext); + public listAuthNMappings(param: AuthNMappingsApiListAuthNMappingsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAuthNMappings(param.pageSize,param.pageNumber,param.sort,param.filter,param.resourceType,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAuthNMappings(responseContext); }); }); } @@ -731,21 +524,12 @@ export class AuthNMappingsApi { * Edit an AuthN Mapping. * @param param The request object */ - public updateAuthNMapping( - param: AuthNMappingsApiUpdateAuthNMappingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAuthNMapping( - param.authnMappingId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAuthNMapping(responseContext); + public updateAuthNMapping(param: AuthNMappingsApiUpdateAuthNMappingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAuthNMapping(param.authnMappingId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAuthNMapping(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts b/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts index 65c2401ea0d0..e711b3d69c0f 100644 --- a/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts +++ b/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CIAppCreatePipelineEventRequest } from "../models/CIAppCreatePipelineEventRequest"; import { CIAppPipelineEvent } from "../models/CIAppPipelineEvent"; @@ -28,31 +26,26 @@ import { CIAppSort } from "../models/CIAppSort"; import { HTTPCIAppErrors } from "../models/HTTPCIAppErrors"; export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactory { - public async aggregateCIAppPipelineEvents( - body: CIAppPipelinesAggregateRequest, - _options?: Configuration - ): Promise { + + public async aggregateCIAppPipelineEvents(body: CIAppPipelinesAggregateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "aggregateCIAppPipelineEvents"); + throw new RequiredError('body', 'aggregateCIAppPipelineEvents'); } // Path Params - const localVarPath = "/api/v2/ci/pipelines/analytics/aggregate"; + const localVarPath = '/api/v2/ci/pipelines/analytics/aggregate'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityPipelinesApi.aggregateCIAppPipelineEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CIVisibilityPipelinesApi.aggregateCIAppPipelineEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CIAppPipelinesAggregateRequest", ""), @@ -61,40 +54,30 @@ export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactor requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createCIAppPipelineEvent( - body: CIAppCreatePipelineEventRequest, - _options?: Configuration - ): Promise { + public async createCIAppPipelineEvent(body: CIAppCreatePipelineEventRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCIAppPipelineEvent"); + throw new RequiredError('body', 'createCIAppPipelineEvent'); } // Path Params - const localVarPath = "/api/v2/ci/pipeline"; + const localVarPath = '/api/v2/ci/pipeline'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityPipelinesApi.createCIAppPipelineEvent") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CIVisibilityPipelinesApi.createCIAppPipelineEvent').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CIAppCreatePipelineEventRequest", ""), @@ -108,101 +91,57 @@ export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactor return requestContext; } - public async listCIAppPipelineEvents( - filterQuery?: string, - filterFrom?: Date, - filterTo?: Date, - sort?: CIAppSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listCIAppPipelineEvents(filterQuery?: string,filterFrom?: Date,filterTo?: Date,sort?: CIAppSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/ci/pipelines/events"; + const localVarPath = '/api/v2/ci/pipelines/events'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityPipelinesApi.listCIAppPipelineEvents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CIVisibilityPipelinesApi.listCIAppPipelineEvents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "CIAppSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "CIAppSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchCIAppPipelineEvents( - body?: CIAppPipelineEventsRequest, - _options?: Configuration - ): Promise { + public async searchCIAppPipelineEvents(body?: CIAppPipelineEventsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/ci/pipelines/events/search"; + const localVarPath = '/api/v2/ci/pipelines/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityPipelinesApi.searchCIAppPipelineEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CIVisibilityPipelinesApi.searchCIAppPipelineEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CIAppPipelineEventsRequest", ""), @@ -211,17 +150,14 @@ export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactor requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CIVisibilityPipelinesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -229,29 +165,17 @@ export class CIVisibilityPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to aggregateCIAppPipelineEvents * @throws ApiException if the response code was not in [200, 299] */ - public async aggregateCIAppPipelineEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async aggregateCIAppPipelineEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CIAppPipelinesAnalyticsAggregateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppPipelinesAnalyticsAggregateResponse" - ) as CIAppPipelinesAnalyticsAggregateResponse; + const body: CIAppPipelinesAnalyticsAggregateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CIAppPipelinesAnalyticsAggregateResponse" + ) as CIAppPipelinesAnalyticsAggregateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -260,30 +184,22 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CIAppPipelinesAnalyticsAggregateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppPipelinesAnalyticsAggregateResponse", - "" - ) as CIAppPipelinesAnalyticsAggregateResponse; + const body: CIAppPipelinesAnalyticsAggregateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CIAppPipelinesAnalyticsAggregateResponse", "" + ) as CIAppPipelinesAnalyticsAggregateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -293,12 +209,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to createCIAppPipelineEvent * @throws ApiException if the response code was not in [200, 299] */ - public async createCIAppPipelineEvent( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCIAppPipelineEvent(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -306,20 +218,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 408 || - response.httpStatusCode === 413 || - response.httpStatusCode === 429 || - response.httpStatusCode === 500 || - response.httpStatusCode === 503 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 408||response.httpStatusCode === 413||response.httpStatusCode === 429||response.httpStatusCode === 500||response.httpStatusCode === 503) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: HTTPCIAppErrors; try { body = ObjectSerializer.deserialize( @@ -328,11 +228,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as HTTPCIAppErrors; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -340,17 +237,13 @@ export class CIVisibilityPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -360,12 +253,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to listCIAppPipelineEvents * @throws ApiException if the response code was not in [200, 299] */ - public async listCIAppPipelineEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCIAppPipelineEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CIAppPipelineEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -373,15 +262,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as CIAppPipelineEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -390,11 +272,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -402,17 +281,13 @@ export class CIVisibilityPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CIAppPipelineEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppPipelineEventsResponse", - "" + "CIAppPipelineEventsResponse", "" ) as CIAppPipelineEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -422,12 +297,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { * @params response Response returned by the server for a request to searchCIAppPipelineEvents * @throws ApiException if the response code was not in [200, 299] */ - public async searchCIAppPipelineEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchCIAppPipelineEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CIAppPipelineEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -435,15 +306,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as CIAppPipelineEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -452,11 +316,8 @@ export class CIVisibilityPipelinesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -464,17 +325,13 @@ export class CIVisibilityPipelinesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CIAppPipelineEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppPipelineEventsResponse", - "" + "CIAppPipelineEventsResponse", "" ) as CIAppPipelineEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -482,14 +339,14 @@ export interface CIVisibilityPipelinesApiAggregateCIAppPipelineEventsRequest { /** * @type CIAppPipelinesAggregateRequest */ - body: CIAppPipelinesAggregateRequest; + body: CIAppPipelinesAggregateRequest } export interface CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest { /** * @type CIAppCreatePipelineEventRequest */ - body: CIAppCreatePipelineEventRequest; + body: CIAppCreatePipelineEventRequest } export interface CIVisibilityPipelinesApiListCIAppPipelineEventsRequest { @@ -497,39 +354,39 @@ export interface CIVisibilityPipelinesApiListCIAppPipelineEventsRequest { * Search query following log syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Minimum timestamp for requested events. * @type Date */ - filterFrom?: Date; + filterFrom?: Date /** * Maximum timestamp for requested events. * @type Date */ - filterTo?: Date; + filterTo?: Date /** * Order of events in results. * @type CIAppSort */ - sort?: CIAppSort; + sort?: CIAppSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of events in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest { /** * @type CIAppPipelineEventsRequest */ - body?: CIAppPipelineEventsRequest; + body?: CIAppPipelineEventsRequest } export class CIVisibilityPipelinesApi { @@ -537,61 +394,36 @@ export class CIVisibilityPipelinesApi { private responseProcessor: CIVisibilityPipelinesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CIVisibilityPipelinesApiRequestFactory, - responseProcessor?: CIVisibilityPipelinesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CIVisibilityPipelinesApiRequestFactory, responseProcessor?: CIVisibilityPipelinesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new CIVisibilityPipelinesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CIVisibilityPipelinesApiResponseProcessor(); + this.requestFactory = requestFactory || new CIVisibilityPipelinesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CIVisibilityPipelinesApiResponseProcessor(); } /** * Use this API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries. * @param param The request object */ - public aggregateCIAppPipelineEvents( - param: CIVisibilityPipelinesApiAggregateCIAppPipelineEventsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.aggregateCIAppPipelineEvents(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.aggregateCIAppPipelineEvents( - responseContext - ); + public aggregateCIAppPipelineEvents(param: CIVisibilityPipelinesApiAggregateCIAppPipelineEventsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.aggregateCIAppPipelineEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.aggregateCIAppPipelineEvents(responseContext); }); }); } /** * Send your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see [Pipeline Data Model And Execution Types](https://docs.datadoghq.com/continuous_integration/guides/pipeline_data_model/). - * + * * Pipeline events can be submitted with a timestamp that is up to 18 hours in the past. * @param param The request object */ - public createCIAppPipelineEvent( - param: CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createCIAppPipelineEvent( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCIAppPipelineEvent( - responseContext - ); + public createCIAppPipelineEvent(param: CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCIAppPipelineEvent(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCIAppPipelineEvent(responseContext); }); }); } @@ -599,30 +431,15 @@ export class CIVisibilityPipelinesApi { /** * List endpoint returns CI Visibility pipeline events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). - * + * * Use this endpoint to see your latest pipeline events. * @param param The request object */ - public listCIAppPipelineEvents( - param: CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listCIAppPipelineEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCIAppPipelineEvents( - responseContext - ); + public listCIAppPipelineEvents(param: CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCIAppPipelineEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCIAppPipelineEvents(responseContext); }); }); } @@ -630,32 +447,18 @@ export class CIVisibilityPipelinesApi { /** * Provide a paginated version of listCIAppPipelineEvents returning a generator with all the items. */ - public async *listCIAppPipelineEventsWithPagination( - param: CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listCIAppPipelineEventsWithPagination(param: CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listCIAppPipelineEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listCIAppPipelineEvents( - responseContext - ); + const requestContext = await this.requestFactory.listCIAppPipelineEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listCIAppPipelineEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -687,25 +490,15 @@ export class CIVisibilityPipelinesApi { /** * List endpoint returns CI Visibility pipeline events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). - * + * * Use this endpoint to build complex events filtering and search. * @param param The request object */ - public searchCIAppPipelineEvents( - param: CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchCIAppPipelineEvents( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchCIAppPipelineEvents( - responseContext - ); + public searchCIAppPipelineEvents(param: CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchCIAppPipelineEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchCIAppPipelineEvents(responseContext); }); }); } @@ -713,10 +506,8 @@ export class CIVisibilityPipelinesApi { /** * Provide a paginated version of searchCIAppPipelineEvents returning a generator with all the items. */ - public async *searchCIAppPipelineEventsWithPagination( - param: CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *searchCIAppPipelineEventsWithPagination(param: CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.body === undefined) { param.body = new CIAppPipelineEventsRequest(); @@ -729,18 +520,10 @@ export class CIVisibilityPipelinesApi { } param.body.page.limit = pageSize; while (true) { - const requestContext = - await this.requestFactory.searchCIAppPipelineEvents( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchCIAppPipelineEvents( - responseContext - ); + const requestContext = await this.requestFactory.searchCIAppPipelineEvents(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchCIAppPipelineEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -768,4 +551,4 @@ export class CIVisibilityPipelinesApi { param.body.page.cursor = cursorMetaPageAfter; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts b/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts index 125a4fb3b251..c454e7584d6d 100644 --- a/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts +++ b/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CIAppQueryPageOptions } from "../models/CIAppQueryPageOptions"; import { CIAppSort } from "../models/CIAppSort"; @@ -26,31 +24,26 @@ import { CIAppTestsAggregateRequest } from "../models/CIAppTestsAggregateRequest import { CIAppTestsAnalyticsAggregateResponse } from "../models/CIAppTestsAnalyticsAggregateResponse"; export class CIVisibilityTestsApiRequestFactory extends BaseAPIRequestFactory { - public async aggregateCIAppTestEvents( - body: CIAppTestsAggregateRequest, - _options?: Configuration - ): Promise { + + public async aggregateCIAppTestEvents(body: CIAppTestsAggregateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "aggregateCIAppTestEvents"); + throw new RequiredError('body', 'aggregateCIAppTestEvents'); } // Path Params - const localVarPath = "/api/v2/ci/tests/analytics/aggregate"; + const localVarPath = '/api/v2/ci/tests/analytics/aggregate'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityTestsApi.aggregateCIAppTestEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CIVisibilityTestsApi.aggregateCIAppTestEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CIAppTestsAggregateRequest", ""), @@ -59,110 +52,62 @@ export class CIVisibilityTestsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCIAppTestEvents( - filterQuery?: string, - filterFrom?: Date, - filterTo?: Date, - sort?: CIAppSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listCIAppTestEvents(filterQuery?: string,filterFrom?: Date,filterTo?: Date,sort?: CIAppSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/ci/tests/events"; + const localVarPath = '/api/v2/ci/tests/events'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityTestsApi.listCIAppTestEvents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CIVisibilityTestsApi.listCIAppTestEvents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "CIAppSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "CIAppSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchCIAppTestEvents( - body?: CIAppTestEventsRequest, - _options?: Configuration - ): Promise { + public async searchCIAppTestEvents(body?: CIAppTestEventsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/ci/tests/events/search"; + const localVarPath = '/api/v2/ci/tests/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.CIVisibilityTestsApi.searchCIAppTestEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CIVisibilityTestsApi.searchCIAppTestEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CIAppTestEventsRequest", ""), @@ -171,17 +116,14 @@ export class CIVisibilityTestsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CIVisibilityTestsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -189,29 +131,17 @@ export class CIVisibilityTestsApiResponseProcessor { * @params response Response returned by the server for a request to aggregateCIAppTestEvents * @throws ApiException if the response code was not in [200, 299] */ - public async aggregateCIAppTestEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async aggregateCIAppTestEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CIAppTestsAnalyticsAggregateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppTestsAnalyticsAggregateResponse" - ) as CIAppTestsAnalyticsAggregateResponse; + const body: CIAppTestsAnalyticsAggregateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CIAppTestsAnalyticsAggregateResponse" + ) as CIAppTestsAnalyticsAggregateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -220,30 +150,22 @@ export class CIVisibilityTestsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CIAppTestsAnalyticsAggregateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppTestsAnalyticsAggregateResponse", - "" - ) as CIAppTestsAnalyticsAggregateResponse; + const body: CIAppTestsAnalyticsAggregateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CIAppTestsAnalyticsAggregateResponse", "" + ) as CIAppTestsAnalyticsAggregateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -253,12 +175,8 @@ export class CIVisibilityTestsApiResponseProcessor { * @params response Response returned by the server for a request to listCIAppTestEvents * @throws ApiException if the response code was not in [200, 299] */ - public async listCIAppTestEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCIAppTestEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CIAppTestEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -266,15 +184,8 @@ export class CIVisibilityTestsApiResponseProcessor { ) as CIAppTestEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -283,11 +194,8 @@ export class CIVisibilityTestsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -295,17 +203,13 @@ export class CIVisibilityTestsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CIAppTestEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppTestEventsResponse", - "" + "CIAppTestEventsResponse", "" ) as CIAppTestEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -315,12 +219,8 @@ export class CIVisibilityTestsApiResponseProcessor { * @params response Response returned by the server for a request to searchCIAppTestEvents * @throws ApiException if the response code was not in [200, 299] */ - public async searchCIAppTestEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchCIAppTestEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CIAppTestEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -328,15 +228,8 @@ export class CIVisibilityTestsApiResponseProcessor { ) as CIAppTestEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -345,11 +238,8 @@ export class CIVisibilityTestsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -357,17 +247,13 @@ export class CIVisibilityTestsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CIAppTestEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CIAppTestEventsResponse", - "" + "CIAppTestEventsResponse", "" ) as CIAppTestEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -375,7 +261,7 @@ export interface CIVisibilityTestsApiAggregateCIAppTestEventsRequest { /** * @type CIAppTestsAggregateRequest */ - body: CIAppTestsAggregateRequest; + body: CIAppTestsAggregateRequest } export interface CIVisibilityTestsApiListCIAppTestEventsRequest { @@ -383,39 +269,39 @@ export interface CIVisibilityTestsApiListCIAppTestEventsRequest { * Search query following log syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Minimum timestamp for requested events. * @type Date */ - filterFrom?: Date; + filterFrom?: Date /** * Maximum timestamp for requested events. * @type Date */ - filterTo?: Date; + filterTo?: Date /** * Order of events in results. * @type CIAppSort */ - sort?: CIAppSort; + sort?: CIAppSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of events in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface CIVisibilityTestsApiSearchCIAppTestEventsRequest { /** * @type CIAppTestEventsRequest */ - body?: CIAppTestEventsRequest; + body?: CIAppTestEventsRequest } export class CIVisibilityTestsApi { @@ -423,37 +309,21 @@ export class CIVisibilityTestsApi { private responseProcessor: CIVisibilityTestsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CIVisibilityTestsApiRequestFactory, - responseProcessor?: CIVisibilityTestsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CIVisibilityTestsApiRequestFactory, responseProcessor?: CIVisibilityTestsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new CIVisibilityTestsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CIVisibilityTestsApiResponseProcessor(); + this.requestFactory = requestFactory || new CIVisibilityTestsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CIVisibilityTestsApiResponseProcessor(); } /** * The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries. * @param param The request object */ - public aggregateCIAppTestEvents( - param: CIVisibilityTestsApiAggregateCIAppTestEventsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.aggregateCIAppTestEvents( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.aggregateCIAppTestEvents( - responseContext - ); + public aggregateCIAppTestEvents(param: CIVisibilityTestsApiAggregateCIAppTestEventsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.aggregateCIAppTestEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.aggregateCIAppTestEvents(responseContext); }); }); } @@ -461,28 +331,15 @@ export class CIVisibilityTestsApi { /** * List endpoint returns CI Visibility test events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). - * + * * Use this endpoint to see your latest test events. * @param param The request object */ - public listCIAppTestEvents( - param: CIVisibilityTestsApiListCIAppTestEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listCIAppTestEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCIAppTestEvents(responseContext); + public listCIAppTestEvents(param: CIVisibilityTestsApiListCIAppTestEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCIAppTestEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCIAppTestEvents(responseContext); }); }); } @@ -490,32 +347,18 @@ export class CIVisibilityTestsApi { /** * Provide a paginated version of listCIAppTestEvents returning a generator with all the items. */ - public async *listCIAppTestEventsWithPagination( - param: CIVisibilityTestsApiListCIAppTestEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listCIAppTestEventsWithPagination(param: CIVisibilityTestsApiListCIAppTestEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listCIAppTestEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listCIAppTestEvents( - responseContext - ); + const requestContext = await this.requestFactory.listCIAppTestEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listCIAppTestEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -547,23 +390,15 @@ export class CIVisibilityTestsApi { /** * List endpoint returns CI Visibility test events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). - * + * * Use this endpoint to build complex events filtering and search. * @param param The request object */ - public searchCIAppTestEvents( - param: CIVisibilityTestsApiSearchCIAppTestEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchCIAppTestEvents( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchCIAppTestEvents(responseContext); + public searchCIAppTestEvents(param: CIVisibilityTestsApiSearchCIAppTestEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchCIAppTestEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchCIAppTestEvents(responseContext); }); }); } @@ -571,10 +406,8 @@ export class CIVisibilityTestsApi { /** * Provide a paginated version of searchCIAppTestEvents returning a generator with all the items. */ - public async *searchCIAppTestEventsWithPagination( - param: CIVisibilityTestsApiSearchCIAppTestEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *searchCIAppTestEventsWithPagination(param: CIVisibilityTestsApiSearchCIAppTestEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.body === undefined) { param.body = new CIAppTestEventsRequest(); @@ -587,17 +420,10 @@ export class CIVisibilityTestsApi { } param.body.page.limit = pageSize; while (true) { - const requestContext = await this.requestFactory.searchCIAppTestEvents( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchCIAppTestEvents( - responseContext - ); + const requestContext = await this.requestFactory.searchCIAppTestEvents(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchCIAppTestEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -625,4 +451,4 @@ export class CIVisibilityTestsApi { param.body.page.cursor = cursorMetaPageAfter; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CSMAgentsApi.ts b/packages/datadog-api-client-v2/apis/CSMAgentsApi.ts index e87c7fb3318d..c35ff13a2883 100644 --- a/packages/datadog-api-client-v2/apis/CSMAgentsApi.ts +++ b/packages/datadog-api-client-v2/apis/CSMAgentsApi.ts @@ -1,141 +1,90 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CsmAgentsResponse } from "../models/CsmAgentsResponse"; import { OrderDirection } from "../models/OrderDirection"; export class CSMAgentsApiRequestFactory extends BaseAPIRequestFactory { - public async listAllCSMAgents( - page?: number, - size?: number, - query?: string, - orderDirection?: OrderDirection, - _options?: Configuration - ): Promise { + + public async listAllCSMAgents(page?: number,size?: number,query?: string,orderDirection?: OrderDirection,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/csm/onboarding/agents"; + const localVarPath = '/api/v2/csm/onboarding/agents'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMAgentsApi.listAllCSMAgents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMAgentsApi.listAllCSMAgents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int32"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int32"), ""); } if (size !== undefined) { - requestContext.setQueryParam( - "size", - ObjectSerializer.serialize(size, "number", "int32"), - "" - ); + requestContext.setQueryParam("size", ObjectSerializer.serialize(size, "number", "int32"), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (orderDirection !== undefined) { - requestContext.setQueryParam( - "order_direction", - ObjectSerializer.serialize(orderDirection, "OrderDirection", ""), - "" - ); + requestContext.setQueryParam("order_direction", ObjectSerializer.serialize(orderDirection, "OrderDirection", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAllCSMServerlessAgents( - page?: number, - size?: number, - query?: string, - orderDirection?: OrderDirection, - _options?: Configuration - ): Promise { + public async listAllCSMServerlessAgents(page?: number,size?: number,query?: string,orderDirection?: OrderDirection,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/csm/onboarding/serverless/agents"; + const localVarPath = '/api/v2/csm/onboarding/serverless/agents'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMAgentsApi.listAllCSMServerlessAgents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMAgentsApi.listAllCSMServerlessAgents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (page !== undefined) { - requestContext.setQueryParam( - "page", - ObjectSerializer.serialize(page, "number", "int32"), - "" - ); + requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int32"), ""); } if (size !== undefined) { - requestContext.setQueryParam( - "size", - ObjectSerializer.serialize(size, "number", "int32"), - "" - ); + requestContext.setQueryParam("size", ObjectSerializer.serialize(size, "number", "int32"), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (orderDirection !== undefined) { - requestContext.setQueryParam( - "order_direction", - ObjectSerializer.serialize(orderDirection, "OrderDirection", ""), - "" - ); + requestContext.setQueryParam("order_direction", ObjectSerializer.serialize(orderDirection, "OrderDirection", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CSMAgentsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -143,12 +92,8 @@ export class CSMAgentsApiResponseProcessor { * @params response Response returned by the server for a request to listAllCSMAgents * @throws ApiException if the response code was not in [200, 299] */ - public async listAllCSMAgents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAllCSMAgents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CsmAgentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -156,11 +101,8 @@ export class CSMAgentsApiResponseProcessor { ) as CsmAgentsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -169,11 +111,8 @@ export class CSMAgentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -181,17 +120,13 @@ export class CSMAgentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CsmAgentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CsmAgentsResponse", - "" + "CsmAgentsResponse", "" ) as CsmAgentsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -201,12 +136,8 @@ export class CSMAgentsApiResponseProcessor { * @params response Response returned by the server for a request to listAllCSMServerlessAgents * @throws ApiException if the response code was not in [200, 299] */ - public async listAllCSMServerlessAgents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAllCSMServerlessAgents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CsmAgentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -214,11 +145,8 @@ export class CSMAgentsApiResponseProcessor { ) as CsmAgentsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -227,11 +155,8 @@ export class CSMAgentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -239,17 +164,13 @@ export class CSMAgentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CsmAgentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CsmAgentsResponse", - "" + "CsmAgentsResponse", "" ) as CsmAgentsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -258,22 +179,22 @@ export interface CSMAgentsApiListAllCSMAgentsRequest { * The page index for pagination (zero-based). * @type number */ - page?: number; + page?: number /** * The number of items to include in a single page. * @type number */ - size?: number; + size?: number /** * A search query string to filter results (for example, `hostname:COMP-T2H4J27423`). * @type string */ - query?: string; + query?: string /** * The sort direction for results. Use `asc` for ascending or `desc` for descending. * @type OrderDirection */ - orderDirection?: OrderDirection; + orderDirection?: OrderDirection } export interface CSMAgentsApiListAllCSMServerlessAgentsRequest { @@ -281,22 +202,22 @@ export interface CSMAgentsApiListAllCSMServerlessAgentsRequest { * The page index for pagination (zero-based). * @type number */ - page?: number; + page?: number /** * The number of items to include in a single page. * @type number */ - size?: number; + size?: number /** * A search query string to filter results (for example, `hostname:COMP-T2H4J27423`). * @type string */ - query?: string; + query?: string /** * The sort direction for results. Use `asc` for ascending or `desc` for descending. * @type OrderDirection */ - orderDirection?: OrderDirection; + orderDirection?: OrderDirection } export class CSMAgentsApi { @@ -304,38 +225,21 @@ export class CSMAgentsApi { private responseProcessor: CSMAgentsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CSMAgentsApiRequestFactory, - responseProcessor?: CSMAgentsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CSMAgentsApiRequestFactory, responseProcessor?: CSMAgentsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new CSMAgentsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CSMAgentsApiResponseProcessor(); + this.requestFactory = requestFactory || new CSMAgentsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CSMAgentsApiResponseProcessor(); } /** * Get the list of all CSM Agents running on your hosts and containers. * @param param The request object */ - public listAllCSMAgents( - param: CSMAgentsApiListAllCSMAgentsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAllCSMAgents( - param.page, - param.size, - param.query, - param.orderDirection, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAllCSMAgents(responseContext); + public listAllCSMAgents(param: CSMAgentsApiListAllCSMAgentsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAllCSMAgents(param.page,param.size,param.query,param.orderDirection,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAllCSMAgents(responseContext); }); }); } @@ -344,26 +248,12 @@ export class CSMAgentsApi { * Get the list of all CSM Serverless Agents running on your hosts and containers. * @param param The request object */ - public listAllCSMServerlessAgents( - param: CSMAgentsApiListAllCSMServerlessAgentsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listAllCSMServerlessAgents( - param.page, - param.size, - param.query, - param.orderDirection, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAllCSMServerlessAgents( - responseContext - ); + public listAllCSMServerlessAgents(param: CSMAgentsApiListAllCSMServerlessAgentsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAllCSMServerlessAgents(param.page,param.size,param.query,param.orderDirection,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAllCSMServerlessAgents(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.ts b/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.ts index 8514e2876f3d..a164fb007e66 100644 --- a/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.ts +++ b/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.ts @@ -1,104 +1,80 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CsmCloudAccountsCoverageAnalysisResponse } from "../models/CsmCloudAccountsCoverageAnalysisResponse"; import { CsmHostsAndContainersCoverageAnalysisResponse } from "../models/CsmHostsAndContainersCoverageAnalysisResponse"; import { CsmServerlessCoverageAnalysisResponse } from "../models/CsmServerlessCoverageAnalysisResponse"; export class CSMCoverageAnalysisApiRequestFactory extends BaseAPIRequestFactory { - public async getCSMCloudAccountsCoverageAnalysis( - _options?: Configuration - ): Promise { + + public async getCSMCloudAccountsCoverageAnalysis(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/csm/onboarding/coverage_analysis/cloud_accounts"; + const localVarPath = '/api/v2/csm/onboarding/coverage_analysis/cloud_accounts'; // Make Request Context - const requestContext = _config - .getServer( - "v2.CSMCoverageAnalysisApi.getCSMCloudAccountsCoverageAnalysis" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMCoverageAnalysisApi.getCSMCloudAccountsCoverageAnalysis').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCSMHostsAndContainersCoverageAnalysis( - _options?: Configuration - ): Promise { + public async getCSMHostsAndContainersCoverageAnalysis(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers"; + const localVarPath = '/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers'; // Make Request Context - const requestContext = _config - .getServer( - "v2.CSMCoverageAnalysisApi.getCSMHostsAndContainersCoverageAnalysis" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMCoverageAnalysisApi.getCSMHostsAndContainersCoverageAnalysis').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCSMServerlessCoverageAnalysis( - _options?: Configuration - ): Promise { + public async getCSMServerlessCoverageAnalysis(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/csm/onboarding/coverage_analysis/serverless"; + const localVarPath = '/api/v2/csm/onboarding/coverage_analysis/serverless'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMCoverageAnalysisApi.getCSMServerlessCoverageAnalysis") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMCoverageAnalysisApi.getCSMServerlessCoverageAnalysis').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CSMCoverageAnalysisApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -106,25 +82,17 @@ export class CSMCoverageAnalysisApiResponseProcessor { * @params response Response returned by the server for a request to getCSMCloudAccountsCoverageAnalysis * @throws ApiException if the response code was not in [200, 299] */ - public async getCSMCloudAccountsCoverageAnalysis( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCSMCloudAccountsCoverageAnalysis(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CsmCloudAccountsCoverageAnalysisResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CsmCloudAccountsCoverageAnalysisResponse" - ) as CsmCloudAccountsCoverageAnalysisResponse; + const body: CsmCloudAccountsCoverageAnalysisResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CsmCloudAccountsCoverageAnalysisResponse" + ) as CsmCloudAccountsCoverageAnalysisResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -133,30 +101,22 @@ export class CSMCoverageAnalysisApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CsmCloudAccountsCoverageAnalysisResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CsmCloudAccountsCoverageAnalysisResponse", - "" - ) as CsmCloudAccountsCoverageAnalysisResponse; + const body: CsmCloudAccountsCoverageAnalysisResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CsmCloudAccountsCoverageAnalysisResponse", "" + ) as CsmCloudAccountsCoverageAnalysisResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -166,25 +126,17 @@ export class CSMCoverageAnalysisApiResponseProcessor { * @params response Response returned by the server for a request to getCSMHostsAndContainersCoverageAnalysis * @throws ApiException if the response code was not in [200, 299] */ - public async getCSMHostsAndContainersCoverageAnalysis( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCSMHostsAndContainersCoverageAnalysis(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CsmHostsAndContainersCoverageAnalysisResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CsmHostsAndContainersCoverageAnalysisResponse" - ) as CsmHostsAndContainersCoverageAnalysisResponse; + const body: CsmHostsAndContainersCoverageAnalysisResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CsmHostsAndContainersCoverageAnalysisResponse" + ) as CsmHostsAndContainersCoverageAnalysisResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -193,30 +145,22 @@ export class CSMCoverageAnalysisApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CsmHostsAndContainersCoverageAnalysisResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CsmHostsAndContainersCoverageAnalysisResponse", - "" - ) as CsmHostsAndContainersCoverageAnalysisResponse; + const body: CsmHostsAndContainersCoverageAnalysisResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CsmHostsAndContainersCoverageAnalysisResponse", "" + ) as CsmHostsAndContainersCoverageAnalysisResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -226,25 +170,17 @@ export class CSMCoverageAnalysisApiResponseProcessor { * @params response Response returned by the server for a request to getCSMServerlessCoverageAnalysis * @throws ApiException if the response code was not in [200, 299] */ - public async getCSMServerlessCoverageAnalysis( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCSMServerlessCoverageAnalysis(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CsmServerlessCoverageAnalysisResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CsmServerlessCoverageAnalysisResponse" - ) as CsmServerlessCoverageAnalysisResponse; + const body: CsmServerlessCoverageAnalysisResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CsmServerlessCoverageAnalysisResponse" + ) as CsmServerlessCoverageAnalysisResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -253,30 +189,22 @@ export class CSMCoverageAnalysisApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CsmServerlessCoverageAnalysisResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CsmServerlessCoverageAnalysisResponse", - "" - ) as CsmServerlessCoverageAnalysisResponse; + const body: CsmServerlessCoverageAnalysisResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CsmServerlessCoverageAnalysisResponse", "" + ) as CsmServerlessCoverageAnalysisResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -285,16 +213,10 @@ export class CSMCoverageAnalysisApi { private responseProcessor: CSMCoverageAnalysisApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CSMCoverageAnalysisApiRequestFactory, - responseProcessor?: CSMCoverageAnalysisApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CSMCoverageAnalysisApiRequestFactory, responseProcessor?: CSMCoverageAnalysisApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new CSMCoverageAnalysisApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CSMCoverageAnalysisApiResponseProcessor(); + this.requestFactory = requestFactory || new CSMCoverageAnalysisApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CSMCoverageAnalysisApiResponseProcessor(); } /** @@ -303,18 +225,11 @@ export class CSMCoverageAnalysisApi { * scanned for security issues. * @param param The request object */ - public getCSMCloudAccountsCoverageAnalysis( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getCSMCloudAccountsCoverageAnalysis(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCSMCloudAccountsCoverageAnalysis( - responseContext - ); + public getCSMCloudAccountsCoverageAnalysis( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCSMCloudAccountsCoverageAnalysis(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCSMCloudAccountsCoverageAnalysis(responseContext); }); }); } @@ -325,18 +240,11 @@ export class CSMCoverageAnalysisApi { * and Containers with CSM feature(s) enabled. * @param param The request object */ - public getCSMHostsAndContainersCoverageAnalysis( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getCSMHostsAndContainersCoverageAnalysis(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCSMHostsAndContainersCoverageAnalysis( - responseContext - ); + public getCSMHostsAndContainersCoverageAnalysis( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCSMHostsAndContainersCoverageAnalysis(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCSMHostsAndContainersCoverageAnalysis(responseContext); }); }); } @@ -347,19 +255,12 @@ export class CSMCoverageAnalysisApi { * Resources with CSM feature(s) enabled. * @param param The request object */ - public getCSMServerlessCoverageAnalysis( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getCSMServerlessCoverageAnalysis(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCSMServerlessCoverageAnalysis( - responseContext - ); + public getCSMServerlessCoverageAnalysis( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCSMServerlessCoverageAnalysis(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCSMServerlessCoverageAnalysis(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CSMThreatsApi.ts b/packages/datadog-api-client-v2/apis/CSMThreatsApi.ts index 8995d1ae3518..e8f65402c437 100644 --- a/packages/datadog-api-client-v2/apis/CSMThreatsApi.ts +++ b/packages/datadog-api-client-v2/apis/CSMThreatsApi.ts @@ -1,22 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, - HttpFile, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CloudWorkloadSecurityAgentRuleCreateRequest } from "../models/CloudWorkloadSecurityAgentRuleCreateRequest"; import { CloudWorkloadSecurityAgentRuleResponse } from "../models/CloudWorkloadSecurityAgentRuleResponse"; @@ -24,457 +21,310 @@ import { CloudWorkloadSecurityAgentRulesListResponse } from "../models/CloudWork import { CloudWorkloadSecurityAgentRuleUpdateRequest } from "../models/CloudWorkloadSecurityAgentRuleUpdateRequest"; export class CSMThreatsApiRequestFactory extends BaseAPIRequestFactory { - public async createCloudWorkloadSecurityAgentRule( - body: CloudWorkloadSecurityAgentRuleCreateRequest, - _options?: Configuration - ): Promise { + + public async createCloudWorkloadSecurityAgentRule(body: CloudWorkloadSecurityAgentRuleCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCloudWorkloadSecurityAgentRule"); + throw new RequiredError('body', 'createCloudWorkloadSecurityAgentRule'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/cloud_workload_security/agent_rules"; + const localVarPath = '/api/v2/security_monitoring/cloud_workload_security/agent_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.createCloudWorkloadSecurityAgentRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CSMThreatsApi.createCloudWorkloadSecurityAgentRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "CloudWorkloadSecurityAgentRuleCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createCSMThreatsAgentRule( - body: CloudWorkloadSecurityAgentRuleCreateRequest, - _options?: Configuration - ): Promise { + public async createCSMThreatsAgentRule(body: CloudWorkloadSecurityAgentRuleCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCSMThreatsAgentRule"); + throw new RequiredError('body', 'createCSMThreatsAgentRule'); } // Path Params - const localVarPath = "/api/v2/remote_config/products/cws/agent_rules"; + const localVarPath = '/api/v2/remote_config/products/cws/agent_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.createCSMThreatsAgentRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CSMThreatsApi.createCSMThreatsAgentRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "CloudWorkloadSecurityAgentRuleCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCloudWorkloadSecurityAgentRule( - agentRuleId: string, - _options?: Configuration - ): Promise { + public async deleteCloudWorkloadSecurityAgentRule(agentRuleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'agentRuleId' is not null or undefined if (agentRuleId === null || agentRuleId === undefined) { - throw new RequiredError( - "agentRuleId", - "deleteCloudWorkloadSecurityAgentRule" - ); + throw new RequiredError('agentRuleId', 'deleteCloudWorkloadSecurityAgentRule'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}".replace( - "{agent_rule_id}", - encodeURIComponent(String(agentRuleId)) - ); + const localVarPath = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}' + .replace('{agent_rule_id}', encodeURIComponent(String(agentRuleId))); // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.deleteCloudWorkloadSecurityAgentRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CSMThreatsApi.deleteCloudWorkloadSecurityAgentRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCSMThreatsAgentRule( - agentRuleId: string, - _options?: Configuration - ): Promise { + public async deleteCSMThreatsAgentRule(agentRuleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'agentRuleId' is not null or undefined if (agentRuleId === null || agentRuleId === undefined) { - throw new RequiredError("agentRuleId", "deleteCSMThreatsAgentRule"); + throw new RequiredError('agentRuleId', 'deleteCSMThreatsAgentRule'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}".replace( - "{agent_rule_id}", - encodeURIComponent(String(agentRuleId)) - ); + const localVarPath = '/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}' + .replace('{agent_rule_id}', encodeURIComponent(String(agentRuleId))); // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.deleteCSMThreatsAgentRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CSMThreatsApi.deleteCSMThreatsAgentRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async downloadCloudWorkloadPolicyFile( - _options?: Configuration - ): Promise { + public async downloadCloudWorkloadPolicyFile(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/security/cloud_workload/policy/download"; + const localVarPath = '/api/v2/security/cloud_workload/policy/download'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.downloadCloudWorkloadPolicyFile") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/yaml, application/json" - ); + const requestContext = _config.getServer('v2.CSMThreatsApi.downloadCloudWorkloadPolicyFile').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/yaml, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async downloadCSMThreatsPolicy( - _options?: Configuration - ): Promise { + public async downloadCSMThreatsPolicy(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/remote_config/products/cws/policy/download"; + const localVarPath = '/api/v2/remote_config/products/cws/policy/download'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.downloadCSMThreatsPolicy") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/zip, application/json" - ); + const requestContext = _config.getServer('v2.CSMThreatsApi.downloadCSMThreatsPolicy').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/zip, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCloudWorkloadSecurityAgentRule( - agentRuleId: string, - _options?: Configuration - ): Promise { + public async getCloudWorkloadSecurityAgentRule(agentRuleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'agentRuleId' is not null or undefined if (agentRuleId === null || agentRuleId === undefined) { - throw new RequiredError( - "agentRuleId", - "getCloudWorkloadSecurityAgentRule" - ); + throw new RequiredError('agentRuleId', 'getCloudWorkloadSecurityAgentRule'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}".replace( - "{agent_rule_id}", - encodeURIComponent(String(agentRuleId)) - ); + const localVarPath = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}' + .replace('{agent_rule_id}', encodeURIComponent(String(agentRuleId))); // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.getCloudWorkloadSecurityAgentRule") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMThreatsApi.getCloudWorkloadSecurityAgentRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCSMThreatsAgentRule( - agentRuleId: string, - _options?: Configuration - ): Promise { + public async getCSMThreatsAgentRule(agentRuleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'agentRuleId' is not null or undefined if (agentRuleId === null || agentRuleId === undefined) { - throw new RequiredError("agentRuleId", "getCSMThreatsAgentRule"); + throw new RequiredError('agentRuleId', 'getCSMThreatsAgentRule'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}".replace( - "{agent_rule_id}", - encodeURIComponent(String(agentRuleId)) - ); + const localVarPath = '/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}' + .replace('{agent_rule_id}', encodeURIComponent(String(agentRuleId))); // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.getCSMThreatsAgentRule") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMThreatsApi.getCSMThreatsAgentRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCloudWorkloadSecurityAgentRules( - _options?: Configuration - ): Promise { + public async listCloudWorkloadSecurityAgentRules(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/security_monitoring/cloud_workload_security/agent_rules"; + const localVarPath = '/api/v2/security_monitoring/cloud_workload_security/agent_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.listCloudWorkloadSecurityAgentRules") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMThreatsApi.listCloudWorkloadSecurityAgentRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCSMThreatsAgentRules( - _options?: Configuration - ): Promise { + public async listCSMThreatsAgentRules(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/remote_config/products/cws/agent_rules"; + const localVarPath = '/api/v2/remote_config/products/cws/agent_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.listCSMThreatsAgentRules") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CSMThreatsApi.listCSMThreatsAgentRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateCloudWorkloadSecurityAgentRule( - agentRuleId: string, - body: CloudWorkloadSecurityAgentRuleUpdateRequest, - _options?: Configuration - ): Promise { + public async updateCloudWorkloadSecurityAgentRule(agentRuleId: string,body: CloudWorkloadSecurityAgentRuleUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'agentRuleId' is not null or undefined if (agentRuleId === null || agentRuleId === undefined) { - throw new RequiredError( - "agentRuleId", - "updateCloudWorkloadSecurityAgentRule" - ); + throw new RequiredError('agentRuleId', 'updateCloudWorkloadSecurityAgentRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateCloudWorkloadSecurityAgentRule"); + throw new RequiredError('body', 'updateCloudWorkloadSecurityAgentRule'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}".replace( - "{agent_rule_id}", - encodeURIComponent(String(agentRuleId)) - ); + const localVarPath = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}' + .replace('{agent_rule_id}', encodeURIComponent(String(agentRuleId))); // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.updateCloudWorkloadSecurityAgentRule") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.CSMThreatsApi.updateCloudWorkloadSecurityAgentRule').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "CloudWorkloadSecurityAgentRuleUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateCSMThreatsAgentRule( - agentRuleId: string, - body: CloudWorkloadSecurityAgentRuleUpdateRequest, - _options?: Configuration - ): Promise { + public async updateCSMThreatsAgentRule(agentRuleId: string,body: CloudWorkloadSecurityAgentRuleUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'agentRuleId' is not null or undefined if (agentRuleId === null || agentRuleId === undefined) { - throw new RequiredError("agentRuleId", "updateCSMThreatsAgentRule"); + throw new RequiredError('agentRuleId', 'updateCSMThreatsAgentRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateCSMThreatsAgentRule"); + throw new RequiredError('body', 'updateCSMThreatsAgentRule'); } // Path Params - const localVarPath = - "/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}".replace( - "{agent_rule_id}", - encodeURIComponent(String(agentRuleId)) - ); + const localVarPath = '/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}' + .replace('{agent_rule_id}', encodeURIComponent(String(agentRuleId))); // Make Request Context - const requestContext = _config - .getServer("v2.CSMThreatsApi.updateCSMThreatsAgentRule") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.CSMThreatsApi.updateCSMThreatsAgentRule').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "CloudWorkloadSecurityAgentRuleUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CSMThreatsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -482,30 +332,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to createCloudWorkloadSecurityAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async createCloudWorkloadSecurityAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCloudWorkloadSecurityAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -514,30 +351,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse", - "" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse", "" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -547,30 +376,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to createCSMThreatsAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async createCSMThreatsAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCSMThreatsAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -579,30 +395,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse", - "" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse", "" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -612,24 +420,13 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to deleteCloudWorkloadSecurityAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCloudWorkloadSecurityAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCloudWorkloadSecurityAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -638,11 +435,8 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -650,17 +444,13 @@ export class CSMThreatsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -670,24 +460,13 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to deleteCSMThreatsAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCSMThreatsAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCSMThreatsAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -696,11 +475,8 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -708,17 +484,13 @@ export class CSMThreatsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -728,21 +500,14 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to downloadCloudWorkloadPolicyFile * @throws ApiException if the response code was not in [200, 299] */ - public async downloadCloudWorkloadPolicyFile( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async downloadCloudWorkloadPolicyFile(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: HttpFile = (await response.getBodyAsFile()) as HttpFile; + const body: HttpFile = await response.getBodyAsFile() as HttpFile; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -751,26 +516,19 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: HttpFile = - (await response.getBodyAsFile()) as any as HttpFile; + const body: HttpFile = await response.getBodyAsFile() as any as HttpFile; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -780,21 +538,14 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to downloadCSMThreatsPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async downloadCSMThreatsPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async downloadCSMThreatsPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: HttpFile = (await response.getBodyAsFile()) as HttpFile; + const body: HttpFile = await response.getBodyAsFile() as HttpFile; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -803,26 +554,19 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: HttpFile = - (await response.getBodyAsFile()) as any as HttpFile; + const body: HttpFile = await response.getBodyAsFile() as any as HttpFile; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -832,29 +576,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to getCloudWorkloadSecurityAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async getCloudWorkloadSecurityAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCloudWorkloadSecurityAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -863,30 +595,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse", - "" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse", "" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -896,29 +620,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to getCSMThreatsAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async getCSMThreatsAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCSMThreatsAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -927,30 +639,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse", - "" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse", "" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -960,25 +664,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to listCloudWorkloadSecurityAgentRules * @throws ApiException if the response code was not in [200, 299] */ - public async listCloudWorkloadSecurityAgentRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCloudWorkloadSecurityAgentRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRulesListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRulesListResponse" - ) as CloudWorkloadSecurityAgentRulesListResponse; + const body: CloudWorkloadSecurityAgentRulesListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRulesListResponse" + ) as CloudWorkloadSecurityAgentRulesListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -987,30 +683,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRulesListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRulesListResponse", - "" - ) as CloudWorkloadSecurityAgentRulesListResponse; + const body: CloudWorkloadSecurityAgentRulesListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRulesListResponse", "" + ) as CloudWorkloadSecurityAgentRulesListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1020,25 +708,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to listCSMThreatsAgentRules * @throws ApiException if the response code was not in [200, 299] */ - public async listCSMThreatsAgentRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCSMThreatsAgentRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRulesListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRulesListResponse" - ) as CloudWorkloadSecurityAgentRulesListResponse; + const body: CloudWorkloadSecurityAgentRulesListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRulesListResponse" + ) as CloudWorkloadSecurityAgentRulesListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1047,30 +727,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRulesListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRulesListResponse", - "" - ) as CloudWorkloadSecurityAgentRulesListResponse; + const body: CloudWorkloadSecurityAgentRulesListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRulesListResponse", "" + ) as CloudWorkloadSecurityAgentRulesListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1080,31 +752,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to updateCloudWorkloadSecurityAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async updateCloudWorkloadSecurityAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateCloudWorkloadSecurityAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1113,30 +771,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse", - "" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse", "" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1146,31 +796,17 @@ export class CSMThreatsApiResponseProcessor { * @params response Response returned by the server for a request to updateCSMThreatsAgentRule * @throws ApiException if the response code was not in [200, 299] */ - public async updateCSMThreatsAgentRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateCSMThreatsAgentRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1179,30 +815,22 @@ export class CSMThreatsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CloudWorkloadSecurityAgentRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "CloudWorkloadSecurityAgentRuleResponse", - "" - ) as CloudWorkloadSecurityAgentRuleResponse; + const body: CloudWorkloadSecurityAgentRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CloudWorkloadSecurityAgentRuleResponse", "" + ) as CloudWorkloadSecurityAgentRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1211,7 +839,7 @@ export interface CSMThreatsApiCreateCloudWorkloadSecurityAgentRuleRequest { * The definition of the new Agent rule. * @type CloudWorkloadSecurityAgentRuleCreateRequest */ - body: CloudWorkloadSecurityAgentRuleCreateRequest; + body: CloudWorkloadSecurityAgentRuleCreateRequest } export interface CSMThreatsApiCreateCSMThreatsAgentRuleRequest { @@ -1219,7 +847,7 @@ export interface CSMThreatsApiCreateCSMThreatsAgentRuleRequest { * The definition of the new Agent rule. * @type CloudWorkloadSecurityAgentRuleCreateRequest */ - body: CloudWorkloadSecurityAgentRuleCreateRequest; + body: CloudWorkloadSecurityAgentRuleCreateRequest } export interface CSMThreatsApiDeleteCloudWorkloadSecurityAgentRuleRequest { @@ -1227,7 +855,7 @@ export interface CSMThreatsApiDeleteCloudWorkloadSecurityAgentRuleRequest { * The ID of the Agent rule. * @type string */ - agentRuleId: string; + agentRuleId: string } export interface CSMThreatsApiDeleteCSMThreatsAgentRuleRequest { @@ -1235,7 +863,7 @@ export interface CSMThreatsApiDeleteCSMThreatsAgentRuleRequest { * The ID of the Agent rule. * @type string */ - agentRuleId: string; + agentRuleId: string } export interface CSMThreatsApiGetCloudWorkloadSecurityAgentRuleRequest { @@ -1243,7 +871,7 @@ export interface CSMThreatsApiGetCloudWorkloadSecurityAgentRuleRequest { * The ID of the Agent rule. * @type string */ - agentRuleId: string; + agentRuleId: string } export interface CSMThreatsApiGetCSMThreatsAgentRuleRequest { @@ -1251,7 +879,7 @@ export interface CSMThreatsApiGetCSMThreatsAgentRuleRequest { * The ID of the Agent rule. * @type string */ - agentRuleId: string; + agentRuleId: string } export interface CSMThreatsApiUpdateCloudWorkloadSecurityAgentRuleRequest { @@ -1259,12 +887,12 @@ export interface CSMThreatsApiUpdateCloudWorkloadSecurityAgentRuleRequest { * The ID of the Agent rule. * @type string */ - agentRuleId: string; + agentRuleId: string /** * New definition of the Agent rule. * @type CloudWorkloadSecurityAgentRuleUpdateRequest */ - body: CloudWorkloadSecurityAgentRuleUpdateRequest; + body: CloudWorkloadSecurityAgentRuleUpdateRequest } export interface CSMThreatsApiUpdateCSMThreatsAgentRuleRequest { @@ -1272,12 +900,12 @@ export interface CSMThreatsApiUpdateCSMThreatsAgentRuleRequest { * The ID of the Agent rule. * @type string */ - agentRuleId: string; + agentRuleId: string /** * New definition of the Agent rule. * @type CloudWorkloadSecurityAgentRuleUpdateRequest */ - body: CloudWorkloadSecurityAgentRuleUpdateRequest; + body: CloudWorkloadSecurityAgentRuleUpdateRequest } export class CSMThreatsApi { @@ -1285,38 +913,21 @@ export class CSMThreatsApi { private responseProcessor: CSMThreatsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CSMThreatsApiRequestFactory, - responseProcessor?: CSMThreatsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CSMThreatsApiRequestFactory, responseProcessor?: CSMThreatsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new CSMThreatsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CSMThreatsApiResponseProcessor(); + this.requestFactory = requestFactory || new CSMThreatsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CSMThreatsApiResponseProcessor(); } /** * Create a new Agent rule with the given parameters. * @param param The request object */ - public createCloudWorkloadSecurityAgentRule( - param: CSMThreatsApiCreateCloudWorkloadSecurityAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createCloudWorkloadSecurityAgentRule( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCloudWorkloadSecurityAgentRule( - responseContext - ); + public createCloudWorkloadSecurityAgentRule(param: CSMThreatsApiCreateCloudWorkloadSecurityAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCloudWorkloadSecurityAgentRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCloudWorkloadSecurityAgentRule(responseContext); }); }); } @@ -1325,21 +936,11 @@ export class CSMThreatsApi { * Create a new Cloud Security Management Threats Agent rule with the given parameters. * @param param The request object */ - public createCSMThreatsAgentRule( - param: CSMThreatsApiCreateCSMThreatsAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createCSMThreatsAgentRule( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCSMThreatsAgentRule( - responseContext - ); + public createCSMThreatsAgentRule(param: CSMThreatsApiCreateCSMThreatsAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCSMThreatsAgentRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCSMThreatsAgentRule(responseContext); }); }); } @@ -1348,22 +949,11 @@ export class CSMThreatsApi { * Delete a specific Agent rule. * @param param The request object */ - public deleteCloudWorkloadSecurityAgentRule( - param: CSMThreatsApiDeleteCloudWorkloadSecurityAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteCloudWorkloadSecurityAgentRule( - param.agentRuleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCloudWorkloadSecurityAgentRule( - responseContext - ); + public deleteCloudWorkloadSecurityAgentRule(param: CSMThreatsApiDeleteCloudWorkloadSecurityAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCloudWorkloadSecurityAgentRule(param.agentRuleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCloudWorkloadSecurityAgentRule(responseContext); }); }); } @@ -1372,21 +962,11 @@ export class CSMThreatsApi { * Delete a specific Cloud Security Management Threats Agent rule. * @param param The request object */ - public deleteCSMThreatsAgentRule( - param: CSMThreatsApiDeleteCSMThreatsAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteCSMThreatsAgentRule( - param.agentRuleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCSMThreatsAgentRule( - responseContext - ); + public deleteCSMThreatsAgentRule(param: CSMThreatsApiDeleteCSMThreatsAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCSMThreatsAgentRule(param.agentRuleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCSMThreatsAgentRule(responseContext); }); }); } @@ -1397,18 +977,11 @@ export class CSMThreatsApi { * your Agents to update the policy running in your environment. * @param param The request object */ - public downloadCloudWorkloadPolicyFile( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.downloadCloudWorkloadPolicyFile(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.downloadCloudWorkloadPolicyFile( - responseContext - ); + public downloadCloudWorkloadPolicyFile( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.downloadCloudWorkloadPolicyFile(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.downloadCloudWorkloadPolicyFile(responseContext); }); }); } @@ -1419,16 +992,11 @@ export class CSMThreatsApi { * your Agents to update the policy running in your environment. * @param param The request object */ - public downloadCSMThreatsPolicy(options?: Configuration): Promise { - const requestContextPromise = - this.requestFactory.downloadCSMThreatsPolicy(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.downloadCSMThreatsPolicy( - responseContext - ); + public downloadCSMThreatsPolicy( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.downloadCSMThreatsPolicy(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.downloadCSMThreatsPolicy(responseContext); }); }); } @@ -1437,22 +1005,11 @@ export class CSMThreatsApi { * Get the details of a specific Agent rule. * @param param The request object */ - public getCloudWorkloadSecurityAgentRule( - param: CSMThreatsApiGetCloudWorkloadSecurityAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getCloudWorkloadSecurityAgentRule( - param.agentRuleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCloudWorkloadSecurityAgentRule( - responseContext - ); + public getCloudWorkloadSecurityAgentRule(param: CSMThreatsApiGetCloudWorkloadSecurityAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCloudWorkloadSecurityAgentRule(param.agentRuleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCloudWorkloadSecurityAgentRule(responseContext); }); }); } @@ -1461,19 +1018,11 @@ export class CSMThreatsApi { * Get the details of a specific Cloud Security Management Threats Agent rule. * @param param The request object */ - public getCSMThreatsAgentRule( - param: CSMThreatsApiGetCSMThreatsAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getCSMThreatsAgentRule( - param.agentRuleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCSMThreatsAgentRule(responseContext); + public getCSMThreatsAgentRule(param: CSMThreatsApiGetCSMThreatsAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCSMThreatsAgentRule(param.agentRuleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCSMThreatsAgentRule(responseContext); }); }); } @@ -1482,18 +1031,11 @@ export class CSMThreatsApi { * Get the list of Agent rules. * @param param The request object */ - public listCloudWorkloadSecurityAgentRules( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCloudWorkloadSecurityAgentRules(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCloudWorkloadSecurityAgentRules( - responseContext - ); + public listCloudWorkloadSecurityAgentRules( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCloudWorkloadSecurityAgentRules(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCloudWorkloadSecurityAgentRules(responseContext); }); }); } @@ -1502,18 +1044,11 @@ export class CSMThreatsApi { * Get the list of Cloud Security Management Threats Agent rules. * @param param The request object */ - public listCSMThreatsAgentRules( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCSMThreatsAgentRules(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCSMThreatsAgentRules( - responseContext - ); + public listCSMThreatsAgentRules( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCSMThreatsAgentRules(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCSMThreatsAgentRules(responseContext); }); }); } @@ -1523,23 +1058,11 @@ export class CSMThreatsApi { * Returns the Agent rule object when the request is successful. * @param param The request object */ - public updateCloudWorkloadSecurityAgentRule( - param: CSMThreatsApiUpdateCloudWorkloadSecurityAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateCloudWorkloadSecurityAgentRule( - param.agentRuleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateCloudWorkloadSecurityAgentRule( - responseContext - ); + public updateCloudWorkloadSecurityAgentRule(param: CSMThreatsApiUpdateCloudWorkloadSecurityAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateCloudWorkloadSecurityAgentRule(param.agentRuleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateCloudWorkloadSecurityAgentRule(responseContext); }); }); } @@ -1549,23 +1072,12 @@ export class CSMThreatsApi { * Returns the Agent rule object when the request is successful. * @param param The request object */ - public updateCSMThreatsAgentRule( - param: CSMThreatsApiUpdateCSMThreatsAgentRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateCSMThreatsAgentRule( - param.agentRuleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateCSMThreatsAgentRule( - responseContext - ); + public updateCSMThreatsAgentRule(param: CSMThreatsApiUpdateCSMThreatsAgentRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateCSMThreatsAgentRule(param.agentRuleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateCSMThreatsAgentRule(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CaseManagementApi.ts b/packages/datadog-api-client-v2/apis/CaseManagementApi.ts index 873ec70b6425..a0fa3bb5f2f5 100644 --- a/packages/datadog-api-client-v2/apis/CaseManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/CaseManagementApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { Case } from "../models/Case"; import { CaseAssignRequest } from "../models/CaseAssignRequest"; @@ -31,40 +29,32 @@ import { ProjectResponse } from "../models/ProjectResponse"; import { ProjectsResponse } from "../models/ProjectsResponse"; export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { - public async archiveCase( - caseId: string, - body: CaseEmptyRequest, - _options?: Configuration - ): Promise { + + public async archiveCase(caseId: string,body: CaseEmptyRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "archiveCase"); + throw new RequiredError('caseId', 'archiveCase'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "archiveCase"); + throw new RequiredError('body', 'archiveCase'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}/archive".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}/archive' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.archiveCase") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.archiveCase').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseEmptyRequest", ""), @@ -73,49 +63,36 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async assignCase( - caseId: string, - body: CaseAssignRequest, - _options?: Configuration - ): Promise { + public async assignCase(caseId: string,body: CaseAssignRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "assignCase"); + throw new RequiredError('caseId', 'assignCase'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "assignCase"); + throw new RequiredError('body', 'assignCase'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}/assign".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}/assign' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.assignCase") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.assignCase').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseAssignRequest", ""), @@ -124,40 +101,30 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createCase( - body: CaseCreateRequest, - _options?: Configuration - ): Promise { + public async createCase(body: CaseCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCase"); + throw new RequiredError('body', 'createCase'); } // Path Params - const localVarPath = "/api/v2/cases"; + const localVarPath = '/api/v2/cases'; // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.createCase") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.createCase').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseCreateRequest", ""), @@ -166,40 +133,30 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createProject( - body: ProjectCreateRequest, - _options?: Configuration - ): Promise { + public async createProject(body: ProjectCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createProject"); + throw new RequiredError('body', 'createProject'); } // Path Params - const localVarPath = "/api/v2/cases/projects"; + const localVarPath = '/api/v2/cases/projects'; // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.createProject") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.createProject').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ProjectCreateRequest", ""), @@ -208,113 +165,76 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteProject( - projectId: string, - _options?: Configuration - ): Promise { + public async deleteProject(projectId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { - throw new RequiredError("projectId", "deleteProject"); + throw new RequiredError('projectId', 'deleteProject'); } // Path Params - const localVarPath = "/api/v2/cases/projects/{project_id}".replace( - "{project_id}", - encodeURIComponent(String(projectId)) - ); + const localVarPath = '/api/v2/cases/projects/{project_id}' + .replace('{project_id}', encodeURIComponent(String(projectId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.deleteProject") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CaseManagementApi.deleteProject').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCase( - caseId: string, - _options?: Configuration - ): Promise { + public async getCase(caseId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "getCase"); + throw new RequiredError('caseId', 'getCase'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.getCase") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CaseManagementApi.getCase').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getProject( - projectId: string, - _options?: Configuration - ): Promise { + public async getProject(projectId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { - throw new RequiredError("projectId", "getProject"); + throw new RequiredError('projectId', 'getProject'); } // Path Params - const localVarPath = "/api/v2/cases/projects/{project_id}".replace( - "{project_id}", - encodeURIComponent(String(projectId)) - ); + const localVarPath = '/api/v2/cases/projects/{project_id}' + .replace('{project_id}', encodeURIComponent(String(projectId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.getProject") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CaseManagementApi.getProject').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } @@ -323,126 +243,78 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/cases/projects"; + const localVarPath = '/api/v2/cases/projects'; // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.getProjects") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CaseManagementApi.getProjects').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchCases( - pageSize?: number, - pageNumber?: number, - sortField?: CaseSortableField, - filter?: string, - sortAsc?: boolean, - _options?: Configuration - ): Promise { + public async searchCases(pageSize?: number,pageNumber?: number,sortField?: CaseSortableField,filter?: string,sortAsc?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/cases"; + const localVarPath = '/api/v2/cases'; // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.searchCases") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CaseManagementApi.searchCases').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sortField !== undefined) { - requestContext.setQueryParam( - "sort[field]", - ObjectSerializer.serialize(sortField, "CaseSortableField", ""), - "" - ); + requestContext.setQueryParam("sort[field]", ObjectSerializer.serialize(sortField, "CaseSortableField", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (sortAsc !== undefined) { - requestContext.setQueryParam( - "sort[asc]", - ObjectSerializer.serialize(sortAsc, "boolean", ""), - "" - ); + requestContext.setQueryParam("sort[asc]", ObjectSerializer.serialize(sortAsc, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async unarchiveCase( - caseId: string, - body: CaseEmptyRequest, - _options?: Configuration - ): Promise { + public async unarchiveCase(caseId: string,body: CaseEmptyRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "unarchiveCase"); + throw new RequiredError('caseId', 'unarchiveCase'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "unarchiveCase"); + throw new RequiredError('body', 'unarchiveCase'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}/unarchive".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}/unarchive' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.unarchiveCase") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.unarchiveCase').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseEmptyRequest", ""), @@ -451,49 +323,36 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async unassignCase( - caseId: string, - body: CaseEmptyRequest, - _options?: Configuration - ): Promise { + public async unassignCase(caseId: string,body: CaseEmptyRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "unassignCase"); + throw new RequiredError('caseId', 'unassignCase'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "unassignCase"); + throw new RequiredError('body', 'unassignCase'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}/unassign".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}/unassign' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.unassignCase") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.unassignCase').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseEmptyRequest", ""), @@ -502,49 +361,36 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updatePriority( - caseId: string, - body: CaseUpdatePriorityRequest, - _options?: Configuration - ): Promise { + public async updatePriority(caseId: string,body: CaseUpdatePriorityRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "updatePriority"); + throw new RequiredError('caseId', 'updatePriority'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updatePriority"); + throw new RequiredError('body', 'updatePriority'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}/priority".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}/priority' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.updatePriority") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.updatePriority').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseUpdatePriorityRequest", ""), @@ -553,49 +399,36 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateStatus( - caseId: string, - body: CaseUpdateStatusRequest, - _options?: Configuration - ): Promise { + public async updateStatus(caseId: string,body: CaseUpdateStatusRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { - throw new RequiredError("caseId", "updateStatus"); + throw new RequiredError('caseId', 'updateStatus'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateStatus"); + throw new RequiredError('body', 'updateStatus'); } // Path Params - const localVarPath = "/api/v2/cases/{case_id}/status".replace( - "{case_id}", - encodeURIComponent(String(caseId)) - ); + const localVarPath = '/api/v2/cases/{case_id}/status' + .replace('{case_id}', encodeURIComponent(String(caseId))); // Make Request Context - const requestContext = _config - .getServer("v2.CaseManagementApi.updateStatus") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CaseManagementApi.updateStatus').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CaseUpdateStatusRequest", ""), @@ -604,17 +437,14 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CaseManagementApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -622,10 +452,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to archiveCase * @throws ApiException if the response code was not in [200, 299] */ - public async archiveCase(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async archiveCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -633,17 +461,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -652,11 +471,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -664,17 +480,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -684,10 +496,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to assignCase * @throws ApiException if the response code was not in [200, 299] */ - public async assignCase(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async assignCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -695,17 +505,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -714,11 +515,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -726,17 +524,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -746,10 +540,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to createCase * @throws ApiException if the response code was not in [200, 299] */ - public async createCase(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -757,17 +549,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -776,11 +559,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -788,17 +568,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -808,12 +584,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to createProject * @throws ApiException if the response code was not in [200, 299] */ - public async createProject( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createProject(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: ProjectResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -821,17 +593,8 @@ export class CaseManagementApiResponseProcessor { ) as ProjectResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -840,11 +603,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -852,17 +612,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ProjectResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectResponse", - "" + "ProjectResponse", "" ) as ProjectResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -872,22 +628,13 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteProject * @throws ApiException if the response code was not in [200, 299] */ - public async deleteProject(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteProject(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -896,11 +643,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -908,17 +652,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -928,10 +668,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to getCase * @throws ApiException if the response code was not in [200, 299] */ - public async getCase(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -939,17 +677,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -958,11 +687,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -970,17 +696,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -990,10 +712,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to getProject * @throws ApiException if the response code was not in [200, 299] */ - public async getProject(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getProject(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ProjectResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1001,17 +721,8 @@ export class CaseManagementApiResponseProcessor { ) as ProjectResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1020,11 +731,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1032,17 +740,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ProjectResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectResponse", - "" + "ProjectResponse", "" ) as ProjectResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1052,12 +756,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to getProjects * @throws ApiException if the response code was not in [200, 299] */ - public async getProjects( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getProjects(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ProjectsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1065,17 +765,8 @@ export class CaseManagementApiResponseProcessor { ) as ProjectsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1084,11 +775,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1096,17 +784,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ProjectsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectsResponse", - "" + "ProjectsResponse", "" ) as ProjectsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1116,10 +800,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to searchCases * @throws ApiException if the response code was not in [200, 299] */ - public async searchCases(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchCases(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CasesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1127,17 +809,8 @@ export class CaseManagementApiResponseProcessor { ) as CasesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1146,11 +819,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1158,17 +828,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CasesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CasesResponse", - "" + "CasesResponse", "" ) as CasesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1178,10 +844,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to unarchiveCase * @throws ApiException if the response code was not in [200, 299] */ - public async unarchiveCase(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async unarchiveCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1189,17 +853,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1208,11 +863,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1220,17 +872,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1240,10 +888,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to unassignCase * @throws ApiException if the response code was not in [200, 299] */ - public async unassignCase(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async unassignCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1251,17 +897,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1270,11 +907,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1282,17 +916,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1302,12 +932,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to updatePriority * @throws ApiException if the response code was not in [200, 299] */ - public async updatePriority( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updatePriority(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1315,17 +941,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1334,11 +951,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1346,17 +960,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1366,10 +976,8 @@ export class CaseManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateStatus * @throws ApiException if the response code was not in [200, 299] */ - public async updateStatus(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateStatus(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1377,17 +985,8 @@ export class CaseManagementApiResponseProcessor { ) as CaseResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1396,11 +995,8 @@ export class CaseManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1408,17 +1004,13 @@ export class CaseManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", - "" + "CaseResponse", "" ) as CaseResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1427,12 +1019,12 @@ export interface CaseManagementApiArchiveCaseRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string /** * Archive case payload * @type CaseEmptyRequest */ - body: CaseEmptyRequest; + body: CaseEmptyRequest } export interface CaseManagementApiAssignCaseRequest { @@ -1440,12 +1032,12 @@ export interface CaseManagementApiAssignCaseRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string /** * Assign case payload * @type CaseAssignRequest */ - body: CaseAssignRequest; + body: CaseAssignRequest } export interface CaseManagementApiCreateCaseRequest { @@ -1453,7 +1045,7 @@ export interface CaseManagementApiCreateCaseRequest { * Case payload * @type CaseCreateRequest */ - body: CaseCreateRequest; + body: CaseCreateRequest } export interface CaseManagementApiCreateProjectRequest { @@ -1461,7 +1053,7 @@ export interface CaseManagementApiCreateProjectRequest { * Project payload * @type ProjectCreateRequest */ - body: ProjectCreateRequest; + body: ProjectCreateRequest } export interface CaseManagementApiDeleteProjectRequest { @@ -1469,7 +1061,7 @@ export interface CaseManagementApiDeleteProjectRequest { * Project UUID * @type string */ - projectId: string; + projectId: string } export interface CaseManagementApiGetCaseRequest { @@ -1477,7 +1069,7 @@ export interface CaseManagementApiGetCaseRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string } export interface CaseManagementApiGetProjectRequest { @@ -1485,7 +1077,7 @@ export interface CaseManagementApiGetProjectRequest { * Project UUID * @type string */ - projectId: string; + projectId: string } export interface CaseManagementApiSearchCasesRequest { @@ -1493,27 +1085,27 @@ export interface CaseManagementApiSearchCasesRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Specify which field to sort * @type CaseSortableField */ - sortField?: CaseSortableField; + sortField?: CaseSortableField /** * Search query * @type string */ - filter?: string; + filter?: string /** * Specify if order is ascending or not * @type boolean */ - sortAsc?: boolean; + sortAsc?: boolean } export interface CaseManagementApiUnarchiveCaseRequest { @@ -1521,12 +1113,12 @@ export interface CaseManagementApiUnarchiveCaseRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string /** * Unarchive case payload * @type CaseEmptyRequest */ - body: CaseEmptyRequest; + body: CaseEmptyRequest } export interface CaseManagementApiUnassignCaseRequest { @@ -1534,12 +1126,12 @@ export interface CaseManagementApiUnassignCaseRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string /** * Unassign case payload * @type CaseEmptyRequest */ - body: CaseEmptyRequest; + body: CaseEmptyRequest } export interface CaseManagementApiUpdatePriorityRequest { @@ -1547,12 +1139,12 @@ export interface CaseManagementApiUpdatePriorityRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string /** * Case priority update payload * @type CaseUpdatePriorityRequest */ - body: CaseUpdatePriorityRequest; + body: CaseUpdatePriorityRequest } export interface CaseManagementApiUpdateStatusRequest { @@ -1560,12 +1152,12 @@ export interface CaseManagementApiUpdateStatusRequest { * Case's UUID or key * @type string */ - caseId: string; + caseId: string /** * Case status update payload * @type CaseUpdateStatusRequest */ - body: CaseUpdateStatusRequest; + body: CaseUpdateStatusRequest } export class CaseManagementApi { @@ -1573,36 +1165,21 @@ export class CaseManagementApi { private responseProcessor: CaseManagementApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CaseManagementApiRequestFactory, - responseProcessor?: CaseManagementApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CaseManagementApiRequestFactory, responseProcessor?: CaseManagementApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new CaseManagementApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CaseManagementApiResponseProcessor(); + this.requestFactory = requestFactory || new CaseManagementApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CaseManagementApiResponseProcessor(); } /** * Archive case * @param param The request object */ - public archiveCase( - param: CaseManagementApiArchiveCaseRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.archiveCase( - param.caseId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.archiveCase(responseContext); + public archiveCase(param: CaseManagementApiArchiveCaseRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.archiveCase(param.caseId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.archiveCase(responseContext); }); }); } @@ -1611,20 +1188,11 @@ export class CaseManagementApi { * Assign case to a user * @param param The request object */ - public assignCase( - param: CaseManagementApiAssignCaseRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.assignCase( - param.caseId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.assignCase(responseContext); + public assignCase(param: CaseManagementApiAssignCaseRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.assignCase(param.caseId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.assignCase(responseContext); }); }); } @@ -1633,19 +1201,11 @@ export class CaseManagementApi { * Create a Case * @param param The request object */ - public createCase( - param: CaseManagementApiCreateCaseRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createCase( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCase(responseContext); + public createCase(param: CaseManagementApiCreateCaseRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCase(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCase(responseContext); }); }); } @@ -1654,19 +1214,11 @@ export class CaseManagementApi { * Create a project. * @param param The request object */ - public createProject( - param: CaseManagementApiCreateProjectRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createProject( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createProject(responseContext); + public createProject(param: CaseManagementApiCreateProjectRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createProject(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createProject(responseContext); }); }); } @@ -1675,19 +1227,11 @@ export class CaseManagementApi { * Remove a project using the project's `id`. * @param param The request object */ - public deleteProject( - param: CaseManagementApiDeleteProjectRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteProject( - param.projectId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteProject(responseContext); + public deleteProject(param: CaseManagementApiDeleteProjectRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteProject(param.projectId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteProject(responseContext); }); }); } @@ -1696,19 +1240,11 @@ export class CaseManagementApi { * Get the details of case by `case_id` * @param param The request object */ - public getCase( - param: CaseManagementApiGetCaseRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getCase( - param.caseId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCase(responseContext); + public getCase(param: CaseManagementApiGetCaseRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCase(param.caseId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCase(responseContext); }); }); } @@ -1717,19 +1253,11 @@ export class CaseManagementApi { * Get the details of a project by `project_id`. * @param param The request object */ - public getProject( - param: CaseManagementApiGetProjectRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getProject( - param.projectId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getProject(responseContext); + public getProject(param: CaseManagementApiGetProjectRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getProject(param.projectId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getProject(responseContext); }); }); } @@ -1738,13 +1266,11 @@ export class CaseManagementApi { * Get all projects. * @param param The request object */ - public getProjects(options?: Configuration): Promise { + public getProjects( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.getProjects(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getProjects(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getProjects(responseContext); }); }); } @@ -1753,23 +1279,11 @@ export class CaseManagementApi { * Search cases. * @param param The request object */ - public searchCases( - param: CaseManagementApiSearchCasesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchCases( - param.pageSize, - param.pageNumber, - param.sortField, - param.filter, - param.sortAsc, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchCases(responseContext); + public searchCases(param: CaseManagementApiSearchCasesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchCases(param.pageSize,param.pageNumber,param.sortField,param.filter,param.sortAsc,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchCases(responseContext); }); }); } @@ -1777,10 +1291,8 @@ export class CaseManagementApi { /** * Provide a paginated version of searchCases returning a generator with all the items. */ - public async *searchCasesWithPagination( - param: CaseManagementApiSearchCasesRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *searchCasesWithPagination(param: CaseManagementApiSearchCasesRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -1788,21 +1300,10 @@ export class CaseManagementApi { param.pageSize = pageSize; param.pageNumber = 0; while (true) { - const requestContext = await this.requestFactory.searchCases( - param.pageSize, - param.pageNumber, - param.sortField, - param.filter, - param.sortAsc, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchCases( - responseContext - ); + const requestContext = await this.requestFactory.searchCases(param.pageSize,param.pageNumber,param.sortField,param.filter,param.sortAsc,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchCases(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -1822,20 +1323,11 @@ export class CaseManagementApi { * Unarchive case * @param param The request object */ - public unarchiveCase( - param: CaseManagementApiUnarchiveCaseRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.unarchiveCase( - param.caseId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.unarchiveCase(responseContext); + public unarchiveCase(param: CaseManagementApiUnarchiveCaseRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.unarchiveCase(param.caseId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.unarchiveCase(responseContext); }); }); } @@ -1844,20 +1336,11 @@ export class CaseManagementApi { * Unassign case * @param param The request object */ - public unassignCase( - param: CaseManagementApiUnassignCaseRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.unassignCase( - param.caseId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.unassignCase(responseContext); + public unassignCase(param: CaseManagementApiUnassignCaseRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.unassignCase(param.caseId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.unassignCase(responseContext); }); }); } @@ -1866,20 +1349,11 @@ export class CaseManagementApi { * Update case priority * @param param The request object */ - public updatePriority( - param: CaseManagementApiUpdatePriorityRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updatePriority( - param.caseId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updatePriority(responseContext); + public updatePriority(param: CaseManagementApiUpdatePriorityRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updatePriority(param.caseId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updatePriority(responseContext); }); }); } @@ -1888,21 +1362,12 @@ export class CaseManagementApi { * Update case status * @param param The request object */ - public updateStatus( - param: CaseManagementApiUpdateStatusRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateStatus( - param.caseId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateStatus(responseContext); + public updateStatus(param: CaseManagementApiUpdateStatusRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateStatus(param.caseId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateStatus(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts b/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts index d1adda4a4f21..8ecf92ef1592 100644 --- a/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AwsCURConfigPatchRequest } from "../models/AwsCURConfigPatchRequest"; import { AwsCURConfigPostRequest } from "../models/AwsCURConfigPostRequest"; @@ -28,34 +26,30 @@ import { AzureUCConfigsResponse } from "../models/AzureUCConfigsResponse"; import { CustomCostsFileGetResponse } from "../models/CustomCostsFileGetResponse"; import { CustomCostsFileLineItem } from "../models/CustomCostsFileLineItem"; import { CustomCostsFileListResponse } from "../models/CustomCostsFileListResponse"; +import { CustomCostsFileUploadRequest } from "../models/CustomCostsFileUploadRequest"; import { CustomCostsFileUploadResponse } from "../models/CustomCostsFileUploadResponse"; export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory { - public async createCostAWSCURConfig( - body: AwsCURConfigPostRequest, - _options?: Configuration - ): Promise { + + public async createCostAWSCURConfig(body: AwsCURConfigPostRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCostAWSCURConfig"); + throw new RequiredError('body', 'createCostAWSCURConfig'); } // Path Params - const localVarPath = "/api/v2/cost/aws_cur_config"; + const localVarPath = '/api/v2/cost/aws_cur_config'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.createCostAWSCURConfig") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CloudCostManagementApi.createCostAWSCURConfig').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AwsCURConfigPostRequest", ""), @@ -64,40 +58,30 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createCostAzureUCConfigs( - body: AzureUCConfigPostRequest, - _options?: Configuration - ): Promise { + public async createCostAzureUCConfigs(body: AzureUCConfigPostRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCostAzureUCConfigs"); + throw new RequiredError('body', 'createCostAzureUCConfigs'); } // Path Params - const localVarPath = "/api/v2/cost/azure_uc_config"; + const localVarPath = '/api/v2/cost/azure_uc_config'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.createCostAzureUCConfigs") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CloudCostManagementApi.createCostAzureUCConfigs').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AzureUCConfigPostRequest", ""), @@ -106,263 +90,179 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCostAWSCURConfig( - cloudAccountId: string, - _options?: Configuration - ): Promise { + public async deleteCostAWSCURConfig(cloudAccountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'cloudAccountId' is not null or undefined if (cloudAccountId === null || cloudAccountId === undefined) { - throw new RequiredError("cloudAccountId", "deleteCostAWSCURConfig"); + throw new RequiredError('cloudAccountId', 'deleteCostAWSCURConfig'); } // Path Params - const localVarPath = - "/api/v2/cost/aws_cur_config/{cloud_account_id}".replace( - "{cloud_account_id}", - encodeURIComponent(String(cloudAccountId)) - ); + const localVarPath = '/api/v2/cost/aws_cur_config/{cloud_account_id}' + .replace('{cloud_account_id}', encodeURIComponent(String(cloudAccountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.deleteCostAWSCURConfig") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CloudCostManagementApi.deleteCostAWSCURConfig').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCostAzureUCConfig( - cloudAccountId: string, - _options?: Configuration - ): Promise { + public async deleteCostAzureUCConfig(cloudAccountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'cloudAccountId' is not null or undefined if (cloudAccountId === null || cloudAccountId === undefined) { - throw new RequiredError("cloudAccountId", "deleteCostAzureUCConfig"); + throw new RequiredError('cloudAccountId', 'deleteCostAzureUCConfig'); } // Path Params - const localVarPath = - "/api/v2/cost/azure_uc_config/{cloud_account_id}".replace( - "{cloud_account_id}", - encodeURIComponent(String(cloudAccountId)) - ); + const localVarPath = '/api/v2/cost/azure_uc_config/{cloud_account_id}' + .replace('{cloud_account_id}', encodeURIComponent(String(cloudAccountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.deleteCostAzureUCConfig") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CloudCostManagementApi.deleteCostAzureUCConfig').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCustomCostsFile( - fileId: string, - _options?: Configuration - ): Promise { + public async deleteCustomCostsFile(fileId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'fileId' is not null or undefined if (fileId === null || fileId === undefined) { - throw new RequiredError("fileId", "deleteCustomCostsFile"); + throw new RequiredError('fileId', 'deleteCustomCostsFile'); } // Path Params - const localVarPath = "/api/v2/cost/custom_costs/{file_id}".replace( - "{file_id}", - encodeURIComponent(String(fileId)) - ); + const localVarPath = '/api/v2/cost/custom_costs/{file_id}' + .replace('{file_id}', encodeURIComponent(String(fileId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.deleteCustomCostsFile") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CloudCostManagementApi.deleteCustomCostsFile').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCustomCostsFile( - fileId: string, - _options?: Configuration - ): Promise { + public async getCustomCostsFile(fileId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'fileId' is not null or undefined if (fileId === null || fileId === undefined) { - throw new RequiredError("fileId", "getCustomCostsFile"); + throw new RequiredError('fileId', 'getCustomCostsFile'); } // Path Params - const localVarPath = "/api/v2/cost/custom_costs/{file_id}".replace( - "{file_id}", - encodeURIComponent(String(fileId)) - ); + const localVarPath = '/api/v2/cost/custom_costs/{file_id}' + .replace('{file_id}', encodeURIComponent(String(fileId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.getCustomCostsFile") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CloudCostManagementApi.getCustomCostsFile').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCostAWSCURConfigs( - _options?: Configuration - ): Promise { + public async listCostAWSCURConfigs(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/cost/aws_cur_config"; + const localVarPath = '/api/v2/cost/aws_cur_config'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.listCostAWSCURConfigs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CloudCostManagementApi.listCostAWSCURConfigs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCostAzureUCConfigs( - _options?: Configuration - ): Promise { + public async listCostAzureUCConfigs(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/cost/azure_uc_config"; + const localVarPath = '/api/v2/cost/azure_uc_config'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.listCostAzureUCConfigs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CloudCostManagementApi.listCostAzureUCConfigs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCustomCostsFiles( - _options?: Configuration - ): Promise { + public async listCustomCostsFiles(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/cost/custom_costs"; + const localVarPath = '/api/v2/cost/custom_costs'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.listCustomCostsFiles") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CloudCostManagementApi.listCustomCostsFiles').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateCostAWSCURConfig( - cloudAccountId: string, - body: AwsCURConfigPatchRequest, - _options?: Configuration - ): Promise { + public async updateCostAWSCURConfig(cloudAccountId: string,body: AwsCURConfigPatchRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'cloudAccountId' is not null or undefined if (cloudAccountId === null || cloudAccountId === undefined) { - throw new RequiredError("cloudAccountId", "updateCostAWSCURConfig"); + throw new RequiredError('cloudAccountId', 'updateCostAWSCURConfig'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateCostAWSCURConfig"); + throw new RequiredError('body', 'updateCostAWSCURConfig'); } // Path Params - const localVarPath = - "/api/v2/cost/aws_cur_config/{cloud_account_id}".replace( - "{cloud_account_id}", - encodeURIComponent(String(cloudAccountId)) - ); + const localVarPath = '/api/v2/cost/aws_cur_config/{cloud_account_id}' + .replace('{cloud_account_id}', encodeURIComponent(String(cloudAccountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.updateCostAWSCURConfig") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.CloudCostManagementApi.updateCostAWSCURConfig').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AwsCURConfigPatchRequest", ""), @@ -371,50 +271,36 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateCostAzureUCConfigs( - cloudAccountId: string, - body: AzureUCConfigPatchRequest, - _options?: Configuration - ): Promise { + public async updateCostAzureUCConfigs(cloudAccountId: string,body: AzureUCConfigPatchRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'cloudAccountId' is not null or undefined if (cloudAccountId === null || cloudAccountId === undefined) { - throw new RequiredError("cloudAccountId", "updateCostAzureUCConfigs"); + throw new RequiredError('cloudAccountId', 'updateCostAzureUCConfigs'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateCostAzureUCConfigs"); + throw new RequiredError('body', 'updateCostAzureUCConfigs'); } // Path Params - const localVarPath = - "/api/v2/cost/azure_uc_config/{cloud_account_id}".replace( - "{cloud_account_id}", - encodeURIComponent(String(cloudAccountId)) - ); + const localVarPath = '/api/v2/cost/azure_uc_config/{cloud_account_id}' + .replace('{cloud_account_id}', encodeURIComponent(String(cloudAccountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.updateCostAzureUCConfigs") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.CloudCostManagementApi.updateCostAzureUCConfigs').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "AzureUCConfigPatchRequest", ""), @@ -423,40 +309,30 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async uploadCustomCostsFile( - body: Array, - _options?: Configuration - ): Promise { + public async uploadCustomCostsFile(body: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "uploadCustomCostsFile"); + throw new RequiredError('body', 'uploadCustomCostsFile'); } // Path Params - const localVarPath = "/api/v2/cost/custom_costs"; + const localVarPath = '/api/v2/cost/custom_costs'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudCostManagementApi.uploadCustomCostsFile") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.CloudCostManagementApi.uploadCustomCostsFile').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Array", ""), @@ -465,17 +341,14 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CloudCostManagementApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -483,12 +356,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to createCostAWSCURConfig * @throws ApiException if the response code was not in [200, 299] */ - public async createCostAWSCURConfig( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCostAWSCURConfig(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AwsCURConfigResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -496,15 +365,8 @@ export class CloudCostManagementApiResponseProcessor { ) as AwsCURConfigResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -513,11 +375,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -525,17 +384,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsCURConfigResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsCURConfigResponse", - "" + "AwsCURConfigResponse", "" ) as AwsCURConfigResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -545,12 +400,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to createCostAzureUCConfigs * @throws ApiException if the response code was not in [200, 299] */ - public async createCostAzureUCConfigs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCostAzureUCConfigs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AzureUCConfigPairsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -558,15 +409,8 @@ export class CloudCostManagementApiResponseProcessor { ) as AzureUCConfigPairsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -575,11 +419,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -587,17 +428,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AzureUCConfigPairsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AzureUCConfigPairsResponse", - "" + "AzureUCConfigPairsResponse", "" ) as AzureUCConfigPairsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -607,24 +444,13 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteCostAWSCURConfig * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCostAWSCURConfig( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCostAWSCURConfig(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -633,11 +459,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -645,17 +468,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -665,24 +484,13 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteCostAzureUCConfig * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCostAzureUCConfig( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCostAzureUCConfig(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -691,11 +499,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -703,17 +508,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -723,18 +524,13 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteCustomCostsFile * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCustomCostsFile(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCustomCostsFile(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -743,11 +539,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -755,17 +548,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -775,12 +564,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to getCustomCostsFile * @throws ApiException if the response code was not in [200, 299] */ - public async getCustomCostsFile( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCustomCostsFile(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CustomCostsFileGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -788,11 +573,8 @@ export class CloudCostManagementApiResponseProcessor { ) as CustomCostsFileGetResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -801,11 +583,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -813,17 +592,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomCostsFileGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomCostsFileGetResponse", - "" + "CustomCostsFileGetResponse", "" ) as CustomCostsFileGetResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -833,12 +608,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to listCostAWSCURConfigs * @throws ApiException if the response code was not in [200, 299] */ - public async listCostAWSCURConfigs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCostAWSCURConfigs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AwsCURConfigsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -846,11 +617,8 @@ export class CloudCostManagementApiResponseProcessor { ) as AwsCURConfigsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -859,11 +627,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -871,17 +636,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsCURConfigsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsCURConfigsResponse", - "" + "AwsCURConfigsResponse", "" ) as AwsCURConfigsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -891,12 +652,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to listCostAzureUCConfigs * @throws ApiException if the response code was not in [200, 299] */ - public async listCostAzureUCConfigs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCostAzureUCConfigs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AzureUCConfigsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -904,11 +661,8 @@ export class CloudCostManagementApiResponseProcessor { ) as AzureUCConfigsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -917,11 +671,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -929,17 +680,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AzureUCConfigsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AzureUCConfigsResponse", - "" + "AzureUCConfigsResponse", "" ) as AzureUCConfigsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -949,12 +696,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to listCustomCostsFiles * @throws ApiException if the response code was not in [200, 299] */ - public async listCustomCostsFiles( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCustomCostsFiles(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CustomCostsFileListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -962,11 +705,8 @@ export class CloudCostManagementApiResponseProcessor { ) as CustomCostsFileListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -975,11 +715,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -987,17 +724,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomCostsFileListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomCostsFileListResponse", - "" + "CustomCostsFileListResponse", "" ) as CustomCostsFileListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1007,12 +740,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateCostAWSCURConfig * @throws ApiException if the response code was not in [200, 299] */ - public async updateCostAWSCURConfig( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateCostAWSCURConfig(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AwsCURConfigsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1020,11 +749,8 @@ export class CloudCostManagementApiResponseProcessor { ) as AwsCURConfigsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1033,11 +759,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1045,17 +768,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AwsCURConfigsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AwsCURConfigsResponse", - "" + "AwsCURConfigsResponse", "" ) as AwsCURConfigsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1065,12 +784,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateCostAzureUCConfigs * @throws ApiException if the response code was not in [200, 299] */ - public async updateCostAzureUCConfigs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateCostAzureUCConfigs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: AzureUCConfigPairsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1078,15 +793,8 @@ export class CloudCostManagementApiResponseProcessor { ) as AzureUCConfigPairsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1095,11 +803,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1107,17 +812,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: AzureUCConfigPairsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "AzureUCConfigPairsResponse", - "" + "AzureUCConfigPairsResponse", "" ) as AzureUCConfigPairsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1127,12 +828,8 @@ export class CloudCostManagementApiResponseProcessor { * @params response Response returned by the server for a request to uploadCustomCostsFile * @throws ApiException if the response code was not in [200, 299] */ - public async uploadCustomCostsFile( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async uploadCustomCostsFile(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: CustomCostsFileUploadResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1140,11 +837,8 @@ export class CloudCostManagementApiResponseProcessor { ) as CustomCostsFileUploadResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1153,11 +847,8 @@ export class CloudCostManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1165,17 +856,13 @@ export class CloudCostManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomCostsFileUploadResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomCostsFileUploadResponse", - "" + "CustomCostsFileUploadResponse", "" ) as CustomCostsFileUploadResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1183,14 +870,14 @@ export interface CloudCostManagementApiCreateCostAWSCURConfigRequest { /** * @type AwsCURConfigPostRequest */ - body: AwsCURConfigPostRequest; + body: AwsCURConfigPostRequest } export interface CloudCostManagementApiCreateCostAzureUCConfigsRequest { /** * @type AzureUCConfigPostRequest */ - body: AzureUCConfigPostRequest; + body: AzureUCConfigPostRequest } export interface CloudCostManagementApiDeleteCostAWSCURConfigRequest { @@ -1198,7 +885,7 @@ export interface CloudCostManagementApiDeleteCostAWSCURConfigRequest { * Cloud Account id. * @type string */ - cloudAccountId: string; + cloudAccountId: string } export interface CloudCostManagementApiDeleteCostAzureUCConfigRequest { @@ -1206,7 +893,7 @@ export interface CloudCostManagementApiDeleteCostAzureUCConfigRequest { * Cloud Account id. * @type string */ - cloudAccountId: string; + cloudAccountId: string } export interface CloudCostManagementApiDeleteCustomCostsFileRequest { @@ -1214,7 +901,7 @@ export interface CloudCostManagementApiDeleteCustomCostsFileRequest { * File ID. * @type string */ - fileId: string; + fileId: string } export interface CloudCostManagementApiGetCustomCostsFileRequest { @@ -1222,7 +909,7 @@ export interface CloudCostManagementApiGetCustomCostsFileRequest { * File ID. * @type string */ - fileId: string; + fileId: string } export interface CloudCostManagementApiUpdateCostAWSCURConfigRequest { @@ -1230,11 +917,11 @@ export interface CloudCostManagementApiUpdateCostAWSCURConfigRequest { * Cloud Account id. * @type string */ - cloudAccountId: string; + cloudAccountId: string /** * @type AwsCURConfigPatchRequest */ - body: AwsCURConfigPatchRequest; + body: AwsCURConfigPatchRequest } export interface CloudCostManagementApiUpdateCostAzureUCConfigsRequest { @@ -1242,18 +929,18 @@ export interface CloudCostManagementApiUpdateCostAzureUCConfigsRequest { * Cloud Account id. * @type string */ - cloudAccountId: string; + cloudAccountId: string /** * @type AzureUCConfigPatchRequest */ - body: AzureUCConfigPatchRequest; + body: AzureUCConfigPatchRequest } export interface CloudCostManagementApiUploadCustomCostsFileRequest { /** * @type Array */ - body: Array; + body: Array } export class CloudCostManagementApi { @@ -1261,35 +948,21 @@ export class CloudCostManagementApi { private responseProcessor: CloudCostManagementApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CloudCostManagementApiRequestFactory, - responseProcessor?: CloudCostManagementApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CloudCostManagementApiRequestFactory, responseProcessor?: CloudCostManagementApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new CloudCostManagementApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CloudCostManagementApiResponseProcessor(); + this.requestFactory = requestFactory || new CloudCostManagementApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CloudCostManagementApiResponseProcessor(); } /** * Create a Cloud Cost Management account for an AWS CUR config. * @param param The request object */ - public createCostAWSCURConfig( - param: CloudCostManagementApiCreateCostAWSCURConfigRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createCostAWSCURConfig( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCostAWSCURConfig(responseContext); + public createCostAWSCURConfig(param: CloudCostManagementApiCreateCostAWSCURConfigRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCostAWSCURConfig(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCostAWSCURConfig(responseContext); }); }); } @@ -1298,21 +971,11 @@ export class CloudCostManagementApi { * Create a Cloud Cost Management account for an Azure config. * @param param The request object */ - public createCostAzureUCConfigs( - param: CloudCostManagementApiCreateCostAzureUCConfigsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createCostAzureUCConfigs( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCostAzureUCConfigs( - responseContext - ); + public createCostAzureUCConfigs(param: CloudCostManagementApiCreateCostAzureUCConfigsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCostAzureUCConfigs(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCostAzureUCConfigs(responseContext); }); }); } @@ -1321,19 +984,11 @@ export class CloudCostManagementApi { * Archive a Cloud Cost Management Account. * @param param The request object */ - public deleteCostAWSCURConfig( - param: CloudCostManagementApiDeleteCostAWSCURConfigRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteCostAWSCURConfig( - param.cloudAccountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCostAWSCURConfig(responseContext); + public deleteCostAWSCURConfig(param: CloudCostManagementApiDeleteCostAWSCURConfigRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCostAWSCURConfig(param.cloudAccountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCostAWSCURConfig(responseContext); }); }); } @@ -1342,21 +997,11 @@ export class CloudCostManagementApi { * Archive a Cloud Cost Management Account. * @param param The request object */ - public deleteCostAzureUCConfig( - param: CloudCostManagementApiDeleteCostAzureUCConfigRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteCostAzureUCConfig( - param.cloudAccountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCostAzureUCConfig( - responseContext - ); + public deleteCostAzureUCConfig(param: CloudCostManagementApiDeleteCostAzureUCConfigRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCostAzureUCConfig(param.cloudAccountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCostAzureUCConfig(responseContext); }); }); } @@ -1365,19 +1010,11 @@ export class CloudCostManagementApi { * Delete the specified Custom Costs file. * @param param The request object */ - public deleteCustomCostsFile( - param: CloudCostManagementApiDeleteCustomCostsFileRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteCustomCostsFile( - param.fileId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCustomCostsFile(responseContext); + public deleteCustomCostsFile(param: CloudCostManagementApiDeleteCustomCostsFileRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCustomCostsFile(param.fileId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCustomCostsFile(responseContext); }); }); } @@ -1386,19 +1023,11 @@ export class CloudCostManagementApi { * Fetch the specified Custom Costs file. * @param param The request object */ - public getCustomCostsFile( - param: CloudCostManagementApiGetCustomCostsFileRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getCustomCostsFile( - param.fileId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCustomCostsFile(responseContext); + public getCustomCostsFile(param: CloudCostManagementApiGetCustomCostsFileRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCustomCostsFile(param.fileId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCustomCostsFile(responseContext); }); }); } @@ -1407,16 +1036,11 @@ export class CloudCostManagementApi { * List the AWS CUR configs. * @param param The request object */ - public listCostAWSCURConfigs( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCostAWSCURConfigs(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCostAWSCURConfigs(responseContext); + public listCostAWSCURConfigs( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCostAWSCURConfigs(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCostAWSCURConfigs(responseContext); }); }); } @@ -1425,16 +1049,11 @@ export class CloudCostManagementApi { * List the Azure configs. * @param param The request object */ - public listCostAzureUCConfigs( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCostAzureUCConfigs(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCostAzureUCConfigs(responseContext); + public listCostAzureUCConfigs( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCostAzureUCConfigs(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCostAzureUCConfigs(responseContext); }); }); } @@ -1443,16 +1062,11 @@ export class CloudCostManagementApi { * List the Custom Costs files. * @param param The request object */ - public listCustomCostsFiles( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCustomCostsFiles(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCustomCostsFiles(responseContext); + public listCustomCostsFiles( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCustomCostsFiles(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCustomCostsFiles(responseContext); }); }); } @@ -1461,20 +1075,11 @@ export class CloudCostManagementApi { * Update the status (active/archived) and/or account filtering configuration of an AWS CUR config. * @param param The request object */ - public updateCostAWSCURConfig( - param: CloudCostManagementApiUpdateCostAWSCURConfigRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateCostAWSCURConfig( - param.cloudAccountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateCostAWSCURConfig(responseContext); + public updateCostAWSCURConfig(param: CloudCostManagementApiUpdateCostAWSCURConfigRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateCostAWSCURConfig(param.cloudAccountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateCostAWSCURConfig(responseContext); }); }); } @@ -1483,22 +1088,11 @@ export class CloudCostManagementApi { * Update the status of an Azure config (active/archived). * @param param The request object */ - public updateCostAzureUCConfigs( - param: CloudCostManagementApiUpdateCostAzureUCConfigsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateCostAzureUCConfigs( - param.cloudAccountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateCostAzureUCConfigs( - responseContext - ); + public updateCostAzureUCConfigs(param: CloudCostManagementApiUpdateCostAzureUCConfigsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateCostAzureUCConfigs(param.cloudAccountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateCostAzureUCConfigs(responseContext); }); }); } @@ -1507,20 +1101,12 @@ export class CloudCostManagementApi { * Upload a Custom Costs file. * @param param The request object */ - public uploadCustomCostsFile( - param: CloudCostManagementApiUploadCustomCostsFileRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.uploadCustomCostsFile( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.uploadCustomCostsFile(responseContext); + public uploadCustomCostsFile(param: CloudCostManagementApiUploadCustomCostsFileRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.uploadCustomCostsFile(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.uploadCustomCostsFile(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.ts b/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.ts index 258293efe25e..dcec645c0352 100644 --- a/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CloudflareAccountCreateRequest } from "../models/CloudflareAccountCreateRequest"; import { CloudflareAccountResponse } from "../models/CloudflareAccountResponse"; @@ -23,31 +21,26 @@ import { CloudflareAccountsResponse } from "../models/CloudflareAccountsResponse import { CloudflareAccountUpdateRequest } from "../models/CloudflareAccountUpdateRequest"; export class CloudflareIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createCloudflareAccount( - body: CloudflareAccountCreateRequest, - _options?: Configuration - ): Promise { + + public async createCloudflareAccount(body: CloudflareAccountCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCloudflareAccount"); + throw new RequiredError('body', 'createCloudflareAccount'); } // Path Params - const localVarPath = "/api/v2/integrations/cloudflare/accounts"; + const localVarPath = '/api/v2/integrations/cloudflare/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudflareIntegrationApi.createCloudflareAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.CloudflareIntegrationApi.createCloudflareAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CloudflareAccountCreateRequest", ""), @@ -56,141 +49,99 @@ export class CloudflareIntegrationApiRequestFactory extends BaseAPIRequestFactor requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCloudflareAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async deleteCloudflareAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteCloudflareAccount"); + throw new RequiredError('accountId', 'deleteCloudflareAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/cloudflare/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/cloudflare/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudflareIntegrationApi.deleteCloudflareAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.CloudflareIntegrationApi.deleteCloudflareAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCloudflareAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async getCloudflareAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "getCloudflareAccount"); + throw new RequiredError('accountId', 'getCloudflareAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/cloudflare/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/cloudflare/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudflareIntegrationApi.getCloudflareAccount") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CloudflareIntegrationApi.getCloudflareAccount').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCloudflareAccounts( - _options?: Configuration - ): Promise { + public async listCloudflareAccounts(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integrations/cloudflare/accounts"; + const localVarPath = '/api/v2/integrations/cloudflare/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.CloudflareIntegrationApi.listCloudflareAccounts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.CloudflareIntegrationApi.listCloudflareAccounts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateCloudflareAccount( - accountId: string, - body: CloudflareAccountUpdateRequest, - _options?: Configuration - ): Promise { + public async updateCloudflareAccount(accountId: string,body: CloudflareAccountUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateCloudflareAccount"); + throw new RequiredError('accountId', 'updateCloudflareAccount'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateCloudflareAccount"); + throw new RequiredError('body', 'updateCloudflareAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/cloudflare/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/cloudflare/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.CloudflareIntegrationApi.updateCloudflareAccount") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.CloudflareIntegrationApi.updateCloudflareAccount').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CloudflareAccountUpdateRequest", ""), @@ -199,16 +150,14 @@ export class CloudflareIntegrationApiRequestFactory extends BaseAPIRequestFactor requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class CloudflareIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -216,12 +165,8 @@ export class CloudflareIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createCloudflareAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createCloudflareAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCloudflareAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CloudflareAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -229,16 +174,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as CloudflareAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -247,11 +184,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -259,17 +193,13 @@ export class CloudflareIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CloudflareAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CloudflareAccountResponse", - "" + "CloudflareAccountResponse", "" ) as CloudflareAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -279,25 +209,13 @@ export class CloudflareIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteCloudflareAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCloudflareAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCloudflareAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -306,11 +224,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -318,17 +233,13 @@ export class CloudflareIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -338,12 +249,8 @@ export class CloudflareIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getCloudflareAccount * @throws ApiException if the response code was not in [200, 299] */ - public async getCloudflareAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCloudflareAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CloudflareAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -351,16 +258,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as CloudflareAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -369,11 +268,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -381,17 +277,13 @@ export class CloudflareIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CloudflareAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CloudflareAccountResponse", - "" + "CloudflareAccountResponse", "" ) as CloudflareAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -401,12 +293,8 @@ export class CloudflareIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listCloudflareAccounts * @throws ApiException if the response code was not in [200, 299] */ - public async listCloudflareAccounts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCloudflareAccounts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CloudflareAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -414,16 +302,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as CloudflareAccountsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -432,11 +312,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -444,17 +321,13 @@ export class CloudflareIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CloudflareAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CloudflareAccountsResponse", - "" + "CloudflareAccountsResponse", "" ) as CloudflareAccountsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -464,12 +337,8 @@ export class CloudflareIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateCloudflareAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateCloudflareAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateCloudflareAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CloudflareAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -477,16 +346,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as CloudflareAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -495,11 +356,8 @@ export class CloudflareIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -507,17 +365,13 @@ export class CloudflareIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CloudflareAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CloudflareAccountResponse", - "" + "CloudflareAccountResponse", "" ) as CloudflareAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -525,7 +379,7 @@ export interface CloudflareIntegrationApiCreateCloudflareAccountRequest { /** * @type CloudflareAccountCreateRequest */ - body: CloudflareAccountCreateRequest; + body: CloudflareAccountCreateRequest } export interface CloudflareIntegrationApiDeleteCloudflareAccountRequest { @@ -533,7 +387,7 @@ export interface CloudflareIntegrationApiDeleteCloudflareAccountRequest { * None * @type string */ - accountId: string; + accountId: string } export interface CloudflareIntegrationApiGetCloudflareAccountRequest { @@ -541,7 +395,7 @@ export interface CloudflareIntegrationApiGetCloudflareAccountRequest { * None * @type string */ - accountId: string; + accountId: string } export interface CloudflareIntegrationApiUpdateCloudflareAccountRequest { @@ -549,11 +403,11 @@ export interface CloudflareIntegrationApiUpdateCloudflareAccountRequest { * None * @type string */ - accountId: string; + accountId: string /** * @type CloudflareAccountUpdateRequest */ - body: CloudflareAccountUpdateRequest; + body: CloudflareAccountUpdateRequest } export class CloudflareIntegrationApi { @@ -561,38 +415,21 @@ export class CloudflareIntegrationApi { private responseProcessor: CloudflareIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: CloudflareIntegrationApiRequestFactory, - responseProcessor?: CloudflareIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: CloudflareIntegrationApiRequestFactory, responseProcessor?: CloudflareIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new CloudflareIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new CloudflareIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new CloudflareIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new CloudflareIntegrationApiResponseProcessor(); } /** * Create a Cloudflare account. * @param param The request object */ - public createCloudflareAccount( - param: CloudflareIntegrationApiCreateCloudflareAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createCloudflareAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCloudflareAccount( - responseContext - ); + public createCloudflareAccount(param: CloudflareIntegrationApiCreateCloudflareAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCloudflareAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCloudflareAccount(responseContext); }); }); } @@ -601,21 +438,11 @@ export class CloudflareIntegrationApi { * Delete a Cloudflare account. * @param param The request object */ - public deleteCloudflareAccount( - param: CloudflareIntegrationApiDeleteCloudflareAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteCloudflareAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCloudflareAccount( - responseContext - ); + public deleteCloudflareAccount(param: CloudflareIntegrationApiDeleteCloudflareAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCloudflareAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCloudflareAccount(responseContext); }); }); } @@ -624,19 +451,11 @@ export class CloudflareIntegrationApi { * Get a Cloudflare account. * @param param The request object */ - public getCloudflareAccount( - param: CloudflareIntegrationApiGetCloudflareAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getCloudflareAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCloudflareAccount(responseContext); + public getCloudflareAccount(param: CloudflareIntegrationApiGetCloudflareAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCloudflareAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCloudflareAccount(responseContext); }); }); } @@ -645,16 +464,11 @@ export class CloudflareIntegrationApi { * List Cloudflare accounts. * @param param The request object */ - public listCloudflareAccounts( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCloudflareAccounts(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCloudflareAccounts(responseContext); + public listCloudflareAccounts( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCloudflareAccounts(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCloudflareAccounts(responseContext); }); }); } @@ -663,23 +477,12 @@ export class CloudflareIntegrationApi { * Update a Cloudflare account. * @param param The request object */ - public updateCloudflareAccount( - param: CloudflareIntegrationApiUpdateCloudflareAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateCloudflareAccount( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateCloudflareAccount( - responseContext - ); + public updateCloudflareAccount(param: CloudflareIntegrationApiUpdateCloudflareAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateCloudflareAccount(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateCloudflareAccount(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ConfluentCloudApi.ts b/packages/datadog-api-client-v2/apis/ConfluentCloudApi.ts index 95ab02d7f969..4888c6ee42f9 100644 --- a/packages/datadog-api-client-v2/apis/ConfluentCloudApi.ts +++ b/packages/datadog-api-client-v2/apis/ConfluentCloudApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ConfluentAccountCreateRequest } from "../models/ConfluentAccountCreateRequest"; import { ConfluentAccountResponse } from "../models/ConfluentAccountResponse"; @@ -26,31 +24,26 @@ import { ConfluentResourceResponse } from "../models/ConfluentResourceResponse"; import { ConfluentResourcesResponse } from "../models/ConfluentResourcesResponse"; export class ConfluentCloudApiRequestFactory extends BaseAPIRequestFactory { - public async createConfluentAccount( - body: ConfluentAccountCreateRequest, - _options?: Configuration - ): Promise { + + public async createConfluentAccount(body: ConfluentAccountCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createConfluentAccount"); + throw new RequiredError('body', 'createConfluentAccount'); } // Path Params - const localVarPath = "/api/v2/integrations/confluent-cloud/accounts"; + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.createConfluentAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ConfluentCloudApi.createConfluentAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ConfluentAccountCreateRequest", ""), @@ -59,49 +52,36 @@ export class ConfluentCloudApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createConfluentResource( - accountId: string, - body: ConfluentResourceRequest, - _options?: Configuration - ): Promise { + public async createConfluentResource(accountId: string,body: ConfluentResourceRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "createConfluentResource"); + throw new RequiredError('accountId', 'createConfluentResource'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createConfluentResource"); + throw new RequiredError('body', 'createConfluentResource'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.createConfluentResource") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ConfluentCloudApi.createConfluentResource').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ConfluentResourceRequest", ""), @@ -110,253 +90,180 @@ export class ConfluentCloudApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteConfluentAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async deleteConfluentAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteConfluentAccount"); + throw new RequiredError('accountId', 'deleteConfluentAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.deleteConfluentAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ConfluentCloudApi.deleteConfluentAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteConfluentResource( - accountId: string, - resourceId: string, - _options?: Configuration - ): Promise { + public async deleteConfluentResource(accountId: string,resourceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteConfluentResource"); + throw new RequiredError('accountId', 'deleteConfluentResource'); } // verify required parameter 'resourceId' is not null or undefined if (resourceId === null || resourceId === undefined) { - throw new RequiredError("resourceId", "deleteConfluentResource"); + throw new RequiredError('resourceId', 'deleteConfluentResource'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}" - .replace("{account_id}", encodeURIComponent(String(accountId))) - .replace("{resource_id}", encodeURIComponent(String(resourceId))); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))) + .replace('{resource_id}', encodeURIComponent(String(resourceId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.deleteConfluentResource") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ConfluentCloudApi.deleteConfluentResource').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getConfluentAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async getConfluentAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "getConfluentAccount"); + throw new RequiredError('accountId', 'getConfluentAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.getConfluentAccount") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ConfluentCloudApi.getConfluentAccount').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getConfluentResource( - accountId: string, - resourceId: string, - _options?: Configuration - ): Promise { + public async getConfluentResource(accountId: string,resourceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "getConfluentResource"); + throw new RequiredError('accountId', 'getConfluentResource'); } // verify required parameter 'resourceId' is not null or undefined if (resourceId === null || resourceId === undefined) { - throw new RequiredError("resourceId", "getConfluentResource"); + throw new RequiredError('resourceId', 'getConfluentResource'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}" - .replace("{account_id}", encodeURIComponent(String(accountId))) - .replace("{resource_id}", encodeURIComponent(String(resourceId))); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))) + .replace('{resource_id}', encodeURIComponent(String(resourceId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.getConfluentResource") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ConfluentCloudApi.getConfluentResource').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listConfluentAccount( - _options?: Configuration - ): Promise { + public async listConfluentAccount(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integrations/confluent-cloud/accounts"; + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.listConfluentAccount") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ConfluentCloudApi.listConfluentAccount').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listConfluentResource( - accountId: string, - _options?: Configuration - ): Promise { + public async listConfluentResource(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "listConfluentResource"); + throw new RequiredError('accountId', 'listConfluentResource'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.listConfluentResource") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ConfluentCloudApi.listConfluentResource').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateConfluentAccount( - accountId: string, - body: ConfluentAccountUpdateRequest, - _options?: Configuration - ): Promise { + public async updateConfluentAccount(accountId: string,body: ConfluentAccountUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateConfluentAccount"); + throw new RequiredError('accountId', 'updateConfluentAccount'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateConfluentAccount"); + throw new RequiredError('body', 'updateConfluentAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.updateConfluentAccount") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.ConfluentCloudApi.updateConfluentAccount').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ConfluentAccountUpdateRequest", ""), @@ -365,54 +272,42 @@ export class ConfluentCloudApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateConfluentResource( - accountId: string, - resourceId: string, - body: ConfluentResourceRequest, - _options?: Configuration - ): Promise { + public async updateConfluentResource(accountId: string,resourceId: string,body: ConfluentResourceRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateConfluentResource"); + throw new RequiredError('accountId', 'updateConfluentResource'); } // verify required parameter 'resourceId' is not null or undefined if (resourceId === null || resourceId === undefined) { - throw new RequiredError("resourceId", "updateConfluentResource"); + throw new RequiredError('resourceId', 'updateConfluentResource'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateConfluentResource"); + throw new RequiredError('body', 'updateConfluentResource'); } // Path Params - const localVarPath = - "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}" - .replace("{account_id}", encodeURIComponent(String(accountId))) - .replace("{resource_id}", encodeURIComponent(String(resourceId))); + const localVarPath = '/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))) + .replace('{resource_id}', encodeURIComponent(String(resourceId))); // Make Request Context - const requestContext = _config - .getServer("v2.ConfluentCloudApi.updateConfluentResource") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.ConfluentCloudApi.updateConfluentResource').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ConfluentResourceRequest", ""), @@ -421,16 +316,14 @@ export class ConfluentCloudApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ConfluentCloudApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -438,12 +331,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to createConfluentAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createConfluentAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createConfluentAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: ConfluentAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -451,16 +340,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -469,11 +350,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -481,17 +359,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentAccountResponse", - "" + "ConfluentAccountResponse", "" ) as ConfluentAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -501,12 +375,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to createConfluentResource * @throws ApiException if the response code was not in [200, 299] */ - public async createConfluentResource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createConfluentResource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: ConfluentResourceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -514,16 +384,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentResourceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -532,11 +394,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -544,17 +403,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentResourceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentResourceResponse", - "" + "ConfluentResourceResponse", "" ) as ConfluentResourceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -564,25 +419,13 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to deleteConfluentAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteConfluentAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteConfluentAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -591,11 +434,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -603,17 +443,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -623,25 +459,13 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to deleteConfluentResource * @throws ApiException if the response code was not in [200, 299] */ - public async deleteConfluentResource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteConfluentResource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -650,11 +474,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -662,17 +483,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -682,12 +499,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to getConfluentAccount * @throws ApiException if the response code was not in [200, 299] */ - public async getConfluentAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getConfluentAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ConfluentAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -695,16 +508,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -713,11 +518,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -725,17 +527,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentAccountResponse", - "" + "ConfluentAccountResponse", "" ) as ConfluentAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -745,12 +543,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to getConfluentResource * @throws ApiException if the response code was not in [200, 299] */ - public async getConfluentResource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getConfluentResource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ConfluentResourceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -758,16 +552,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentResourceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -776,11 +562,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -788,17 +571,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentResourceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentResourceResponse", - "" + "ConfluentResourceResponse", "" ) as ConfluentResourceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -808,12 +587,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to listConfluentAccount * @throws ApiException if the response code was not in [200, 299] */ - public async listConfluentAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listConfluentAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ConfluentAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -821,16 +596,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentAccountsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -839,11 +606,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -851,17 +615,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentAccountsResponse", - "" + "ConfluentAccountsResponse", "" ) as ConfluentAccountsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -871,12 +631,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to listConfluentResource * @throws ApiException if the response code was not in [200, 299] */ - public async listConfluentResource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listConfluentResource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ConfluentResourcesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -884,16 +640,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentResourcesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -902,11 +650,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -914,17 +659,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentResourcesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentResourcesResponse", - "" + "ConfluentResourcesResponse", "" ) as ConfluentResourcesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -934,12 +675,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to updateConfluentAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateConfluentAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateConfluentAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ConfluentAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -947,16 +684,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -965,11 +694,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -977,17 +703,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentAccountResponse", - "" + "ConfluentAccountResponse", "" ) as ConfluentAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -997,12 +719,8 @@ export class ConfluentCloudApiResponseProcessor { * @params response Response returned by the server for a request to updateConfluentResource * @throws ApiException if the response code was not in [200, 299] */ - public async updateConfluentResource( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateConfluentResource(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ConfluentResourceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1010,16 +728,8 @@ export class ConfluentCloudApiResponseProcessor { ) as ConfluentResourceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1028,11 +738,8 @@ export class ConfluentCloudApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1040,17 +747,13 @@ export class ConfluentCloudApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ConfluentResourceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ConfluentResourceResponse", - "" + "ConfluentResourceResponse", "" ) as ConfluentResourceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1059,7 +762,7 @@ export interface ConfluentCloudApiCreateConfluentAccountRequest { * Confluent payload * @type ConfluentAccountCreateRequest */ - body: ConfluentAccountCreateRequest; + body: ConfluentAccountCreateRequest } export interface ConfluentCloudApiCreateConfluentResourceRequest { @@ -1067,12 +770,12 @@ export interface ConfluentCloudApiCreateConfluentResourceRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string /** * Confluent payload * @type ConfluentResourceRequest */ - body: ConfluentResourceRequest; + body: ConfluentResourceRequest } export interface ConfluentCloudApiDeleteConfluentAccountRequest { @@ -1080,7 +783,7 @@ export interface ConfluentCloudApiDeleteConfluentAccountRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string } export interface ConfluentCloudApiDeleteConfluentResourceRequest { @@ -1088,12 +791,12 @@ export interface ConfluentCloudApiDeleteConfluentResourceRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string /** * Confluent Account Resource ID. * @type string */ - resourceId: string; + resourceId: string } export interface ConfluentCloudApiGetConfluentAccountRequest { @@ -1101,7 +804,7 @@ export interface ConfluentCloudApiGetConfluentAccountRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string } export interface ConfluentCloudApiGetConfluentResourceRequest { @@ -1109,12 +812,12 @@ export interface ConfluentCloudApiGetConfluentResourceRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string /** * Confluent Account Resource ID. * @type string */ - resourceId: string; + resourceId: string } export interface ConfluentCloudApiListConfluentResourceRequest { @@ -1122,7 +825,7 @@ export interface ConfluentCloudApiListConfluentResourceRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string } export interface ConfluentCloudApiUpdateConfluentAccountRequest { @@ -1130,12 +833,12 @@ export interface ConfluentCloudApiUpdateConfluentAccountRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string /** * Confluent payload * @type ConfluentAccountUpdateRequest */ - body: ConfluentAccountUpdateRequest; + body: ConfluentAccountUpdateRequest } export interface ConfluentCloudApiUpdateConfluentResourceRequest { @@ -1143,17 +846,17 @@ export interface ConfluentCloudApiUpdateConfluentResourceRequest { * Confluent Account ID. * @type string */ - accountId: string; + accountId: string /** * Confluent Account Resource ID. * @type string */ - resourceId: string; + resourceId: string /** * Confluent payload * @type ConfluentResourceRequest */ - body: ConfluentResourceRequest; + body: ConfluentResourceRequest } export class ConfluentCloudApi { @@ -1161,35 +864,21 @@ export class ConfluentCloudApi { private responseProcessor: ConfluentCloudApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ConfluentCloudApiRequestFactory, - responseProcessor?: ConfluentCloudApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ConfluentCloudApiRequestFactory, responseProcessor?: ConfluentCloudApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ConfluentCloudApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ConfluentCloudApiResponseProcessor(); + this.requestFactory = requestFactory || new ConfluentCloudApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ConfluentCloudApiResponseProcessor(); } /** * Create a Confluent account. * @param param The request object */ - public createConfluentAccount( - param: ConfluentCloudApiCreateConfluentAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createConfluentAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createConfluentAccount(responseContext); + public createConfluentAccount(param: ConfluentCloudApiCreateConfluentAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createConfluentAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createConfluentAccount(responseContext); }); }); } @@ -1198,22 +887,11 @@ export class ConfluentCloudApi { * Create a Confluent resource for the account associated with the provided ID. * @param param The request object */ - public createConfluentResource( - param: ConfluentCloudApiCreateConfluentResourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createConfluentResource( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createConfluentResource( - responseContext - ); + public createConfluentResource(param: ConfluentCloudApiCreateConfluentResourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createConfluentResource(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createConfluentResource(responseContext); }); }); } @@ -1222,19 +900,11 @@ export class ConfluentCloudApi { * Delete a Confluent account with the provided account ID. * @param param The request object */ - public deleteConfluentAccount( - param: ConfluentCloudApiDeleteConfluentAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteConfluentAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteConfluentAccount(responseContext); + public deleteConfluentAccount(param: ConfluentCloudApiDeleteConfluentAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteConfluentAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteConfluentAccount(responseContext); }); }); } @@ -1243,22 +913,11 @@ export class ConfluentCloudApi { * Delete a Confluent resource with the provided resource id for the account associated with the provided account ID. * @param param The request object */ - public deleteConfluentResource( - param: ConfluentCloudApiDeleteConfluentResourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteConfluentResource( - param.accountId, - param.resourceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteConfluentResource( - responseContext - ); + public deleteConfluentResource(param: ConfluentCloudApiDeleteConfluentResourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteConfluentResource(param.accountId,param.resourceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteConfluentResource(responseContext); }); }); } @@ -1267,19 +926,11 @@ export class ConfluentCloudApi { * Get the Confluent account with the provided account ID. * @param param The request object */ - public getConfluentAccount( - param: ConfluentCloudApiGetConfluentAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getConfluentAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getConfluentAccount(responseContext); + public getConfluentAccount(param: ConfluentCloudApiGetConfluentAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getConfluentAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getConfluentAccount(responseContext); }); }); } @@ -1288,20 +939,11 @@ export class ConfluentCloudApi { * Get a Confluent resource with the provided resource id for the account associated with the provided account ID. * @param param The request object */ - public getConfluentResource( - param: ConfluentCloudApiGetConfluentResourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getConfluentResource( - param.accountId, - param.resourceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getConfluentResource(responseContext); + public getConfluentResource(param: ConfluentCloudApiGetConfluentResourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getConfluentResource(param.accountId,param.resourceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getConfluentResource(responseContext); }); }); } @@ -1310,16 +952,11 @@ export class ConfluentCloudApi { * List Confluent accounts. * @param param The request object */ - public listConfluentAccount( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listConfluentAccount(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listConfluentAccount(responseContext); + public listConfluentAccount( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listConfluentAccount(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listConfluentAccount(responseContext); }); }); } @@ -1328,19 +965,11 @@ export class ConfluentCloudApi { * Get a Confluent resource for the account associated with the provided ID. * @param param The request object */ - public listConfluentResource( - param: ConfluentCloudApiListConfluentResourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listConfluentResource( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listConfluentResource(responseContext); + public listConfluentResource(param: ConfluentCloudApiListConfluentResourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listConfluentResource(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listConfluentResource(responseContext); }); }); } @@ -1349,20 +978,11 @@ export class ConfluentCloudApi { * Update the Confluent account with the provided account ID. * @param param The request object */ - public updateConfluentAccount( - param: ConfluentCloudApiUpdateConfluentAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateConfluentAccount( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateConfluentAccount(responseContext); + public updateConfluentAccount(param: ConfluentCloudApiUpdateConfluentAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateConfluentAccount(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateConfluentAccount(responseContext); }); }); } @@ -1371,24 +991,12 @@ export class ConfluentCloudApi { * Update a Confluent resource with the provided resource id for the account associated with the provided account ID. * @param param The request object */ - public updateConfluentResource( - param: ConfluentCloudApiUpdateConfluentResourceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateConfluentResource( - param.accountId, - param.resourceId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateConfluentResource( - responseContext - ); + public updateConfluentResource(param: ConfluentCloudApiUpdateConfluentResourceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateConfluentResource(param.accountId,param.resourceId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateConfluentResource(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts b/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts index e87ef8fda859..15a217f9a0fb 100644 --- a/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts +++ b/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts @@ -1,92 +1,62 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ContainerImageItem } from "../models/ContainerImageItem"; import { ContainerImagesResponse } from "../models/ContainerImagesResponse"; export class ContainerImagesApiRequestFactory extends BaseAPIRequestFactory { - public async listContainerImages( - filterTags?: string, - groupBy?: string, - sort?: string, - pageSize?: number, - pageCursor?: string, - _options?: Configuration - ): Promise { + + public async listContainerImages(filterTags?: string,groupBy?: string,sort?: string,pageSize?: number,pageCursor?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/container_images"; + const localVarPath = '/api/v2/container_images'; // Make Request Context - const requestContext = _config - .getServer("v2.ContainerImagesApi.listContainerImages") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ContainerImagesApi.listContainerImages').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterTags !== undefined) { - requestContext.setQueryParam( - "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tags]", ObjectSerializer.serialize(filterTags, "string", ""), ""); } if (groupBy !== undefined) { - requestContext.setQueryParam( - "group_by", - ObjectSerializer.serialize(groupBy, "string", ""), - "" - ); + requestContext.setQueryParam("group_by", ObjectSerializer.serialize(groupBy, "string", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int32"), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ContainerImagesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -94,12 +64,8 @@ export class ContainerImagesApiResponseProcessor { * @params response Response returned by the server for a request to listContainerImages * @throws ApiException if the response code was not in [200, 299] */ - public async listContainerImages( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listContainerImages(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ContainerImagesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -107,15 +73,8 @@ export class ContainerImagesApiResponseProcessor { ) as ContainerImagesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -124,11 +83,8 @@ export class ContainerImagesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -136,17 +92,13 @@ export class ContainerImagesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ContainerImagesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ContainerImagesResponse", - "" + "ContainerImagesResponse", "" ) as ContainerImagesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -155,28 +107,28 @@ export interface ContainerImagesApiListContainerImagesRequest { * Comma-separated list of tags to filter Container Images by. * @type string */ - filterTags?: string; + filterTags?: string /** * Comma-separated list of tags to group Container Images by. * @type string */ - groupBy?: string; + groupBy?: string /** * Attribute to sort Container Images by. * @type string */ - sort?: string; + sort?: string /** * Maximum number of results returned. * @type number */ - pageSize?: number; + pageSize?: number /** * String to query the next page of results. * This key is provided with each valid response from the API in `meta.pagination.next_cursor`. * @type string */ - pageCursor?: string; + pageCursor?: string } export class ContainerImagesApi { @@ -184,39 +136,21 @@ export class ContainerImagesApi { private responseProcessor: ContainerImagesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ContainerImagesApiRequestFactory, - responseProcessor?: ContainerImagesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ContainerImagesApiRequestFactory, responseProcessor?: ContainerImagesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ContainerImagesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ContainerImagesApiResponseProcessor(); + this.requestFactory = requestFactory || new ContainerImagesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ContainerImagesApiResponseProcessor(); } /** * Get all Container Images for your organization. * @param param The request object */ - public listContainerImages( - param: ContainerImagesApiListContainerImagesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listContainerImages( - param.filterTags, - param.groupBy, - param.sort, - param.pageSize, - param.pageCursor, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listContainerImages(responseContext); + public listContainerImages(param: ContainerImagesApiListContainerImagesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listContainerImages(param.filterTags,param.groupBy,param.sort,param.pageSize,param.pageCursor,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listContainerImages(responseContext); }); }); } @@ -224,31 +158,18 @@ export class ContainerImagesApi { /** * Provide a paginated version of listContainerImages returning a generator with all the items. */ - public async *listContainerImagesWithPagination( - param: ContainerImagesApiListContainerImagesRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listContainerImagesWithPagination(param: ContainerImagesApiListContainerImagesRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 1000; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.listContainerImages( - param.filterTags, - param.groupBy, - param.sort, - param.pageSize, - param.pageCursor, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listContainerImages(param.filterTags,param.groupBy,param.sort,param.pageSize,param.pageCursor,options); + const responseContext = await this.configuration.httpApi.send(requestContext); - const response = await this.responseProcessor.listContainerImages( - responseContext - ); + const response = await this.responseProcessor.listContainerImages(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -276,4 +197,4 @@ export class ContainerImagesApi { param.pageCursor = cursorMetaPaginationNextCursor; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ContainersApi.ts b/packages/datadog-api-client-v2/apis/ContainersApi.ts index b7fab3a37038..332cd4a589c6 100644 --- a/packages/datadog-api-client-v2/apis/ContainersApi.ts +++ b/packages/datadog-api-client-v2/apis/ContainersApi.ts @@ -1,92 +1,62 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ContainerItem } from "../models/ContainerItem"; import { ContainersResponse } from "../models/ContainersResponse"; export class ContainersApiRequestFactory extends BaseAPIRequestFactory { - public async listContainers( - filterTags?: string, - groupBy?: string, - sort?: string, - pageSize?: number, - pageCursor?: string, - _options?: Configuration - ): Promise { + + public async listContainers(filterTags?: string,groupBy?: string,sort?: string,pageSize?: number,pageCursor?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/containers"; + const localVarPath = '/api/v2/containers'; // Make Request Context - const requestContext = _config - .getServer("v2.ContainersApi.listContainers") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ContainersApi.listContainers').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterTags !== undefined) { - requestContext.setQueryParam( - "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tags]", ObjectSerializer.serialize(filterTags, "string", ""), ""); } if (groupBy !== undefined) { - requestContext.setQueryParam( - "group_by", - ObjectSerializer.serialize(groupBy, "string", ""), - "" - ); + requestContext.setQueryParam("group_by", ObjectSerializer.serialize(groupBy, "string", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int32"), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ContainersApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -94,12 +64,8 @@ export class ContainersApiResponseProcessor { * @params response Response returned by the server for a request to listContainers * @throws ApiException if the response code was not in [200, 299] */ - public async listContainers( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listContainers(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ContainersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -107,15 +73,8 @@ export class ContainersApiResponseProcessor { ) as ContainersResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -124,11 +83,8 @@ export class ContainersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -136,17 +92,13 @@ export class ContainersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ContainersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ContainersResponse", - "" + "ContainersResponse", "" ) as ContainersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -155,28 +107,28 @@ export interface ContainersApiListContainersRequest { * Comma-separated list of tags to filter containers by. * @type string */ - filterTags?: string; + filterTags?: string /** * Comma-separated list of tags to group containers by. * @type string */ - groupBy?: string; + groupBy?: string /** * Attribute to sort containers by. * @type string */ - sort?: string; + sort?: string /** * Maximum number of results returned. * @type number */ - pageSize?: number; + pageSize?: number /** * String to query the next page of results. * This key is provided with each valid response from the API in `meta.pagination.next_cursor`. * @type string */ - pageCursor?: string; + pageCursor?: string } export class ContainersApi { @@ -184,39 +136,21 @@ export class ContainersApi { private responseProcessor: ContainersApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ContainersApiRequestFactory, - responseProcessor?: ContainersApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ContainersApiRequestFactory, responseProcessor?: ContainersApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ContainersApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ContainersApiResponseProcessor(); + this.requestFactory = requestFactory || new ContainersApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ContainersApiResponseProcessor(); } /** * Get all containers for your organization. * @param param The request object */ - public listContainers( - param: ContainersApiListContainersRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listContainers( - param.filterTags, - param.groupBy, - param.sort, - param.pageSize, - param.pageCursor, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listContainers(responseContext); + public listContainers(param: ContainersApiListContainersRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listContainers(param.filterTags,param.groupBy,param.sort,param.pageSize,param.pageCursor,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listContainers(responseContext); }); }); } @@ -224,31 +158,18 @@ export class ContainersApi { /** * Provide a paginated version of listContainers returning a generator with all the items. */ - public async *listContainersWithPagination( - param: ContainersApiListContainersRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listContainersWithPagination(param: ContainersApiListContainersRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 1000; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.listContainers( - param.filterTags, - param.groupBy, - param.sort, - param.pageSize, - param.pageCursor, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listContainers(param.filterTags,param.groupBy,param.sort,param.pageSize,param.pageCursor,options); + const responseContext = await this.configuration.httpApi.send(requestContext); - const response = await this.responseProcessor.listContainers( - responseContext - ); + const response = await this.responseProcessor.listContainers(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -276,4 +197,4 @@ export class ContainersApi { param.pageCursor = cursorMetaPaginationNextCursor; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts b/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts index 64d3578d4e2a..3a995e56efcb 100644 --- a/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { DORADeploymentRequest } from "../models/DORADeploymentRequest"; import { DORADeploymentResponse } from "../models/DORADeploymentResponse"; @@ -24,36 +22,31 @@ import { DORAIncidentResponse } from "../models/DORAIncidentResponse"; import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse"; export class DORAMetricsApiRequestFactory extends BaseAPIRequestFactory { - public async createDORADeployment( - body: DORADeploymentRequest, - _options?: Configuration - ): Promise { + + public async createDORADeployment(body: DORADeploymentRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createDORADeployment'"); - if (!_config.unstableOperations["v2.createDORADeployment"]) { + if (!_config.unstableOperations['v2.createDORADeployment']) { throw new Error("Unstable operation 'createDORADeployment' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDORADeployment"); + throw new RequiredError('body', 'createDORADeployment'); } // Path Params - const localVarPath = "/api/v2/dora/deployment"; + const localVarPath = '/api/v2/dora/deployment'; // Make Request Context - const requestContext = _config - .getServer("v2.DORAMetricsApi.createDORADeployment") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.DORAMetricsApi.createDORADeployment').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DORADeploymentRequest", ""), @@ -67,36 +60,30 @@ export class DORAMetricsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async createDORAIncident( - body: DORAIncidentRequest, - _options?: Configuration - ): Promise { + public async createDORAIncident(body: DORAIncidentRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createDORAIncident'"); - if (!_config.unstableOperations["v2.createDORAIncident"]) { + if (!_config.unstableOperations['v2.createDORAIncident']) { throw new Error("Unstable operation 'createDORAIncident' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDORAIncident"); + throw new RequiredError('body', 'createDORAIncident'); } // Path Params - const localVarPath = "/api/v2/dora/incident"; + const localVarPath = '/api/v2/dora/incident'; // Make Request Context - const requestContext = _config - .getServer("v2.DORAMetricsApi.createDORAIncident") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.DORAMetricsApi.createDORAIncident').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DORAIncidentRequest", ""), @@ -112,6 +99,7 @@ export class DORAMetricsApiRequestFactory extends BaseAPIRequestFactory { } export class DORAMetricsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -119,13 +107,9 @@ export class DORAMetricsApiResponseProcessor { * @params response Response returned by the server for a request to createDORADeployment * @throws ApiException if the response code was not in [200, 299] */ - public async createDORADeployment( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200 || response.httpStatusCode === 202) { + public async createDORADeployment(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200||response.httpStatusCode === 202) { const body: DORADeploymentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "DORADeploymentResponse" @@ -133,10 +117,7 @@ export class DORAMetricsApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -145,21 +126,12 @@ export class DORAMetricsApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -168,11 +140,8 @@ export class DORAMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -180,17 +149,13 @@ export class DORAMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DORADeploymentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DORADeploymentResponse", - "" + "DORADeploymentResponse", "" ) as DORADeploymentResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -200,13 +165,9 @@ export class DORAMetricsApiResponseProcessor { * @params response Response returned by the server for a request to createDORAIncident * @throws ApiException if the response code was not in [200, 299] */ - public async createDORAIncident( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200 || response.httpStatusCode === 202) { + public async createDORAIncident(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200||response.httpStatusCode === 202) { const body: DORAIncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "DORAIncidentResponse" @@ -214,10 +175,7 @@ export class DORAMetricsApiResponseProcessor { return body; } if (response.httpStatusCode === 400) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -226,21 +184,12 @@ export class DORAMetricsApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -249,11 +198,8 @@ export class DORAMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -261,17 +207,13 @@ export class DORAMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DORAIncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DORAIncidentResponse", - "" + "DORAIncidentResponse", "" ) as DORAIncidentResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -279,14 +221,14 @@ export interface DORAMetricsApiCreateDORADeploymentRequest { /** * @type DORADeploymentRequest */ - body: DORADeploymentRequest; + body: DORADeploymentRequest } export interface DORAMetricsApiCreateDORAIncidentRequest { /** * @type DORAIncidentRequest */ - body: DORAIncidentRequest; + body: DORAIncidentRequest } export class DORAMetricsApi { @@ -294,66 +236,44 @@ export class DORAMetricsApi { private responseProcessor: DORAMetricsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DORAMetricsApiRequestFactory, - responseProcessor?: DORAMetricsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DORAMetricsApiRequestFactory, responseProcessor?: DORAMetricsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DORAMetricsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DORAMetricsApiResponseProcessor(); + this.requestFactory = requestFactory || new DORAMetricsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DORAMetricsApiResponseProcessor(); } /** * Use this API endpoint to provide data about deployments for DORA metrics. - * + * * This is necessary for: * - Deployment Frequency * - Change Lead Time * - Change Failure Rate * @param param The request object */ - public createDORADeployment( - param: DORAMetricsApiCreateDORADeploymentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDORADeployment( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDORADeployment(responseContext); + public createDORADeployment(param: DORAMetricsApiCreateDORADeploymentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDORADeployment(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDORADeployment(responseContext); }); }); } /** * Use this API endpoint to provide data about incidents for DORA metrics. - * + * * This is necessary for: * - Change Failure Rate * - Time to Restore * @param param The request object */ - public createDORAIncident( - param: DORAMetricsApiCreateDORAIncidentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDORAIncident( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDORAIncident(responseContext); + public createDORAIncident(param: DORAMetricsApiCreateDORAIncidentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDORAIncident(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDORAIncident(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/DashboardListsApi.ts b/packages/datadog-api-client-v2/apis/DashboardListsApi.ts index 602bdf05802b..9464e5b329d3 100644 --- a/packages/datadog-api-client-v2/apis/DashboardListsApi.ts +++ b/packages/datadog-api-client-v2/apis/DashboardListsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { DashboardListAddItemsRequest } from "../models/DashboardListAddItemsRequest"; import { DashboardListAddItemsResponse } from "../models/DashboardListAddItemsResponse"; @@ -26,41 +24,32 @@ import { DashboardListUpdateItemsRequest } from "../models/DashboardListUpdateIt import { DashboardListUpdateItemsResponse } from "../models/DashboardListUpdateItemsResponse"; export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { - public async createDashboardListItems( - dashboardListId: number, - body: DashboardListAddItemsRequest, - _options?: Configuration - ): Promise { + + public async createDashboardListItems(dashboardListId: number,body: DashboardListAddItemsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardListId' is not null or undefined if (dashboardListId === null || dashboardListId === undefined) { - throw new RequiredError("dashboardListId", "createDashboardListItems"); + throw new RequiredError('dashboardListId', 'createDashboardListItems'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDashboardListItems"); + throw new RequiredError('body', 'createDashboardListItems'); } // Path Params - const localVarPath = - "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace( - "{dashboard_list_id}", - encodeURIComponent(String(dashboardListId)) - ); + const localVarPath = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards' + .replace('{dashboard_list_id}', encodeURIComponent(String(dashboardListId))); // Make Request Context - const requestContext = _config - .getServer("v2.DashboardListsApi.createDashboardListItems") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.DashboardListsApi.createDashboardListItems').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardListAddItemsRequest", ""), @@ -69,49 +58,36 @@ export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteDashboardListItems( - dashboardListId: number, - body: DashboardListDeleteItemsRequest, - _options?: Configuration - ): Promise { + public async deleteDashboardListItems(dashboardListId: number,body: DashboardListDeleteItemsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardListId' is not null or undefined if (dashboardListId === null || dashboardListId === undefined) { - throw new RequiredError("dashboardListId", "deleteDashboardListItems"); + throw new RequiredError('dashboardListId', 'deleteDashboardListItems'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteDashboardListItems"); + throw new RequiredError('body', 'deleteDashboardListItems'); } // Path Params - const localVarPath = - "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace( - "{dashboard_list_id}", - encodeURIComponent(String(dashboardListId)) - ); + const localVarPath = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards' + .replace('{dashboard_list_id}', encodeURIComponent(String(dashboardListId))); // Make Request Context - const requestContext = _config - .getServer("v2.DashboardListsApi.deleteDashboardListItems") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.DashboardListsApi.deleteDashboardListItems').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardListDeleteItemsRequest", ""), @@ -120,84 +96,59 @@ export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getDashboardListItems( - dashboardListId: number, - _options?: Configuration - ): Promise { + public async getDashboardListItems(dashboardListId: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardListId' is not null or undefined if (dashboardListId === null || dashboardListId === undefined) { - throw new RequiredError("dashboardListId", "getDashboardListItems"); + throw new RequiredError('dashboardListId', 'getDashboardListItems'); } // Path Params - const localVarPath = - "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace( - "{dashboard_list_id}", - encodeURIComponent(String(dashboardListId)) - ); + const localVarPath = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards' + .replace('{dashboard_list_id}', encodeURIComponent(String(dashboardListId))); // Make Request Context - const requestContext = _config - .getServer("v2.DashboardListsApi.getDashboardListItems") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.DashboardListsApi.getDashboardListItems').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateDashboardListItems( - dashboardListId: number, - body: DashboardListUpdateItemsRequest, - _options?: Configuration - ): Promise { + public async updateDashboardListItems(dashboardListId: number,body: DashboardListUpdateItemsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'dashboardListId' is not null or undefined if (dashboardListId === null || dashboardListId === undefined) { - throw new RequiredError("dashboardListId", "updateDashboardListItems"); + throw new RequiredError('dashboardListId', 'updateDashboardListItems'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateDashboardListItems"); + throw new RequiredError('body', 'updateDashboardListItems'); } // Path Params - const localVarPath = - "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace( - "{dashboard_list_id}", - encodeURIComponent(String(dashboardListId)) - ); + const localVarPath = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards' + .replace('{dashboard_list_id}', encodeURIComponent(String(dashboardListId))); // Make Request Context - const requestContext = _config - .getServer("v2.DashboardListsApi.updateDashboardListItems") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.DashboardListsApi.updateDashboardListItems').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DashboardListUpdateItemsRequest", ""), @@ -206,16 +157,14 @@ export class DashboardListsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DashboardListsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -223,12 +172,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to createDashboardListItems * @throws ApiException if the response code was not in [200, 299] */ - public async createDashboardListItems( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createDashboardListItems(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardListAddItemsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -236,16 +181,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardListAddItemsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -254,11 +191,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -266,17 +200,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardListAddItemsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListAddItemsResponse", - "" + "DashboardListAddItemsResponse", "" ) as DashboardListAddItemsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -286,30 +216,17 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to deleteDashboardListItems * @throws ApiException if the response code was not in [200, 299] */ - public async deleteDashboardListItems( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteDashboardListItems(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: DashboardListDeleteItemsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListDeleteItemsResponse" - ) as DashboardListDeleteItemsResponse; + const body: DashboardListDeleteItemsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DashboardListDeleteItemsResponse" + ) as DashboardListDeleteItemsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -318,30 +235,22 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: DashboardListDeleteItemsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListDeleteItemsResponse", - "" - ) as DashboardListDeleteItemsResponse; + const body: DashboardListDeleteItemsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DashboardListDeleteItemsResponse", "" + ) as DashboardListDeleteItemsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -351,12 +260,8 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to getDashboardListItems * @throws ApiException if the response code was not in [200, 299] */ - public async getDashboardListItems( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDashboardListItems(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DashboardListItems = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -364,15 +269,8 @@ export class DashboardListsApiResponseProcessor { ) as DashboardListItems; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -381,11 +279,8 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -393,17 +288,13 @@ export class DashboardListsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DashboardListItems = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListItems", - "" + "DashboardListItems", "" ) as DashboardListItems; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -413,30 +304,17 @@ export class DashboardListsApiResponseProcessor { * @params response Response returned by the server for a request to updateDashboardListItems * @throws ApiException if the response code was not in [200, 299] */ - public async updateDashboardListItems( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateDashboardListItems(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: DashboardListUpdateItemsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListUpdateItemsResponse" - ) as DashboardListUpdateItemsResponse; + const body: DashboardListUpdateItemsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DashboardListUpdateItemsResponse" + ) as DashboardListUpdateItemsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -445,30 +323,22 @@ export class DashboardListsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: DashboardListUpdateItemsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "DashboardListUpdateItemsResponse", - "" - ) as DashboardListUpdateItemsResponse; + const body: DashboardListUpdateItemsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DashboardListUpdateItemsResponse", "" + ) as DashboardListUpdateItemsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -477,12 +347,12 @@ export interface DashboardListsApiCreateDashboardListItemsRequest { * ID of the dashboard list to add items to. * @type number */ - dashboardListId: number; + dashboardListId: number /** * Dashboards to add to the dashboard list. * @type DashboardListAddItemsRequest */ - body: DashboardListAddItemsRequest; + body: DashboardListAddItemsRequest } export interface DashboardListsApiDeleteDashboardListItemsRequest { @@ -490,12 +360,12 @@ export interface DashboardListsApiDeleteDashboardListItemsRequest { * ID of the dashboard list to delete items from. * @type number */ - dashboardListId: number; + dashboardListId: number /** * Dashboards to delete from the dashboard list. * @type DashboardListDeleteItemsRequest */ - body: DashboardListDeleteItemsRequest; + body: DashboardListDeleteItemsRequest } export interface DashboardListsApiGetDashboardListItemsRequest { @@ -503,7 +373,7 @@ export interface DashboardListsApiGetDashboardListItemsRequest { * ID of the dashboard list to get items from. * @type number */ - dashboardListId: number; + dashboardListId: number } export interface DashboardListsApiUpdateDashboardListItemsRequest { @@ -511,12 +381,12 @@ export interface DashboardListsApiUpdateDashboardListItemsRequest { * ID of the dashboard list to update items from. * @type number */ - dashboardListId: number; + dashboardListId: number /** * New dashboards of the dashboard list. * @type DashboardListUpdateItemsRequest */ - body: DashboardListUpdateItemsRequest; + body: DashboardListUpdateItemsRequest } export class DashboardListsApi { @@ -524,38 +394,21 @@ export class DashboardListsApi { private responseProcessor: DashboardListsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DashboardListsApiRequestFactory, - responseProcessor?: DashboardListsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DashboardListsApiRequestFactory, responseProcessor?: DashboardListsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DashboardListsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DashboardListsApiResponseProcessor(); + this.requestFactory = requestFactory || new DashboardListsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DashboardListsApiResponseProcessor(); } /** * Add dashboards to an existing dashboard list. * @param param The request object */ - public createDashboardListItems( - param: DashboardListsApiCreateDashboardListItemsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDashboardListItems( - param.dashboardListId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDashboardListItems( - responseContext - ); + public createDashboardListItems(param: DashboardListsApiCreateDashboardListItemsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDashboardListItems(param.dashboardListId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDashboardListItems(responseContext); }); }); } @@ -564,22 +417,11 @@ export class DashboardListsApi { * Delete dashboards from an existing dashboard list. * @param param The request object */ - public deleteDashboardListItems( - param: DashboardListsApiDeleteDashboardListItemsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteDashboardListItems( - param.dashboardListId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteDashboardListItems( - responseContext - ); + public deleteDashboardListItems(param: DashboardListsApiDeleteDashboardListItemsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteDashboardListItems(param.dashboardListId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteDashboardListItems(responseContext); }); }); } @@ -588,19 +430,11 @@ export class DashboardListsApi { * Fetch the dashboard list’s dashboard definitions. * @param param The request object */ - public getDashboardListItems( - param: DashboardListsApiGetDashboardListItemsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDashboardListItems( - param.dashboardListId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDashboardListItems(responseContext); + public getDashboardListItems(param: DashboardListsApiGetDashboardListItemsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDashboardListItems(param.dashboardListId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDashboardListItems(responseContext); }); }); } @@ -609,23 +443,12 @@ export class DashboardListsApi { * Update dashboards of an existing dashboard list. * @param param The request object */ - public updateDashboardListItems( - param: DashboardListsApiUpdateDashboardListItemsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateDashboardListItems( - param.dashboardListId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateDashboardListItems( - responseContext - ); + public updateDashboardListItems(param: DashboardListsApiUpdateDashboardListItemsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateDashboardListItems(param.dashboardListId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateDashboardListItems(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/DataDeletionApi.ts b/packages/datadog-api-client-v2/apis/DataDeletionApi.ts index ac897843a5a3..379a7fb8ce5e 100644 --- a/packages/datadog-api-client-v2/apis/DataDeletionApi.ts +++ b/packages/datadog-api-client-v2/apis/DataDeletionApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CancelDataDeletionResponseBody } from "../models/CancelDataDeletionResponseBody"; import { CreateDataDeletionRequestBody } from "../models/CreateDataDeletionRequestBody"; @@ -23,87 +21,65 @@ import { CreateDataDeletionResponseBody } from "../models/CreateDataDeletionResp import { GetDataDeletionsResponseBody } from "../models/GetDataDeletionsResponseBody"; export class DataDeletionApiRequestFactory extends BaseAPIRequestFactory { - public async cancelDataDeletionRequest( - id: string, - _options?: Configuration - ): Promise { + + public async cancelDataDeletionRequest(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'cancelDataDeletionRequest'"); - if (!_config.unstableOperations["v2.cancelDataDeletionRequest"]) { - throw new Error( - "Unstable operation 'cancelDataDeletionRequest' is disabled" - ); + if (!_config.unstableOperations['v2.cancelDataDeletionRequest']) { + throw new Error("Unstable operation 'cancelDataDeletionRequest' is disabled"); } // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "cancelDataDeletionRequest"); + throw new RequiredError('id', 'cancelDataDeletionRequest'); } // Path Params - const localVarPath = "/api/v2/deletion/requests/{id}/cancel".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/deletion/requests/{id}/cancel' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.DataDeletionApi.cancelDataDeletionRequest") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.DataDeletionApi.cancelDataDeletionRequest').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createDataDeletionRequest( - product: string, - body: CreateDataDeletionRequestBody, - _options?: Configuration - ): Promise { + public async createDataDeletionRequest(product: string,body: CreateDataDeletionRequestBody,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createDataDeletionRequest'"); - if (!_config.unstableOperations["v2.createDataDeletionRequest"]) { - throw new Error( - "Unstable operation 'createDataDeletionRequest' is disabled" - ); + if (!_config.unstableOperations['v2.createDataDeletionRequest']) { + throw new Error("Unstable operation 'createDataDeletionRequest' is disabled"); } // verify required parameter 'product' is not null or undefined if (product === null || product === undefined) { - throw new RequiredError("product", "createDataDeletionRequest"); + throw new RequiredError('product', 'createDataDeletionRequest'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDataDeletionRequest"); + throw new RequiredError('body', 'createDataDeletionRequest'); } // Path Params - const localVarPath = "/api/v2/deletion/data/{product}".replace( - "{product}", - encodeURIComponent(String(product)) - ); + const localVarPath = '/api/v2/deletion/data/{product}' + .replace('{product}', encodeURIComponent(String(product))); // Make Request Context - const requestContext = _config - .getServer("v2.DataDeletionApi.createDataDeletionRequest") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.DataDeletionApi.createDataDeletionRequest').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateDataDeletionRequestBody", ""), @@ -112,89 +88,53 @@ export class DataDeletionApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getDataDeletionRequests( - nextPage?: string, - product?: string, - query?: string, - status?: string, - pageSize?: number, - _options?: Configuration - ): Promise { + public async getDataDeletionRequests(nextPage?: string,product?: string,query?: string,status?: string,pageSize?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getDataDeletionRequests'"); - if (!_config.unstableOperations["v2.getDataDeletionRequests"]) { - throw new Error( - "Unstable operation 'getDataDeletionRequests' is disabled" - ); + if (!_config.unstableOperations['v2.getDataDeletionRequests']) { + throw new Error("Unstable operation 'getDataDeletionRequests' is disabled"); } // Path Params - const localVarPath = "/api/v2/deletion/requests"; + const localVarPath = '/api/v2/deletion/requests'; // Make Request Context - const requestContext = _config - .getServer("v2.DataDeletionApi.getDataDeletionRequests") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.DataDeletionApi.getDataDeletionRequests').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (nextPage !== undefined) { - requestContext.setQueryParam( - "next_page", - ObjectSerializer.serialize(nextPage, "string", ""), - "" - ); + requestContext.setQueryParam("next_page", ObjectSerializer.serialize(nextPage, "string", ""), ""); } if (product !== undefined) { - requestContext.setQueryParam( - "product", - ObjectSerializer.serialize(product, "string", ""), - "" - ); + requestContext.setQueryParam("product", ObjectSerializer.serialize(product, "string", ""), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (status !== undefined) { - requestContext.setQueryParam( - "status", - ObjectSerializer.serialize(status, "string", ""), - "" - ); + requestContext.setQueryParam("status", ObjectSerializer.serialize(status, "string", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page_size", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page_size", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DataDeletionApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -202,12 +142,8 @@ export class DataDeletionApiResponseProcessor { * @params response Response returned by the server for a request to cancelDataDeletionRequest * @throws ApiException if the response code was not in [200, 299] */ - public async cancelDataDeletionRequest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cancelDataDeletionRequest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CancelDataDeletionResponseBody = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -215,17 +151,8 @@ export class DataDeletionApiResponseProcessor { ) as CancelDataDeletionResponseBody; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 || - response.httpStatusCode === 500 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 412||response.httpStatusCode === 429||response.httpStatusCode === 500) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -234,11 +161,8 @@ export class DataDeletionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -246,17 +170,13 @@ export class DataDeletionApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CancelDataDeletionResponseBody = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CancelDataDeletionResponseBody", - "" + "CancelDataDeletionResponseBody", "" ) as CancelDataDeletionResponseBody; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -266,12 +186,8 @@ export class DataDeletionApiResponseProcessor { * @params response Response returned by the server for a request to createDataDeletionRequest * @throws ApiException if the response code was not in [200, 299] */ - public async createDataDeletionRequest( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createDataDeletionRequest(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CreateDataDeletionResponseBody = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -279,17 +195,8 @@ export class DataDeletionApiResponseProcessor { ) as CreateDataDeletionResponseBody; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 || - response.httpStatusCode === 500 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 412||response.httpStatusCode === 429||response.httpStatusCode === 500) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -298,11 +205,8 @@ export class DataDeletionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -310,17 +214,13 @@ export class DataDeletionApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CreateDataDeletionResponseBody = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CreateDataDeletionResponseBody", - "" + "CreateDataDeletionResponseBody", "" ) as CreateDataDeletionResponseBody; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -330,12 +230,8 @@ export class DataDeletionApiResponseProcessor { * @params response Response returned by the server for a request to getDataDeletionRequests * @throws ApiException if the response code was not in [200, 299] */ - public async getDataDeletionRequests( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDataDeletionRequests(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetDataDeletionsResponseBody = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -343,16 +239,8 @@ export class DataDeletionApiResponseProcessor { ) as GetDataDeletionsResponseBody; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 || - response.httpStatusCode === 500 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429||response.httpStatusCode === 500) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -361,11 +249,8 @@ export class DataDeletionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -373,17 +258,13 @@ export class DataDeletionApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetDataDeletionsResponseBody = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetDataDeletionsResponseBody", - "" + "GetDataDeletionsResponseBody", "" ) as GetDataDeletionsResponseBody; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -392,7 +273,7 @@ export interface DataDeletionApiCancelDataDeletionRequestRequest { * ID of the deletion request. * @type string */ - id: string; + id: string } export interface DataDeletionApiCreateDataDeletionRequestRequest { @@ -400,11 +281,11 @@ export interface DataDeletionApiCreateDataDeletionRequestRequest { * Name of the product to be deleted, either `logs` or `rum`. * @type string */ - product: string; + product: string /** * @type CreateDataDeletionRequestBody */ - body: CreateDataDeletionRequestBody; + body: CreateDataDeletionRequestBody } export interface DataDeletionApiGetDataDeletionRequestsRequest { @@ -412,27 +293,27 @@ export interface DataDeletionApiGetDataDeletionRequestsRequest { * The next page of the previous search. If the next_page parameter is included, the rest of the query elements are ignored. * @type string */ - nextPage?: string; + nextPage?: string /** * Retrieve only the requests related to the given product. * @type string */ - product?: string; + product?: string /** * Retrieve only the requests that matches the given query. * @type string */ - query?: string; + query?: string /** * Retrieve only the requests with the given status. * @type string */ - status?: string; + status?: string /** * Sets the page size of the search. * @type number */ - pageSize?: number; + pageSize?: number } export class DataDeletionApi { @@ -440,37 +321,21 @@ export class DataDeletionApi { private responseProcessor: DataDeletionApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DataDeletionApiRequestFactory, - responseProcessor?: DataDeletionApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DataDeletionApiRequestFactory, responseProcessor?: DataDeletionApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DataDeletionApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DataDeletionApiResponseProcessor(); + this.requestFactory = requestFactory || new DataDeletionApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DataDeletionApiResponseProcessor(); } /** * Cancels a data deletion request by providing its ID. * @param param The request object */ - public cancelDataDeletionRequest( - param: DataDeletionApiCancelDataDeletionRequestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cancelDataDeletionRequest( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cancelDataDeletionRequest( - responseContext - ); + public cancelDataDeletionRequest(param: DataDeletionApiCancelDataDeletionRequestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cancelDataDeletionRequest(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cancelDataDeletionRequest(responseContext); }); }); } @@ -479,22 +344,11 @@ export class DataDeletionApi { * Creates a data deletion request by providing a query and a timeframe targeting the proper data. * @param param The request object */ - public createDataDeletionRequest( - param: DataDeletionApiCreateDataDeletionRequestRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDataDeletionRequest( - param.product, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDataDeletionRequest( - responseContext - ); + public createDataDeletionRequest(param: DataDeletionApiCreateDataDeletionRequestRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDataDeletionRequest(param.product,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDataDeletionRequest(responseContext); }); }); } @@ -503,26 +357,12 @@ export class DataDeletionApi { * Gets a list of data deletion requests based on several filter parameters. * @param param The request object */ - public getDataDeletionRequests( - param: DataDeletionApiGetDataDeletionRequestsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDataDeletionRequests( - param.nextPage, - param.product, - param.query, - param.status, - param.pageSize, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDataDeletionRequests( - responseContext - ); + public getDataDeletionRequests(param: DataDeletionApiGetDataDeletionRequestsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDataDeletionRequests(param.nextPage,param.product,param.query,param.status,param.pageSize,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDataDeletionRequests(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/DomainAllowlistApi.ts b/packages/datadog-api-client-v2/apis/DomainAllowlistApi.ts index bc9cbf57a88f..1e6eb8593f18 100644 --- a/packages/datadog-api-client-v2/apis/DomainAllowlistApi.ts +++ b/packages/datadog-api-client-v2/apis/DomainAllowlistApi.ts @@ -1,76 +1,61 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { DomainAllowlistRequest } from "../models/DomainAllowlistRequest"; import { DomainAllowlistResponse } from "../models/DomainAllowlistResponse"; export class DomainAllowlistApiRequestFactory extends BaseAPIRequestFactory { - public async getDomainAllowlist( - _options?: Configuration - ): Promise { + + public async getDomainAllowlist(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/domain_allowlist"; + const localVarPath = '/api/v2/domain_allowlist'; // Make Request Context - const requestContext = _config - .getServer("v2.DomainAllowlistApi.getDomainAllowlist") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.DomainAllowlistApi.getDomainAllowlist').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async patchDomainAllowlist( - body: DomainAllowlistRequest, - _options?: Configuration - ): Promise { + public async patchDomainAllowlist(body: DomainAllowlistRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "patchDomainAllowlist"); + throw new RequiredError('body', 'patchDomainAllowlist'); } // Path Params - const localVarPath = "/api/v2/domain_allowlist"; + const localVarPath = '/api/v2/domain_allowlist'; // Make Request Context - const requestContext = _config - .getServer("v2.DomainAllowlistApi.patchDomainAllowlist") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.DomainAllowlistApi.patchDomainAllowlist').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DomainAllowlistRequest", ""), @@ -79,17 +64,14 @@ export class DomainAllowlistApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DomainAllowlistApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -97,12 +79,8 @@ export class DomainAllowlistApiResponseProcessor { * @params response Response returned by the server for a request to getDomainAllowlist * @throws ApiException if the response code was not in [200, 299] */ - public async getDomainAllowlist( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDomainAllowlist(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DomainAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -111,10 +89,7 @@ export class DomainAllowlistApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -123,11 +98,8 @@ export class DomainAllowlistApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -135,17 +107,13 @@ export class DomainAllowlistApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DomainAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DomainAllowlistResponse", - "" + "DomainAllowlistResponse", "" ) as DomainAllowlistResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -155,12 +123,8 @@ export class DomainAllowlistApiResponseProcessor { * @params response Response returned by the server for a request to patchDomainAllowlist * @throws ApiException if the response code was not in [200, 299] */ - public async patchDomainAllowlist( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async patchDomainAllowlist(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DomainAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -169,10 +133,7 @@ export class DomainAllowlistApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -181,11 +142,8 @@ export class DomainAllowlistApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -193,17 +151,13 @@ export class DomainAllowlistApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DomainAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DomainAllowlistResponse", - "" + "DomainAllowlistResponse", "" ) as DomainAllowlistResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -211,7 +165,7 @@ export interface DomainAllowlistApiPatchDomainAllowlistRequest { /** * @type DomainAllowlistRequest */ - body: DomainAllowlistRequest; + body: DomainAllowlistRequest } export class DomainAllowlistApi { @@ -219,32 +173,21 @@ export class DomainAllowlistApi { private responseProcessor: DomainAllowlistApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DomainAllowlistApiRequestFactory, - responseProcessor?: DomainAllowlistApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DomainAllowlistApiRequestFactory, responseProcessor?: DomainAllowlistApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DomainAllowlistApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DomainAllowlistApiResponseProcessor(); + this.requestFactory = requestFactory || new DomainAllowlistApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DomainAllowlistApiResponseProcessor(); } /** * Get the domain allowlist for an organization. * @param param The request object */ - public getDomainAllowlist( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getDomainAllowlist(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDomainAllowlist(responseContext); + public getDomainAllowlist( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDomainAllowlist(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDomainAllowlist(responseContext); }); }); } @@ -253,20 +196,12 @@ export class DomainAllowlistApi { * Update the domain allowlist for an organization. * @param param The request object */ - public patchDomainAllowlist( - param: DomainAllowlistApiPatchDomainAllowlistRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.patchDomainAllowlist( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.patchDomainAllowlist(responseContext); + public patchDomainAllowlist(param: DomainAllowlistApiPatchDomainAllowlistRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.patchDomainAllowlist(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.patchDomainAllowlist(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/DowntimesApi.ts b/packages/datadog-api-client-v2/apis/DowntimesApi.ts index b1359e6b9f53..219b58841db2 100644 --- a/packages/datadog-api-client-v2/apis/DowntimesApi.ts +++ b/packages/datadog-api-client-v2/apis/DowntimesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { DowntimeCreateRequest } from "../models/DowntimeCreateRequest"; import { DowntimeResponse } from "../models/DowntimeResponse"; @@ -26,65 +24,49 @@ import { MonitorDowntimeMatchResponse } from "../models/MonitorDowntimeMatchResp import { MonitorDowntimeMatchResponseData } from "../models/MonitorDowntimeMatchResponseData"; export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { - public async cancelDowntime( - downtimeId: string, - _options?: Configuration - ): Promise { + + public async cancelDowntime(downtimeId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'downtimeId' is not null or undefined if (downtimeId === null || downtimeId === undefined) { - throw new RequiredError("downtimeId", "cancelDowntime"); + throw new RequiredError('downtimeId', 'cancelDowntime'); } // Path Params - const localVarPath = "/api/v2/downtime/{downtime_id}".replace( - "{downtime_id}", - encodeURIComponent(String(downtimeId)) - ); + const localVarPath = '/api/v2/downtime/{downtime_id}' + .replace('{downtime_id}', encodeURIComponent(String(downtimeId))); // Make Request Context - const requestContext = _config - .getServer("v2.DowntimesApi.cancelDowntime") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.DowntimesApi.cancelDowntime').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createDowntime( - body: DowntimeCreateRequest, - _options?: Configuration - ): Promise { + public async createDowntime(body: DowntimeCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createDowntime"); + throw new RequiredError('body', 'createDowntime'); } // Path Params - const localVarPath = "/api/v2/downtime"; + const localVarPath = '/api/v2/downtime'; // Make Request Context - const requestContext = _config - .getServer("v2.DowntimesApi.createDowntime") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.DowntimesApi.createDowntime').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DowntimeCreateRequest", ""), @@ -93,205 +75,126 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getDowntime( - downtimeId: string, - include?: string, - _options?: Configuration - ): Promise { + public async getDowntime(downtimeId: string,include?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'downtimeId' is not null or undefined if (downtimeId === null || downtimeId === undefined) { - throw new RequiredError("downtimeId", "getDowntime"); + throw new RequiredError('downtimeId', 'getDowntime'); } // Path Params - const localVarPath = "/api/v2/downtime/{downtime_id}".replace( - "{downtime_id}", - encodeURIComponent(String(downtimeId)) - ); + const localVarPath = '/api/v2/downtime/{downtime_id}' + .replace('{downtime_id}', encodeURIComponent(String(downtimeId))); // Make Request Context - const requestContext = _config - .getServer("v2.DowntimesApi.getDowntime") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.DowntimesApi.getDowntime').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listDowntimes( - currentOnly?: boolean, - include?: string, - pageOffset?: number, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listDowntimes(currentOnly?: boolean,include?: string,pageOffset?: number,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/downtime"; + const localVarPath = '/api/v2/downtime'; // Make Request Context - const requestContext = _config - .getServer("v2.DowntimesApi.listDowntimes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.DowntimesApi.listDowntimes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (currentOnly !== undefined) { - requestContext.setQueryParam( - "current_only", - ObjectSerializer.serialize(currentOnly, "boolean", ""), - "" - ); + requestContext.setQueryParam("current_only", ObjectSerializer.serialize(currentOnly, "boolean", ""), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listMonitorDowntimes( - monitorId: number, - pageOffset?: number, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listMonitorDowntimes(monitorId: number,pageOffset?: number,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'monitorId' is not null or undefined if (monitorId === null || monitorId === undefined) { - throw new RequiredError("monitorId", "listMonitorDowntimes"); + throw new RequiredError('monitorId', 'listMonitorDowntimes'); } // Path Params - const localVarPath = - "/api/v2/monitor/{monitor_id}/downtime_matches".replace( - "{monitor_id}", - encodeURIComponent(String(monitorId)) - ); + const localVarPath = '/api/v2/monitor/{monitor_id}/downtime_matches' + .replace('{monitor_id}', encodeURIComponent(String(monitorId))); // Make Request Context - const requestContext = _config - .getServer("v2.DowntimesApi.listMonitorDowntimes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.DowntimesApi.listMonitorDowntimes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateDowntime( - downtimeId: string, - body: DowntimeUpdateRequest, - _options?: Configuration - ): Promise { + public async updateDowntime(downtimeId: string,body: DowntimeUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'downtimeId' is not null or undefined if (downtimeId === null || downtimeId === undefined) { - throw new RequiredError("downtimeId", "updateDowntime"); + throw new RequiredError('downtimeId', 'updateDowntime'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateDowntime"); + throw new RequiredError('body', 'updateDowntime'); } // Path Params - const localVarPath = "/api/v2/downtime/{downtime_id}".replace( - "{downtime_id}", - encodeURIComponent(String(downtimeId)) - ); + const localVarPath = '/api/v2/downtime/{downtime_id}' + .replace('{downtime_id}', encodeURIComponent(String(downtimeId))); // Make Request Context - const requestContext = _config - .getServer("v2.DowntimesApi.updateDowntime") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.DowntimesApi.updateDowntime').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "DowntimeUpdateRequest", ""), @@ -300,17 +203,14 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class DowntimesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -318,22 +218,13 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to cancelDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async cancelDowntime(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cancelDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -342,11 +233,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -354,17 +242,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -374,12 +258,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to createDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async createDowntime( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DowntimeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -387,15 +267,8 @@ export class DowntimesApiResponseProcessor { ) as DowntimeResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -404,11 +277,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -416,17 +286,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DowntimeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DowntimeResponse", - "" + "DowntimeResponse", "" ) as DowntimeResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -436,12 +302,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to getDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async getDowntime( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DowntimeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -449,16 +311,8 @@ export class DowntimesApiResponseProcessor { ) as DowntimeResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -467,11 +321,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -479,17 +330,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DowntimeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DowntimeResponse", - "" + "DowntimeResponse", "" ) as DowntimeResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -499,12 +346,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to listDowntimes * @throws ApiException if the response code was not in [200, 299] */ - public async listDowntimes( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listDowntimes(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListDowntimesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -512,11 +355,8 @@ export class DowntimesApiResponseProcessor { ) as ListDowntimesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -525,11 +365,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -537,17 +374,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListDowntimesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListDowntimesResponse", - "" + "ListDowntimesResponse", "" ) as ListDowntimesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -557,12 +390,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to listMonitorDowntimes * @throws ApiException if the response code was not in [200, 299] */ - public async listMonitorDowntimes( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listMonitorDowntimes(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonitorDowntimeMatchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -570,11 +399,8 @@ export class DowntimesApiResponseProcessor { ) as MonitorDowntimeMatchResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -583,11 +409,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -595,17 +418,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonitorDowntimeMatchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorDowntimeMatchResponse", - "" + "MonitorDowntimeMatchResponse", "" ) as MonitorDowntimeMatchResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -615,12 +434,8 @@ export class DowntimesApiResponseProcessor { * @params response Response returned by the server for a request to updateDowntime * @throws ApiException if the response code was not in [200, 299] */ - public async updateDowntime( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateDowntime(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: DowntimeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -628,16 +443,8 @@ export class DowntimesApiResponseProcessor { ) as DowntimeResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -646,11 +453,8 @@ export class DowntimesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -658,17 +462,13 @@ export class DowntimesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: DowntimeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "DowntimeResponse", - "" + "DowntimeResponse", "" ) as DowntimeResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -677,7 +477,7 @@ export interface DowntimesApiCancelDowntimeRequest { * ID of the downtime to cancel. * @type string */ - downtimeId: string; + downtimeId: string } export interface DowntimesApiCreateDowntimeRequest { @@ -685,7 +485,7 @@ export interface DowntimesApiCreateDowntimeRequest { * Schedule a downtime request body. * @type DowntimeCreateRequest */ - body: DowntimeCreateRequest; + body: DowntimeCreateRequest } export interface DowntimesApiGetDowntimeRequest { @@ -693,13 +493,13 @@ export interface DowntimesApiGetDowntimeRequest { * ID of the downtime to fetch. * @type string */ - downtimeId: string; + downtimeId: string /** * Comma-separated list of resource paths for related resources to include in the response. Supported resource * paths are `created_by` and `monitor`. * @type string */ - include?: string; + include?: string } export interface DowntimesApiListDowntimesRequest { @@ -707,23 +507,23 @@ export interface DowntimesApiListDowntimesRequest { * Only return downtimes that are active when the request is made. * @type boolean */ - currentOnly?: boolean; + currentOnly?: boolean /** * Comma-separated list of resource paths for related resources to include in the response. Supported resource * paths are `created_by` and `monitor`. * @type string */ - include?: string; + include?: string /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * Maximum number of downtimes in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface DowntimesApiListMonitorDowntimesRequest { @@ -731,17 +531,17 @@ export interface DowntimesApiListMonitorDowntimesRequest { * The id of the monitor. * @type number */ - monitorId: number; + monitorId: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * Maximum number of downtimes in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface DowntimesApiUpdateDowntimeRequest { @@ -749,12 +549,12 @@ export interface DowntimesApiUpdateDowntimeRequest { * ID of the downtime to update. * @type string */ - downtimeId: string; + downtimeId: string /** * Update a downtime request body. * @type DowntimeUpdateRequest */ - body: DowntimeUpdateRequest; + body: DowntimeUpdateRequest } export class DowntimesApi { @@ -762,37 +562,23 @@ export class DowntimesApi { private responseProcessor: DowntimesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: DowntimesApiRequestFactory, - responseProcessor?: DowntimesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: DowntimesApiRequestFactory, responseProcessor?: DowntimesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new DowntimesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new DowntimesApiResponseProcessor(); + this.requestFactory = requestFactory || new DowntimesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DowntimesApiResponseProcessor(); } /** * Cancel a downtime. - * + * * **Note**: Downtimes canceled through the API are no longer active, but are retained for approximately two days before being permanently removed. The downtime may still appear in search results until it is permanently removed. * @param param The request object */ - public cancelDowntime( - param: DowntimesApiCancelDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cancelDowntime( - param.downtimeId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cancelDowntime(responseContext); + public cancelDowntime(param: DowntimesApiCancelDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cancelDowntime(param.downtimeId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cancelDowntime(responseContext); }); }); } @@ -801,19 +587,11 @@ export class DowntimesApi { * Schedule a downtime. * @param param The request object */ - public createDowntime( - param: DowntimesApiCreateDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createDowntime( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createDowntime(responseContext); + public createDowntime(param: DowntimesApiCreateDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createDowntime(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createDowntime(responseContext); }); }); } @@ -822,20 +600,11 @@ export class DowntimesApi { * Get downtime detail by `downtime_id`. * @param param The request object */ - public getDowntime( - param: DowntimesApiGetDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDowntime( - param.downtimeId, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDowntime(responseContext); + public getDowntime(param: DowntimesApiGetDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDowntime(param.downtimeId,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDowntime(responseContext); }); }); } @@ -844,22 +613,11 @@ export class DowntimesApi { * Get all scheduled downtimes. * @param param The request object */ - public listDowntimes( - param: DowntimesApiListDowntimesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listDowntimes( - param.currentOnly, - param.include, - param.pageOffset, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listDowntimes(responseContext); + public listDowntimes(param: DowntimesApiListDowntimesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listDowntimes(param.currentOnly,param.include,param.pageOffset,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listDowntimes(responseContext); }); }); } @@ -867,30 +625,18 @@ export class DowntimesApi { /** * Provide a paginated version of listDowntimes returning a generator with all the items. */ - public async *listDowntimesWithPagination( - param: DowntimesApiListDowntimesRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listDowntimesWithPagination(param: DowntimesApiListDowntimesRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 30; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listDowntimes( - param.currentOnly, - param.include, - param.pageOffset, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listDowntimes( - responseContext - ); + const requestContext = await this.requestFactory.listDowntimes(param.currentOnly,param.include,param.pageOffset,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listDowntimes(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -914,21 +660,11 @@ export class DowntimesApi { * Get all active downtimes for the specified monitor. * @param param The request object */ - public listMonitorDowntimes( - param: DowntimesApiListMonitorDowntimesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listMonitorDowntimes( - param.monitorId, - param.pageOffset, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listMonitorDowntimes(responseContext); + public listMonitorDowntimes(param: DowntimesApiListMonitorDowntimesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listMonitorDowntimes(param.monitorId,param.pageOffset,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listMonitorDowntimes(responseContext); }); }); } @@ -936,29 +672,18 @@ export class DowntimesApi { /** * Provide a paginated version of listMonitorDowntimes returning a generator with all the items. */ - public async *listMonitorDowntimesWithPagination( - param: DowntimesApiListMonitorDowntimesRequest, - options?: Configuration - ): AsyncGenerator { + public async *listMonitorDowntimesWithPagination(param: DowntimesApiListMonitorDowntimesRequest, options?: Configuration): AsyncGenerator { + let pageSize = 30; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listMonitorDowntimes( - param.monitorId, - param.pageOffset, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listMonitorDowntimes( - responseContext - ); + const requestContext = await this.requestFactory.listMonitorDowntimes(param.monitorId,param.pageOffset,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listMonitorDowntimes(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -982,21 +707,12 @@ export class DowntimesApi { * Update a downtime by `downtime_id`. * @param param The request object */ - public updateDowntime( - param: DowntimesApiUpdateDowntimeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateDowntime( - param.downtimeId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateDowntime(responseContext); + public updateDowntime(param: DowntimesApiUpdateDowntimeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateDowntime(param.downtimeId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateDowntime(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/EventsApi.ts b/packages/datadog-api-client-v2/apis/EventsApi.ts index 02f640340e58..c1cc60374d12 100644 --- a/packages/datadog-api-client-v2/apis/EventsApi.ts +++ b/packages/datadog-api-client-v2/apis/EventsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { EventCreateRequestPayload } from "../models/EventCreateRequestPayload"; import { EventCreateResponsePayload } from "../models/EventCreateResponsePayload"; @@ -27,31 +25,26 @@ import { EventsSort } from "../models/EventsSort"; import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse"; export class EventsApiRequestFactory extends BaseAPIRequestFactory { - public async createEvent( - body: EventCreateRequestPayload, - _options?: Configuration - ): Promise { + + public async createEvent(body: EventCreateRequestPayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createEvent"); + throw new RequiredError('body', 'createEvent'); } // Path Params - const localVarPath = "/api/v2/events"; + const localVarPath = '/api/v2/events'; // Make Request Context - const requestContext = _config - .getServer("v2.EventsApi.createEvent") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.EventsApi.createEvent').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "EventCreateRequestPayload", ""), @@ -60,109 +53,62 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listEvents( - filterQuery?: string, - filterFrom?: string, - filterTo?: string, - sort?: EventsSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listEvents(filterQuery?: string,filterFrom?: string,filterTo?: string,sort?: EventsSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/events"; + const localVarPath = '/api/v2/events'; // Make Request Context - const requestContext = _config - .getServer("v2.EventsApi.listEvents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.EventsApi.listEvents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "string", ""), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "string", ""), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "string", ""), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "string", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "EventsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "EventsSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchEvents( - body?: EventsListRequest, - _options?: Configuration - ): Promise { + public async searchEvents(body?: EventsListRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/events/search"; + const localVarPath = '/api/v2/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.EventsApi.searchEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.EventsApi.searchEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "EventsListRequest", ""), @@ -171,16 +117,14 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class EventsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -188,12 +132,8 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to createEvent * @throws ApiException if the response code was not in [200, 299] */ - public async createEvent( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createEvent(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: EventCreateResponsePayload = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -201,11 +141,8 @@ export class EventsApiResponseProcessor { ) as EventCreateResponsePayload; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -214,21 +151,12 @@ export class EventsApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -237,11 +165,8 @@ export class EventsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -249,17 +174,13 @@ export class EventsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: EventCreateResponsePayload = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "EventCreateResponsePayload", - "" + "EventCreateResponsePayload", "" ) as EventCreateResponsePayload; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -269,12 +190,8 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to listEvents * @throws ApiException if the response code was not in [200, 299] */ - public async listEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: EventsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -282,15 +199,8 @@ export class EventsApiResponseProcessor { ) as EventsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -299,11 +209,8 @@ export class EventsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -311,17 +218,13 @@ export class EventsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: EventsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "EventsListResponse", - "" + "EventsListResponse", "" ) as EventsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -331,12 +234,8 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to searchEvents * @throws ApiException if the response code was not in [200, 299] */ - public async searchEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: EventsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -344,15 +243,8 @@ export class EventsApiResponseProcessor { ) as EventsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -361,11 +253,8 @@ export class EventsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -373,17 +262,13 @@ export class EventsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: EventsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "EventsListResponse", - "" + "EventsListResponse", "" ) as EventsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -392,7 +277,7 @@ export interface EventsApiCreateEventRequest { * Event request object * @type EventCreateRequestPayload */ - body: EventCreateRequestPayload; + body: EventCreateRequestPayload } export interface EventsApiListEventsRequest { @@ -400,39 +285,39 @@ export interface EventsApiListEventsRequest { * Search query following events syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Minimum timestamp for requested events, in milliseconds. * @type string */ - filterFrom?: string; + filterFrom?: string /** * Maximum timestamp for requested events, in milliseconds. * @type string */ - filterTo?: string; + filterTo?: string /** * Order of events in results. * @type EventsSort */ - sort?: EventsSort; + sort?: EventsSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of events in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface EventsApiSearchEventsRequest { /** * @type EventsListRequest */ - body?: EventsListRequest; + body?: EventsListRequest } export class EventsApi { @@ -440,39 +325,25 @@ export class EventsApi { private responseProcessor: EventsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: EventsApiRequestFactory, - responseProcessor?: EventsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: EventsApiRequestFactory, responseProcessor?: EventsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new EventsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new EventsApiResponseProcessor(); + this.requestFactory = requestFactory || new EventsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new EventsApiResponseProcessor(); } /** * This endpoint allows you to post events. - * + * * ✅ **Only events with the `change` category** are in General Availability. See [Change Tracking](https://docs.datadoghq.com/change_tracking) for more details. - * + * * ❌ For use cases involving other event categories, please use the V1 endpoint. * @param param The request object */ - public createEvent( - param: EventsApiCreateEventRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createEvent( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createEvent(responseContext); + public createEvent(param: EventsApiCreateEventRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createEvent(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createEvent(responseContext); }); }); } @@ -480,28 +351,15 @@ export class EventsApi { /** * List endpoint returns events that match an events search query. * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). - * + * * Use this endpoint to see your latest events. * @param param The request object */ - public listEvents( - param: EventsApiListEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listEvents(responseContext); + public listEvents(param: EventsApiListEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listEvents(responseContext); }); }); } @@ -509,28 +367,16 @@ export class EventsApi { /** * Provide a paginated version of listEvents returning a generator with all the items. */ - public async *listEventsWithPagination( - param: EventsApiListEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listEventsWithPagination(param: EventsApiListEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listEvents(responseContext); const responseData = response.data; @@ -564,23 +410,15 @@ export class EventsApi { /** * List endpoint returns events that match an events search query. * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). - * + * * Use this endpoint to build complex events filtering and search. * @param param The request object */ - public searchEvents( - param: EventsApiSearchEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchEvents( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchEvents(responseContext); + public searchEvents(param: EventsApiSearchEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchEvents(responseContext); }); }); } @@ -588,10 +426,8 @@ export class EventsApi { /** * Provide a paginated version of searchEvents returning a generator with all the items. */ - public async *searchEventsWithPagination( - param: EventsApiSearchEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *searchEventsWithPagination(param: EventsApiSearchEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.body === undefined) { param.body = new EventsListRequest(); @@ -604,17 +440,10 @@ export class EventsApi { } param.body.page.limit = pageSize; while (true) { - const requestContext = await this.requestFactory.searchEvents( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchEvents( - responseContext - ); + const requestContext = await this.requestFactory.searchEvents(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -642,4 +471,4 @@ export class EventsApi { param.body.page.cursor = cursorMetaPageAfter; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.ts b/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.ts index 1b53b144f335..e0be1ea92fed 100644 --- a/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { FastlyAccountCreateRequest } from "../models/FastlyAccountCreateRequest"; import { FastlyAccountResponse } from "../models/FastlyAccountResponse"; @@ -26,31 +24,26 @@ import { FastlyServiceResponse } from "../models/FastlyServiceResponse"; import { FastlyServicesResponse } from "../models/FastlyServicesResponse"; export class FastlyIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createFastlyAccount( - body: FastlyAccountCreateRequest, - _options?: Configuration - ): Promise { + + public async createFastlyAccount(body: FastlyAccountCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createFastlyAccount"); + throw new RequiredError('body', 'createFastlyAccount'); } // Path Params - const localVarPath = "/api/v2/integrations/fastly/accounts"; + const localVarPath = '/api/v2/integrations/fastly/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.createFastlyAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.createFastlyAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "FastlyAccountCreateRequest", ""), @@ -59,49 +52,36 @@ export class FastlyIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createFastlyService( - accountId: string, - body: FastlyServiceRequest, - _options?: Configuration - ): Promise { + public async createFastlyService(accountId: string,body: FastlyServiceRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "createFastlyService"); + throw new RequiredError('accountId', 'createFastlyService'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createFastlyService"); + throw new RequiredError('body', 'createFastlyService'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}/services".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}/services' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.createFastlyService") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.createFastlyService').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "FastlyServiceRequest", ""), @@ -110,253 +90,180 @@ export class FastlyIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteFastlyAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async deleteFastlyAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteFastlyAccount"); + throw new RequiredError('accountId', 'deleteFastlyAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.deleteFastlyAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.deleteFastlyAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteFastlyService( - accountId: string, - serviceId: string, - _options?: Configuration - ): Promise { + public async deleteFastlyService(accountId: string,serviceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteFastlyService"); + throw new RequiredError('accountId', 'deleteFastlyService'); } // verify required parameter 'serviceId' is not null or undefined if (serviceId === null || serviceId === undefined) { - throw new RequiredError("serviceId", "deleteFastlyService"); + throw new RequiredError('serviceId', 'deleteFastlyService'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}" - .replace("{account_id}", encodeURIComponent(String(accountId))) - .replace("{service_id}", encodeURIComponent(String(serviceId))); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))) + .replace('{service_id}', encodeURIComponent(String(serviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.deleteFastlyService") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.deleteFastlyService').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getFastlyAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async getFastlyAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "getFastlyAccount"); + throw new RequiredError('accountId', 'getFastlyAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.getFastlyAccount") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.getFastlyAccount').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getFastlyService( - accountId: string, - serviceId: string, - _options?: Configuration - ): Promise { + public async getFastlyService(accountId: string,serviceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "getFastlyService"); + throw new RequiredError('accountId', 'getFastlyService'); } // verify required parameter 'serviceId' is not null or undefined if (serviceId === null || serviceId === undefined) { - throw new RequiredError("serviceId", "getFastlyService"); + throw new RequiredError('serviceId', 'getFastlyService'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}" - .replace("{account_id}", encodeURIComponent(String(accountId))) - .replace("{service_id}", encodeURIComponent(String(serviceId))); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))) + .replace('{service_id}', encodeURIComponent(String(serviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.getFastlyService") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.getFastlyService').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listFastlyAccounts( - _options?: Configuration - ): Promise { + public async listFastlyAccounts(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integrations/fastly/accounts"; + const localVarPath = '/api/v2/integrations/fastly/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.listFastlyAccounts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.listFastlyAccounts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listFastlyServices( - accountId: string, - _options?: Configuration - ): Promise { + public async listFastlyServices(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "listFastlyServices"); + throw new RequiredError('accountId', 'listFastlyServices'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}/services".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}/services' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.listFastlyServices") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.listFastlyServices').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateFastlyAccount( - accountId: string, - body: FastlyAccountUpdateRequest, - _options?: Configuration - ): Promise { + public async updateFastlyAccount(accountId: string,body: FastlyAccountUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateFastlyAccount"); + throw new RequiredError('accountId', 'updateFastlyAccount'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateFastlyAccount"); + throw new RequiredError('body', 'updateFastlyAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.updateFastlyAccount") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.updateFastlyAccount').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "FastlyAccountUpdateRequest", ""), @@ -365,54 +272,42 @@ export class FastlyIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateFastlyService( - accountId: string, - serviceId: string, - body: FastlyServiceRequest, - _options?: Configuration - ): Promise { + public async updateFastlyService(accountId: string,serviceId: string,body: FastlyServiceRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateFastlyService"); + throw new RequiredError('accountId', 'updateFastlyService'); } // verify required parameter 'serviceId' is not null or undefined if (serviceId === null || serviceId === undefined) { - throw new RequiredError("serviceId", "updateFastlyService"); + throw new RequiredError('serviceId', 'updateFastlyService'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateFastlyService"); + throw new RequiredError('body', 'updateFastlyService'); } // Path Params - const localVarPath = - "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}" - .replace("{account_id}", encodeURIComponent(String(accountId))) - .replace("{service_id}", encodeURIComponent(String(serviceId))); + const localVarPath = '/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))) + .replace('{service_id}', encodeURIComponent(String(serviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.FastlyIntegrationApi.updateFastlyService") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.FastlyIntegrationApi.updateFastlyService').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "FastlyServiceRequest", ""), @@ -421,16 +316,14 @@ export class FastlyIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class FastlyIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -438,12 +331,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createFastlyAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createFastlyAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createFastlyAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: FastlyAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -451,16 +340,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -469,11 +350,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -481,17 +359,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyAccountResponse", - "" + "FastlyAccountResponse", "" ) as FastlyAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -501,12 +375,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createFastlyService * @throws ApiException if the response code was not in [200, 299] */ - public async createFastlyService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createFastlyService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: FastlyServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -514,16 +384,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -532,11 +394,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -544,17 +403,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyServiceResponse", - "" + "FastlyServiceResponse", "" ) as FastlyServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -564,23 +419,13 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteFastlyAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteFastlyAccount(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteFastlyAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -589,11 +434,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -601,17 +443,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -621,23 +459,13 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteFastlyService * @throws ApiException if the response code was not in [200, 299] */ - public async deleteFastlyService(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteFastlyService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -646,11 +474,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -658,17 +483,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -678,12 +499,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getFastlyAccount * @throws ApiException if the response code was not in [200, 299] */ - public async getFastlyAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getFastlyAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: FastlyAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -691,16 +508,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -709,11 +518,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -721,17 +527,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyAccountResponse", - "" + "FastlyAccountResponse", "" ) as FastlyAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -741,12 +543,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getFastlyService * @throws ApiException if the response code was not in [200, 299] */ - public async getFastlyService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getFastlyService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: FastlyServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -754,16 +552,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -772,11 +562,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -784,17 +571,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyServiceResponse", - "" + "FastlyServiceResponse", "" ) as FastlyServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -804,12 +587,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listFastlyAccounts * @throws ApiException if the response code was not in [200, 299] */ - public async listFastlyAccounts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listFastlyAccounts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: FastlyAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -817,16 +596,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyAccountsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -835,11 +606,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -847,17 +615,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyAccountsResponse", - "" + "FastlyAccountsResponse", "" ) as FastlyAccountsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -867,12 +631,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listFastlyServices * @throws ApiException if the response code was not in [200, 299] */ - public async listFastlyServices( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listFastlyServices(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: FastlyServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -880,16 +640,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyServicesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -898,11 +650,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -910,17 +659,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyServicesResponse", - "" + "FastlyServicesResponse", "" ) as FastlyServicesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -930,12 +675,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateFastlyAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateFastlyAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateFastlyAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: FastlyAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -943,16 +684,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -961,11 +694,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -973,17 +703,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyAccountResponse", - "" + "FastlyAccountResponse", "" ) as FastlyAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -993,12 +719,8 @@ export class FastlyIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateFastlyService * @throws ApiException if the response code was not in [200, 299] */ - public async updateFastlyService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateFastlyService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: FastlyServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1006,16 +728,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as FastlyServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1024,11 +738,8 @@ export class FastlyIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1036,17 +747,13 @@ export class FastlyIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: FastlyServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "FastlyServiceResponse", - "" + "FastlyServiceResponse", "" ) as FastlyServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1054,7 +761,7 @@ export interface FastlyIntegrationApiCreateFastlyAccountRequest { /** * @type FastlyAccountCreateRequest */ - body: FastlyAccountCreateRequest; + body: FastlyAccountCreateRequest } export interface FastlyIntegrationApiCreateFastlyServiceRequest { @@ -1062,11 +769,11 @@ export interface FastlyIntegrationApiCreateFastlyServiceRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string /** * @type FastlyServiceRequest */ - body: FastlyServiceRequest; + body: FastlyServiceRequest } export interface FastlyIntegrationApiDeleteFastlyAccountRequest { @@ -1074,7 +781,7 @@ export interface FastlyIntegrationApiDeleteFastlyAccountRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string } export interface FastlyIntegrationApiDeleteFastlyServiceRequest { @@ -1082,12 +789,12 @@ export interface FastlyIntegrationApiDeleteFastlyServiceRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string /** * Fastly Service ID. * @type string */ - serviceId: string; + serviceId: string } export interface FastlyIntegrationApiGetFastlyAccountRequest { @@ -1095,7 +802,7 @@ export interface FastlyIntegrationApiGetFastlyAccountRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string } export interface FastlyIntegrationApiGetFastlyServiceRequest { @@ -1103,12 +810,12 @@ export interface FastlyIntegrationApiGetFastlyServiceRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string /** * Fastly Service ID. * @type string */ - serviceId: string; + serviceId: string } export interface FastlyIntegrationApiListFastlyServicesRequest { @@ -1116,7 +823,7 @@ export interface FastlyIntegrationApiListFastlyServicesRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string } export interface FastlyIntegrationApiUpdateFastlyAccountRequest { @@ -1124,11 +831,11 @@ export interface FastlyIntegrationApiUpdateFastlyAccountRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string /** * @type FastlyAccountUpdateRequest */ - body: FastlyAccountUpdateRequest; + body: FastlyAccountUpdateRequest } export interface FastlyIntegrationApiUpdateFastlyServiceRequest { @@ -1136,16 +843,16 @@ export interface FastlyIntegrationApiUpdateFastlyServiceRequest { * Fastly Account id. * @type string */ - accountId: string; + accountId: string /** * Fastly Service ID. * @type string */ - serviceId: string; + serviceId: string /** * @type FastlyServiceRequest */ - body: FastlyServiceRequest; + body: FastlyServiceRequest } export class FastlyIntegrationApi { @@ -1153,35 +860,21 @@ export class FastlyIntegrationApi { private responseProcessor: FastlyIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: FastlyIntegrationApiRequestFactory, - responseProcessor?: FastlyIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: FastlyIntegrationApiRequestFactory, responseProcessor?: FastlyIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new FastlyIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new FastlyIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new FastlyIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new FastlyIntegrationApiResponseProcessor(); } /** * Create a Fastly account. * @param param The request object */ - public createFastlyAccount( - param: FastlyIntegrationApiCreateFastlyAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createFastlyAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createFastlyAccount(responseContext); + public createFastlyAccount(param: FastlyIntegrationApiCreateFastlyAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createFastlyAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createFastlyAccount(responseContext); }); }); } @@ -1190,20 +883,11 @@ export class FastlyIntegrationApi { * Create a Fastly service for an account. * @param param The request object */ - public createFastlyService( - param: FastlyIntegrationApiCreateFastlyServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createFastlyService( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createFastlyService(responseContext); + public createFastlyService(param: FastlyIntegrationApiCreateFastlyServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createFastlyService(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createFastlyService(responseContext); }); }); } @@ -1212,19 +896,11 @@ export class FastlyIntegrationApi { * Delete a Fastly account. * @param param The request object */ - public deleteFastlyAccount( - param: FastlyIntegrationApiDeleteFastlyAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteFastlyAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteFastlyAccount(responseContext); + public deleteFastlyAccount(param: FastlyIntegrationApiDeleteFastlyAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteFastlyAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteFastlyAccount(responseContext); }); }); } @@ -1233,20 +909,11 @@ export class FastlyIntegrationApi { * Delete a Fastly service for an account. * @param param The request object */ - public deleteFastlyService( - param: FastlyIntegrationApiDeleteFastlyServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteFastlyService( - param.accountId, - param.serviceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteFastlyService(responseContext); + public deleteFastlyService(param: FastlyIntegrationApiDeleteFastlyServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteFastlyService(param.accountId,param.serviceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteFastlyService(responseContext); }); }); } @@ -1255,19 +922,11 @@ export class FastlyIntegrationApi { * Get a Fastly account. * @param param The request object */ - public getFastlyAccount( - param: FastlyIntegrationApiGetFastlyAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getFastlyAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getFastlyAccount(responseContext); + public getFastlyAccount(param: FastlyIntegrationApiGetFastlyAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getFastlyAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getFastlyAccount(responseContext); }); }); } @@ -1276,20 +935,11 @@ export class FastlyIntegrationApi { * Get a Fastly service for an account. * @param param The request object */ - public getFastlyService( - param: FastlyIntegrationApiGetFastlyServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getFastlyService( - param.accountId, - param.serviceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getFastlyService(responseContext); + public getFastlyService(param: FastlyIntegrationApiGetFastlyServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getFastlyService(param.accountId,param.serviceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getFastlyService(responseContext); }); }); } @@ -1298,16 +948,11 @@ export class FastlyIntegrationApi { * List Fastly accounts. * @param param The request object */ - public listFastlyAccounts( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listFastlyAccounts(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listFastlyAccounts(responseContext); + public listFastlyAccounts( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listFastlyAccounts(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listFastlyAccounts(responseContext); }); }); } @@ -1316,19 +961,11 @@ export class FastlyIntegrationApi { * List Fastly services for an account. * @param param The request object */ - public listFastlyServices( - param: FastlyIntegrationApiListFastlyServicesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listFastlyServices( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listFastlyServices(responseContext); + public listFastlyServices(param: FastlyIntegrationApiListFastlyServicesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listFastlyServices(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listFastlyServices(responseContext); }); }); } @@ -1337,20 +974,11 @@ export class FastlyIntegrationApi { * Update a Fastly account. * @param param The request object */ - public updateFastlyAccount( - param: FastlyIntegrationApiUpdateFastlyAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateFastlyAccount( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateFastlyAccount(responseContext); + public updateFastlyAccount(param: FastlyIntegrationApiUpdateFastlyAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateFastlyAccount(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateFastlyAccount(responseContext); }); }); } @@ -1359,22 +987,12 @@ export class FastlyIntegrationApi { * Update a Fastly service for an account. * @param param The request object */ - public updateFastlyService( - param: FastlyIntegrationApiUpdateFastlyServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateFastlyService( - param.accountId, - param.serviceId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateFastlyService(responseContext); + public updateFastlyService(param: FastlyIntegrationApiUpdateFastlyServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateFastlyService(param.accountId,param.serviceId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateFastlyService(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/GCPIntegrationApi.ts b/packages/datadog-api-client-v2/apis/GCPIntegrationApi.ts index 314fdefaa00c..67f520f50739 100644 --- a/packages/datadog-api-client-v2/apis/GCPIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/GCPIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { GCPSTSDelegateAccountResponse } from "../models/GCPSTSDelegateAccountResponse"; import { GCPSTSServiceAccountCreateRequest } from "../models/GCPSTSServiceAccountCreateRequest"; @@ -24,31 +22,26 @@ import { GCPSTSServiceAccountsResponse } from "../models/GCPSTSServiceAccountsRe import { GCPSTSServiceAccountUpdateRequest } from "../models/GCPSTSServiceAccountUpdateRequest"; export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createGCPSTSAccount( - body: GCPSTSServiceAccountCreateRequest, - _options?: Configuration - ): Promise { + + public async createGCPSTSAccount(body: GCPSTSServiceAccountCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createGCPSTSAccount"); + throw new RequiredError('body', 'createGCPSTSAccount'); } // Path Params - const localVarPath = "/api/v2/integration/gcp/accounts"; + const localVarPath = '/api/v2/integration/gcp/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.GCPIntegrationApi.createGCPSTSAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.GCPIntegrationApi.createGCPSTSAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "GCPSTSServiceAccountCreateRequest", ""), @@ -57,116 +50,82 @@ export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteGCPSTSAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async deleteGCPSTSAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteGCPSTSAccount"); + throw new RequiredError('accountId', 'deleteGCPSTSAccount'); } // Path Params - const localVarPath = - "/api/v2/integration/gcp/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integration/gcp/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.GCPIntegrationApi.deleteGCPSTSAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.GCPIntegrationApi.deleteGCPSTSAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getGCPSTSDelegate( - _options?: Configuration - ): Promise { + public async getGCPSTSDelegate(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integration/gcp/sts_delegate"; + const localVarPath = '/api/v2/integration/gcp/sts_delegate'; // Make Request Context - const requestContext = _config - .getServer("v2.GCPIntegrationApi.getGCPSTSDelegate") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.GCPIntegrationApi.getGCPSTSDelegate').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listGCPSTSAccounts( - _options?: Configuration - ): Promise { + public async listGCPSTSAccounts(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integration/gcp/accounts"; + const localVarPath = '/api/v2/integration/gcp/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.GCPIntegrationApi.listGCPSTSAccounts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.GCPIntegrationApi.listGCPSTSAccounts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async makeGCPSTSDelegate( - body?: any, - _options?: Configuration - ): Promise { + public async makeGCPSTSDelegate(body?: any,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integration/gcp/sts_delegate"; + const localVarPath = '/api/v2/integration/gcp/sts_delegate'; // Make Request Context - const requestContext = _config - .getServer("v2.GCPIntegrationApi.makeGCPSTSDelegate") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.GCPIntegrationApi.makeGCPSTSDelegate').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "any", ""), @@ -175,49 +134,36 @@ export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateGCPSTSAccount( - accountId: string, - body: GCPSTSServiceAccountUpdateRequest, - _options?: Configuration - ): Promise { + public async updateGCPSTSAccount(accountId: string,body: GCPSTSServiceAccountUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateGCPSTSAccount"); + throw new RequiredError('accountId', 'updateGCPSTSAccount'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateGCPSTSAccount"); + throw new RequiredError('body', 'updateGCPSTSAccount'); } // Path Params - const localVarPath = - "/api/v2/integration/gcp/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integration/gcp/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.GCPIntegrationApi.updateGCPSTSAccount") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.GCPIntegrationApi.updateGCPSTSAccount').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "GCPSTSServiceAccountUpdateRequest", ""), @@ -226,16 +172,14 @@ export class GCPIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class GCPIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -243,12 +187,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createGCPSTSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createGCPSTSAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createGCPSTSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: GCPSTSServiceAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -256,17 +196,8 @@ export class GCPIntegrationApiResponseProcessor { ) as GCPSTSServiceAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -275,11 +206,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -287,17 +215,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GCPSTSServiceAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GCPSTSServiceAccountResponse", - "" + "GCPSTSServiceAccountResponse", "" ) as GCPSTSServiceAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -307,22 +231,13 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteGCPSTSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteGCPSTSAccount(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteGCPSTSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -331,11 +246,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -343,17 +255,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -363,12 +271,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getGCPSTSDelegate * @throws ApiException if the response code was not in [200, 299] */ - public async getGCPSTSDelegate( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getGCPSTSDelegate(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GCPSTSDelegateAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -376,11 +280,8 @@ export class GCPIntegrationApiResponseProcessor { ) as GCPSTSDelegateAccountResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -389,11 +290,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -401,17 +299,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GCPSTSDelegateAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GCPSTSDelegateAccountResponse", - "" + "GCPSTSDelegateAccountResponse", "" ) as GCPSTSDelegateAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -421,12 +315,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listGCPSTSAccounts * @throws ApiException if the response code was not in [200, 299] */ - public async listGCPSTSAccounts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listGCPSTSAccounts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GCPSTSServiceAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -434,15 +324,8 @@ export class GCPIntegrationApiResponseProcessor { ) as GCPSTSServiceAccountsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -451,11 +334,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -463,17 +343,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GCPSTSServiceAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GCPSTSServiceAccountsResponse", - "" + "GCPSTSServiceAccountsResponse", "" ) as GCPSTSServiceAccountsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -483,12 +359,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to makeGCPSTSDelegate * @throws ApiException if the response code was not in [200, 299] */ - public async makeGCPSTSDelegate( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async makeGCPSTSDelegate(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GCPSTSDelegateAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -496,15 +368,8 @@ export class GCPIntegrationApiResponseProcessor { ) as GCPSTSDelegateAccountResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -513,11 +378,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -525,17 +387,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GCPSTSDelegateAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GCPSTSDelegateAccountResponse", - "" + "GCPSTSDelegateAccountResponse", "" ) as GCPSTSDelegateAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -545,12 +403,8 @@ export class GCPIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateGCPSTSAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateGCPSTSAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateGCPSTSAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: GCPSTSServiceAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -558,16 +412,8 @@ export class GCPIntegrationApiResponseProcessor { ) as GCPSTSServiceAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -576,11 +422,8 @@ export class GCPIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -588,17 +431,13 @@ export class GCPIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GCPSTSServiceAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GCPSTSServiceAccountResponse", - "" + "GCPSTSServiceAccountResponse", "" ) as GCPSTSServiceAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -606,7 +445,7 @@ export interface GCPIntegrationApiCreateGCPSTSAccountRequest { /** * @type GCPSTSServiceAccountCreateRequest */ - body: GCPSTSServiceAccountCreateRequest; + body: GCPSTSServiceAccountCreateRequest } export interface GCPIntegrationApiDeleteGCPSTSAccountRequest { @@ -614,7 +453,7 @@ export interface GCPIntegrationApiDeleteGCPSTSAccountRequest { * Your GCP STS enabled service account's unique ID. * @type string */ - accountId: string; + accountId: string } export interface GCPIntegrationApiMakeGCPSTSDelegateRequest { @@ -622,7 +461,7 @@ export interface GCPIntegrationApiMakeGCPSTSDelegateRequest { * Create a delegate service account within Datadog. * @type any */ - body?: any; + body?: any } export interface GCPIntegrationApiUpdateGCPSTSAccountRequest { @@ -630,11 +469,11 @@ export interface GCPIntegrationApiUpdateGCPSTSAccountRequest { * Your GCP STS enabled service account's unique ID. * @type string */ - accountId: string; + accountId: string /** * @type GCPSTSServiceAccountUpdateRequest */ - body: GCPSTSServiceAccountUpdateRequest; + body: GCPSTSServiceAccountUpdateRequest } export class GCPIntegrationApi { @@ -642,35 +481,21 @@ export class GCPIntegrationApi { private responseProcessor: GCPIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: GCPIntegrationApiRequestFactory, - responseProcessor?: GCPIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: GCPIntegrationApiRequestFactory, responseProcessor?: GCPIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new GCPIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new GCPIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new GCPIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new GCPIntegrationApiResponseProcessor(); } /** * Create a new entry within Datadog for your STS enabled service account. * @param param The request object */ - public createGCPSTSAccount( - param: GCPIntegrationApiCreateGCPSTSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createGCPSTSAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createGCPSTSAccount(responseContext); + public createGCPSTSAccount(param: GCPIntegrationApiCreateGCPSTSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createGCPSTSAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createGCPSTSAccount(responseContext); }); }); } @@ -679,19 +504,11 @@ export class GCPIntegrationApi { * Delete an STS enabled GCP account from within Datadog. * @param param The request object */ - public deleteGCPSTSAccount( - param: GCPIntegrationApiDeleteGCPSTSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteGCPSTSAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteGCPSTSAccount(responseContext); + public deleteGCPSTSAccount(param: GCPIntegrationApiDeleteGCPSTSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteGCPSTSAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteGCPSTSAccount(responseContext); }); }); } @@ -700,16 +517,11 @@ export class GCPIntegrationApi { * List your Datadog-GCP STS delegate account configured in your Datadog account. * @param param The request object */ - public getGCPSTSDelegate( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getGCPSTSDelegate(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getGCPSTSDelegate(responseContext); + public getGCPSTSDelegate( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getGCPSTSDelegate(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getGCPSTSDelegate(responseContext); }); }); } @@ -718,16 +530,11 @@ export class GCPIntegrationApi { * List all GCP STS-enabled service accounts configured in your Datadog account. * @param param The request object */ - public listGCPSTSAccounts( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listGCPSTSAccounts(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listGCPSTSAccounts(responseContext); + public listGCPSTSAccounts( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listGCPSTSAccounts(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listGCPSTSAccounts(responseContext); }); }); } @@ -736,19 +543,11 @@ export class GCPIntegrationApi { * Create a Datadog GCP principal. * @param param The request object */ - public makeGCPSTSDelegate( - param: GCPIntegrationApiMakeGCPSTSDelegateRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.makeGCPSTSDelegate( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.makeGCPSTSDelegate(responseContext); + public makeGCPSTSDelegate(param: GCPIntegrationApiMakeGCPSTSDelegateRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.makeGCPSTSDelegate(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.makeGCPSTSDelegate(responseContext); }); }); } @@ -757,21 +556,12 @@ export class GCPIntegrationApi { * Update an STS enabled service account. * @param param The request object */ - public updateGCPSTSAccount( - param: GCPIntegrationApiUpdateGCPSTSAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateGCPSTSAccount( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateGCPSTSAccount(responseContext); + public updateGCPSTSAccount(param: GCPIntegrationApiUpdateGCPSTSAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateGCPSTSAccount(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateGCPSTSAccount(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/IPAllowlistApi.ts b/packages/datadog-api-client-v2/apis/IPAllowlistApi.ts index 92f586112b5f..10537adb7030 100644 --- a/packages/datadog-api-client-v2/apis/IPAllowlistApi.ts +++ b/packages/datadog-api-client-v2/apis/IPAllowlistApi.ts @@ -1,76 +1,61 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IPAllowlistResponse } from "../models/IPAllowlistResponse"; import { IPAllowlistUpdateRequest } from "../models/IPAllowlistUpdateRequest"; export class IPAllowlistApiRequestFactory extends BaseAPIRequestFactory { - public async getIPAllowlist( - _options?: Configuration - ): Promise { + + public async getIPAllowlist(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/ip_allowlist"; + const localVarPath = '/api/v2/ip_allowlist'; // Make Request Context - const requestContext = _config - .getServer("v2.IPAllowlistApi.getIPAllowlist") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IPAllowlistApi.getIPAllowlist').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIPAllowlist( - body: IPAllowlistUpdateRequest, - _options?: Configuration - ): Promise { + public async updateIPAllowlist(body: IPAllowlistUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIPAllowlist"); + throw new RequiredError('body', 'updateIPAllowlist'); } // Path Params - const localVarPath = "/api/v2/ip_allowlist"; + const localVarPath = '/api/v2/ip_allowlist'; // Make Request Context - const requestContext = _config - .getServer("v2.IPAllowlistApi.updateIPAllowlist") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IPAllowlistApi.updateIPAllowlist').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IPAllowlistUpdateRequest", ""), @@ -79,17 +64,14 @@ export class IPAllowlistApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class IPAllowlistApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -97,12 +79,8 @@ export class IPAllowlistApiResponseProcessor { * @params response Response returned by the server for a request to getIPAllowlist * @throws ApiException if the response code was not in [200, 299] */ - public async getIPAllowlist( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIPAllowlist(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IPAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -110,15 +88,8 @@ export class IPAllowlistApiResponseProcessor { ) as IPAllowlistResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -127,11 +98,8 @@ export class IPAllowlistApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -139,17 +107,13 @@ export class IPAllowlistApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IPAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IPAllowlistResponse", - "" + "IPAllowlistResponse", "" ) as IPAllowlistResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -159,12 +123,8 @@ export class IPAllowlistApiResponseProcessor { * @params response Response returned by the server for a request to updateIPAllowlist * @throws ApiException if the response code was not in [200, 299] */ - public async updateIPAllowlist( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIPAllowlist(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IPAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -172,16 +132,8 @@ export class IPAllowlistApiResponseProcessor { ) as IPAllowlistResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -190,11 +142,8 @@ export class IPAllowlistApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -202,17 +151,13 @@ export class IPAllowlistApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IPAllowlistResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IPAllowlistResponse", - "" + "IPAllowlistResponse", "" ) as IPAllowlistResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -220,7 +165,7 @@ export interface IPAllowlistApiUpdateIPAllowlistRequest { /** * @type IPAllowlistUpdateRequest */ - body: IPAllowlistUpdateRequest; + body: IPAllowlistUpdateRequest } export class IPAllowlistApi { @@ -228,29 +173,21 @@ export class IPAllowlistApi { private responseProcessor: IPAllowlistApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: IPAllowlistApiRequestFactory, - responseProcessor?: IPAllowlistApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: IPAllowlistApiRequestFactory, responseProcessor?: IPAllowlistApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new IPAllowlistApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new IPAllowlistApiResponseProcessor(); + this.requestFactory = requestFactory || new IPAllowlistApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new IPAllowlistApiResponseProcessor(); } /** * Returns the IP allowlist and its enabled or disabled state. * @param param The request object */ - public getIPAllowlist(options?: Configuration): Promise { + public getIPAllowlist( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.getIPAllowlist(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIPAllowlist(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIPAllowlist(responseContext); }); }); } @@ -259,20 +196,12 @@ export class IPAllowlistApi { * Edit the entries in the IP allowlist, and enable or disable it. * @param param The request object */ - public updateIPAllowlist( - param: IPAllowlistApiUpdateIPAllowlistRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIPAllowlist( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIPAllowlist(responseContext); + public updateIPAllowlist(param: IPAllowlistApiUpdateIPAllowlistRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIPAllowlist(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIPAllowlist(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts b/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts index a348f5907a67..76d7c1d5936a 100644 --- a/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts +++ b/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IncidentRelatedObject } from "../models/IncidentRelatedObject"; import { IncidentServiceCreateRequest } from "../models/IncidentServiceCreateRequest"; @@ -24,36 +22,31 @@ import { IncidentServicesResponse } from "../models/IncidentServicesResponse"; import { IncidentServiceUpdateRequest } from "../models/IncidentServiceUpdateRequest"; export class IncidentServicesApiRequestFactory extends BaseAPIRequestFactory { - public async createIncidentService( - body: IncidentServiceCreateRequest, - _options?: Configuration - ): Promise { + + public async createIncidentService(body: IncidentServiceCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createIncidentService'"); - if (!_config.unstableOperations["v2.createIncidentService"]) { + if (!_config.unstableOperations['v2.createIncidentService']) { throw new Error("Unstable operation 'createIncidentService' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createIncidentService"); + throw new RequiredError('body', 'createIncidentService'); } // Path Params - const localVarPath = "/api/v2/services"; + const localVarPath = '/api/v2/services'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentServicesApi.createIncidentService") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.IncidentServicesApi.createIncidentService').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentServiceCreateRequest", ""), @@ -62,206 +55,138 @@ export class IncidentServicesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteIncidentService( - serviceId: string, - _options?: Configuration - ): Promise { + public async deleteIncidentService(serviceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteIncidentService'"); - if (!_config.unstableOperations["v2.deleteIncidentService"]) { + if (!_config.unstableOperations['v2.deleteIncidentService']) { throw new Error("Unstable operation 'deleteIncidentService' is disabled"); } // verify required parameter 'serviceId' is not null or undefined if (serviceId === null || serviceId === undefined) { - throw new RequiredError("serviceId", "deleteIncidentService"); + throw new RequiredError('serviceId', 'deleteIncidentService'); } // Path Params - const localVarPath = "/api/v2/services/{service_id}".replace( - "{service_id}", - encodeURIComponent(String(serviceId)) - ); + const localVarPath = '/api/v2/services/{service_id}' + .replace('{service_id}', encodeURIComponent(String(serviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentServicesApi.deleteIncidentService") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.IncidentServicesApi.deleteIncidentService').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncidentService( - serviceId: string, - include?: IncidentRelatedObject, - _options?: Configuration - ): Promise { + public async getIncidentService(serviceId: string,include?: IncidentRelatedObject,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getIncidentService'"); - if (!_config.unstableOperations["v2.getIncidentService"]) { + if (!_config.unstableOperations['v2.getIncidentService']) { throw new Error("Unstable operation 'getIncidentService' is disabled"); } // verify required parameter 'serviceId' is not null or undefined if (serviceId === null || serviceId === undefined) { - throw new RequiredError("serviceId", "getIncidentService"); + throw new RequiredError('serviceId', 'getIncidentService'); } // Path Params - const localVarPath = "/api/v2/services/{service_id}".replace( - "{service_id}", - encodeURIComponent(String(serviceId)) - ); + const localVarPath = '/api/v2/services/{service_id}' + .replace('{service_id}', encodeURIComponent(String(serviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentServicesApi.getIncidentService") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentServicesApi.getIncidentService').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidentServices( - include?: IncidentRelatedObject, - pageSize?: number, - pageOffset?: number, - filter?: string, - _options?: Configuration - ): Promise { + public async listIncidentServices(include?: IncidentRelatedObject,pageSize?: number,pageOffset?: number,filter?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidentServices'"); - if (!_config.unstableOperations["v2.listIncidentServices"]) { + if (!_config.unstableOperations['v2.listIncidentServices']) { throw new Error("Unstable operation 'listIncidentServices' is disabled"); } // Path Params - const localVarPath = "/api/v2/services"; + const localVarPath = '/api/v2/services'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentServicesApi.listIncidentServices") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentServicesApi.listIncidentServices').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncidentService( - serviceId: string, - body: IncidentServiceUpdateRequest, - _options?: Configuration - ): Promise { + public async updateIncidentService(serviceId: string,body: IncidentServiceUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncidentService'"); - if (!_config.unstableOperations["v2.updateIncidentService"]) { + if (!_config.unstableOperations['v2.updateIncidentService']) { throw new Error("Unstable operation 'updateIncidentService' is disabled"); } // verify required parameter 'serviceId' is not null or undefined if (serviceId === null || serviceId === undefined) { - throw new RequiredError("serviceId", "updateIncidentService"); + throw new RequiredError('serviceId', 'updateIncidentService'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncidentService"); + throw new RequiredError('body', 'updateIncidentService'); } // Path Params - const localVarPath = "/api/v2/services/{service_id}".replace( - "{service_id}", - encodeURIComponent(String(serviceId)) - ); + const localVarPath = '/api/v2/services/{service_id}' + .replace('{service_id}', encodeURIComponent(String(serviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentServicesApi.updateIncidentService") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentServicesApi.updateIncidentService').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentServiceUpdateRequest", ""), @@ -270,17 +195,14 @@ export class IncidentServicesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class IncidentServicesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -288,12 +210,8 @@ export class IncidentServicesApiResponseProcessor { * @params response Response returned by the server for a request to createIncidentService * @throws ApiException if the response code was not in [200, 299] */ - public async createIncidentService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createIncidentService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: IncidentServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -301,17 +219,8 @@ export class IncidentServicesApiResponseProcessor { ) as IncidentServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -320,11 +229,8 @@ export class IncidentServicesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -332,17 +238,13 @@ export class IncidentServicesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentServiceResponse", - "" + "IncidentServiceResponse", "" ) as IncidentServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -352,24 +254,13 @@ export class IncidentServicesApiResponseProcessor { * @params response Response returned by the server for a request to deleteIncidentService * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIncidentService(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteIncidentService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -378,11 +269,8 @@ export class IncidentServicesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -390,17 +278,13 @@ export class IncidentServicesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -410,12 +294,8 @@ export class IncidentServicesApiResponseProcessor { * @params response Response returned by the server for a request to getIncidentService * @throws ApiException if the response code was not in [200, 299] */ - public async getIncidentService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncidentService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -423,17 +303,8 @@ export class IncidentServicesApiResponseProcessor { ) as IncidentServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -442,11 +313,8 @@ export class IncidentServicesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -454,17 +322,13 @@ export class IncidentServicesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentServiceResponse", - "" + "IncidentServiceResponse", "" ) as IncidentServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -474,12 +338,8 @@ export class IncidentServicesApiResponseProcessor { * @params response Response returned by the server for a request to listIncidentServices * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidentServices( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidentServices(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -487,17 +347,8 @@ export class IncidentServicesApiResponseProcessor { ) as IncidentServicesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -506,11 +357,8 @@ export class IncidentServicesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -518,17 +366,13 @@ export class IncidentServicesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentServicesResponse", - "" + "IncidentServicesResponse", "" ) as IncidentServicesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -538,12 +382,8 @@ export class IncidentServicesApiResponseProcessor { * @params response Response returned by the server for a request to updateIncidentService * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncidentService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncidentService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -551,17 +391,8 @@ export class IncidentServicesApiResponseProcessor { ) as IncidentServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -570,11 +401,8 @@ export class IncidentServicesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -582,17 +410,13 @@ export class IncidentServicesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentServiceResponse", - "" + "IncidentServiceResponse", "" ) as IncidentServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -601,7 +425,7 @@ export interface IncidentServicesApiCreateIncidentServiceRequest { * Incident Service Payload. * @type IncidentServiceCreateRequest */ - body: IncidentServiceCreateRequest; + body: IncidentServiceCreateRequest } export interface IncidentServicesApiDeleteIncidentServiceRequest { @@ -609,7 +433,7 @@ export interface IncidentServicesApiDeleteIncidentServiceRequest { * The ID of the incident service. * @type string */ - serviceId: string; + serviceId: string } export interface IncidentServicesApiGetIncidentServiceRequest { @@ -617,12 +441,12 @@ export interface IncidentServicesApiGetIncidentServiceRequest { * The ID of the incident service. * @type string */ - serviceId: string; + serviceId: string /** * Specifies which types of related objects should be included in the response. * @type IncidentRelatedObject */ - include?: IncidentRelatedObject; + include?: IncidentRelatedObject } export interface IncidentServicesApiListIncidentServicesRequest { @@ -630,22 +454,22 @@ export interface IncidentServicesApiListIncidentServicesRequest { * Specifies which types of related objects should be included in the response. * @type IncidentRelatedObject */ - include?: IncidentRelatedObject; + include?: IncidentRelatedObject /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * A search query that filters services by name. * @type string */ - filter?: string; + filter?: string } export interface IncidentServicesApiUpdateIncidentServiceRequest { @@ -653,12 +477,12 @@ export interface IncidentServicesApiUpdateIncidentServiceRequest { * The ID of the incident service. * @type string */ - serviceId: string; + serviceId: string /** * Incident Service Payload. * @type IncidentServiceUpdateRequest */ - body: IncidentServiceUpdateRequest; + body: IncidentServiceUpdateRequest } export class IncidentServicesApi { @@ -666,35 +490,21 @@ export class IncidentServicesApi { private responseProcessor: IncidentServicesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: IncidentServicesApiRequestFactory, - responseProcessor?: IncidentServicesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: IncidentServicesApiRequestFactory, responseProcessor?: IncidentServicesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new IncidentServicesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new IncidentServicesApiResponseProcessor(); + this.requestFactory = requestFactory || new IncidentServicesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new IncidentServicesApiResponseProcessor(); } /** * Creates a new incident service. * @param param The request object */ - public createIncidentService( - param: IncidentServicesApiCreateIncidentServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createIncidentService( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createIncidentService(responseContext); + public createIncidentService(param: IncidentServicesApiCreateIncidentServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createIncidentService(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createIncidentService(responseContext); }); }); } @@ -703,19 +513,11 @@ export class IncidentServicesApi { * Deletes an existing incident service. * @param param The request object */ - public deleteIncidentService( - param: IncidentServicesApiDeleteIncidentServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteIncidentService( - param.serviceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteIncidentService(responseContext); + public deleteIncidentService(param: IncidentServicesApiDeleteIncidentServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteIncidentService(param.serviceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteIncidentService(responseContext); }); }); } @@ -725,20 +527,11 @@ export class IncidentServicesApi { * the included attribute will contain the users related to these incident services. * @param param The request object */ - public getIncidentService( - param: IncidentServicesApiGetIncidentServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncidentService( - param.serviceId, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncidentService(responseContext); + public getIncidentService(param: IncidentServicesApiGetIncidentServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncidentService(param.serviceId,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncidentService(responseContext); }); }); } @@ -747,22 +540,11 @@ export class IncidentServicesApi { * Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. * @param param The request object */ - public listIncidentServices( - param: IncidentServicesApiListIncidentServicesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidentServices( - param.include, - param.pageSize, - param.pageOffset, - param.filter, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidentServices(responseContext); + public listIncidentServices(param: IncidentServicesApiListIncidentServicesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidentServices(param.include,param.pageSize,param.pageOffset,param.filter,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidentServices(responseContext); }); }); } @@ -771,21 +553,12 @@ export class IncidentServicesApi { * Updates an existing incident service. Only provide the attributes which should be updated as this request is a partial update. * @param param The request object */ - public updateIncidentService( - param: IncidentServicesApiUpdateIncidentServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncidentService( - param.serviceId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncidentService(responseContext); + public updateIncidentService(param: IncidentServicesApiUpdateIncidentServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncidentService(param.serviceId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncidentService(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts b/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts index baffd67ed25c..f89b4f1c2dac 100644 --- a/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts +++ b/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IncidentRelatedObject } from "../models/IncidentRelatedObject"; import { IncidentTeamCreateRequest } from "../models/IncidentTeamCreateRequest"; @@ -24,36 +22,31 @@ import { IncidentTeamsResponse } from "../models/IncidentTeamsResponse"; import { IncidentTeamUpdateRequest } from "../models/IncidentTeamUpdateRequest"; export class IncidentTeamsApiRequestFactory extends BaseAPIRequestFactory { - public async createIncidentTeam( - body: IncidentTeamCreateRequest, - _options?: Configuration - ): Promise { + + public async createIncidentTeam(body: IncidentTeamCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createIncidentTeam'"); - if (!_config.unstableOperations["v2.createIncidentTeam"]) { + if (!_config.unstableOperations['v2.createIncidentTeam']) { throw new Error("Unstable operation 'createIncidentTeam' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createIncidentTeam"); + throw new RequiredError('body', 'createIncidentTeam'); } // Path Params - const localVarPath = "/api/v2/teams"; + const localVarPath = '/api/v2/teams'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentTeamsApi.createIncidentTeam") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.IncidentTeamsApi.createIncidentTeam').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentTeamCreateRequest", ""), @@ -62,206 +55,138 @@ export class IncidentTeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteIncidentTeam( - teamId: string, - _options?: Configuration - ): Promise { + public async deleteIncidentTeam(teamId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteIncidentTeam'"); - if (!_config.unstableOperations["v2.deleteIncidentTeam"]) { + if (!_config.unstableOperations['v2.deleteIncidentTeam']) { throw new Error("Unstable operation 'deleteIncidentTeam' is disabled"); } // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "deleteIncidentTeam"); + throw new RequiredError('teamId', 'deleteIncidentTeam'); } // Path Params - const localVarPath = "/api/v2/teams/{team_id}".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/teams/{team_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentTeamsApi.deleteIncidentTeam") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.IncidentTeamsApi.deleteIncidentTeam').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncidentTeam( - teamId: string, - include?: IncidentRelatedObject, - _options?: Configuration - ): Promise { + public async getIncidentTeam(teamId: string,include?: IncidentRelatedObject,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getIncidentTeam'"); - if (!_config.unstableOperations["v2.getIncidentTeam"]) { + if (!_config.unstableOperations['v2.getIncidentTeam']) { throw new Error("Unstable operation 'getIncidentTeam' is disabled"); } // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "getIncidentTeam"); + throw new RequiredError('teamId', 'getIncidentTeam'); } // Path Params - const localVarPath = "/api/v2/teams/{team_id}".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/teams/{team_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentTeamsApi.getIncidentTeam") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentTeamsApi.getIncidentTeam').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidentTeams( - include?: IncidentRelatedObject, - pageSize?: number, - pageOffset?: number, - filter?: string, - _options?: Configuration - ): Promise { + public async listIncidentTeams(include?: IncidentRelatedObject,pageSize?: number,pageOffset?: number,filter?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidentTeams'"); - if (!_config.unstableOperations["v2.listIncidentTeams"]) { + if (!_config.unstableOperations['v2.listIncidentTeams']) { throw new Error("Unstable operation 'listIncidentTeams' is disabled"); } // Path Params - const localVarPath = "/api/v2/teams"; + const localVarPath = '/api/v2/teams'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentTeamsApi.listIncidentTeams") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentTeamsApi.listIncidentTeams').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncidentTeam( - teamId: string, - body: IncidentTeamUpdateRequest, - _options?: Configuration - ): Promise { + public async updateIncidentTeam(teamId: string,body: IncidentTeamUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncidentTeam'"); - if (!_config.unstableOperations["v2.updateIncidentTeam"]) { + if (!_config.unstableOperations['v2.updateIncidentTeam']) { throw new Error("Unstable operation 'updateIncidentTeam' is disabled"); } // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "updateIncidentTeam"); + throw new RequiredError('teamId', 'updateIncidentTeam'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncidentTeam"); + throw new RequiredError('body', 'updateIncidentTeam'); } // Path Params - const localVarPath = "/api/v2/teams/{team_id}".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/teams/{team_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentTeamsApi.updateIncidentTeam") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentTeamsApi.updateIncidentTeam').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentTeamUpdateRequest", ""), @@ -270,17 +195,14 @@ export class IncidentTeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class IncidentTeamsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -288,12 +210,8 @@ export class IncidentTeamsApiResponseProcessor { * @params response Response returned by the server for a request to createIncidentTeam * @throws ApiException if the response code was not in [200, 299] */ - public async createIncidentTeam( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createIncidentTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: IncidentTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -301,17 +219,8 @@ export class IncidentTeamsApiResponseProcessor { ) as IncidentTeamResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -320,11 +229,8 @@ export class IncidentTeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -332,17 +238,13 @@ export class IncidentTeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTeamResponse", - "" + "IncidentTeamResponse", "" ) as IncidentTeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -352,24 +254,13 @@ export class IncidentTeamsApiResponseProcessor { * @params response Response returned by the server for a request to deleteIncidentTeam * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIncidentTeam(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteIncidentTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -378,11 +269,8 @@ export class IncidentTeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -390,17 +278,13 @@ export class IncidentTeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -410,12 +294,8 @@ export class IncidentTeamsApiResponseProcessor { * @params response Response returned by the server for a request to getIncidentTeam * @throws ApiException if the response code was not in [200, 299] */ - public async getIncidentTeam( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncidentTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -423,17 +303,8 @@ export class IncidentTeamsApiResponseProcessor { ) as IncidentTeamResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -442,11 +313,8 @@ export class IncidentTeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -454,17 +322,13 @@ export class IncidentTeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTeamResponse", - "" + "IncidentTeamResponse", "" ) as IncidentTeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -474,12 +338,8 @@ export class IncidentTeamsApiResponseProcessor { * @params response Response returned by the server for a request to listIncidentTeams * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidentTeams( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidentTeams(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -487,17 +347,8 @@ export class IncidentTeamsApiResponseProcessor { ) as IncidentTeamsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -506,11 +357,8 @@ export class IncidentTeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -518,17 +366,13 @@ export class IncidentTeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTeamsResponse", - "" + "IncidentTeamsResponse", "" ) as IncidentTeamsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -538,12 +382,8 @@ export class IncidentTeamsApiResponseProcessor { * @params response Response returned by the server for a request to updateIncidentTeam * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncidentTeam( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncidentTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -551,17 +391,8 @@ export class IncidentTeamsApiResponseProcessor { ) as IncidentTeamResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -570,11 +401,8 @@ export class IncidentTeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -582,17 +410,13 @@ export class IncidentTeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTeamResponse", - "" + "IncidentTeamResponse", "" ) as IncidentTeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -601,7 +425,7 @@ export interface IncidentTeamsApiCreateIncidentTeamRequest { * Incident Team Payload. * @type IncidentTeamCreateRequest */ - body: IncidentTeamCreateRequest; + body: IncidentTeamCreateRequest } export interface IncidentTeamsApiDeleteIncidentTeamRequest { @@ -609,7 +433,7 @@ export interface IncidentTeamsApiDeleteIncidentTeamRequest { * The ID of the incident team. * @type string */ - teamId: string; + teamId: string } export interface IncidentTeamsApiGetIncidentTeamRequest { @@ -617,12 +441,12 @@ export interface IncidentTeamsApiGetIncidentTeamRequest { * The ID of the incident team. * @type string */ - teamId: string; + teamId: string /** * Specifies which types of related objects should be included in the response. * @type IncidentRelatedObject */ - include?: IncidentRelatedObject; + include?: IncidentRelatedObject } export interface IncidentTeamsApiListIncidentTeamsRequest { @@ -630,22 +454,22 @@ export interface IncidentTeamsApiListIncidentTeamsRequest { * Specifies which types of related objects should be included in the response. * @type IncidentRelatedObject */ - include?: IncidentRelatedObject; + include?: IncidentRelatedObject /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * A search query that filters teams by name. * @type string */ - filter?: string; + filter?: string } export interface IncidentTeamsApiUpdateIncidentTeamRequest { @@ -653,12 +477,12 @@ export interface IncidentTeamsApiUpdateIncidentTeamRequest { * The ID of the incident team. * @type string */ - teamId: string; + teamId: string /** * Incident Team Payload. * @type IncidentTeamUpdateRequest */ - body: IncidentTeamUpdateRequest; + body: IncidentTeamUpdateRequest } export class IncidentTeamsApi { @@ -666,35 +490,21 @@ export class IncidentTeamsApi { private responseProcessor: IncidentTeamsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: IncidentTeamsApiRequestFactory, - responseProcessor?: IncidentTeamsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: IncidentTeamsApiRequestFactory, responseProcessor?: IncidentTeamsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new IncidentTeamsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new IncidentTeamsApiResponseProcessor(); + this.requestFactory = requestFactory || new IncidentTeamsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new IncidentTeamsApiResponseProcessor(); } /** * Creates a new incident team. * @param param The request object */ - public createIncidentTeam( - param: IncidentTeamsApiCreateIncidentTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createIncidentTeam( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createIncidentTeam(responseContext); + public createIncidentTeam(param: IncidentTeamsApiCreateIncidentTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createIncidentTeam(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createIncidentTeam(responseContext); }); }); } @@ -703,19 +513,11 @@ export class IncidentTeamsApi { * Deletes an existing incident team. * @param param The request object */ - public deleteIncidentTeam( - param: IncidentTeamsApiDeleteIncidentTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteIncidentTeam( - param.teamId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteIncidentTeam(responseContext); + public deleteIncidentTeam(param: IncidentTeamsApiDeleteIncidentTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteIncidentTeam(param.teamId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteIncidentTeam(responseContext); }); }); } @@ -725,20 +527,11 @@ export class IncidentTeamsApi { * the included attribute will contain the users related to these incident teams. * @param param The request object */ - public getIncidentTeam( - param: IncidentTeamsApiGetIncidentTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncidentTeam( - param.teamId, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncidentTeam(responseContext); + public getIncidentTeam(param: IncidentTeamsApiGetIncidentTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncidentTeam(param.teamId,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncidentTeam(responseContext); }); }); } @@ -747,22 +540,11 @@ export class IncidentTeamsApi { * Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. * @param param The request object */ - public listIncidentTeams( - param: IncidentTeamsApiListIncidentTeamsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidentTeams( - param.include, - param.pageSize, - param.pageOffset, - param.filter, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidentTeams(responseContext); + public listIncidentTeams(param: IncidentTeamsApiListIncidentTeamsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidentTeams(param.include,param.pageSize,param.pageOffset,param.filter,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidentTeams(responseContext); }); }); } @@ -771,21 +553,12 @@ export class IncidentTeamsApi { * Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update. * @param param The request object */ - public updateIncidentTeam( - param: IncidentTeamsApiUpdateIncidentTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncidentTeam( - param.teamId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncidentTeam(responseContext); + public updateIncidentTeam(param: IncidentTeamsApiUpdateIncidentTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncidentTeam(param.teamId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncidentTeam(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/IncidentsApi.ts b/packages/datadog-api-client-v2/apis/IncidentsApi.ts index d8ced5c7af53..9a8622688722 100644 --- a/packages/datadog-api-client-v2/apis/IncidentsApi.ts +++ b/packages/datadog-api-client-v2/apis/IncidentsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IncidentAttachmentAttachmentType } from "../models/IncidentAttachmentAttachmentType"; import { IncidentAttachmentRelatedObject } from "../models/IncidentAttachmentRelatedObject"; @@ -45,36 +43,31 @@ import { IncidentTypeResponse } from "../models/IncidentTypeResponse"; import { IncidentUpdateRequest } from "../models/IncidentUpdateRequest"; export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { - public async createIncident( - body: IncidentCreateRequest, - _options?: Configuration - ): Promise { + + public async createIncident(body: IncidentCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createIncident'"); - if (!_config.unstableOperations["v2.createIncident"]) { + if (!_config.unstableOperations['v2.createIncident']) { throw new Error("Unstable operation 'createIncident' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createIncident"); + throw new RequiredError('body', 'createIncident'); } // Path Params - const localVarPath = "/api/v2/incidents"; + const localVarPath = '/api/v2/incidents'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.createIncident") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.IncidentsApi.createIncident').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentCreateRequest", ""), @@ -83,118 +76,84 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createIncidentIntegration( - incidentId: string, - body: IncidentIntegrationMetadataCreateRequest, - _options?: Configuration - ): Promise { + public async createIncidentIntegration(incidentId: string,body: IncidentIntegrationMetadataCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createIncidentIntegration'"); - if (!_config.unstableOperations["v2.createIncidentIntegration"]) { - throw new Error( - "Unstable operation 'createIncidentIntegration' is disabled" - ); + if (!_config.unstableOperations['v2.createIncidentIntegration']) { + throw new Error("Unstable operation 'createIncidentIntegration' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "createIncidentIntegration"); + throw new RequiredError('incidentId', 'createIncidentIntegration'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createIncidentIntegration"); + throw new RequiredError('body', 'createIncidentIntegration'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/integrations".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/integrations' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.createIncidentIntegration") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.IncidentsApi.createIncidentIntegration').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "IncidentIntegrationMetadataCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "IncidentIntegrationMetadataCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createIncidentTodo( - incidentId: string, - body: IncidentTodoCreateRequest, - _options?: Configuration - ): Promise { + public async createIncidentTodo(incidentId: string,body: IncidentTodoCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createIncidentTodo'"); - if (!_config.unstableOperations["v2.createIncidentTodo"]) { + if (!_config.unstableOperations['v2.createIncidentTodo']) { throw new Error("Unstable operation 'createIncidentTodo' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "createIncidentTodo"); + throw new RequiredError('incidentId', 'createIncidentTodo'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createIncidentTodo"); + throw new RequiredError('body', 'createIncidentTodo'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/todos".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/todos' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.createIncidentTodo") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.IncidentsApi.createIncidentTodo').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentTodoCreateRequest", ""), @@ -203,45 +162,35 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createIncidentType( - body: IncidentTypeCreateRequest, - _options?: Configuration - ): Promise { + public async createIncidentType(body: IncidentTypeCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createIncidentType'"); - if (!_config.unstableOperations["v2.createIncidentType"]) { + if (!_config.unstableOperations['v2.createIncidentType']) { throw new Error("Unstable operation 'createIncidentType' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createIncidentType"); + throw new RequiredError('body', 'createIncidentType'); } // Path Params - const localVarPath = "/api/v2/incidents/config/types"; + const localVarPath = '/api/v2/incidents/config/types'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.createIncidentType") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.IncidentsApi.createIncidentType').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentTypeCreateRequest", ""), @@ -250,749 +199,495 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteIncident( - incidentId: string, - _options?: Configuration - ): Promise { + public async deleteIncident(incidentId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteIncident'"); - if (!_config.unstableOperations["v2.deleteIncident"]) { + if (!_config.unstableOperations['v2.deleteIncident']) { throw new Error("Unstable operation 'deleteIncident' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "deleteIncident"); + throw new RequiredError('incidentId', 'deleteIncident'); } // Path Params - const localVarPath = "/api/v2/incidents/{incident_id}".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.deleteIncident") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.IncidentsApi.deleteIncident').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteIncidentIntegration( - incidentId: string, - integrationMetadataId: string, - _options?: Configuration - ): Promise { + public async deleteIncidentIntegration(incidentId: string,integrationMetadataId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteIncidentIntegration'"); - if (!_config.unstableOperations["v2.deleteIncidentIntegration"]) { - throw new Error( - "Unstable operation 'deleteIncidentIntegration' is disabled" - ); + if (!_config.unstableOperations['v2.deleteIncidentIntegration']) { + throw new Error("Unstable operation 'deleteIncidentIntegration' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "deleteIncidentIntegration"); + throw new RequiredError('incidentId', 'deleteIncidentIntegration'); } // verify required parameter 'integrationMetadataId' is not null or undefined if (integrationMetadataId === null || integrationMetadataId === undefined) { - throw new RequiredError( - "integrationMetadataId", - "deleteIncidentIntegration" - ); + throw new RequiredError('integrationMetadataId', 'deleteIncidentIntegration'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}" - .replace("{incident_id}", encodeURIComponent(String(incidentId))) - .replace( - "{integration_metadata_id}", - encodeURIComponent(String(integrationMetadataId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))) + .replace('{integration_metadata_id}', encodeURIComponent(String(integrationMetadataId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.deleteIncidentIntegration") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.IncidentsApi.deleteIncidentIntegration').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteIncidentTodo( - incidentId: string, - todoId: string, - _options?: Configuration - ): Promise { + public async deleteIncidentTodo(incidentId: string,todoId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteIncidentTodo'"); - if (!_config.unstableOperations["v2.deleteIncidentTodo"]) { + if (!_config.unstableOperations['v2.deleteIncidentTodo']) { throw new Error("Unstable operation 'deleteIncidentTodo' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "deleteIncidentTodo"); + throw new RequiredError('incidentId', 'deleteIncidentTodo'); } // verify required parameter 'todoId' is not null or undefined if (todoId === null || todoId === undefined) { - throw new RequiredError("todoId", "deleteIncidentTodo"); + throw new RequiredError('todoId', 'deleteIncidentTodo'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}" - .replace("{incident_id}", encodeURIComponent(String(incidentId))) - .replace("{todo_id}", encodeURIComponent(String(todoId))); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))) + .replace('{todo_id}', encodeURIComponent(String(todoId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.deleteIncidentTodo") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.IncidentsApi.deleteIncidentTodo').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteIncidentType( - incidentTypeId: string, - _options?: Configuration - ): Promise { + public async deleteIncidentType(incidentTypeId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteIncidentType'"); - if (!_config.unstableOperations["v2.deleteIncidentType"]) { + if (!_config.unstableOperations['v2.deleteIncidentType']) { throw new Error("Unstable operation 'deleteIncidentType' is disabled"); } // verify required parameter 'incidentTypeId' is not null or undefined if (incidentTypeId === null || incidentTypeId === undefined) { - throw new RequiredError("incidentTypeId", "deleteIncidentType"); + throw new RequiredError('incidentTypeId', 'deleteIncidentType'); } // Path Params - const localVarPath = - "/api/v2/incidents/config/types/{incident_type_id}".replace( - "{incident_type_id}", - encodeURIComponent(String(incidentTypeId)) - ); + const localVarPath = '/api/v2/incidents/config/types/{incident_type_id}' + .replace('{incident_type_id}', encodeURIComponent(String(incidentTypeId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.deleteIncidentType") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.IncidentsApi.deleteIncidentType').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncident( - incidentId: string, - include?: Array, - _options?: Configuration - ): Promise { + public async getIncident(incidentId: string,include?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getIncident'"); - if (!_config.unstableOperations["v2.getIncident"]) { + if (!_config.unstableOperations['v2.getIncident']) { throw new Error("Unstable operation 'getIncident' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "getIncident"); + throw new RequiredError('incidentId', 'getIncident'); } // Path Params - const localVarPath = "/api/v2/incidents/{incident_id}".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.getIncident") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.getIncident').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "Array", ""), - "csv" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "Array", ""), "csv"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncidentIntegration( - incidentId: string, - integrationMetadataId: string, - _options?: Configuration - ): Promise { + public async getIncidentIntegration(incidentId: string,integrationMetadataId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getIncidentIntegration'"); - if (!_config.unstableOperations["v2.getIncidentIntegration"]) { - throw new Error( - "Unstable operation 'getIncidentIntegration' is disabled" - ); + if (!_config.unstableOperations['v2.getIncidentIntegration']) { + throw new Error("Unstable operation 'getIncidentIntegration' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "getIncidentIntegration"); + throw new RequiredError('incidentId', 'getIncidentIntegration'); } // verify required parameter 'integrationMetadataId' is not null or undefined if (integrationMetadataId === null || integrationMetadataId === undefined) { - throw new RequiredError( - "integrationMetadataId", - "getIncidentIntegration" - ); + throw new RequiredError('integrationMetadataId', 'getIncidentIntegration'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}" - .replace("{incident_id}", encodeURIComponent(String(incidentId))) - .replace( - "{integration_metadata_id}", - encodeURIComponent(String(integrationMetadataId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))) + .replace('{integration_metadata_id}', encodeURIComponent(String(integrationMetadataId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.getIncidentIntegration") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.getIncidentIntegration').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncidentTodo( - incidentId: string, - todoId: string, - _options?: Configuration - ): Promise { + public async getIncidentTodo(incidentId: string,todoId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getIncidentTodo'"); - if (!_config.unstableOperations["v2.getIncidentTodo"]) { + if (!_config.unstableOperations['v2.getIncidentTodo']) { throw new Error("Unstable operation 'getIncidentTodo' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "getIncidentTodo"); + throw new RequiredError('incidentId', 'getIncidentTodo'); } // verify required parameter 'todoId' is not null or undefined if (todoId === null || todoId === undefined) { - throw new RequiredError("todoId", "getIncidentTodo"); + throw new RequiredError('todoId', 'getIncidentTodo'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}" - .replace("{incident_id}", encodeURIComponent(String(incidentId))) - .replace("{todo_id}", encodeURIComponent(String(todoId))); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))) + .replace('{todo_id}', encodeURIComponent(String(todoId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.getIncidentTodo") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.getIncidentTodo').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getIncidentType( - incidentTypeId: string, - _options?: Configuration - ): Promise { + public async getIncidentType(incidentTypeId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getIncidentType'"); - if (!_config.unstableOperations["v2.getIncidentType"]) { + if (!_config.unstableOperations['v2.getIncidentType']) { throw new Error("Unstable operation 'getIncidentType' is disabled"); } // verify required parameter 'incidentTypeId' is not null or undefined if (incidentTypeId === null || incidentTypeId === undefined) { - throw new RequiredError("incidentTypeId", "getIncidentType"); + throw new RequiredError('incidentTypeId', 'getIncidentType'); } // Path Params - const localVarPath = - "/api/v2/incidents/config/types/{incident_type_id}".replace( - "{incident_type_id}", - encodeURIComponent(String(incidentTypeId)) - ); + const localVarPath = '/api/v2/incidents/config/types/{incident_type_id}' + .replace('{incident_type_id}', encodeURIComponent(String(incidentTypeId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.getIncidentType") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.getIncidentType').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidentAttachments( - incidentId: string, - include?: Array, - filterAttachmentType?: Array, - _options?: Configuration - ): Promise { + public async listIncidentAttachments(incidentId: string,include?: Array,filterAttachmentType?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidentAttachments'"); - if (!_config.unstableOperations["v2.listIncidentAttachments"]) { - throw new Error( - "Unstable operation 'listIncidentAttachments' is disabled" - ); + if (!_config.unstableOperations['v2.listIncidentAttachments']) { + throw new Error("Unstable operation 'listIncidentAttachments' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "listIncidentAttachments"); + throw new RequiredError('incidentId', 'listIncidentAttachments'); } // Path Params - const localVarPath = "/api/v2/incidents/{incident_id}/attachments".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/attachments' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.listIncidentAttachments") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.listIncidentAttachments').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize( - include, - "Array", - "" - ), - "csv" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "Array", ""), "csv"); } if (filterAttachmentType !== undefined) { - requestContext.setQueryParam( - "filter[attachment_type]", - ObjectSerializer.serialize( - filterAttachmentType, - "Array", - "" - ), - "csv" - ); + requestContext.setQueryParam("filter[attachment_type]", ObjectSerializer.serialize(filterAttachmentType, "Array", ""), "csv"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidentIntegrations( - incidentId: string, - _options?: Configuration - ): Promise { + public async listIncidentIntegrations(incidentId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidentIntegrations'"); - if (!_config.unstableOperations["v2.listIncidentIntegrations"]) { - throw new Error( - "Unstable operation 'listIncidentIntegrations' is disabled" - ); + if (!_config.unstableOperations['v2.listIncidentIntegrations']) { + throw new Error("Unstable operation 'listIncidentIntegrations' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "listIncidentIntegrations"); + throw new RequiredError('incidentId', 'listIncidentIntegrations'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/integrations".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/integrations' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.listIncidentIntegrations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.listIncidentIntegrations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidents( - include?: Array, - pageSize?: number, - pageOffset?: number, - _options?: Configuration - ): Promise { + public async listIncidents(include?: Array,pageSize?: number,pageOffset?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidents'"); - if (!_config.unstableOperations["v2.listIncidents"]) { + if (!_config.unstableOperations['v2.listIncidents']) { throw new Error("Unstable operation 'listIncidents' is disabled"); } // Path Params - const localVarPath = "/api/v2/incidents"; + const localVarPath = '/api/v2/incidents'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.listIncidents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.listIncidents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "Array", ""), - "csv" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "Array", ""), "csv"); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidentTodos( - incidentId: string, - _options?: Configuration - ): Promise { + public async listIncidentTodos(incidentId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidentTodos'"); - if (!_config.unstableOperations["v2.listIncidentTodos"]) { + if (!_config.unstableOperations['v2.listIncidentTodos']) { throw new Error("Unstable operation 'listIncidentTodos' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "listIncidentTodos"); + throw new RequiredError('incidentId', 'listIncidentTodos'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/todos".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/todos' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.listIncidentTodos") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.listIncidentTodos').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listIncidentTypes( - includeDeleted?: boolean, - _options?: Configuration - ): Promise { + public async listIncidentTypes(includeDeleted?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listIncidentTypes'"); - if (!_config.unstableOperations["v2.listIncidentTypes"]) { + if (!_config.unstableOperations['v2.listIncidentTypes']) { throw new Error("Unstable operation 'listIncidentTypes' is disabled"); } // Path Params - const localVarPath = "/api/v2/incidents/config/types"; + const localVarPath = '/api/v2/incidents/config/types'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.listIncidentTypes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.listIncidentTypes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (includeDeleted !== undefined) { - requestContext.setQueryParam( - "include_deleted", - ObjectSerializer.serialize(includeDeleted, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_deleted", ObjectSerializer.serialize(includeDeleted, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchIncidents( - query: string, - include?: IncidentRelatedObject, - sort?: IncidentSearchSortOrder, - pageSize?: number, - pageOffset?: number, - _options?: Configuration - ): Promise { + public async searchIncidents(query: string,include?: IncidentRelatedObject,sort?: IncidentSearchSortOrder,pageSize?: number,pageOffset?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'searchIncidents'"); - if (!_config.unstableOperations["v2.searchIncidents"]) { + if (!_config.unstableOperations['v2.searchIncidents']) { throw new Error("Unstable operation 'searchIncidents' is disabled"); } // verify required parameter 'query' is not null or undefined if (query === null || query === undefined) { - throw new RequiredError("query", "searchIncidents"); + throw new RequiredError('query', 'searchIncidents'); } // Path Params - const localVarPath = "/api/v2/incidents/search"; + const localVarPath = '/api/v2/incidents/search'; // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.searchIncidents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.IncidentsApi.searchIncidents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); } if (query !== undefined) { - requestContext.setQueryParam( - "query", - ObjectSerializer.serialize(query, "string", ""), - "" - ); + requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "IncidentSearchSortOrder", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "IncidentSearchSortOrder", ""), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncident( - incidentId: string, - body: IncidentUpdateRequest, - include?: Array, - _options?: Configuration - ): Promise { + public async updateIncident(incidentId: string,body: IncidentUpdateRequest,include?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncident'"); - if (!_config.unstableOperations["v2.updateIncident"]) { + if (!_config.unstableOperations['v2.updateIncident']) { throw new Error("Unstable operation 'updateIncident' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "updateIncident"); + throw new RequiredError('incidentId', 'updateIncident'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncident"); + throw new RequiredError('body', 'updateIncident'); } // Path Params - const localVarPath = "/api/v2/incidents/{incident_id}".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.updateIncident") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentsApi.updateIncident').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "Array", ""), - "csv" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "Array", ""), "csv"); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentUpdateRequest", ""), @@ -1001,70 +696,46 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncidentAttachments( - incidentId: string, - body: IncidentAttachmentUpdateRequest, - include?: Array, - _options?: Configuration - ): Promise { + public async updateIncidentAttachments(incidentId: string,body: IncidentAttachmentUpdateRequest,include?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncidentAttachments'"); - if (!_config.unstableOperations["v2.updateIncidentAttachments"]) { - throw new Error( - "Unstable operation 'updateIncidentAttachments' is disabled" - ); + if (!_config.unstableOperations['v2.updateIncidentAttachments']) { + throw new Error("Unstable operation 'updateIncidentAttachments' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "updateIncidentAttachments"); + throw new RequiredError('incidentId', 'updateIncidentAttachments'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncidentAttachments"); + throw new RequiredError('body', 'updateIncidentAttachments'); } // Path Params - const localVarPath = "/api/v2/incidents/{incident_id}/attachments".replace( - "{incident_id}", - encodeURIComponent(String(incidentId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/attachments' + .replace('{incident_id}', encodeURIComponent(String(incidentId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.updateIncidentAttachments") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentsApi.updateIncidentAttachments').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize( - include, - "Array", - "" - ), - "csv" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "Array", ""), "csv"); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentAttachmentUpdateRequest", ""), @@ -1073,133 +744,96 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncidentIntegration( - incidentId: string, - integrationMetadataId: string, - body: IncidentIntegrationMetadataPatchRequest, - _options?: Configuration - ): Promise { + public async updateIncidentIntegration(incidentId: string,integrationMetadataId: string,body: IncidentIntegrationMetadataPatchRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncidentIntegration'"); - if (!_config.unstableOperations["v2.updateIncidentIntegration"]) { - throw new Error( - "Unstable operation 'updateIncidentIntegration' is disabled" - ); + if (!_config.unstableOperations['v2.updateIncidentIntegration']) { + throw new Error("Unstable operation 'updateIncidentIntegration' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "updateIncidentIntegration"); + throw new RequiredError('incidentId', 'updateIncidentIntegration'); } // verify required parameter 'integrationMetadataId' is not null or undefined if (integrationMetadataId === null || integrationMetadataId === undefined) { - throw new RequiredError( - "integrationMetadataId", - "updateIncidentIntegration" - ); + throw new RequiredError('integrationMetadataId', 'updateIncidentIntegration'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncidentIntegration"); + throw new RequiredError('body', 'updateIncidentIntegration'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}" - .replace("{incident_id}", encodeURIComponent(String(incidentId))) - .replace( - "{integration_metadata_id}", - encodeURIComponent(String(integrationMetadataId)) - ); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))) + .replace('{integration_metadata_id}', encodeURIComponent(String(integrationMetadataId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.updateIncidentIntegration") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentsApi.updateIncidentIntegration').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "IncidentIntegrationMetadataPatchRequest", - "" - ), + ObjectSerializer.serialize(body, "IncidentIntegrationMetadataPatchRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncidentTodo( - incidentId: string, - todoId: string, - body: IncidentTodoPatchRequest, - _options?: Configuration - ): Promise { + public async updateIncidentTodo(incidentId: string,todoId: string,body: IncidentTodoPatchRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncidentTodo'"); - if (!_config.unstableOperations["v2.updateIncidentTodo"]) { + if (!_config.unstableOperations['v2.updateIncidentTodo']) { throw new Error("Unstable operation 'updateIncidentTodo' is disabled"); } // verify required parameter 'incidentId' is not null or undefined if (incidentId === null || incidentId === undefined) { - throw new RequiredError("incidentId", "updateIncidentTodo"); + throw new RequiredError('incidentId', 'updateIncidentTodo'); } // verify required parameter 'todoId' is not null or undefined if (todoId === null || todoId === undefined) { - throw new RequiredError("todoId", "updateIncidentTodo"); + throw new RequiredError('todoId', 'updateIncidentTodo'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncidentTodo"); + throw new RequiredError('body', 'updateIncidentTodo'); } // Path Params - const localVarPath = - "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}" - .replace("{incident_id}", encodeURIComponent(String(incidentId))) - .replace("{todo_id}", encodeURIComponent(String(todoId))); + const localVarPath = '/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}' + .replace('{incident_id}', encodeURIComponent(String(incidentId))) + .replace('{todo_id}', encodeURIComponent(String(todoId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.updateIncidentTodo") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentsApi.updateIncidentTodo').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentTodoPatchRequest", ""), @@ -1208,55 +842,41 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateIncidentType( - incidentTypeId: string, - body: IncidentTypePatchRequest, - _options?: Configuration - ): Promise { + public async updateIncidentType(incidentTypeId: string,body: IncidentTypePatchRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateIncidentType'"); - if (!_config.unstableOperations["v2.updateIncidentType"]) { + if (!_config.unstableOperations['v2.updateIncidentType']) { throw new Error("Unstable operation 'updateIncidentType' is disabled"); } // verify required parameter 'incidentTypeId' is not null or undefined if (incidentTypeId === null || incidentTypeId === undefined) { - throw new RequiredError("incidentTypeId", "updateIncidentType"); + throw new RequiredError('incidentTypeId', 'updateIncidentType'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateIncidentType"); + throw new RequiredError('body', 'updateIncidentType'); } // Path Params - const localVarPath = - "/api/v2/incidents/config/types/{incident_type_id}".replace( - "{incident_type_id}", - encodeURIComponent(String(incidentTypeId)) - ); + const localVarPath = '/api/v2/incidents/config/types/{incident_type_id}' + .replace('{incident_type_id}', encodeURIComponent(String(incidentTypeId))); // Make Request Context - const requestContext = _config - .getServer("v2.IncidentsApi.updateIncidentType") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.IncidentsApi.updateIncidentType').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "IncidentTypePatchRequest", ""), @@ -1265,17 +885,14 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class IncidentsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -1283,12 +900,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to createIncident * @throws ApiException if the response code was not in [200, 299] */ - public async createIncident( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createIncident(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: IncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1296,17 +909,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1315,11 +919,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1327,17 +928,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentResponse", - "" + "IncidentResponse", "" ) as IncidentResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1347,31 +944,17 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to createIncidentIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async createIncidentIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createIncidentIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { - const body: IncidentIntegrationMetadataResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataResponse" - ) as IncidentIntegrationMetadataResponse; + const body: IncidentIntegrationMetadataResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataResponse" + ) as IncidentIntegrationMetadataResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1380,30 +963,22 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: IncidentIntegrationMetadataResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataResponse", - "" - ) as IncidentIntegrationMetadataResponse; + const body: IncidentIntegrationMetadataResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataResponse", "" + ) as IncidentIntegrationMetadataResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1413,12 +988,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to createIncidentTodo * @throws ApiException if the response code was not in [200, 299] */ - public async createIncidentTodo( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createIncidentTodo(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: IncidentTodoResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1426,17 +997,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTodoResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1445,11 +1007,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1457,17 +1016,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTodoResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTodoResponse", - "" + "IncidentTodoResponse", "" ) as IncidentTodoResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1477,12 +1032,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to createIncidentType * @throws ApiException if the response code was not in [200, 299] */ - public async createIncidentType( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createIncidentType(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: IncidentTypeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1490,17 +1041,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTypeResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1509,11 +1051,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1521,17 +1060,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTypeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTypeResponse", - "" + "IncidentTypeResponse", "" ) as IncidentTypeResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1541,24 +1076,13 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to deleteIncident * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIncident(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteIncident(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1567,11 +1091,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1579,17 +1100,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1599,26 +1116,13 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to deleteIncidentIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIncidentIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteIncidentIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1627,11 +1131,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1639,17 +1140,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1659,24 +1156,13 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to deleteIncidentTodo * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIncidentTodo(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteIncidentTodo(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1685,11 +1171,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1697,17 +1180,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1717,24 +1196,13 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to deleteIncidentType * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIncidentType(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteIncidentType(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1743,11 +1211,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1755,17 +1220,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1775,12 +1236,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to getIncident * @throws ApiException if the response code was not in [200, 299] */ - public async getIncident( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncident(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1788,17 +1245,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1807,11 +1255,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1819,17 +1264,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentResponse", - "" + "IncidentResponse", "" ) as IncidentResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1839,31 +1280,17 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to getIncidentIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async getIncidentIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncidentIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: IncidentIntegrationMetadataResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataResponse" - ) as IncidentIntegrationMetadataResponse; + const body: IncidentIntegrationMetadataResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataResponse" + ) as IncidentIntegrationMetadataResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1872,30 +1299,22 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: IncidentIntegrationMetadataResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataResponse", - "" - ) as IncidentIntegrationMetadataResponse; + const body: IncidentIntegrationMetadataResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataResponse", "" + ) as IncidentIntegrationMetadataResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1905,12 +1324,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to getIncidentTodo * @throws ApiException if the response code was not in [200, 299] */ - public async getIncidentTodo( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncidentTodo(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTodoResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1918,17 +1333,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTodoResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1937,11 +1343,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1949,17 +1352,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTodoResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTodoResponse", - "" + "IncidentTodoResponse", "" ) as IncidentTodoResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1969,12 +1368,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to getIncidentType * @throws ApiException if the response code was not in [200, 299] */ - public async getIncidentType( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getIncidentType(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTypeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1982,17 +1377,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTypeResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2001,11 +1387,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2013,17 +1396,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTypeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTypeResponse", - "" + "IncidentTypeResponse", "" ) as IncidentTypeResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2033,12 +1412,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to listIncidentAttachments * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidentAttachments( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidentAttachments(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentAttachmentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2046,17 +1421,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentAttachmentsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2065,11 +1431,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2077,17 +1440,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentAttachmentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentAttachmentsResponse", - "" + "IncidentAttachmentsResponse", "" ) as IncidentAttachmentsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2097,31 +1456,17 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to listIncidentIntegrations * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidentIntegrations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidentIntegrations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: IncidentIntegrationMetadataListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataListResponse" - ) as IncidentIntegrationMetadataListResponse; + const body: IncidentIntegrationMetadataListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataListResponse" + ) as IncidentIntegrationMetadataListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2130,30 +1475,22 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: IncidentIntegrationMetadataListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataListResponse", - "" - ) as IncidentIntegrationMetadataListResponse; + const body: IncidentIntegrationMetadataListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataListResponse", "" + ) as IncidentIntegrationMetadataListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2163,12 +1500,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to listIncidents * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2176,17 +1509,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2195,11 +1519,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2207,17 +1528,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentsResponse", - "" + "IncidentsResponse", "" ) as IncidentsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2227,12 +1544,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to listIncidentTodos * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidentTodos( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidentTodos(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTodoListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2240,17 +1553,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTodoListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2259,11 +1563,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2271,17 +1572,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTodoListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTodoListResponse", - "" + "IncidentTodoListResponse", "" ) as IncidentTodoListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2291,12 +1588,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to listIncidentTypes * @throws ApiException if the response code was not in [200, 299] */ - public async listIncidentTypes( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listIncidentTypes(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTypeListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2304,16 +1597,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTypeListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2322,11 +1607,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2334,17 +1616,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTypeListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTypeListResponse", - "" + "IncidentTypeListResponse", "" ) as IncidentTypeListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2354,12 +1632,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to searchIncidents * @throws ApiException if the response code was not in [200, 299] */ - public async searchIncidents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchIncidents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2367,17 +1641,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentSearchResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2386,11 +1651,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2398,17 +1660,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentSearchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentSearchResponse", - "" + "IncidentSearchResponse", "" ) as IncidentSearchResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2418,12 +1676,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to updateIncident * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncident( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncident(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2431,17 +1685,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2450,11 +1695,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2462,17 +1704,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentResponse", - "" + "IncidentResponse", "" ) as IncidentResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2482,31 +1720,17 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to updateIncidentAttachments * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncidentAttachments( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncidentAttachments(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: IncidentAttachmentUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentAttachmentUpdateResponse" - ) as IncidentAttachmentUpdateResponse; + const body: IncidentAttachmentUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentAttachmentUpdateResponse" + ) as IncidentAttachmentUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2515,30 +1739,22 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: IncidentAttachmentUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentAttachmentUpdateResponse", - "" - ) as IncidentAttachmentUpdateResponse; + const body: IncidentAttachmentUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentAttachmentUpdateResponse", "" + ) as IncidentAttachmentUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2548,31 +1764,17 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to updateIncidentIntegration * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncidentIntegration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncidentIntegration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: IncidentIntegrationMetadataResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataResponse" - ) as IncidentIntegrationMetadataResponse; + const body: IncidentIntegrationMetadataResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataResponse" + ) as IncidentIntegrationMetadataResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2581,30 +1783,22 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: IncidentIntegrationMetadataResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentIntegrationMetadataResponse", - "" - ) as IncidentIntegrationMetadataResponse; + const body: IncidentIntegrationMetadataResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "IncidentIntegrationMetadataResponse", "" + ) as IncidentIntegrationMetadataResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2614,12 +1808,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to updateIncidentTodo * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncidentTodo( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncidentTodo(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTodoResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2627,17 +1817,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTodoResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2646,11 +1827,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2658,17 +1836,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTodoResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTodoResponse", - "" + "IncidentTodoResponse", "" ) as IncidentTodoResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2678,12 +1852,8 @@ export class IncidentsApiResponseProcessor { * @params response Response returned by the server for a request to updateIncidentType * @throws ApiException if the response code was not in [200, 299] */ - public async updateIncidentType( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateIncidentType(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: IncidentTypeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -2691,17 +1861,8 @@ export class IncidentsApiResponseProcessor { ) as IncidentTypeResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2710,11 +1871,8 @@ export class IncidentsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2722,17 +1880,13 @@ export class IncidentsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IncidentTypeResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IncidentTypeResponse", - "" + "IncidentTypeResponse", "" ) as IncidentTypeResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -2741,7 +1895,7 @@ export interface IncidentsApiCreateIncidentRequest { * Incident payload. * @type IncidentCreateRequest */ - body: IncidentCreateRequest; + body: IncidentCreateRequest } export interface IncidentsApiCreateIncidentIntegrationRequest { @@ -2749,12 +1903,12 @@ export interface IncidentsApiCreateIncidentIntegrationRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * Incident integration metadata payload. * @type IncidentIntegrationMetadataCreateRequest */ - body: IncidentIntegrationMetadataCreateRequest; + body: IncidentIntegrationMetadataCreateRequest } export interface IncidentsApiCreateIncidentTodoRequest { @@ -2762,12 +1916,12 @@ export interface IncidentsApiCreateIncidentTodoRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * Incident todo payload. * @type IncidentTodoCreateRequest */ - body: IncidentTodoCreateRequest; + body: IncidentTodoCreateRequest } export interface IncidentsApiCreateIncidentTypeRequest { @@ -2775,7 +1929,7 @@ export interface IncidentsApiCreateIncidentTypeRequest { * Incident type payload. * @type IncidentTypeCreateRequest */ - body: IncidentTypeCreateRequest; + body: IncidentTypeCreateRequest } export interface IncidentsApiDeleteIncidentRequest { @@ -2783,7 +1937,7 @@ export interface IncidentsApiDeleteIncidentRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string } export interface IncidentsApiDeleteIncidentIntegrationRequest { @@ -2791,12 +1945,12 @@ export interface IncidentsApiDeleteIncidentIntegrationRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * The UUID of the incident integration metadata. * @type string */ - integrationMetadataId: string; + integrationMetadataId: string } export interface IncidentsApiDeleteIncidentTodoRequest { @@ -2804,12 +1958,12 @@ export interface IncidentsApiDeleteIncidentTodoRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * The UUID of the incident todo. * @type string */ - todoId: string; + todoId: string } export interface IncidentsApiDeleteIncidentTypeRequest { @@ -2817,7 +1971,7 @@ export interface IncidentsApiDeleteIncidentTypeRequest { * The UUID of the incident type. * @type string */ - incidentTypeId: string; + incidentTypeId: string } export interface IncidentsApiGetIncidentRequest { @@ -2825,12 +1979,12 @@ export interface IncidentsApiGetIncidentRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * Specifies which types of related objects should be included in the response. * @type Array */ - include?: Array; + include?: Array } export interface IncidentsApiGetIncidentIntegrationRequest { @@ -2838,12 +1992,12 @@ export interface IncidentsApiGetIncidentIntegrationRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * The UUID of the incident integration metadata. * @type string */ - integrationMetadataId: string; + integrationMetadataId: string } export interface IncidentsApiGetIncidentTodoRequest { @@ -2851,12 +2005,12 @@ export interface IncidentsApiGetIncidentTodoRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * The UUID of the incident todo. * @type string */ - todoId: string; + todoId: string } export interface IncidentsApiGetIncidentTypeRequest { @@ -2864,7 +2018,7 @@ export interface IncidentsApiGetIncidentTypeRequest { * The UUID of the incident type. * @type string */ - incidentTypeId: string; + incidentTypeId: string } export interface IncidentsApiListIncidentAttachmentsRequest { @@ -2872,17 +2026,17 @@ export interface IncidentsApiListIncidentAttachmentsRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * Specifies which types of related objects are included in the response. * @type Array */ - include?: Array; + include?: Array /** * Specifies which types of attachments are included in the response. * @type Array */ - filterAttachmentType?: Array; + filterAttachmentType?: Array } export interface IncidentsApiListIncidentIntegrationsRequest { @@ -2890,7 +2044,7 @@ export interface IncidentsApiListIncidentIntegrationsRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string } export interface IncidentsApiListIncidentsRequest { @@ -2898,17 +2052,17 @@ export interface IncidentsApiListIncidentsRequest { * Specifies which types of related objects should be included in the response. * @type Array */ - include?: Array; + include?: Array /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number } export interface IncidentsApiListIncidentTodosRequest { @@ -2916,7 +2070,7 @@ export interface IncidentsApiListIncidentTodosRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string } export interface IncidentsApiListIncidentTypesRequest { @@ -2924,7 +2078,7 @@ export interface IncidentsApiListIncidentTypesRequest { * Include deleted incident types in the response. * @type boolean */ - includeDeleted?: boolean; + includeDeleted?: boolean } export interface IncidentsApiSearchIncidentsRequest { @@ -2934,27 +2088,27 @@ export interface IncidentsApiSearchIncidentsRequest { * example: `state:active AND severity:(SEV-2 OR SEV-1)`. * @type string */ - query: string; + query: string /** * Specifies which types of related objects should be included in the response. * @type IncidentRelatedObject */ - include?: IncidentRelatedObject; + include?: IncidentRelatedObject /** * Specifies the order of returned incidents. * @type IncidentSearchSortOrder */ - sort?: IncidentSearchSortOrder; + sort?: IncidentSearchSortOrder /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number } export interface IncidentsApiUpdateIncidentRequest { @@ -2962,17 +2116,17 @@ export interface IncidentsApiUpdateIncidentRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * Incident Payload. * @type IncidentUpdateRequest */ - body: IncidentUpdateRequest; + body: IncidentUpdateRequest /** * Specifies which types of related objects should be included in the response. * @type Array */ - include?: Array; + include?: Array } export interface IncidentsApiUpdateIncidentAttachmentsRequest { @@ -2980,17 +2134,17 @@ export interface IncidentsApiUpdateIncidentAttachmentsRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * Incident Attachment Payload. * @type IncidentAttachmentUpdateRequest */ - body: IncidentAttachmentUpdateRequest; + body: IncidentAttachmentUpdateRequest /** * Specifies which types of related objects are included in the response. * @type Array */ - include?: Array; + include?: Array } export interface IncidentsApiUpdateIncidentIntegrationRequest { @@ -2998,17 +2152,17 @@ export interface IncidentsApiUpdateIncidentIntegrationRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * The UUID of the incident integration metadata. * @type string */ - integrationMetadataId: string; + integrationMetadataId: string /** * Incident integration metadata payload. * @type IncidentIntegrationMetadataPatchRequest */ - body: IncidentIntegrationMetadataPatchRequest; + body: IncidentIntegrationMetadataPatchRequest } export interface IncidentsApiUpdateIncidentTodoRequest { @@ -3016,17 +2170,17 @@ export interface IncidentsApiUpdateIncidentTodoRequest { * The UUID of the incident. * @type string */ - incidentId: string; + incidentId: string /** * The UUID of the incident todo. * @type string */ - todoId: string; + todoId: string /** * Incident todo payload. * @type IncidentTodoPatchRequest */ - body: IncidentTodoPatchRequest; + body: IncidentTodoPatchRequest } export interface IncidentsApiUpdateIncidentTypeRequest { @@ -3034,12 +2188,12 @@ export interface IncidentsApiUpdateIncidentTypeRequest { * The UUID of the incident type. * @type string */ - incidentTypeId: string; + incidentTypeId: string /** * Incident type payload. * @type IncidentTypePatchRequest */ - body: IncidentTypePatchRequest; + body: IncidentTypePatchRequest } export class IncidentsApi { @@ -3047,35 +2201,21 @@ export class IncidentsApi { private responseProcessor: IncidentsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: IncidentsApiRequestFactory, - responseProcessor?: IncidentsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: IncidentsApiRequestFactory, responseProcessor?: IncidentsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new IncidentsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new IncidentsApiResponseProcessor(); + this.requestFactory = requestFactory || new IncidentsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new IncidentsApiResponseProcessor(); } /** * Create an incident. * @param param The request object */ - public createIncident( - param: IncidentsApiCreateIncidentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createIncident( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createIncident(responseContext); + public createIncident(param: IncidentsApiCreateIncidentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createIncident(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createIncident(responseContext); }); }); } @@ -3084,22 +2224,11 @@ export class IncidentsApi { * Create an incident integration metadata. * @param param The request object */ - public createIncidentIntegration( - param: IncidentsApiCreateIncidentIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createIncidentIntegration( - param.incidentId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createIncidentIntegration( - responseContext - ); + public createIncidentIntegration(param: IncidentsApiCreateIncidentIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createIncidentIntegration(param.incidentId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createIncidentIntegration(responseContext); }); }); } @@ -3108,20 +2237,11 @@ export class IncidentsApi { * Create an incident todo. * @param param The request object */ - public createIncidentTodo( - param: IncidentsApiCreateIncidentTodoRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createIncidentTodo( - param.incidentId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createIncidentTodo(responseContext); + public createIncidentTodo(param: IncidentsApiCreateIncidentTodoRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createIncidentTodo(param.incidentId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createIncidentTodo(responseContext); }); }); } @@ -3130,19 +2250,11 @@ export class IncidentsApi { * Create an incident type. * @param param The request object */ - public createIncidentType( - param: IncidentsApiCreateIncidentTypeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createIncidentType( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createIncidentType(responseContext); + public createIncidentType(param: IncidentsApiCreateIncidentTypeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createIncidentType(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createIncidentType(responseContext); }); }); } @@ -3151,19 +2263,11 @@ export class IncidentsApi { * Deletes an existing incident from the users organization. * @param param The request object */ - public deleteIncident( - param: IncidentsApiDeleteIncidentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteIncident( - param.incidentId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteIncident(responseContext); + public deleteIncident(param: IncidentsApiDeleteIncidentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteIncident(param.incidentId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteIncident(responseContext); }); }); } @@ -3172,22 +2276,11 @@ export class IncidentsApi { * Delete an incident integration metadata. * @param param The request object */ - public deleteIncidentIntegration( - param: IncidentsApiDeleteIncidentIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteIncidentIntegration( - param.incidentId, - param.integrationMetadataId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteIncidentIntegration( - responseContext - ); + public deleteIncidentIntegration(param: IncidentsApiDeleteIncidentIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteIncidentIntegration(param.incidentId,param.integrationMetadataId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteIncidentIntegration(responseContext); }); }); } @@ -3196,20 +2289,11 @@ export class IncidentsApi { * Delete an incident todo. * @param param The request object */ - public deleteIncidentTodo( - param: IncidentsApiDeleteIncidentTodoRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteIncidentTodo( - param.incidentId, - param.todoId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteIncidentTodo(responseContext); + public deleteIncidentTodo(param: IncidentsApiDeleteIncidentTodoRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteIncidentTodo(param.incidentId,param.todoId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteIncidentTodo(responseContext); }); }); } @@ -3218,19 +2302,11 @@ export class IncidentsApi { * Delete an incident type. * @param param The request object */ - public deleteIncidentType( - param: IncidentsApiDeleteIncidentTypeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteIncidentType( - param.incidentTypeId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteIncidentType(responseContext); + public deleteIncidentType(param: IncidentsApiDeleteIncidentTypeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteIncidentType(param.incidentTypeId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteIncidentType(responseContext); }); }); } @@ -3239,20 +2315,11 @@ export class IncidentsApi { * Get the details of an incident by `incident_id`. * @param param The request object */ - public getIncident( - param: IncidentsApiGetIncidentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncident( - param.incidentId, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncident(responseContext); + public getIncident(param: IncidentsApiGetIncidentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncident(param.incidentId,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncident(responseContext); }); }); } @@ -3261,20 +2328,11 @@ export class IncidentsApi { * Get incident integration metadata details. * @param param The request object */ - public getIncidentIntegration( - param: IncidentsApiGetIncidentIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncidentIntegration( - param.incidentId, - param.integrationMetadataId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncidentIntegration(responseContext); + public getIncidentIntegration(param: IncidentsApiGetIncidentIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncidentIntegration(param.incidentId,param.integrationMetadataId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncidentIntegration(responseContext); }); }); } @@ -3283,20 +2341,11 @@ export class IncidentsApi { * Get incident todo details. * @param param The request object */ - public getIncidentTodo( - param: IncidentsApiGetIncidentTodoRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncidentTodo( - param.incidentId, - param.todoId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncidentTodo(responseContext); + public getIncidentTodo(param: IncidentsApiGetIncidentTodoRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncidentTodo(param.incidentId,param.todoId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncidentTodo(responseContext); }); }); } @@ -3305,19 +2354,11 @@ export class IncidentsApi { * Get incident type details. * @param param The request object */ - public getIncidentType( - param: IncidentsApiGetIncidentTypeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getIncidentType( - param.incidentTypeId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getIncidentType(responseContext); + public getIncidentType(param: IncidentsApiGetIncidentTypeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getIncidentType(param.incidentTypeId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getIncidentType(responseContext); }); }); } @@ -3326,23 +2367,11 @@ export class IncidentsApi { * Get all attachments for a given incident. * @param param The request object */ - public listIncidentAttachments( - param: IncidentsApiListIncidentAttachmentsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidentAttachments( - param.incidentId, - param.include, - param.filterAttachmentType, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidentAttachments( - responseContext - ); + public listIncidentAttachments(param: IncidentsApiListIncidentAttachmentsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidentAttachments(param.incidentId,param.include,param.filterAttachmentType,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidentAttachments(responseContext); }); }); } @@ -3351,21 +2380,11 @@ export class IncidentsApi { * Get all integration metadata for an incident. * @param param The request object */ - public listIncidentIntegrations( - param: IncidentsApiListIncidentIntegrationsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidentIntegrations( - param.incidentId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidentIntegrations( - responseContext - ); + public listIncidentIntegrations(param: IncidentsApiListIncidentIntegrationsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidentIntegrations(param.incidentId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidentIntegrations(responseContext); }); }); } @@ -3374,21 +2393,11 @@ export class IncidentsApi { * Get all incidents for the user's organization. * @param param The request object */ - public listIncidents( - param: IncidentsApiListIncidentsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidents( - param.include, - param.pageSize, - param.pageOffset, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidents(responseContext); + public listIncidents(param: IncidentsApiListIncidentsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidents(param.include,param.pageSize,param.pageOffset,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidents(responseContext); }); }); } @@ -3396,29 +2405,18 @@ export class IncidentsApi { /** * Provide a paginated version of listIncidents returning a generator with all the items. */ - public async *listIncidentsWithPagination( - param: IncidentsApiListIncidentsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listIncidentsWithPagination(param: IncidentsApiListIncidentsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.listIncidents( - param.include, - param.pageSize, - param.pageOffset, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listIncidents( - responseContext - ); + const requestContext = await this.requestFactory.listIncidents(param.include,param.pageSize,param.pageOffset,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listIncidents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -3442,19 +2440,11 @@ export class IncidentsApi { * Get all todos for an incident. * @param param The request object */ - public listIncidentTodos( - param: IncidentsApiListIncidentTodosRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidentTodos( - param.incidentId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidentTodos(responseContext); + public listIncidentTodos(param: IncidentsApiListIncidentTodosRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidentTodos(param.incidentId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidentTodos(responseContext); }); }); } @@ -3463,19 +2453,11 @@ export class IncidentsApi { * Get all incident types. * @param param The request object */ - public listIncidentTypes( - param: IncidentsApiListIncidentTypesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listIncidentTypes( - param.includeDeleted, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listIncidentTypes(responseContext); + public listIncidentTypes(param: IncidentsApiListIncidentTypesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listIncidentTypes(param.includeDeleted,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listIncidentTypes(responseContext); }); }); } @@ -3484,23 +2466,11 @@ export class IncidentsApi { * Search for incidents matching a certain query. * @param param The request object */ - public searchIncidents( - param: IncidentsApiSearchIncidentsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchIncidents( - param.query, - param.include, - param.sort, - param.pageSize, - param.pageOffset, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchIncidents(responseContext); + public searchIncidents(param: IncidentsApiSearchIncidentsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchIncidents(param.query,param.include,param.sort,param.pageSize,param.pageOffset,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchIncidents(responseContext); }); }); } @@ -3508,31 +2478,18 @@ export class IncidentsApi { /** * Provide a paginated version of searchIncidents returning a generator with all the items. */ - public async *searchIncidentsWithPagination( - param: IncidentsApiSearchIncidentsRequest, - options?: Configuration - ): AsyncGenerator { + public async *searchIncidentsWithPagination(param: IncidentsApiSearchIncidentsRequest, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.searchIncidents( - param.query, - param.include, - param.sort, - param.pageSize, - param.pageOffset, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchIncidents( - responseContext - ); + const requestContext = await this.requestFactory.searchIncidents(param.query,param.include,param.sort,param.pageSize,param.pageOffset,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchIncidents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -3564,21 +2521,11 @@ export class IncidentsApi { * Updates an incident. Provide only the attributes that should be updated as this request is a partial update. * @param param The request object */ - public updateIncident( - param: IncidentsApiUpdateIncidentRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncident( - param.incidentId, - param.body, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncident(responseContext); + public updateIncident(param: IncidentsApiUpdateIncidentRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncident(param.incidentId,param.body,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncident(responseContext); }); }); } @@ -3587,23 +2534,11 @@ export class IncidentsApi { * The bulk update endpoint for creating, updating, and deleting attachments for a given incident. * @param param The request object */ - public updateIncidentAttachments( - param: IncidentsApiUpdateIncidentAttachmentsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncidentAttachments( - param.incidentId, - param.body, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncidentAttachments( - responseContext - ); + public updateIncidentAttachments(param: IncidentsApiUpdateIncidentAttachmentsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncidentAttachments(param.incidentId,param.body,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncidentAttachments(responseContext); }); }); } @@ -3612,23 +2547,11 @@ export class IncidentsApi { * Update an existing incident integration metadata. * @param param The request object */ - public updateIncidentIntegration( - param: IncidentsApiUpdateIncidentIntegrationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncidentIntegration( - param.incidentId, - param.integrationMetadataId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncidentIntegration( - responseContext - ); + public updateIncidentIntegration(param: IncidentsApiUpdateIncidentIntegrationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncidentIntegration(param.incidentId,param.integrationMetadataId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncidentIntegration(responseContext); }); }); } @@ -3637,21 +2560,11 @@ export class IncidentsApi { * Update an incident todo. * @param param The request object */ - public updateIncidentTodo( - param: IncidentsApiUpdateIncidentTodoRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncidentTodo( - param.incidentId, - param.todoId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncidentTodo(responseContext); + public updateIncidentTodo(param: IncidentsApiUpdateIncidentTodoRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncidentTodo(param.incidentId,param.todoId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncidentTodo(responseContext); }); }); } @@ -3660,21 +2573,12 @@ export class IncidentsApi { * Update an incident type. * @param param The request object */ - public updateIncidentType( - param: IncidentsApiUpdateIncidentTypeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateIncidentType( - param.incidentTypeId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateIncidentType(responseContext); + public updateIncidentType(param: IncidentsApiUpdateIncidentTypeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateIncidentType(param.incidentTypeId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateIncidentType(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts index 7836a426c378..dbc83777e142 100644 --- a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { APIKeyCreateRequest } from "../models/APIKeyCreateRequest"; import { APIKeyResponse } from "../models/APIKeyResponse"; @@ -29,31 +27,26 @@ import { ApplicationKeyUpdateRequest } from "../models/ApplicationKeyUpdateReque import { ListApplicationKeysResponse } from "../models/ListApplicationKeysResponse"; export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { - public async createAPIKey( - body: APIKeyCreateRequest, - _options?: Configuration - ): Promise { + + public async createAPIKey(body: APIKeyCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createAPIKey"); + throw new RequiredError('body', 'createAPIKey'); } // Path Params - const localVarPath = "/api/v2/api_keys"; + const localVarPath = '/api/v2/api_keys'; // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.createAPIKey") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.KeyManagementApi.createAPIKey').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "APIKeyCreateRequest", ""), @@ -62,39 +55,30 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createCurrentUserApplicationKey( - body: ApplicationKeyCreateRequest, - _options?: Configuration - ): Promise { + public async createCurrentUserApplicationKey(body: ApplicationKeyCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createCurrentUserApplicationKey"); + throw new RequiredError('body', 'createCurrentUserApplicationKey'); } // Path Params - const localVarPath = "/api/v2/current_user/application_keys"; + const localVarPath = '/api/v2/current_user/application_keys'; // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.createCurrentUserApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.KeyManagementApi.createCurrentUserApplicationKey').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKeyCreateRequest", ""), @@ -103,550 +87,316 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteAPIKey( - apiKeyId: string, - _options?: Configuration - ): Promise { + public async deleteAPIKey(apiKeyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'apiKeyId' is not null or undefined if (apiKeyId === null || apiKeyId === undefined) { - throw new RequiredError("apiKeyId", "deleteAPIKey"); + throw new RequiredError('apiKeyId', 'deleteAPIKey'); } // Path Params - const localVarPath = "/api/v2/api_keys/{api_key_id}".replace( - "{api_key_id}", - encodeURIComponent(String(apiKeyId)) - ); + const localVarPath = '/api/v2/api_keys/{api_key_id}' + .replace('{api_key_id}', encodeURIComponent(String(apiKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.deleteAPIKey") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.KeyManagementApi.deleteAPIKey').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteApplicationKey( - appKeyId: string, - _options?: Configuration - ): Promise { + public async deleteApplicationKey(appKeyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "deleteApplicationKey"); + throw new RequiredError('appKeyId', 'deleteApplicationKey'); } // Path Params - const localVarPath = "/api/v2/application_keys/{app_key_id}".replace( - "{app_key_id}", - encodeURIComponent(String(appKeyId)) - ); + const localVarPath = '/api/v2/application_keys/{app_key_id}' + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.deleteApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.KeyManagementApi.deleteApplicationKey').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteCurrentUserApplicationKey( - appKeyId: string, - _options?: Configuration - ): Promise { + public async deleteCurrentUserApplicationKey(appKeyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "deleteCurrentUserApplicationKey"); + throw new RequiredError('appKeyId', 'deleteCurrentUserApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/current_user/application_keys/{app_key_id}".replace( - "{app_key_id}", - encodeURIComponent(String(appKeyId)) - ); + const localVarPath = '/api/v2/current_user/application_keys/{app_key_id}' + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.deleteCurrentUserApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.KeyManagementApi.deleteCurrentUserApplicationKey').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getAPIKey( - apiKeyId: string, - include?: string, - _options?: Configuration - ): Promise { + public async getAPIKey(apiKeyId: string,include?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'apiKeyId' is not null or undefined if (apiKeyId === null || apiKeyId === undefined) { - throw new RequiredError("apiKeyId", "getAPIKey"); + throw new RequiredError('apiKeyId', 'getAPIKey'); } // Path Params - const localVarPath = "/api/v2/api_keys/{api_key_id}".replace( - "{api_key_id}", - encodeURIComponent(String(apiKeyId)) - ); + const localVarPath = '/api/v2/api_keys/{api_key_id}' + .replace('{api_key_id}', encodeURIComponent(String(apiKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.getAPIKey") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.KeyManagementApi.getAPIKey').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getApplicationKey( - appKeyId: string, - include?: string, - _options?: Configuration - ): Promise { + public async getApplicationKey(appKeyId: string,include?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "getApplicationKey"); + throw new RequiredError('appKeyId', 'getApplicationKey'); } // Path Params - const localVarPath = "/api/v2/application_keys/{app_key_id}".replace( - "{app_key_id}", - encodeURIComponent(String(appKeyId)) - ); + const localVarPath = '/api/v2/application_keys/{app_key_id}' + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.getApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.KeyManagementApi.getApplicationKey').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCurrentUserApplicationKey( - appKeyId: string, - _options?: Configuration - ): Promise { + public async getCurrentUserApplicationKey(appKeyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "getCurrentUserApplicationKey"); + throw new RequiredError('appKeyId', 'getCurrentUserApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/current_user/application_keys/{app_key_id}".replace( - "{app_key_id}", - encodeURIComponent(String(appKeyId)) - ); + const localVarPath = '/api/v2/current_user/application_keys/{app_key_id}' + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.getCurrentUserApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.KeyManagementApi.getCurrentUserApplicationKey').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listAPIKeys( - pageSize?: number, - pageNumber?: number, - sort?: APIKeysSort, - filter?: string, - filterCreatedAtStart?: string, - filterCreatedAtEnd?: string, - filterModifiedAtStart?: string, - filterModifiedAtEnd?: string, - include?: string, - filterRemoteConfigReadEnabled?: boolean, - filterCategory?: string, - _options?: Configuration - ): Promise { + public async listAPIKeys(pageSize?: number,pageNumber?: number,sort?: APIKeysSort,filter?: string,filterCreatedAtStart?: string,filterCreatedAtEnd?: string,filterModifiedAtStart?: string,filterModifiedAtEnd?: string,include?: string,filterRemoteConfigReadEnabled?: boolean,filterCategory?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/api_keys"; + const localVarPath = '/api/v2/api_keys'; // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.listAPIKeys") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.KeyManagementApi.listAPIKeys').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "APIKeysSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "APIKeysSort", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (filterCreatedAtStart !== undefined) { - requestContext.setQueryParam( - "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); } if (filterCreatedAtEnd !== undefined) { - requestContext.setQueryParam( - "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); } if (filterModifiedAtStart !== undefined) { - requestContext.setQueryParam( - "filter[modified_at][start]", - ObjectSerializer.serialize(filterModifiedAtStart, "string", ""), - "" - ); + requestContext.setQueryParam("filter[modified_at][start]", ObjectSerializer.serialize(filterModifiedAtStart, "string", ""), ""); } if (filterModifiedAtEnd !== undefined) { - requestContext.setQueryParam( - "filter[modified_at][end]", - ObjectSerializer.serialize(filterModifiedAtEnd, "string", ""), - "" - ); + requestContext.setQueryParam("filter[modified_at][end]", ObjectSerializer.serialize(filterModifiedAtEnd, "string", ""), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } if (filterRemoteConfigReadEnabled !== undefined) { - requestContext.setQueryParam( - "filter[remote_config_read_enabled]", - ObjectSerializer.serialize( - filterRemoteConfigReadEnabled, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[remote_config_read_enabled]", ObjectSerializer.serialize(filterRemoteConfigReadEnabled, "boolean", ""), ""); } if (filterCategory !== undefined) { - requestContext.setQueryParam( - "filter[category]", - ObjectSerializer.serialize(filterCategory, "string", ""), - "" - ); + requestContext.setQueryParam("filter[category]", ObjectSerializer.serialize(filterCategory, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listApplicationKeys( - pageSize?: number, - pageNumber?: number, - sort?: ApplicationKeysSort, - filter?: string, - filterCreatedAtStart?: string, - filterCreatedAtEnd?: string, - include?: string, - _options?: Configuration - ): Promise { + public async listApplicationKeys(pageSize?: number,pageNumber?: number,sort?: ApplicationKeysSort,filter?: string,filterCreatedAtStart?: string,filterCreatedAtEnd?: string,include?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/application_keys"; + const localVarPath = '/api/v2/application_keys'; // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.listApplicationKeys") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.KeyManagementApi.listApplicationKeys').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (filterCreatedAtStart !== undefined) { - requestContext.setQueryParam( - "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); } if (filterCreatedAtEnd !== undefined) { - requestContext.setQueryParam( - "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCurrentUserApplicationKeys( - pageSize?: number, - pageNumber?: number, - sort?: ApplicationKeysSort, - filter?: string, - filterCreatedAtStart?: string, - filterCreatedAtEnd?: string, - include?: string, - _options?: Configuration - ): Promise { + public async listCurrentUserApplicationKeys(pageSize?: number,pageNumber?: number,sort?: ApplicationKeysSort,filter?: string,filterCreatedAtStart?: string,filterCreatedAtEnd?: string,include?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/current_user/application_keys"; + const localVarPath = '/api/v2/current_user/application_keys'; // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.listCurrentUserApplicationKeys") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.KeyManagementApi.listCurrentUserApplicationKeys').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (filterCreatedAtStart !== undefined) { - requestContext.setQueryParam( - "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); } if (filterCreatedAtEnd !== undefined) { - requestContext.setQueryParam( - "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateAPIKey( - apiKeyId: string, - body: APIKeyUpdateRequest, - _options?: Configuration - ): Promise { + public async updateAPIKey(apiKeyId: string,body: APIKeyUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'apiKeyId' is not null or undefined if (apiKeyId === null || apiKeyId === undefined) { - throw new RequiredError("apiKeyId", "updateAPIKey"); + throw new RequiredError('apiKeyId', 'updateAPIKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateAPIKey"); + throw new RequiredError('body', 'updateAPIKey'); } // Path Params - const localVarPath = "/api/v2/api_keys/{api_key_id}".replace( - "{api_key_id}", - encodeURIComponent(String(apiKeyId)) - ); + const localVarPath = '/api/v2/api_keys/{api_key_id}' + .replace('{api_key_id}', encodeURIComponent(String(apiKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.updateAPIKey") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.KeyManagementApi.updateAPIKey').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "APIKeyUpdateRequest", ""), @@ -655,48 +405,36 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateApplicationKey( - appKeyId: string, - body: ApplicationKeyUpdateRequest, - _options?: Configuration - ): Promise { + public async updateApplicationKey(appKeyId: string,body: ApplicationKeyUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "updateApplicationKey"); + throw new RequiredError('appKeyId', 'updateApplicationKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateApplicationKey"); + throw new RequiredError('body', 'updateApplicationKey'); } // Path Params - const localVarPath = "/api/v2/application_keys/{app_key_id}".replace( - "{app_key_id}", - encodeURIComponent(String(appKeyId)) - ); + const localVarPath = '/api/v2/application_keys/{app_key_id}' + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.updateApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.KeyManagementApi.updateApplicationKey').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKeyUpdateRequest", ""), @@ -705,49 +443,36 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateCurrentUserApplicationKey( - appKeyId: string, - body: ApplicationKeyUpdateRequest, - _options?: Configuration - ): Promise { + public async updateCurrentUserApplicationKey(appKeyId: string,body: ApplicationKeyUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "updateCurrentUserApplicationKey"); + throw new RequiredError('appKeyId', 'updateCurrentUserApplicationKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateCurrentUserApplicationKey"); + throw new RequiredError('body', 'updateCurrentUserApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/current_user/application_keys/{app_key_id}".replace( - "{app_key_id}", - encodeURIComponent(String(appKeyId)) - ); + const localVarPath = '/api/v2/current_user/application_keys/{app_key_id}' + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.KeyManagementApi.updateCurrentUserApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.KeyManagementApi.updateCurrentUserApplicationKey').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKeyUpdateRequest", ""), @@ -756,16 +481,14 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class KeyManagementApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -773,12 +496,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to createAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async createAPIKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: APIKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -786,15 +505,8 @@ export class KeyManagementApiResponseProcessor { ) as APIKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -803,11 +515,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -815,17 +524,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: APIKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "APIKeyResponse", - "" + "APIKeyResponse", "" ) as APIKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -835,12 +540,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to createCurrentUserApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async createCurrentUserApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createCurrentUserApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -848,15 +549,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -865,11 +559,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -877,17 +568,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -897,22 +584,13 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAPIKey(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -921,11 +599,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -933,17 +608,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -953,22 +624,13 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async deleteApplicationKey(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -977,11 +639,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -989,17 +648,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1009,24 +664,13 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to deleteCurrentUserApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCurrentUserApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCurrentUserApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1035,11 +679,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1047,17 +688,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1067,10 +704,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to getAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIKey(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: APIKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1078,15 +713,8 @@ export class KeyManagementApiResponseProcessor { ) as APIKeyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1095,11 +723,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1107,17 +732,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: APIKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "APIKeyResponse", - "" + "APIKeyResponse", "" ) as APIKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1127,12 +748,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to getApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async getApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1140,16 +757,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1158,11 +767,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1170,17 +776,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1190,12 +792,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to getCurrentUserApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async getCurrentUserApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCurrentUserApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1203,15 +801,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1220,11 +811,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1232,17 +820,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1252,12 +836,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to listAPIKeys * @throws ApiException if the response code was not in [200, 299] */ - public async listAPIKeys( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listAPIKeys(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: APIKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1265,15 +845,8 @@ export class KeyManagementApiResponseProcessor { ) as APIKeysResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1282,11 +855,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1294,17 +864,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: APIKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "APIKeysResponse", - "" + "APIKeysResponse", "" ) as APIKeysResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1314,12 +880,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to listApplicationKeys * @throws ApiException if the response code was not in [200, 299] */ - public async listApplicationKeys( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listApplicationKeys(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListApplicationKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1327,16 +889,8 @@ export class KeyManagementApiResponseProcessor { ) as ListApplicationKeysResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1345,11 +899,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1357,17 +908,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListApplicationKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListApplicationKeysResponse", - "" + "ListApplicationKeysResponse", "" ) as ListApplicationKeysResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1377,12 +924,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to listCurrentUserApplicationKeys * @throws ApiException if the response code was not in [200, 299] */ - public async listCurrentUserApplicationKeys( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCurrentUserApplicationKeys(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListApplicationKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1390,16 +933,8 @@ export class KeyManagementApiResponseProcessor { ) as ListApplicationKeysResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1408,11 +943,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1420,17 +952,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListApplicationKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListApplicationKeysResponse", - "" + "ListApplicationKeysResponse", "" ) as ListApplicationKeysResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1440,12 +968,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateAPIKey * @throws ApiException if the response code was not in [200, 299] */ - public async updateAPIKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateAPIKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: APIKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1453,16 +977,8 @@ export class KeyManagementApiResponseProcessor { ) as APIKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1471,11 +987,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1483,17 +996,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: APIKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "APIKeyResponse", - "" + "APIKeyResponse", "" ) as APIKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1503,12 +1012,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async updateApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1516,16 +1021,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1534,11 +1031,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1546,17 +1040,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1566,12 +1056,8 @@ export class KeyManagementApiResponseProcessor { * @params response Response returned by the server for a request to updateCurrentUserApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async updateCurrentUserApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateCurrentUserApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1579,16 +1065,8 @@ export class KeyManagementApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1597,11 +1075,8 @@ export class KeyManagementApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1609,17 +1084,13 @@ export class KeyManagementApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1627,14 +1098,14 @@ export interface KeyManagementApiCreateAPIKeyRequest { /** * @type APIKeyCreateRequest */ - body: APIKeyCreateRequest; + body: APIKeyCreateRequest } export interface KeyManagementApiCreateCurrentUserApplicationKeyRequest { /** * @type ApplicationKeyCreateRequest */ - body: ApplicationKeyCreateRequest; + body: ApplicationKeyCreateRequest } export interface KeyManagementApiDeleteAPIKeyRequest { @@ -1642,7 +1113,7 @@ export interface KeyManagementApiDeleteAPIKeyRequest { * The ID of the API key. * @type string */ - apiKeyId: string; + apiKeyId: string } export interface KeyManagementApiDeleteApplicationKeyRequest { @@ -1650,7 +1121,7 @@ export interface KeyManagementApiDeleteApplicationKeyRequest { * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string } export interface KeyManagementApiDeleteCurrentUserApplicationKeyRequest { @@ -1658,7 +1129,7 @@ export interface KeyManagementApiDeleteCurrentUserApplicationKeyRequest { * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string } export interface KeyManagementApiGetAPIKeyRequest { @@ -1666,12 +1137,12 @@ export interface KeyManagementApiGetAPIKeyRequest { * The ID of the API key. * @type string */ - apiKeyId: string; + apiKeyId: string /** * Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. * @type string */ - include?: string; + include?: string } export interface KeyManagementApiGetApplicationKeyRequest { @@ -1679,12 +1150,12 @@ export interface KeyManagementApiGetApplicationKeyRequest { * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string /** * Resource path for related resources to include in the response. Only `owned_by` is supported. * @type string */ - include?: string; + include?: string } export interface KeyManagementApiGetCurrentUserApplicationKeyRequest { @@ -1692,7 +1163,7 @@ export interface KeyManagementApiGetCurrentUserApplicationKeyRequest { * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string } export interface KeyManagementApiListAPIKeysRequest { @@ -1700,59 +1171,59 @@ export interface KeyManagementApiListAPIKeysRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * API key attribute used to sort results. Sort order is ascending * by default. In order to specify a descending sort, prefix the * attribute with a minus sign. * @type APIKeysSort */ - sort?: APIKeysSort; + sort?: APIKeysSort /** * Filter API keys by the specified string. * @type string */ - filter?: string; + filter?: string /** * Only include API keys created on or after the specified date. * @type string */ - filterCreatedAtStart?: string; + filterCreatedAtStart?: string /** * Only include API keys created on or before the specified date. * @type string */ - filterCreatedAtEnd?: string; + filterCreatedAtEnd?: string /** * Only include API keys modified on or after the specified date. * @type string */ - filterModifiedAtStart?: string; + filterModifiedAtStart?: string /** * Only include API keys modified on or before the specified date. * @type string */ - filterModifiedAtEnd?: string; + filterModifiedAtEnd?: string /** * Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. * @type string */ - include?: string; + include?: string /** * Filter API keys by remote config read enabled status. * @type boolean */ - filterRemoteConfigReadEnabled?: boolean; + filterRemoteConfigReadEnabled?: boolean /** * Filter API keys by category. * @type string */ - filterCategory?: string; + filterCategory?: string } export interface KeyManagementApiListApplicationKeysRequest { @@ -1760,39 +1231,39 @@ export interface KeyManagementApiListApplicationKeysRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Application key attribute used to sort results. Sort order is ascending * by default. In order to specify a descending sort, prefix the * attribute with a minus sign. * @type ApplicationKeysSort */ - sort?: ApplicationKeysSort; + sort?: ApplicationKeysSort /** * Filter application keys by the specified string. * @type string */ - filter?: string; + filter?: string /** * Only include application keys created on or after the specified date. * @type string */ - filterCreatedAtStart?: string; + filterCreatedAtStart?: string /** * Only include application keys created on or before the specified date. * @type string */ - filterCreatedAtEnd?: string; + filterCreatedAtEnd?: string /** * Resource path for related resources to include in the response. Only `owned_by` is supported. * @type string */ - include?: string; + include?: string } export interface KeyManagementApiListCurrentUserApplicationKeysRequest { @@ -1800,39 +1271,39 @@ export interface KeyManagementApiListCurrentUserApplicationKeysRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Application key attribute used to sort results. Sort order is ascending * by default. In order to specify a descending sort, prefix the * attribute with a minus sign. * @type ApplicationKeysSort */ - sort?: ApplicationKeysSort; + sort?: ApplicationKeysSort /** * Filter application keys by the specified string. * @type string */ - filter?: string; + filter?: string /** * Only include application keys created on or after the specified date. * @type string */ - filterCreatedAtStart?: string; + filterCreatedAtStart?: string /** * Only include application keys created on or before the specified date. * @type string */ - filterCreatedAtEnd?: string; + filterCreatedAtEnd?: string /** * Resource path for related resources to include in the response. Only `owned_by` is supported. * @type string */ - include?: string; + include?: string } export interface KeyManagementApiUpdateAPIKeyRequest { @@ -1840,11 +1311,11 @@ export interface KeyManagementApiUpdateAPIKeyRequest { * The ID of the API key. * @type string */ - apiKeyId: string; + apiKeyId: string /** * @type APIKeyUpdateRequest */ - body: APIKeyUpdateRequest; + body: APIKeyUpdateRequest } export interface KeyManagementApiUpdateApplicationKeyRequest { @@ -1852,11 +1323,11 @@ export interface KeyManagementApiUpdateApplicationKeyRequest { * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string /** * @type ApplicationKeyUpdateRequest */ - body: ApplicationKeyUpdateRequest; + body: ApplicationKeyUpdateRequest } export interface KeyManagementApiUpdateCurrentUserApplicationKeyRequest { @@ -1864,11 +1335,11 @@ export interface KeyManagementApiUpdateCurrentUserApplicationKeyRequest { * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string /** * @type ApplicationKeyUpdateRequest */ - body: ApplicationKeyUpdateRequest; + body: ApplicationKeyUpdateRequest } export class KeyManagementApi { @@ -1876,35 +1347,21 @@ export class KeyManagementApi { private responseProcessor: KeyManagementApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: KeyManagementApiRequestFactory, - responseProcessor?: KeyManagementApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: KeyManagementApiRequestFactory, responseProcessor?: KeyManagementApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new KeyManagementApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new KeyManagementApiResponseProcessor(); + this.requestFactory = requestFactory || new KeyManagementApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new KeyManagementApiResponseProcessor(); } /** * Create an API key. * @param param The request object */ - public createAPIKey( - param: KeyManagementApiCreateAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createAPIKey( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createAPIKey(responseContext); + public createAPIKey(param: KeyManagementApiCreateAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createAPIKey(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createAPIKey(responseContext); }); }); } @@ -1913,19 +1370,11 @@ export class KeyManagementApi { * Create an application key for current user * @param param The request object */ - public createCurrentUserApplicationKey( - param: KeyManagementApiCreateCurrentUserApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createCurrentUserApplicationKey(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createCurrentUserApplicationKey( - responseContext - ); + public createCurrentUserApplicationKey(param: KeyManagementApiCreateCurrentUserApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createCurrentUserApplicationKey(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createCurrentUserApplicationKey(responseContext); }); }); } @@ -1934,19 +1383,11 @@ export class KeyManagementApi { * Delete an API key. * @param param The request object */ - public deleteAPIKey( - param: KeyManagementApiDeleteAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteAPIKey( - param.apiKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteAPIKey(responseContext); + public deleteAPIKey(param: KeyManagementApiDeleteAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteAPIKey(param.apiKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteAPIKey(responseContext); }); }); } @@ -1955,19 +1396,11 @@ export class KeyManagementApi { * Delete an application key * @param param The request object */ - public deleteApplicationKey( - param: KeyManagementApiDeleteApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteApplicationKey( - param.appKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteApplicationKey(responseContext); + public deleteApplicationKey(param: KeyManagementApiDeleteApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteApplicationKey(param.appKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteApplicationKey(responseContext); }); }); } @@ -1976,22 +1409,11 @@ export class KeyManagementApi { * Delete an application key owned by current user * @param param The request object */ - public deleteCurrentUserApplicationKey( - param: KeyManagementApiDeleteCurrentUserApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteCurrentUserApplicationKey( - param.appKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCurrentUserApplicationKey( - responseContext - ); + public deleteCurrentUserApplicationKey(param: KeyManagementApiDeleteCurrentUserApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCurrentUserApplicationKey(param.appKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCurrentUserApplicationKey(responseContext); }); }); } @@ -2000,20 +1422,11 @@ export class KeyManagementApi { * Get an API key. * @param param The request object */ - public getAPIKey( - param: KeyManagementApiGetAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getAPIKey( - param.apiKeyId, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getAPIKey(responseContext); + public getAPIKey(param: KeyManagementApiGetAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAPIKey(param.apiKeyId,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getAPIKey(responseContext); }); }); } @@ -2022,20 +1435,11 @@ export class KeyManagementApi { * Get an application key for your org. * @param param The request object */ - public getApplicationKey( - param: KeyManagementApiGetApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getApplicationKey( - param.appKeyId, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getApplicationKey(responseContext); + public getApplicationKey(param: KeyManagementApiGetApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getApplicationKey(param.appKeyId,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getApplicationKey(responseContext); }); }); } @@ -2044,19 +1448,11 @@ export class KeyManagementApi { * Get an application key owned by current user * @param param The request object */ - public getCurrentUserApplicationKey( - param: KeyManagementApiGetCurrentUserApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getCurrentUserApplicationKey(param.appKeyId, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCurrentUserApplicationKey( - responseContext - ); + public getCurrentUserApplicationKey(param: KeyManagementApiGetCurrentUserApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCurrentUserApplicationKey(param.appKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCurrentUserApplicationKey(responseContext); }); }); } @@ -2065,29 +1461,11 @@ export class KeyManagementApi { * List all API keys available for your account. * @param param The request object */ - public listAPIKeys( - param: KeyManagementApiListAPIKeysRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listAPIKeys( - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - param.filterCreatedAtStart, - param.filterCreatedAtEnd, - param.filterModifiedAtStart, - param.filterModifiedAtEnd, - param.include, - param.filterRemoteConfigReadEnabled, - param.filterCategory, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listAPIKeys(responseContext); + public listAPIKeys(param: KeyManagementApiListAPIKeysRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listAPIKeys(param.pageSize,param.pageNumber,param.sort,param.filter,param.filterCreatedAtStart,param.filterCreatedAtEnd,param.filterModifiedAtStart,param.filterModifiedAtEnd,param.include,param.filterRemoteConfigReadEnabled,param.filterCategory,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listAPIKeys(responseContext); }); }); } @@ -2096,25 +1474,11 @@ export class KeyManagementApi { * List all application keys available for your org * @param param The request object */ - public listApplicationKeys( - param: KeyManagementApiListApplicationKeysRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listApplicationKeys( - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - param.filterCreatedAtStart, - param.filterCreatedAtEnd, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listApplicationKeys(responseContext); + public listApplicationKeys(param: KeyManagementApiListApplicationKeysRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listApplicationKeys(param.pageSize,param.pageNumber,param.sort,param.filter,param.filterCreatedAtStart,param.filterCreatedAtEnd,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listApplicationKeys(responseContext); }); }); } @@ -2123,28 +1487,11 @@ export class KeyManagementApi { * List all application keys available for current user * @param param The request object */ - public listCurrentUserApplicationKeys( - param: KeyManagementApiListCurrentUserApplicationKeysRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listCurrentUserApplicationKeys( - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - param.filterCreatedAtStart, - param.filterCreatedAtEnd, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCurrentUserApplicationKeys( - responseContext - ); + public listCurrentUserApplicationKeys(param: KeyManagementApiListCurrentUserApplicationKeysRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCurrentUserApplicationKeys(param.pageSize,param.pageNumber,param.sort,param.filter,param.filterCreatedAtStart,param.filterCreatedAtEnd,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCurrentUserApplicationKeys(responseContext); }); }); } @@ -2153,20 +1500,11 @@ export class KeyManagementApi { * Update an API key. * @param param The request object */ - public updateAPIKey( - param: KeyManagementApiUpdateAPIKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateAPIKey( - param.apiKeyId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateAPIKey(responseContext); + public updateAPIKey(param: KeyManagementApiUpdateAPIKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateAPIKey(param.apiKeyId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateAPIKey(responseContext); }); }); } @@ -2175,20 +1513,11 @@ export class KeyManagementApi { * Edit an application key * @param param The request object */ - public updateApplicationKey( - param: KeyManagementApiUpdateApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateApplicationKey( - param.appKeyId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateApplicationKey(responseContext); + public updateApplicationKey(param: KeyManagementApiUpdateApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateApplicationKey(param.appKeyId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateApplicationKey(responseContext); }); }); } @@ -2197,24 +1526,12 @@ export class KeyManagementApi { * Edit an application key owned by current user * @param param The request object */ - public updateCurrentUserApplicationKey( - param: KeyManagementApiUpdateCurrentUserApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateCurrentUserApplicationKey( - param.appKeyId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateCurrentUserApplicationKey( - responseContext - ); + public updateCurrentUserApplicationKey(param: KeyManagementApiUpdateCurrentUserApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateCurrentUserApplicationKey(param.appKeyId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateCurrentUserApplicationKey(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/LogsApi.ts b/packages/datadog-api-client-v2/apis/LogsApi.ts index 57fc63bfc094..043bb2904958 100644 --- a/packages/datadog-api-client-v2/apis/LogsApi.ts +++ b/packages/datadog-api-client-v2/apis/LogsApi.ts @@ -1,23 +1,22 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ContentEncoding } from "../models/ContentEncoding"; +import { HTTPLog } from "../models/HTTPLog"; import { HTTPLogErrors } from "../models/HTTPLogErrors"; import { HTTPLogItem } from "../models/HTTPLogItem"; import { Log } from "../models/Log"; @@ -30,31 +29,26 @@ import { LogsSort } from "../models/LogsSort"; import { LogsStorageTier } from "../models/LogsStorageTier"; export class LogsApiRequestFactory extends BaseAPIRequestFactory { - public async aggregateLogs( - body: LogsAggregateRequest, - _options?: Configuration - ): Promise { + + public async aggregateLogs(body: LogsAggregateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "aggregateLogs"); + throw new RequiredError('body', 'aggregateLogs'); } // Path Params - const localVarPath = "/api/v2/logs/analytics/aggregate"; + const localVarPath = '/api/v2/logs/analytics/aggregate'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsApi.aggregateLogs") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsApi.aggregateLogs').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsAggregateRequest", ""), @@ -63,34 +57,25 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogs( - body?: LogsListRequest, - _options?: Configuration - ): Promise { + public async listLogs(body?: LogsListRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/logs/events/search"; + const localVarPath = '/api/v2/logs/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsApi.listLogs") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsApi.listLogs').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsListRequest", ""), @@ -99,150 +84,85 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogsGet( - filterQuery?: string, - filterIndexes?: Array, - filterFrom?: Date, - filterTo?: Date, - filterStorageTier?: LogsStorageTier, - sort?: LogsSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listLogsGet(filterQuery?: string,filterIndexes?: Array,filterFrom?: Date,filterTo?: Date,filterStorageTier?: LogsStorageTier,sort?: LogsSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/logs/events"; + const localVarPath = '/api/v2/logs/events'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsApi.listLogsGet") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsApi.listLogsGet').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterIndexes !== undefined) { - requestContext.setQueryParam( - "filter[indexes]", - ObjectSerializer.serialize(filterIndexes, "Array", ""), - "csv" - ); + requestContext.setQueryParam("filter[indexes]", ObjectSerializer.serialize(filterIndexes, "Array", ""), "csv"); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); } if (filterStorageTier !== undefined) { - requestContext.setQueryParam( - "filter[storage_tier]", - ObjectSerializer.serialize(filterStorageTier, "LogsStorageTier", ""), - "" - ); + requestContext.setQueryParam("filter[storage_tier]", ObjectSerializer.serialize(filterStorageTier, "LogsStorageTier", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "LogsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "LogsSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async submitLog( - body: Array, - contentEncoding?: ContentEncoding, - ddtags?: string, - _options?: Configuration - ): Promise { + public async submitLog(body: Array,contentEncoding?: ContentEncoding,ddtags?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "submitLog"); + throw new RequiredError('body', 'submitLog'); } // Path Params - const localVarPath = "/api/v2/logs"; + const localVarPath = '/api/v2/logs'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsApi.submitLog") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsApi.submitLog').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (ddtags !== undefined) { - requestContext.setQueryParam( - "ddtags", - ObjectSerializer.serialize(ddtags, "string", ""), - "" - ); + requestContext.setQueryParam("ddtags", ObjectSerializer.serialize(ddtags, "string", ""), ""); } // Header Params if (contentEncoding !== undefined) { - requestContext.setHeaderParam( - "Content-Encoding", - ObjectSerializer.serialize(contentEncoding, "ContentEncoding", "") - ); + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer.serialize(contentEncoding, "ContentEncoding", "")); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ "application/json", "application/logplex-1", - "text/plain", - ]); + "text/plain"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Array", ""), @@ -258,6 +178,7 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { } export class LogsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -265,12 +186,8 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to aggregateLogs * @throws ApiException if the response code was not in [200, 299] */ - public async aggregateLogs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async aggregateLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsAggregateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -278,15 +195,8 @@ export class LogsApiResponseProcessor { ) as LogsAggregateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -295,11 +205,8 @@ export class LogsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -307,17 +214,13 @@ export class LogsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsAggregateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsAggregateResponse", - "" + "LogsAggregateResponse", "" ) as LogsAggregateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -327,10 +230,8 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to listLogs * @throws ApiException if the response code was not in [200, 299] */ - public async listLogs(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -338,15 +239,8 @@ export class LogsApiResponseProcessor { ) as LogsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -355,11 +249,8 @@ export class LogsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -367,17 +258,13 @@ export class LogsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsListResponse", - "" + "LogsListResponse", "" ) as LogsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -387,12 +274,8 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to listLogsGet * @throws ApiException if the response code was not in [200, 299] */ - public async listLogsGet( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogsGet(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -400,15 +283,8 @@ export class LogsApiResponseProcessor { ) as LogsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -417,11 +293,8 @@ export class LogsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -429,17 +302,13 @@ export class LogsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsListResponse", - "" + "LogsListResponse", "" ) as LogsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -449,10 +318,8 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to submitLog * @throws ApiException if the response code was not in [200, 299] */ - public async submitLog(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async submitLog(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -460,20 +327,8 @@ export class LogsApiResponseProcessor { ) as any; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 408 || - response.httpStatusCode === 413 || - response.httpStatusCode === 429 || - response.httpStatusCode === 500 || - response.httpStatusCode === 503 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 408||response.httpStatusCode === 413||response.httpStatusCode === 429||response.httpStatusCode === 500||response.httpStatusCode === 503) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: HTTPLogErrors; try { body = ObjectSerializer.deserialize( @@ -482,11 +337,8 @@ export class LogsApiResponseProcessor { ) as HTTPLogErrors; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -494,17 +346,13 @@ export class LogsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -512,14 +360,14 @@ export interface LogsApiAggregateLogsRequest { /** * @type LogsAggregateRequest */ - body: LogsAggregateRequest; + body: LogsAggregateRequest } export interface LogsApiListLogsRequest { /** * @type LogsListRequest */ - body?: LogsListRequest; + body?: LogsListRequest } export interface LogsApiListLogsGetRequest { @@ -527,43 +375,43 @@ export interface LogsApiListLogsGetRequest { * Search query following logs syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * For customers with multiple indexes, the indexes to search. * Defaults to '*' which means all indexes * @type Array */ - filterIndexes?: Array; + filterIndexes?: Array /** * Minimum timestamp for requested logs. * @type Date */ - filterFrom?: Date; + filterFrom?: Date /** * Maximum timestamp for requested logs. * @type Date */ - filterTo?: Date; + filterTo?: Date /** * Specifies the storage type to be used * @type LogsStorageTier */ - filterStorageTier?: LogsStorageTier; + filterStorageTier?: LogsStorageTier /** * Order of logs in results. * @type LogsSort */ - sort?: LogsSort; + sort?: LogsSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of logs in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface LogsApiSubmitLogRequest { @@ -571,17 +419,17 @@ export interface LogsApiSubmitLogRequest { * Log to send (JSON format). * @type Array */ - body: Array; + body: Array /** * HTTP header used to compress the media-type. * @type ContentEncoding */ - contentEncoding?: ContentEncoding; + contentEncoding?: ContentEncoding /** * Log tags can be passed as query parameters with `text/plain` content type. * @type string */ - ddtags?: string; + ddtags?: string } export class LogsApi { @@ -589,35 +437,21 @@ export class LogsApi { private responseProcessor: LogsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsApiRequestFactory, - responseProcessor?: LogsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsApiRequestFactory, responseProcessor?: LogsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new LogsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsApiResponseProcessor(); } /** * The API endpoint to aggregate events into buckets and compute metrics and timeseries. * @param param The request object */ - public aggregateLogs( - param: LogsApiAggregateLogsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.aggregateLogs( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.aggregateLogs(responseContext); + public aggregateLogs(param: LogsApiAggregateLogsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.aggregateLogs(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.aggregateLogs(responseContext); }); }); } @@ -625,30 +459,22 @@ export class LogsApi { /** * List endpoint returns logs that match a log search query. * [Results are paginated][1]. - * + * * Use this endpoint to search and filter your logs. - * + * * **If you are considering archiving logs for your organization, * consider use of the Datadog archive capabilities instead of the log list API. * See [Datadog Logs Archive documentation][2].** - * + * * [1]: /logs/guide/collect-multiple-logs-with-pagination * [2]: https://docs.datadoghq.com/logs/archives * @param param The request object */ - public listLogs( - param: LogsApiListLogsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listLogs( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogs(responseContext); + public listLogs(param: LogsApiListLogsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listLogs(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogs(responseContext); }); }); } @@ -656,10 +482,8 @@ export class LogsApi { /** * Provide a paginated version of listLogs returning a generator with all the items. */ - public async *listLogsWithPagination( - param: LogsApiListLogsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listLogsWithPagination(param: LogsApiListLogsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.body === undefined) { param.body = new LogsListRequest(); @@ -672,13 +496,8 @@ export class LogsApi { } param.body.page.limit = pageSize; while (true) { - const requestContext = await this.requestFactory.listLogs( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listLogs(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listLogs(responseContext); const responseData = response.data; @@ -712,37 +531,22 @@ export class LogsApi { /** * List endpoint returns logs that match a log search query. * [Results are paginated][1]. - * + * * Use this endpoint to search and filter your logs. - * + * * **If you are considering archiving logs for your organization, * consider use of the Datadog archive capabilities instead of the log list API. * See [Datadog Logs Archive documentation][2].** - * + * * [1]: /logs/guide/collect-multiple-logs-with-pagination * [2]: https://docs.datadoghq.com/logs/archives * @param param The request object */ - public listLogsGet( - param: LogsApiListLogsGetRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listLogsGet( - param.filterQuery, - param.filterIndexes, - param.filterFrom, - param.filterTo, - param.filterStorageTier, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogsGet(responseContext); + public listLogsGet(param: LogsApiListLogsGetRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listLogsGet(param.filterQuery,param.filterIndexes,param.filterFrom,param.filterTo,param.filterStorageTier,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogsGet(responseContext); }); }); } @@ -750,34 +554,18 @@ export class LogsApi { /** * Provide a paginated version of listLogsGet returning a generator with all the items. */ - public async *listLogsGetWithPagination( - param: LogsApiListLogsGetRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listLogsGetWithPagination(param: LogsApiListLogsGetRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listLogsGet( - param.filterQuery, - param.filterIndexes, - param.filterFrom, - param.filterTo, - param.filterStorageTier, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listLogsGet( - responseContext - ); + const requestContext = await this.requestFactory.listLogsGet(param.filterQuery,param.filterIndexes,param.filterFrom,param.filterTo,param.filterStorageTier,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listLogsGet(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -808,19 +596,19 @@ export class LogsApi { /** * Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - * + * * - Maximum content size per payload (uncompressed): 5MB * - Maximum size for a single log: 1MB * - Maximum array size if sending multiple logs in an array: 1000 entries - * + * * Any log exceeding 1MB is accepted and truncated by Datadog: * - For a single log request, the API truncates the log at 1MB and returns a 2xx. * - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. - * + * * Datadog recommends sending your logs compressed. * Add the `Content-Encoding: gzip` header to the request when sending compressed logs. * Log events can be submitted with a timestamp that is up to 18 hours in the past. - * + * * The status codes answered by the HTTP API are: * - 202: Accepted: the request has been accepted for processing * - 400: Bad request (likely an issue in the payload formatting) @@ -833,22 +621,12 @@ export class LogsApi { * - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time * @param param The request object */ - public submitLog( - param: LogsApiSubmitLogRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.submitLog( - param.body, - param.contentEncoding, - param.ddtags, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.submitLog(responseContext); + public submitLog(param: LogsApiSubmitLogRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.submitLog(param.body,param.contentEncoding,param.ddtags,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.submitLog(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/LogsArchivesApi.ts b/packages/datadog-api-client-v2/apis/LogsArchivesApi.ts index 3eead260f91e..cb444cf641d7 100644 --- a/packages/datadog-api-client-v2/apis/LogsArchivesApi.ts +++ b/packages/datadog-api-client-v2/apis/LogsArchivesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { LogsArchive } from "../models/LogsArchive"; import { LogsArchiveCreateRequest } from "../models/LogsArchiveCreateRequest"; @@ -25,41 +23,32 @@ import { RelationshipToRole } from "../models/RelationshipToRole"; import { RolesResponse } from "../models/RolesResponse"; export class LogsArchivesApiRequestFactory extends BaseAPIRequestFactory { - public async addReadRoleToArchive( - archiveId: string, - body: RelationshipToRole, - _options?: Configuration - ): Promise { + + public async addReadRoleToArchive(archiveId: string,body: RelationshipToRole,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'archiveId' is not null or undefined if (archiveId === null || archiveId === undefined) { - throw new RequiredError("archiveId", "addReadRoleToArchive"); + throw new RequiredError('archiveId', 'addReadRoleToArchive'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "addReadRoleToArchive"); + throw new RequiredError('body', 'addReadRoleToArchive'); } // Path Params - const localVarPath = - "/api/v2/logs/config/archives/{archive_id}/readers".replace( - "{archive_id}", - encodeURIComponent(String(archiveId)) - ); + const localVarPath = '/api/v2/logs/config/archives/{archive_id}/readers' + .replace('{archive_id}', encodeURIComponent(String(archiveId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.addReadRoleToArchive") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsArchivesApi.addReadRoleToArchive').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RelationshipToRole", ""), @@ -68,39 +57,30 @@ export class LogsArchivesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createLogsArchive( - body: LogsArchiveCreateRequest, - _options?: Configuration - ): Promise { + public async createLogsArchive(body: LogsArchiveCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createLogsArchive"); + throw new RequiredError('body', 'createLogsArchive'); } // Path Params - const localVarPath = "/api/v2/logs/config/archives"; + const localVarPath = '/api/v2/logs/config/archives'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.createLogsArchive") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsArchivesApi.createLogsArchive').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsArchiveCreateRequest", ""), @@ -109,197 +89,139 @@ export class LogsArchivesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteLogsArchive( - archiveId: string, - _options?: Configuration - ): Promise { + public async deleteLogsArchive(archiveId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'archiveId' is not null or undefined if (archiveId === null || archiveId === undefined) { - throw new RequiredError("archiveId", "deleteLogsArchive"); + throw new RequiredError('archiveId', 'deleteLogsArchive'); } // Path Params - const localVarPath = "/api/v2/logs/config/archives/{archive_id}".replace( - "{archive_id}", - encodeURIComponent(String(archiveId)) - ); + const localVarPath = '/api/v2/logs/config/archives/{archive_id}' + .replace('{archive_id}', encodeURIComponent(String(archiveId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.deleteLogsArchive") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.LogsArchivesApi.deleteLogsArchive').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsArchive( - archiveId: string, - _options?: Configuration - ): Promise { + public async getLogsArchive(archiveId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'archiveId' is not null or undefined if (archiveId === null || archiveId === undefined) { - throw new RequiredError("archiveId", "getLogsArchive"); + throw new RequiredError('archiveId', 'getLogsArchive'); } // Path Params - const localVarPath = "/api/v2/logs/config/archives/{archive_id}".replace( - "{archive_id}", - encodeURIComponent(String(archiveId)) - ); + const localVarPath = '/api/v2/logs/config/archives/{archive_id}' + .replace('{archive_id}', encodeURIComponent(String(archiveId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.getLogsArchive") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsArchivesApi.getLogsArchive').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsArchiveOrder( - _options?: Configuration - ): Promise { + public async getLogsArchiveOrder(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/logs/config/archive-order"; + const localVarPath = '/api/v2/logs/config/archive-order'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.getLogsArchiveOrder") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsArchivesApi.getLogsArchiveOrder').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listArchiveReadRoles( - archiveId: string, - _options?: Configuration - ): Promise { + public async listArchiveReadRoles(archiveId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'archiveId' is not null or undefined if (archiveId === null || archiveId === undefined) { - throw new RequiredError("archiveId", "listArchiveReadRoles"); + throw new RequiredError('archiveId', 'listArchiveReadRoles'); } // Path Params - const localVarPath = - "/api/v2/logs/config/archives/{archive_id}/readers".replace( - "{archive_id}", - encodeURIComponent(String(archiveId)) - ); + const localVarPath = '/api/v2/logs/config/archives/{archive_id}/readers' + .replace('{archive_id}', encodeURIComponent(String(archiveId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.listArchiveReadRoles") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsArchivesApi.listArchiveReadRoles').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogsArchives( - _options?: Configuration - ): Promise { + public async listLogsArchives(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/logs/config/archives"; + const localVarPath = '/api/v2/logs/config/archives'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.listLogsArchives") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsArchivesApi.listLogsArchives').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async removeRoleFromArchive( - archiveId: string, - body: RelationshipToRole, - _options?: Configuration - ): Promise { + public async removeRoleFromArchive(archiveId: string,body: RelationshipToRole,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'archiveId' is not null or undefined if (archiveId === null || archiveId === undefined) { - throw new RequiredError("archiveId", "removeRoleFromArchive"); + throw new RequiredError('archiveId', 'removeRoleFromArchive'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "removeRoleFromArchive"); + throw new RequiredError('body', 'removeRoleFromArchive'); } // Path Params - const localVarPath = - "/api/v2/logs/config/archives/{archive_id}/readers".replace( - "{archive_id}", - encodeURIComponent(String(archiveId)) - ); + const localVarPath = '/api/v2/logs/config/archives/{archive_id}/readers' + .replace('{archive_id}', encodeURIComponent(String(archiveId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.removeRoleFromArchive") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.LogsArchivesApi.removeRoleFromArchive').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RelationshipToRole", ""), @@ -308,48 +230,36 @@ export class LogsArchivesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsArchive( - archiveId: string, - body: LogsArchiveCreateRequest, - _options?: Configuration - ): Promise { + public async updateLogsArchive(archiveId: string,body: LogsArchiveCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'archiveId' is not null or undefined if (archiveId === null || archiveId === undefined) { - throw new RequiredError("archiveId", "updateLogsArchive"); + throw new RequiredError('archiveId', 'updateLogsArchive'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsArchive"); + throw new RequiredError('body', 'updateLogsArchive'); } // Path Params - const localVarPath = "/api/v2/logs/config/archives/{archive_id}".replace( - "{archive_id}", - encodeURIComponent(String(archiveId)) - ); + const localVarPath = '/api/v2/logs/config/archives/{archive_id}' + .replace('{archive_id}', encodeURIComponent(String(archiveId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.updateLogsArchive") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.LogsArchivesApi.updateLogsArchive').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsArchiveCreateRequest", ""), @@ -358,39 +268,30 @@ export class LogsArchivesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsArchiveOrder( - body: LogsArchiveOrder, - _options?: Configuration - ): Promise { + public async updateLogsArchiveOrder(body: LogsArchiveOrder,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsArchiveOrder"); + throw new RequiredError('body', 'updateLogsArchiveOrder'); } // Path Params - const localVarPath = "/api/v2/logs/config/archive-order"; + const localVarPath = '/api/v2/logs/config/archive-order'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsArchivesApi.updateLogsArchiveOrder") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.LogsArchivesApi.updateLogsArchiveOrder').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsArchiveOrder", ""), @@ -399,16 +300,14 @@ export class LogsArchivesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class LogsArchivesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -416,23 +315,13 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to addReadRoleToArchive * @throws ApiException if the response code was not in [200, 299] */ - public async addReadRoleToArchive(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async addReadRoleToArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -441,11 +330,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -453,17 +339,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -473,12 +355,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to createLogsArchive * @throws ApiException if the response code was not in [200, 299] */ - public async createLogsArchive( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createLogsArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsArchive = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -486,15 +364,8 @@ export class LogsArchivesApiResponseProcessor { ) as LogsArchive; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -503,11 +374,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -515,17 +383,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsArchive = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsArchive", - "" + "LogsArchive", "" ) as LogsArchive; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -535,23 +399,13 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to deleteLogsArchive * @throws ApiException if the response code was not in [200, 299] */ - public async deleteLogsArchive(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteLogsArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -560,11 +414,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -572,17 +423,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -592,10 +439,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to getLogsArchive * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsArchive(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsArchive = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -603,16 +448,8 @@ export class LogsArchivesApiResponseProcessor { ) as LogsArchive; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -621,11 +458,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -633,17 +467,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsArchive = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsArchive", - "" + "LogsArchive", "" ) as LogsArchive; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -653,12 +483,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to getLogsArchiveOrder * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsArchiveOrder( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsArchiveOrder(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsArchiveOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -666,11 +492,8 @@ export class LogsArchivesApiResponseProcessor { ) as LogsArchiveOrder; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -679,11 +502,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -691,17 +511,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsArchiveOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsArchiveOrder", - "" + "LogsArchiveOrder", "" ) as LogsArchiveOrder; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -711,12 +527,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to listArchiveReadRoles * @throws ApiException if the response code was not in [200, 299] */ - public async listArchiveReadRoles( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listArchiveReadRoles(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RolesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -724,16 +536,8 @@ export class LogsArchivesApiResponseProcessor { ) as RolesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -742,11 +546,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -754,17 +555,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RolesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RolesResponse", - "" + "RolesResponse", "" ) as RolesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -774,12 +571,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to listLogsArchives * @throws ApiException if the response code was not in [200, 299] */ - public async listLogsArchives( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogsArchives(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsArchives = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -787,11 +580,8 @@ export class LogsArchivesApiResponseProcessor { ) as LogsArchives; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -800,11 +590,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -812,17 +599,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsArchives = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsArchives", - "" + "LogsArchives", "" ) as LogsArchives; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -832,23 +615,13 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to removeRoleFromArchive * @throws ApiException if the response code was not in [200, 299] */ - public async removeRoleFromArchive(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async removeRoleFromArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -857,11 +630,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -869,17 +639,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -889,12 +655,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsArchive * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsArchive( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsArchive(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsArchive = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -902,16 +664,8 @@ export class LogsArchivesApiResponseProcessor { ) as LogsArchive; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -920,11 +674,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -932,17 +683,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsArchive = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsArchive", - "" + "LogsArchive", "" ) as LogsArchive; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -952,12 +699,8 @@ export class LogsArchivesApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsArchiveOrder * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsArchiveOrder( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsArchiveOrder(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsArchiveOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -965,16 +708,8 @@ export class LogsArchivesApiResponseProcessor { ) as LogsArchiveOrder; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -983,11 +718,8 @@ export class LogsArchivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -995,17 +727,13 @@ export class LogsArchivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsArchiveOrder = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsArchiveOrder", - "" + "LogsArchiveOrder", "" ) as LogsArchiveOrder; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1014,11 +742,11 @@ export interface LogsArchivesApiAddReadRoleToArchiveRequest { * The ID of the archive. * @type string */ - archiveId: string; + archiveId: string /** * @type RelationshipToRole */ - body: RelationshipToRole; + body: RelationshipToRole } export interface LogsArchivesApiCreateLogsArchiveRequest { @@ -1026,7 +754,7 @@ export interface LogsArchivesApiCreateLogsArchiveRequest { * The definition of the new archive. * @type LogsArchiveCreateRequest */ - body: LogsArchiveCreateRequest; + body: LogsArchiveCreateRequest } export interface LogsArchivesApiDeleteLogsArchiveRequest { @@ -1034,7 +762,7 @@ export interface LogsArchivesApiDeleteLogsArchiveRequest { * The ID of the archive. * @type string */ - archiveId: string; + archiveId: string } export interface LogsArchivesApiGetLogsArchiveRequest { @@ -1042,7 +770,7 @@ export interface LogsArchivesApiGetLogsArchiveRequest { * The ID of the archive. * @type string */ - archiveId: string; + archiveId: string } export interface LogsArchivesApiListArchiveReadRolesRequest { @@ -1050,7 +778,7 @@ export interface LogsArchivesApiListArchiveReadRolesRequest { * The ID of the archive. * @type string */ - archiveId: string; + archiveId: string } export interface LogsArchivesApiRemoveRoleFromArchiveRequest { @@ -1058,11 +786,11 @@ export interface LogsArchivesApiRemoveRoleFromArchiveRequest { * The ID of the archive. * @type string */ - archiveId: string; + archiveId: string /** * @type RelationshipToRole */ - body: RelationshipToRole; + body: RelationshipToRole } export interface LogsArchivesApiUpdateLogsArchiveRequest { @@ -1070,12 +798,12 @@ export interface LogsArchivesApiUpdateLogsArchiveRequest { * The ID of the archive. * @type string */ - archiveId: string; + archiveId: string /** * New definition of the archive. * @type LogsArchiveCreateRequest */ - body: LogsArchiveCreateRequest; + body: LogsArchiveCreateRequest } export interface LogsArchivesApiUpdateLogsArchiveOrderRequest { @@ -1083,7 +811,7 @@ export interface LogsArchivesApiUpdateLogsArchiveOrderRequest { * An object containing the new ordered list of archive IDs. * @type LogsArchiveOrder */ - body: LogsArchiveOrder; + body: LogsArchiveOrder } export class LogsArchivesApi { @@ -1091,36 +819,21 @@ export class LogsArchivesApi { private responseProcessor: LogsArchivesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsArchivesApiRequestFactory, - responseProcessor?: LogsArchivesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsArchivesApiRequestFactory, responseProcessor?: LogsArchivesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new LogsArchivesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsArchivesApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsArchivesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsArchivesApiResponseProcessor(); } /** * Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) * @param param The request object */ - public addReadRoleToArchive( - param: LogsArchivesApiAddReadRoleToArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.addReadRoleToArchive( - param.archiveId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.addReadRoleToArchive(responseContext); + public addReadRoleToArchive(param: LogsArchivesApiAddReadRoleToArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.addReadRoleToArchive(param.archiveId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.addReadRoleToArchive(responseContext); }); }); } @@ -1129,19 +842,11 @@ export class LogsArchivesApi { * Create an archive in your organization. * @param param The request object */ - public createLogsArchive( - param: LogsArchivesApiCreateLogsArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createLogsArchive( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createLogsArchive(responseContext); + public createLogsArchive(param: LogsArchivesApiCreateLogsArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createLogsArchive(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createLogsArchive(responseContext); }); }); } @@ -1150,19 +855,11 @@ export class LogsArchivesApi { * Delete a given archive from your organization. * @param param The request object */ - public deleteLogsArchive( - param: LogsArchivesApiDeleteLogsArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteLogsArchive( - param.archiveId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteLogsArchive(responseContext); + public deleteLogsArchive(param: LogsArchivesApiDeleteLogsArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteLogsArchive(param.archiveId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteLogsArchive(responseContext); }); }); } @@ -1171,19 +868,11 @@ export class LogsArchivesApi { * Get a specific archive from your organization. * @param param The request object */ - public getLogsArchive( - param: LogsArchivesApiGetLogsArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getLogsArchive( - param.archiveId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsArchive(responseContext); + public getLogsArchive(param: LogsArchivesApiGetLogsArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsArchive(param.archiveId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsArchive(responseContext); }); }); } @@ -1193,16 +882,11 @@ export class LogsArchivesApi { * This endpoint takes no JSON arguments. * @param param The request object */ - public getLogsArchiveOrder( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getLogsArchiveOrder(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsArchiveOrder(responseContext); + public getLogsArchiveOrder( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsArchiveOrder(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsArchiveOrder(responseContext); }); }); } @@ -1211,19 +895,11 @@ export class LogsArchivesApi { * Returns all read roles a given archive is restricted to. * @param param The request object */ - public listArchiveReadRoles( - param: LogsArchivesApiListArchiveReadRolesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listArchiveReadRoles( - param.archiveId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listArchiveReadRoles(responseContext); + public listArchiveReadRoles(param: LogsArchivesApiListArchiveReadRolesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listArchiveReadRoles(param.archiveId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listArchiveReadRoles(responseContext); }); }); } @@ -1232,13 +908,11 @@ export class LogsArchivesApi { * Get the list of configured logs archives with their definitions. * @param param The request object */ - public listLogsArchives(options?: Configuration): Promise { + public listLogsArchives( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listLogsArchives(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogsArchives(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogsArchives(responseContext); }); }); } @@ -1247,45 +921,27 @@ export class LogsArchivesApi { * Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) * @param param The request object */ - public removeRoleFromArchive( - param: LogsArchivesApiRemoveRoleFromArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.removeRoleFromArchive( - param.archiveId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.removeRoleFromArchive(responseContext); + public removeRoleFromArchive(param: LogsArchivesApiRemoveRoleFromArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.removeRoleFromArchive(param.archiveId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.removeRoleFromArchive(responseContext); }); }); } /** * Update a given archive configuration. - * + * * **Note**: Using this method updates your archive configuration by **replacing** * your current configuration with the new one sent to your Datadog organization. * @param param The request object */ - public updateLogsArchive( - param: LogsArchivesApiUpdateLogsArchiveRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsArchive( - param.archiveId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsArchive(responseContext); + public updateLogsArchive(param: LogsArchivesApiUpdateLogsArchiveRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsArchive(param.archiveId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsArchive(responseContext); }); }); } @@ -1293,25 +949,17 @@ export class LogsArchivesApi { /** * Update the order of your archives. Since logs are processed sequentially, reordering an archive may change * the structure and content of the data processed by other archives. - * + * * **Note**: Using the `PUT` method updates your archive's order by replacing the current order * with the new one. * @param param The request object */ - public updateLogsArchiveOrder( - param: LogsArchivesApiUpdateLogsArchiveOrderRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsArchiveOrder( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsArchiveOrder(responseContext); + public updateLogsArchiveOrder(param: LogsArchivesApiUpdateLogsArchiveOrderRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsArchiveOrder(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsArchiveOrder(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/LogsCustomDestinationsApi.ts b/packages/datadog-api-client-v2/apis/LogsCustomDestinationsApi.ts index c6c6b2358a60..a33d8658063b 100644 --- a/packages/datadog-api-client-v2/apis/LogsCustomDestinationsApi.ts +++ b/packages/datadog-api-client-v2/apis/LogsCustomDestinationsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CustomDestinationCreateRequest } from "../models/CustomDestinationCreateRequest"; import { CustomDestinationResponse } from "../models/CustomDestinationResponse"; @@ -23,31 +21,26 @@ import { CustomDestinationsResponse } from "../models/CustomDestinationsResponse import { CustomDestinationUpdateRequest } from "../models/CustomDestinationUpdateRequest"; export class LogsCustomDestinationsApiRequestFactory extends BaseAPIRequestFactory { - public async createLogsCustomDestination( - body: CustomDestinationCreateRequest, - _options?: Configuration - ): Promise { + + public async createLogsCustomDestination(body: CustomDestinationCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createLogsCustomDestination"); + throw new RequiredError('body', 'createLogsCustomDestination'); } // Path Params - const localVarPath = "/api/v2/logs/config/custom-destinations"; + const localVarPath = '/api/v2/logs/config/custom-destinations'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsCustomDestinationsApi.createLogsCustomDestination") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsCustomDestinationsApi.createLogsCustomDestination').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CustomDestinationCreateRequest", ""), @@ -56,150 +49,99 @@ export class LogsCustomDestinationsApiRequestFactory extends BaseAPIRequestFacto requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteLogsCustomDestination( - customDestinationId: string, - _options?: Configuration - ): Promise { + public async deleteLogsCustomDestination(customDestinationId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customDestinationId' is not null or undefined if (customDestinationId === null || customDestinationId === undefined) { - throw new RequiredError( - "customDestinationId", - "deleteLogsCustomDestination" - ); + throw new RequiredError('customDestinationId', 'deleteLogsCustomDestination'); } // Path Params - const localVarPath = - "/api/v2/logs/config/custom-destinations/{custom_destination_id}".replace( - "{custom_destination_id}", - encodeURIComponent(String(customDestinationId)) - ); + const localVarPath = '/api/v2/logs/config/custom-destinations/{custom_destination_id}' + .replace('{custom_destination_id}', encodeURIComponent(String(customDestinationId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsCustomDestinationsApi.deleteLogsCustomDestination") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.LogsCustomDestinationsApi.deleteLogsCustomDestination').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsCustomDestination( - customDestinationId: string, - _options?: Configuration - ): Promise { + public async getLogsCustomDestination(customDestinationId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customDestinationId' is not null or undefined if (customDestinationId === null || customDestinationId === undefined) { - throw new RequiredError( - "customDestinationId", - "getLogsCustomDestination" - ); + throw new RequiredError('customDestinationId', 'getLogsCustomDestination'); } // Path Params - const localVarPath = - "/api/v2/logs/config/custom-destinations/{custom_destination_id}".replace( - "{custom_destination_id}", - encodeURIComponent(String(customDestinationId)) - ); + const localVarPath = '/api/v2/logs/config/custom-destinations/{custom_destination_id}' + .replace('{custom_destination_id}', encodeURIComponent(String(customDestinationId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsCustomDestinationsApi.getLogsCustomDestination") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsCustomDestinationsApi.getLogsCustomDestination').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogsCustomDestinations( - _options?: Configuration - ): Promise { + public async listLogsCustomDestinations(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/logs/config/custom-destinations"; + const localVarPath = '/api/v2/logs/config/custom-destinations'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsCustomDestinationsApi.listLogsCustomDestinations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsCustomDestinationsApi.listLogsCustomDestinations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsCustomDestination( - customDestinationId: string, - body: CustomDestinationUpdateRequest, - _options?: Configuration - ): Promise { + public async updateLogsCustomDestination(customDestinationId: string,body: CustomDestinationUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'customDestinationId' is not null or undefined if (customDestinationId === null || customDestinationId === undefined) { - throw new RequiredError( - "customDestinationId", - "updateLogsCustomDestination" - ); + throw new RequiredError('customDestinationId', 'updateLogsCustomDestination'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsCustomDestination"); + throw new RequiredError('body', 'updateLogsCustomDestination'); } // Path Params - const localVarPath = - "/api/v2/logs/config/custom-destinations/{custom_destination_id}".replace( - "{custom_destination_id}", - encodeURIComponent(String(customDestinationId)) - ); + const localVarPath = '/api/v2/logs/config/custom-destinations/{custom_destination_id}' + .replace('{custom_destination_id}', encodeURIComponent(String(customDestinationId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsCustomDestinationsApi.updateLogsCustomDestination") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.LogsCustomDestinationsApi.updateLogsCustomDestination').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CustomDestinationUpdateRequest", ""), @@ -208,16 +150,14 @@ export class LogsCustomDestinationsApiRequestFactory extends BaseAPIRequestFacto requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class LogsCustomDestinationsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -225,12 +165,8 @@ export class LogsCustomDestinationsApiResponseProcessor { * @params response Response returned by the server for a request to createLogsCustomDestination * @throws ApiException if the response code was not in [200, 299] */ - public async createLogsCustomDestination( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createLogsCustomDestination(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CustomDestinationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -238,16 +174,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as CustomDestinationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -256,11 +184,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -268,17 +193,13 @@ export class LogsCustomDestinationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomDestinationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomDestinationResponse", - "" + "CustomDestinationResponse", "" ) as CustomDestinationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -288,25 +209,13 @@ export class LogsCustomDestinationsApiResponseProcessor { * @params response Response returned by the server for a request to deleteLogsCustomDestination * @throws ApiException if the response code was not in [200, 299] */ - public async deleteLogsCustomDestination( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteLogsCustomDestination(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -315,11 +224,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -327,17 +233,13 @@ export class LogsCustomDestinationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -347,12 +249,8 @@ export class LogsCustomDestinationsApiResponseProcessor { * @params response Response returned by the server for a request to getLogsCustomDestination * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsCustomDestination( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsCustomDestination(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CustomDestinationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -360,16 +258,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as CustomDestinationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -378,11 +268,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -390,17 +277,13 @@ export class LogsCustomDestinationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomDestinationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomDestinationResponse", - "" + "CustomDestinationResponse", "" ) as CustomDestinationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -410,12 +293,8 @@ export class LogsCustomDestinationsApiResponseProcessor { * @params response Response returned by the server for a request to listLogsCustomDestinations * @throws ApiException if the response code was not in [200, 299] */ - public async listLogsCustomDestinations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogsCustomDestinations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CustomDestinationsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -423,11 +302,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as CustomDestinationsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -436,11 +312,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -448,17 +321,13 @@ export class LogsCustomDestinationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomDestinationsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomDestinationsResponse", - "" + "CustomDestinationsResponse", "" ) as CustomDestinationsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -468,12 +337,8 @@ export class LogsCustomDestinationsApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsCustomDestination * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsCustomDestination( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsCustomDestination(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CustomDestinationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -481,17 +346,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as CustomDestinationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -500,11 +356,8 @@ export class LogsCustomDestinationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -512,17 +365,13 @@ export class LogsCustomDestinationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CustomDestinationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CustomDestinationResponse", - "" + "CustomDestinationResponse", "" ) as CustomDestinationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -531,7 +380,7 @@ export interface LogsCustomDestinationsApiCreateLogsCustomDestinationRequest { * The definition of the new custom destination. * @type CustomDestinationCreateRequest */ - body: CustomDestinationCreateRequest; + body: CustomDestinationCreateRequest } export interface LogsCustomDestinationsApiDeleteLogsCustomDestinationRequest { @@ -539,7 +388,7 @@ export interface LogsCustomDestinationsApiDeleteLogsCustomDestinationRequest { * The ID of the custom destination. * @type string */ - customDestinationId: string; + customDestinationId: string } export interface LogsCustomDestinationsApiGetLogsCustomDestinationRequest { @@ -547,7 +396,7 @@ export interface LogsCustomDestinationsApiGetLogsCustomDestinationRequest { * The ID of the custom destination. * @type string */ - customDestinationId: string; + customDestinationId: string } export interface LogsCustomDestinationsApiUpdateLogsCustomDestinationRequest { @@ -555,12 +404,12 @@ export interface LogsCustomDestinationsApiUpdateLogsCustomDestinationRequest { * The ID of the custom destination. * @type string */ - customDestinationId: string; + customDestinationId: string /** * New definition of the custom destination's fields. * @type CustomDestinationUpdateRequest */ - body: CustomDestinationUpdateRequest; + body: CustomDestinationUpdateRequest } export class LogsCustomDestinationsApi { @@ -568,36 +417,21 @@ export class LogsCustomDestinationsApi { private responseProcessor: LogsCustomDestinationsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsCustomDestinationsApiRequestFactory, - responseProcessor?: LogsCustomDestinationsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsCustomDestinationsApiRequestFactory, responseProcessor?: LogsCustomDestinationsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new LogsCustomDestinationsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsCustomDestinationsApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsCustomDestinationsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsCustomDestinationsApiResponseProcessor(); } /** * Create a custom destination in your organization. * @param param The request object */ - public createLogsCustomDestination( - param: LogsCustomDestinationsApiCreateLogsCustomDestinationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createLogsCustomDestination(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createLogsCustomDestination( - responseContext - ); + public createLogsCustomDestination(param: LogsCustomDestinationsApiCreateLogsCustomDestinationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createLogsCustomDestination(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createLogsCustomDestination(responseContext); }); }); } @@ -606,22 +440,11 @@ export class LogsCustomDestinationsApi { * Delete a specific custom destination in your organization. * @param param The request object */ - public deleteLogsCustomDestination( - param: LogsCustomDestinationsApiDeleteLogsCustomDestinationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteLogsCustomDestination( - param.customDestinationId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteLogsCustomDestination( - responseContext - ); + public deleteLogsCustomDestination(param: LogsCustomDestinationsApiDeleteLogsCustomDestinationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteLogsCustomDestination(param.customDestinationId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteLogsCustomDestination(responseContext); }); }); } @@ -630,21 +453,11 @@ export class LogsCustomDestinationsApi { * Get a specific custom destination in your organization. * @param param The request object */ - public getLogsCustomDestination( - param: LogsCustomDestinationsApiGetLogsCustomDestinationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getLogsCustomDestination( - param.customDestinationId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsCustomDestination( - responseContext - ); + public getLogsCustomDestination(param: LogsCustomDestinationsApiGetLogsCustomDestinationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsCustomDestination(param.customDestinationId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsCustomDestination(responseContext); }); }); } @@ -653,18 +466,11 @@ export class LogsCustomDestinationsApi { * Get the list of configured custom destinations in your organization with their definitions. * @param param The request object */ - public listLogsCustomDestinations( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listLogsCustomDestinations(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogsCustomDestinations( - responseContext - ); + public listLogsCustomDestinations( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listLogsCustomDestinations(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogsCustomDestinations(responseContext); }); }); } @@ -673,24 +479,12 @@ export class LogsCustomDestinationsApi { * Update the given fields of a specific custom destination in your organization. * @param param The request object */ - public updateLogsCustomDestination( - param: LogsCustomDestinationsApiUpdateLogsCustomDestinationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateLogsCustomDestination( - param.customDestinationId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsCustomDestination( - responseContext - ); + public updateLogsCustomDestination(param: LogsCustomDestinationsApiUpdateLogsCustomDestinationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsCustomDestination(param.customDestinationId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsCustomDestination(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/LogsMetricsApi.ts b/packages/datadog-api-client-v2/apis/LogsMetricsApi.ts index d7450545e907..ce7de670008f 100644 --- a/packages/datadog-api-client-v2/apis/LogsMetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/LogsMetricsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { LogsMetricCreateRequest } from "../models/LogsMetricCreateRequest"; import { LogsMetricResponse } from "../models/LogsMetricResponse"; @@ -23,31 +21,26 @@ import { LogsMetricsResponse } from "../models/LogsMetricsResponse"; import { LogsMetricUpdateRequest } from "../models/LogsMetricUpdateRequest"; export class LogsMetricsApiRequestFactory extends BaseAPIRequestFactory { - public async createLogsMetric( - body: LogsMetricCreateRequest, - _options?: Configuration - ): Promise { + + public async createLogsMetric(body: LogsMetricCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createLogsMetric"); + throw new RequiredError('body', 'createLogsMetric'); } // Path Params - const localVarPath = "/api/v2/logs/config/metrics"; + const localVarPath = '/api/v2/logs/config/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsMetricsApi.createLogsMetric") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.LogsMetricsApi.createLogsMetric').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsMetricCreateRequest", ""), @@ -56,138 +49,99 @@ export class LogsMetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteLogsMetric( - metricId: string, - _options?: Configuration - ): Promise { + public async deleteLogsMetric(metricId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "deleteLogsMetric"); + throw new RequiredError('metricId', 'deleteLogsMetric'); } // Path Params - const localVarPath = "/api/v2/logs/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/logs/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsMetricsApi.deleteLogsMetric") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.LogsMetricsApi.deleteLogsMetric').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getLogsMetric( - metricId: string, - _options?: Configuration - ): Promise { + public async getLogsMetric(metricId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "getLogsMetric"); + throw new RequiredError('metricId', 'getLogsMetric'); } // Path Params - const localVarPath = "/api/v2/logs/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/logs/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsMetricsApi.getLogsMetric") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsMetricsApi.getLogsMetric').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listLogsMetrics( - _options?: Configuration - ): Promise { + public async listLogsMetrics(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/logs/config/metrics"; + const localVarPath = '/api/v2/logs/config/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.LogsMetricsApi.listLogsMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.LogsMetricsApi.listLogsMetrics').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateLogsMetric( - metricId: string, - body: LogsMetricUpdateRequest, - _options?: Configuration - ): Promise { + public async updateLogsMetric(metricId: string,body: LogsMetricUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "updateLogsMetric"); + throw new RequiredError('metricId', 'updateLogsMetric'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateLogsMetric"); + throw new RequiredError('body', 'updateLogsMetric'); } // Path Params - const localVarPath = "/api/v2/logs/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/logs/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.LogsMetricsApi.updateLogsMetric") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.LogsMetricsApi.updateLogsMetric').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "LogsMetricUpdateRequest", ""), @@ -196,16 +150,14 @@ export class LogsMetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class LogsMetricsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -213,12 +165,8 @@ export class LogsMetricsApiResponseProcessor { * @params response Response returned by the server for a request to createLogsMetric * @throws ApiException if the response code was not in [200, 299] */ - public async createLogsMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createLogsMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -226,16 +174,8 @@ export class LogsMetricsApiResponseProcessor { ) as LogsMetricResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -244,11 +184,8 @@ export class LogsMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -256,17 +193,13 @@ export class LogsMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsMetricResponse", - "" + "LogsMetricResponse", "" ) as LogsMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -276,22 +209,13 @@ export class LogsMetricsApiResponseProcessor { * @params response Response returned by the server for a request to deleteLogsMetric * @throws ApiException if the response code was not in [200, 299] */ - public async deleteLogsMetric(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteLogsMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -300,11 +224,8 @@ export class LogsMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -312,17 +233,13 @@ export class LogsMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -332,12 +249,8 @@ export class LogsMetricsApiResponseProcessor { * @params response Response returned by the server for a request to getLogsMetric * @throws ApiException if the response code was not in [200, 299] */ - public async getLogsMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getLogsMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -345,15 +258,8 @@ export class LogsMetricsApiResponseProcessor { ) as LogsMetricResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -362,11 +268,8 @@ export class LogsMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -374,17 +277,13 @@ export class LogsMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsMetricResponse", - "" + "LogsMetricResponse", "" ) as LogsMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -394,12 +293,8 @@ export class LogsMetricsApiResponseProcessor { * @params response Response returned by the server for a request to listLogsMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async listLogsMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listLogsMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -407,11 +302,8 @@ export class LogsMetricsApiResponseProcessor { ) as LogsMetricsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -420,11 +312,8 @@ export class LogsMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -432,17 +321,13 @@ export class LogsMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsMetricsResponse", - "" + "LogsMetricsResponse", "" ) as LogsMetricsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -452,12 +337,8 @@ export class LogsMetricsApiResponseProcessor { * @params response Response returned by the server for a request to updateLogsMetric * @throws ApiException if the response code was not in [200, 299] */ - public async updateLogsMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateLogsMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: LogsMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -465,16 +346,8 @@ export class LogsMetricsApiResponseProcessor { ) as LogsMetricResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -483,11 +356,8 @@ export class LogsMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -495,17 +365,13 @@ export class LogsMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: LogsMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "LogsMetricResponse", - "" + "LogsMetricResponse", "" ) as LogsMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -514,7 +380,7 @@ export interface LogsMetricsApiCreateLogsMetricRequest { * The definition of the new log-based metric. * @type LogsMetricCreateRequest */ - body: LogsMetricCreateRequest; + body: LogsMetricCreateRequest } export interface LogsMetricsApiDeleteLogsMetricRequest { @@ -522,7 +388,7 @@ export interface LogsMetricsApiDeleteLogsMetricRequest { * The name of the log-based metric. * @type string */ - metricId: string; + metricId: string } export interface LogsMetricsApiGetLogsMetricRequest { @@ -530,7 +396,7 @@ export interface LogsMetricsApiGetLogsMetricRequest { * The name of the log-based metric. * @type string */ - metricId: string; + metricId: string } export interface LogsMetricsApiUpdateLogsMetricRequest { @@ -538,12 +404,12 @@ export interface LogsMetricsApiUpdateLogsMetricRequest { * The name of the log-based metric. * @type string */ - metricId: string; + metricId: string /** * New definition of the log-based metric. * @type LogsMetricUpdateRequest */ - body: LogsMetricUpdateRequest; + body: LogsMetricUpdateRequest } export class LogsMetricsApi { @@ -551,16 +417,10 @@ export class LogsMetricsApi { private responseProcessor: LogsMetricsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: LogsMetricsApiRequestFactory, - responseProcessor?: LogsMetricsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: LogsMetricsApiRequestFactory, responseProcessor?: LogsMetricsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new LogsMetricsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new LogsMetricsApiResponseProcessor(); + this.requestFactory = requestFactory || new LogsMetricsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new LogsMetricsApiResponseProcessor(); } /** @@ -568,19 +428,11 @@ export class LogsMetricsApi { * Returns the log-based metric object from the request body when the request is successful. * @param param The request object */ - public createLogsMetric( - param: LogsMetricsApiCreateLogsMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createLogsMetric( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createLogsMetric(responseContext); + public createLogsMetric(param: LogsMetricsApiCreateLogsMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createLogsMetric(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createLogsMetric(responseContext); }); }); } @@ -589,19 +441,11 @@ export class LogsMetricsApi { * Delete a specific log-based metric from your organization. * @param param The request object */ - public deleteLogsMetric( - param: LogsMetricsApiDeleteLogsMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteLogsMetric( - param.metricId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteLogsMetric(responseContext); + public deleteLogsMetric(param: LogsMetricsApiDeleteLogsMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteLogsMetric(param.metricId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteLogsMetric(responseContext); }); }); } @@ -610,19 +454,11 @@ export class LogsMetricsApi { * Get a specific log-based metric from your organization. * @param param The request object */ - public getLogsMetric( - param: LogsMetricsApiGetLogsMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getLogsMetric( - param.metricId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getLogsMetric(responseContext); + public getLogsMetric(param: LogsMetricsApiGetLogsMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getLogsMetric(param.metricId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getLogsMetric(responseContext); }); }); } @@ -631,15 +467,11 @@ export class LogsMetricsApi { * Get the list of configured log-based metrics with their definitions. * @param param The request object */ - public listLogsMetrics( - options?: Configuration - ): Promise { + public listLogsMetrics( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listLogsMetrics(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listLogsMetrics(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listLogsMetrics(responseContext); }); }); } @@ -649,21 +481,12 @@ export class LogsMetricsApi { * Returns the log-based metric object from the request body when the request is successful. * @param param The request object */ - public updateLogsMetric( - param: LogsMetricsApiUpdateLogsMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateLogsMetric( - param.metricId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateLogsMetric(responseContext); + public updateLogsMetric(param: LogsMetricsApiUpdateLogsMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateLogsMetric(param.metricId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateLogsMetric(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/MetricsApi.ts b/packages/datadog-api-client-v2/apis/MetricsApi.ts index 1e369d6f7873..35b13c7c1638 100644 --- a/packages/datadog-api-client-v2/apis/MetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/MetricsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { IntakePayloadAccepted } from "../models/IntakePayloadAccepted"; import { MetricAllTagsResponse } from "../models/MetricAllTagsResponse"; @@ -40,31 +38,26 @@ import { TimeseriesFormulaQueryRequest } from "../models/TimeseriesFormulaQueryR import { TimeseriesFormulaQueryResponse } from "../models/TimeseriesFormulaQueryResponse"; export class MetricsApiRequestFactory extends BaseAPIRequestFactory { - public async createBulkTagsMetricsConfiguration( - body: MetricBulkTagConfigCreateRequest, - _options?: Configuration - ): Promise { + + public async createBulkTagsMetricsConfiguration(body: MetricBulkTagConfigCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createBulkTagsMetricsConfiguration"); + throw new RequiredError('body', 'createBulkTagsMetricsConfiguration'); } // Path Params - const localVarPath = "/api/v2/metrics/config/bulk-tags"; + const localVarPath = '/api/v2/metrics/config/bulk-tags'; // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.createBulkTagsMetricsConfiguration") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MetricsApi.createBulkTagsMetricsConfiguration').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MetricBulkTagConfigCreateRequest", ""), @@ -73,93 +66,68 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createTagConfiguration( - metricName: string, - body: MetricTagConfigurationCreateRequest, - _options?: Configuration - ): Promise { + public async createTagConfiguration(metricName: string,body: MetricTagConfigurationCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "createTagConfiguration"); + throw new RequiredError('metricName', 'createTagConfiguration'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createTagConfiguration"); + throw new RequiredError('body', 'createTagConfiguration'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/tags' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.createTagConfiguration") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MetricsApi.createTagConfiguration').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "MetricTagConfigurationCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "MetricTagConfigurationCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteBulkTagsMetricsConfiguration( - body: MetricBulkTagConfigDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteBulkTagsMetricsConfiguration(body: MetricBulkTagConfigDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteBulkTagsMetricsConfiguration"); + throw new RequiredError('body', 'deleteBulkTagsMetricsConfiguration'); } // Path Params - const localVarPath = "/api/v2/metrics/config/bulk-tags"; + const localVarPath = '/api/v2/metrics/config/bulk-tags'; // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.deleteBulkTagsMetricsConfiguration") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.MetricsApi.deleteBulkTagsMetricsConfiguration').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MetricBulkTagConfigDeleteRequest", ""), @@ -168,437 +136,262 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteTagConfiguration( - metricName: string, - _options?: Configuration - ): Promise { + public async deleteTagConfiguration(metricName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "deleteTagConfiguration"); + throw new RequiredError('metricName', 'deleteTagConfiguration'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/tags' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.deleteTagConfiguration") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.MetricsApi.deleteTagConfiguration').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async estimateMetricsOutputSeries( - metricName: string, - filterGroups?: string, - filterHoursAgo?: number, - filterNumAggregations?: number, - filterPct?: boolean, - filterTimespanH?: number, - _options?: Configuration - ): Promise { + public async estimateMetricsOutputSeries(metricName: string,filterGroups?: string,filterHoursAgo?: number,filterNumAggregations?: number,filterPct?: boolean,filterTimespanH?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "estimateMetricsOutputSeries"); + throw new RequiredError('metricName', 'estimateMetricsOutputSeries'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/estimate".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/estimate' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.estimateMetricsOutputSeries") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.estimateMetricsOutputSeries').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterGroups !== undefined) { - requestContext.setQueryParam( - "filter[groups]", - ObjectSerializer.serialize(filterGroups, "string", ""), - "" - ); + requestContext.setQueryParam("filter[groups]", ObjectSerializer.serialize(filterGroups, "string", ""), ""); } if (filterHoursAgo !== undefined) { - requestContext.setQueryParam( - "filter[hours_ago]", - ObjectSerializer.serialize(filterHoursAgo, "number", "int32"), - "" - ); + requestContext.setQueryParam("filter[hours_ago]", ObjectSerializer.serialize(filterHoursAgo, "number", "int32"), ""); } if (filterNumAggregations !== undefined) { - requestContext.setQueryParam( - "filter[num_aggregations]", - ObjectSerializer.serialize(filterNumAggregations, "number", "int32"), - "" - ); + requestContext.setQueryParam("filter[num_aggregations]", ObjectSerializer.serialize(filterNumAggregations, "number", "int32"), ""); } if (filterPct !== undefined) { - requestContext.setQueryParam( - "filter[pct]", - ObjectSerializer.serialize(filterPct, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[pct]", ObjectSerializer.serialize(filterPct, "boolean", ""), ""); } if (filterTimespanH !== undefined) { - requestContext.setQueryParam( - "filter[timespan_h]", - ObjectSerializer.serialize(filterTimespanH, "number", "int32"), - "" - ); + requestContext.setQueryParam("filter[timespan_h]", ObjectSerializer.serialize(filterTimespanH, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listActiveMetricConfigurations( - metricName: string, - windowSeconds?: number, - _options?: Configuration - ): Promise { + public async listActiveMetricConfigurations(metricName: string,windowSeconds?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "listActiveMetricConfigurations"); + throw new RequiredError('metricName', 'listActiveMetricConfigurations'); } // Path Params - const localVarPath = - "/api/v2/metrics/{metric_name}/active-configurations".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/active-configurations' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.listActiveMetricConfigurations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.listActiveMetricConfigurations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (windowSeconds !== undefined) { - requestContext.setQueryParam( - "window[seconds]", - ObjectSerializer.serialize(windowSeconds, "number", "int64"), - "" - ); + requestContext.setQueryParam("window[seconds]", ObjectSerializer.serialize(windowSeconds, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listMetricAssets( - metricName: string, - _options?: Configuration - ): Promise { + public async listMetricAssets(metricName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "listMetricAssets"); + throw new RequiredError('metricName', 'listMetricAssets'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/assets".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/assets' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.listMetricAssets") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.listMetricAssets').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listTagConfigurationByName( - metricName: string, - _options?: Configuration - ): Promise { + public async listTagConfigurationByName(metricName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "listTagConfigurationByName"); + throw new RequiredError('metricName', 'listTagConfigurationByName'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/tags' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.listTagConfigurationByName") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.listTagConfigurationByName').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listTagConfigurations( - filterConfigured?: boolean, - filterTagsConfigured?: string, - filterMetricType?: MetricTagConfigurationMetricTypeCategory, - filterIncludePercentiles?: boolean, - filterQueried?: boolean, - filterTags?: string, - filterRelatedAssets?: boolean, - windowSeconds?: number, - pageSize?: number, - pageCursor?: string, - _options?: Configuration - ): Promise { + public async listTagConfigurations(filterConfigured?: boolean,filterTagsConfigured?: string,filterMetricType?: MetricTagConfigurationMetricTypeCategory,filterIncludePercentiles?: boolean,filterQueried?: boolean,filterTags?: string,filterRelatedAssets?: boolean,windowSeconds?: number,pageSize?: number,pageCursor?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/metrics"; + const localVarPath = '/api/v2/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.listTagConfigurations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.listTagConfigurations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterConfigured !== undefined) { - requestContext.setQueryParam( - "filter[configured]", - ObjectSerializer.serialize(filterConfigured, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[configured]", ObjectSerializer.serialize(filterConfigured, "boolean", ""), ""); } if (filterTagsConfigured !== undefined) { - requestContext.setQueryParam( - "filter[tags_configured]", - ObjectSerializer.serialize(filterTagsConfigured, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tags_configured]", ObjectSerializer.serialize(filterTagsConfigured, "string", ""), ""); } if (filterMetricType !== undefined) { - requestContext.setQueryParam( - "filter[metric_type]", - ObjectSerializer.serialize( - filterMetricType, - "MetricTagConfigurationMetricTypeCategory", - "" - ), - "" - ); + requestContext.setQueryParam("filter[metric_type]", ObjectSerializer.serialize(filterMetricType, "MetricTagConfigurationMetricTypeCategory", ""), ""); } if (filterIncludePercentiles !== undefined) { - requestContext.setQueryParam( - "filter[include_percentiles]", - ObjectSerializer.serialize(filterIncludePercentiles, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[include_percentiles]", ObjectSerializer.serialize(filterIncludePercentiles, "boolean", ""), ""); } if (filterQueried !== undefined) { - requestContext.setQueryParam( - "filter[queried]", - ObjectSerializer.serialize(filterQueried, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[queried]", ObjectSerializer.serialize(filterQueried, "boolean", ""), ""); } if (filterTags !== undefined) { - requestContext.setQueryParam( - "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tags]", ObjectSerializer.serialize(filterTags, "string", ""), ""); } if (filterRelatedAssets !== undefined) { - requestContext.setQueryParam( - "filter[related_assets]", - ObjectSerializer.serialize(filterRelatedAssets, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[related_assets]", ObjectSerializer.serialize(filterRelatedAssets, "boolean", ""), ""); } if (windowSeconds !== undefined) { - requestContext.setQueryParam( - "window[seconds]", - ObjectSerializer.serialize(windowSeconds, "number", "int64"), - "" - ); + requestContext.setQueryParam("window[seconds]", ObjectSerializer.serialize(windowSeconds, "number", "int64"), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int32"), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listTagsByMetricName( - metricName: string, - _options?: Configuration - ): Promise { + public async listTagsByMetricName(metricName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "listTagsByMetricName"); + throw new RequiredError('metricName', 'listTagsByMetricName'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/all-tags".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/all-tags' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.listTagsByMetricName") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.listTagsByMetricName').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listVolumesByMetricName( - metricName: string, - _options?: Configuration - ): Promise { + public async listVolumesByMetricName(metricName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "listVolumesByMetricName"); + throw new RequiredError('metricName', 'listVolumesByMetricName'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/volumes".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/volumes' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.listVolumesByMetricName") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MetricsApi.listVolumesByMetricName').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async queryScalarData( - body: ScalarFormulaQueryRequest, - _options?: Configuration - ): Promise { + public async queryScalarData(body: ScalarFormulaQueryRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "queryScalarData"); + throw new RequiredError('body', 'queryScalarData'); } // Path Params - const localVarPath = "/api/v2/query/scalar"; + const localVarPath = '/api/v2/query/scalar'; // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.queryScalarData") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MetricsApi.queryScalarData').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ScalarFormulaQueryRequest", ""), @@ -607,40 +400,30 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async queryTimeseriesData( - body: TimeseriesFormulaQueryRequest, - _options?: Configuration - ): Promise { + public async queryTimeseriesData(body: TimeseriesFormulaQueryRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "queryTimeseriesData"); + throw new RequiredError('body', 'queryTimeseriesData'); } // Path Params - const localVarPath = "/api/v2/query/timeseries"; + const localVarPath = '/api/v2/query/timeseries'; // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.queryTimeseriesData") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MetricsApi.queryTimeseriesData').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "TimeseriesFormulaQueryRequest", ""), @@ -649,49 +432,35 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async submitMetrics( - body: MetricPayload, - contentEncoding?: MetricContentEncoding, - _options?: Configuration - ): Promise { + public async submitMetrics(body: MetricPayload,contentEncoding?: MetricContentEncoding,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "submitMetrics"); + throw new RequiredError('body', 'submitMetrics'); } // Path Params - const localVarPath = "/api/v2/series"; + const localVarPath = '/api/v2/series'; // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.submitMetrics") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MetricsApi.submitMetrics').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Header Params if (contentEncoding !== undefined) { - requestContext.setHeaderParam( - "Content-Encoding", - ObjectSerializer.serialize(contentEncoding, "MetricContentEncoding", "") - ); + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer.serialize(contentEncoding, "MetricContentEncoding", "")); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MetricPayload", ""), @@ -705,62 +474,47 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async updateTagConfiguration( - metricName: string, - body: MetricTagConfigurationUpdateRequest, - _options?: Configuration - ): Promise { + public async updateTagConfiguration(metricName: string,body: MetricTagConfigurationUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricName' is not null or undefined if (metricName === null || metricName === undefined) { - throw new RequiredError("metricName", "updateTagConfiguration"); + throw new RequiredError('metricName', 'updateTagConfiguration'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTagConfiguration"); + throw new RequiredError('body', 'updateTagConfiguration'); } // Path Params - const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace( - "{metric_name}", - encodeURIComponent(String(metricName)) - ); + const localVarPath = '/api/v2/metrics/{metric_name}/tags' + .replace('{metric_name}', encodeURIComponent(String(metricName))); // Make Request Context - const requestContext = _config - .getServer("v2.MetricsApi.updateTagConfiguration") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.MetricsApi.updateTagConfiguration').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "MetricTagConfigurationUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "MetricTagConfigurationUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class MetricsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -768,12 +522,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to createBulkTagsMetricsConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async createBulkTagsMetricsConfiguration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createBulkTagsMetricsConfiguration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: MetricBulkTagConfigResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -781,16 +531,8 @@ export class MetricsApiResponseProcessor { ) as MetricBulkTagConfigResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -799,11 +541,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -811,17 +550,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricBulkTagConfigResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricBulkTagConfigResponse", - "" + "MetricBulkTagConfigResponse", "" ) as MetricBulkTagConfigResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -831,12 +566,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to createTagConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async createTagConfiguration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createTagConfiguration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: MetricTagConfigurationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -844,16 +575,8 @@ export class MetricsApiResponseProcessor { ) as MetricTagConfigurationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -862,11 +585,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -874,17 +594,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricTagConfigurationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricTagConfigurationResponse", - "" + "MetricTagConfigurationResponse", "" ) as MetricTagConfigurationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -894,12 +610,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to deleteBulkTagsMetricsConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteBulkTagsMetricsConfiguration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteBulkTagsMetricsConfiguration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: MetricBulkTagConfigResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -907,16 +619,8 @@ export class MetricsApiResponseProcessor { ) as MetricBulkTagConfigResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -925,11 +629,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -937,17 +638,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricBulkTagConfigResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricBulkTagConfigResponse", - "" + "MetricBulkTagConfigResponse", "" ) as MetricBulkTagConfigResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -957,24 +654,13 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to deleteTagConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteTagConfiguration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteTagConfiguration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -983,11 +669,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -995,17 +678,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1015,12 +694,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to estimateMetricsOutputSeries * @throws ApiException if the response code was not in [200, 299] */ - public async estimateMetricsOutputSeries( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async estimateMetricsOutputSeries(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricEstimateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1028,16 +703,8 @@ export class MetricsApiResponseProcessor { ) as MetricEstimateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1046,11 +713,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1058,17 +722,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricEstimateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricEstimateResponse", - "" + "MetricEstimateResponse", "" ) as MetricEstimateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1078,30 +738,17 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listActiveMetricConfigurations * @throws ApiException if the response code was not in [200, 299] */ - public async listActiveMetricConfigurations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listActiveMetricConfigurations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MetricSuggestedTagsAndAggregationsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MetricSuggestedTagsAndAggregationsResponse" - ) as MetricSuggestedTagsAndAggregationsResponse; + const body: MetricSuggestedTagsAndAggregationsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MetricSuggestedTagsAndAggregationsResponse" + ) as MetricSuggestedTagsAndAggregationsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1110,30 +757,22 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MetricSuggestedTagsAndAggregationsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MetricSuggestedTagsAndAggregationsResponse", - "" - ) as MetricSuggestedTagsAndAggregationsResponse; + const body: MetricSuggestedTagsAndAggregationsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MetricSuggestedTagsAndAggregationsResponse", "" + ) as MetricSuggestedTagsAndAggregationsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1143,12 +782,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listMetricAssets * @throws ApiException if the response code was not in [200, 299] */ - public async listMetricAssets( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listMetricAssets(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricAssetsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1156,16 +791,8 @@ export class MetricsApiResponseProcessor { ) as MetricAssetsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1174,11 +801,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1186,17 +810,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricAssetsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricAssetsResponse", - "" + "MetricAssetsResponse", "" ) as MetricAssetsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1206,12 +826,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listTagConfigurationByName * @throws ApiException if the response code was not in [200, 299] */ - public async listTagConfigurationByName( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listTagConfigurationByName(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricTagConfigurationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1219,15 +835,8 @@ export class MetricsApiResponseProcessor { ) as MetricTagConfigurationResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1236,11 +845,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1248,17 +854,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricTagConfigurationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricTagConfigurationResponse", - "" + "MetricTagConfigurationResponse", "" ) as MetricTagConfigurationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1268,29 +870,17 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listTagConfigurations * @throws ApiException if the response code was not in [200, 299] */ - public async listTagConfigurations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listTagConfigurations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MetricsAndMetricTagConfigurationsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MetricsAndMetricTagConfigurationsResponse" - ) as MetricsAndMetricTagConfigurationsResponse; + const body: MetricsAndMetricTagConfigurationsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MetricsAndMetricTagConfigurationsResponse" + ) as MetricsAndMetricTagConfigurationsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1299,30 +889,22 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MetricsAndMetricTagConfigurationsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MetricsAndMetricTagConfigurationsResponse", - "" - ) as MetricsAndMetricTagConfigurationsResponse; + const body: MetricsAndMetricTagConfigurationsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MetricsAndMetricTagConfigurationsResponse", "" + ) as MetricsAndMetricTagConfigurationsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1332,12 +914,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listTagsByMetricName * @throws ApiException if the response code was not in [200, 299] */ - public async listTagsByMetricName( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listTagsByMetricName(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricAllTagsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1345,16 +923,8 @@ export class MetricsApiResponseProcessor { ) as MetricAllTagsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1363,11 +933,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1375,17 +942,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricAllTagsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricAllTagsResponse", - "" + "MetricAllTagsResponse", "" ) as MetricAllTagsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1395,12 +958,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to listVolumesByMetricName * @throws ApiException if the response code was not in [200, 299] */ - public async listVolumesByMetricName( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listVolumesByMetricName(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricVolumesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1408,16 +967,8 @@ export class MetricsApiResponseProcessor { ) as MetricVolumesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1426,11 +977,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1438,17 +986,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricVolumesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricVolumesResponse", - "" + "MetricVolumesResponse", "" ) as MetricVolumesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1458,12 +1002,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to queryScalarData * @throws ApiException if the response code was not in [200, 299] */ - public async queryScalarData( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async queryScalarData(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ScalarFormulaQueryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1471,16 +1011,8 @@ export class MetricsApiResponseProcessor { ) as ScalarFormulaQueryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1489,11 +1021,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1501,17 +1030,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ScalarFormulaQueryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ScalarFormulaQueryResponse", - "" + "ScalarFormulaQueryResponse", "" ) as ScalarFormulaQueryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1521,12 +1046,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to queryTimeseriesData * @throws ApiException if the response code was not in [200, 299] */ - public async queryTimeseriesData( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async queryTimeseriesData(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TimeseriesFormulaQueryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1534,16 +1055,8 @@ export class MetricsApiResponseProcessor { ) as TimeseriesFormulaQueryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1552,11 +1065,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1564,17 +1074,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TimeseriesFormulaQueryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TimeseriesFormulaQueryResponse", - "" + "TimeseriesFormulaQueryResponse", "" ) as TimeseriesFormulaQueryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1584,12 +1090,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to submitMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async submitMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async submitMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1597,17 +1099,8 @@ export class MetricsApiResponseProcessor { ) as IntakePayloadAccepted; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 408 || - response.httpStatusCode === 413 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 408||response.httpStatusCode === 413||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1616,11 +1109,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1628,17 +1118,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: IntakePayloadAccepted = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "IntakePayloadAccepted", - "" + "IntakePayloadAccepted", "" ) as IntakePayloadAccepted; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1648,12 +1134,8 @@ export class MetricsApiResponseProcessor { * @params response Response returned by the server for a request to updateTagConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async updateTagConfiguration( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTagConfiguration(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MetricTagConfigurationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1661,16 +1143,8 @@ export class MetricsApiResponseProcessor { ) as MetricTagConfigurationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1679,11 +1153,8 @@ export class MetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1691,17 +1162,13 @@ export class MetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MetricTagConfigurationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MetricTagConfigurationResponse", - "" + "MetricTagConfigurationResponse", "" ) as MetricTagConfigurationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1709,7 +1176,7 @@ export interface MetricsApiCreateBulkTagsMetricsConfigurationRequest { /** * @type MetricBulkTagConfigCreateRequest */ - body: MetricBulkTagConfigCreateRequest; + body: MetricBulkTagConfigCreateRequest } export interface MetricsApiCreateTagConfigurationRequest { @@ -1717,18 +1184,18 @@ export interface MetricsApiCreateTagConfigurationRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string /** * @type MetricTagConfigurationCreateRequest */ - body: MetricTagConfigurationCreateRequest; + body: MetricTagConfigurationCreateRequest } export interface MetricsApiDeleteBulkTagsMetricsConfigurationRequest { /** * @type MetricBulkTagConfigDeleteRequest */ - body: MetricBulkTagConfigDeleteRequest; + body: MetricBulkTagConfigDeleteRequest } export interface MetricsApiDeleteTagConfigurationRequest { @@ -1736,7 +1203,7 @@ export interface MetricsApiDeleteTagConfigurationRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string } export interface MetricsApiEstimateMetricsOutputSeriesRequest { @@ -1744,32 +1211,32 @@ export interface MetricsApiEstimateMetricsOutputSeriesRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string /** * Filtered tag keys that the metric is configured to query with. * @type string */ - filterGroups?: string; + filterGroups?: string /** * The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours. * @type number */ - filterHoursAgo?: number; + filterHoursAgo?: number /** * The number of aggregations that a `count`, `rate`, or `gauge` metric is configured to use. Max number of aggregation combos is 9. * @type number */ - filterNumAggregations?: number; + filterNumAggregations?: number /** * A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators. * @type boolean */ - filterPct?: boolean; + filterPct?: boolean /** * A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour. * @type number */ - filterTimespanH?: number; + filterTimespanH?: number } export interface MetricsApiListActiveMetricConfigurationsRequest { @@ -1777,13 +1244,13 @@ export interface MetricsApiListActiveMetricConfigurationsRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string /** * The number of seconds of look back (from now). * Default value is 604,800 (1 week), minimum value is 7200 (2 hours), maximum value is 2,630,000 (1 month). * @type number */ - windowSeconds?: number; + windowSeconds?: number } export interface MetricsApiListMetricAssetsRequest { @@ -1791,7 +1258,7 @@ export interface MetricsApiListMetricAssetsRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string } export interface MetricsApiListTagConfigurationByNameRequest { @@ -1799,7 +1266,7 @@ export interface MetricsApiListTagConfigurationByNameRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string } export interface MetricsApiListTagConfigurationsRequest { @@ -1807,58 +1274,58 @@ export interface MetricsApiListTagConfigurationsRequest { * Filter custom metrics that have configured tags. * @type boolean */ - filterConfigured?: boolean; + filterConfigured?: boolean /** * Filter tag configurations by configured tags. * @type string */ - filterTagsConfigured?: string; + filterTagsConfigured?: string /** * Filter metrics by metric type. * @type MetricTagConfigurationMetricTypeCategory */ - filterMetricType?: MetricTagConfigurationMetricTypeCategory; + filterMetricType?: MetricTagConfigurationMetricTypeCategory /** * Filter distributions with additional percentile * aggregations enabled or disabled. * @type boolean */ - filterIncludePercentiles?: boolean; + filterIncludePercentiles?: boolean /** * (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. * If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied. * @type boolean */ - filterQueried?: boolean; + filterQueried?: boolean /** * Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. * Can only be combined with the filter[queried] filter. * @type string */ - filterTags?: string; + filterTags?: string /** * (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs. * @type boolean */ - filterRelatedAssets?: boolean; + filterRelatedAssets?: boolean /** * The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. * Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days). * @type number */ - windowSeconds?: number; + windowSeconds?: number /** * Maximum number of results returned. * @type number */ - pageSize?: number; + pageSize?: number /** * String to query the next page of results. * This key is provided with each valid response from the API in `meta.pagination.next_cursor`. * Once the `meta.pagination.next_cursor` key is null, all pages have been retrieved. * @type string */ - pageCursor?: string; + pageCursor?: string } export interface MetricsApiListTagsByMetricNameRequest { @@ -1866,7 +1333,7 @@ export interface MetricsApiListTagsByMetricNameRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string } export interface MetricsApiListVolumesByMetricNameRequest { @@ -1874,33 +1341,33 @@ export interface MetricsApiListVolumesByMetricNameRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string } export interface MetricsApiQueryScalarDataRequest { /** * @type ScalarFormulaQueryRequest */ - body: ScalarFormulaQueryRequest; + body: ScalarFormulaQueryRequest } export interface MetricsApiQueryTimeseriesDataRequest { /** * @type TimeseriesFormulaQueryRequest */ - body: TimeseriesFormulaQueryRequest; + body: TimeseriesFormulaQueryRequest } export interface MetricsApiSubmitMetricsRequest { /** * @type MetricPayload */ - body: MetricPayload; + body: MetricPayload /** * HTTP header used to compress the media-type. * @type MetricContentEncoding */ - contentEncoding?: MetricContentEncoding; + contentEncoding?: MetricContentEncoding } export interface MetricsApiUpdateTagConfigurationRequest { @@ -1908,11 +1375,11 @@ export interface MetricsApiUpdateTagConfigurationRequest { * The name of the metric. * @type string */ - metricName: string; + metricName: string /** * @type MetricTagConfigurationUpdateRequest */ - body: MetricTagConfigurationUpdateRequest; + body: MetricTagConfigurationUpdateRequest } export class MetricsApi { @@ -1920,16 +1387,10 @@ export class MetricsApi { private responseProcessor: MetricsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: MetricsApiRequestFactory, - responseProcessor?: MetricsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: MetricsApiRequestFactory, responseProcessor?: MetricsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new MetricsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new MetricsApiResponseProcessor(); + this.requestFactory = requestFactory || new MetricsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MetricsApiResponseProcessor(); } /** @@ -1942,22 +1403,11 @@ export class MetricsApi { * Can only be used with application keys of users with the `Manage Tags for Metrics` permission. * @param param The request object */ - public createBulkTagsMetricsConfiguration( - param: MetricsApiCreateBulkTagsMetricsConfigurationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createBulkTagsMetricsConfiguration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createBulkTagsMetricsConfiguration( - responseContext - ); + public createBulkTagsMetricsConfiguration(param: MetricsApiCreateBulkTagsMetricsConfigurationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createBulkTagsMetricsConfiguration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createBulkTagsMetricsConfiguration(responseContext); }); }); } @@ -1970,20 +1420,11 @@ export class MetricsApi { * Can only be used with application keys of users with the `Manage Tags for Metrics` permission. * @param param The request object */ - public createTagConfiguration( - param: MetricsApiCreateTagConfigurationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createTagConfiguration( - param.metricName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createTagConfiguration(responseContext); + public createTagConfiguration(param: MetricsApiCreateTagConfigurationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createTagConfiguration(param.metricName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createTagConfiguration(responseContext); }); }); } @@ -1995,22 +1436,11 @@ export class MetricsApi { * Can only be used with application keys of users with the `Manage Tags for Metrics` permission. * @param param The request object */ - public deleteBulkTagsMetricsConfiguration( - param: MetricsApiDeleteBulkTagsMetricsConfigurationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteBulkTagsMetricsConfiguration( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteBulkTagsMetricsConfiguration( - responseContext - ); + public deleteBulkTagsMetricsConfiguration(param: MetricsApiDeleteBulkTagsMetricsConfigurationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteBulkTagsMetricsConfiguration(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteBulkTagsMetricsConfiguration(responseContext); }); }); } @@ -2020,19 +1450,11 @@ export class MetricsApi { * keys from users with the `Manage Tags for Metrics` permission. * @param param The request object */ - public deleteTagConfiguration( - param: MetricsApiDeleteTagConfigurationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteTagConfiguration( - param.metricName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteTagConfiguration(responseContext); + public deleteTagConfiguration(param: MetricsApiDeleteTagConfigurationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteTagConfiguration(param.metricName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteTagConfiguration(responseContext); }); }); } @@ -2041,27 +1463,11 @@ export class MetricsApi { * Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™. * @param param The request object */ - public estimateMetricsOutputSeries( - param: MetricsApiEstimateMetricsOutputSeriesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.estimateMetricsOutputSeries( - param.metricName, - param.filterGroups, - param.filterHoursAgo, - param.filterNumAggregations, - param.filterPct, - param.filterTimespanH, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.estimateMetricsOutputSeries( - responseContext - ); + public estimateMetricsOutputSeries(param: MetricsApiEstimateMetricsOutputSeriesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.estimateMetricsOutputSeries(param.metricName,param.filterGroups,param.filterHoursAgo,param.filterNumAggregations,param.filterPct,param.filterTimespanH,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.estimateMetricsOutputSeries(responseContext); }); }); } @@ -2070,23 +1476,11 @@ export class MetricsApi { * List tags and aggregations that are actively queried on dashboards, notebooks, monitors, the Metrics Explorer, and using the API for a given metric name. * @param param The request object */ - public listActiveMetricConfigurations( - param: MetricsApiListActiveMetricConfigurationsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listActiveMetricConfigurations( - param.metricName, - param.windowSeconds, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listActiveMetricConfigurations( - responseContext - ); + public listActiveMetricConfigurations(param: MetricsApiListActiveMetricConfigurationsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listActiveMetricConfigurations(param.metricName,param.windowSeconds,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listActiveMetricConfigurations(responseContext); }); }); } @@ -2095,19 +1489,11 @@ export class MetricsApi { * Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours. * @param param The request object */ - public listMetricAssets( - param: MetricsApiListMetricAssetsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listMetricAssets( - param.metricName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listMetricAssets(responseContext); + public listMetricAssets(param: MetricsApiListMetricAssetsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listMetricAssets(param.metricName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listMetricAssets(responseContext); }); }); } @@ -2116,19 +1502,11 @@ export class MetricsApi { * Returns the tag configuration for the given metric name. * @param param The request object */ - public listTagConfigurationByName( - param: MetricsApiListTagConfigurationByNameRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listTagConfigurationByName(param.metricName, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listTagConfigurationByName( - responseContext - ); + public listTagConfigurationByName(param: MetricsApiListTagConfigurationByNameRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listTagConfigurationByName(param.metricName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listTagConfigurationByName(responseContext); }); }); } @@ -2140,28 +1518,11 @@ export class MetricsApi { * Once the `meta.pagination.next_cursor` value is null, all pages have been retrieved. * @param param The request object */ - public listTagConfigurations( - param: MetricsApiListTagConfigurationsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listTagConfigurations( - param.filterConfigured, - param.filterTagsConfigured, - param.filterMetricType, - param.filterIncludePercentiles, - param.filterQueried, - param.filterTags, - param.filterRelatedAssets, - param.windowSeconds, - param.pageSize, - param.pageCursor, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listTagConfigurations(responseContext); + public listTagConfigurations(param: MetricsApiListTagConfigurationsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listTagConfigurations(param.filterConfigured,param.filterTagsConfigured,param.filterMetricType,param.filterIncludePercentiles,param.filterQueried,param.filterTags,param.filterRelatedAssets,param.windowSeconds,param.pageSize,param.pageCursor,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listTagConfigurations(responseContext); }); }); } @@ -2169,36 +1530,18 @@ export class MetricsApi { /** * Provide a paginated version of listTagConfigurations returning a generator with all the items. */ - public async *listTagConfigurationsWithPagination( - param: MetricsApiListTagConfigurationsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listTagConfigurationsWithPagination(param: MetricsApiListTagConfigurationsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10000; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.listTagConfigurations( - param.filterConfigured, - param.filterTagsConfigured, - param.filterMetricType, - param.filterIncludePercentiles, - param.filterQueried, - param.filterTags, - param.filterRelatedAssets, - param.windowSeconds, - param.pageSize, - param.pageCursor, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listTagConfigurations( - responseContext - ); + const requestContext = await this.requestFactory.listTagConfigurations(param.filterConfigured,param.filterTagsConfigured,param.filterMetricType,param.filterIncludePercentiles,param.filterQueried,param.filterTags,param.filterRelatedAssets,param.windowSeconds,param.pageSize,param.pageCursor,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listTagConfigurations(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -2231,44 +1574,26 @@ export class MetricsApi { * View indexed tag key-value pairs for a given metric name over the previous hour. * @param param The request object */ - public listTagsByMetricName( - param: MetricsApiListTagsByMetricNameRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listTagsByMetricName( - param.metricName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listTagsByMetricName(responseContext); + public listTagsByMetricName(param: MetricsApiListTagsByMetricNameRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listTagsByMetricName(param.metricName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listTagsByMetricName(responseContext); }); }); } /** * View distinct metrics volumes for the given metric name. - * + * * Custom metrics generated in-app from other products will return `null` for ingested volumes. * @param param The request object */ - public listVolumesByMetricName( - param: MetricsApiListVolumesByMetricNameRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listVolumesByMetricName( - param.metricName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listVolumesByMetricName( - responseContext - ); + public listVolumesByMetricName(param: MetricsApiListVolumesByMetricNameRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listVolumesByMetricName(param.metricName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listVolumesByMetricName(responseContext); }); }); } @@ -2279,19 +1604,11 @@ export class MetricsApi { * process the data using formulas and functions. * @param param The request object */ - public queryScalarData( - param: MetricsApiQueryScalarDataRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.queryScalarData( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.queryScalarData(responseContext); + public queryScalarData(param: MetricsApiQueryScalarDataRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.queryScalarData(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.queryScalarData(responseContext); }); }); } @@ -2301,19 +1618,11 @@ export class MetricsApi { * process the data by applying formulas and functions. * @param param The request object */ - public queryTimeseriesData( - param: MetricsApiQueryTimeseriesDataRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.queryTimeseriesData( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.queryTimeseriesData(responseContext); + public queryTimeseriesData(param: MetricsApiQueryTimeseriesDataRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.queryTimeseriesData(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.queryTimeseriesData(responseContext); }); }); } @@ -2321,32 +1630,23 @@ export class MetricsApi { /** * The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. * The maximum payload size is 500 kilobytes (512000 bytes). Compressed payloads must have a decompressed size of less than 5 megabytes (5242880 bytes). - * + * * If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - * + * * - 64 bits for the timestamp * - 64 bits for the value * - 20 bytes for the metric names * - 50 bytes for the timeseries * - The full payload is approximately 100 bytes. - * + * * Host name is one of the resources in the Resources field. * @param param The request object */ - public submitMetrics( - param: MetricsApiSubmitMetricsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.submitMetrics( - param.body, - param.contentEncoding, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.submitMetrics(responseContext); + public submitMetrics(param: MetricsApiSubmitMetricsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.submitMetrics(param.body,param.contentEncoding,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.submitMetrics(responseContext); }); }); } @@ -2359,21 +1659,12 @@ export class MetricsApi { * a tag configuration to be created first. * @param param The request object */ - public updateTagConfiguration( - param: MetricsApiUpdateTagConfigurationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateTagConfiguration( - param.metricName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTagConfiguration(responseContext); + public updateTagConfiguration(param: MetricsApiUpdateTagConfigurationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTagConfiguration(param.metricName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTagConfiguration(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts b/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts index 5cb4806d76a1..cff9691dbb81 100644 --- a/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { MicrosoftTeamsCreateTenantBasedHandleRequest } from "../models/MicrosoftTeamsCreateTenantBasedHandleRequest"; import { MicrosoftTeamsCreateWorkflowsWebhookHandleRequest } from "../models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest"; @@ -28,470 +26,324 @@ import { MicrosoftTeamsWorkflowsWebhookHandleResponse } from "../models/Microsof import { MicrosoftTeamsWorkflowsWebhookHandlesResponse } from "../models/MicrosoftTeamsWorkflowsWebhookHandlesResponse"; export class MicrosoftTeamsIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createTenantBasedHandle( - body: MicrosoftTeamsCreateTenantBasedHandleRequest, - _options?: Configuration - ): Promise { + + public async createTenantBasedHandle(body: MicrosoftTeamsCreateTenantBasedHandleRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createTenantBasedHandle"); + throw new RequiredError('body', 'createTenantBasedHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; + const localVarPath = '/api/v2/integration/ms-teams/configuration/tenant-based-handles'; // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.createTenantBasedHandle") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.createTenantBasedHandle').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "MicrosoftTeamsCreateTenantBasedHandleRequest", - "" - ), + ObjectSerializer.serialize(body, "MicrosoftTeamsCreateTenantBasedHandleRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createWorkflowsWebhookHandle( - body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest, - _options?: Configuration - ): Promise { + public async createWorkflowsWebhookHandle(body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createWorkflowsWebhookHandle"); + throw new RequiredError('body', 'createWorkflowsWebhookHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/workflows-webhook-handles"; + const localVarPath = '/api/v2/integration/ms-teams/configuration/workflows-webhook-handles'; // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.createWorkflowsWebhookHandle") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.createWorkflowsWebhookHandle').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "MicrosoftTeamsCreateWorkflowsWebhookHandleRequest", - "" - ), + ObjectSerializer.serialize(body, "MicrosoftTeamsCreateWorkflowsWebhookHandleRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteTenantBasedHandle( - handleId: string, - _options?: Configuration - ): Promise { + public async deleteTenantBasedHandle(handleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'handleId' is not null or undefined if (handleId === null || handleId === undefined) { - throw new RequiredError("handleId", "deleteTenantBasedHandle"); + throw new RequiredError('handleId', 'deleteTenantBasedHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}".replace( - "{handle_id}", - encodeURIComponent(String(handleId)) - ); + const localVarPath = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}' + .replace('{handle_id}', encodeURIComponent(String(handleId))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.deleteTenantBasedHandle") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.deleteTenantBasedHandle').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteWorkflowsWebhookHandle( - handleId: string, - _options?: Configuration - ): Promise { + public async deleteWorkflowsWebhookHandle(handleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'handleId' is not null or undefined if (handleId === null || handleId === undefined) { - throw new RequiredError("handleId", "deleteWorkflowsWebhookHandle"); + throw new RequiredError('handleId', 'deleteWorkflowsWebhookHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}".replace( - "{handle_id}", - encodeURIComponent(String(handleId)) - ); + const localVarPath = '/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}' + .replace('{handle_id}', encodeURIComponent(String(handleId))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.deleteWorkflowsWebhookHandle") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.deleteWorkflowsWebhookHandle').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getChannelByName( - tenantName: string, - teamName: string, - channelName: string, - _options?: Configuration - ): Promise { + public async getChannelByName(tenantName: string,teamName: string,channelName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'tenantName' is not null or undefined if (tenantName === null || tenantName === undefined) { - throw new RequiredError("tenantName", "getChannelByName"); + throw new RequiredError('tenantName', 'getChannelByName'); } // verify required parameter 'teamName' is not null or undefined if (teamName === null || teamName === undefined) { - throw new RequiredError("teamName", "getChannelByName"); + throw new RequiredError('teamName', 'getChannelByName'); } // verify required parameter 'channelName' is not null or undefined if (channelName === null || channelName === undefined) { - throw new RequiredError("channelName", "getChannelByName"); + throw new RequiredError('channelName', 'getChannelByName'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}" - .replace("{tenant_name}", encodeURIComponent(String(tenantName))) - .replace("{team_name}", encodeURIComponent(String(teamName))) - .replace("{channel_name}", encodeURIComponent(String(channelName))); + const localVarPath = '/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}' + .replace('{tenant_name}', encodeURIComponent(String(tenantName))) + .replace('{team_name}', encodeURIComponent(String(teamName))) + .replace('{channel_name}', encodeURIComponent(String(channelName))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.getChannelByName") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.getChannelByName').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTenantBasedHandle( - handleId: string, - _options?: Configuration - ): Promise { + public async getTenantBasedHandle(handleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'handleId' is not null or undefined if (handleId === null || handleId === undefined) { - throw new RequiredError("handleId", "getTenantBasedHandle"); + throw new RequiredError('handleId', 'getTenantBasedHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}".replace( - "{handle_id}", - encodeURIComponent(String(handleId)) - ); + const localVarPath = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}' + .replace('{handle_id}', encodeURIComponent(String(handleId))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.getTenantBasedHandle") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.getTenantBasedHandle').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getWorkflowsWebhookHandle( - handleId: string, - _options?: Configuration - ): Promise { + public async getWorkflowsWebhookHandle(handleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'handleId' is not null or undefined if (handleId === null || handleId === undefined) { - throw new RequiredError("handleId", "getWorkflowsWebhookHandle"); + throw new RequiredError('handleId', 'getWorkflowsWebhookHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}".replace( - "{handle_id}", - encodeURIComponent(String(handleId)) - ); + const localVarPath = '/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}' + .replace('{handle_id}', encodeURIComponent(String(handleId))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.getWorkflowsWebhookHandle") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.getWorkflowsWebhookHandle').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listTenantBasedHandles( - tenantId?: string, - name?: string, - _options?: Configuration - ): Promise { + public async listTenantBasedHandles(tenantId?: string,name?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; + const localVarPath = '/api/v2/integration/ms-teams/configuration/tenant-based-handles'; // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.listTenantBasedHandles") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.listTenantBasedHandles').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (tenantId !== undefined) { - requestContext.setQueryParam( - "tenant_id", - ObjectSerializer.serialize(tenantId, "string", ""), - "" - ); + requestContext.setQueryParam("tenant_id", ObjectSerializer.serialize(tenantId, "string", ""), ""); } if (name !== undefined) { - requestContext.setQueryParam( - "name", - ObjectSerializer.serialize(name, "string", ""), - "" - ); + requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listWorkflowsWebhookHandles( - name?: string, - _options?: Configuration - ): Promise { + public async listWorkflowsWebhookHandles(name?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/workflows-webhook-handles"; + const localVarPath = '/api/v2/integration/ms-teams/configuration/workflows-webhook-handles'; // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.listWorkflowsWebhookHandles") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.listWorkflowsWebhookHandles').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (name !== undefined) { - requestContext.setQueryParam( - "name", - ObjectSerializer.serialize(name, "string", ""), - "" - ); + requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateTenantBasedHandle( - handleId: string, - body: MicrosoftTeamsUpdateTenantBasedHandleRequest, - _options?: Configuration - ): Promise { + public async updateTenantBasedHandle(handleId: string,body: MicrosoftTeamsUpdateTenantBasedHandleRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'handleId' is not null or undefined if (handleId === null || handleId === undefined) { - throw new RequiredError("handleId", "updateTenantBasedHandle"); + throw new RequiredError('handleId', 'updateTenantBasedHandle'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTenantBasedHandle"); + throw new RequiredError('body', 'updateTenantBasedHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}".replace( - "{handle_id}", - encodeURIComponent(String(handleId)) - ); + const localVarPath = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}' + .replace('{handle_id}', encodeURIComponent(String(handleId))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.updateTenantBasedHandle") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.updateTenantBasedHandle').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "MicrosoftTeamsUpdateTenantBasedHandleRequest", - "" - ), + ObjectSerializer.serialize(body, "MicrosoftTeamsUpdateTenantBasedHandleRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateWorkflowsWebhookHandle( - handleId: string, - body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest, - _options?: Configuration - ): Promise { + public async updateWorkflowsWebhookHandle(handleId: string,body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'handleId' is not null or undefined if (handleId === null || handleId === undefined) { - throw new RequiredError("handleId", "updateWorkflowsWebhookHandle"); + throw new RequiredError('handleId', 'updateWorkflowsWebhookHandle'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateWorkflowsWebhookHandle"); + throw new RequiredError('body', 'updateWorkflowsWebhookHandle'); } // Path Params - const localVarPath = - "/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}".replace( - "{handle_id}", - encodeURIComponent(String(handleId)) - ); + const localVarPath = '/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}' + .replace('{handle_id}', encodeURIComponent(String(handleId))); // Make Request Context - const requestContext = _config - .getServer("v2.MicrosoftTeamsIntegrationApi.updateWorkflowsWebhookHandle") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.MicrosoftTeamsIntegrationApi.updateWorkflowsWebhookHandle').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest", - "" - ), + ObjectSerializer.serialize(body, "MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class MicrosoftTeamsIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -499,32 +351,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createTenantBasedHandle * @throws ApiException if the response code was not in [200, 299] */ - public async createTenantBasedHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createTenantBasedHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { - const body: MicrosoftTeamsTenantBasedHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandleResponse" - ) as MicrosoftTeamsTenantBasedHandleResponse; + const body: MicrosoftTeamsTenantBasedHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandleResponse" + ) as MicrosoftTeamsTenantBasedHandleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -533,30 +370,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsTenantBasedHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandleResponse", - "" - ) as MicrosoftTeamsTenantBasedHandleResponse; + const body: MicrosoftTeamsTenantBasedHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandleResponse", "" + ) as MicrosoftTeamsTenantBasedHandleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -566,32 +395,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createWorkflowsWebhookHandle * @throws ApiException if the response code was not in [200, 299] */ - public async createWorkflowsWebhookHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createWorkflowsWebhookHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { - const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandleResponse" - ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandleResponse" + ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -600,30 +414,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandleResponse", - "" - ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandleResponse", "" + ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -633,25 +439,13 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteTenantBasedHandle * @throws ApiException if the response code was not in [200, 299] */ - public async deleteTenantBasedHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteTenantBasedHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -660,11 +454,8 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -672,17 +463,13 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -692,25 +479,13 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteWorkflowsWebhookHandle * @throws ApiException if the response code was not in [200, 299] */ - public async deleteWorkflowsWebhookHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteWorkflowsWebhookHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -719,11 +494,8 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -731,17 +503,13 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -751,30 +519,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getChannelByName * @throws ApiException if the response code was not in [200, 299] */ - public async getChannelByName( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getChannelByName(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsGetChannelByNameResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsGetChannelByNameResponse" - ) as MicrosoftTeamsGetChannelByNameResponse; + const body: MicrosoftTeamsGetChannelByNameResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsGetChannelByNameResponse" + ) as MicrosoftTeamsGetChannelByNameResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -783,30 +538,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsGetChannelByNameResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsGetChannelByNameResponse", - "" - ) as MicrosoftTeamsGetChannelByNameResponse; + const body: MicrosoftTeamsGetChannelByNameResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsGetChannelByNameResponse", "" + ) as MicrosoftTeamsGetChannelByNameResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -816,31 +563,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getTenantBasedHandle * @throws ApiException if the response code was not in [200, 299] */ - public async getTenantBasedHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTenantBasedHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsTenantBasedHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandleResponse" - ) as MicrosoftTeamsTenantBasedHandleResponse; + const body: MicrosoftTeamsTenantBasedHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandleResponse" + ) as MicrosoftTeamsTenantBasedHandleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -849,30 +582,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsTenantBasedHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandleResponse", - "" - ) as MicrosoftTeamsTenantBasedHandleResponse; + const body: MicrosoftTeamsTenantBasedHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandleResponse", "" + ) as MicrosoftTeamsTenantBasedHandleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -882,31 +607,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getWorkflowsWebhookHandle * @throws ApiException if the response code was not in [200, 299] */ - public async getWorkflowsWebhookHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getWorkflowsWebhookHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandleResponse" - ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandleResponse" + ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -915,30 +626,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandleResponse", - "" - ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandleResponse", "" + ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -948,31 +651,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listTenantBasedHandles * @throws ApiException if the response code was not in [200, 299] */ - public async listTenantBasedHandles( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listTenantBasedHandles(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsTenantBasedHandlesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandlesResponse" - ) as MicrosoftTeamsTenantBasedHandlesResponse; + const body: MicrosoftTeamsTenantBasedHandlesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandlesResponse" + ) as MicrosoftTeamsTenantBasedHandlesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -981,30 +670,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsTenantBasedHandlesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandlesResponse", - "" - ) as MicrosoftTeamsTenantBasedHandlesResponse; + const body: MicrosoftTeamsTenantBasedHandlesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandlesResponse", "" + ) as MicrosoftTeamsTenantBasedHandlesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1014,31 +695,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listWorkflowsWebhookHandles * @throws ApiException if the response code was not in [200, 299] */ - public async listWorkflowsWebhookHandles( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listWorkflowsWebhookHandles(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsWorkflowsWebhookHandlesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandlesResponse" - ) as MicrosoftTeamsWorkflowsWebhookHandlesResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandlesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandlesResponse" + ) as MicrosoftTeamsWorkflowsWebhookHandlesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1047,30 +714,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsWorkflowsWebhookHandlesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandlesResponse", - "" - ) as MicrosoftTeamsWorkflowsWebhookHandlesResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandlesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandlesResponse", "" + ) as MicrosoftTeamsWorkflowsWebhookHandlesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1080,32 +739,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateTenantBasedHandle * @throws ApiException if the response code was not in [200, 299] */ - public async updateTenantBasedHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTenantBasedHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsTenantBasedHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandleResponse" - ) as MicrosoftTeamsTenantBasedHandleResponse; + const body: MicrosoftTeamsTenantBasedHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandleResponse" + ) as MicrosoftTeamsTenantBasedHandleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1114,30 +758,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsTenantBasedHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsTenantBasedHandleResponse", - "" - ) as MicrosoftTeamsTenantBasedHandleResponse; + const body: MicrosoftTeamsTenantBasedHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsTenantBasedHandleResponse", "" + ) as MicrosoftTeamsTenantBasedHandleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1147,32 +783,17 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateWorkflowsWebhookHandle * @throws ApiException if the response code was not in [200, 299] */ - public async updateWorkflowsWebhookHandle( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateWorkflowsWebhookHandle(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandleResponse" - ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandleResponse" + ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 412 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 412||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1181,30 +802,22 @@ export class MicrosoftTeamsIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MicrosoftTeamsWorkflowsWebhookHandleResponse", - "" - ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; + const body: MicrosoftTeamsWorkflowsWebhookHandleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MicrosoftTeamsWorkflowsWebhookHandleResponse", "" + ) as MicrosoftTeamsWorkflowsWebhookHandleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1213,7 +826,7 @@ export interface MicrosoftTeamsIntegrationApiCreateTenantBasedHandleRequest { * Tenant-based handle payload. * @type MicrosoftTeamsCreateTenantBasedHandleRequest */ - body: MicrosoftTeamsCreateTenantBasedHandleRequest; + body: MicrosoftTeamsCreateTenantBasedHandleRequest } export interface MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest { @@ -1221,7 +834,7 @@ export interface MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest * Workflows Webhook handle payload. * @type MicrosoftTeamsCreateWorkflowsWebhookHandleRequest */ - body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest; + body: MicrosoftTeamsCreateWorkflowsWebhookHandleRequest } export interface MicrosoftTeamsIntegrationApiDeleteTenantBasedHandleRequest { @@ -1229,7 +842,7 @@ export interface MicrosoftTeamsIntegrationApiDeleteTenantBasedHandleRequest { * Your tenant-based handle id. * @type string */ - handleId: string; + handleId: string } export interface MicrosoftTeamsIntegrationApiDeleteWorkflowsWebhookHandleRequest { @@ -1237,7 +850,7 @@ export interface MicrosoftTeamsIntegrationApiDeleteWorkflowsWebhookHandleRequest * Your Workflows webhook handle id. * @type string */ - handleId: string; + handleId: string } export interface MicrosoftTeamsIntegrationApiGetChannelByNameRequest { @@ -1245,17 +858,17 @@ export interface MicrosoftTeamsIntegrationApiGetChannelByNameRequest { * Your tenant name. * @type string */ - tenantName: string; + tenantName: string /** * Your team name. * @type string */ - teamName: string; + teamName: string /** * Your channel name. * @type string */ - channelName: string; + channelName: string } export interface MicrosoftTeamsIntegrationApiGetTenantBasedHandleRequest { @@ -1263,7 +876,7 @@ export interface MicrosoftTeamsIntegrationApiGetTenantBasedHandleRequest { * Your tenant-based handle id. * @type string */ - handleId: string; + handleId: string } export interface MicrosoftTeamsIntegrationApiGetWorkflowsWebhookHandleRequest { @@ -1271,7 +884,7 @@ export interface MicrosoftTeamsIntegrationApiGetWorkflowsWebhookHandleRequest { * Your Workflows webhook handle id. * @type string */ - handleId: string; + handleId: string } export interface MicrosoftTeamsIntegrationApiListTenantBasedHandlesRequest { @@ -1279,12 +892,12 @@ export interface MicrosoftTeamsIntegrationApiListTenantBasedHandlesRequest { * Your tenant id. * @type string */ - tenantId?: string; + tenantId?: string /** * Your tenant-based handle name. * @type string */ - name?: string; + name?: string } export interface MicrosoftTeamsIntegrationApiListWorkflowsWebhookHandlesRequest { @@ -1292,7 +905,7 @@ export interface MicrosoftTeamsIntegrationApiListWorkflowsWebhookHandlesRequest * Your Workflows webhook handle name. * @type string */ - name?: string; + name?: string } export interface MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest { @@ -1300,12 +913,12 @@ export interface MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest { * Your tenant-based handle id. * @type string */ - handleId: string; + handleId: string /** * Tenant-based handle payload. * @type MicrosoftTeamsUpdateTenantBasedHandleRequest */ - body: MicrosoftTeamsUpdateTenantBasedHandleRequest; + body: MicrosoftTeamsUpdateTenantBasedHandleRequest } export interface MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest { @@ -1313,12 +926,12 @@ export interface MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest * Your Workflows webhook handle id. * @type string */ - handleId: string; + handleId: string /** * Workflows Webhook handle payload. * @type MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest */ - body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest; + body: MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest } export class MicrosoftTeamsIntegrationApi { @@ -1326,38 +939,21 @@ export class MicrosoftTeamsIntegrationApi { private responseProcessor: MicrosoftTeamsIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: MicrosoftTeamsIntegrationApiRequestFactory, - responseProcessor?: MicrosoftTeamsIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: MicrosoftTeamsIntegrationApiRequestFactory, responseProcessor?: MicrosoftTeamsIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new MicrosoftTeamsIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new MicrosoftTeamsIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new MicrosoftTeamsIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MicrosoftTeamsIntegrationApiResponseProcessor(); } /** * Create a tenant-based handle in the Datadog Microsoft Teams integration. * @param param The request object */ - public createTenantBasedHandle( - param: MicrosoftTeamsIntegrationApiCreateTenantBasedHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createTenantBasedHandle( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createTenantBasedHandle( - responseContext - ); + public createTenantBasedHandle(param: MicrosoftTeamsIntegrationApiCreateTenantBasedHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createTenantBasedHandle(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createTenantBasedHandle(responseContext); }); }); } @@ -1366,19 +962,11 @@ export class MicrosoftTeamsIntegrationApi { * Create a Workflows webhook handle in the Datadog Microsoft Teams integration. * @param param The request object */ - public createWorkflowsWebhookHandle( - param: MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createWorkflowsWebhookHandle(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createWorkflowsWebhookHandle( - responseContext - ); + public createWorkflowsWebhookHandle(param: MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createWorkflowsWebhookHandle(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createWorkflowsWebhookHandle(responseContext); }); }); } @@ -1387,21 +975,11 @@ export class MicrosoftTeamsIntegrationApi { * Delete a tenant-based handle from the Datadog Microsoft Teams integration. * @param param The request object */ - public deleteTenantBasedHandle( - param: MicrosoftTeamsIntegrationApiDeleteTenantBasedHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteTenantBasedHandle( - param.handleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteTenantBasedHandle( - responseContext - ); + public deleteTenantBasedHandle(param: MicrosoftTeamsIntegrationApiDeleteTenantBasedHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteTenantBasedHandle(param.handleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteTenantBasedHandle(responseContext); }); }); } @@ -1410,19 +988,11 @@ export class MicrosoftTeamsIntegrationApi { * Delete a Workflows webhook handle from the Datadog Microsoft Teams integration. * @param param The request object */ - public deleteWorkflowsWebhookHandle( - param: MicrosoftTeamsIntegrationApiDeleteWorkflowsWebhookHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteWorkflowsWebhookHandle(param.handleId, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteWorkflowsWebhookHandle( - responseContext - ); + public deleteWorkflowsWebhookHandle(param: MicrosoftTeamsIntegrationApiDeleteWorkflowsWebhookHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteWorkflowsWebhookHandle(param.handleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteWorkflowsWebhookHandle(responseContext); }); }); } @@ -1431,21 +1001,11 @@ export class MicrosoftTeamsIntegrationApi { * Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration. * @param param The request object */ - public getChannelByName( - param: MicrosoftTeamsIntegrationApiGetChannelByNameRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getChannelByName( - param.tenantName, - param.teamName, - param.channelName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getChannelByName(responseContext); + public getChannelByName(param: MicrosoftTeamsIntegrationApiGetChannelByNameRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getChannelByName(param.tenantName,param.teamName,param.channelName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getChannelByName(responseContext); }); }); } @@ -1454,19 +1014,11 @@ export class MicrosoftTeamsIntegrationApi { * Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration. * @param param The request object */ - public getTenantBasedHandle( - param: MicrosoftTeamsIntegrationApiGetTenantBasedHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTenantBasedHandle( - param.handleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTenantBasedHandle(responseContext); + public getTenantBasedHandle(param: MicrosoftTeamsIntegrationApiGetTenantBasedHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTenantBasedHandle(param.handleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTenantBasedHandle(responseContext); }); }); } @@ -1475,21 +1027,11 @@ export class MicrosoftTeamsIntegrationApi { * Get the name of a Workflows webhook handle from the Datadog Microsoft Teams integration. * @param param The request object */ - public getWorkflowsWebhookHandle( - param: MicrosoftTeamsIntegrationApiGetWorkflowsWebhookHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getWorkflowsWebhookHandle( - param.handleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getWorkflowsWebhookHandle( - responseContext - ); + public getWorkflowsWebhookHandle(param: MicrosoftTeamsIntegrationApiGetWorkflowsWebhookHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getWorkflowsWebhookHandle(param.handleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getWorkflowsWebhookHandle(responseContext); }); }); } @@ -1498,20 +1040,11 @@ export class MicrosoftTeamsIntegrationApi { * Get a list of all tenant-based handles from the Datadog Microsoft Teams integration. * @param param The request object */ - public listTenantBasedHandles( - param: MicrosoftTeamsIntegrationApiListTenantBasedHandlesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listTenantBasedHandles( - param.tenantId, - param.name, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listTenantBasedHandles(responseContext); + public listTenantBasedHandles(param: MicrosoftTeamsIntegrationApiListTenantBasedHandlesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listTenantBasedHandles(param.tenantId,param.name,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listTenantBasedHandles(responseContext); }); }); } @@ -1520,19 +1053,11 @@ export class MicrosoftTeamsIntegrationApi { * Get a list of all Workflows webhook handles from the Datadog Microsoft Teams integration. * @param param The request object */ - public listWorkflowsWebhookHandles( - param: MicrosoftTeamsIntegrationApiListWorkflowsWebhookHandlesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listWorkflowsWebhookHandles(param.name, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listWorkflowsWebhookHandles( - responseContext - ); + public listWorkflowsWebhookHandles(param: MicrosoftTeamsIntegrationApiListWorkflowsWebhookHandlesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listWorkflowsWebhookHandles(param.name,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listWorkflowsWebhookHandles(responseContext); }); }); } @@ -1541,22 +1066,11 @@ export class MicrosoftTeamsIntegrationApi { * Update a tenant-based handle from the Datadog Microsoft Teams integration. * @param param The request object */ - public updateTenantBasedHandle( - param: MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateTenantBasedHandle( - param.handleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTenantBasedHandle( - responseContext - ); + public updateTenantBasedHandle(param: MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTenantBasedHandle(param.handleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTenantBasedHandle(responseContext); }); }); } @@ -1565,24 +1079,12 @@ export class MicrosoftTeamsIntegrationApi { * Update a Workflows webhook handle from the Datadog Microsoft Teams integration. * @param param The request object */ - public updateWorkflowsWebhookHandle( - param: MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateWorkflowsWebhookHandle( - param.handleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateWorkflowsWebhookHandle( - responseContext - ); + public updateWorkflowsWebhookHandle(param: MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateWorkflowsWebhookHandle(param.handleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateWorkflowsWebhookHandle(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/MonitorsApi.ts b/packages/datadog-api-client-v2/apis/MonitorsApi.ts index 637604b5c150..b630de4e0610 100644 --- a/packages/datadog-api-client-v2/apis/MonitorsApi.ts +++ b/packages/datadog-api-client-v2/apis/MonitorsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { MonitorConfigPolicyCreateRequest } from "../models/MonitorConfigPolicyCreateRequest"; import { MonitorConfigPolicyEditRequest } from "../models/MonitorConfigPolicyEditRequest"; @@ -23,31 +21,26 @@ import { MonitorConfigPolicyListResponse } from "../models/MonitorConfigPolicyLi import { MonitorConfigPolicyResponse } from "../models/MonitorConfigPolicyResponse"; export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { - public async createMonitorConfigPolicy( - body: MonitorConfigPolicyCreateRequest, - _options?: Configuration - ): Promise { + + public async createMonitorConfigPolicy(body: MonitorConfigPolicyCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createMonitorConfigPolicy"); + throw new RequiredError('body', 'createMonitorConfigPolicy'); } // Path Params - const localVarPath = "/api/v2/monitor/policy"; + const localVarPath = '/api/v2/monitor/policy'; // Make Request Context - const requestContext = _config - .getServer("v2.MonitorsApi.createMonitorConfigPolicy") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.MonitorsApi.createMonitorConfigPolicy').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MonitorConfigPolicyCreateRequest", ""), @@ -56,140 +49,99 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteMonitorConfigPolicy( - policyId: string, - _options?: Configuration - ): Promise { + public async deleteMonitorConfigPolicy(policyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'policyId' is not null or undefined if (policyId === null || policyId === undefined) { - throw new RequiredError("policyId", "deleteMonitorConfigPolicy"); + throw new RequiredError('policyId', 'deleteMonitorConfigPolicy'); } // Path Params - const localVarPath = "/api/v2/monitor/policy/{policy_id}".replace( - "{policy_id}", - encodeURIComponent(String(policyId)) - ); + const localVarPath = '/api/v2/monitor/policy/{policy_id}' + .replace('{policy_id}', encodeURIComponent(String(policyId))); // Make Request Context - const requestContext = _config - .getServer("v2.MonitorsApi.deleteMonitorConfigPolicy") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.MonitorsApi.deleteMonitorConfigPolicy').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getMonitorConfigPolicy( - policyId: string, - _options?: Configuration - ): Promise { + public async getMonitorConfigPolicy(policyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'policyId' is not null or undefined if (policyId === null || policyId === undefined) { - throw new RequiredError("policyId", "getMonitorConfigPolicy"); + throw new RequiredError('policyId', 'getMonitorConfigPolicy'); } // Path Params - const localVarPath = "/api/v2/monitor/policy/{policy_id}".replace( - "{policy_id}", - encodeURIComponent(String(policyId)) - ); + const localVarPath = '/api/v2/monitor/policy/{policy_id}' + .replace('{policy_id}', encodeURIComponent(String(policyId))); // Make Request Context - const requestContext = _config - .getServer("v2.MonitorsApi.getMonitorConfigPolicy") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MonitorsApi.getMonitorConfigPolicy').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listMonitorConfigPolicies( - _options?: Configuration - ): Promise { + public async listMonitorConfigPolicies(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/monitor/policy"; + const localVarPath = '/api/v2/monitor/policy'; // Make Request Context - const requestContext = _config - .getServer("v2.MonitorsApi.listMonitorConfigPolicies") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.MonitorsApi.listMonitorConfigPolicies').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateMonitorConfigPolicy( - policyId: string, - body: MonitorConfigPolicyEditRequest, - _options?: Configuration - ): Promise { + public async updateMonitorConfigPolicy(policyId: string,body: MonitorConfigPolicyEditRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'policyId' is not null or undefined if (policyId === null || policyId === undefined) { - throw new RequiredError("policyId", "updateMonitorConfigPolicy"); + throw new RequiredError('policyId', 'updateMonitorConfigPolicy'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateMonitorConfigPolicy"); + throw new RequiredError('body', 'updateMonitorConfigPolicy'); } // Path Params - const localVarPath = "/api/v2/monitor/policy/{policy_id}".replace( - "{policy_id}", - encodeURIComponent(String(policyId)) - ); + const localVarPath = '/api/v2/monitor/policy/{policy_id}' + .replace('{policy_id}', encodeURIComponent(String(policyId))); // Make Request Context - const requestContext = _config - .getServer("v2.MonitorsApi.updateMonitorConfigPolicy") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.MonitorsApi.updateMonitorConfigPolicy').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "MonitorConfigPolicyEditRequest", ""), @@ -198,16 +150,14 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class MonitorsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -215,12 +165,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to createMonitorConfigPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async createMonitorConfigPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createMonitorConfigPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonitorConfigPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -228,15 +174,8 @@ export class MonitorsApiResponseProcessor { ) as MonitorConfigPolicyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -245,11 +184,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -257,17 +193,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonitorConfigPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorConfigPolicyResponse", - "" + "MonitorConfigPolicyResponse", "" ) as MonitorConfigPolicyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -277,25 +209,13 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to deleteMonitorConfigPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteMonitorConfigPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteMonitorConfigPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -304,11 +224,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -316,17 +233,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -336,12 +249,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to getMonitorConfigPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async getMonitorConfigPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMonitorConfigPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonitorConfigPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -349,15 +258,8 @@ export class MonitorsApiResponseProcessor { ) as MonitorConfigPolicyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -366,11 +268,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -378,17 +277,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonitorConfigPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorConfigPolicyResponse", - "" + "MonitorConfigPolicyResponse", "" ) as MonitorConfigPolicyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -398,25 +293,17 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to listMonitorConfigPolicies * @throws ApiException if the response code was not in [200, 299] */ - public async listMonitorConfigPolicies( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listMonitorConfigPolicies(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: MonitorConfigPolicyListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorConfigPolicyListResponse" - ) as MonitorConfigPolicyListResponse; + const body: MonitorConfigPolicyListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MonitorConfigPolicyListResponse" + ) as MonitorConfigPolicyListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -425,30 +312,22 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: MonitorConfigPolicyListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorConfigPolicyListResponse", - "" - ) as MonitorConfigPolicyListResponse; + const body: MonitorConfigPolicyListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "MonitorConfigPolicyListResponse", "" + ) as MonitorConfigPolicyListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -458,12 +337,8 @@ export class MonitorsApiResponseProcessor { * @params response Response returned by the server for a request to updateMonitorConfigPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async updateMonitorConfigPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateMonitorConfigPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonitorConfigPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -471,16 +346,8 @@ export class MonitorsApiResponseProcessor { ) as MonitorConfigPolicyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -489,11 +356,8 @@ export class MonitorsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -501,17 +365,13 @@ export class MonitorsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonitorConfigPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonitorConfigPolicyResponse", - "" + "MonitorConfigPolicyResponse", "" ) as MonitorConfigPolicyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -520,7 +380,7 @@ export interface MonitorsApiCreateMonitorConfigPolicyRequest { * Create a monitor configuration policy request body. * @type MonitorConfigPolicyCreateRequest */ - body: MonitorConfigPolicyCreateRequest; + body: MonitorConfigPolicyCreateRequest } export interface MonitorsApiDeleteMonitorConfigPolicyRequest { @@ -528,7 +388,7 @@ export interface MonitorsApiDeleteMonitorConfigPolicyRequest { * ID of the monitor configuration policy. * @type string */ - policyId: string; + policyId: string } export interface MonitorsApiGetMonitorConfigPolicyRequest { @@ -536,7 +396,7 @@ export interface MonitorsApiGetMonitorConfigPolicyRequest { * ID of the monitor configuration policy. * @type string */ - policyId: string; + policyId: string } export interface MonitorsApiUpdateMonitorConfigPolicyRequest { @@ -544,12 +404,12 @@ export interface MonitorsApiUpdateMonitorConfigPolicyRequest { * ID of the monitor configuration policy. * @type string */ - policyId: string; + policyId: string /** * Description of the update. * @type MonitorConfigPolicyEditRequest */ - body: MonitorConfigPolicyEditRequest; + body: MonitorConfigPolicyEditRequest } export class MonitorsApi { @@ -557,37 +417,21 @@ export class MonitorsApi { private responseProcessor: MonitorsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: MonitorsApiRequestFactory, - responseProcessor?: MonitorsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: MonitorsApiRequestFactory, responseProcessor?: MonitorsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new MonitorsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new MonitorsApiResponseProcessor(); + this.requestFactory = requestFactory || new MonitorsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MonitorsApiResponseProcessor(); } /** * Create a monitor configuration policy. * @param param The request object */ - public createMonitorConfigPolicy( - param: MonitorsApiCreateMonitorConfigPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createMonitorConfigPolicy( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createMonitorConfigPolicy( - responseContext - ); + public createMonitorConfigPolicy(param: MonitorsApiCreateMonitorConfigPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createMonitorConfigPolicy(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createMonitorConfigPolicy(responseContext); }); }); } @@ -596,21 +440,11 @@ export class MonitorsApi { * Delete a monitor configuration policy. * @param param The request object */ - public deleteMonitorConfigPolicy( - param: MonitorsApiDeleteMonitorConfigPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteMonitorConfigPolicy( - param.policyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteMonitorConfigPolicy( - responseContext - ); + public deleteMonitorConfigPolicy(param: MonitorsApiDeleteMonitorConfigPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteMonitorConfigPolicy(param.policyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteMonitorConfigPolicy(responseContext); }); }); } @@ -619,19 +453,11 @@ export class MonitorsApi { * Get a monitor configuration policy by `policy_id`. * @param param The request object */ - public getMonitorConfigPolicy( - param: MonitorsApiGetMonitorConfigPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getMonitorConfigPolicy( - param.policyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMonitorConfigPolicy(responseContext); + public getMonitorConfigPolicy(param: MonitorsApiGetMonitorConfigPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMonitorConfigPolicy(param.policyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMonitorConfigPolicy(responseContext); }); }); } @@ -640,18 +466,11 @@ export class MonitorsApi { * Get all monitor configuration policies. * @param param The request object */ - public listMonitorConfigPolicies( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listMonitorConfigPolicies(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listMonitorConfigPolicies( - responseContext - ); + public listMonitorConfigPolicies( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listMonitorConfigPolicies(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listMonitorConfigPolicies(responseContext); }); }); } @@ -660,23 +479,12 @@ export class MonitorsApi { * Edit a monitor configuration policy. * @param param The request object */ - public updateMonitorConfigPolicy( - param: MonitorsApiUpdateMonitorConfigPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateMonitorConfigPolicy( - param.policyId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateMonitorConfigPolicy( - responseContext - ); + public updateMonitorConfigPolicy(param: MonitorsApiUpdateMonitorConfigPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateMonitorConfigPolicy(param.policyId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateMonitorConfigPolicy(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts b/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts index eb6a2d173144..9c81b94b7118 100644 --- a/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts +++ b/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { GetDeviceResponse } from "../models/GetDeviceResponse"; import { GetInterfacesResponse } from "../models/GetInterfacesResponse"; @@ -23,203 +21,136 @@ import { ListDevicesResponse } from "../models/ListDevicesResponse"; import { ListTagsResponse } from "../models/ListTagsResponse"; export class NetworkDeviceMonitoringApiRequestFactory extends BaseAPIRequestFactory { - public async getDevice( - deviceId: string, - _options?: Configuration - ): Promise { + + public async getDevice(deviceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'deviceId' is not null or undefined if (deviceId === null || deviceId === undefined) { - throw new RequiredError("deviceId", "getDevice"); + throw new RequiredError('deviceId', 'getDevice'); } // Path Params - const localVarPath = "/api/v2/ndm/devices/{device_id}".replace( - "{device_id}", - encodeURIComponent(String(deviceId)) - ); + const localVarPath = '/api/v2/ndm/devices/{device_id}' + .replace('{device_id}', encodeURIComponent(String(deviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.NetworkDeviceMonitoringApi.getDevice") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.NetworkDeviceMonitoringApi.getDevice').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getInterfaces( - deviceId: string, - _options?: Configuration - ): Promise { + public async getInterfaces(deviceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'deviceId' is not null or undefined if (deviceId === null || deviceId === undefined) { - throw new RequiredError("deviceId", "getInterfaces"); + throw new RequiredError('deviceId', 'getInterfaces'); } // Path Params - const localVarPath = "/api/v2/ndm/interfaces"; + const localVarPath = '/api/v2/ndm/interfaces'; // Make Request Context - const requestContext = _config - .getServer("v2.NetworkDeviceMonitoringApi.getInterfaces") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.NetworkDeviceMonitoringApi.getInterfaces').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (deviceId !== undefined) { - requestContext.setQueryParam( - "device_id", - ObjectSerializer.serialize(deviceId, "string", ""), - "" - ); + requestContext.setQueryParam("device_id", ObjectSerializer.serialize(deviceId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listDevices( - pageNumber?: number, - pageSize?: number, - sort?: string, - filterTag?: string, - _options?: Configuration - ): Promise { + public async listDevices(pageNumber?: number,pageSize?: number,sort?: string,filterTag?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/ndm/devices"; + const localVarPath = '/api/v2/ndm/devices'; // Make Request Context - const requestContext = _config - .getServer("v2.NetworkDeviceMonitoringApi.listDevices") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.NetworkDeviceMonitoringApi.listDevices').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } if (filterTag !== undefined) { - requestContext.setQueryParam( - "filter[tag]", - ObjectSerializer.serialize(filterTag, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tag]", ObjectSerializer.serialize(filterTag, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listDeviceUserTags( - deviceId: string, - _options?: Configuration - ): Promise { + public async listDeviceUserTags(deviceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'deviceId' is not null or undefined if (deviceId === null || deviceId === undefined) { - throw new RequiredError("deviceId", "listDeviceUserTags"); + throw new RequiredError('deviceId', 'listDeviceUserTags'); } // Path Params - const localVarPath = "/api/v2/ndm/tags/devices/{device_id}".replace( - "{device_id}", - encodeURIComponent(String(deviceId)) - ); + const localVarPath = '/api/v2/ndm/tags/devices/{device_id}' + .replace('{device_id}', encodeURIComponent(String(deviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.NetworkDeviceMonitoringApi.listDeviceUserTags") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.NetworkDeviceMonitoringApi.listDeviceUserTags').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateDeviceUserTags( - deviceId: string, - body: ListTagsResponse, - _options?: Configuration - ): Promise { + public async updateDeviceUserTags(deviceId: string,body: ListTagsResponse,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'deviceId' is not null or undefined if (deviceId === null || deviceId === undefined) { - throw new RequiredError("deviceId", "updateDeviceUserTags"); + throw new RequiredError('deviceId', 'updateDeviceUserTags'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateDeviceUserTags"); + throw new RequiredError('body', 'updateDeviceUserTags'); } // Path Params - const localVarPath = "/api/v2/ndm/tags/devices/{device_id}".replace( - "{device_id}", - encodeURIComponent(String(deviceId)) - ); + const localVarPath = '/api/v2/ndm/tags/devices/{device_id}' + .replace('{device_id}', encodeURIComponent(String(deviceId))); // Make Request Context - const requestContext = _config - .getServer("v2.NetworkDeviceMonitoringApi.updateDeviceUserTags") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.NetworkDeviceMonitoringApi.updateDeviceUserTags').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ListTagsResponse", ""), @@ -228,16 +159,14 @@ export class NetworkDeviceMonitoringApiRequestFactory extends BaseAPIRequestFact requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class NetworkDeviceMonitoringApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -245,12 +174,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getDevice * @throws ApiException if the response code was not in [200, 299] */ - public async getDevice( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getDevice(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetDeviceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -258,15 +183,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as GetDeviceResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -275,11 +193,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -287,17 +202,13 @@ export class NetworkDeviceMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetDeviceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetDeviceResponse", - "" + "GetDeviceResponse", "" ) as GetDeviceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -307,12 +218,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getInterfaces * @throws ApiException if the response code was not in [200, 299] */ - public async getInterfaces( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getInterfaces(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetInterfacesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -320,11 +227,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as GetInterfacesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -333,11 +237,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -345,17 +246,13 @@ export class NetworkDeviceMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetInterfacesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetInterfacesResponse", - "" + "GetInterfacesResponse", "" ) as GetInterfacesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -365,12 +262,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listDevices * @throws ApiException if the response code was not in [200, 299] */ - public async listDevices( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listDevices(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListDevicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -378,15 +271,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as ListDevicesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -395,11 +281,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -407,17 +290,13 @@ export class NetworkDeviceMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListDevicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListDevicesResponse", - "" + "ListDevicesResponse", "" ) as ListDevicesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -427,12 +306,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listDeviceUserTags * @throws ApiException if the response code was not in [200, 299] */ - public async listDeviceUserTags( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listDeviceUserTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListTagsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -440,15 +315,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as ListTagsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -457,11 +325,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -469,17 +334,13 @@ export class NetworkDeviceMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListTagsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListTagsResponse", - "" + "ListTagsResponse", "" ) as ListTagsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -489,12 +350,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to updateDeviceUserTags * @throws ApiException if the response code was not in [200, 299] */ - public async updateDeviceUserTags( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateDeviceUserTags(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListTagsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -502,15 +359,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as ListTagsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -519,11 +369,8 @@ export class NetworkDeviceMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -531,17 +378,13 @@ export class NetworkDeviceMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListTagsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListTagsResponse", - "" + "ListTagsResponse", "" ) as ListTagsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -550,7 +393,7 @@ export interface NetworkDeviceMonitoringApiGetDeviceRequest { * The id of the device to fetch. * @type string */ - deviceId: string; + deviceId: string } export interface NetworkDeviceMonitoringApiGetInterfacesRequest { @@ -558,7 +401,7 @@ export interface NetworkDeviceMonitoringApiGetInterfacesRequest { * The ID of the device to get interfaces from. * @type string */ - deviceId: string; + deviceId: string } export interface NetworkDeviceMonitoringApiListDevicesRequest { @@ -566,22 +409,22 @@ export interface NetworkDeviceMonitoringApiListDevicesRequest { * The page number to fetch. * @type number */ - pageNumber?: number; + pageNumber?: number /** * The number of devices to return per page. * @type number */ - pageSize?: number; + pageSize?: number /** * The field to sort the devices by. * @type string */ - sort?: string; + sort?: string /** * Filter devices by tag. * @type string */ - filterTag?: string; + filterTag?: string } export interface NetworkDeviceMonitoringApiListDeviceUserTagsRequest { @@ -589,7 +432,7 @@ export interface NetworkDeviceMonitoringApiListDeviceUserTagsRequest { * The id of the device to fetch tags for. * @type string */ - deviceId: string; + deviceId: string } export interface NetworkDeviceMonitoringApiUpdateDeviceUserTagsRequest { @@ -597,11 +440,11 @@ export interface NetworkDeviceMonitoringApiUpdateDeviceUserTagsRequest { * The id of the device to update tags for. * @type string */ - deviceId: string; + deviceId: string /** * @type ListTagsResponse */ - body: ListTagsResponse; + body: ListTagsResponse } export class NetworkDeviceMonitoringApi { @@ -609,36 +452,21 @@ export class NetworkDeviceMonitoringApi { private responseProcessor: NetworkDeviceMonitoringApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: NetworkDeviceMonitoringApiRequestFactory, - responseProcessor?: NetworkDeviceMonitoringApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: NetworkDeviceMonitoringApiRequestFactory, responseProcessor?: NetworkDeviceMonitoringApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new NetworkDeviceMonitoringApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new NetworkDeviceMonitoringApiResponseProcessor(); + this.requestFactory = requestFactory || new NetworkDeviceMonitoringApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new NetworkDeviceMonitoringApiResponseProcessor(); } /** * Get the device details. * @param param The request object */ - public getDevice( - param: NetworkDeviceMonitoringApiGetDeviceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getDevice( - param.deviceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getDevice(responseContext); + public getDevice(param: NetworkDeviceMonitoringApiGetDeviceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getDevice(param.deviceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getDevice(responseContext); }); }); } @@ -647,19 +475,11 @@ export class NetworkDeviceMonitoringApi { * Get the list of interfaces of the device. * @param param The request object */ - public getInterfaces( - param: NetworkDeviceMonitoringApiGetInterfacesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getInterfaces( - param.deviceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getInterfaces(responseContext); + public getInterfaces(param: NetworkDeviceMonitoringApiGetInterfacesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getInterfaces(param.deviceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getInterfaces(responseContext); }); }); } @@ -668,22 +488,11 @@ export class NetworkDeviceMonitoringApi { * Get the list of devices. * @param param The request object */ - public listDevices( - param: NetworkDeviceMonitoringApiListDevicesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listDevices( - param.pageNumber, - param.pageSize, - param.sort, - param.filterTag, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listDevices(responseContext); + public listDevices(param: NetworkDeviceMonitoringApiListDevicesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listDevices(param.pageNumber,param.pageSize,param.sort,param.filterTag,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listDevices(responseContext); }); }); } @@ -692,19 +501,11 @@ export class NetworkDeviceMonitoringApi { * Get the list of tags for a device. * @param param The request object */ - public listDeviceUserTags( - param: NetworkDeviceMonitoringApiListDeviceUserTagsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listDeviceUserTags( - param.deviceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listDeviceUserTags(responseContext); + public listDeviceUserTags(param: NetworkDeviceMonitoringApiListDeviceUserTagsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listDeviceUserTags(param.deviceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listDeviceUserTags(responseContext); }); }); } @@ -713,21 +514,12 @@ export class NetworkDeviceMonitoringApi { * Update the tags for a device. * @param param The request object */ - public updateDeviceUserTags( - param: NetworkDeviceMonitoringApiUpdateDeviceUserTagsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateDeviceUserTags( - param.deviceId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateDeviceUserTags(responseContext); + public updateDeviceUserTags(param: NetworkDeviceMonitoringApiUpdateDeviceUserTagsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateDeviceUserTags(param.deviceId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateDeviceUserTags(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/OktaIntegrationApi.ts b/packages/datadog-api-client-v2/apis/OktaIntegrationApi.ts index fac70d2832de..5fe8c8f4e3cb 100644 --- a/packages/datadog-api-client-v2/apis/OktaIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/OktaIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { OktaAccountRequest } from "../models/OktaAccountRequest"; import { OktaAccountResponse } from "../models/OktaAccountResponse"; @@ -23,31 +21,26 @@ import { OktaAccountsResponse } from "../models/OktaAccountsResponse"; import { OktaAccountUpdateRequest } from "../models/OktaAccountUpdateRequest"; export class OktaIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createOktaAccount( - body: OktaAccountRequest, - _options?: Configuration - ): Promise { + + public async createOktaAccount(body: OktaAccountRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createOktaAccount"); + throw new RequiredError('body', 'createOktaAccount'); } // Path Params - const localVarPath = "/api/v2/integrations/okta/accounts"; + const localVarPath = '/api/v2/integrations/okta/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.OktaIntegrationApi.createOktaAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.OktaIntegrationApi.createOktaAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OktaAccountRequest", ""), @@ -56,141 +49,99 @@ export class OktaIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteOktaAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async deleteOktaAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "deleteOktaAccount"); + throw new RequiredError('accountId', 'deleteOktaAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/okta/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/okta/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.OktaIntegrationApi.deleteOktaAccount") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.OktaIntegrationApi.deleteOktaAccount').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getOktaAccount( - accountId: string, - _options?: Configuration - ): Promise { + public async getOktaAccount(accountId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "getOktaAccount"); + throw new RequiredError('accountId', 'getOktaAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/okta/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/okta/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.OktaIntegrationApi.getOktaAccount") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.OktaIntegrationApi.getOktaAccount').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listOktaAccounts( - _options?: Configuration - ): Promise { + public async listOktaAccounts(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integrations/okta/accounts"; + const localVarPath = '/api/v2/integrations/okta/accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.OktaIntegrationApi.listOktaAccounts") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.OktaIntegrationApi.listOktaAccounts').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateOktaAccount( - accountId: string, - body: OktaAccountUpdateRequest, - _options?: Configuration - ): Promise { + public async updateOktaAccount(accountId: string,body: OktaAccountUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'accountId' is not null or undefined if (accountId === null || accountId === undefined) { - throw new RequiredError("accountId", "updateOktaAccount"); + throw new RequiredError('accountId', 'updateOktaAccount'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateOktaAccount"); + throw new RequiredError('body', 'updateOktaAccount'); } // Path Params - const localVarPath = - "/api/v2/integrations/okta/accounts/{account_id}".replace( - "{account_id}", - encodeURIComponent(String(accountId)) - ); + const localVarPath = '/api/v2/integrations/okta/accounts/{account_id}' + .replace('{account_id}', encodeURIComponent(String(accountId))); // Make Request Context - const requestContext = _config - .getServer("v2.OktaIntegrationApi.updateOktaAccount") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.OktaIntegrationApi.updateOktaAccount').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OktaAccountUpdateRequest", ""), @@ -199,16 +150,14 @@ export class OktaIntegrationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class OktaIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -216,12 +165,8 @@ export class OktaIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createOktaAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createOktaAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createOktaAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: OktaAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -229,16 +174,8 @@ export class OktaIntegrationApiResponseProcessor { ) as OktaAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -247,11 +184,8 @@ export class OktaIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -259,17 +193,13 @@ export class OktaIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OktaAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OktaAccountResponse", - "" + "OktaAccountResponse", "" ) as OktaAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -279,23 +209,13 @@ export class OktaIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteOktaAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteOktaAccount(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteOktaAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -304,11 +224,8 @@ export class OktaIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -316,17 +233,13 @@ export class OktaIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -336,12 +249,8 @@ export class OktaIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getOktaAccount * @throws ApiException if the response code was not in [200, 299] */ - public async getOktaAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getOktaAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OktaAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -349,16 +258,8 @@ export class OktaIntegrationApiResponseProcessor { ) as OktaAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -367,11 +268,8 @@ export class OktaIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -379,17 +277,13 @@ export class OktaIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OktaAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OktaAccountResponse", - "" + "OktaAccountResponse", "" ) as OktaAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -399,12 +293,8 @@ export class OktaIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listOktaAccounts * @throws ApiException if the response code was not in [200, 299] */ - public async listOktaAccounts( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listOktaAccounts(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OktaAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -412,16 +302,8 @@ export class OktaIntegrationApiResponseProcessor { ) as OktaAccountsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -430,11 +312,8 @@ export class OktaIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -442,17 +321,13 @@ export class OktaIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OktaAccountsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OktaAccountsResponse", - "" + "OktaAccountsResponse", "" ) as OktaAccountsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -462,12 +337,8 @@ export class OktaIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateOktaAccount * @throws ApiException if the response code was not in [200, 299] */ - public async updateOktaAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateOktaAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OktaAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -475,16 +346,8 @@ export class OktaIntegrationApiResponseProcessor { ) as OktaAccountResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -493,11 +356,8 @@ export class OktaIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -505,17 +365,13 @@ export class OktaIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OktaAccountResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OktaAccountResponse", - "" + "OktaAccountResponse", "" ) as OktaAccountResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -523,7 +379,7 @@ export interface OktaIntegrationApiCreateOktaAccountRequest { /** * @type OktaAccountRequest */ - body: OktaAccountRequest; + body: OktaAccountRequest } export interface OktaIntegrationApiDeleteOktaAccountRequest { @@ -531,7 +387,7 @@ export interface OktaIntegrationApiDeleteOktaAccountRequest { * None * @type string */ - accountId: string; + accountId: string } export interface OktaIntegrationApiGetOktaAccountRequest { @@ -539,7 +395,7 @@ export interface OktaIntegrationApiGetOktaAccountRequest { * None * @type string */ - accountId: string; + accountId: string } export interface OktaIntegrationApiUpdateOktaAccountRequest { @@ -547,11 +403,11 @@ export interface OktaIntegrationApiUpdateOktaAccountRequest { * None * @type string */ - accountId: string; + accountId: string /** * @type OktaAccountUpdateRequest */ - body: OktaAccountUpdateRequest; + body: OktaAccountUpdateRequest } export class OktaIntegrationApi { @@ -559,35 +415,21 @@ export class OktaIntegrationApi { private responseProcessor: OktaIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: OktaIntegrationApiRequestFactory, - responseProcessor?: OktaIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: OktaIntegrationApiRequestFactory, responseProcessor?: OktaIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new OktaIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new OktaIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new OktaIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new OktaIntegrationApiResponseProcessor(); } /** * Create an Okta account. * @param param The request object */ - public createOktaAccount( - param: OktaIntegrationApiCreateOktaAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createOktaAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createOktaAccount(responseContext); + public createOktaAccount(param: OktaIntegrationApiCreateOktaAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createOktaAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createOktaAccount(responseContext); }); }); } @@ -596,19 +438,11 @@ export class OktaIntegrationApi { * Delete an Okta account. * @param param The request object */ - public deleteOktaAccount( - param: OktaIntegrationApiDeleteOktaAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteOktaAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteOktaAccount(responseContext); + public deleteOktaAccount(param: OktaIntegrationApiDeleteOktaAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteOktaAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteOktaAccount(responseContext); }); }); } @@ -617,19 +451,11 @@ export class OktaIntegrationApi { * Get an Okta account. * @param param The request object */ - public getOktaAccount( - param: OktaIntegrationApiGetOktaAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOktaAccount( - param.accountId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOktaAccount(responseContext); + public getOktaAccount(param: OktaIntegrationApiGetOktaAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getOktaAccount(param.accountId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getOktaAccount(responseContext); }); }); } @@ -638,15 +464,11 @@ export class OktaIntegrationApi { * List Okta accounts. * @param param The request object */ - public listOktaAccounts( - options?: Configuration - ): Promise { + public listOktaAccounts( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listOktaAccounts(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listOktaAccounts(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listOktaAccounts(responseContext); }); }); } @@ -655,21 +477,12 @@ export class OktaIntegrationApi { * Update an Okta account. * @param param The request object */ - public updateOktaAccount( - param: OktaIntegrationApiUpdateOktaAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateOktaAccount( - param.accountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateOktaAccount(responseContext); + public updateOktaAccount(param: OktaIntegrationApiUpdateOktaAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateOktaAccount(param.accountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateOktaAccount(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.ts b/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.ts index ec54ea8952e0..045a98b60889 100644 --- a/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { OpsgenieServiceCreateRequest } from "../models/OpsgenieServiceCreateRequest"; import { OpsgenieServiceResponse } from "../models/OpsgenieServiceResponse"; @@ -23,31 +21,26 @@ import { OpsgenieServicesResponse } from "../models/OpsgenieServicesResponse"; import { OpsgenieServiceUpdateRequest } from "../models/OpsgenieServiceUpdateRequest"; export class OpsgenieIntegrationApiRequestFactory extends BaseAPIRequestFactory { - public async createOpsgenieService( - body: OpsgenieServiceCreateRequest, - _options?: Configuration - ): Promise { + + public async createOpsgenieService(body: OpsgenieServiceCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createOpsgenieService"); + throw new RequiredError('body', 'createOpsgenieService'); } // Path Params - const localVarPath = "/api/v2/integration/opsgenie/services"; + const localVarPath = '/api/v2/integration/opsgenie/services'; // Make Request Context - const requestContext = _config - .getServer("v2.OpsgenieIntegrationApi.createOpsgenieService") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.OpsgenieIntegrationApi.createOpsgenieService').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OpsgenieServiceCreateRequest", ""), @@ -56,141 +49,99 @@ export class OpsgenieIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteOpsgenieService( - integrationServiceId: string, - _options?: Configuration - ): Promise { + public async deleteOpsgenieService(integrationServiceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'integrationServiceId' is not null or undefined if (integrationServiceId === null || integrationServiceId === undefined) { - throw new RequiredError("integrationServiceId", "deleteOpsgenieService"); + throw new RequiredError('integrationServiceId', 'deleteOpsgenieService'); } // Path Params - const localVarPath = - "/api/v2/integration/opsgenie/services/{integration_service_id}".replace( - "{integration_service_id}", - encodeURIComponent(String(integrationServiceId)) - ); + const localVarPath = '/api/v2/integration/opsgenie/services/{integration_service_id}' + .replace('{integration_service_id}', encodeURIComponent(String(integrationServiceId))); // Make Request Context - const requestContext = _config - .getServer("v2.OpsgenieIntegrationApi.deleteOpsgenieService") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.OpsgenieIntegrationApi.deleteOpsgenieService').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getOpsgenieService( - integrationServiceId: string, - _options?: Configuration - ): Promise { + public async getOpsgenieService(integrationServiceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'integrationServiceId' is not null or undefined if (integrationServiceId === null || integrationServiceId === undefined) { - throw new RequiredError("integrationServiceId", "getOpsgenieService"); + throw new RequiredError('integrationServiceId', 'getOpsgenieService'); } // Path Params - const localVarPath = - "/api/v2/integration/opsgenie/services/{integration_service_id}".replace( - "{integration_service_id}", - encodeURIComponent(String(integrationServiceId)) - ); + const localVarPath = '/api/v2/integration/opsgenie/services/{integration_service_id}' + .replace('{integration_service_id}', encodeURIComponent(String(integrationServiceId))); // Make Request Context - const requestContext = _config - .getServer("v2.OpsgenieIntegrationApi.getOpsgenieService") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.OpsgenieIntegrationApi.getOpsgenieService').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listOpsgenieServices( - _options?: Configuration - ): Promise { + public async listOpsgenieServices(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/integration/opsgenie/services"; + const localVarPath = '/api/v2/integration/opsgenie/services'; // Make Request Context - const requestContext = _config - .getServer("v2.OpsgenieIntegrationApi.listOpsgenieServices") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.OpsgenieIntegrationApi.listOpsgenieServices').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateOpsgenieService( - integrationServiceId: string, - body: OpsgenieServiceUpdateRequest, - _options?: Configuration - ): Promise { + public async updateOpsgenieService(integrationServiceId: string,body: OpsgenieServiceUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'integrationServiceId' is not null or undefined if (integrationServiceId === null || integrationServiceId === undefined) { - throw new RequiredError("integrationServiceId", "updateOpsgenieService"); + throw new RequiredError('integrationServiceId', 'updateOpsgenieService'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateOpsgenieService"); + throw new RequiredError('body', 'updateOpsgenieService'); } // Path Params - const localVarPath = - "/api/v2/integration/opsgenie/services/{integration_service_id}".replace( - "{integration_service_id}", - encodeURIComponent(String(integrationServiceId)) - ); + const localVarPath = '/api/v2/integration/opsgenie/services/{integration_service_id}' + .replace('{integration_service_id}', encodeURIComponent(String(integrationServiceId))); // Make Request Context - const requestContext = _config - .getServer("v2.OpsgenieIntegrationApi.updateOpsgenieService") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.OpsgenieIntegrationApi.updateOpsgenieService').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OpsgenieServiceUpdateRequest", ""), @@ -199,16 +150,14 @@ export class OpsgenieIntegrationApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class OpsgenieIntegrationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -216,12 +165,8 @@ export class OpsgenieIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to createOpsgenieService * @throws ApiException if the response code was not in [200, 299] */ - public async createOpsgenieService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createOpsgenieService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: OpsgenieServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -229,16 +174,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as OpsgenieServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -247,11 +184,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -259,17 +193,13 @@ export class OpsgenieIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OpsgenieServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OpsgenieServiceResponse", - "" + "OpsgenieServiceResponse", "" ) as OpsgenieServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -279,23 +209,13 @@ export class OpsgenieIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to deleteOpsgenieService * @throws ApiException if the response code was not in [200, 299] */ - public async deleteOpsgenieService(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteOpsgenieService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -304,11 +224,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -316,17 +233,13 @@ export class OpsgenieIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -336,12 +249,8 @@ export class OpsgenieIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to getOpsgenieService * @throws ApiException if the response code was not in [200, 299] */ - public async getOpsgenieService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getOpsgenieService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OpsgenieServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -349,17 +258,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as OpsgenieServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -368,11 +268,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -380,17 +277,13 @@ export class OpsgenieIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OpsgenieServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OpsgenieServiceResponse", - "" + "OpsgenieServiceResponse", "" ) as OpsgenieServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -400,12 +293,8 @@ export class OpsgenieIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to listOpsgenieServices * @throws ApiException if the response code was not in [200, 299] */ - public async listOpsgenieServices( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listOpsgenieServices(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OpsgenieServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -413,11 +302,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as OpsgenieServicesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -426,11 +312,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -438,17 +321,13 @@ export class OpsgenieIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OpsgenieServicesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OpsgenieServicesResponse", - "" + "OpsgenieServicesResponse", "" ) as OpsgenieServicesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -458,12 +337,8 @@ export class OpsgenieIntegrationApiResponseProcessor { * @params response Response returned by the server for a request to updateOpsgenieService * @throws ApiException if the response code was not in [200, 299] */ - public async updateOpsgenieService( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateOpsgenieService(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OpsgenieServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -471,17 +346,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as OpsgenieServiceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -490,11 +356,8 @@ export class OpsgenieIntegrationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -502,17 +365,13 @@ export class OpsgenieIntegrationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OpsgenieServiceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OpsgenieServiceResponse", - "" + "OpsgenieServiceResponse", "" ) as OpsgenieServiceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -521,7 +380,7 @@ export interface OpsgenieIntegrationApiCreateOpsgenieServiceRequest { * Opsgenie service payload * @type OpsgenieServiceCreateRequest */ - body: OpsgenieServiceCreateRequest; + body: OpsgenieServiceCreateRequest } export interface OpsgenieIntegrationApiDeleteOpsgenieServiceRequest { @@ -529,7 +388,7 @@ export interface OpsgenieIntegrationApiDeleteOpsgenieServiceRequest { * The UUID of the service. * @type string */ - integrationServiceId: string; + integrationServiceId: string } export interface OpsgenieIntegrationApiGetOpsgenieServiceRequest { @@ -537,7 +396,7 @@ export interface OpsgenieIntegrationApiGetOpsgenieServiceRequest { * The UUID of the service. * @type string */ - integrationServiceId: string; + integrationServiceId: string } export interface OpsgenieIntegrationApiUpdateOpsgenieServiceRequest { @@ -545,12 +404,12 @@ export interface OpsgenieIntegrationApiUpdateOpsgenieServiceRequest { * The UUID of the service. * @type string */ - integrationServiceId: string; + integrationServiceId: string /** * Opsgenie service payload. * @type OpsgenieServiceUpdateRequest */ - body: OpsgenieServiceUpdateRequest; + body: OpsgenieServiceUpdateRequest } export class OpsgenieIntegrationApi { @@ -558,35 +417,21 @@ export class OpsgenieIntegrationApi { private responseProcessor: OpsgenieIntegrationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: OpsgenieIntegrationApiRequestFactory, - responseProcessor?: OpsgenieIntegrationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: OpsgenieIntegrationApiRequestFactory, responseProcessor?: OpsgenieIntegrationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new OpsgenieIntegrationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new OpsgenieIntegrationApiResponseProcessor(); + this.requestFactory = requestFactory || new OpsgenieIntegrationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new OpsgenieIntegrationApiResponseProcessor(); } /** * Create a new service object in the Opsgenie integration. * @param param The request object */ - public createOpsgenieService( - param: OpsgenieIntegrationApiCreateOpsgenieServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createOpsgenieService( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createOpsgenieService(responseContext); + public createOpsgenieService(param: OpsgenieIntegrationApiCreateOpsgenieServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createOpsgenieService(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createOpsgenieService(responseContext); }); }); } @@ -595,19 +440,11 @@ export class OpsgenieIntegrationApi { * Delete a single service object in the Datadog Opsgenie integration. * @param param The request object */ - public deleteOpsgenieService( - param: OpsgenieIntegrationApiDeleteOpsgenieServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteOpsgenieService( - param.integrationServiceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteOpsgenieService(responseContext); + public deleteOpsgenieService(param: OpsgenieIntegrationApiDeleteOpsgenieServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteOpsgenieService(param.integrationServiceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteOpsgenieService(responseContext); }); }); } @@ -616,19 +453,11 @@ export class OpsgenieIntegrationApi { * Get a single service from the Datadog Opsgenie integration. * @param param The request object */ - public getOpsgenieService( - param: OpsgenieIntegrationApiGetOpsgenieServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOpsgenieService( - param.integrationServiceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOpsgenieService(responseContext); + public getOpsgenieService(param: OpsgenieIntegrationApiGetOpsgenieServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getOpsgenieService(param.integrationServiceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getOpsgenieService(responseContext); }); }); } @@ -637,16 +466,11 @@ export class OpsgenieIntegrationApi { * Get a list of all services from the Datadog Opsgenie integration. * @param param The request object */ - public listOpsgenieServices( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listOpsgenieServices(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listOpsgenieServices(responseContext); + public listOpsgenieServices( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listOpsgenieServices(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listOpsgenieServices(responseContext); }); }); } @@ -655,21 +479,12 @@ export class OpsgenieIntegrationApi { * Update a single service object in the Datadog Opsgenie integration. * @param param The request object */ - public updateOpsgenieService( - param: OpsgenieIntegrationApiUpdateOpsgenieServiceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateOpsgenieService( - param.integrationServiceId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateOpsgenieService(responseContext); + public updateOpsgenieService(param: OpsgenieIntegrationApiUpdateOpsgenieServiceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateOpsgenieService(param.integrationServiceId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateOpsgenieService(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/OrganizationsApi.ts b/packages/datadog-api-client-v2/apis/OrganizationsApi.ts index 8d04b6b45506..f2fdf99b88c5 100644 --- a/packages/datadog-api-client-v2/apis/OrganizationsApi.ts +++ b/packages/datadog-api-client-v2/apis/OrganizationsApi.ts @@ -1,17 +1,11 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, - HttpFile, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; import FormData from "form-data"; @@ -19,103 +13,80 @@ import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; +import { IdPMetadataFormData } from "../models/IdPMetadataFormData"; import { OrgConfigGetResponse } from "../models/OrgConfigGetResponse"; import { OrgConfigListResponse } from "../models/OrgConfigListResponse"; import { OrgConfigWriteRequest } from "../models/OrgConfigWriteRequest"; export class OrganizationsApiRequestFactory extends BaseAPIRequestFactory { - public async getOrgConfig( - orgConfigName: string, - _options?: Configuration - ): Promise { + + public async getOrgConfig(orgConfigName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'orgConfigName' is not null or undefined if (orgConfigName === null || orgConfigName === undefined) { - throw new RequiredError("orgConfigName", "getOrgConfig"); + throw new RequiredError('orgConfigName', 'getOrgConfig'); } // Path Params - const localVarPath = "/api/v2/org_configs/{org_config_name}".replace( - "{org_config_name}", - encodeURIComponent(String(orgConfigName)) - ); + const localVarPath = '/api/v2/org_configs/{org_config_name}' + .replace('{org_config_name}', encodeURIComponent(String(orgConfigName))); // Make Request Context - const requestContext = _config - .getServer("v2.OrganizationsApi.getOrgConfig") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.OrganizationsApi.getOrgConfig').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listOrgConfigs( - _options?: Configuration - ): Promise { + public async listOrgConfigs(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/org_configs"; + const localVarPath = '/api/v2/org_configs'; // Make Request Context - const requestContext = _config - .getServer("v2.OrganizationsApi.listOrgConfigs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.OrganizationsApi.listOrgConfigs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateOrgConfig( - orgConfigName: string, - body: OrgConfigWriteRequest, - _options?: Configuration - ): Promise { + public async updateOrgConfig(orgConfigName: string,body: OrgConfigWriteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'orgConfigName' is not null or undefined if (orgConfigName === null || orgConfigName === undefined) { - throw new RequiredError("orgConfigName", "updateOrgConfig"); + throw new RequiredError('orgConfigName', 'updateOrgConfig'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateOrgConfig"); + throw new RequiredError('body', 'updateOrgConfig'); } // Path Params - const localVarPath = "/api/v2/org_configs/{org_config_name}".replace( - "{org_config_name}", - encodeURIComponent(String(orgConfigName)) - ); + const localVarPath = '/api/v2/org_configs/{org_config_name}' + .replace('{org_config_name}', encodeURIComponent(String(orgConfigName))); // Make Request Context - const requestContext = _config - .getServer("v2.OrganizationsApi.updateOrgConfig") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.OrganizationsApi.updateOrgConfig').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OrgConfigWriteRequest", ""), @@ -124,49 +95,39 @@ export class OrganizationsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async uploadIdPMetadata( - idpFile?: HttpFile, - _options?: Configuration - ): Promise { + public async uploadIdPMetadata(idpFile?: HttpFile,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/saml_configurations/idp_metadata"; + const localVarPath = '/api/v2/saml_configurations/idp_metadata'; // Make Request Context - const requestContext = _config - .getServer("v2.OrganizationsApi.uploadIdPMetadata") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.OrganizationsApi.uploadIdPMetadata').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Form Params const localVarFormParams = new FormData(); if (idpFile !== undefined) { - // TODO: replace .append with .set - localVarFormParams.append("idp_file", idpFile.data, idpFile.name); + // TODO: replace .append with .set + localVarFormParams.append('idp_file', idpFile.data, idpFile.name); } requestContext.setBody(localVarFormParams); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class OrganizationsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -174,12 +135,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to getOrgConfig * @throws ApiException if the response code was not in [200, 299] */ - public async getOrgConfig( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getOrgConfig(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrgConfigGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -187,17 +144,8 @@ export class OrganizationsApiResponseProcessor { ) as OrgConfigGetResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -206,11 +154,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -218,17 +163,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrgConfigGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrgConfigGetResponse", - "" + "OrgConfigGetResponse", "" ) as OrgConfigGetResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -238,12 +179,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to listOrgConfigs * @throws ApiException if the response code was not in [200, 299] */ - public async listOrgConfigs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listOrgConfigs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrgConfigListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -251,16 +188,8 @@ export class OrganizationsApiResponseProcessor { ) as OrgConfigListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -269,11 +198,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -281,17 +207,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrgConfigListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrgConfigListResponse", - "" + "OrgConfigListResponse", "" ) as OrgConfigListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -301,12 +223,8 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to updateOrgConfig * @throws ApiException if the response code was not in [200, 299] */ - public async updateOrgConfig( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateOrgConfig(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OrgConfigGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -314,17 +232,8 @@ export class OrganizationsApiResponseProcessor { ) as OrgConfigGetResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -333,11 +242,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -345,17 +251,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OrgConfigGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OrgConfigGetResponse", - "" + "OrgConfigGetResponse", "" ) as OrgConfigGetResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -365,22 +267,13 @@ export class OrganizationsApiResponseProcessor { * @params response Response returned by the server for a request to uploadIdPMetadata * @throws ApiException if the response code was not in [200, 299] */ - public async uploadIdPMetadata(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async uploadIdPMetadata(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -389,11 +282,8 @@ export class OrganizationsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -401,17 +291,13 @@ export class OrganizationsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -420,7 +306,7 @@ export interface OrganizationsApiGetOrgConfigRequest { * The name of an Org Config. * @type string */ - orgConfigName: string; + orgConfigName: string } export interface OrganizationsApiUpdateOrgConfigRequest { @@ -428,11 +314,11 @@ export interface OrganizationsApiUpdateOrgConfigRequest { * The name of an Org Config. * @type string */ - orgConfigName: string; + orgConfigName: string /** * @type OrgConfigWriteRequest */ - body: OrgConfigWriteRequest; + body: OrgConfigWriteRequest } export interface OrganizationsApiUploadIdPMetadataRequest { @@ -440,7 +326,7 @@ export interface OrganizationsApiUploadIdPMetadataRequest { * The IdP metadata XML file * @type HttpFile */ - idpFile?: HttpFile; + idpFile?: HttpFile } export class OrganizationsApi { @@ -448,35 +334,21 @@ export class OrganizationsApi { private responseProcessor: OrganizationsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: OrganizationsApiRequestFactory, - responseProcessor?: OrganizationsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: OrganizationsApiRequestFactory, responseProcessor?: OrganizationsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new OrganizationsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new OrganizationsApiResponseProcessor(); + this.requestFactory = requestFactory || new OrganizationsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new OrganizationsApiResponseProcessor(); } /** * Return the name, description, and value of a specific Org Config. * @param param The request object */ - public getOrgConfig( - param: OrganizationsApiGetOrgConfigRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOrgConfig( - param.orgConfigName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOrgConfig(responseContext); + public getOrgConfig(param: OrganizationsApiGetOrgConfigRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getOrgConfig(param.orgConfigName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getOrgConfig(responseContext); }); }); } @@ -485,15 +357,11 @@ export class OrganizationsApi { * Returns all Org Configs (name, description, and value). * @param param The request object */ - public listOrgConfigs( - options?: Configuration - ): Promise { + public listOrgConfigs( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listOrgConfigs(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listOrgConfigs(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listOrgConfigs(responseContext); }); }); } @@ -502,44 +370,27 @@ export class OrganizationsApi { * Update the value of a specific Org Config. * @param param The request object */ - public updateOrgConfig( - param: OrganizationsApiUpdateOrgConfigRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateOrgConfig( - param.orgConfigName, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateOrgConfig(responseContext); + public updateOrgConfig(param: OrganizationsApiUpdateOrgConfigRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateOrgConfig(param.orgConfigName,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateOrgConfig(responseContext); }); }); } /** * Endpoint for uploading IdP metadata for SAML setup. - * + * * Use this endpoint to upload or replace IdP metadata for SAML login configuration. * @param param The request object */ - public uploadIdPMetadata( - param: OrganizationsApiUploadIdPMetadataRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.uploadIdPMetadata( - param.idpFile, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.uploadIdPMetadata(responseContext); + public uploadIdPMetadata(param: OrganizationsApiUploadIdPMetadataRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.uploadIdPMetadata(param.idpFile,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.uploadIdPMetadata(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/PowerpackApi.ts b/packages/datadog-api-client-v2/apis/PowerpackApi.ts index fa2873e9cdf2..51baf35147d1 100644 --- a/packages/datadog-api-client-v2/apis/PowerpackApi.ts +++ b/packages/datadog-api-client-v2/apis/PowerpackApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ListPowerpacksResponse } from "../models/ListPowerpacksResponse"; import { Powerpack } from "../models/Powerpack"; @@ -23,31 +21,26 @@ import { PowerpackData } from "../models/PowerpackData"; import { PowerpackResponse } from "../models/PowerpackResponse"; export class PowerpackApiRequestFactory extends BaseAPIRequestFactory { - public async createPowerpack( - body: Powerpack, - _options?: Configuration - ): Promise { + + public async createPowerpack(body: Powerpack,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createPowerpack"); + throw new RequiredError('body', 'createPowerpack'); } // Path Params - const localVarPath = "/api/v2/powerpacks"; + const localVarPath = '/api/v2/powerpacks'; // Make Request Context - const requestContext = _config - .getServer("v2.PowerpackApi.createPowerpack") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.PowerpackApi.createPowerpack').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Powerpack", ""), @@ -56,160 +49,107 @@ export class PowerpackApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deletePowerpack( - powerpackId: string, - _options?: Configuration - ): Promise { + public async deletePowerpack(powerpackId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'powerpackId' is not null or undefined if (powerpackId === null || powerpackId === undefined) { - throw new RequiredError("powerpackId", "deletePowerpack"); + throw new RequiredError('powerpackId', 'deletePowerpack'); } // Path Params - const localVarPath = "/api/v2/powerpacks/{powerpack_id}".replace( - "{powerpack_id}", - encodeURIComponent(String(powerpackId)) - ); + const localVarPath = '/api/v2/powerpacks/{powerpack_id}' + .replace('{powerpack_id}', encodeURIComponent(String(powerpackId))); // Make Request Context - const requestContext = _config - .getServer("v2.PowerpackApi.deletePowerpack") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.PowerpackApi.deletePowerpack').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getPowerpack( - powerpackId: string, - _options?: Configuration - ): Promise { + public async getPowerpack(powerpackId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'powerpackId' is not null or undefined if (powerpackId === null || powerpackId === undefined) { - throw new RequiredError("powerpackId", "getPowerpack"); + throw new RequiredError('powerpackId', 'getPowerpack'); } // Path Params - const localVarPath = "/api/v2/powerpacks/{powerpack_id}".replace( - "{powerpack_id}", - encodeURIComponent(String(powerpackId)) - ); + const localVarPath = '/api/v2/powerpacks/{powerpack_id}' + .replace('{powerpack_id}', encodeURIComponent(String(powerpackId))); // Make Request Context - const requestContext = _config - .getServer("v2.PowerpackApi.getPowerpack") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.PowerpackApi.getPowerpack').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listPowerpacks( - pageLimit?: number, - pageOffset?: number, - _options?: Configuration - ): Promise { + public async listPowerpacks(pageLimit?: number,pageOffset?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/powerpacks"; + const localVarPath = '/api/v2/powerpacks'; // Make Request Context - const requestContext = _config - .getServer("v2.PowerpackApi.listPowerpacks") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.PowerpackApi.listPowerpacks').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updatePowerpack( - powerpackId: string, - body: Powerpack, - _options?: Configuration - ): Promise { + public async updatePowerpack(powerpackId: string,body: Powerpack,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'powerpackId' is not null or undefined if (powerpackId === null || powerpackId === undefined) { - throw new RequiredError("powerpackId", "updatePowerpack"); + throw new RequiredError('powerpackId', 'updatePowerpack'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updatePowerpack"); + throw new RequiredError('body', 'updatePowerpack'); } // Path Params - const localVarPath = "/api/v2/powerpacks/{powerpack_id}".replace( - "{powerpack_id}", - encodeURIComponent(String(powerpackId)) - ); + const localVarPath = '/api/v2/powerpacks/{powerpack_id}' + .replace('{powerpack_id}', encodeURIComponent(String(powerpackId))); // Make Request Context - const requestContext = _config - .getServer("v2.PowerpackApi.updatePowerpack") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.PowerpackApi.updatePowerpack').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "Powerpack", ""), @@ -218,17 +158,14 @@ export class PowerpackApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class PowerpackApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -236,12 +173,8 @@ export class PowerpackApiResponseProcessor { * @params response Response returned by the server for a request to createPowerpack * @throws ApiException if the response code was not in [200, 299] */ - public async createPowerpack( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createPowerpack(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PowerpackResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -249,11 +182,8 @@ export class PowerpackApiResponseProcessor { ) as PowerpackResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -262,11 +192,8 @@ export class PowerpackApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -274,17 +201,13 @@ export class PowerpackApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PowerpackResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PowerpackResponse", - "" + "PowerpackResponse", "" ) as PowerpackResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -294,18 +217,13 @@ export class PowerpackApiResponseProcessor { * @params response Response returned by the server for a request to deletePowerpack * @throws ApiException if the response code was not in [200, 299] */ - public async deletePowerpack(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deletePowerpack(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -314,11 +232,8 @@ export class PowerpackApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -326,17 +241,13 @@ export class PowerpackApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -346,12 +257,8 @@ export class PowerpackApiResponseProcessor { * @params response Response returned by the server for a request to getPowerpack * @throws ApiException if the response code was not in [200, 299] */ - public async getPowerpack( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getPowerpack(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PowerpackResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -359,11 +266,8 @@ export class PowerpackApiResponseProcessor { ) as PowerpackResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -372,11 +276,8 @@ export class PowerpackApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -384,17 +285,13 @@ export class PowerpackApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PowerpackResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PowerpackResponse", - "" + "PowerpackResponse", "" ) as PowerpackResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -404,12 +301,8 @@ export class PowerpackApiResponseProcessor { * @params response Response returned by the server for a request to listPowerpacks * @throws ApiException if the response code was not in [200, 299] */ - public async listPowerpacks( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listPowerpacks(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListPowerpacksResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -418,10 +311,7 @@ export class PowerpackApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -430,11 +320,8 @@ export class PowerpackApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -442,17 +329,13 @@ export class PowerpackApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListPowerpacksResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListPowerpacksResponse", - "" + "ListPowerpacksResponse", "" ) as ListPowerpacksResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -462,12 +345,8 @@ export class PowerpackApiResponseProcessor { * @params response Response returned by the server for a request to updatePowerpack * @throws ApiException if the response code was not in [200, 299] */ - public async updatePowerpack( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updatePowerpack(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PowerpackResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -475,15 +354,8 @@ export class PowerpackApiResponseProcessor { ) as PowerpackResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -492,11 +364,8 @@ export class PowerpackApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -504,17 +373,13 @@ export class PowerpackApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PowerpackResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PowerpackResponse", - "" + "PowerpackResponse", "" ) as PowerpackResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -523,7 +388,7 @@ export interface PowerpackApiCreatePowerpackRequest { * Create a powerpack request body. * @type Powerpack */ - body: Powerpack; + body: Powerpack } export interface PowerpackApiDeletePowerpackRequest { @@ -531,7 +396,7 @@ export interface PowerpackApiDeletePowerpackRequest { * Powerpack id * @type string */ - powerpackId: string; + powerpackId: string } export interface PowerpackApiGetPowerpackRequest { @@ -539,7 +404,7 @@ export interface PowerpackApiGetPowerpackRequest { * ID of the powerpack. * @type string */ - powerpackId: string; + powerpackId: string } export interface PowerpackApiListPowerpacksRequest { @@ -547,12 +412,12 @@ export interface PowerpackApiListPowerpacksRequest { * Maximum number of powerpacks in the response. * @type number */ - pageLimit?: number; + pageLimit?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number } export interface PowerpackApiUpdatePowerpackRequest { @@ -560,12 +425,12 @@ export interface PowerpackApiUpdatePowerpackRequest { * ID of the powerpack. * @type string */ - powerpackId: string; + powerpackId: string /** * Update a powerpack request body. * @type Powerpack */ - body: Powerpack; + body: Powerpack } export class PowerpackApi { @@ -573,35 +438,21 @@ export class PowerpackApi { private responseProcessor: PowerpackApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: PowerpackApiRequestFactory, - responseProcessor?: PowerpackApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: PowerpackApiRequestFactory, responseProcessor?: PowerpackApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new PowerpackApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new PowerpackApiResponseProcessor(); + this.requestFactory = requestFactory || new PowerpackApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new PowerpackApiResponseProcessor(); } /** * Create a powerpack. * @param param The request object */ - public createPowerpack( - param: PowerpackApiCreatePowerpackRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createPowerpack( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createPowerpack(responseContext); + public createPowerpack(param: PowerpackApiCreatePowerpackRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createPowerpack(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createPowerpack(responseContext); }); }); } @@ -610,19 +461,11 @@ export class PowerpackApi { * Delete a powerpack. * @param param The request object */ - public deletePowerpack( - param: PowerpackApiDeletePowerpackRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deletePowerpack( - param.powerpackId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deletePowerpack(responseContext); + public deletePowerpack(param: PowerpackApiDeletePowerpackRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deletePowerpack(param.powerpackId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deletePowerpack(responseContext); }); }); } @@ -631,19 +474,11 @@ export class PowerpackApi { * Get a powerpack. * @param param The request object */ - public getPowerpack( - param: PowerpackApiGetPowerpackRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getPowerpack( - param.powerpackId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getPowerpack(responseContext); + public getPowerpack(param: PowerpackApiGetPowerpackRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getPowerpack(param.powerpackId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getPowerpack(responseContext); }); }); } @@ -652,20 +487,11 @@ export class PowerpackApi { * Get a list of all powerpacks. * @param param The request object */ - public listPowerpacks( - param: PowerpackApiListPowerpacksRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listPowerpacks( - param.pageLimit, - param.pageOffset, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listPowerpacks(responseContext); + public listPowerpacks(param: PowerpackApiListPowerpacksRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listPowerpacks(param.pageLimit,param.pageOffset,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listPowerpacks(responseContext); }); }); } @@ -673,28 +499,18 @@ export class PowerpackApi { /** * Provide a paginated version of listPowerpacks returning a generator with all the items. */ - public async *listPowerpacksWithPagination( - param: PowerpackApiListPowerpacksRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listPowerpacksWithPagination(param: PowerpackApiListPowerpacksRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 25; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listPowerpacks( - param.pageLimit, - param.pageOffset, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listPowerpacks( - responseContext - ); + const requestContext = await this.requestFactory.listPowerpacks(param.pageLimit,param.pageOffset,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listPowerpacks(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -718,21 +534,12 @@ export class PowerpackApi { * Update a powerpack. * @param param The request object */ - public updatePowerpack( - param: PowerpackApiUpdatePowerpackRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updatePowerpack( - param.powerpackId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updatePowerpack(responseContext); + public updatePowerpack(param: PowerpackApiUpdatePowerpackRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updatePowerpack(param.powerpackId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updatePowerpack(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ProcessesApi.ts b/packages/datadog-api-client-v2/apis/ProcessesApi.ts index 3065f6e75443..42c73d5e1b7f 100644 --- a/packages/datadog-api-client-v2/apis/ProcessesApi.ts +++ b/packages/datadog-api-client-v2/apis/ProcessesApi.ts @@ -1,100 +1,65 @@ -import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ProcessSummariesResponse } from "../models/ProcessSummariesResponse"; import { ProcessSummary } from "../models/ProcessSummary"; export class ProcessesApiRequestFactory extends BaseAPIRequestFactory { - public async listProcesses( - search?: string, - tags?: string, - from?: number, - to?: number, - pageLimit?: number, - pageCursor?: string, - _options?: Configuration - ): Promise { + + public async listProcesses(search?: string,tags?: string,from?: number,to?: number,pageLimit?: number,pageCursor?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/processes"; + const localVarPath = '/api/v2/processes'; // Make Request Context - const requestContext = _config - .getServer("v2.ProcessesApi.listProcesses") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ProcessesApi.listProcesses').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (search !== undefined) { - requestContext.setQueryParam( - "search", - ObjectSerializer.serialize(search, "string", ""), - "" - ); + requestContext.setQueryParam("search", ObjectSerializer.serialize(search, "string", ""), ""); } if (tags !== undefined) { - requestContext.setQueryParam( - "tags", - ObjectSerializer.serialize(tags, "string", ""), - "" - ); + requestContext.setQueryParam("tags", ObjectSerializer.serialize(tags, "string", ""), ""); } if (from !== undefined) { - requestContext.setQueryParam( - "from", - ObjectSerializer.serialize(from, "number", "int64"), - "" - ); + requestContext.setQueryParam("from", ObjectSerializer.serialize(from, "number", "int64"), ""); } if (to !== undefined) { - requestContext.setQueryParam( - "to", - ObjectSerializer.serialize(to, "number", "int64"), - "" - ); + requestContext.setQueryParam("to", ObjectSerializer.serialize(to, "number", "int64"), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ProcessesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -102,12 +67,8 @@ export class ProcessesApiResponseProcessor { * @params response Response returned by the server for a request to listProcesses * @throws ApiException if the response code was not in [200, 299] */ - public async listProcesses( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listProcesses(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ProcessSummariesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -115,15 +76,8 @@ export class ProcessesApiResponseProcessor { ) as ProcessSummariesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -132,11 +86,8 @@ export class ProcessesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -144,17 +95,13 @@ export class ProcessesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ProcessSummariesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProcessSummariesResponse", - "" + "ProcessSummariesResponse", "" ) as ProcessSummariesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -163,37 +110,37 @@ export interface ProcessesApiListProcessesRequest { * String to search processes by. * @type string */ - search?: string; + search?: string /** * Comma-separated list of tags to filter processes by. * @type string */ - tags?: string; + tags?: string /** * Unix timestamp (number of seconds since epoch) of the start of the query window. * If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither * `from` nor `to` are provided, the query window will be `[now - 15m, now]`. * @type number */ - from?: number; + from?: number /** * Unix timestamp (number of seconds since epoch) of the end of the query window. * If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither * `from` nor `to` are provided, the query window will be `[now - 15m, now]`. * @type number */ - to?: number; + to?: number /** * Maximum number of results returned. * @type number */ - pageLimit?: number; + pageLimit?: number /** * String to query the next page of results. * This key is provided with each valid response from the API in `meta.page.after`. * @type string */ - pageCursor?: string; + pageCursor?: string } export class ProcessesApi { @@ -201,40 +148,21 @@ export class ProcessesApi { private responseProcessor: ProcessesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ProcessesApiRequestFactory, - responseProcessor?: ProcessesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ProcessesApiRequestFactory, responseProcessor?: ProcessesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ProcessesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ProcessesApiResponseProcessor(); + this.requestFactory = requestFactory || new ProcessesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ProcessesApiResponseProcessor(); } /** * Get all processes for your organization. * @param param The request object */ - public listProcesses( - param: ProcessesApiListProcessesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listProcesses( - param.search, - param.tags, - param.from, - param.to, - param.pageLimit, - param.pageCursor, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listProcesses(responseContext); + public listProcesses(param: ProcessesApiListProcessesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listProcesses(param.search,param.tags,param.from,param.to,param.pageLimit,param.pageCursor,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listProcesses(responseContext); }); }); } @@ -242,32 +170,18 @@ export class ProcessesApi { /** * Provide a paginated version of listProcesses returning a generator with all the items. */ - public async *listProcessesWithPagination( - param: ProcessesApiListProcessesRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listProcessesWithPagination(param: ProcessesApiListProcessesRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 1000; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listProcesses( - param.search, - param.tags, - param.from, - param.to, - param.pageLimit, - param.pageCursor, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listProcesses(param.search,param.tags,param.from,param.to,param.pageLimit,param.pageCursor,options); + const responseContext = await this.configuration.httpApi.send(requestContext); - const response = await this.responseProcessor.listProcesses( - responseContext - ); + const response = await this.responseProcessor.listProcesses(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -295,4 +209,4 @@ export class ProcessesApi { param.pageCursor = cursorMetaPageAfter; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/RUMApi.ts b/packages/datadog-api-client-v2/apis/RUMApi.ts index db3d8a77eb1c..1bec5327c0ae 100644 --- a/packages/datadog-api-client-v2/apis/RUMApi.ts +++ b/packages/datadog-api-client-v2/apis/RUMApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { RUMAggregateRequest } from "../models/RUMAggregateRequest"; import { RUMAnalyticsAggregateResponse } from "../models/RUMAnalyticsAggregateResponse"; @@ -30,31 +28,26 @@ import { RUMSearchEventsRequest } from "../models/RUMSearchEventsRequest"; import { RUMSort } from "../models/RUMSort"; export class RUMApiRequestFactory extends BaseAPIRequestFactory { - public async aggregateRUMEvents( - body: RUMAggregateRequest, - _options?: Configuration - ): Promise { + + public async aggregateRUMEvents(body: RUMAggregateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "aggregateRUMEvents"); + throw new RequiredError('body', 'aggregateRUMEvents'); } // Path Params - const localVarPath = "/api/v2/rum/analytics/aggregate"; + const localVarPath = '/api/v2/rum/analytics/aggregate'; // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.aggregateRUMEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RUMApi.aggregateRUMEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RUMAggregateRequest", ""), @@ -63,40 +56,30 @@ export class RUMApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createRUMApplication( - body: RUMApplicationCreateRequest, - _options?: Configuration - ): Promise { + public async createRUMApplication(body: RUMApplicationCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createRUMApplication"); + throw new RequiredError('body', 'createRUMApplication'); } // Path Params - const localVarPath = "/api/v2/rum/applications"; + const localVarPath = '/api/v2/rum/applications'; // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.createRUMApplication") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RUMApi.createRUMApplication').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RUMApplicationCreateRequest", ""), @@ -105,204 +88,130 @@ export class RUMApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteRUMApplication( - id: string, - _options?: Configuration - ): Promise { + public async deleteRUMApplication(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "deleteRUMApplication"); + throw new RequiredError('id', 'deleteRUMApplication'); } // Path Params - const localVarPath = "/api/v2/rum/applications/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/rum/applications/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.deleteRUMApplication") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RUMApi.deleteRUMApplication').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRUMApplication( - id: string, - _options?: Configuration - ): Promise { + public async getRUMApplication(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "getRUMApplication"); + throw new RequiredError('id', 'getRUMApplication'); } // Path Params - const localVarPath = "/api/v2/rum/applications/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/rum/applications/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.getRUMApplication") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RUMApi.getRUMApplication').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRUMApplications( - _options?: Configuration - ): Promise { + public async getRUMApplications(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/rum/applications"; + const localVarPath = '/api/v2/rum/applications'; // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.getRUMApplications") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RUMApi.getRUMApplications').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listRUMEvents( - filterQuery?: string, - filterFrom?: Date, - filterTo?: Date, - sort?: RUMSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listRUMEvents(filterQuery?: string,filterFrom?: Date,filterTo?: Date,sort?: RUMSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/rum/events"; + const localVarPath = '/api/v2/rum/events'; // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.listRUMEvents") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RUMApi.listRUMEvents').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "RUMSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "RUMSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchRUMEvents( - body: RUMSearchEventsRequest, - _options?: Configuration - ): Promise { + public async searchRUMEvents(body: RUMSearchEventsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "searchRUMEvents"); + throw new RequiredError('body', 'searchRUMEvents'); } // Path Params - const localVarPath = "/api/v2/rum/events/search"; + const localVarPath = '/api/v2/rum/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.searchRUMEvents") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RUMApi.searchRUMEvents').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RUMSearchEventsRequest", ""), @@ -311,49 +220,36 @@ export class RUMApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateRUMApplication( - id: string, - body: RUMApplicationUpdateRequest, - _options?: Configuration - ): Promise { + public async updateRUMApplication(id: string,body: RUMApplicationUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "updateRUMApplication"); + throw new RequiredError('id', 'updateRUMApplication'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateRUMApplication"); + throw new RequiredError('body', 'updateRUMApplication'); } // Path Params - const localVarPath = "/api/v2/rum/applications/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/rum/applications/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.RUMApi.updateRUMApplication") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.RUMApi.updateRUMApplication').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RUMApplicationUpdateRequest", ""), @@ -362,16 +258,14 @@ export class RUMApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class RUMApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -379,12 +273,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to aggregateRUMEvents * @throws ApiException if the response code was not in [200, 299] */ - public async aggregateRUMEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async aggregateRUMEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMAnalyticsAggregateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -392,15 +282,8 @@ export class RUMApiResponseProcessor { ) as RUMAnalyticsAggregateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -409,11 +292,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -421,17 +301,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMAnalyticsAggregateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMAnalyticsAggregateResponse", - "" + "RUMAnalyticsAggregateResponse", "" ) as RUMAnalyticsAggregateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -441,12 +317,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to createRUMApplication * @throws ApiException if the response code was not in [200, 299] */ - public async createRUMApplication( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createRUMApplication(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMApplicationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -454,11 +326,8 @@ export class RUMApiResponseProcessor { ) as RUMApplicationResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -467,11 +336,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -479,17 +345,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMApplicationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMApplicationResponse", - "" + "RUMApplicationResponse", "" ) as RUMApplicationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -499,18 +361,13 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to deleteRUMApplication * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRUMApplication(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteRUMApplication(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -519,11 +376,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -531,17 +385,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -551,12 +401,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to getRUMApplication * @throws ApiException if the response code was not in [200, 299] */ - public async getRUMApplication( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRUMApplication(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMApplicationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -564,11 +410,8 @@ export class RUMApiResponseProcessor { ) as RUMApplicationResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -577,11 +420,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -589,17 +429,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMApplicationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMApplicationResponse", - "" + "RUMApplicationResponse", "" ) as RUMApplicationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -609,12 +445,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to getRUMApplications * @throws ApiException if the response code was not in [200, 299] */ - public async getRUMApplications( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRUMApplications(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMApplicationsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -622,11 +454,8 @@ export class RUMApiResponseProcessor { ) as RUMApplicationsResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -635,11 +464,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -647,17 +473,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMApplicationsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMApplicationsResponse", - "" + "RUMApplicationsResponse", "" ) as RUMApplicationsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -667,12 +489,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to listRUMEvents * @throws ApiException if the response code was not in [200, 299] */ - public async listRUMEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listRUMEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -680,15 +498,8 @@ export class RUMApiResponseProcessor { ) as RUMEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -697,11 +508,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -709,17 +517,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMEventsResponse", - "" + "RUMEventsResponse", "" ) as RUMEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -729,12 +533,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to searchRUMEvents * @throws ApiException if the response code was not in [200, 299] */ - public async searchRUMEvents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchRUMEvents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -742,15 +542,8 @@ export class RUMApiResponseProcessor { ) as RUMEventsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -759,11 +552,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -771,17 +561,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMEventsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMEventsResponse", - "" + "RUMEventsResponse", "" ) as RUMEventsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -791,12 +577,8 @@ export class RUMApiResponseProcessor { * @params response Response returned by the server for a request to updateRUMApplication * @throws ApiException if the response code was not in [200, 299] */ - public async updateRUMApplication( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateRUMApplication(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RUMApplicationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -804,16 +586,8 @@ export class RUMApiResponseProcessor { ) as RUMApplicationResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 404||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -822,11 +596,8 @@ export class RUMApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -834,17 +605,13 @@ export class RUMApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RUMApplicationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RUMApplicationResponse", - "" + "RUMApplicationResponse", "" ) as RUMApplicationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -852,14 +619,14 @@ export interface RUMApiAggregateRUMEventsRequest { /** * @type RUMAggregateRequest */ - body: RUMAggregateRequest; + body: RUMAggregateRequest } export interface RUMApiCreateRUMApplicationRequest { /** * @type RUMApplicationCreateRequest */ - body: RUMApplicationCreateRequest; + body: RUMApplicationCreateRequest } export interface RUMApiDeleteRUMApplicationRequest { @@ -867,7 +634,7 @@ export interface RUMApiDeleteRUMApplicationRequest { * RUM application ID. * @type string */ - id: string; + id: string } export interface RUMApiGetRUMApplicationRequest { @@ -875,7 +642,7 @@ export interface RUMApiGetRUMApplicationRequest { * RUM application ID. * @type string */ - id: string; + id: string } export interface RUMApiListRUMEventsRequest { @@ -883,39 +650,39 @@ export interface RUMApiListRUMEventsRequest { * Search query following RUM syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Minimum timestamp for requested events. * @type Date */ - filterFrom?: Date; + filterFrom?: Date /** * Maximum timestamp for requested events. * @type Date */ - filterTo?: Date; + filterTo?: Date /** * Order of events in results. * @type RUMSort */ - sort?: RUMSort; + sort?: RUMSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of events in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface RUMApiSearchRUMEventsRequest { /** * @type RUMSearchEventsRequest */ - body: RUMSearchEventsRequest; + body: RUMSearchEventsRequest } export interface RUMApiUpdateRUMApplicationRequest { @@ -923,11 +690,11 @@ export interface RUMApiUpdateRUMApplicationRequest { * RUM application ID. * @type string */ - id: string; + id: string /** * @type RUMApplicationUpdateRequest */ - body: RUMApplicationUpdateRequest; + body: RUMApplicationUpdateRequest } export class RUMApi { @@ -935,14 +702,9 @@ export class RUMApi { private responseProcessor: RUMApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: RUMApiRequestFactory, - responseProcessor?: RUMApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: RUMApiRequestFactory, responseProcessor?: RUMApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new RUMApiRequestFactory(configuration); + this.requestFactory = requestFactory || new RUMApiRequestFactory(configuration); this.responseProcessor = responseProcessor || new RUMApiResponseProcessor(); } @@ -950,19 +712,11 @@ export class RUMApi { * The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries. * @param param The request object */ - public aggregateRUMEvents( - param: RUMApiAggregateRUMEventsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.aggregateRUMEvents( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.aggregateRUMEvents(responseContext); + public aggregateRUMEvents(param: RUMApiAggregateRUMEventsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.aggregateRUMEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.aggregateRUMEvents(responseContext); }); }); } @@ -971,19 +725,11 @@ export class RUMApi { * Create a new RUM application in your organization. * @param param The request object */ - public createRUMApplication( - param: RUMApiCreateRUMApplicationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createRUMApplication( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createRUMApplication(responseContext); + public createRUMApplication(param: RUMApiCreateRUMApplicationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createRUMApplication(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createRUMApplication(responseContext); }); }); } @@ -992,19 +738,11 @@ export class RUMApi { * Delete an existing RUM application in your organization. * @param param The request object */ - public deleteRUMApplication( - param: RUMApiDeleteRUMApplicationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteRUMApplication( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteRUMApplication(responseContext); + public deleteRUMApplication(param: RUMApiDeleteRUMApplicationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteRUMApplication(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteRUMApplication(responseContext); }); }); } @@ -1013,19 +751,11 @@ export class RUMApi { * Get the RUM application with given ID in your organization. * @param param The request object */ - public getRUMApplication( - param: RUMApiGetRUMApplicationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getRUMApplication( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRUMApplication(responseContext); + public getRUMApplication(param: RUMApiGetRUMApplicationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRUMApplication(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRUMApplication(responseContext); }); }); } @@ -1034,16 +764,11 @@ export class RUMApi { * List all the RUM applications in your organization. * @param param The request object */ - public getRUMApplications( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getRUMApplications(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRUMApplications(responseContext); + public getRUMApplications( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRUMApplications(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRUMApplications(responseContext); }); }); } @@ -1051,30 +776,17 @@ export class RUMApi { /** * List endpoint returns events that match a RUM search query. * [Results are paginated][1]. - * + * * Use this endpoint to see your latest RUM events. - * + * * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination * @param param The request object */ - public listRUMEvents( - param: RUMApiListRUMEventsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listRUMEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listRUMEvents(responseContext); + public listRUMEvents(param: RUMApiListRUMEventsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listRUMEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listRUMEvents(responseContext); }); }); } @@ -1082,32 +794,18 @@ export class RUMApi { /** * Provide a paginated version of listRUMEvents returning a generator with all the items. */ - public async *listRUMEventsWithPagination( - param: RUMApiListRUMEventsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listRUMEventsWithPagination(param: RUMApiListRUMEventsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listRUMEvents( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listRUMEvents( - responseContext - ); + const requestContext = await this.requestFactory.listRUMEvents(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listRUMEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -1139,25 +837,17 @@ export class RUMApi { /** * List endpoint returns RUM events that match a RUM search query. * [Results are paginated][1]. - * + * * Use this endpoint to build complex RUM events filtering and search. - * + * * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination * @param param The request object */ - public searchRUMEvents( - param: RUMApiSearchRUMEventsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.searchRUMEvents( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchRUMEvents(responseContext); + public searchRUMEvents(param: RUMApiSearchRUMEventsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchRUMEvents(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchRUMEvents(responseContext); }); }); } @@ -1165,12 +855,10 @@ export class RUMApi { /** * Provide a paginated version of searchRUMEvents returning a generator with all the items. */ - public async *searchRUMEventsWithPagination( - param: RUMApiSearchRUMEventsRequest, - options?: Configuration - ): AsyncGenerator { + public async *searchRUMEventsWithPagination(param: RUMApiSearchRUMEventsRequest, options?: Configuration): AsyncGenerator { + let pageSize = 10; - if (param.body.page === undefined) { + if (param.body.page === undefined ) { param.body.page = new RUMQueryPageOptions(); } if (param.body.page.limit === undefined) { @@ -1179,17 +867,10 @@ export class RUMApi { pageSize = param.body.page.limit; } while (true) { - const requestContext = await this.requestFactory.searchRUMEvents( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.searchRUMEvents( - responseContext - ); + const requestContext = await this.requestFactory.searchRUMEvents(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchRUMEvents(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -1222,21 +903,12 @@ export class RUMApi { * Update the RUM application with given ID in your organization. * @param param The request object */ - public updateRUMApplication( - param: RUMApiUpdateRUMApplicationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateRUMApplication( - param.id, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateRUMApplication(responseContext); + public updateRUMApplication(param: RUMApiUpdateRUMApplicationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateRUMApplication(param.id,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateRUMApplication(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts b/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts index be4120d85485..580d3f7b4f2f 100644 --- a/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts +++ b/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts @@ -1,138 +1,101 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { RestrictionPolicyResponse } from "../models/RestrictionPolicyResponse"; import { RestrictionPolicyUpdateRequest } from "../models/RestrictionPolicyUpdateRequest"; export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory { - public async deleteRestrictionPolicy( - resourceId: string, - _options?: Configuration - ): Promise { + + public async deleteRestrictionPolicy(resourceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'resourceId' is not null or undefined if (resourceId === null || resourceId === undefined) { - throw new RequiredError("resourceId", "deleteRestrictionPolicy"); + throw new RequiredError('resourceId', 'deleteRestrictionPolicy'); } // Path Params - const localVarPath = "/api/v2/restriction_policy/{resource_id}".replace( - "{resource_id}", - encodeURIComponent(String(resourceId)) - ); + const localVarPath = '/api/v2/restriction_policy/{resource_id}' + .replace('{resource_id}', encodeURIComponent(String(resourceId))); // Make Request Context - const requestContext = _config - .getServer("v2.RestrictionPoliciesApi.deleteRestrictionPolicy") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RestrictionPoliciesApi.deleteRestrictionPolicy').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRestrictionPolicy( - resourceId: string, - _options?: Configuration - ): Promise { + public async getRestrictionPolicy(resourceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'resourceId' is not null or undefined if (resourceId === null || resourceId === undefined) { - throw new RequiredError("resourceId", "getRestrictionPolicy"); + throw new RequiredError('resourceId', 'getRestrictionPolicy'); } // Path Params - const localVarPath = "/api/v2/restriction_policy/{resource_id}".replace( - "{resource_id}", - encodeURIComponent(String(resourceId)) - ); + const localVarPath = '/api/v2/restriction_policy/{resource_id}' + .replace('{resource_id}', encodeURIComponent(String(resourceId))); // Make Request Context - const requestContext = _config - .getServer("v2.RestrictionPoliciesApi.getRestrictionPolicy") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RestrictionPoliciesApi.getRestrictionPolicy').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateRestrictionPolicy( - resourceId: string, - body: RestrictionPolicyUpdateRequest, - allowSelfLockout?: boolean, - _options?: Configuration - ): Promise { + public async updateRestrictionPolicy(resourceId: string,body: RestrictionPolicyUpdateRequest,allowSelfLockout?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'resourceId' is not null or undefined if (resourceId === null || resourceId === undefined) { - throw new RequiredError("resourceId", "updateRestrictionPolicy"); + throw new RequiredError('resourceId', 'updateRestrictionPolicy'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateRestrictionPolicy"); + throw new RequiredError('body', 'updateRestrictionPolicy'); } // Path Params - const localVarPath = "/api/v2/restriction_policy/{resource_id}".replace( - "{resource_id}", - encodeURIComponent(String(resourceId)) - ); + const localVarPath = '/api/v2/restriction_policy/{resource_id}' + .replace('{resource_id}', encodeURIComponent(String(resourceId))); // Make Request Context - const requestContext = _config - .getServer("v2.RestrictionPoliciesApi.updateRestrictionPolicy") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RestrictionPoliciesApi.updateRestrictionPolicy').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (allowSelfLockout !== undefined) { - requestContext.setQueryParam( - "allow_self_lockout", - ObjectSerializer.serialize(allowSelfLockout, "boolean", ""), - "" - ); + requestContext.setQueryParam("allow_self_lockout", ObjectSerializer.serialize(allowSelfLockout, "boolean", ""), ""); } // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RestrictionPolicyUpdateRequest", ""), @@ -141,17 +104,14 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class RestrictionPoliciesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -159,24 +119,13 @@ export class RestrictionPoliciesApiResponseProcessor { * @params response Response returned by the server for a request to deleteRestrictionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRestrictionPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteRestrictionPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -185,11 +134,8 @@ export class RestrictionPoliciesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -197,17 +143,13 @@ export class RestrictionPoliciesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -217,12 +159,8 @@ export class RestrictionPoliciesApiResponseProcessor { * @params response Response returned by the server for a request to getRestrictionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async getRestrictionPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRestrictionPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RestrictionPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -230,15 +168,8 @@ export class RestrictionPoliciesApiResponseProcessor { ) as RestrictionPolicyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -247,11 +178,8 @@ export class RestrictionPoliciesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -259,17 +187,13 @@ export class RestrictionPoliciesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RestrictionPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RestrictionPolicyResponse", - "" + "RestrictionPolicyResponse", "" ) as RestrictionPolicyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -279,12 +203,8 @@ export class RestrictionPoliciesApiResponseProcessor { * @params response Response returned by the server for a request to updateRestrictionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async updateRestrictionPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateRestrictionPolicy(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RestrictionPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -292,15 +212,8 @@ export class RestrictionPoliciesApiResponseProcessor { ) as RestrictionPolicyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -309,11 +222,8 @@ export class RestrictionPoliciesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -321,17 +231,13 @@ export class RestrictionPoliciesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RestrictionPolicyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RestrictionPolicyResponse", - "" + "RestrictionPolicyResponse", "" ) as RestrictionPolicyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -340,7 +246,7 @@ export interface RestrictionPoliciesApiDeleteRestrictionPolicyRequest { * Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. * @type string */ - resourceId: string; + resourceId: string } export interface RestrictionPoliciesApiGetRestrictionPolicyRequest { @@ -348,7 +254,7 @@ export interface RestrictionPoliciesApiGetRestrictionPolicyRequest { * Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. * @type string */ - resourceId: string; + resourceId: string } export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest { @@ -356,17 +262,17 @@ export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest { * Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. * @type string */ - resourceId: string; + resourceId: string /** * Restriction policy payload * @type RestrictionPolicyUpdateRequest */ - body: RestrictionPolicyUpdateRequest; + body: RestrictionPolicyUpdateRequest /** * Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out. * @type boolean */ - allowSelfLockout?: boolean; + allowSelfLockout?: boolean } export class RestrictionPoliciesApi { @@ -374,37 +280,21 @@ export class RestrictionPoliciesApi { private responseProcessor: RestrictionPoliciesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: RestrictionPoliciesApiRequestFactory, - responseProcessor?: RestrictionPoliciesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: RestrictionPoliciesApiRequestFactory, responseProcessor?: RestrictionPoliciesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new RestrictionPoliciesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new RestrictionPoliciesApiResponseProcessor(); + this.requestFactory = requestFactory || new RestrictionPoliciesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new RestrictionPoliciesApiResponseProcessor(); } /** * Deletes the restriction policy associated with a specified resource. * @param param The request object */ - public deleteRestrictionPolicy( - param: RestrictionPoliciesApiDeleteRestrictionPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteRestrictionPolicy( - param.resourceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteRestrictionPolicy( - responseContext - ); + public deleteRestrictionPolicy(param: RestrictionPoliciesApiDeleteRestrictionPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteRestrictionPolicy(param.resourceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteRestrictionPolicy(responseContext); }); }); } @@ -413,26 +303,18 @@ export class RestrictionPoliciesApi { * Retrieves the restriction policy associated with a specified resource. * @param param The request object */ - public getRestrictionPolicy( - param: RestrictionPoliciesApiGetRestrictionPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getRestrictionPolicy( - param.resourceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRestrictionPolicy(responseContext); + public getRestrictionPolicy(param: RestrictionPoliciesApiGetRestrictionPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRestrictionPolicy(param.resourceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRestrictionPolicy(responseContext); }); }); } /** * Updates the restriction policy associated with a resource. - * + * * #### Supported resources * Restriction policies can be applied to the following resources: * - Dashboards: `dashboard` @@ -449,7 +331,7 @@ export class RestrictionPoliciesApi { * - App Builder Apps: `app-builder-app` * - Connections: `connection` * - Connection Groups: `connection-group` - * + * * #### Supported relations for resources * Resource Type | Supported Relations * ----------------------------|-------------------------- @@ -469,24 +351,12 @@ export class RestrictionPoliciesApi { * Connection Groups | `viewer`, `editor` * @param param The request object */ - public updateRestrictionPolicy( - param: RestrictionPoliciesApiUpdateRestrictionPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateRestrictionPolicy( - param.resourceId, - param.body, - param.allowSelfLockout, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateRestrictionPolicy( - responseContext - ); + public updateRestrictionPolicy(param: RestrictionPoliciesApiUpdateRestrictionPolicyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateRestrictionPolicy(param.resourceId,param.body,param.allowSelfLockout,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateRestrictionPolicy(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/RolesApi.ts b/packages/datadog-api-client-v2/apis/RolesApi.ts index 19f13e20e094..2e3dd0716678 100644 --- a/packages/datadog-api-client-v2/apis/RolesApi.ts +++ b/packages/datadog-api-client-v2/apis/RolesApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { PermissionsResponse } from "../models/PermissionsResponse"; import { RelationshipToPermission } from "../models/RelationshipToPermission"; @@ -31,40 +29,32 @@ import { RoleUpdateResponse } from "../models/RoleUpdateResponse"; import { UsersResponse } from "../models/UsersResponse"; export class RolesApiRequestFactory extends BaseAPIRequestFactory { - public async addPermissionToRole( - roleId: string, - body: RelationshipToPermission, - _options?: Configuration - ): Promise { + + public async addPermissionToRole(roleId: string,body: RelationshipToPermission,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "addPermissionToRole"); + throw new RequiredError('roleId', 'addPermissionToRole'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "addPermissionToRole"); + throw new RequiredError('body', 'addPermissionToRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/permissions".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/permissions' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.addPermissionToRole") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RolesApi.addPermissionToRole').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RelationshipToPermission", ""), @@ -73,49 +63,36 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async addUserToRole( - roleId: string, - body: RelationshipToUser, - _options?: Configuration - ): Promise { + public async addUserToRole(roleId: string,body: RelationshipToUser,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "addUserToRole"); + throw new RequiredError('roleId', 'addUserToRole'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "addUserToRole"); + throw new RequiredError('body', 'addUserToRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/users".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/users' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.addUserToRole") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RolesApi.addUserToRole').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RelationshipToUser", ""), @@ -124,49 +101,36 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async cloneRole( - roleId: string, - body: RoleCloneRequest, - _options?: Configuration - ): Promise { + public async cloneRole(roleId: string,body: RoleCloneRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "cloneRole"); + throw new RequiredError('roleId', 'cloneRole'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "cloneRole"); + throw new RequiredError('body', 'cloneRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/clone".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/clone' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.cloneRole") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RolesApi.cloneRole').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RoleCloneRequest", ""), @@ -175,40 +139,30 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createRole( - body: RoleCreateRequest, - _options?: Configuration - ): Promise { + public async createRole(body: RoleCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createRole"); + throw new RequiredError('body', 'createRole'); } // Path Params - const localVarPath = "/api/v2/roles"; + const localVarPath = '/api/v2/roles'; // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.createRole") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RolesApi.createRole').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RoleCreateRequest", ""), @@ -217,311 +171,193 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteRole( - roleId: string, - _options?: Configuration - ): Promise { + public async deleteRole(roleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "deleteRole"); + throw new RequiredError('roleId', 'deleteRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.deleteRole") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RolesApi.deleteRole').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRole( - roleId: string, - _options?: Configuration - ): Promise { + public async getRole(roleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "getRole"); + throw new RequiredError('roleId', 'getRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.getRole") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RolesApi.getRole').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listPermissions( - _options?: Configuration - ): Promise { + public async listPermissions(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/permissions"; + const localVarPath = '/api/v2/permissions'; // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.listPermissions") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RolesApi.listPermissions').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listRolePermissions( - roleId: string, - _options?: Configuration - ): Promise { + public async listRolePermissions(roleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "listRolePermissions"); + throw new RequiredError('roleId', 'listRolePermissions'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/permissions".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/permissions' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.listRolePermissions") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RolesApi.listRolePermissions').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listRoles( - pageSize?: number, - pageNumber?: number, - sort?: RolesSort, - filter?: string, - filterId?: string, - _options?: Configuration - ): Promise { + public async listRoles(pageSize?: number,pageNumber?: number,sort?: RolesSort,filter?: string,filterId?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/roles"; + const localVarPath = '/api/v2/roles'; // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.listRoles") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RolesApi.listRoles').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "RolesSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "RolesSort", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (filterId !== undefined) { - requestContext.setQueryParam( - "filter[id]", - ObjectSerializer.serialize(filterId, "string", ""), - "" - ); + requestContext.setQueryParam("filter[id]", ObjectSerializer.serialize(filterId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listRoleUsers( - roleId: string, - pageSize?: number, - pageNumber?: number, - sort?: string, - filter?: string, - _options?: Configuration - ): Promise { + public async listRoleUsers(roleId: string,pageSize?: number,pageNumber?: number,sort?: string,filter?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "listRoleUsers"); + throw new RequiredError('roleId', 'listRoleUsers'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/users".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/users' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.listRoleUsers") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RolesApi.listRoleUsers').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async removePermissionFromRole( - roleId: string, - body: RelationshipToPermission, - _options?: Configuration - ): Promise { + public async removePermissionFromRole(roleId: string,body: RelationshipToPermission,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "removePermissionFromRole"); + throw new RequiredError('roleId', 'removePermissionFromRole'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "removePermissionFromRole"); + throw new RequiredError('body', 'removePermissionFromRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/permissions".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/permissions' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.removePermissionFromRole") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RolesApi.removePermissionFromRole').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RelationshipToPermission", ""), @@ -530,49 +366,36 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async removeUserFromRole( - roleId: string, - body: RelationshipToUser, - _options?: Configuration - ): Promise { + public async removeUserFromRole(roleId: string,body: RelationshipToUser,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "removeUserFromRole"); + throw new RequiredError('roleId', 'removeUserFromRole'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "removeUserFromRole"); + throw new RequiredError('body', 'removeUserFromRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}/users".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}/users' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.removeUserFromRole") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RolesApi.removeUserFromRole').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RelationshipToUser", ""), @@ -581,49 +404,36 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateRole( - roleId: string, - body: RoleUpdateRequest, - _options?: Configuration - ): Promise { + public async updateRole(roleId: string,body: RoleUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'roleId' is not null or undefined if (roleId === null || roleId === undefined) { - throw new RequiredError("roleId", "updateRole"); + throw new RequiredError('roleId', 'updateRole'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateRole"); + throw new RequiredError('body', 'updateRole'); } // Path Params - const localVarPath = "/api/v2/roles/{role_id}".replace( - "{role_id}", - encodeURIComponent(String(roleId)) - ); + const localVarPath = '/api/v2/roles/{role_id}' + .replace('{role_id}', encodeURIComponent(String(roleId))); // Make Request Context - const requestContext = _config - .getServer("v2.RolesApi.updateRole") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.RolesApi.updateRole').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RoleUpdateRequest", ""), @@ -632,17 +442,14 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class RolesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -650,12 +457,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to addPermissionToRole * @throws ApiException if the response code was not in [200, 299] */ - public async addPermissionToRole( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async addPermissionToRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -663,16 +466,8 @@ export class RolesApiResponseProcessor { ) as PermissionsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -681,11 +476,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -693,17 +485,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PermissionsResponse", - "" + "PermissionsResponse", "" ) as PermissionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -713,12 +501,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to addUserToRole * @throws ApiException if the response code was not in [200, 299] */ - public async addUserToRole( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async addUserToRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -726,16 +510,8 @@ export class RolesApiResponseProcessor { ) as UsersResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -744,11 +520,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -756,17 +529,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsersResponse", - "" + "UsersResponse", "" ) as UsersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -776,10 +545,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to cloneRole * @throws ApiException if the response code was not in [200, 299] */ - public async cloneRole(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cloneRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RoleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -787,17 +554,8 @@ export class RolesApiResponseProcessor { ) as RoleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -806,11 +564,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -818,17 +573,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RoleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RoleResponse", - "" + "RoleResponse", "" ) as RoleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -838,12 +589,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to createRole * @throws ApiException if the response code was not in [200, 299] */ - public async createRole( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RoleCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -851,15 +598,8 @@ export class RolesApiResponseProcessor { ) as RoleCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -868,11 +608,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -880,17 +617,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RoleCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RoleCreateResponse", - "" + "RoleCreateResponse", "" ) as RoleCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -900,22 +633,13 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to deleteRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRole(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -924,11 +648,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -936,17 +657,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -956,10 +673,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to getRole * @throws ApiException if the response code was not in [200, 299] */ - public async getRole(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RoleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -967,15 +682,8 @@ export class RolesApiResponseProcessor { ) as RoleResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -984,11 +692,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -996,17 +701,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RoleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RoleResponse", - "" + "RoleResponse", "" ) as RoleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1016,12 +717,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to listPermissions * @throws ApiException if the response code was not in [200, 299] */ - public async listPermissions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listPermissions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1029,15 +726,8 @@ export class RolesApiResponseProcessor { ) as PermissionsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1046,11 +736,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1058,17 +745,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PermissionsResponse", - "" + "PermissionsResponse", "" ) as PermissionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1078,12 +761,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to listRolePermissions * @throws ApiException if the response code was not in [200, 299] */ - public async listRolePermissions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listRolePermissions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1091,15 +770,8 @@ export class RolesApiResponseProcessor { ) as PermissionsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1108,11 +780,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1120,17 +789,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PermissionsResponse", - "" + "PermissionsResponse", "" ) as PermissionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1140,10 +805,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to listRoles * @throws ApiException if the response code was not in [200, 299] */ - public async listRoles(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listRoles(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RolesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1151,11 +814,8 @@ export class RolesApiResponseProcessor { ) as RolesResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1164,11 +824,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1176,17 +833,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RolesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RolesResponse", - "" + "RolesResponse", "" ) as RolesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1196,12 +849,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to listRoleUsers * @throws ApiException if the response code was not in [200, 299] */ - public async listRoleUsers( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listRoleUsers(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1209,15 +858,8 @@ export class RolesApiResponseProcessor { ) as UsersResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1226,11 +868,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1238,17 +877,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsersResponse", - "" + "UsersResponse", "" ) as UsersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1258,12 +893,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to removePermissionFromRole * @throws ApiException if the response code was not in [200, 299] */ - public async removePermissionFromRole( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async removePermissionFromRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1271,16 +902,8 @@ export class RolesApiResponseProcessor { ) as PermissionsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1289,11 +912,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1301,17 +921,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PermissionsResponse", - "" + "PermissionsResponse", "" ) as PermissionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1321,12 +937,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to removeUserFromRole * @throws ApiException if the response code was not in [200, 299] */ - public async removeUserFromRole( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async removeUserFromRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1334,16 +946,8 @@ export class RolesApiResponseProcessor { ) as UsersResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1352,11 +956,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1364,17 +965,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsersResponse", - "" + "UsersResponse", "" ) as UsersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1384,12 +981,8 @@ export class RolesApiResponseProcessor { * @params response Response returned by the server for a request to updateRole * @throws ApiException if the response code was not in [200, 299] */ - public async updateRole( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateRole(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RoleUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1397,17 +990,8 @@ export class RolesApiResponseProcessor { ) as RoleUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1416,11 +1000,8 @@ export class RolesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1428,17 +1009,13 @@ export class RolesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RoleUpdateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RoleUpdateResponse", - "" + "RoleUpdateResponse", "" ) as RoleUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1447,11 +1024,11 @@ export interface RolesApiAddPermissionToRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * @type RelationshipToPermission */ - body: RelationshipToPermission; + body: RelationshipToPermission } export interface RolesApiAddUserToRoleRequest { @@ -1459,11 +1036,11 @@ export interface RolesApiAddUserToRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * @type RelationshipToUser */ - body: RelationshipToUser; + body: RelationshipToUser } export interface RolesApiCloneRoleRequest { @@ -1471,18 +1048,18 @@ export interface RolesApiCloneRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * @type RoleCloneRequest */ - body: RoleCloneRequest; + body: RoleCloneRequest } export interface RolesApiCreateRoleRequest { /** * @type RoleCreateRequest */ - body: RoleCreateRequest; + body: RoleCreateRequest } export interface RolesApiDeleteRoleRequest { @@ -1490,7 +1067,7 @@ export interface RolesApiDeleteRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string } export interface RolesApiGetRoleRequest { @@ -1498,7 +1075,7 @@ export interface RolesApiGetRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string } export interface RolesApiListRolePermissionsRequest { @@ -1506,7 +1083,7 @@ export interface RolesApiListRolePermissionsRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string } export interface RolesApiListRolesRequest { @@ -1514,29 +1091,29 @@ export interface RolesApiListRolesRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Sort roles depending on the given field. Sort order is **ascending** by default. * Sort order is **descending** if the field is prefixed by a negative sign, for example: * `sort=-name`. * @type RolesSort */ - sort?: RolesSort; + sort?: RolesSort /** * Filter all roles by the given string. * @type string */ - filter?: string; + filter?: string /** * Filter all roles by the given list of role IDs. * @type string */ - filterId?: string; + filterId?: string } export interface RolesApiListRoleUsersRequest { @@ -1544,29 +1121,29 @@ export interface RolesApiListRoleUsersRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * User attribute to order results by. Sort order is **ascending** by default. * Sort order is **descending** if the field is prefixed by a negative sign, * for example `sort=-name`. Options: `name`, `email`, `status`. * @type string */ - sort?: string; + sort?: string /** * Filter all users by the given string. Defaults to no filtering. * @type string */ - filter?: string; + filter?: string } export interface RolesApiRemovePermissionFromRoleRequest { @@ -1574,11 +1151,11 @@ export interface RolesApiRemovePermissionFromRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * @type RelationshipToPermission */ - body: RelationshipToPermission; + body: RelationshipToPermission } export interface RolesApiRemoveUserFromRoleRequest { @@ -1586,11 +1163,11 @@ export interface RolesApiRemoveUserFromRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * @type RelationshipToUser */ - body: RelationshipToUser; + body: RelationshipToUser } export interface RolesApiUpdateRoleRequest { @@ -1598,11 +1175,11 @@ export interface RolesApiUpdateRoleRequest { * The unique identifier of the role. * @type string */ - roleId: string; + roleId: string /** * @type RoleUpdateRequest */ - body: RoleUpdateRequest; + body: RoleUpdateRequest } export class RolesApi { @@ -1610,36 +1187,21 @@ export class RolesApi { private responseProcessor: RolesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: RolesApiRequestFactory, - responseProcessor?: RolesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: RolesApiRequestFactory, responseProcessor?: RolesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new RolesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new RolesApiResponseProcessor(); + this.requestFactory = requestFactory || new RolesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new RolesApiResponseProcessor(); } /** * Adds a permission to a role. * @param param The request object */ - public addPermissionToRole( - param: RolesApiAddPermissionToRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.addPermissionToRole( - param.roleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.addPermissionToRole(responseContext); + public addPermissionToRole(param: RolesApiAddPermissionToRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.addPermissionToRole(param.roleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.addPermissionToRole(responseContext); }); }); } @@ -1648,20 +1210,11 @@ export class RolesApi { * Adds a user to a role. * @param param The request object */ - public addUserToRole( - param: RolesApiAddUserToRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.addUserToRole( - param.roleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.addUserToRole(responseContext); + public addUserToRole(param: RolesApiAddUserToRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.addUserToRole(param.roleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.addUserToRole(responseContext); }); }); } @@ -1670,20 +1223,11 @@ export class RolesApi { * Clone an existing role * @param param The request object */ - public cloneRole( - param: RolesApiCloneRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cloneRole( - param.roleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cloneRole(responseContext); + public cloneRole(param: RolesApiCloneRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cloneRole(param.roleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cloneRole(responseContext); }); }); } @@ -1692,19 +1236,11 @@ export class RolesApi { * Create a new role for your organization. * @param param The request object */ - public createRole( - param: RolesApiCreateRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createRole( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createRole(responseContext); + public createRole(param: RolesApiCreateRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createRole(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createRole(responseContext); }); }); } @@ -1713,19 +1249,11 @@ export class RolesApi { * Disables a role. * @param param The request object */ - public deleteRole( - param: RolesApiDeleteRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteRole( - param.roleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteRole(responseContext); + public deleteRole(param: RolesApiDeleteRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteRole(param.roleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteRole(responseContext); }); }); } @@ -1734,19 +1262,11 @@ export class RolesApi { * Get a role in the organization specified by the role’s `role_id`. * @param param The request object */ - public getRole( - param: RolesApiGetRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getRole( - param.roleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRole(responseContext); + public getRole(param: RolesApiGetRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRole(param.roleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRole(responseContext); }); }); } @@ -1755,15 +1275,11 @@ export class RolesApi { * Returns a list of all permissions, including name, description, and ID. * @param param The request object */ - public listPermissions( - options?: Configuration - ): Promise { + public listPermissions( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listPermissions(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listPermissions(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listPermissions(responseContext); }); }); } @@ -1772,19 +1288,11 @@ export class RolesApi { * Returns a list of all permissions for a single role. * @param param The request object */ - public listRolePermissions( - param: RolesApiListRolePermissionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listRolePermissions( - param.roleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listRolePermissions(responseContext); + public listRolePermissions(param: RolesApiListRolePermissionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listRolePermissions(param.roleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listRolePermissions(responseContext); }); }); } @@ -1793,23 +1301,11 @@ export class RolesApi { * Returns all roles, including their names and their unique identifiers. * @param param The request object */ - public listRoles( - param: RolesApiListRolesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listRoles( - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - param.filterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listRoles(responseContext); + public listRoles(param: RolesApiListRolesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listRoles(param.pageSize,param.pageNumber,param.sort,param.filter,param.filterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listRoles(responseContext); }); }); } @@ -1818,23 +1314,11 @@ export class RolesApi { * Gets all users of a role. * @param param The request object */ - public listRoleUsers( - param: RolesApiListRoleUsersRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listRoleUsers( - param.roleId, - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listRoleUsers(responseContext); + public listRoleUsers(param: RolesApiListRoleUsersRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listRoleUsers(param.roleId,param.pageSize,param.pageNumber,param.sort,param.filter,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listRoleUsers(responseContext); }); }); } @@ -1843,22 +1327,11 @@ export class RolesApi { * Removes a permission from a role. * @param param The request object */ - public removePermissionFromRole( - param: RolesApiRemovePermissionFromRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.removePermissionFromRole( - param.roleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.removePermissionFromRole( - responseContext - ); + public removePermissionFromRole(param: RolesApiRemovePermissionFromRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.removePermissionFromRole(param.roleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.removePermissionFromRole(responseContext); }); }); } @@ -1867,20 +1340,11 @@ export class RolesApi { * Removes a user from a role. * @param param The request object */ - public removeUserFromRole( - param: RolesApiRemoveUserFromRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.removeUserFromRole( - param.roleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.removeUserFromRole(responseContext); + public removeUserFromRole(param: RolesApiRemoveUserFromRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.removeUserFromRole(param.roleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.removeUserFromRole(responseContext); }); }); } @@ -1889,21 +1353,12 @@ export class RolesApi { * Edit a role. Can only be used with application keys belonging to administrators. * @param param The request object */ - public updateRole( - param: RolesApiUpdateRoleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateRole( - param.roleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateRole(responseContext); + public updateRole(param: RolesApiUpdateRoleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateRole(param.roleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateRole(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/RumMetricsApi.ts b/packages/datadog-api-client-v2/apis/RumMetricsApi.ts index aa49ac658643..cc5093a45c37 100644 --- a/packages/datadog-api-client-v2/apis/RumMetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/RumMetricsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { RumMetricCreateRequest } from "../models/RumMetricCreateRequest"; import { RumMetricResponse } from "../models/RumMetricResponse"; @@ -23,31 +21,26 @@ import { RumMetricsResponse } from "../models/RumMetricsResponse"; import { RumMetricUpdateRequest } from "../models/RumMetricUpdateRequest"; export class RumMetricsApiRequestFactory extends BaseAPIRequestFactory { - public async createRumMetric( - body: RumMetricCreateRequest, - _options?: Configuration - ): Promise { + + public async createRumMetric(body: RumMetricCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createRumMetric"); + throw new RequiredError('body', 'createRumMetric'); } // Path Params - const localVarPath = "/api/v2/rum/config/metrics"; + const localVarPath = '/api/v2/rum/config/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.RumMetricsApi.createRumMetric") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RumMetricsApi.createRumMetric').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RumMetricCreateRequest", ""), @@ -56,138 +49,99 @@ export class RumMetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteRumMetric( - metricId: string, - _options?: Configuration - ): Promise { + public async deleteRumMetric(metricId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "deleteRumMetric"); + throw new RequiredError('metricId', 'deleteRumMetric'); } // Path Params - const localVarPath = "/api/v2/rum/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/rum/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumMetricsApi.deleteRumMetric") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RumMetricsApi.deleteRumMetric').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRumMetric( - metricId: string, - _options?: Configuration - ): Promise { + public async getRumMetric(metricId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "getRumMetric"); + throw new RequiredError('metricId', 'getRumMetric'); } // Path Params - const localVarPath = "/api/v2/rum/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/rum/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumMetricsApi.getRumMetric") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RumMetricsApi.getRumMetric').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listRumMetrics( - _options?: Configuration - ): Promise { + public async listRumMetrics(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/rum/config/metrics"; + const localVarPath = '/api/v2/rum/config/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.RumMetricsApi.listRumMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RumMetricsApi.listRumMetrics').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateRumMetric( - metricId: string, - body: RumMetricUpdateRequest, - _options?: Configuration - ): Promise { + public async updateRumMetric(metricId: string,body: RumMetricUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "updateRumMetric"); + throw new RequiredError('metricId', 'updateRumMetric'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateRumMetric"); + throw new RequiredError('body', 'updateRumMetric'); } // Path Params - const localVarPath = "/api/v2/rum/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/rum/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumMetricsApi.updateRumMetric") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.RumMetricsApi.updateRumMetric').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RumMetricUpdateRequest", ""), @@ -196,16 +150,14 @@ export class RumMetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class RumMetricsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -213,12 +165,8 @@ export class RumMetricsApiResponseProcessor { * @params response Response returned by the server for a request to createRumMetric * @throws ApiException if the response code was not in [200, 299] */ - public async createRumMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createRumMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: RumMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -226,16 +174,8 @@ export class RumMetricsApiResponseProcessor { ) as RumMetricResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -244,11 +184,8 @@ export class RumMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -256,17 +193,13 @@ export class RumMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumMetricResponse", - "" + "RumMetricResponse", "" ) as RumMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -276,22 +209,13 @@ export class RumMetricsApiResponseProcessor { * @params response Response returned by the server for a request to deleteRumMetric * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRumMetric(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteRumMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -300,11 +224,8 @@ export class RumMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -312,17 +233,13 @@ export class RumMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -332,12 +249,8 @@ export class RumMetricsApiResponseProcessor { * @params response Response returned by the server for a request to getRumMetric * @throws ApiException if the response code was not in [200, 299] */ - public async getRumMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRumMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RumMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -345,15 +258,8 @@ export class RumMetricsApiResponseProcessor { ) as RumMetricResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -362,11 +268,8 @@ export class RumMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -374,17 +277,13 @@ export class RumMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumMetricResponse", - "" + "RumMetricResponse", "" ) as RumMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -394,12 +293,8 @@ export class RumMetricsApiResponseProcessor { * @params response Response returned by the server for a request to listRumMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async listRumMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listRumMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RumMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -407,11 +302,8 @@ export class RumMetricsApiResponseProcessor { ) as RumMetricsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -420,11 +312,8 @@ export class RumMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -432,17 +321,13 @@ export class RumMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumMetricsResponse", - "" + "RumMetricsResponse", "" ) as RumMetricsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -452,12 +337,8 @@ export class RumMetricsApiResponseProcessor { * @params response Response returned by the server for a request to updateRumMetric * @throws ApiException if the response code was not in [200, 299] */ - public async updateRumMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateRumMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RumMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -465,17 +346,8 @@ export class RumMetricsApiResponseProcessor { ) as RumMetricResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -484,11 +356,8 @@ export class RumMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -496,17 +365,13 @@ export class RumMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumMetricResponse", - "" + "RumMetricResponse", "" ) as RumMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -515,7 +380,7 @@ export interface RumMetricsApiCreateRumMetricRequest { * The definition of the new rum-based metric. * @type RumMetricCreateRequest */ - body: RumMetricCreateRequest; + body: RumMetricCreateRequest } export interface RumMetricsApiDeleteRumMetricRequest { @@ -523,7 +388,7 @@ export interface RumMetricsApiDeleteRumMetricRequest { * The name of the rum-based metric. * @type string */ - metricId: string; + metricId: string } export interface RumMetricsApiGetRumMetricRequest { @@ -531,7 +396,7 @@ export interface RumMetricsApiGetRumMetricRequest { * The name of the rum-based metric. * @type string */ - metricId: string; + metricId: string } export interface RumMetricsApiUpdateRumMetricRequest { @@ -539,12 +404,12 @@ export interface RumMetricsApiUpdateRumMetricRequest { * The name of the rum-based metric. * @type string */ - metricId: string; + metricId: string /** * New definition of the rum-based metric. * @type RumMetricUpdateRequest */ - body: RumMetricUpdateRequest; + body: RumMetricUpdateRequest } export class RumMetricsApi { @@ -552,16 +417,10 @@ export class RumMetricsApi { private responseProcessor: RumMetricsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: RumMetricsApiRequestFactory, - responseProcessor?: RumMetricsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: RumMetricsApiRequestFactory, responseProcessor?: RumMetricsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new RumMetricsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new RumMetricsApiResponseProcessor(); + this.requestFactory = requestFactory || new RumMetricsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new RumMetricsApiResponseProcessor(); } /** @@ -569,19 +428,11 @@ export class RumMetricsApi { * Returns the rum-based metric object from the request body when the request is successful. * @param param The request object */ - public createRumMetric( - param: RumMetricsApiCreateRumMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createRumMetric( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createRumMetric(responseContext); + public createRumMetric(param: RumMetricsApiCreateRumMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createRumMetric(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createRumMetric(responseContext); }); }); } @@ -590,19 +441,11 @@ export class RumMetricsApi { * Delete a specific rum-based metric from your organization. * @param param The request object */ - public deleteRumMetric( - param: RumMetricsApiDeleteRumMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteRumMetric( - param.metricId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteRumMetric(responseContext); + public deleteRumMetric(param: RumMetricsApiDeleteRumMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteRumMetric(param.metricId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteRumMetric(responseContext); }); }); } @@ -611,19 +454,11 @@ export class RumMetricsApi { * Get a specific rum-based metric from your organization. * @param param The request object */ - public getRumMetric( - param: RumMetricsApiGetRumMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getRumMetric( - param.metricId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRumMetric(responseContext); + public getRumMetric(param: RumMetricsApiGetRumMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRumMetric(param.metricId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRumMetric(responseContext); }); }); } @@ -632,13 +467,11 @@ export class RumMetricsApi { * Get the list of configured rum-based metrics with their definitions. * @param param The request object */ - public listRumMetrics(options?: Configuration): Promise { + public listRumMetrics( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listRumMetrics(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listRumMetrics(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listRumMetrics(responseContext); }); }); } @@ -648,21 +481,12 @@ export class RumMetricsApi { * Returns the rum-based metric object from the request body when the request is successful. * @param param The request object */ - public updateRumMetric( - param: RumMetricsApiUpdateRumMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateRumMetric( - param.metricId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateRumMetric(responseContext); + public updateRumMetric(param: RumMetricsApiUpdateRumMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateRumMetric(param.metricId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateRumMetric(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/RumRetentionFiltersApi.ts b/packages/datadog-api-client-v2/apis/RumRetentionFiltersApi.ts index 51fdf66feed9..75850158a0bb 100644 --- a/packages/datadog-api-client-v2/apis/RumRetentionFiltersApi.ts +++ b/packages/datadog-api-client-v2/apis/RumRetentionFiltersApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { RumRetentionFilterCreateRequest } from "../models/RumRetentionFilterCreateRequest"; import { RumRetentionFilterResponse } from "../models/RumRetentionFilterResponse"; @@ -25,41 +23,32 @@ import { RumRetentionFiltersResponse } from "../models/RumRetentionFiltersRespon import { RumRetentionFilterUpdateRequest } from "../models/RumRetentionFilterUpdateRequest"; export class RumRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory { - public async createRetentionFilter( - appId: string, - body: RumRetentionFilterCreateRequest, - _options?: Configuration - ): Promise { + + public async createRetentionFilter(appId: string,body: RumRetentionFilterCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "createRetentionFilter"); + throw new RequiredError('appId', 'createRetentionFilter'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createRetentionFilter"); + throw new RequiredError('body', 'createRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/rum/applications/{app_id}/retention_filters".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/rum/applications/{app_id}/retention_filters' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumRetentionFiltersApi.createRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.RumRetentionFiltersApi.createRetentionFilter').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RumRetentionFilterCreateRequest", ""), @@ -68,161 +57,117 @@ export class RumRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteRetentionFilter( - appId: string, - rfId: string, - _options?: Configuration - ): Promise { + public async deleteRetentionFilter(appId: string,rfId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "deleteRetentionFilter"); + throw new RequiredError('appId', 'deleteRetentionFilter'); } // verify required parameter 'rfId' is not null or undefined if (rfId === null || rfId === undefined) { - throw new RequiredError("rfId", "deleteRetentionFilter"); + throw new RequiredError('rfId', 'deleteRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}" - .replace("{app_id}", encodeURIComponent(String(appId))) - .replace("{rf_id}", encodeURIComponent(String(rfId))); + const localVarPath = '/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}' + .replace('{app_id}', encodeURIComponent(String(appId))) + .replace('{rf_id}', encodeURIComponent(String(rfId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumRetentionFiltersApi.deleteRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.RumRetentionFiltersApi.deleteRetentionFilter').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRetentionFilter( - appId: string, - rfId: string, - _options?: Configuration - ): Promise { + public async getRetentionFilter(appId: string,rfId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "getRetentionFilter"); + throw new RequiredError('appId', 'getRetentionFilter'); } // verify required parameter 'rfId' is not null or undefined if (rfId === null || rfId === undefined) { - throw new RequiredError("rfId", "getRetentionFilter"); + throw new RequiredError('rfId', 'getRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}" - .replace("{app_id}", encodeURIComponent(String(appId))) - .replace("{rf_id}", encodeURIComponent(String(rfId))); + const localVarPath = '/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}' + .replace('{app_id}', encodeURIComponent(String(appId))) + .replace('{rf_id}', encodeURIComponent(String(rfId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumRetentionFiltersApi.getRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RumRetentionFiltersApi.getRetentionFilter').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listRetentionFilters( - appId: string, - _options?: Configuration - ): Promise { + public async listRetentionFilters(appId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "listRetentionFilters"); + throw new RequiredError('appId', 'listRetentionFilters'); } // Path Params - const localVarPath = - "/api/v2/rum/applications/{app_id}/retention_filters".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/rum/applications/{app_id}/retention_filters' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumRetentionFiltersApi.listRetentionFilters") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.RumRetentionFiltersApi.listRetentionFilters').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async orderRetentionFilters( - appId: string, - body: RumRetentionFiltersOrderRequest, - _options?: Configuration - ): Promise { + public async orderRetentionFilters(appId: string,body: RumRetentionFiltersOrderRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "orderRetentionFilters"); + throw new RequiredError('appId', 'orderRetentionFilters'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "orderRetentionFilters"); + throw new RequiredError('body', 'orderRetentionFilters'); } // Path Params - const localVarPath = - "/api/v2/rum/applications/{app_id}/relationships/retention_filters".replace( - "{app_id}", - encodeURIComponent(String(appId)) - ); + const localVarPath = '/api/v2/rum/applications/{app_id}/relationships/retention_filters' + .replace('{app_id}', encodeURIComponent(String(appId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumRetentionFiltersApi.orderRetentionFilters") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.RumRetentionFiltersApi.orderRetentionFilters').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RumRetentionFiltersOrderRequest", ""), @@ -231,54 +176,42 @@ export class RumRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateRetentionFilter( - appId: string, - rfId: string, - body: RumRetentionFilterUpdateRequest, - _options?: Configuration - ): Promise { + public async updateRetentionFilter(appId: string,rfId: string,body: RumRetentionFilterUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'appId' is not null or undefined if (appId === null || appId === undefined) { - throw new RequiredError("appId", "updateRetentionFilter"); + throw new RequiredError('appId', 'updateRetentionFilter'); } // verify required parameter 'rfId' is not null or undefined if (rfId === null || rfId === undefined) { - throw new RequiredError("rfId", "updateRetentionFilter"); + throw new RequiredError('rfId', 'updateRetentionFilter'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateRetentionFilter"); + throw new RequiredError('body', 'updateRetentionFilter'); } // Path Params - const localVarPath = - "/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}" - .replace("{app_id}", encodeURIComponent(String(appId))) - .replace("{rf_id}", encodeURIComponent(String(rfId))); + const localVarPath = '/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}' + .replace('{app_id}', encodeURIComponent(String(appId))) + .replace('{rf_id}', encodeURIComponent(String(rfId))); // Make Request Context - const requestContext = _config - .getServer("v2.RumRetentionFiltersApi.updateRetentionFilter") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.RumRetentionFiltersApi.updateRetentionFilter').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RumRetentionFilterUpdateRequest", ""), @@ -287,16 +220,14 @@ export class RumRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class RumRetentionFiltersApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -304,12 +235,8 @@ export class RumRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to createRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async createRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: RumRetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -317,15 +244,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as RumRetentionFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -334,11 +254,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -346,17 +263,13 @@ export class RumRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumRetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumRetentionFilterResponse", - "" + "RumRetentionFilterResponse", "" ) as RumRetentionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -366,22 +279,13 @@ export class RumRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to deleteRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRetentionFilter(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -390,11 +294,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -402,17 +303,13 @@ export class RumRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -422,12 +319,8 @@ export class RumRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to getRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async getRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RumRetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -435,15 +328,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as RumRetentionFilterResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -452,11 +338,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -464,17 +347,13 @@ export class RumRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumRetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumRetentionFilterResponse", - "" + "RumRetentionFilterResponse", "" ) as RumRetentionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -484,12 +363,8 @@ export class RumRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to listRetentionFilters * @throws ApiException if the response code was not in [200, 299] */ - public async listRetentionFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listRetentionFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RumRetentionFiltersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -497,11 +372,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as RumRetentionFiltersResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -510,11 +382,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -522,17 +391,13 @@ export class RumRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumRetentionFiltersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumRetentionFiltersResponse", - "" + "RumRetentionFiltersResponse", "" ) as RumRetentionFiltersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -542,29 +407,17 @@ export class RumRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to orderRetentionFilters * @throws ApiException if the response code was not in [200, 299] */ - public async orderRetentionFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async orderRetentionFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: RumRetentionFiltersOrderResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "RumRetentionFiltersOrderResponse" - ) as RumRetentionFiltersOrderResponse; + const body: RumRetentionFiltersOrderResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "RumRetentionFiltersOrderResponse" + ) as RumRetentionFiltersOrderResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -573,30 +426,22 @@ export class RumRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: RumRetentionFiltersOrderResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "RumRetentionFiltersOrderResponse", - "" - ) as RumRetentionFiltersOrderResponse; + const body: RumRetentionFiltersOrderResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "RumRetentionFiltersOrderResponse", "" + ) as RumRetentionFiltersOrderResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -606,12 +451,8 @@ export class RumRetentionFiltersApiResponseProcessor { * @params response Response returned by the server for a request to updateRetentionFilter * @throws ApiException if the response code was not in [200, 299] */ - public async updateRetentionFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateRetentionFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: RumRetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -619,16 +460,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as RumRetentionFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -637,11 +470,8 @@ export class RumRetentionFiltersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -649,17 +479,13 @@ export class RumRetentionFiltersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: RumRetentionFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "RumRetentionFilterResponse", - "" + "RumRetentionFilterResponse", "" ) as RumRetentionFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -668,12 +494,12 @@ export interface RumRetentionFiltersApiCreateRetentionFilterRequest { * RUM application ID. * @type string */ - appId: string; + appId: string /** * The definition of the new RUM retention filter. * @type RumRetentionFilterCreateRequest */ - body: RumRetentionFilterCreateRequest; + body: RumRetentionFilterCreateRequest } export interface RumRetentionFiltersApiDeleteRetentionFilterRequest { @@ -681,12 +507,12 @@ export interface RumRetentionFiltersApiDeleteRetentionFilterRequest { * RUM application ID. * @type string */ - appId: string; + appId: string /** * Retention filter ID. * @type string */ - rfId: string; + rfId: string } export interface RumRetentionFiltersApiGetRetentionFilterRequest { @@ -694,12 +520,12 @@ export interface RumRetentionFiltersApiGetRetentionFilterRequest { * RUM application ID. * @type string */ - appId: string; + appId: string /** * Retention filter ID. * @type string */ - rfId: string; + rfId: string } export interface RumRetentionFiltersApiListRetentionFiltersRequest { @@ -707,7 +533,7 @@ export interface RumRetentionFiltersApiListRetentionFiltersRequest { * RUM application ID. * @type string */ - appId: string; + appId: string } export interface RumRetentionFiltersApiOrderRetentionFiltersRequest { @@ -715,12 +541,12 @@ export interface RumRetentionFiltersApiOrderRetentionFiltersRequest { * RUM application ID. * @type string */ - appId: string; + appId: string /** * New definition of the RUM retention filter. * @type RumRetentionFiltersOrderRequest */ - body: RumRetentionFiltersOrderRequest; + body: RumRetentionFiltersOrderRequest } export interface RumRetentionFiltersApiUpdateRetentionFilterRequest { @@ -728,17 +554,17 @@ export interface RumRetentionFiltersApiUpdateRetentionFilterRequest { * RUM application ID. * @type string */ - appId: string; + appId: string /** * Retention filter ID. * @type string */ - rfId: string; + rfId: string /** * New definition of the RUM retention filter. * @type RumRetentionFilterUpdateRequest */ - body: RumRetentionFilterUpdateRequest; + body: RumRetentionFilterUpdateRequest } export class RumRetentionFiltersApi { @@ -746,16 +572,10 @@ export class RumRetentionFiltersApi { private responseProcessor: RumRetentionFiltersApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: RumRetentionFiltersApiRequestFactory, - responseProcessor?: RumRetentionFiltersApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: RumRetentionFiltersApiRequestFactory, responseProcessor?: RumRetentionFiltersApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new RumRetentionFiltersApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new RumRetentionFiltersApiResponseProcessor(); + this.requestFactory = requestFactory || new RumRetentionFiltersApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new RumRetentionFiltersApiResponseProcessor(); } /** @@ -763,20 +583,11 @@ export class RumRetentionFiltersApi { * Returns RUM retention filter objects from the request body when the request is successful. * @param param The request object */ - public createRetentionFilter( - param: RumRetentionFiltersApiCreateRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createRetentionFilter( - param.appId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createRetentionFilter(responseContext); + public createRetentionFilter(param: RumRetentionFiltersApiCreateRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createRetentionFilter(param.appId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createRetentionFilter(responseContext); }); }); } @@ -785,20 +596,11 @@ export class RumRetentionFiltersApi { * Delete a RUM retention filter for a RUM application. * @param param The request object */ - public deleteRetentionFilter( - param: RumRetentionFiltersApiDeleteRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteRetentionFilter( - param.appId, - param.rfId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteRetentionFilter(responseContext); + public deleteRetentionFilter(param: RumRetentionFiltersApiDeleteRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteRetentionFilter(param.appId,param.rfId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteRetentionFilter(responseContext); }); }); } @@ -807,20 +609,11 @@ export class RumRetentionFiltersApi { * Get a RUM retention filter for a RUM application. * @param param The request object */ - public getRetentionFilter( - param: RumRetentionFiltersApiGetRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getRetentionFilter( - param.appId, - param.rfId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRetentionFilter(responseContext); + public getRetentionFilter(param: RumRetentionFiltersApiGetRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRetentionFilter(param.appId,param.rfId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRetentionFilter(responseContext); }); }); } @@ -829,19 +622,11 @@ export class RumRetentionFiltersApi { * Get the list of RUM retention filters for a RUM application. * @param param The request object */ - public listRetentionFilters( - param: RumRetentionFiltersApiListRetentionFiltersRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listRetentionFilters( - param.appId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listRetentionFilters(responseContext); + public listRetentionFilters(param: RumRetentionFiltersApiListRetentionFiltersRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listRetentionFilters(param.appId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listRetentionFilters(responseContext); }); }); } @@ -851,20 +636,11 @@ export class RumRetentionFiltersApi { * Returns RUM retention filter objects without attributes from the request body when the request is successful. * @param param The request object */ - public orderRetentionFilters( - param: RumRetentionFiltersApiOrderRetentionFiltersRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.orderRetentionFilters( - param.appId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.orderRetentionFilters(responseContext); + public orderRetentionFilters(param: RumRetentionFiltersApiOrderRetentionFiltersRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.orderRetentionFilters(param.appId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.orderRetentionFilters(responseContext); }); }); } @@ -874,22 +650,12 @@ export class RumRetentionFiltersApi { * Returns RUM retention filter objects from the request body when the request is successful. * @param param The request object */ - public updateRetentionFilter( - param: RumRetentionFiltersApiUpdateRetentionFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateRetentionFilter( - param.appId, - param.rfId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateRetentionFilter(responseContext); + public updateRetentionFilter(param: RumRetentionFiltersApiUpdateRetentionFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateRetentionFilter(param.appId,param.rfId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateRetentionFilter(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts b/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts index 01b6026de6f1..a3440ac75421 100644 --- a/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts +++ b/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { AssetType } from "../models/AssetType"; import { BulkMuteFindingsRequest } from "../models/BulkMuteFindingsRequest"; @@ -73,119 +71,82 @@ import { VulnerabilityTool } from "../models/VulnerabilityTool"; import { VulnerabilityType } from "../models/VulnerabilityType"; export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { - public async cancelHistoricalJob( - jobId: string, - _options?: Configuration - ): Promise { + + public async cancelHistoricalJob(jobId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'cancelHistoricalJob'"); - if (!_config.unstableOperations["v2.cancelHistoricalJob"]) { + if (!_config.unstableOperations['v2.cancelHistoricalJob']) { throw new Error("Unstable operation 'cancelHistoricalJob' is disabled"); } // verify required parameter 'jobId' is not null or undefined if (jobId === null || jobId === undefined) { - throw new RequiredError("jobId", "cancelHistoricalJob"); + throw new RequiredError('jobId', 'cancelHistoricalJob'); } // Path Params - const localVarPath = - "/api/v2/siem-historical-detections/jobs/{job_id}/cancel".replace( - "{job_id}", - encodeURIComponent(String(jobId)) - ); + const localVarPath = '/api/v2/siem-historical-detections/jobs/{job_id}/cancel' + .replace('{job_id}', encodeURIComponent(String(jobId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.cancelHistoricalJob") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.cancelHistoricalJob').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async convertExistingSecurityMonitoringRule( - ruleId: string, - _options?: Configuration - ): Promise { + public async convertExistingSecurityMonitoringRule(ruleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError( - "ruleId", - "convertExistingSecurityMonitoringRule" - ); + throw new RequiredError('ruleId', 'convertExistingSecurityMonitoringRule'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/rules/{rule_id}/convert".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/security_monitoring/rules/{rule_id}/convert' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.SecurityMonitoringApi.convertExistingSecurityMonitoringRule" - ) - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.convertExistingSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async convertJobResultToSignal( - body: ConvertJobResultsToSignalsRequest, - _options?: Configuration - ): Promise { + public async convertJobResultToSignal(body: ConvertJobResultsToSignalsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'convertJobResultToSignal'"); - if (!_config.unstableOperations["v2.convertJobResultToSignal"]) { - throw new Error( - "Unstable operation 'convertJobResultToSignal' is disabled" - ); + if (!_config.unstableOperations['v2.convertJobResultToSignal']) { + throw new Error("Unstable operation 'convertJobResultToSignal' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "convertJobResultToSignal"); + throw new RequiredError('body', 'convertJobResultToSignal'); } // Path Params - const localVarPath = - "/api/v2/siem-historical-detections/jobs/signal_convert"; + const localVarPath = '/api/v2/siem-historical-detections/jobs/signal_convert'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.convertJobResultToSignal") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.convertJobResultToSignal').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ConvertJobResultsToSignalsRequest", ""), @@ -194,91 +155,62 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async convertSecurityMonitoringRuleFromJSONToTerraform( - body: SecurityMonitoringRuleConvertPayload, - _options?: Configuration - ): Promise { + public async convertSecurityMonitoringRuleFromJSONToTerraform(body: SecurityMonitoringRuleConvertPayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError( - "body", - "convertSecurityMonitoringRuleFromJSONToTerraform" - ); + throw new RequiredError('body', 'convertSecurityMonitoringRuleFromJSONToTerraform'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules/convert"; + const localVarPath = '/api/v2/security_monitoring/rules/convert'; // Make Request Context - const requestContext = _config - .getServer( - "v2.SecurityMonitoringApi.convertSecurityMonitoringRuleFromJSONToTerraform" - ) - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.convertSecurityMonitoringRuleFromJSONToTerraform').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringRuleConvertPayload", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringRuleConvertPayload", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSecurityFilter( - body: SecurityFilterCreateRequest, - _options?: Configuration - ): Promise { + public async createSecurityFilter(body: SecurityFilterCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSecurityFilter"); + throw new RequiredError('body', 'createSecurityFilter'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/security_filters"; + const localVarPath = '/api/v2/security_monitoring/configuration/security_filters'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.createSecurityFilter") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.createSecurityFilter').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SecurityFilterCreateRequest", ""), @@ -287,133 +219,94 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSecurityMonitoringRule( - body: SecurityMonitoringRuleCreatePayload, - _options?: Configuration - ): Promise { + public async createSecurityMonitoringRule(body: SecurityMonitoringRuleCreatePayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSecurityMonitoringRule"); + throw new RequiredError('body', 'createSecurityMonitoringRule'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules"; + const localVarPath = '/api/v2/security_monitoring/rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.createSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.createSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringRuleCreatePayload", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringRuleCreatePayload", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSecurityMonitoringSuppression( - body: SecurityMonitoringSuppressionCreateRequest, - _options?: Configuration - ): Promise { + public async createSecurityMonitoringSuppression(body: SecurityMonitoringSuppressionCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSecurityMonitoringSuppression"); + throw new RequiredError('body', 'createSecurityMonitoringSuppression'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/suppressions"; + const localVarPath = '/api/v2/security_monitoring/configuration/suppressions'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.createSecurityMonitoringSuppression") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.createSecurityMonitoringSuppression').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringSuppressionCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringSuppressionCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createSignalNotificationRule( - body: CreateNotificationRuleParameters, - _options?: Configuration - ): Promise { + public async createSignalNotificationRule(body: CreateNotificationRuleParameters,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSignalNotificationRule"); + throw new RequiredError('body', 'createSignalNotificationRule'); } // Path Params - const localVarPath = "/api/v2/security/signals/notification_rules"; + const localVarPath = '/api/v2/security/signals/notification_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.createSignalNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.createSignalNotificationRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateNotificationRuleParameters", ""), @@ -422,40 +315,30 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createVulnerabilityNotificationRule( - body: CreateNotificationRuleParameters, - _options?: Configuration - ): Promise { + public async createVulnerabilityNotificationRule(body: CreateNotificationRuleParameters,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createVulnerabilityNotificationRule"); + throw new RequiredError('body', 'createVulnerabilityNotificationRule'); } // Path Params - const localVarPath = "/api/v2/security/vulnerabilities/notification_rules"; + const localVarPath = '/api/v2/security/vulnerabilities/notification_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.createVulnerabilityNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.createVulnerabilityNotificationRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateNotificationRuleParameters", ""), @@ -464,1855 +347,1013 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteHistoricalJob( - jobId: string, - _options?: Configuration - ): Promise { + public async deleteHistoricalJob(jobId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteHistoricalJob'"); - if (!_config.unstableOperations["v2.deleteHistoricalJob"]) { + if (!_config.unstableOperations['v2.deleteHistoricalJob']) { throw new Error("Unstable operation 'deleteHistoricalJob' is disabled"); } // verify required parameter 'jobId' is not null or undefined if (jobId === null || jobId === undefined) { - throw new RequiredError("jobId", "deleteHistoricalJob"); + throw new RequiredError('jobId', 'deleteHistoricalJob'); } // Path Params - const localVarPath = - "/api/v2/siem-historical-detections/jobs/{job_id}".replace( - "{job_id}", - encodeURIComponent(String(jobId)) - ); + const localVarPath = '/api/v2/siem-historical-detections/jobs/{job_id}' + .replace('{job_id}', encodeURIComponent(String(jobId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.deleteHistoricalJob") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.deleteHistoricalJob').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSecurityFilter( - securityFilterId: string, - _options?: Configuration - ): Promise { + public async deleteSecurityFilter(securityFilterId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'securityFilterId' is not null or undefined if (securityFilterId === null || securityFilterId === undefined) { - throw new RequiredError("securityFilterId", "deleteSecurityFilter"); + throw new RequiredError('securityFilterId', 'deleteSecurityFilter'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace( - "{security_filter_id}", - encodeURIComponent(String(securityFilterId)) - ); + const localVarPath = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}' + .replace('{security_filter_id}', encodeURIComponent(String(securityFilterId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.deleteSecurityFilter") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.deleteSecurityFilter').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSecurityMonitoringRule( - ruleId: string, - _options?: Configuration - ): Promise { + public async deleteSecurityMonitoringRule(ruleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "deleteSecurityMonitoringRule"); + throw new RequiredError('ruleId', 'deleteSecurityMonitoringRule'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/security_monitoring/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.deleteSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.deleteSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSecurityMonitoringSuppression( - suppressionId: string, - _options?: Configuration - ): Promise { + public async deleteSecurityMonitoringSuppression(suppressionId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'suppressionId' is not null or undefined if (suppressionId === null || suppressionId === undefined) { - throw new RequiredError( - "suppressionId", - "deleteSecurityMonitoringSuppression" - ); + throw new RequiredError('suppressionId', 'deleteSecurityMonitoringSuppression'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace( - "{suppression_id}", - encodeURIComponent(String(suppressionId)) - ); + const localVarPath = '/api/v2/security_monitoring/configuration/suppressions/{suppression_id}' + .replace('{suppression_id}', encodeURIComponent(String(suppressionId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.deleteSecurityMonitoringSuppression") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.deleteSecurityMonitoringSuppression').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSignalNotificationRule( - id: string, - _options?: Configuration - ): Promise { + public async deleteSignalNotificationRule(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "deleteSignalNotificationRule"); + throw new RequiredError('id', 'deleteSignalNotificationRule'); } // Path Params - const localVarPath = - "/api/v2/security/signals/notification_rules/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/security/signals/notification_rules/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.deleteSignalNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.deleteSignalNotificationRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteVulnerabilityNotificationRule( - id: string, - _options?: Configuration - ): Promise { + public async deleteVulnerabilityNotificationRule(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "deleteVulnerabilityNotificationRule"); + throw new RequiredError('id', 'deleteVulnerabilityNotificationRule'); } // Path Params - const localVarPath = - "/api/v2/security/vulnerabilities/notification_rules/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/security/vulnerabilities/notification_rules/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.deleteVulnerabilityNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.deleteVulnerabilityNotificationRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async editSecurityMonitoringSignalAssignee( - signalId: string, - body: SecurityMonitoringSignalAssigneeUpdateRequest, - _options?: Configuration - ): Promise { + public async editSecurityMonitoringSignalAssignee(signalId: string,body: SecurityMonitoringSignalAssigneeUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError( - "signalId", - "editSecurityMonitoringSignalAssignee" - ); + throw new RequiredError('signalId', 'editSecurityMonitoringSignalAssignee'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "editSecurityMonitoringSignalAssignee"); + throw new RequiredError('body', 'editSecurityMonitoringSignalAssignee'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/signals/{signal_id}/assignee".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v2/security_monitoring/signals/{signal_id}/assignee' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee" - ) - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringSignalAssigneeUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringSignalAssigneeUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async editSecurityMonitoringSignalIncidents( - signalId: string, - body: SecurityMonitoringSignalIncidentsUpdateRequest, - _options?: Configuration - ): Promise { + public async editSecurityMonitoringSignalIncidents(signalId: string,body: SecurityMonitoringSignalIncidentsUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError( - "signalId", - "editSecurityMonitoringSignalIncidents" - ); + throw new RequiredError('signalId', 'editSecurityMonitoringSignalIncidents'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "editSecurityMonitoringSignalIncidents"); + throw new RequiredError('body', 'editSecurityMonitoringSignalIncidents'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/signals/{signal_id}/incidents".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v2/security_monitoring/signals/{signal_id}/incidents' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer( - "v2.SecurityMonitoringApi.editSecurityMonitoringSignalIncidents" - ) - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.editSecurityMonitoringSignalIncidents').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringSignalIncidentsUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringSignalIncidentsUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async editSecurityMonitoringSignalState( - signalId: string, - body: SecurityMonitoringSignalStateUpdateRequest, - _options?: Configuration - ): Promise { + public async editSecurityMonitoringSignalState(signalId: string,body: SecurityMonitoringSignalStateUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError("signalId", "editSecurityMonitoringSignalState"); + throw new RequiredError('signalId', 'editSecurityMonitoringSignalState'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "editSecurityMonitoringSignalState"); + throw new RequiredError('body', 'editSecurityMonitoringSignalState'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/signals/{signal_id}/state".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v2/security_monitoring/signals/{signal_id}/state' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.editSecurityMonitoringSignalState") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.editSecurityMonitoringSignalState').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringSignalStateUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringSignalStateUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getFinding( - findingId: string, - snapshotTimestamp?: number, - _options?: Configuration - ): Promise { + public async getFinding(findingId: string,snapshotTimestamp?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getFinding'"); - if (!_config.unstableOperations["v2.getFinding"]) { + if (!_config.unstableOperations['v2.getFinding']) { throw new Error("Unstable operation 'getFinding' is disabled"); } // verify required parameter 'findingId' is not null or undefined if (findingId === null || findingId === undefined) { - throw new RequiredError("findingId", "getFinding"); + throw new RequiredError('findingId', 'getFinding'); } // Path Params - const localVarPath = - "/api/v2/posture_management/findings/{finding_id}".replace( - "{finding_id}", - encodeURIComponent(String(findingId)) - ); + const localVarPath = '/api/v2/posture_management/findings/{finding_id}' + .replace('{finding_id}', encodeURIComponent(String(findingId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getFinding") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getFinding').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (snapshotTimestamp !== undefined) { - requestContext.setQueryParam( - "snapshot_timestamp", - ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), - "" - ); + requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getHistoricalJob( - jobId: string, - _options?: Configuration - ): Promise { + public async getHistoricalJob(jobId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getHistoricalJob'"); - if (!_config.unstableOperations["v2.getHistoricalJob"]) { + if (!_config.unstableOperations['v2.getHistoricalJob']) { throw new Error("Unstable operation 'getHistoricalJob' is disabled"); } // verify required parameter 'jobId' is not null or undefined if (jobId === null || jobId === undefined) { - throw new RequiredError("jobId", "getHistoricalJob"); + throw new RequiredError('jobId', 'getHistoricalJob'); } // Path Params - const localVarPath = - "/api/v2/siem-historical-detections/jobs/{job_id}".replace( - "{job_id}", - encodeURIComponent(String(jobId)) - ); + const localVarPath = '/api/v2/siem-historical-detections/jobs/{job_id}' + .replace('{job_id}', encodeURIComponent(String(jobId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getHistoricalJob") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getHistoricalJob').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getRuleVersionHistory( - ruleId: string, - pageSize?: number, - pageNumber?: number, - _options?: Configuration - ): Promise { + public async getRuleVersionHistory(ruleId: string,pageSize?: number,pageNumber?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getRuleVersionHistory'"); - if (!_config.unstableOperations["v2.getRuleVersionHistory"]) { + if (!_config.unstableOperations['v2.getRuleVersionHistory']) { throw new Error("Unstable operation 'getRuleVersionHistory' is disabled"); } // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "getRuleVersionHistory"); + throw new RequiredError('ruleId', 'getRuleVersionHistory'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/rules/{rule_id}/version_history".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/security_monitoring/rules/{rule_id}/version_history' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getRuleVersionHistory") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getRuleVersionHistory').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSBOM( - assetType: AssetType, - filterAssetName: string, - filterRepoDigest?: string, - _options?: Configuration - ): Promise { + public async getSBOM(assetType: AssetType,filterAssetName: string,filterRepoDigest?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getSBOM'"); - if (!_config.unstableOperations["v2.getSBOM"]) { + if (!_config.unstableOperations['v2.getSBOM']) { throw new Error("Unstable operation 'getSBOM' is disabled"); } // verify required parameter 'assetType' is not null or undefined if (assetType === null || assetType === undefined) { - throw new RequiredError("assetType", "getSBOM"); + throw new RequiredError('assetType', 'getSBOM'); } // verify required parameter 'filterAssetName' is not null or undefined if (filterAssetName === null || filterAssetName === undefined) { - throw new RequiredError("filterAssetName", "getSBOM"); + throw new RequiredError('filterAssetName', 'getSBOM'); } // Path Params - const localVarPath = "/api/v2/security/sboms/{asset_type}".replace( - "{asset_type}", - encodeURIComponent(String(assetType)) - ); + const localVarPath = '/api/v2/security/sboms/{asset_type}' + .replace('{asset_type}', encodeURIComponent(String(assetType))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSBOM") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSBOM').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterAssetName !== undefined) { - requestContext.setQueryParam( - "filter[asset_name]", - ObjectSerializer.serialize(filterAssetName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset_name]", ObjectSerializer.serialize(filterAssetName, "string", ""), ""); } if (filterRepoDigest !== undefined) { - requestContext.setQueryParam( - "filter[repo_digest]", - ObjectSerializer.serialize(filterRepoDigest, "string", ""), - "" - ); + requestContext.setQueryParam("filter[repo_digest]", ObjectSerializer.serialize(filterRepoDigest, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSecurityFilter( - securityFilterId: string, - _options?: Configuration - ): Promise { + public async getSecurityFilter(securityFilterId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'securityFilterId' is not null or undefined if (securityFilterId === null || securityFilterId === undefined) { - throw new RequiredError("securityFilterId", "getSecurityFilter"); + throw new RequiredError('securityFilterId', 'getSecurityFilter'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace( - "{security_filter_id}", - encodeURIComponent(String(securityFilterId)) - ); + const localVarPath = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}' + .replace('{security_filter_id}', encodeURIComponent(String(securityFilterId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSecurityFilter") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSecurityFilter').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSecurityMonitoringRule( - ruleId: string, - _options?: Configuration - ): Promise { + public async getSecurityMonitoringRule(ruleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "getSecurityMonitoringRule"); + throw new RequiredError('ruleId', 'getSecurityMonitoringRule'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/security_monitoring/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSecurityMonitoringSignal( - signalId: string, - _options?: Configuration - ): Promise { + public async getSecurityMonitoringSignal(signalId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'signalId' is not null or undefined if (signalId === null || signalId === undefined) { - throw new RequiredError("signalId", "getSecurityMonitoringSignal"); + throw new RequiredError('signalId', 'getSecurityMonitoringSignal'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/signals/{signal_id}".replace( - "{signal_id}", - encodeURIComponent(String(signalId)) - ); + const localVarPath = '/api/v2/security_monitoring/signals/{signal_id}' + .replace('{signal_id}', encodeURIComponent(String(signalId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSecurityMonitoringSignal") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSecurityMonitoringSignal').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSecurityMonitoringSuppression( - suppressionId: string, - _options?: Configuration - ): Promise { + public async getSecurityMonitoringSuppression(suppressionId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'suppressionId' is not null or undefined if (suppressionId === null || suppressionId === undefined) { - throw new RequiredError( - "suppressionId", - "getSecurityMonitoringSuppression" - ); + throw new RequiredError('suppressionId', 'getSecurityMonitoringSuppression'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace( - "{suppression_id}", - encodeURIComponent(String(suppressionId)) - ); + const localVarPath = '/api/v2/security_monitoring/configuration/suppressions/{suppression_id}' + .replace('{suppression_id}', encodeURIComponent(String(suppressionId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSecurityMonitoringSuppression") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSecurityMonitoringSuppression').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSignalNotificationRule( - id: string, - _options?: Configuration - ): Promise { + public async getSignalNotificationRule(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "getSignalNotificationRule"); + throw new RequiredError('id', 'getSignalNotificationRule'); } // Path Params - const localVarPath = - "/api/v2/security/signals/notification_rules/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/security/signals/notification_rules/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSignalNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSignalNotificationRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSignalNotificationRules( - _options?: Configuration - ): Promise { + public async getSignalNotificationRules(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/security/signals/notification_rules"; + const localVarPath = '/api/v2/security/signals/notification_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getSignalNotificationRules") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getSignalNotificationRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getVulnerabilityNotificationRule( - id: string, - _options?: Configuration - ): Promise { + public async getVulnerabilityNotificationRule(id: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "getVulnerabilityNotificationRule"); + throw new RequiredError('id', 'getVulnerabilityNotificationRule'); } // Path Params - const localVarPath = - "/api/v2/security/vulnerabilities/notification_rules/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/security/vulnerabilities/notification_rules/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getVulnerabilityNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getVulnerabilityNotificationRule').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getVulnerabilityNotificationRules( - _options?: Configuration - ): Promise { + public async getVulnerabilityNotificationRules(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/security/vulnerabilities/notification_rules"; + const localVarPath = '/api/v2/security/vulnerabilities/notification_rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.getVulnerabilityNotificationRules") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.getVulnerabilityNotificationRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listFindings( - pageLimit?: number, - snapshotTimestamp?: number, - pageCursor?: string, - filterTags?: string, - filterEvaluationChangedAt?: string, - filterMuted?: boolean, - filterRuleId?: string, - filterRuleName?: string, - filterResourceType?: string, - filterDiscoveryTimestamp?: string, - filterEvaluation?: FindingEvaluation, - filterStatus?: FindingStatus, - filterVulnerabilityType?: Array, - _options?: Configuration - ): Promise { + public async listFindings(pageLimit?: number,snapshotTimestamp?: number,pageCursor?: string,filterTags?: string,filterEvaluationChangedAt?: string,filterMuted?: boolean,filterRuleId?: string,filterRuleName?: string,filterResourceType?: string,filterDiscoveryTimestamp?: string,filterEvaluation?: FindingEvaluation,filterStatus?: FindingStatus,filterVulnerabilityType?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listFindings'"); - if (!_config.unstableOperations["v2.listFindings"]) { + if (!_config.unstableOperations['v2.listFindings']) { throw new Error("Unstable operation 'listFindings' is disabled"); } // Path Params - const localVarPath = "/api/v2/posture_management/findings"; + const localVarPath = '/api/v2/posture_management/findings'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listFindings") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listFindings').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); } if (snapshotTimestamp !== undefined) { - requestContext.setQueryParam( - "snapshot_timestamp", - ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), - "" - ); + requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (filterTags !== undefined) { - requestContext.setQueryParam( - "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", ""), - "" - ); + requestContext.setQueryParam("filter[tags]", ObjectSerializer.serialize(filterTags, "string", ""), ""); } if (filterEvaluationChangedAt !== undefined) { - requestContext.setQueryParam( - "filter[evaluation_changed_at]", - ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""), - "" - ); + requestContext.setQueryParam("filter[evaluation_changed_at]", ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""), ""); } if (filterMuted !== undefined) { - requestContext.setQueryParam( - "filter[muted]", - ObjectSerializer.serialize(filterMuted, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[muted]", ObjectSerializer.serialize(filterMuted, "boolean", ""), ""); } if (filterRuleId !== undefined) { - requestContext.setQueryParam( - "filter[rule_id]", - ObjectSerializer.serialize(filterRuleId, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule_id]", ObjectSerializer.serialize(filterRuleId, "string", ""), ""); } if (filterRuleName !== undefined) { - requestContext.setQueryParam( - "filter[rule_name]", - ObjectSerializer.serialize(filterRuleName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule_name]", ObjectSerializer.serialize(filterRuleName, "string", ""), ""); } if (filterResourceType !== undefined) { - requestContext.setQueryParam( - "filter[resource_type]", - ObjectSerializer.serialize(filterResourceType, "string", ""), - "" - ); + requestContext.setQueryParam("filter[resource_type]", ObjectSerializer.serialize(filterResourceType, "string", ""), ""); } if (filterDiscoveryTimestamp !== undefined) { - requestContext.setQueryParam( - "filter[discovery_timestamp]", - ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""), - "" - ); + requestContext.setQueryParam("filter[discovery_timestamp]", ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""), ""); } if (filterEvaluation !== undefined) { - requestContext.setQueryParam( - "filter[evaluation]", - ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""), - "" - ); + requestContext.setQueryParam("filter[evaluation]", ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""), ""); } if (filterStatus !== undefined) { - requestContext.setQueryParam( - "filter[status]", - ObjectSerializer.serialize(filterStatus, "FindingStatus", ""), - "" - ); + requestContext.setQueryParam("filter[status]", ObjectSerializer.serialize(filterStatus, "FindingStatus", ""), ""); } if (filterVulnerabilityType !== undefined) { - requestContext.setQueryParam( - "filter[vulnerability_type]", - ObjectSerializer.serialize( - filterVulnerabilityType, - "Array", - "" - ), - "multi" - ); + requestContext.setQueryParam("filter[vulnerability_type]", ObjectSerializer.serialize(filterVulnerabilityType, "Array", ""), "multi"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listHistoricalJobs( - pageSize?: number, - pageNumber?: number, - sort?: string, - filterQuery?: string, - _options?: Configuration - ): Promise { + public async listHistoricalJobs(pageSize?: number,pageNumber?: number,sort?: string,filterQuery?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listHistoricalJobs'"); - if (!_config.unstableOperations["v2.listHistoricalJobs"]) { + if (!_config.unstableOperations['v2.listHistoricalJobs']) { throw new Error("Unstable operation 'listHistoricalJobs' is disabled"); } // Path Params - const localVarPath = "/api/v2/siem-historical-detections/jobs"; + const localVarPath = '/api/v2/siem-historical-detections/jobs'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listHistoricalJobs") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listHistoricalJobs').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSecurityFilters( - _options?: Configuration - ): Promise { + public async listSecurityFilters(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/security_filters"; + const localVarPath = '/api/v2/security_monitoring/configuration/security_filters'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listSecurityFilters") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listSecurityFilters').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSecurityMonitoringRules( - pageSize?: number, - pageNumber?: number, - _options?: Configuration - ): Promise { + public async listSecurityMonitoringRules(pageSize?: number,pageNumber?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/security_monitoring/rules"; + const localVarPath = '/api/v2/security_monitoring/rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listSecurityMonitoringRules") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listSecurityMonitoringRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSecurityMonitoringSignals( - filterQuery?: string, - filterFrom?: Date, - filterTo?: Date, - sort?: SecurityMonitoringSignalsSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listSecurityMonitoringSignals(filterQuery?: string,filterFrom?: Date,filterTo?: Date,sort?: SecurityMonitoringSignalsSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/security_monitoring/signals"; + const localVarPath = '/api/v2/security_monitoring/signals'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listSecurityMonitoringSignals") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listSecurityMonitoringSignals').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSecurityMonitoringSuppressions( - _options?: Configuration - ): Promise { + public async listSecurityMonitoringSuppressions(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/suppressions"; + const localVarPath = '/api/v2/security_monitoring/configuration/suppressions'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listSecurityMonitoringSuppressions") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listSecurityMonitoringSuppressions').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listVulnerabilities( - pageToken?: string, - pageNumber?: number, - filterType?: VulnerabilityType, - filterCvssBaseScoreOp?: number, - filterCvssBaseSeverity?: VulnerabilitySeverity, - filterCvssBaseVector?: string, - filterCvssDatadogScoreOp?: number, - filterCvssDatadogSeverity?: VulnerabilitySeverity, - filterCvssDatadogVector?: string, - filterStatus?: VulnerabilityStatus, - filterTool?: VulnerabilityTool, - filterLibraryName?: string, - filterLibraryVersion?: string, - filterAdvisoryId?: string, - filterRisksExploitationProbability?: boolean, - filterRisksPocExploitAvailable?: boolean, - filterRisksExploitAvailable?: boolean, - filterRisksEpssScoreOp?: number, - filterRisksEpssSeverity?: VulnerabilitySeverity, - filterLanguage?: string, - filterEcosystem?: VulnerabilityEcosystem, - filterCodeLocationLocation?: string, - filterCodeLocationFilePath?: string, - filterCodeLocationMethod?: string, - filterFixAvailable?: boolean, - filterRepoDigests?: string, - filterAssetName?: string, - filterAssetType?: AssetType, - filterAssetVersionFirst?: string, - filterAssetVersionLast?: string, - filterAssetRepositoryUrl?: string, - filterAssetRisksInProduction?: boolean, - filterAssetRisksUnderAttack?: boolean, - filterAssetRisksIsPubliclyAccessible?: boolean, - filterAssetRisksHasPrivilegedAccess?: boolean, - filterAssetRisksHasAccessToSensitiveData?: boolean, - filterAssetEnvironments?: string, - filterAssetArch?: string, - filterAssetOperatingSystemName?: string, - filterAssetOperatingSystemVersion?: string, - _options?: Configuration - ): Promise { + public async listVulnerabilities(pageToken?: string,pageNumber?: number,filterType?: VulnerabilityType,filterCvssBaseScoreOp?: number,filterCvssBaseSeverity?: VulnerabilitySeverity,filterCvssBaseVector?: string,filterCvssDatadogScoreOp?: number,filterCvssDatadogSeverity?: VulnerabilitySeverity,filterCvssDatadogVector?: string,filterStatus?: VulnerabilityStatus,filterTool?: VulnerabilityTool,filterLibraryName?: string,filterLibraryVersion?: string,filterAdvisoryId?: string,filterRisksExploitationProbability?: boolean,filterRisksPocExploitAvailable?: boolean,filterRisksExploitAvailable?: boolean,filterRisksEpssScoreOp?: number,filterRisksEpssSeverity?: VulnerabilitySeverity,filterLanguage?: string,filterEcosystem?: VulnerabilityEcosystem,filterCodeLocationLocation?: string,filterCodeLocationFilePath?: string,filterCodeLocationMethod?: string,filterFixAvailable?: boolean,filterRepoDigests?: string,filterAssetName?: string,filterAssetType?: AssetType,filterAssetVersionFirst?: string,filterAssetVersionLast?: string,filterAssetRepositoryUrl?: string,filterAssetRisksInProduction?: boolean,filterAssetRisksUnderAttack?: boolean,filterAssetRisksIsPubliclyAccessible?: boolean,filterAssetRisksHasPrivilegedAccess?: boolean,filterAssetRisksHasAccessToSensitiveData?: boolean,filterAssetEnvironments?: string,filterAssetArch?: string,filterAssetOperatingSystemName?: string,filterAssetOperatingSystemVersion?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listVulnerabilities'"); - if (!_config.unstableOperations["v2.listVulnerabilities"]) { + if (!_config.unstableOperations['v2.listVulnerabilities']) { throw new Error("Unstable operation 'listVulnerabilities' is disabled"); } // Path Params - const localVarPath = "/api/v2/security/vulnerabilities"; + const localVarPath = '/api/v2/security/vulnerabilities'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listVulnerabilities") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listVulnerabilities').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageToken !== undefined) { - requestContext.setQueryParam( - "page[token]", - ObjectSerializer.serialize(pageToken, "string", ""), - "" - ); + requestContext.setQueryParam("page[token]", ObjectSerializer.serialize(pageToken, "string", ""), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (filterType !== undefined) { - requestContext.setQueryParam( - "filter[type]", - ObjectSerializer.serialize(filterType, "VulnerabilityType", ""), - "" - ); + requestContext.setQueryParam("filter[type]", ObjectSerializer.serialize(filterType, "VulnerabilityType", ""), ""); } if (filterCvssBaseScoreOp !== undefined) { - requestContext.setQueryParam( - "filter[cvss.base.score][`$op`]", - ObjectSerializer.serialize(filterCvssBaseScoreOp, "number", "double"), - "" - ); + requestContext.setQueryParam("filter[cvss.base.score][`$op`]", ObjectSerializer.serialize(filterCvssBaseScoreOp, "number", "double"), ""); } if (filterCvssBaseSeverity !== undefined) { - requestContext.setQueryParam( - "filter[cvss.base.severity]", - ObjectSerializer.serialize( - filterCvssBaseSeverity, - "VulnerabilitySeverity", - "" - ), - "" - ); + requestContext.setQueryParam("filter[cvss.base.severity]", ObjectSerializer.serialize(filterCvssBaseSeverity, "VulnerabilitySeverity", ""), ""); } if (filterCvssBaseVector !== undefined) { - requestContext.setQueryParam( - "filter[cvss.base.vector]", - ObjectSerializer.serialize(filterCvssBaseVector, "string", ""), - "" - ); + requestContext.setQueryParam("filter[cvss.base.vector]", ObjectSerializer.serialize(filterCvssBaseVector, "string", ""), ""); } if (filterCvssDatadogScoreOp !== undefined) { - requestContext.setQueryParam( - "filter[cvss.datadog.score][`$op`]", - ObjectSerializer.serialize( - filterCvssDatadogScoreOp, - "number", - "double" - ), - "" - ); + requestContext.setQueryParam("filter[cvss.datadog.score][`$op`]", ObjectSerializer.serialize(filterCvssDatadogScoreOp, "number", "double"), ""); } if (filterCvssDatadogSeverity !== undefined) { - requestContext.setQueryParam( - "filter[cvss.datadog.severity]", - ObjectSerializer.serialize( - filterCvssDatadogSeverity, - "VulnerabilitySeverity", - "" - ), - "" - ); + requestContext.setQueryParam("filter[cvss.datadog.severity]", ObjectSerializer.serialize(filterCvssDatadogSeverity, "VulnerabilitySeverity", ""), ""); } if (filterCvssDatadogVector !== undefined) { - requestContext.setQueryParam( - "filter[cvss.datadog.vector]", - ObjectSerializer.serialize(filterCvssDatadogVector, "string", ""), - "" - ); + requestContext.setQueryParam("filter[cvss.datadog.vector]", ObjectSerializer.serialize(filterCvssDatadogVector, "string", ""), ""); } if (filterStatus !== undefined) { - requestContext.setQueryParam( - "filter[status]", - ObjectSerializer.serialize(filterStatus, "VulnerabilityStatus", ""), - "" - ); + requestContext.setQueryParam("filter[status]", ObjectSerializer.serialize(filterStatus, "VulnerabilityStatus", ""), ""); } if (filterTool !== undefined) { - requestContext.setQueryParam( - "filter[tool]", - ObjectSerializer.serialize(filterTool, "VulnerabilityTool", ""), - "" - ); + requestContext.setQueryParam("filter[tool]", ObjectSerializer.serialize(filterTool, "VulnerabilityTool", ""), ""); } if (filterLibraryName !== undefined) { - requestContext.setQueryParam( - "filter[library.name]", - ObjectSerializer.serialize(filterLibraryName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[library.name]", ObjectSerializer.serialize(filterLibraryName, "string", ""), ""); } if (filterLibraryVersion !== undefined) { - requestContext.setQueryParam( - "filter[library.version]", - ObjectSerializer.serialize(filterLibraryVersion, "string", ""), - "" - ); + requestContext.setQueryParam("filter[library.version]", ObjectSerializer.serialize(filterLibraryVersion, "string", ""), ""); } if (filterAdvisoryId !== undefined) { - requestContext.setQueryParam( - "filter[advisory_id]", - ObjectSerializer.serialize(filterAdvisoryId, "string", ""), - "" - ); + requestContext.setQueryParam("filter[advisory_id]", ObjectSerializer.serialize(filterAdvisoryId, "string", ""), ""); } if (filterRisksExploitationProbability !== undefined) { - requestContext.setQueryParam( - "filter[risks.exploitation_probability]", - ObjectSerializer.serialize( - filterRisksExploitationProbability, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[risks.exploitation_probability]", ObjectSerializer.serialize(filterRisksExploitationProbability, "boolean", ""), ""); } if (filterRisksPocExploitAvailable !== undefined) { - requestContext.setQueryParam( - "filter[risks.poc_exploit_available]", - ObjectSerializer.serialize( - filterRisksPocExploitAvailable, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[risks.poc_exploit_available]", ObjectSerializer.serialize(filterRisksPocExploitAvailable, "boolean", ""), ""); } if (filterRisksExploitAvailable !== undefined) { - requestContext.setQueryParam( - "filter[risks.exploit_available]", - ObjectSerializer.serialize(filterRisksExploitAvailable, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[risks.exploit_available]", ObjectSerializer.serialize(filterRisksExploitAvailable, "boolean", ""), ""); } if (filterRisksEpssScoreOp !== undefined) { - requestContext.setQueryParam( - "filter[risks.epss.score][`$op`]", - ObjectSerializer.serialize(filterRisksEpssScoreOp, "number", "double"), - "" - ); + requestContext.setQueryParam("filter[risks.epss.score][`$op`]", ObjectSerializer.serialize(filterRisksEpssScoreOp, "number", "double"), ""); } if (filterRisksEpssSeverity !== undefined) { - requestContext.setQueryParam( - "filter[risks.epss.severity]", - ObjectSerializer.serialize( - filterRisksEpssSeverity, - "VulnerabilitySeverity", - "" - ), - "" - ); + requestContext.setQueryParam("filter[risks.epss.severity]", ObjectSerializer.serialize(filterRisksEpssSeverity, "VulnerabilitySeverity", ""), ""); } if (filterLanguage !== undefined) { - requestContext.setQueryParam( - "filter[language]", - ObjectSerializer.serialize(filterLanguage, "string", ""), - "" - ); + requestContext.setQueryParam("filter[language]", ObjectSerializer.serialize(filterLanguage, "string", ""), ""); } if (filterEcosystem !== undefined) { - requestContext.setQueryParam( - "filter[ecosystem]", - ObjectSerializer.serialize( - filterEcosystem, - "VulnerabilityEcosystem", - "" - ), - "" - ); + requestContext.setQueryParam("filter[ecosystem]", ObjectSerializer.serialize(filterEcosystem, "VulnerabilityEcosystem", ""), ""); } if (filterCodeLocationLocation !== undefined) { - requestContext.setQueryParam( - "filter[code_location.location]", - ObjectSerializer.serialize(filterCodeLocationLocation, "string", ""), - "" - ); + requestContext.setQueryParam("filter[code_location.location]", ObjectSerializer.serialize(filterCodeLocationLocation, "string", ""), ""); } if (filterCodeLocationFilePath !== undefined) { - requestContext.setQueryParam( - "filter[code_location.file_path]", - ObjectSerializer.serialize(filterCodeLocationFilePath, "string", ""), - "" - ); + requestContext.setQueryParam("filter[code_location.file_path]", ObjectSerializer.serialize(filterCodeLocationFilePath, "string", ""), ""); } if (filterCodeLocationMethod !== undefined) { - requestContext.setQueryParam( - "filter[code_location.method]", - ObjectSerializer.serialize(filterCodeLocationMethod, "string", ""), - "" - ); + requestContext.setQueryParam("filter[code_location.method]", ObjectSerializer.serialize(filterCodeLocationMethod, "string", ""), ""); } if (filterFixAvailable !== undefined) { - requestContext.setQueryParam( - "filter[fix_available]", - ObjectSerializer.serialize(filterFixAvailable, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[fix_available]", ObjectSerializer.serialize(filterFixAvailable, "boolean", ""), ""); } if (filterRepoDigests !== undefined) { - requestContext.setQueryParam( - "filter[repo_digests]", - ObjectSerializer.serialize(filterRepoDigests, "string", ""), - "" - ); + requestContext.setQueryParam("filter[repo_digests]", ObjectSerializer.serialize(filterRepoDigests, "string", ""), ""); } if (filterAssetName !== undefined) { - requestContext.setQueryParam( - "filter[asset.name]", - ObjectSerializer.serialize(filterAssetName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset.name]", ObjectSerializer.serialize(filterAssetName, "string", ""), ""); } if (filterAssetType !== undefined) { - requestContext.setQueryParam( - "filter[asset.type]", - ObjectSerializer.serialize(filterAssetType, "AssetType", ""), - "" - ); + requestContext.setQueryParam("filter[asset.type]", ObjectSerializer.serialize(filterAssetType, "AssetType", ""), ""); } if (filterAssetVersionFirst !== undefined) { - requestContext.setQueryParam( - "filter[asset.version.first]", - ObjectSerializer.serialize(filterAssetVersionFirst, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset.version.first]", ObjectSerializer.serialize(filterAssetVersionFirst, "string", ""), ""); } if (filterAssetVersionLast !== undefined) { - requestContext.setQueryParam( - "filter[asset.version.last]", - ObjectSerializer.serialize(filterAssetVersionLast, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset.version.last]", ObjectSerializer.serialize(filterAssetVersionLast, "string", ""), ""); } if (filterAssetRepositoryUrl !== undefined) { - requestContext.setQueryParam( - "filter[asset.repository_url]", - ObjectSerializer.serialize(filterAssetRepositoryUrl, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset.repository_url]", ObjectSerializer.serialize(filterAssetRepositoryUrl, "string", ""), ""); } if (filterAssetRisksInProduction !== undefined) { - requestContext.setQueryParam( - "filter[asset.risks.in_production]", - ObjectSerializer.serialize(filterAssetRisksInProduction, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[asset.risks.in_production]", ObjectSerializer.serialize(filterAssetRisksInProduction, "boolean", ""), ""); } if (filterAssetRisksUnderAttack !== undefined) { - requestContext.setQueryParam( - "filter[asset.risks.under_attack]", - ObjectSerializer.serialize(filterAssetRisksUnderAttack, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[asset.risks.under_attack]", ObjectSerializer.serialize(filterAssetRisksUnderAttack, "boolean", ""), ""); } if (filterAssetRisksIsPubliclyAccessible !== undefined) { - requestContext.setQueryParam( - "filter[asset.risks.is_publicly_accessible]", - ObjectSerializer.serialize( - filterAssetRisksIsPubliclyAccessible, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[asset.risks.is_publicly_accessible]", ObjectSerializer.serialize(filterAssetRisksIsPubliclyAccessible, "boolean", ""), ""); } if (filterAssetRisksHasPrivilegedAccess !== undefined) { - requestContext.setQueryParam( - "filter[asset.risks.has_privileged_access]", - ObjectSerializer.serialize( - filterAssetRisksHasPrivilegedAccess, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[asset.risks.has_privileged_access]", ObjectSerializer.serialize(filterAssetRisksHasPrivilegedAccess, "boolean", ""), ""); } if (filterAssetRisksHasAccessToSensitiveData !== undefined) { - requestContext.setQueryParam( - "filter[asset.risks.has_access_to_sensitive_data]", - ObjectSerializer.serialize( - filterAssetRisksHasAccessToSensitiveData, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[asset.risks.has_access_to_sensitive_data]", ObjectSerializer.serialize(filterAssetRisksHasAccessToSensitiveData, "boolean", ""), ""); } if (filterAssetEnvironments !== undefined) { - requestContext.setQueryParam( - "filter[asset.environments]", - ObjectSerializer.serialize(filterAssetEnvironments, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset.environments]", ObjectSerializer.serialize(filterAssetEnvironments, "string", ""), ""); } if (filterAssetArch !== undefined) { - requestContext.setQueryParam( - "filter[asset.arch]", - ObjectSerializer.serialize(filterAssetArch, "string", ""), - "" - ); + requestContext.setQueryParam("filter[asset.arch]", ObjectSerializer.serialize(filterAssetArch, "string", ""), ""); } if (filterAssetOperatingSystemName !== undefined) { - requestContext.setQueryParam( - "filter[asset.operating_system.name]", - ObjectSerializer.serialize( - filterAssetOperatingSystemName, - "string", - "" - ), - "" - ); + requestContext.setQueryParam("filter[asset.operating_system.name]", ObjectSerializer.serialize(filterAssetOperatingSystemName, "string", ""), ""); } if (filterAssetOperatingSystemVersion !== undefined) { - requestContext.setQueryParam( - "filter[asset.operating_system.version]", - ObjectSerializer.serialize( - filterAssetOperatingSystemVersion, - "string", - "" - ), - "" - ); + requestContext.setQueryParam("filter[asset.operating_system.version]", ObjectSerializer.serialize(filterAssetOperatingSystemVersion, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listVulnerableAssets( - pageToken?: string, - pageNumber?: number, - filterName?: string, - filterType?: AssetType, - filterVersionFirst?: string, - filterVersionLast?: string, - filterRepositoryUrl?: string, - filterRisksInProduction?: boolean, - filterRisksUnderAttack?: boolean, - filterRisksIsPubliclyAccessible?: boolean, - filterRisksHasPrivilegedAccess?: boolean, - filterRisksHasAccessToSensitiveData?: boolean, - filterEnvironments?: string, - filterArch?: string, - filterOperatingSystemName?: string, - filterOperatingSystemVersion?: string, - _options?: Configuration - ): Promise { + public async listVulnerableAssets(pageToken?: string,pageNumber?: number,filterName?: string,filterType?: AssetType,filterVersionFirst?: string,filterVersionLast?: string,filterRepositoryUrl?: string,filterRisksInProduction?: boolean,filterRisksUnderAttack?: boolean,filterRisksIsPubliclyAccessible?: boolean,filterRisksHasPrivilegedAccess?: boolean,filterRisksHasAccessToSensitiveData?: boolean,filterEnvironments?: string,filterArch?: string,filterOperatingSystemName?: string,filterOperatingSystemVersion?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listVulnerableAssets'"); - if (!_config.unstableOperations["v2.listVulnerableAssets"]) { + if (!_config.unstableOperations['v2.listVulnerableAssets']) { throw new Error("Unstable operation 'listVulnerableAssets' is disabled"); } // Path Params - const localVarPath = "/api/v2/security/assets"; + const localVarPath = '/api/v2/security/assets'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.listVulnerableAssets") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.listVulnerableAssets').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageToken !== undefined) { - requestContext.setQueryParam( - "page[token]", - ObjectSerializer.serialize(pageToken, "string", ""), - "" - ); + requestContext.setQueryParam("page[token]", ObjectSerializer.serialize(pageToken, "string", ""), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (filterName !== undefined) { - requestContext.setQueryParam( - "filter[name]", - ObjectSerializer.serialize(filterName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[name]", ObjectSerializer.serialize(filterName, "string", ""), ""); } if (filterType !== undefined) { - requestContext.setQueryParam( - "filter[type]", - ObjectSerializer.serialize(filterType, "AssetType", ""), - "" - ); + requestContext.setQueryParam("filter[type]", ObjectSerializer.serialize(filterType, "AssetType", ""), ""); } if (filterVersionFirst !== undefined) { - requestContext.setQueryParam( - "filter[version.first]", - ObjectSerializer.serialize(filterVersionFirst, "string", ""), - "" - ); + requestContext.setQueryParam("filter[version.first]", ObjectSerializer.serialize(filterVersionFirst, "string", ""), ""); } if (filterVersionLast !== undefined) { - requestContext.setQueryParam( - "filter[version.last]", - ObjectSerializer.serialize(filterVersionLast, "string", ""), - "" - ); + requestContext.setQueryParam("filter[version.last]", ObjectSerializer.serialize(filterVersionLast, "string", ""), ""); } if (filterRepositoryUrl !== undefined) { - requestContext.setQueryParam( - "filter[repository_url]", - ObjectSerializer.serialize(filterRepositoryUrl, "string", ""), - "" - ); + requestContext.setQueryParam("filter[repository_url]", ObjectSerializer.serialize(filterRepositoryUrl, "string", ""), ""); } if (filterRisksInProduction !== undefined) { - requestContext.setQueryParam( - "filter[risks.in_production]", - ObjectSerializer.serialize(filterRisksInProduction, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[risks.in_production]", ObjectSerializer.serialize(filterRisksInProduction, "boolean", ""), ""); } if (filterRisksUnderAttack !== undefined) { - requestContext.setQueryParam( - "filter[risks.under_attack]", - ObjectSerializer.serialize(filterRisksUnderAttack, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[risks.under_attack]", ObjectSerializer.serialize(filterRisksUnderAttack, "boolean", ""), ""); } if (filterRisksIsPubliclyAccessible !== undefined) { - requestContext.setQueryParam( - "filter[risks.is_publicly_accessible]", - ObjectSerializer.serialize( - filterRisksIsPubliclyAccessible, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[risks.is_publicly_accessible]", ObjectSerializer.serialize(filterRisksIsPubliclyAccessible, "boolean", ""), ""); } if (filterRisksHasPrivilegedAccess !== undefined) { - requestContext.setQueryParam( - "filter[risks.has_privileged_access]", - ObjectSerializer.serialize( - filterRisksHasPrivilegedAccess, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[risks.has_privileged_access]", ObjectSerializer.serialize(filterRisksHasPrivilegedAccess, "boolean", ""), ""); } if (filterRisksHasAccessToSensitiveData !== undefined) { - requestContext.setQueryParam( - "filter[risks.has_access_to_sensitive_data]", - ObjectSerializer.serialize( - filterRisksHasAccessToSensitiveData, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[risks.has_access_to_sensitive_data]", ObjectSerializer.serialize(filterRisksHasAccessToSensitiveData, "boolean", ""), ""); } if (filterEnvironments !== undefined) { - requestContext.setQueryParam( - "filter[environments]", - ObjectSerializer.serialize(filterEnvironments, "string", ""), - "" - ); + requestContext.setQueryParam("filter[environments]", ObjectSerializer.serialize(filterEnvironments, "string", ""), ""); } if (filterArch !== undefined) { - requestContext.setQueryParam( - "filter[arch]", - ObjectSerializer.serialize(filterArch, "string", ""), - "" - ); + requestContext.setQueryParam("filter[arch]", ObjectSerializer.serialize(filterArch, "string", ""), ""); } if (filterOperatingSystemName !== undefined) { - requestContext.setQueryParam( - "filter[operating_system.name]", - ObjectSerializer.serialize(filterOperatingSystemName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[operating_system.name]", ObjectSerializer.serialize(filterOperatingSystemName, "string", ""), ""); } if (filterOperatingSystemVersion !== undefined) { - requestContext.setQueryParam( - "filter[operating_system.version]", - ObjectSerializer.serialize(filterOperatingSystemVersion, "string", ""), - "" - ); + requestContext.setQueryParam("filter[operating_system.version]", ObjectSerializer.serialize(filterOperatingSystemVersion, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async muteFindings( - body: BulkMuteFindingsRequest, - _options?: Configuration - ): Promise { + public async muteFindings(body: BulkMuteFindingsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'muteFindings'"); - if (!_config.unstableOperations["v2.muteFindings"]) { + if (!_config.unstableOperations['v2.muteFindings']) { throw new Error("Unstable operation 'muteFindings' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "muteFindings"); + throw new RequiredError('body', 'muteFindings'); } // Path Params - const localVarPath = "/api/v2/posture_management/findings"; + const localVarPath = '/api/v2/posture_management/findings'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.muteFindings") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.muteFindings').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "BulkMuteFindingsRequest", ""), @@ -2321,49 +1362,36 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async patchSignalNotificationRule( - id: string, - body: PatchNotificationRuleParameters, - _options?: Configuration - ): Promise { + public async patchSignalNotificationRule(id: string,body: PatchNotificationRuleParameters,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "patchSignalNotificationRule"); + throw new RequiredError('id', 'patchSignalNotificationRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "patchSignalNotificationRule"); + throw new RequiredError('body', 'patchSignalNotificationRule'); } // Path Params - const localVarPath = - "/api/v2/security/signals/notification_rules/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/security/signals/notification_rules/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.patchSignalNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.patchSignalNotificationRule').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "PatchNotificationRuleParameters", ""), @@ -2372,50 +1400,36 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async patchVulnerabilityNotificationRule( - id: string, - body: PatchNotificationRuleParameters, - _options?: Configuration - ): Promise { + public async patchVulnerabilityNotificationRule(id: string,body: PatchNotificationRuleParameters,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { - throw new RequiredError("id", "patchVulnerabilityNotificationRule"); + throw new RequiredError('id', 'patchVulnerabilityNotificationRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "patchVulnerabilityNotificationRule"); + throw new RequiredError('body', 'patchVulnerabilityNotificationRule'); } // Path Params - const localVarPath = - "/api/v2/security/vulnerabilities/notification_rules/{id}".replace( - "{id}", - encodeURIComponent(String(id)) - ); + const localVarPath = '/api/v2/security/vulnerabilities/notification_rules/{id}' + .replace('{id}', encodeURIComponent(String(id))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.patchVulnerabilityNotificationRule") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.patchVulnerabilityNotificationRule').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "PatchNotificationRuleParameters", ""), @@ -2424,45 +1438,35 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async runHistoricalJob( - body: RunHistoricalJobRequest, - _options?: Configuration - ): Promise { + public async runHistoricalJob(body: RunHistoricalJobRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'runHistoricalJob'"); - if (!_config.unstableOperations["v2.runHistoricalJob"]) { + if (!_config.unstableOperations['v2.runHistoricalJob']) { throw new Error("Unstable operation 'runHistoricalJob' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "runHistoricalJob"); + throw new RequiredError('body', 'runHistoricalJob'); } // Path Params - const localVarPath = "/api/v2/siem-historical-detections/jobs"; + const localVarPath = '/api/v2/siem-historical-detections/jobs'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.runHistoricalJob") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.runHistoricalJob').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "RunHistoricalJobRequest", ""), @@ -2471,91 +1475,63 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async searchSecurityMonitoringSignals( - body?: SecurityMonitoringSignalListRequest, - _options?: Configuration - ): Promise { + public async searchSecurityMonitoringSignals(body?: SecurityMonitoringSignalListRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/security_monitoring/signals/search"; + const localVarPath = '/api/v2/security_monitoring/signals/search'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.searchSecurityMonitoringSignals") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.searchSecurityMonitoringSignals').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringSignalListRequest", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringSignalListRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async testExistingSecurityMonitoringRule( - ruleId: string, - body: SecurityMonitoringRuleTestRequest, - _options?: Configuration - ): Promise { + public async testExistingSecurityMonitoringRule(ruleId: string,body: SecurityMonitoringRuleTestRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "testExistingSecurityMonitoringRule"); + throw new RequiredError('ruleId', 'testExistingSecurityMonitoringRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "testExistingSecurityMonitoringRule"); + throw new RequiredError('body', 'testExistingSecurityMonitoringRule'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/rules/{rule_id}/test".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/security_monitoring/rules/{rule_id}/test' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.testExistingSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.testExistingSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), @@ -2564,40 +1540,30 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async testSecurityMonitoringRule( - body: SecurityMonitoringRuleTestRequest, - _options?: Configuration - ): Promise { + public async testSecurityMonitoringRule(body: SecurityMonitoringRuleTestRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "testSecurityMonitoringRule"); + throw new RequiredError('body', 'testSecurityMonitoringRule'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules/test"; + const localVarPath = '/api/v2/security_monitoring/rules/test'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.testSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.testSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), @@ -2606,50 +1572,36 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSecurityFilter( - securityFilterId: string, - body: SecurityFilterUpdateRequest, - _options?: Configuration - ): Promise { + public async updateSecurityFilter(securityFilterId: string,body: SecurityFilterUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'securityFilterId' is not null or undefined if (securityFilterId === null || securityFilterId === undefined) { - throw new RequiredError("securityFilterId", "updateSecurityFilter"); + throw new RequiredError('securityFilterId', 'updateSecurityFilter'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSecurityFilter"); + throw new RequiredError('body', 'updateSecurityFilter'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace( - "{security_filter_id}", - encodeURIComponent(String(securityFilterId)) - ); + const localVarPath = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}' + .replace('{security_filter_id}', encodeURIComponent(String(securityFilterId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.updateSecurityFilter") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.updateSecurityFilter').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SecurityFilterUpdateRequest", ""), @@ -2658,177 +1610,122 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSecurityMonitoringRule( - ruleId: string, - body: SecurityMonitoringRuleUpdatePayload, - _options?: Configuration - ): Promise { + public async updateSecurityMonitoringRule(ruleId: string,body: SecurityMonitoringRuleUpdatePayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "updateSecurityMonitoringRule"); + throw new RequiredError('ruleId', 'updateSecurityMonitoringRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSecurityMonitoringRule"); + throw new RequiredError('body', 'updateSecurityMonitoringRule'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/security_monitoring/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.updateSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.updateSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringRuleUpdatePayload", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringRuleUpdatePayload", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSecurityMonitoringSuppression( - suppressionId: string, - body: SecurityMonitoringSuppressionUpdateRequest, - _options?: Configuration - ): Promise { + public async updateSecurityMonitoringSuppression(suppressionId: string,body: SecurityMonitoringSuppressionUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'suppressionId' is not null or undefined if (suppressionId === null || suppressionId === undefined) { - throw new RequiredError( - "suppressionId", - "updateSecurityMonitoringSuppression" - ); + throw new RequiredError('suppressionId', 'updateSecurityMonitoringSuppression'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSecurityMonitoringSuppression"); + throw new RequiredError('body', 'updateSecurityMonitoringSuppression'); } // Path Params - const localVarPath = - "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace( - "{suppression_id}", - encodeURIComponent(String(suppressionId)) - ); + const localVarPath = '/api/v2/security_monitoring/configuration/suppressions/{suppression_id}' + .replace('{suppression_id}', encodeURIComponent(String(suppressionId))); // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.updateSecurityMonitoringSuppression") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.updateSecurityMonitoringSuppression').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringSuppressionUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringSuppressionUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async validateSecurityMonitoringRule( - body: SecurityMonitoringRuleValidatePayload, - _options?: Configuration - ): Promise { + public async validateSecurityMonitoringRule(body: SecurityMonitoringRuleValidatePayload,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "validateSecurityMonitoringRule"); + throw new RequiredError('body', 'validateSecurityMonitoringRule'); } // Path Params - const localVarPath = "/api/v2/security_monitoring/rules/validation"; + const localVarPath = '/api/v2/security_monitoring/rules/validation'; // Make Request Context - const requestContext = _config - .getServer("v2.SecurityMonitoringApi.validateSecurityMonitoringRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SecurityMonitoringApi.validateSecurityMonitoringRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SecurityMonitoringRuleValidatePayload", - "" - ), + ObjectSerializer.serialize(body, "SecurityMonitoringRuleValidatePayload", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SecurityMonitoringApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2836,25 +1733,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to cancelHistoricalJob * @throws ApiException if the response code was not in [200, 299] */ - public async cancelHistoricalJob(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cancelHistoricalJob(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2863,11 +1748,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -2875,17 +1757,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2895,30 +1773,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to convertExistingSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async convertExistingSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async convertExistingSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringRuleConvertResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleConvertResponse" - ) as SecurityMonitoringRuleConvertResponse; + const body: SecurityMonitoringRuleConvertResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleConvertResponse" + ) as SecurityMonitoringRuleConvertResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2927,30 +1792,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringRuleConvertResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleConvertResponse", - "" - ) as SecurityMonitoringRuleConvertResponse; + const body: SecurityMonitoringRuleConvertResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleConvertResponse", "" + ) as SecurityMonitoringRuleConvertResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -2960,26 +1817,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to convertJobResultToSignal * @throws ApiException if the response code was not in [200, 299] */ - public async convertJobResultToSignal( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async convertJobResultToSignal(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -2988,11 +1832,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3000,17 +1841,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3020,31 +1857,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to convertSecurityMonitoringRuleFromJSONToTerraform * @throws ApiException if the response code was not in [200, 299] */ - public async convertSecurityMonitoringRuleFromJSONToTerraform( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async convertSecurityMonitoringRuleFromJSONToTerraform(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringRuleConvertResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleConvertResponse" - ) as SecurityMonitoringRuleConvertResponse; + const body: SecurityMonitoringRuleConvertResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleConvertResponse" + ) as SecurityMonitoringRuleConvertResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3053,30 +1876,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringRuleConvertResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleConvertResponse", - "" - ) as SecurityMonitoringRuleConvertResponse; + const body: SecurityMonitoringRuleConvertResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleConvertResponse", "" + ) as SecurityMonitoringRuleConvertResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3086,12 +1901,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to createSecurityFilter * @throws ApiException if the response code was not in [200, 299] */ - public async createSecurityFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSecurityFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3099,16 +1910,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3117,11 +1920,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3129,17 +1929,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityFilterResponse", - "" + "SecurityFilterResponse", "" ) as SecurityFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3149,12 +1945,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to createSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async createSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityMonitoringRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3162,15 +1954,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityMonitoringRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3179,11 +1964,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3191,17 +1973,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityMonitoringRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleResponse", - "" + "SecurityMonitoringRuleResponse", "" ) as SecurityMonitoringRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3211,30 +1989,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to createSecurityMonitoringSuppression * @throws ApiException if the response code was not in [200, 299] */ - public async createSecurityMonitoringSuppression( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSecurityMonitoringSuppression(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSuppressionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionResponse" - ) as SecurityMonitoringSuppressionResponse; + const body: SecurityMonitoringSuppressionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionResponse" + ) as SecurityMonitoringSuppressionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3243,30 +2008,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSuppressionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionResponse", - "" - ) as SecurityMonitoringSuppressionResponse; + const body: SecurityMonitoringSuppressionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionResponse", "" + ) as SecurityMonitoringSuppressionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3276,12 +2033,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to createSignalNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async createSignalNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSignalNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3289,15 +2042,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as NotificationRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3306,11 +2052,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3318,17 +2061,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotificationRuleResponse", - "" + "NotificationRuleResponse", "" ) as NotificationRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3338,12 +2077,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to createVulnerabilityNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async createVulnerabilityNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createVulnerabilityNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3351,15 +2086,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as NotificationRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3368,11 +2096,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3380,17 +2105,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotificationRuleResponse", - "" + "NotificationRuleResponse", "" ) as NotificationRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3400,25 +2121,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to deleteHistoricalJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteHistoricalJob(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteHistoricalJob(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3427,11 +2136,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3439,17 +2145,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3459,22 +2161,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to deleteSecurityFilter * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSecurityFilter(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSecurityFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3483,11 +2176,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3495,17 +2185,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3515,24 +2201,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to deleteSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3541,11 +2216,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3553,17 +2225,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3573,24 +2241,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to deleteSecurityMonitoringSuppression * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSecurityMonitoringSuppression( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSecurityMonitoringSuppression(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3599,11 +2256,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3611,17 +2265,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3631,24 +2281,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to deleteSignalNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSignalNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSignalNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3657,11 +2296,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3669,17 +2305,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3689,24 +2321,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to deleteVulnerabilityNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteVulnerabilityNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteVulnerabilityNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3715,11 +2336,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -3727,17 +2345,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3747,30 +2361,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee * @throws ApiException if the response code was not in [200, 299] */ - public async editSecurityMonitoringSignalAssignee( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async editSecurityMonitoringSignalAssignee(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSignalTriageUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalTriageUpdateResponse" - ) as SecurityMonitoringSignalTriageUpdateResponse; + const body: SecurityMonitoringSignalTriageUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalTriageUpdateResponse" + ) as SecurityMonitoringSignalTriageUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3779,30 +2380,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSignalTriageUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalTriageUpdateResponse", - "" - ) as SecurityMonitoringSignalTriageUpdateResponse; + const body: SecurityMonitoringSignalTriageUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalTriageUpdateResponse", "" + ) as SecurityMonitoringSignalTriageUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3812,30 +2405,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to editSecurityMonitoringSignalIncidents * @throws ApiException if the response code was not in [200, 299] */ - public async editSecurityMonitoringSignalIncidents( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async editSecurityMonitoringSignalIncidents(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSignalTriageUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalTriageUpdateResponse" - ) as SecurityMonitoringSignalTriageUpdateResponse; + const body: SecurityMonitoringSignalTriageUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalTriageUpdateResponse" + ) as SecurityMonitoringSignalTriageUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3844,30 +2424,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSignalTriageUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalTriageUpdateResponse", - "" - ) as SecurityMonitoringSignalTriageUpdateResponse; + const body: SecurityMonitoringSignalTriageUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalTriageUpdateResponse", "" + ) as SecurityMonitoringSignalTriageUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3877,30 +2449,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to editSecurityMonitoringSignalState * @throws ApiException if the response code was not in [200, 299] */ - public async editSecurityMonitoringSignalState( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async editSecurityMonitoringSignalState(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSignalTriageUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalTriageUpdateResponse" - ) as SecurityMonitoringSignalTriageUpdateResponse; + const body: SecurityMonitoringSignalTriageUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalTriageUpdateResponse" + ) as SecurityMonitoringSignalTriageUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3909,30 +2468,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSignalTriageUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalTriageUpdateResponse", - "" - ) as SecurityMonitoringSignalTriageUpdateResponse; + const body: SecurityMonitoringSignalTriageUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalTriageUpdateResponse", "" + ) as SecurityMonitoringSignalTriageUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -3942,12 +2493,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getFinding * @throws ApiException if the response code was not in [200, 299] */ - public async getFinding( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getFinding(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetFindingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -3955,16 +2502,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as GetFindingResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -3973,32 +2512,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetFindingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetFindingResponse", - "" + "GetFindingResponse", "" ) as GetFindingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4008,12 +2537,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getHistoricalJob * @throws ApiException if the response code was not in [200, 299] */ - public async getHistoricalJob( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getHistoricalJob(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HistoricalJobResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4021,16 +2546,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as HistoricalJobResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4039,11 +2556,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4051,17 +2565,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HistoricalJobResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HistoricalJobResponse", - "" + "HistoricalJobResponse", "" ) as HistoricalJobResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4071,12 +2581,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getRuleVersionHistory * @throws ApiException if the response code was not in [200, 299] */ - public async getRuleVersionHistory( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getRuleVersionHistory(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetRuleVersionHistoryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4084,16 +2590,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as GetRuleVersionHistoryResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4102,11 +2600,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4114,17 +2609,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetRuleVersionHistoryResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetRuleVersionHistoryResponse", - "" + "GetRuleVersionHistoryResponse", "" ) as GetRuleVersionHistoryResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4134,10 +2625,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSBOM * @throws ApiException if the response code was not in [200, 299] */ - public async getSBOM(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSBOM(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetSBOMResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4145,15 +2634,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as GetSBOMResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4162,21 +2644,12 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4185,11 +2658,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4197,17 +2667,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetSBOMResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetSBOMResponse", - "" + "GetSBOMResponse", "" ) as GetSBOMResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4217,12 +2683,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSecurityFilter * @throws ApiException if the response code was not in [200, 299] */ - public async getSecurityFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSecurityFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4230,15 +2692,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityFilterResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4247,11 +2702,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4259,17 +2711,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityFilterResponse", - "" + "SecurityFilterResponse", "" ) as SecurityFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4279,12 +2727,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async getSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityMonitoringRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4292,11 +2736,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityMonitoringRuleResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4305,11 +2746,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4317,17 +2755,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityMonitoringRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleResponse", - "" + "SecurityMonitoringRuleResponse", "" ) as SecurityMonitoringRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4337,25 +2771,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSecurityMonitoringSignal * @throws ApiException if the response code was not in [200, 299] */ - public async getSecurityMonitoringSignal( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSecurityMonitoringSignal(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSignalResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalResponse" - ) as SecurityMonitoringSignalResponse; + const body: SecurityMonitoringSignalResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalResponse" + ) as SecurityMonitoringSignalResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4364,30 +2790,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSignalResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalResponse", - "" - ) as SecurityMonitoringSignalResponse; + const body: SecurityMonitoringSignalResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalResponse", "" + ) as SecurityMonitoringSignalResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4397,29 +2815,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSecurityMonitoringSuppression * @throws ApiException if the response code was not in [200, 299] */ - public async getSecurityMonitoringSuppression( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSecurityMonitoringSuppression(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSuppressionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionResponse" - ) as SecurityMonitoringSuppressionResponse; + const body: SecurityMonitoringSuppressionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionResponse" + ) as SecurityMonitoringSuppressionResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4428,30 +2834,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSuppressionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionResponse", - "" - ) as SecurityMonitoringSuppressionResponse; + const body: SecurityMonitoringSuppressionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionResponse", "" + ) as SecurityMonitoringSuppressionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4461,12 +2859,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSignalNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async getSignalNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSignalNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4474,16 +2868,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as NotificationRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4492,11 +2878,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4504,17 +2887,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotificationRuleResponse", - "" + "NotificationRuleResponse", "" ) as NotificationRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4524,12 +2903,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getSignalNotificationRules * @throws ApiException if the response code was not in [200, 299] */ - public async getSignalNotificationRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSignalNotificationRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4537,11 +2912,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as any; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4550,11 +2922,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4562,17 +2931,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4582,12 +2947,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getVulnerabilityNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async getVulnerabilityNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getVulnerabilityNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4595,16 +2956,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as NotificationRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4613,11 +2966,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4625,17 +2975,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotificationRuleResponse", - "" + "NotificationRuleResponse", "" ) as NotificationRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4645,12 +2991,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to getVulnerabilityNotificationRules * @throws ApiException if the response code was not in [200, 299] */ - public async getVulnerabilityNotificationRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getVulnerabilityNotificationRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4658,11 +3000,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as any; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4671,11 +3010,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4683,17 +3019,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "any", - "" + "any", "" ) as any; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4703,12 +3035,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listFindings * @throws ApiException if the response code was not in [200, 299] */ - public async listFindings( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listFindings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListFindingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4716,16 +3044,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as ListFindingsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4734,32 +3054,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListFindingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListFindingsResponse", - "" + "ListFindingsResponse", "" ) as ListFindingsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4769,12 +3079,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listHistoricalJobs * @throws ApiException if the response code was not in [200, 299] */ - public async listHistoricalJobs( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listHistoricalJobs(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListHistoricalJobsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4782,15 +3088,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as ListHistoricalJobsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4799,11 +3098,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4811,17 +3107,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListHistoricalJobsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListHistoricalJobsResponse", - "" + "ListHistoricalJobsResponse", "" ) as ListHistoricalJobsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4831,12 +3123,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listSecurityFilters * @throws ApiException if the response code was not in [200, 299] */ - public async listSecurityFilters( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSecurityFilters(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityFiltersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -4844,11 +3132,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityFiltersResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4857,11 +3142,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -4869,17 +3151,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityFiltersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityFiltersResponse", - "" + "SecurityFiltersResponse", "" ) as SecurityFiltersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4889,25 +3167,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listSecurityMonitoringRules * @throws ApiException if the response code was not in [200, 299] */ - public async listSecurityMonitoringRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSecurityMonitoringRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringListRulesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringListRulesResponse" - ) as SecurityMonitoringListRulesResponse; + const body: SecurityMonitoringListRulesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringListRulesResponse" + ) as SecurityMonitoringListRulesResponse; return body; } - if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4916,30 +3186,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringListRulesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringListRulesResponse", - "" - ) as SecurityMonitoringListRulesResponse; + const body: SecurityMonitoringListRulesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringListRulesResponse", "" + ) as SecurityMonitoringListRulesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -4949,29 +3211,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listSecurityMonitoringSignals * @throws ApiException if the response code was not in [200, 299] */ - public async listSecurityMonitoringSignals( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSecurityMonitoringSignals(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSignalsListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalsListResponse" - ) as SecurityMonitoringSignalsListResponse; + const body: SecurityMonitoringSignalsListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalsListResponse" + ) as SecurityMonitoringSignalsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -4980,30 +3230,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSignalsListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalsListResponse", - "" - ) as SecurityMonitoringSignalsListResponse; + const body: SecurityMonitoringSignalsListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalsListResponse", "" + ) as SecurityMonitoringSignalsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5013,25 +3255,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listSecurityMonitoringSuppressions * @throws ApiException if the response code was not in [200, 299] */ - public async listSecurityMonitoringSuppressions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSecurityMonitoringSuppressions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSuppressionsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionsResponse" - ) as SecurityMonitoringSuppressionsResponse; + const body: SecurityMonitoringSuppressionsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionsResponse" + ) as SecurityMonitoringSuppressionsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5040,30 +3274,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSuppressionsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionsResponse", - "" - ) as SecurityMonitoringSuppressionsResponse; + const body: SecurityMonitoringSuppressionsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionsResponse", "" + ) as SecurityMonitoringSuppressionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5073,12 +3299,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listVulnerabilities * @throws ApiException if the response code was not in [200, 299] */ - public async listVulnerabilities( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listVulnerabilities(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListVulnerabilitiesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5086,15 +3308,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as ListVulnerabilitiesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5103,21 +3318,12 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5126,11 +3332,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -5138,17 +3341,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListVulnerabilitiesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListVulnerabilitiesResponse", - "" + "ListVulnerabilitiesResponse", "" ) as ListVulnerabilitiesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5158,12 +3357,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to listVulnerableAssets * @throws ApiException if the response code was not in [200, 299] */ - public async listVulnerableAssets( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listVulnerableAssets(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListVulnerableAssetsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5171,15 +3366,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as ListVulnerableAssetsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5188,21 +3376,12 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5211,11 +3390,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -5223,17 +3399,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListVulnerableAssetsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListVulnerableAssetsResponse", - "" + "ListVulnerableAssetsResponse", "" ) as ListVulnerableAssetsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5243,12 +3415,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to muteFindings * @throws ApiException if the response code was not in [200, 299] */ - public async muteFindings( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async muteFindings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: BulkMuteFindingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5256,17 +3424,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as BulkMuteFindingsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5275,32 +3434,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: BulkMuteFindingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "BulkMuteFindingsResponse", - "" + "BulkMuteFindingsResponse", "" ) as BulkMuteFindingsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5310,12 +3459,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to patchSignalNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async patchSignalNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async patchSignalNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5323,16 +3468,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as NotificationRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5341,18 +3478,12 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 422) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5361,32 +3492,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotificationRuleResponse", - "" + "NotificationRuleResponse", "" ) as NotificationRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5396,12 +3517,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to patchVulnerabilityNotificationRule * @throws ApiException if the response code was not in [200, 299] */ - public async patchVulnerabilityNotificationRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async patchVulnerabilityNotificationRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5409,16 +3526,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as NotificationRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5427,18 +3536,12 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } if (response.httpStatusCode === 422) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5447,32 +3550,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: NotificationRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "NotificationRuleResponse", - "" + "NotificationRuleResponse", "" ) as NotificationRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5482,12 +3575,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to runHistoricalJob * @throws ApiException if the response code was not in [200, 299] */ - public async runHistoricalJob( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async runHistoricalJob(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: JobCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5495,17 +3584,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as JobCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5514,11 +3594,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -5526,17 +3603,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: JobCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "JobCreateResponse", - "" + "JobCreateResponse", "" ) as JobCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5546,29 +3619,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to searchSecurityMonitoringSignals * @throws ApiException if the response code was not in [200, 299] */ - public async searchSecurityMonitoringSignals( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async searchSecurityMonitoringSignals(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSignalsListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalsListResponse" - ) as SecurityMonitoringSignalsListResponse; + const body: SecurityMonitoringSignalsListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalsListResponse" + ) as SecurityMonitoringSignalsListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5577,30 +3638,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSignalsListResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSignalsListResponse", - "" - ) as SecurityMonitoringSignalsListResponse; + const body: SecurityMonitoringSignalsListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSignalsListResponse", "" + ) as SecurityMonitoringSignalsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5610,31 +3663,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to testExistingSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async testExistingSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async testExistingSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringRuleTestResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleTestResponse" - ) as SecurityMonitoringRuleTestResponse; + const body: SecurityMonitoringRuleTestResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleTestResponse" + ) as SecurityMonitoringRuleTestResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5643,30 +3682,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringRuleTestResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleTestResponse", - "" - ) as SecurityMonitoringRuleTestResponse; + const body: SecurityMonitoringRuleTestResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleTestResponse", "" + ) as SecurityMonitoringRuleTestResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5676,31 +3707,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to testSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async testSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async testSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringRuleTestResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleTestResponse" - ) as SecurityMonitoringRuleTestResponse; + const body: SecurityMonitoringRuleTestResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleTestResponse" + ) as SecurityMonitoringRuleTestResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5709,30 +3726,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringRuleTestResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleTestResponse", - "" - ) as SecurityMonitoringRuleTestResponse; + const body: SecurityMonitoringRuleTestResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringRuleTestResponse", "" + ) as SecurityMonitoringRuleTestResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5742,12 +3751,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to updateSecurityFilter * @throws ApiException if the response code was not in [200, 299] */ - public async updateSecurityFilter( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSecurityFilter(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5755,17 +3760,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityFilterResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5774,11 +3770,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -5786,17 +3779,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityFilterResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityFilterResponse", - "" + "SecurityFilterResponse", "" ) as SecurityFilterResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5806,12 +3795,8 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to updateSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async updateSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SecurityMonitoringRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -5819,17 +3804,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityMonitoringRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 401||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5838,11 +3814,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -5850,17 +3823,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SecurityMonitoringRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringRuleResponse", - "" + "SecurityMonitoringRuleResponse", "" ) as SecurityMonitoringRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5870,31 +3839,17 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to updateSecurityMonitoringSuppression * @throws ApiException if the response code was not in [200, 299] */ - public async updateSecurityMonitoringSuppression( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSecurityMonitoringSuppression(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SecurityMonitoringSuppressionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionResponse" - ) as SecurityMonitoringSuppressionResponse; + const body: SecurityMonitoringSuppressionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionResponse" + ) as SecurityMonitoringSuppressionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5903,30 +3858,22 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SecurityMonitoringSuppressionResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SecurityMonitoringSuppressionResponse", - "" - ) as SecurityMonitoringSuppressionResponse; + const body: SecurityMonitoringSuppressionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SecurityMonitoringSuppressionResponse", "" + ) as SecurityMonitoringSuppressionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -5936,24 +3883,13 @@ export class SecurityMonitoringApiResponseProcessor { * @params response Response returned by the server for a request to validateSecurityMonitoringRule * @throws ApiException if the response code was not in [200, 299] */ - public async validateSecurityMonitoringRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async validateSecurityMonitoringRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -5962,11 +3898,8 @@ export class SecurityMonitoringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -5974,17 +3907,13 @@ export class SecurityMonitoringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -5993,7 +3922,7 @@ export interface SecurityMonitoringApiCancelHistoricalJobRequest { * The ID of the job. * @type string */ - jobId: string; + jobId: string } export interface SecurityMonitoringApiConvertExistingSecurityMonitoringRuleRequest { @@ -6001,21 +3930,21 @@ export interface SecurityMonitoringApiConvertExistingSecurityMonitoringRuleReque * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string } export interface SecurityMonitoringApiConvertJobResultToSignalRequest { /** * @type ConvertJobResultsToSignalsRequest */ - body: ConvertJobResultsToSignalsRequest; + body: ConvertJobResultsToSignalsRequest } export interface SecurityMonitoringApiConvertSecurityMonitoringRuleFromJSONToTerraformRequest { /** * @type SecurityMonitoringRuleConvertPayload */ - body: SecurityMonitoringRuleConvertPayload; + body: SecurityMonitoringRuleConvertPayload } export interface SecurityMonitoringApiCreateSecurityFilterRequest { @@ -6023,14 +3952,14 @@ export interface SecurityMonitoringApiCreateSecurityFilterRequest { * The definition of the new security filter. * @type SecurityFilterCreateRequest */ - body: SecurityFilterCreateRequest; + body: SecurityFilterCreateRequest } export interface SecurityMonitoringApiCreateSecurityMonitoringRuleRequest { /** * @type SecurityMonitoringRuleCreatePayload */ - body: SecurityMonitoringRuleCreatePayload; + body: SecurityMonitoringRuleCreatePayload } export interface SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest { @@ -6038,7 +3967,7 @@ export interface SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest * The definition of the new suppression rule. * @type SecurityMonitoringSuppressionCreateRequest */ - body: SecurityMonitoringSuppressionCreateRequest; + body: SecurityMonitoringSuppressionCreateRequest } export interface SecurityMonitoringApiCreateSignalNotificationRuleRequest { @@ -6047,7 +3976,7 @@ export interface SecurityMonitoringApiCreateSignalNotificationRuleRequest { * the rule name, the selectors, the notification targets, and the rule enabled status. * @type CreateNotificationRuleParameters */ - body: CreateNotificationRuleParameters; + body: CreateNotificationRuleParameters } export interface SecurityMonitoringApiCreateVulnerabilityNotificationRuleRequest { @@ -6056,7 +3985,7 @@ export interface SecurityMonitoringApiCreateVulnerabilityNotificationRuleRequest * the rule name, the selectors, the notification targets, and the rule enabled status. * @type CreateNotificationRuleParameters */ - body: CreateNotificationRuleParameters; + body: CreateNotificationRuleParameters } export interface SecurityMonitoringApiDeleteHistoricalJobRequest { @@ -6064,7 +3993,7 @@ export interface SecurityMonitoringApiDeleteHistoricalJobRequest { * The ID of the job. * @type string */ - jobId: string; + jobId: string } export interface SecurityMonitoringApiDeleteSecurityFilterRequest { @@ -6072,7 +4001,7 @@ export interface SecurityMonitoringApiDeleteSecurityFilterRequest { * The ID of the security filter. * @type string */ - securityFilterId: string; + securityFilterId: string } export interface SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest { @@ -6080,7 +4009,7 @@ export interface SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string } export interface SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest { @@ -6088,7 +4017,7 @@ export interface SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest * The ID of the suppression rule * @type string */ - suppressionId: string; + suppressionId: string } export interface SecurityMonitoringApiDeleteSignalNotificationRuleRequest { @@ -6096,7 +4025,7 @@ export interface SecurityMonitoringApiDeleteSignalNotificationRuleRequest { * ID of the notification rule. * @type string */ - id: string; + id: string } export interface SecurityMonitoringApiDeleteVulnerabilityNotificationRuleRequest { @@ -6104,7 +4033,7 @@ export interface SecurityMonitoringApiDeleteVulnerabilityNotificationRuleRequest * ID of the notification rule. * @type string */ - id: string; + id: string } export interface SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest { @@ -6112,12 +4041,12 @@ export interface SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeReques * The ID of the signal. * @type string */ - signalId: string; + signalId: string /** * Attributes describing the signal update. * @type SecurityMonitoringSignalAssigneeUpdateRequest */ - body: SecurityMonitoringSignalAssigneeUpdateRequest; + body: SecurityMonitoringSignalAssigneeUpdateRequest } export interface SecurityMonitoringApiEditSecurityMonitoringSignalIncidentsRequest { @@ -6125,12 +4054,12 @@ export interface SecurityMonitoringApiEditSecurityMonitoringSignalIncidentsReque * The ID of the signal. * @type string */ - signalId: string; + signalId: string /** * Attributes describing the signal update. * @type SecurityMonitoringSignalIncidentsUpdateRequest */ - body: SecurityMonitoringSignalIncidentsUpdateRequest; + body: SecurityMonitoringSignalIncidentsUpdateRequest } export interface SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest { @@ -6138,12 +4067,12 @@ export interface SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest { * The ID of the signal. * @type string */ - signalId: string; + signalId: string /** * Attributes describing the signal update. * @type SecurityMonitoringSignalStateUpdateRequest */ - body: SecurityMonitoringSignalStateUpdateRequest; + body: SecurityMonitoringSignalStateUpdateRequest } export interface SecurityMonitoringApiGetFindingRequest { @@ -6151,12 +4080,12 @@ export interface SecurityMonitoringApiGetFindingRequest { * The ID of the finding. * @type string */ - findingId: string; + findingId: string /** * Return the finding for a given snapshot of time (Unix ms). * @type number */ - snapshotTimestamp?: number; + snapshotTimestamp?: number } export interface SecurityMonitoringApiGetHistoricalJobRequest { @@ -6164,7 +4093,7 @@ export interface SecurityMonitoringApiGetHistoricalJobRequest { * The ID of the job. * @type string */ - jobId: string; + jobId: string } export interface SecurityMonitoringApiGetRuleVersionHistoryRequest { @@ -6172,17 +4101,17 @@ export interface SecurityMonitoringApiGetRuleVersionHistoryRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number } export interface SecurityMonitoringApiGetSBOMRequest { @@ -6190,17 +4119,17 @@ export interface SecurityMonitoringApiGetSBOMRequest { * The type of the asset for the SBOM request. * @type AssetType */ - assetType: AssetType; + assetType: AssetType /** * The name of the asset for the SBOM request. * @type string */ - filterAssetName: string; + filterAssetName: string /** * The container image `repo_digest` for the SBOM request. When the requested asset type is 'Image', this filter is mandatory. * @type string */ - filterRepoDigest?: string; + filterRepoDigest?: string } export interface SecurityMonitoringApiGetSecurityFilterRequest { @@ -6208,7 +4137,7 @@ export interface SecurityMonitoringApiGetSecurityFilterRequest { * The ID of the security filter. * @type string */ - securityFilterId: string; + securityFilterId: string } export interface SecurityMonitoringApiGetSecurityMonitoringRuleRequest { @@ -6216,7 +4145,7 @@ export interface SecurityMonitoringApiGetSecurityMonitoringRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string } export interface SecurityMonitoringApiGetSecurityMonitoringSignalRequest { @@ -6224,7 +4153,7 @@ export interface SecurityMonitoringApiGetSecurityMonitoringSignalRequest { * The ID of the signal. * @type string */ - signalId: string; + signalId: string } export interface SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest { @@ -6232,7 +4161,7 @@ export interface SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest { * The ID of the suppression rule * @type string */ - suppressionId: string; + suppressionId: string } export interface SecurityMonitoringApiGetSignalNotificationRuleRequest { @@ -6240,7 +4169,7 @@ export interface SecurityMonitoringApiGetSignalNotificationRuleRequest { * ID of the notification rule. * @type string */ - id: string; + id: string } export interface SecurityMonitoringApiGetVulnerabilityNotificationRuleRequest { @@ -6248,7 +4177,7 @@ export interface SecurityMonitoringApiGetVulnerabilityNotificationRuleRequest { * ID of the notification rule. * @type string */ - id: string; + id: string } export interface SecurityMonitoringApiListFindingsRequest { @@ -6256,67 +4185,67 @@ export interface SecurityMonitoringApiListFindingsRequest { * Limit the number of findings returned. Must be <= 1000. * @type number */ - pageLimit?: number; + pageLimit?: number /** * Return findings for a given snapshot of time (Unix ms). * @type number */ - snapshotTimestamp?: number; + snapshotTimestamp?: number /** * Return the next page of findings pointed to by the cursor. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Return findings that have these associated tags (repeatable). * @type string */ - filterTags?: string; + filterTags?: string /** * Return findings that have changed from pass to fail or vice versa on a specified date (Unix ms) or date range (using comparison operators). * @type string */ - filterEvaluationChangedAt?: string; + filterEvaluationChangedAt?: string /** * Set to `true` to return findings that are muted. Set to `false` to return unmuted findings. * @type boolean */ - filterMuted?: boolean; + filterMuted?: boolean /** * Return findings for the specified rule ID. * @type string */ - filterRuleId?: string; + filterRuleId?: string /** * Return findings for the specified rule. * @type string */ - filterRuleName?: string; + filterRuleName?: string /** * Return only findings for the specified resource type. * @type string */ - filterResourceType?: string; + filterResourceType?: string /** * Return findings that were found on a specified date (Unix ms) or date range (using comparison operators). * @type string */ - filterDiscoveryTimestamp?: string; + filterDiscoveryTimestamp?: string /** * Return only `pass` or `fail` findings. * @type FindingEvaluation */ - filterEvaluation?: FindingEvaluation; + filterEvaluation?: FindingEvaluation /** * Return only findings with the specified status. * @type FindingStatus */ - filterStatus?: FindingStatus; + filterStatus?: FindingStatus /** * Return findings that match the selected vulnerability types (repeatable). * @type Array */ - filterVulnerabilityType?: Array; + filterVulnerabilityType?: Array } export interface SecurityMonitoringApiListHistoricalJobsRequest { @@ -6324,22 +4253,22 @@ export interface SecurityMonitoringApiListHistoricalJobsRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * The order of the jobs in results. * @type string */ - sort?: string; + sort?: string /** * Query used to filter items from the fetched list. * @type string */ - filterQuery?: string; + filterQuery?: string } export interface SecurityMonitoringApiListSecurityMonitoringRulesRequest { @@ -6347,12 +4276,12 @@ export interface SecurityMonitoringApiListSecurityMonitoringRulesRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number } export interface SecurityMonitoringApiListSecurityMonitoringSignalsRequest { @@ -6360,32 +4289,32 @@ export interface SecurityMonitoringApiListSecurityMonitoringSignalsRequest { * The search query for security signals. * @type string */ - filterQuery?: string; + filterQuery?: string /** * The minimum timestamp for requested security signals. * @type Date */ - filterFrom?: Date; + filterFrom?: Date /** * The maximum timestamp for requested security signals. * @type Date */ - filterTo?: Date; + filterTo?: Date /** * The order of the security signals in results. * @type SecurityMonitoringSignalsSort */ - sort?: SecurityMonitoringSignalsSort; + sort?: SecurityMonitoringSignalsSort /** * A list of results using the cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * The maximum number of security signals in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export interface SecurityMonitoringApiListVulnerabilitiesRequest { @@ -6393,202 +4322,202 @@ export interface SecurityMonitoringApiListVulnerabilitiesRequest { * Its value must come from the `links` section of the response of the first request. Do not manually edit it. * @type string */ - pageToken?: string; + pageToken?: string /** * The page number to be retrieved. It should be equal or greater than `1` * @type number */ - pageNumber?: number; + pageNumber?: number /** * Filter by vulnerability type. * @type VulnerabilityType */ - filterType?: VulnerabilityType; + filterType?: VulnerabilityType /** * Filter by vulnerability base (i.e. from the original advisory) severity score. * @type number */ - filterCvssBaseScoreOp?: number; + filterCvssBaseScoreOp?: number /** * Filter by vulnerability base severity. * @type VulnerabilitySeverity */ - filterCvssBaseSeverity?: VulnerabilitySeverity; + filterCvssBaseSeverity?: VulnerabilitySeverity /** * Filter by vulnerability base CVSS vector. * @type string */ - filterCvssBaseVector?: string; + filterCvssBaseVector?: string /** * Filter by vulnerability Datadog severity score. * @type number */ - filterCvssDatadogScoreOp?: number; + filterCvssDatadogScoreOp?: number /** * Filter by vulnerability Datadog severity. * @type VulnerabilitySeverity */ - filterCvssDatadogSeverity?: VulnerabilitySeverity; + filterCvssDatadogSeverity?: VulnerabilitySeverity /** * Filter by vulnerability Datadog CVSS vector. * @type string */ - filterCvssDatadogVector?: string; + filterCvssDatadogVector?: string /** * Filter by the status of the vulnerability. * @type VulnerabilityStatus */ - filterStatus?: VulnerabilityStatus; + filterStatus?: VulnerabilityStatus /** * Filter by the tool of the vulnerability. * @type VulnerabilityTool */ - filterTool?: VulnerabilityTool; + filterTool?: VulnerabilityTool /** * Filter by library name. * @type string */ - filterLibraryName?: string; + filterLibraryName?: string /** * Filter by library version. * @type string */ - filterLibraryVersion?: string; + filterLibraryVersion?: string /** * Filter by advisory ID. * @type string */ - filterAdvisoryId?: string; + filterAdvisoryId?: string /** * Filter by exploitation probability. * @type boolean */ - filterRisksExploitationProbability?: boolean; + filterRisksExploitationProbability?: boolean /** * Filter by POC exploit availability. * @type boolean */ - filterRisksPocExploitAvailable?: boolean; + filterRisksPocExploitAvailable?: boolean /** * Filter by public exploit availability. * @type boolean */ - filterRisksExploitAvailable?: boolean; + filterRisksExploitAvailable?: boolean /** * Filter by vulnerability [EPSS](https://www.first.org/epss/) severity score. * @type number */ - filterRisksEpssScoreOp?: number; + filterRisksEpssScoreOp?: number /** * Filter by vulnerability [EPSS](https://www.first.org/epss/) severity. * @type VulnerabilitySeverity */ - filterRisksEpssSeverity?: VulnerabilitySeverity; + filterRisksEpssSeverity?: VulnerabilitySeverity /** * Filter by language. * @type string */ - filterLanguage?: string; + filterLanguage?: string /** * Filter by ecosystem. * @type VulnerabilityEcosystem */ - filterEcosystem?: VulnerabilityEcosystem; + filterEcosystem?: VulnerabilityEcosystem /** * Filter by vulnerability location. * @type string */ - filterCodeLocationLocation?: string; + filterCodeLocationLocation?: string /** * Filter by vulnerability file path. * @type string */ - filterCodeLocationFilePath?: string; + filterCodeLocationFilePath?: string /** * Filter by method. * @type string */ - filterCodeLocationMethod?: string; + filterCodeLocationMethod?: string /** * Filter by fix availability. * @type boolean */ - filterFixAvailable?: boolean; + filterFixAvailable?: boolean /** * Filter by vulnerability `repo_digest` (when the vulnerability is related to `Image` asset). * @type string */ - filterRepoDigests?: string; + filterRepoDigests?: string /** * Filter by asset name. * @type string */ - filterAssetName?: string; + filterAssetName?: string /** * Filter by asset type. * @type AssetType */ - filterAssetType?: AssetType; + filterAssetType?: AssetType /** * Filter by the first version of the asset this vulnerability has been detected on. * @type string */ - filterAssetVersionFirst?: string; + filterAssetVersionFirst?: string /** * Filter by the last version of the asset this vulnerability has been detected on. * @type string */ - filterAssetVersionLast?: string; + filterAssetVersionLast?: string /** * Filter by the repository url associated to the asset. * @type string */ - filterAssetRepositoryUrl?: string; + filterAssetRepositoryUrl?: string /** * Filter whether the asset is in production or not. * @type boolean */ - filterAssetRisksInProduction?: boolean; + filterAssetRisksInProduction?: boolean /** * Filter whether the asset is under attack or not. * @type boolean */ - filterAssetRisksUnderAttack?: boolean; + filterAssetRisksUnderAttack?: boolean /** * Filter whether the asset is publicly accessible or not. * @type boolean */ - filterAssetRisksIsPubliclyAccessible?: boolean; + filterAssetRisksIsPubliclyAccessible?: boolean /** * Filter whether the asset is publicly accessible or not. * @type boolean */ - filterAssetRisksHasPrivilegedAccess?: boolean; + filterAssetRisksHasPrivilegedAccess?: boolean /** * Filter whether the asset has access to sensitive data or not. * @type boolean */ - filterAssetRisksHasAccessToSensitiveData?: boolean; + filterAssetRisksHasAccessToSensitiveData?: boolean /** * Filter by asset environments. * @type string */ - filterAssetEnvironments?: string; + filterAssetEnvironments?: string /** * Filter by asset architecture. * @type string */ - filterAssetArch?: string; + filterAssetArch?: string /** * Filter by asset operating system name. * @type string */ - filterAssetOperatingSystemName?: string; + filterAssetOperatingSystemName?: string /** * Filter by asset operating system version. * @type string */ - filterAssetOperatingSystemVersion?: string; + filterAssetOperatingSystemVersion?: string } export interface SecurityMonitoringApiListVulnerableAssetsRequest { @@ -6596,99 +4525,99 @@ export interface SecurityMonitoringApiListVulnerableAssetsRequest { * Its value must come from the `links` section of the response of the first request. Do not manually edit it. * @type string */ - pageToken?: string; + pageToken?: string /** * The page number to be retrieved. It should be equal or greater than `1` * @type number */ - pageNumber?: number; + pageNumber?: number /** * Filter by name. * @type string */ - filterName?: string; + filterName?: string /** * Filter by type. * @type AssetType */ - filterType?: AssetType; + filterType?: AssetType /** * Filter by the first version of the asset since it has been vulnerable. * @type string */ - filterVersionFirst?: string; + filterVersionFirst?: string /** * Filter by the last detected version of the asset. * @type string */ - filterVersionLast?: string; + filterVersionLast?: string /** * Filter by the repository url associated to the asset. * @type string */ - filterRepositoryUrl?: string; + filterRepositoryUrl?: string /** * Filter whether the asset is in production or not. * @type boolean */ - filterRisksInProduction?: boolean; + filterRisksInProduction?: boolean /** * Filter whether the asset (Service) is under attack or not. * @type boolean */ - filterRisksUnderAttack?: boolean; + filterRisksUnderAttack?: boolean /** * Filter whether the asset (Host) is publicly accessible or not. * @type boolean */ - filterRisksIsPubliclyAccessible?: boolean; + filterRisksIsPubliclyAccessible?: boolean /** * Filter whether the asset (Host) has privileged access or not. * @type boolean */ - filterRisksHasPrivilegedAccess?: boolean; + filterRisksHasPrivilegedAccess?: boolean /** * Filter whether the asset (Host) has access to sensitive data or not. * @type boolean */ - filterRisksHasAccessToSensitiveData?: boolean; + filterRisksHasAccessToSensitiveData?: boolean /** * Filter by environment. * @type string */ - filterEnvironments?: string; + filterEnvironments?: string /** * Filter by architecture. * @type string */ - filterArch?: string; + filterArch?: string /** * Filter by operating system name. * @type string */ - filterOperatingSystemName?: string; + filterOperatingSystemName?: string /** * Filter by operating system version. * @type string */ - filterOperatingSystemVersion?: string; + filterOperatingSystemVersion?: string } export interface SecurityMonitoringApiMuteFindingsRequest { /** * ### Attributes - * + * * All findings are updated with the same attributes. The request body must include at least two attributes: `muted` and `reason`. * The allowed reasons depend on whether the finding is being muted or unmuted: * - To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `ACCEPTED_RISK`, `OTHER`. * - To unmute a finding : `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`. - * + * * ### Meta - * + * * The request body must include a list of the finding IDs to be updated. * @type BulkMuteFindingsRequest */ - body: BulkMuteFindingsRequest; + body: BulkMuteFindingsRequest } export interface SecurityMonitoringApiPatchSignalNotificationRuleRequest { @@ -6696,11 +4625,11 @@ export interface SecurityMonitoringApiPatchSignalNotificationRuleRequest { * ID of the notification rule. * @type string */ - id: string; + id: string /** * @type PatchNotificationRuleParameters */ - body: PatchNotificationRuleParameters; + body: PatchNotificationRuleParameters } export interface SecurityMonitoringApiPatchVulnerabilityNotificationRuleRequest { @@ -6708,25 +4637,25 @@ export interface SecurityMonitoringApiPatchVulnerabilityNotificationRuleRequest * ID of the notification rule. * @type string */ - id: string; + id: string /** * @type PatchNotificationRuleParameters */ - body: PatchNotificationRuleParameters; + body: PatchNotificationRuleParameters } export interface SecurityMonitoringApiRunHistoricalJobRequest { /** * @type RunHistoricalJobRequest */ - body: RunHistoricalJobRequest; + body: RunHistoricalJobRequest } export interface SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest { /** * @type SecurityMonitoringSignalListRequest */ - body?: SecurityMonitoringSignalListRequest; + body?: SecurityMonitoringSignalListRequest } export interface SecurityMonitoringApiTestExistingSecurityMonitoringRuleRequest { @@ -6734,18 +4663,18 @@ export interface SecurityMonitoringApiTestExistingSecurityMonitoringRuleRequest * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string /** * @type SecurityMonitoringRuleTestRequest */ - body: SecurityMonitoringRuleTestRequest; + body: SecurityMonitoringRuleTestRequest } export interface SecurityMonitoringApiTestSecurityMonitoringRuleRequest { /** * @type SecurityMonitoringRuleTestRequest */ - body: SecurityMonitoringRuleTestRequest; + body: SecurityMonitoringRuleTestRequest } export interface SecurityMonitoringApiUpdateSecurityFilterRequest { @@ -6753,12 +4682,12 @@ export interface SecurityMonitoringApiUpdateSecurityFilterRequest { * The ID of the security filter. * @type string */ - securityFilterId: string; + securityFilterId: string /** * New definition of the security filter. * @type SecurityFilterUpdateRequest */ - body: SecurityFilterUpdateRequest; + body: SecurityFilterUpdateRequest } export interface SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest { @@ -6766,11 +4695,11 @@ export interface SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string /** * @type SecurityMonitoringRuleUpdatePayload */ - body: SecurityMonitoringRuleUpdatePayload; + body: SecurityMonitoringRuleUpdatePayload } export interface SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest { @@ -6778,19 +4707,19 @@ export interface SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest * The ID of the suppression rule * @type string */ - suppressionId: string; + suppressionId: string /** * New definition of the suppression rule. Supports partial updates. * @type SecurityMonitoringSuppressionUpdateRequest */ - body: SecurityMonitoringSuppressionUpdateRequest; + body: SecurityMonitoringSuppressionUpdateRequest } export interface SecurityMonitoringApiValidateSecurityMonitoringRuleRequest { /** * @type SecurityMonitoringRuleValidatePayload */ - body: SecurityMonitoringRuleValidatePayload; + body: SecurityMonitoringRuleValidatePayload } export class SecurityMonitoringApi { @@ -6798,35 +4727,21 @@ export class SecurityMonitoringApi { private responseProcessor: SecurityMonitoringApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SecurityMonitoringApiRequestFactory, - responseProcessor?: SecurityMonitoringApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SecurityMonitoringApiRequestFactory, responseProcessor?: SecurityMonitoringApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SecurityMonitoringApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SecurityMonitoringApiResponseProcessor(); + this.requestFactory = requestFactory || new SecurityMonitoringApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SecurityMonitoringApiResponseProcessor(); } /** * Cancel a historical job. * @param param The request object */ - public cancelHistoricalJob( - param: SecurityMonitoringApiCancelHistoricalJobRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cancelHistoricalJob( - param.jobId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cancelHistoricalJob(responseContext); + public cancelHistoricalJob(param: SecurityMonitoringApiCancelHistoricalJobRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cancelHistoricalJob(param.jobId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cancelHistoricalJob(responseContext); }); }); } @@ -6836,22 +4751,11 @@ export class SecurityMonitoringApi { * resource datadog_security_monitoring_rule. * @param param The request object */ - public convertExistingSecurityMonitoringRule( - param: SecurityMonitoringApiConvertExistingSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.convertExistingSecurityMonitoringRule( - param.ruleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.convertExistingSecurityMonitoringRule( - responseContext - ); + public convertExistingSecurityMonitoringRule(param: SecurityMonitoringApiConvertExistingSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.convertExistingSecurityMonitoringRule(param.ruleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.convertExistingSecurityMonitoringRule(responseContext); }); }); } @@ -6860,21 +4764,11 @@ export class SecurityMonitoringApi { * Convert a job result to a signal. * @param param The request object */ - public convertJobResultToSignal( - param: SecurityMonitoringApiConvertJobResultToSignalRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.convertJobResultToSignal( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.convertJobResultToSignal( - responseContext - ); + public convertJobResultToSignal(param: SecurityMonitoringApiConvertJobResultToSignalRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.convertJobResultToSignal(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.convertJobResultToSignal(responseContext); }); }); } @@ -6884,46 +4778,27 @@ export class SecurityMonitoringApi { * resource datadog_security_monitoring_rule. * @param param The request object */ - public convertSecurityMonitoringRuleFromJSONToTerraform( - param: SecurityMonitoringApiConvertSecurityMonitoringRuleFromJSONToTerraformRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.convertSecurityMonitoringRuleFromJSONToTerraform( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.convertSecurityMonitoringRuleFromJSONToTerraform( - responseContext - ); + public convertSecurityMonitoringRuleFromJSONToTerraform(param: SecurityMonitoringApiConvertSecurityMonitoringRuleFromJSONToTerraformRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.convertSecurityMonitoringRuleFromJSONToTerraform(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.convertSecurityMonitoringRuleFromJSONToTerraform(responseContext); }); }); } /** * Create a security filter. - * + * * See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) * for more examples. * @param param The request object */ - public createSecurityFilter( - param: SecurityMonitoringApiCreateSecurityFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createSecurityFilter( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSecurityFilter(responseContext); + public createSecurityFilter(param: SecurityMonitoringApiCreateSecurityFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSecurityFilter(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSecurityFilter(responseContext); }); }); } @@ -6932,19 +4807,11 @@ export class SecurityMonitoringApi { * Create a detection rule. * @param param The request object */ - public createSecurityMonitoringRule( - param: SecurityMonitoringApiCreateSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createSecurityMonitoringRule(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSecurityMonitoringRule( - responseContext - ); + public createSecurityMonitoringRule(param: SecurityMonitoringApiCreateSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSecurityMonitoringRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSecurityMonitoringRule(responseContext); }); }); } @@ -6953,22 +4820,11 @@ export class SecurityMonitoringApi { * Create a new suppression rule. * @param param The request object */ - public createSecurityMonitoringSuppression( - param: SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createSecurityMonitoringSuppression( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSecurityMonitoringSuppression( - responseContext - ); + public createSecurityMonitoringSuppression(param: SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSecurityMonitoringSuppression(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSecurityMonitoringSuppression(responseContext); }); }); } @@ -6977,19 +4833,11 @@ export class SecurityMonitoringApi { * Create a new notification rule for security signals and return the created rule. * @param param The request object */ - public createSignalNotificationRule( - param: SecurityMonitoringApiCreateSignalNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createSignalNotificationRule(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSignalNotificationRule( - responseContext - ); + public createSignalNotificationRule(param: SecurityMonitoringApiCreateSignalNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSignalNotificationRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSignalNotificationRule(responseContext); }); }); } @@ -6998,22 +4846,11 @@ export class SecurityMonitoringApi { * Create a new notification rule for security vulnerabilities and return the created rule. * @param param The request object */ - public createVulnerabilityNotificationRule( - param: SecurityMonitoringApiCreateVulnerabilityNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createVulnerabilityNotificationRule( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createVulnerabilityNotificationRule( - responseContext - ); + public createVulnerabilityNotificationRule(param: SecurityMonitoringApiCreateVulnerabilityNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createVulnerabilityNotificationRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createVulnerabilityNotificationRule(responseContext); }); }); } @@ -7022,19 +4859,11 @@ export class SecurityMonitoringApi { * Delete an existing job. * @param param The request object */ - public deleteHistoricalJob( - param: SecurityMonitoringApiDeleteHistoricalJobRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteHistoricalJob( - param.jobId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteHistoricalJob(responseContext); + public deleteHistoricalJob(param: SecurityMonitoringApiDeleteHistoricalJobRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteHistoricalJob(param.jobId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteHistoricalJob(responseContext); }); }); } @@ -7043,19 +4872,11 @@ export class SecurityMonitoringApi { * Delete a specific security filter. * @param param The request object */ - public deleteSecurityFilter( - param: SecurityMonitoringApiDeleteSecurityFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteSecurityFilter( - param.securityFilterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSecurityFilter(responseContext); + public deleteSecurityFilter(param: SecurityMonitoringApiDeleteSecurityFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSecurityFilter(param.securityFilterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSecurityFilter(responseContext); }); }); } @@ -7064,19 +4885,11 @@ export class SecurityMonitoringApi { * Delete an existing rule. Default rules cannot be deleted. * @param param The request object */ - public deleteSecurityMonitoringRule( - param: SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteSecurityMonitoringRule(param.ruleId, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSecurityMonitoringRule( - responseContext - ); + public deleteSecurityMonitoringRule(param: SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSecurityMonitoringRule(param.ruleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSecurityMonitoringRule(responseContext); }); }); } @@ -7085,22 +4898,11 @@ export class SecurityMonitoringApi { * Delete a specific suppression rule. * @param param The request object */ - public deleteSecurityMonitoringSuppression( - param: SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteSecurityMonitoringSuppression( - param.suppressionId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSecurityMonitoringSuppression( - responseContext - ); + public deleteSecurityMonitoringSuppression(param: SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSecurityMonitoringSuppression(param.suppressionId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSecurityMonitoringSuppression(responseContext); }); }); } @@ -7109,19 +4911,11 @@ export class SecurityMonitoringApi { * Delete a notification rule for security signals. * @param param The request object */ - public deleteSignalNotificationRule( - param: SecurityMonitoringApiDeleteSignalNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteSignalNotificationRule(param.id, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSignalNotificationRule( - responseContext - ); + public deleteSignalNotificationRule(param: SecurityMonitoringApiDeleteSignalNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSignalNotificationRule(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSignalNotificationRule(responseContext); }); }); } @@ -7130,22 +4924,11 @@ export class SecurityMonitoringApi { * Delete a notification rule for security vulnerabilities. * @param param The request object */ - public deleteVulnerabilityNotificationRule( - param: SecurityMonitoringApiDeleteVulnerabilityNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteVulnerabilityNotificationRule( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteVulnerabilityNotificationRule( - responseContext - ); + public deleteVulnerabilityNotificationRule(param: SecurityMonitoringApiDeleteVulnerabilityNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteVulnerabilityNotificationRule(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteVulnerabilityNotificationRule(responseContext); }); }); } @@ -7154,23 +4937,11 @@ export class SecurityMonitoringApi { * Modify the triage assignee of a security signal. * @param param The request object */ - public editSecurityMonitoringSignalAssignee( - param: SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.editSecurityMonitoringSignalAssignee( - param.signalId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.editSecurityMonitoringSignalAssignee( - responseContext - ); + public editSecurityMonitoringSignalAssignee(param: SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalAssignee(param.signalId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.editSecurityMonitoringSignalAssignee(responseContext); }); }); } @@ -7179,23 +4950,11 @@ export class SecurityMonitoringApi { * Change the related incidents for a security signal. * @param param The request object */ - public editSecurityMonitoringSignalIncidents( - param: SecurityMonitoringApiEditSecurityMonitoringSignalIncidentsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.editSecurityMonitoringSignalIncidents( - param.signalId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.editSecurityMonitoringSignalIncidents( - responseContext - ); + public editSecurityMonitoringSignalIncidents(param: SecurityMonitoringApiEditSecurityMonitoringSignalIncidentsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalIncidents(param.signalId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.editSecurityMonitoringSignalIncidents(responseContext); }); }); } @@ -7204,23 +4963,11 @@ export class SecurityMonitoringApi { * Change the triage state of a security signal. * @param param The request object */ - public editSecurityMonitoringSignalState( - param: SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.editSecurityMonitoringSignalState( - param.signalId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.editSecurityMonitoringSignalState( - responseContext - ); + public editSecurityMonitoringSignalState(param: SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalState(param.signalId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.editSecurityMonitoringSignalState(responseContext); }); }); } @@ -7229,20 +4976,11 @@ export class SecurityMonitoringApi { * Returns a single finding with message and resource configuration. * @param param The request object */ - public getFinding( - param: SecurityMonitoringApiGetFindingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getFinding( - param.findingId, - param.snapshotTimestamp, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getFinding(responseContext); + public getFinding(param: SecurityMonitoringApiGetFindingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getFinding(param.findingId,param.snapshotTimestamp,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getFinding(responseContext); }); }); } @@ -7251,19 +4989,11 @@ export class SecurityMonitoringApi { * Get a job's details. * @param param The request object */ - public getHistoricalJob( - param: SecurityMonitoringApiGetHistoricalJobRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getHistoricalJob( - param.jobId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getHistoricalJob(responseContext); + public getHistoricalJob(param: SecurityMonitoringApiGetHistoricalJobRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getHistoricalJob(param.jobId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getHistoricalJob(responseContext); }); }); } @@ -7272,21 +5002,11 @@ export class SecurityMonitoringApi { * Get a rule's version history. * @param param The request object */ - public getRuleVersionHistory( - param: SecurityMonitoringApiGetRuleVersionHistoryRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getRuleVersionHistory( - param.ruleId, - param.pageSize, - param.pageNumber, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getRuleVersionHistory(responseContext); + public getRuleVersionHistory(param: SecurityMonitoringApiGetRuleVersionHistoryRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getRuleVersionHistory(param.ruleId,param.pageSize,param.pageNumber,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getRuleVersionHistory(responseContext); }); }); } @@ -7295,45 +5015,27 @@ export class SecurityMonitoringApi { * Get a single SBOM related to an asset by its type and name. * @param param The request object */ - public getSBOM( - param: SecurityMonitoringApiGetSBOMRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSBOM( - param.assetType, - param.filterAssetName, - param.filterRepoDigest, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSBOM(responseContext); + public getSBOM(param: SecurityMonitoringApiGetSBOMRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSBOM(param.assetType,param.filterAssetName,param.filterRepoDigest,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSBOM(responseContext); }); }); } /** * Get the details of a specific security filter. - * + * * See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) * for more examples. * @param param The request object */ - public getSecurityFilter( - param: SecurityMonitoringApiGetSecurityFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSecurityFilter( - param.securityFilterId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSecurityFilter(responseContext); + public getSecurityFilter(param: SecurityMonitoringApiGetSecurityFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSecurityFilter(param.securityFilterId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSecurityFilter(responseContext); }); }); } @@ -7342,21 +5044,11 @@ export class SecurityMonitoringApi { * Get a rule's details. * @param param The request object */ - public getSecurityMonitoringRule( - param: SecurityMonitoringApiGetSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSecurityMonitoringRule( - param.ruleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSecurityMonitoringRule( - responseContext - ); + public getSecurityMonitoringRule(param: SecurityMonitoringApiGetSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSecurityMonitoringRule(param.ruleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSecurityMonitoringRule(responseContext); }); }); } @@ -7365,19 +5057,11 @@ export class SecurityMonitoringApi { * Get a signal's details. * @param param The request object */ - public getSecurityMonitoringSignal( - param: SecurityMonitoringApiGetSecurityMonitoringSignalRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getSecurityMonitoringSignal(param.signalId, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSecurityMonitoringSignal( - responseContext - ); + public getSecurityMonitoringSignal(param: SecurityMonitoringApiGetSecurityMonitoringSignalRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSecurityMonitoringSignal(param.signalId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSecurityMonitoringSignal(responseContext); }); }); } @@ -7386,22 +5070,11 @@ export class SecurityMonitoringApi { * Get the details of a specific suppression rule. * @param param The request object */ - public getSecurityMonitoringSuppression( - param: SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getSecurityMonitoringSuppression( - param.suppressionId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSecurityMonitoringSuppression( - responseContext - ); + public getSecurityMonitoringSuppression(param: SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSecurityMonitoringSuppression(param.suppressionId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSecurityMonitoringSuppression(responseContext); }); }); } @@ -7410,21 +5083,11 @@ export class SecurityMonitoringApi { * Get the details of a notification rule for security signals. * @param param The request object */ - public getSignalNotificationRule( - param: SecurityMonitoringApiGetSignalNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSignalNotificationRule( - param.id, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSignalNotificationRule( - responseContext - ); + public getSignalNotificationRule(param: SecurityMonitoringApiGetSignalNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSignalNotificationRule(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSignalNotificationRule(responseContext); }); }); } @@ -7433,16 +5096,11 @@ export class SecurityMonitoringApi { * Returns the list of notification rules for security signals. * @param param The request object */ - public getSignalNotificationRules(options?: Configuration): Promise { - const requestContextPromise = - this.requestFactory.getSignalNotificationRules(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSignalNotificationRules( - responseContext - ); + public getSignalNotificationRules( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSignalNotificationRules(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSignalNotificationRules(responseContext); }); }); } @@ -7451,19 +5109,11 @@ export class SecurityMonitoringApi { * Get the details of a notification rule for security vulnerabilities. * @param param The request object */ - public getVulnerabilityNotificationRule( - param: SecurityMonitoringApiGetVulnerabilityNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getVulnerabilityNotificationRule(param.id, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getVulnerabilityNotificationRule( - responseContext - ); + public getVulnerabilityNotificationRule(param: SecurityMonitoringApiGetVulnerabilityNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getVulnerabilityNotificationRule(param.id,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getVulnerabilityNotificationRule(responseContext); }); }); } @@ -7472,82 +5122,55 @@ export class SecurityMonitoringApi { * Returns the list of notification rules for security vulnerabilities. * @param param The request object */ - public getVulnerabilityNotificationRules( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getVulnerabilityNotificationRules(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getVulnerabilityNotificationRules( - responseContext - ); + public getVulnerabilityNotificationRules( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getVulnerabilityNotificationRules(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getVulnerabilityNotificationRules(responseContext); }); }); } /** * Get a list of findings. These include both misconfigurations and identity risks. - * + * * **Note**: To filter and return only identity risks, add the following query parameter: `?filter[tags]=dd_rule_type:ciem` - * + * * ### Filtering - * + * * Filters can be applied by appending query parameters to the URL. - * + * * - Using a single filter: `?filter[attribute_key]=attribute_value` * - Chaining filters: `?filter[attribute_key]=attribute_value&filter[attribute_key]=attribute_value...` * - Filtering on tags: `?filter[tags]=tag_key:tag_value&filter[tags]=tag_key_2:tag_value_2` - * + * * Here, `attribute_key` can be any of the filter keys described further below. - * + * * Query parameters of type `integer` support comparison operators (`>`, `>=`, `<`, `<=`). This is particularly useful when filtering by `evaluation_changed_at` or `resource_discovery_timestamp`. For example: `?filter[evaluation_changed_at]=>20123123121`. - * + * * You can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*` to filter for any non-AWS resources. - * + * * The operator must come after the equal sign. For example, to filter with the `>=` operator, add the operator after the equal sign: `filter[evaluation_changed_at]=>=1678809373257`. - * + * * Query parameters must be only among the documented ones and with values of correct types. Duplicated query parameters (e.g. `filter[status]=low&filter[status]=info`) are not allowed. - * + * * ### Response - * + * * The response includes an array of finding objects, pagination metadata, and a count of items that match the query. - * + * * Each finding object contains the following: - * + * * - The finding ID that can be used in a `GetFinding` request to retrieve the full finding details. * - Core attributes, including status, evaluation, high-level resource details, muted state, and rule details. * - `evaluation_changed_at` and `resource_discovery_date` time stamps. * - An array of associated tags. * @param param The request object */ - public listFindings( - param: SecurityMonitoringApiListFindingsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listFindings( - param.pageLimit, - param.snapshotTimestamp, - param.pageCursor, - param.filterTags, - param.filterEvaluationChangedAt, - param.filterMuted, - param.filterRuleId, - param.filterRuleName, - param.filterResourceType, - param.filterDiscoveryTimestamp, - param.filterEvaluation, - param.filterStatus, - param.filterVulnerabilityType, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listFindings(responseContext); + public listFindings(param: SecurityMonitoringApiListFindingsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listFindings(param.pageLimit,param.snapshotTimestamp,param.pageCursor,param.filterTags,param.filterEvaluationChangedAt,param.filterMuted,param.filterRuleId,param.filterRuleName,param.filterResourceType,param.filterDiscoveryTimestamp,param.filterEvaluation,param.filterStatus,param.filterVulnerabilityType,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listFindings(responseContext); }); }); } @@ -7555,39 +5178,18 @@ export class SecurityMonitoringApi { /** * Provide a paginated version of listFindings returning a generator with all the items. */ - public async *listFindingsWithPagination( - param: SecurityMonitoringApiListFindingsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listFindingsWithPagination(param: SecurityMonitoringApiListFindingsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 100; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listFindings( - param.pageLimit, - param.snapshotTimestamp, - param.pageCursor, - param.filterTags, - param.filterEvaluationChangedAt, - param.filterMuted, - param.filterRuleId, - param.filterRuleName, - param.filterResourceType, - param.filterDiscoveryTimestamp, - param.filterEvaluation, - param.filterStatus, - param.filterVulnerabilityType, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listFindings( - responseContext - ); + const requestContext = await this.requestFactory.listFindings(param.pageLimit,param.snapshotTimestamp,param.pageCursor,param.filterTags,param.filterEvaluationChangedAt,param.filterMuted,param.filterRuleId,param.filterRuleName,param.filterResourceType,param.filterDiscoveryTimestamp,param.filterEvaluation,param.filterStatus,param.filterVulnerabilityType,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listFindings(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -7620,22 +5222,11 @@ export class SecurityMonitoringApi { * List historical jobs. * @param param The request object */ - public listHistoricalJobs( - param: SecurityMonitoringApiListHistoricalJobsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listHistoricalJobs( - param.pageSize, - param.pageNumber, - param.sort, - param.filterQuery, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listHistoricalJobs(responseContext); + public listHistoricalJobs(param: SecurityMonitoringApiListHistoricalJobsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listHistoricalJobs(param.pageSize,param.pageNumber,param.sort,param.filterQuery,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listHistoricalJobs(responseContext); }); }); } @@ -7644,16 +5235,11 @@ export class SecurityMonitoringApi { * Get the list of configured security filters with their definitions. * @param param The request object */ - public listSecurityFilters( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listSecurityFilters(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSecurityFilters(responseContext); + public listSecurityFilters( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSecurityFilters(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSecurityFilters(responseContext); }); }); } @@ -7662,23 +5248,11 @@ export class SecurityMonitoringApi { * List rules. * @param param The request object */ - public listSecurityMonitoringRules( - param: SecurityMonitoringApiListSecurityMonitoringRulesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listSecurityMonitoringRules( - param.pageSize, - param.pageNumber, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSecurityMonitoringRules( - responseContext - ); + public listSecurityMonitoringRules(param: SecurityMonitoringApiListSecurityMonitoringRulesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSecurityMonitoringRules(param.pageSize,param.pageNumber,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSecurityMonitoringRules(responseContext); }); }); } @@ -7689,27 +5263,11 @@ export class SecurityMonitoringApi { * security signals. * @param param The request object */ - public listSecurityMonitoringSignals( - param: SecurityMonitoringApiListSecurityMonitoringSignalsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listSecurityMonitoringSignals( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSecurityMonitoringSignals( - responseContext - ); + public listSecurityMonitoringSignals(param: SecurityMonitoringApiListSecurityMonitoringSignalsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSecurityMonitoringSignals(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSecurityMonitoringSignals(responseContext); }); }); } @@ -7717,34 +5275,18 @@ export class SecurityMonitoringApi { /** * Provide a paginated version of listSecurityMonitoringSignals returning a generator with all the items. */ - public async *listSecurityMonitoringSignalsWithPagination( - param: SecurityMonitoringApiListSecurityMonitoringSignalsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listSecurityMonitoringSignalsWithPagination(param: SecurityMonitoringApiListSecurityMonitoringSignalsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = - await this.requestFactory.listSecurityMonitoringSignals( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = - await this.responseProcessor.listSecurityMonitoringSignals( - responseContext - ); + const requestContext = await this.requestFactory.listSecurityMonitoringSignals(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listSecurityMonitoringSignals(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -7777,31 +5319,24 @@ export class SecurityMonitoringApi { * Get the list of all suppression rules. * @param param The request object */ - public listSecurityMonitoringSuppressions( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listSecurityMonitoringSuppressions(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSecurityMonitoringSuppressions( - responseContext - ); + public listSecurityMonitoringSuppressions( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSecurityMonitoringSuppressions(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSecurityMonitoringSuppressions(responseContext); }); }); } /** * Get a list of vulnerabilities. - * + * * ### Pagination - * + * * Pagination is enabled by default in both `vulnerabilities` and `assets`. The size of the page varies depending on the endpoint and cannot be modified. To automate the request of the next page, you can use the links section in the response. - * + * * This endpoint will return paginated responses. The pages are stored in the links section of the response: - * + * * ```JSON * { * "data": [...], @@ -7814,55 +5349,55 @@ export class SecurityMonitoringApi { * } * } * ``` - * - * + * + * * - `links.previous` is empty if the first page is requested. * - `links.next` is empty if the last page is requested. - * + * * #### Token - * + * * Vulnerabilities can be created, updated or deleted at any point in time. - * + * * Upon the first request, a token is created to ensure consistency across subsequent paginated requests. - * + * * A token is valid only for 24 hours. - * + * * #### First request - * + * * We consider a request to be the first request when there is no `page[token]` parameter. - * + * * The response of this first request contains the newly created token in the `links` section. - * + * * This token can then be used in the subsequent paginated requests. - * + * * #### Subsequent requests - * + * * Any request containing valid `page[token]` and `page[number]` parameters will be considered a subsequent request. - * + * * If the `token` is invalid, a `404` response will be returned. - * + * * If the page `number` is invalid, a `400` response will be returned. - * + * * ### Filtering - * + * * The request can include some filter parameters to filter the data to be retrieved. The format of the filter parameters follows the [JSON:API format](https://jsonapi.org/format/#fetching-filtering): `filter[$prop_name]`, where `prop_name` is the property name in the entity being filtered by. - * + * * All filters can include multiple values, where data will be filtered with an OR clause: `filter[title]=Title1,Title2` will filter all vulnerabilities where title is equal to `Title1` OR `Title2`. - * + * * String filters are case sensitive. - * + * * Boolean filters accept `true` or `false` as values. - * + * * Number filters must include an operator as a second filter input: `filter[$prop_name][$operator]`. For example, for the vulnerabilities endpoint: `filter[cvss.base.score][lte]=8`. - * + * * Available operators are: `eq` (==), `lt` (<), `lte` (<=), `gt` (>) and `gte` (>=). - * + * * ### Metadata - * + * * Following [JSON:API format](https://jsonapi.org/format/#document-meta), object including non-standard meta-information. - * + * * This endpoint includes the meta member in the response. For more details on each of the properties included in this section, check the endpoints response tables. - * + * * ```JSON * { * "data": [...], @@ -7876,106 +5411,36 @@ export class SecurityMonitoringApi { * ``` * @param param The request object */ - public listVulnerabilities( - param: SecurityMonitoringApiListVulnerabilitiesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listVulnerabilities( - param.pageToken, - param.pageNumber, - param.filterType, - param.filterCvssBaseScoreOp, - param.filterCvssBaseSeverity, - param.filterCvssBaseVector, - param.filterCvssDatadogScoreOp, - param.filterCvssDatadogSeverity, - param.filterCvssDatadogVector, - param.filterStatus, - param.filterTool, - param.filterLibraryName, - param.filterLibraryVersion, - param.filterAdvisoryId, - param.filterRisksExploitationProbability, - param.filterRisksPocExploitAvailable, - param.filterRisksExploitAvailable, - param.filterRisksEpssScoreOp, - param.filterRisksEpssSeverity, - param.filterLanguage, - param.filterEcosystem, - param.filterCodeLocationLocation, - param.filterCodeLocationFilePath, - param.filterCodeLocationMethod, - param.filterFixAvailable, - param.filterRepoDigests, - param.filterAssetName, - param.filterAssetType, - param.filterAssetVersionFirst, - param.filterAssetVersionLast, - param.filterAssetRepositoryUrl, - param.filterAssetRisksInProduction, - param.filterAssetRisksUnderAttack, - param.filterAssetRisksIsPubliclyAccessible, - param.filterAssetRisksHasPrivilegedAccess, - param.filterAssetRisksHasAccessToSensitiveData, - param.filterAssetEnvironments, - param.filterAssetArch, - param.filterAssetOperatingSystemName, - param.filterAssetOperatingSystemVersion, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listVulnerabilities(responseContext); + public listVulnerabilities(param: SecurityMonitoringApiListVulnerabilitiesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listVulnerabilities(param.pageToken,param.pageNumber,param.filterType,param.filterCvssBaseScoreOp,param.filterCvssBaseSeverity,param.filterCvssBaseVector,param.filterCvssDatadogScoreOp,param.filterCvssDatadogSeverity,param.filterCvssDatadogVector,param.filterStatus,param.filterTool,param.filterLibraryName,param.filterLibraryVersion,param.filterAdvisoryId,param.filterRisksExploitationProbability,param.filterRisksPocExploitAvailable,param.filterRisksExploitAvailable,param.filterRisksEpssScoreOp,param.filterRisksEpssSeverity,param.filterLanguage,param.filterEcosystem,param.filterCodeLocationLocation,param.filterCodeLocationFilePath,param.filterCodeLocationMethod,param.filterFixAvailable,param.filterRepoDigests,param.filterAssetName,param.filterAssetType,param.filterAssetVersionFirst,param.filterAssetVersionLast,param.filterAssetRepositoryUrl,param.filterAssetRisksInProduction,param.filterAssetRisksUnderAttack,param.filterAssetRisksIsPubliclyAccessible,param.filterAssetRisksHasPrivilegedAccess,param.filterAssetRisksHasAccessToSensitiveData,param.filterAssetEnvironments,param.filterAssetArch,param.filterAssetOperatingSystemName,param.filterAssetOperatingSystemVersion,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listVulnerabilities(responseContext); }); }); } /** * Get a list of vulnerable assets. - * + * * ### Pagination - * + * * Please review the [Pagination section for the "List Vulnerabilities"](#pagination) endpoint. - * + * * ### Filtering - * + * * Please review the [Filtering section for the "List Vulnerabilities"](#filtering) endpoint. - * + * * ### Metadata - * + * * Please review the [Metadata section for the "List Vulnerabilities"](#metadata) endpoint. * @param param The request object */ - public listVulnerableAssets( - param: SecurityMonitoringApiListVulnerableAssetsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listVulnerableAssets( - param.pageToken, - param.pageNumber, - param.filterName, - param.filterType, - param.filterVersionFirst, - param.filterVersionLast, - param.filterRepositoryUrl, - param.filterRisksInProduction, - param.filterRisksUnderAttack, - param.filterRisksIsPubliclyAccessible, - param.filterRisksHasPrivilegedAccess, - param.filterRisksHasAccessToSensitiveData, - param.filterEnvironments, - param.filterArch, - param.filterOperatingSystemName, - param.filterOperatingSystemVersion, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listVulnerableAssets(responseContext); + public listVulnerableAssets(param: SecurityMonitoringApiListVulnerableAssetsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listVulnerableAssets(param.pageToken,param.pageNumber,param.filterName,param.filterType,param.filterVersionFirst,param.filterVersionLast,param.filterRepositoryUrl,param.filterRisksInProduction,param.filterRisksUnderAttack,param.filterRisksIsPubliclyAccessible,param.filterRisksHasPrivilegedAccess,param.filterRisksHasAccessToSensitiveData,param.filterEnvironments,param.filterArch,param.filterOperatingSystemName,param.filterOperatingSystemVersion,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listVulnerableAssets(responseContext); }); }); } @@ -7984,19 +5449,11 @@ export class SecurityMonitoringApi { * Mute or unmute findings. * @param param The request object */ - public muteFindings( - param: SecurityMonitoringApiMuteFindingsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.muteFindings( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.muteFindings(responseContext); + public muteFindings(param: SecurityMonitoringApiMuteFindingsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.muteFindings(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.muteFindings(responseContext); }); }); } @@ -8005,23 +5462,11 @@ export class SecurityMonitoringApi { * Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated. * @param param The request object */ - public patchSignalNotificationRule( - param: SecurityMonitoringApiPatchSignalNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.patchSignalNotificationRule( - param.id, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.patchSignalNotificationRule( - responseContext - ); + public patchSignalNotificationRule(param: SecurityMonitoringApiPatchSignalNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.patchSignalNotificationRule(param.id,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.patchSignalNotificationRule(responseContext); }); }); } @@ -8030,23 +5475,11 @@ export class SecurityMonitoringApi { * Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated. * @param param The request object */ - public patchVulnerabilityNotificationRule( - param: SecurityMonitoringApiPatchVulnerabilityNotificationRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.patchVulnerabilityNotificationRule( - param.id, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.patchVulnerabilityNotificationRule( - responseContext - ); + public patchVulnerabilityNotificationRule(param: SecurityMonitoringApiPatchVulnerabilityNotificationRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.patchVulnerabilityNotificationRule(param.id,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.patchVulnerabilityNotificationRule(responseContext); }); }); } @@ -8055,19 +5488,11 @@ export class SecurityMonitoringApi { * Run a historical job. * @param param The request object */ - public runHistoricalJob( - param: SecurityMonitoringApiRunHistoricalJobRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.runHistoricalJob( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.runHistoricalJob(responseContext); + public runHistoricalJob(param: SecurityMonitoringApiRunHistoricalJobRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.runHistoricalJob(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.runHistoricalJob(responseContext); }); }); } @@ -8078,19 +5503,11 @@ export class SecurityMonitoringApi { * security signals. * @param param The request object */ - public searchSecurityMonitoringSignals( - param: SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.searchSecurityMonitoringSignals(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.searchSecurityMonitoringSignals( - responseContext - ); + public searchSecurityMonitoringSignals(param: SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.searchSecurityMonitoringSignals(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.searchSecurityMonitoringSignals(responseContext); }); }); } @@ -8098,10 +5515,8 @@ export class SecurityMonitoringApi { /** * Provide a paginated version of searchSecurityMonitoringSignals returning a generator with all the items. */ - public async *searchSecurityMonitoringSignalsWithPagination( - param: SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *searchSecurityMonitoringSignalsWithPagination(param: SecurityMonitoringApiSearchSecurityMonitoringSignalsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.body === undefined) { param.body = new SecurityMonitoringSignalListRequest(); @@ -8114,19 +5529,10 @@ export class SecurityMonitoringApi { } param.body.page.limit = pageSize; while (true) { - const requestContext = - await this.requestFactory.searchSecurityMonitoringSignals( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = - await this.responseProcessor.searchSecurityMonitoringSignals( - responseContext - ); + const requestContext = await this.requestFactory.searchSecurityMonitoringSignals(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.searchSecurityMonitoringSignals(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -8159,23 +5565,11 @@ export class SecurityMonitoringApi { * Test an existing rule. * @param param The request object */ - public testExistingSecurityMonitoringRule( - param: SecurityMonitoringApiTestExistingSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.testExistingSecurityMonitoringRule( - param.ruleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.testExistingSecurityMonitoringRule( - responseContext - ); + public testExistingSecurityMonitoringRule(param: SecurityMonitoringApiTestExistingSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.testExistingSecurityMonitoringRule(param.ruleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.testExistingSecurityMonitoringRule(responseContext); }); }); } @@ -8184,19 +5578,11 @@ export class SecurityMonitoringApi { * Test a rule. * @param param The request object */ - public testSecurityMonitoringRule( - param: SecurityMonitoringApiTestSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.testSecurityMonitoringRule(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.testSecurityMonitoringRule( - responseContext - ); + public testSecurityMonitoringRule(param: SecurityMonitoringApiTestSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.testSecurityMonitoringRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.testSecurityMonitoringRule(responseContext); }); }); } @@ -8206,20 +5592,11 @@ export class SecurityMonitoringApi { * Returns the security filter object when the request is successful. * @param param The request object */ - public updateSecurityFilter( - param: SecurityMonitoringApiUpdateSecurityFilterRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateSecurityFilter( - param.securityFilterId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSecurityFilter(responseContext); + public updateSecurityFilter(param: SecurityMonitoringApiUpdateSecurityFilterRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSecurityFilter(param.securityFilterId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSecurityFilter(responseContext); }); }); } @@ -8231,23 +5608,11 @@ export class SecurityMonitoringApi { * the tags (default tags cannot be removed). * @param param The request object */ - public updateSecurityMonitoringRule( - param: SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateSecurityMonitoringRule( - param.ruleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSecurityMonitoringRule( - responseContext - ); + public updateSecurityMonitoringRule(param: SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSecurityMonitoringRule(param.ruleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSecurityMonitoringRule(responseContext); }); }); } @@ -8256,23 +5621,11 @@ export class SecurityMonitoringApi { * Update a specific suppression rule. * @param param The request object */ - public updateSecurityMonitoringSuppression( - param: SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateSecurityMonitoringSuppression( - param.suppressionId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSecurityMonitoringSuppression( - responseContext - ); + public updateSecurityMonitoringSuppression(param: SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSecurityMonitoringSuppression(param.suppressionId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSecurityMonitoringSuppression(responseContext); }); }); } @@ -8281,20 +5634,12 @@ export class SecurityMonitoringApi { * Validate a detection rule. * @param param The request object */ - public validateSecurityMonitoringRule( - param: SecurityMonitoringApiValidateSecurityMonitoringRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.validateSecurityMonitoringRule(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.validateSecurityMonitoringRule( - responseContext - ); + public validateSecurityMonitoringRule(param: SecurityMonitoringApiValidateSecurityMonitoringRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.validateSecurityMonitoringRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.validateSecurityMonitoringRule(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/SensitiveDataScannerApi.ts b/packages/datadog-api-client-v2/apis/SensitiveDataScannerApi.ts index 34d0112f3697..5fdead338e4a 100644 --- a/packages/datadog-api-client-v2/apis/SensitiveDataScannerApi.ts +++ b/packages/datadog-api-client-v2/apis/SensitiveDataScannerApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { SensitiveDataScannerConfigRequest } from "../models/SensitiveDataScannerConfigRequest"; import { SensitiveDataScannerCreateGroupResponse } from "../models/SensitiveDataScannerCreateGroupResponse"; @@ -35,280 +33,200 @@ import { SensitiveDataScannerRuleUpdateResponse } from "../models/SensitiveDataS import { SensitiveDataScannerStandardPatternsResponseData } from "../models/SensitiveDataScannerStandardPatternsResponseData"; export class SensitiveDataScannerApiRequestFactory extends BaseAPIRequestFactory { - public async createScanningGroup( - body: SensitiveDataScannerGroupCreateRequest, - _options?: Configuration - ): Promise { + + public async createScanningGroup(body: SensitiveDataScannerGroupCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createScanningGroup"); + throw new RequiredError('body', 'createScanningGroup'); } // Path Params - const localVarPath = "/api/v2/sensitive-data-scanner/config/groups"; + const localVarPath = '/api/v2/sensitive-data-scanner/config/groups'; // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.createScanningGroup") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.createScanningGroup').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SensitiveDataScannerGroupCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "SensitiveDataScannerGroupCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createScanningRule( - body: SensitiveDataScannerRuleCreateRequest, - _options?: Configuration - ): Promise { + public async createScanningRule(body: SensitiveDataScannerRuleCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createScanningRule"); + throw new RequiredError('body', 'createScanningRule'); } // Path Params - const localVarPath = "/api/v2/sensitive-data-scanner/config/rules"; + const localVarPath = '/api/v2/sensitive-data-scanner/config/rules'; // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.createScanningRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.createScanningRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SensitiveDataScannerRuleCreateRequest", - "" - ), + ObjectSerializer.serialize(body, "SensitiveDataScannerRuleCreateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteScanningGroup( - groupId: string, - body: SensitiveDataScannerGroupDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteScanningGroup(groupId: string,body: SensitiveDataScannerGroupDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'groupId' is not null or undefined if (groupId === null || groupId === undefined) { - throw new RequiredError("groupId", "deleteScanningGroup"); + throw new RequiredError('groupId', 'deleteScanningGroup'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteScanningGroup"); + throw new RequiredError('body', 'deleteScanningGroup'); } // Path Params - const localVarPath = - "/api/v2/sensitive-data-scanner/config/groups/{group_id}".replace( - "{group_id}", - encodeURIComponent(String(groupId)) - ); + const localVarPath = '/api/v2/sensitive-data-scanner/config/groups/{group_id}' + .replace('{group_id}', encodeURIComponent(String(groupId))); // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.deleteScanningGroup") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.deleteScanningGroup').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SensitiveDataScannerGroupDeleteRequest", - "" - ), + ObjectSerializer.serialize(body, "SensitiveDataScannerGroupDeleteRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteScanningRule( - ruleId: string, - body: SensitiveDataScannerRuleDeleteRequest, - _options?: Configuration - ): Promise { + public async deleteScanningRule(ruleId: string,body: SensitiveDataScannerRuleDeleteRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "deleteScanningRule"); + throw new RequiredError('ruleId', 'deleteScanningRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "deleteScanningRule"); + throw new RequiredError('body', 'deleteScanningRule'); } // Path Params - const localVarPath = - "/api/v2/sensitive-data-scanner/config/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/sensitive-data-scanner/config/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.deleteScanningRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.deleteScanningRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SensitiveDataScannerRuleDeleteRequest", - "" - ), + ObjectSerializer.serialize(body, "SensitiveDataScannerRuleDeleteRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listScanningGroups( - _options?: Configuration - ): Promise { + public async listScanningGroups(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/sensitive-data-scanner/config"; + const localVarPath = '/api/v2/sensitive-data-scanner/config'; // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.listScanningGroups") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.listScanningGroups').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listStandardPatterns( - _options?: Configuration - ): Promise { + public async listStandardPatterns(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/sensitive-data-scanner/config/standard-patterns"; + const localVarPath = '/api/v2/sensitive-data-scanner/config/standard-patterns'; // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.listStandardPatterns") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.listStandardPatterns').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async reorderScanningGroups( - body: SensitiveDataScannerConfigRequest, - _options?: Configuration - ): Promise { + public async reorderScanningGroups(body: SensitiveDataScannerConfigRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "reorderScanningGroups"); + throw new RequiredError('body', 'reorderScanningGroups'); } // Path Params - const localVarPath = "/api/v2/sensitive-data-scanner/config"; + const localVarPath = '/api/v2/sensitive-data-scanner/config'; // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.reorderScanningGroups") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.reorderScanningGroups').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SensitiveDataScannerConfigRequest", ""), @@ -317,126 +235,90 @@ export class SensitiveDataScannerApiRequestFactory extends BaseAPIRequestFactory requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateScanningGroup( - groupId: string, - body: SensitiveDataScannerGroupUpdateRequest, - _options?: Configuration - ): Promise { + public async updateScanningGroup(groupId: string,body: SensitiveDataScannerGroupUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'groupId' is not null or undefined if (groupId === null || groupId === undefined) { - throw new RequiredError("groupId", "updateScanningGroup"); + throw new RequiredError('groupId', 'updateScanningGroup'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateScanningGroup"); + throw new RequiredError('body', 'updateScanningGroup'); } // Path Params - const localVarPath = - "/api/v2/sensitive-data-scanner/config/groups/{group_id}".replace( - "{group_id}", - encodeURIComponent(String(groupId)) - ); + const localVarPath = '/api/v2/sensitive-data-scanner/config/groups/{group_id}' + .replace('{group_id}', encodeURIComponent(String(groupId))); // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.updateScanningGroup") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.updateScanningGroup').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SensitiveDataScannerGroupUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "SensitiveDataScannerGroupUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateScanningRule( - ruleId: string, - body: SensitiveDataScannerRuleUpdateRequest, - _options?: Configuration - ): Promise { + public async updateScanningRule(ruleId: string,body: SensitiveDataScannerRuleUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "updateScanningRule"); + throw new RequiredError('ruleId', 'updateScanningRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateScanningRule"); + throw new RequiredError('body', 'updateScanningRule'); } // Path Params - const localVarPath = - "/api/v2/sensitive-data-scanner/config/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/sensitive-data-scanner/config/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.SensitiveDataScannerApi.updateScanningRule") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SensitiveDataScannerApi.updateScanningRule').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "SensitiveDataScannerRuleUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "SensitiveDataScannerRuleUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SensitiveDataScannerApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -444,29 +326,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to createScanningGroup * @throws ApiException if the response code was not in [200, 299] */ - public async createScanningGroup( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createScanningGroup(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerCreateGroupResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerCreateGroupResponse" - ) as SensitiveDataScannerCreateGroupResponse; + const body: SensitiveDataScannerCreateGroupResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerCreateGroupResponse" + ) as SensitiveDataScannerCreateGroupResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -475,30 +345,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerCreateGroupResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerCreateGroupResponse", - "" - ) as SensitiveDataScannerCreateGroupResponse; + const body: SensitiveDataScannerCreateGroupResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerCreateGroupResponse", "" + ) as SensitiveDataScannerCreateGroupResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -508,29 +370,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to createScanningRule * @throws ApiException if the response code was not in [200, 299] */ - public async createScanningRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createScanningRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerCreateRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerCreateRuleResponse" - ) as SensitiveDataScannerCreateRuleResponse; + const body: SensitiveDataScannerCreateRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerCreateRuleResponse" + ) as SensitiveDataScannerCreateRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -539,30 +389,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerCreateRuleResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerCreateRuleResponse", - "" - ) as SensitiveDataScannerCreateRuleResponse; + const body: SensitiveDataScannerCreateRuleResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerCreateRuleResponse", "" + ) as SensitiveDataScannerCreateRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -572,30 +414,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to deleteScanningGroup * @throws ApiException if the response code was not in [200, 299] */ - public async deleteScanningGroup( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteScanningGroup(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerGroupDeleteResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerGroupDeleteResponse" - ) as SensitiveDataScannerGroupDeleteResponse; + const body: SensitiveDataScannerGroupDeleteResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerGroupDeleteResponse" + ) as SensitiveDataScannerGroupDeleteResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -604,30 +433,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerGroupDeleteResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerGroupDeleteResponse", - "" - ) as SensitiveDataScannerGroupDeleteResponse; + const body: SensitiveDataScannerGroupDeleteResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerGroupDeleteResponse", "" + ) as SensitiveDataScannerGroupDeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -637,30 +458,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to deleteScanningRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteScanningRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteScanningRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerRuleDeleteResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerRuleDeleteResponse" - ) as SensitiveDataScannerRuleDeleteResponse; + const body: SensitiveDataScannerRuleDeleteResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerRuleDeleteResponse" + ) as SensitiveDataScannerRuleDeleteResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -669,30 +477,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerRuleDeleteResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerRuleDeleteResponse", - "" - ) as SensitiveDataScannerRuleDeleteResponse; + const body: SensitiveDataScannerRuleDeleteResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerRuleDeleteResponse", "" + ) as SensitiveDataScannerRuleDeleteResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -702,29 +502,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to listScanningGroups * @throws ApiException if the response code was not in [200, 299] */ - public async listScanningGroups( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listScanningGroups(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerGetConfigResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerGetConfigResponse" - ) as SensitiveDataScannerGetConfigResponse; + const body: SensitiveDataScannerGetConfigResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerGetConfigResponse" + ) as SensitiveDataScannerGetConfigResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -733,30 +521,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerGetConfigResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerGetConfigResponse", - "" - ) as SensitiveDataScannerGetConfigResponse; + const body: SensitiveDataScannerGetConfigResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerGetConfigResponse", "" + ) as SensitiveDataScannerGetConfigResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -766,29 +546,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to listStandardPatterns * @throws ApiException if the response code was not in [200, 299] */ - public async listStandardPatterns( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listStandardPatterns(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerStandardPatternsResponseData = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerStandardPatternsResponseData" - ) as SensitiveDataScannerStandardPatternsResponseData; + const body: SensitiveDataScannerStandardPatternsResponseData = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerStandardPatternsResponseData" + ) as SensitiveDataScannerStandardPatternsResponseData; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -797,30 +565,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerStandardPatternsResponseData = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerStandardPatternsResponseData", - "" - ) as SensitiveDataScannerStandardPatternsResponseData; + const body: SensitiveDataScannerStandardPatternsResponseData = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerStandardPatternsResponseData", "" + ) as SensitiveDataScannerStandardPatternsResponseData; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -830,29 +590,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to reorderScanningGroups * @throws ApiException if the response code was not in [200, 299] */ - public async reorderScanningGroups( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async reorderScanningGroups(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerReorderGroupsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerReorderGroupsResponse" - ) as SensitiveDataScannerReorderGroupsResponse; + const body: SensitiveDataScannerReorderGroupsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerReorderGroupsResponse" + ) as SensitiveDataScannerReorderGroupsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -861,30 +609,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerReorderGroupsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerReorderGroupsResponse", - "" - ) as SensitiveDataScannerReorderGroupsResponse; + const body: SensitiveDataScannerReorderGroupsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerReorderGroupsResponse", "" + ) as SensitiveDataScannerReorderGroupsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -894,30 +634,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to updateScanningGroup * @throws ApiException if the response code was not in [200, 299] */ - public async updateScanningGroup( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateScanningGroup(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerGroupUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerGroupUpdateResponse" - ) as SensitiveDataScannerGroupUpdateResponse; + const body: SensitiveDataScannerGroupUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerGroupUpdateResponse" + ) as SensitiveDataScannerGroupUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -926,30 +653,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerGroupUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerGroupUpdateResponse", - "" - ) as SensitiveDataScannerGroupUpdateResponse; + const body: SensitiveDataScannerGroupUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerGroupUpdateResponse", "" + ) as SensitiveDataScannerGroupUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -959,30 +678,17 @@ export class SensitiveDataScannerApiResponseProcessor { * @params response Response returned by the server for a request to updateScanningRule * @throws ApiException if the response code was not in [200, 299] */ - public async updateScanningRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateScanningRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SensitiveDataScannerRuleUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerRuleUpdateResponse" - ) as SensitiveDataScannerRuleUpdateResponse; + const body: SensitiveDataScannerRuleUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerRuleUpdateResponse" + ) as SensitiveDataScannerRuleUpdateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -991,30 +697,22 @@ export class SensitiveDataScannerApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SensitiveDataScannerRuleUpdateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "SensitiveDataScannerRuleUpdateResponse", - "" - ) as SensitiveDataScannerRuleUpdateResponse; + const body: SensitiveDataScannerRuleUpdateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SensitiveDataScannerRuleUpdateResponse", "" + ) as SensitiveDataScannerRuleUpdateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1022,14 +720,14 @@ export interface SensitiveDataScannerApiCreateScanningGroupRequest { /** * @type SensitiveDataScannerGroupCreateRequest */ - body: SensitiveDataScannerGroupCreateRequest; + body: SensitiveDataScannerGroupCreateRequest } export interface SensitiveDataScannerApiCreateScanningRuleRequest { /** * @type SensitiveDataScannerRuleCreateRequest */ - body: SensitiveDataScannerRuleCreateRequest; + body: SensitiveDataScannerRuleCreateRequest } export interface SensitiveDataScannerApiDeleteScanningGroupRequest { @@ -1037,11 +735,11 @@ export interface SensitiveDataScannerApiDeleteScanningGroupRequest { * The ID of a group of rules. * @type string */ - groupId: string; + groupId: string /** * @type SensitiveDataScannerGroupDeleteRequest */ - body: SensitiveDataScannerGroupDeleteRequest; + body: SensitiveDataScannerGroupDeleteRequest } export interface SensitiveDataScannerApiDeleteScanningRuleRequest { @@ -1049,18 +747,18 @@ export interface SensitiveDataScannerApiDeleteScanningRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string /** * @type SensitiveDataScannerRuleDeleteRequest */ - body: SensitiveDataScannerRuleDeleteRequest; + body: SensitiveDataScannerRuleDeleteRequest } export interface SensitiveDataScannerApiReorderScanningGroupsRequest { /** * @type SensitiveDataScannerConfigRequest */ - body: SensitiveDataScannerConfigRequest; + body: SensitiveDataScannerConfigRequest } export interface SensitiveDataScannerApiUpdateScanningGroupRequest { @@ -1068,11 +766,11 @@ export interface SensitiveDataScannerApiUpdateScanningGroupRequest { * The ID of a group of rules. * @type string */ - groupId: string; + groupId: string /** * @type SensitiveDataScannerGroupUpdateRequest */ - body: SensitiveDataScannerGroupUpdateRequest; + body: SensitiveDataScannerGroupUpdateRequest } export interface SensitiveDataScannerApiUpdateScanningRuleRequest { @@ -1080,11 +778,11 @@ export interface SensitiveDataScannerApiUpdateScanningRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string /** * @type SensitiveDataScannerRuleUpdateRequest */ - body: SensitiveDataScannerRuleUpdateRequest; + body: SensitiveDataScannerRuleUpdateRequest } export class SensitiveDataScannerApi { @@ -1092,17 +790,10 @@ export class SensitiveDataScannerApi { private responseProcessor: SensitiveDataScannerApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SensitiveDataScannerApiRequestFactory, - responseProcessor?: SensitiveDataScannerApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SensitiveDataScannerApiRequestFactory, responseProcessor?: SensitiveDataScannerApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new SensitiveDataScannerApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SensitiveDataScannerApiResponseProcessor(); + this.requestFactory = requestFactory || new SensitiveDataScannerApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SensitiveDataScannerApiResponseProcessor(); } /** @@ -1113,19 +804,11 @@ export class SensitiveDataScannerApi { * The new group will be ordered last within the configuration. * @param param The request object */ - public createScanningGroup( - param: SensitiveDataScannerApiCreateScanningGroupRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createScanningGroup( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createScanningGroup(responseContext); + public createScanningGroup(param: SensitiveDataScannerApiCreateScanningGroupRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createScanningGroup(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createScanningGroup(responseContext); }); }); } @@ -1138,19 +821,11 @@ export class SensitiveDataScannerApi { * excluded_attributes. If both are missing, we will scan the whole event. * @param param The request object */ - public createScanningRule( - param: SensitiveDataScannerApiCreateScanningRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createScanningRule( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createScanningRule(responseContext); + public createScanningRule(param: SensitiveDataScannerApiCreateScanningRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createScanningRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createScanningRule(responseContext); }); }); } @@ -1159,20 +834,11 @@ export class SensitiveDataScannerApi { * Delete a given group. * @param param The request object */ - public deleteScanningGroup( - param: SensitiveDataScannerApiDeleteScanningGroupRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteScanningGroup( - param.groupId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteScanningGroup(responseContext); + public deleteScanningGroup(param: SensitiveDataScannerApiDeleteScanningGroupRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteScanningGroup(param.groupId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteScanningGroup(responseContext); }); }); } @@ -1181,20 +847,11 @@ export class SensitiveDataScannerApi { * Delete a given rule. * @param param The request object */ - public deleteScanningRule( - param: SensitiveDataScannerApiDeleteScanningRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteScanningRule( - param.ruleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteScanningRule(responseContext); + public deleteScanningRule(param: SensitiveDataScannerApiDeleteScanningRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteScanningRule(param.ruleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteScanningRule(responseContext); }); }); } @@ -1203,16 +860,11 @@ export class SensitiveDataScannerApi { * List all the Scanning groups in your organization. * @param param The request object */ - public listScanningGroups( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listScanningGroups(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listScanningGroups(responseContext); + public listScanningGroups( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listScanningGroups(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listScanningGroups(responseContext); }); }); } @@ -1221,16 +873,11 @@ export class SensitiveDataScannerApi { * Returns all standard patterns. * @param param The request object */ - public listStandardPatterns( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listStandardPatterns(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listStandardPatterns(responseContext); + public listStandardPatterns( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listStandardPatterns(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listStandardPatterns(responseContext); }); }); } @@ -1239,19 +886,11 @@ export class SensitiveDataScannerApi { * Reorder the list of groups. * @param param The request object */ - public reorderScanningGroups( - param: SensitiveDataScannerApiReorderScanningGroupsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.reorderScanningGroups( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.reorderScanningGroups(responseContext); + public reorderScanningGroups(param: SensitiveDataScannerApiReorderScanningGroupsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.reorderScanningGroups(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.reorderScanningGroups(responseContext); }); }); } @@ -1263,20 +902,11 @@ export class SensitiveDataScannerApi { * currently in the group, and MUST NOT contain any others. * @param param The request object */ - public updateScanningGroup( - param: SensitiveDataScannerApiUpdateScanningGroupRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateScanningGroup( - param.groupId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateScanningGroup(responseContext); + public updateScanningGroup(param: SensitiveDataScannerApiUpdateScanningGroupRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateScanningGroup(param.groupId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateScanningGroup(responseContext); }); }); } @@ -1288,21 +918,12 @@ export class SensitiveDataScannerApi { * relationship will also result in an error. * @param param The request object */ - public updateScanningRule( - param: SensitiveDataScannerApiUpdateScanningRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateScanningRule( - param.ruleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateScanningRule(responseContext); + public updateScanningRule(param: SensitiveDataScannerApiUpdateScanningRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateScanningRule(param.ruleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateScanningRule(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts b/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts index 6204aac1ab3e..7a4e516787ca 100644 --- a/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ApplicationKeyCreateRequest } from "../models/ApplicationKeyCreateRequest"; import { ApplicationKeyResponse } from "../models/ApplicationKeyResponse"; @@ -27,31 +25,26 @@ import { ServiceAccountCreateRequest } from "../models/ServiceAccountCreateReque import { UserResponse } from "../models/UserResponse"; export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { - public async createServiceAccount( - body: ServiceAccountCreateRequest, - _options?: Configuration - ): Promise { + + public async createServiceAccount(body: ServiceAccountCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createServiceAccount"); + throw new RequiredError('body', 'createServiceAccount'); } // Path Params - const localVarPath = "/api/v2/service_accounts"; + const localVarPath = '/api/v2/service_accounts'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceAccountsApi.createServiceAccount") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ServiceAccountsApi.createServiceAccount').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ServiceAccountCreateRequest", ""), @@ -60,52 +53,36 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createServiceAccountApplicationKey( - serviceAccountId: string, - body: ApplicationKeyCreateRequest, - _options?: Configuration - ): Promise { + public async createServiceAccountApplicationKey(serviceAccountId: string,body: ApplicationKeyCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceAccountId' is not null or undefined if (serviceAccountId === null || serviceAccountId === undefined) { - throw new RequiredError( - "serviceAccountId", - "createServiceAccountApplicationKey" - ); + throw new RequiredError('serviceAccountId', 'createServiceAccountApplicationKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createServiceAccountApplicationKey"); + throw new RequiredError('body', 'createServiceAccountApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/service_accounts/{service_account_id}/application_keys".replace( - "{service_account_id}", - encodeURIComponent(String(serviceAccountId)) - ); + const localVarPath = '/api/v2/service_accounts/{service_account_id}/application_keys' + .replace('{service_account_id}', encodeURIComponent(String(serviceAccountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceAccountsApi.createServiceAccountApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ServiceAccountsApi.createServiceAccountApplicationKey').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKeyCreateRequest", ""), @@ -114,237 +91,143 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteServiceAccountApplicationKey( - serviceAccountId: string, - appKeyId: string, - _options?: Configuration - ): Promise { + public async deleteServiceAccountApplicationKey(serviceAccountId: string,appKeyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceAccountId' is not null or undefined if (serviceAccountId === null || serviceAccountId === undefined) { - throw new RequiredError( - "serviceAccountId", - "deleteServiceAccountApplicationKey" - ); + throw new RequiredError('serviceAccountId', 'deleteServiceAccountApplicationKey'); } // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "deleteServiceAccountApplicationKey"); + throw new RequiredError('appKeyId', 'deleteServiceAccountApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}" - .replace( - "{service_account_id}", - encodeURIComponent(String(serviceAccountId)) - ) - .replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + const localVarPath = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}' + .replace('{service_account_id}', encodeURIComponent(String(serviceAccountId))) + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceAccountsApi.deleteServiceAccountApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ServiceAccountsApi.deleteServiceAccountApplicationKey').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getServiceAccountApplicationKey( - serviceAccountId: string, - appKeyId: string, - _options?: Configuration - ): Promise { + public async getServiceAccountApplicationKey(serviceAccountId: string,appKeyId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceAccountId' is not null or undefined if (serviceAccountId === null || serviceAccountId === undefined) { - throw new RequiredError( - "serviceAccountId", - "getServiceAccountApplicationKey" - ); + throw new RequiredError('serviceAccountId', 'getServiceAccountApplicationKey'); } // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "getServiceAccountApplicationKey"); + throw new RequiredError('appKeyId', 'getServiceAccountApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}" - .replace( - "{service_account_id}", - encodeURIComponent(String(serviceAccountId)) - ) - .replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + const localVarPath = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}' + .replace('{service_account_id}', encodeURIComponent(String(serviceAccountId))) + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceAccountsApi.getServiceAccountApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceAccountsApi.getServiceAccountApplicationKey').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listServiceAccountApplicationKeys( - serviceAccountId: string, - pageSize?: number, - pageNumber?: number, - sort?: ApplicationKeysSort, - filter?: string, - filterCreatedAtStart?: string, - filterCreatedAtEnd?: string, - _options?: Configuration - ): Promise { + public async listServiceAccountApplicationKeys(serviceAccountId: string,pageSize?: number,pageNumber?: number,sort?: ApplicationKeysSort,filter?: string,filterCreatedAtStart?: string,filterCreatedAtEnd?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceAccountId' is not null or undefined if (serviceAccountId === null || serviceAccountId === undefined) { - throw new RequiredError( - "serviceAccountId", - "listServiceAccountApplicationKeys" - ); + throw new RequiredError('serviceAccountId', 'listServiceAccountApplicationKeys'); } // Path Params - const localVarPath = - "/api/v2/service_accounts/{service_account_id}/application_keys".replace( - "{service_account_id}", - encodeURIComponent(String(serviceAccountId)) - ); + const localVarPath = '/api/v2/service_accounts/{service_account_id}/application_keys' + .replace('{service_account_id}', encodeURIComponent(String(serviceAccountId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceAccountsApi.listServiceAccountApplicationKeys") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceAccountsApi.listServiceAccountApplicationKeys').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (filterCreatedAtStart !== undefined) { - requestContext.setQueryParam( - "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); } if (filterCreatedAtEnd !== undefined) { - requestContext.setQueryParam( - "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), - "" - ); + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateServiceAccountApplicationKey( - serviceAccountId: string, - appKeyId: string, - body: ApplicationKeyUpdateRequest, - _options?: Configuration - ): Promise { + public async updateServiceAccountApplicationKey(serviceAccountId: string,appKeyId: string,body: ApplicationKeyUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceAccountId' is not null or undefined if (serviceAccountId === null || serviceAccountId === undefined) { - throw new RequiredError( - "serviceAccountId", - "updateServiceAccountApplicationKey" - ); + throw new RequiredError('serviceAccountId', 'updateServiceAccountApplicationKey'); } // verify required parameter 'appKeyId' is not null or undefined if (appKeyId === null || appKeyId === undefined) { - throw new RequiredError("appKeyId", "updateServiceAccountApplicationKey"); + throw new RequiredError('appKeyId', 'updateServiceAccountApplicationKey'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateServiceAccountApplicationKey"); + throw new RequiredError('body', 'updateServiceAccountApplicationKey'); } // Path Params - const localVarPath = - "/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}" - .replace( - "{service_account_id}", - encodeURIComponent(String(serviceAccountId)) - ) - .replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + const localVarPath = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}' + .replace('{service_account_id}', encodeURIComponent(String(serviceAccountId))) + .replace('{app_key_id}', encodeURIComponent(String(appKeyId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceAccountsApi.updateServiceAccountApplicationKey") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.ServiceAccountsApi.updateServiceAccountApplicationKey').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ApplicationKeyUpdateRequest", ""), @@ -353,16 +236,14 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ServiceAccountsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -370,12 +251,8 @@ export class ServiceAccountsApiResponseProcessor { * @params response Response returned by the server for a request to createServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createServiceAccount( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createServiceAccount(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -383,15 +260,8 @@ export class ServiceAccountsApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -400,11 +270,8 @@ export class ServiceAccountsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -412,17 +279,13 @@ export class ServiceAccountsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -432,12 +295,8 @@ export class ServiceAccountsApiResponseProcessor { * @params response Response returned by the server for a request to createServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async createServiceAccountApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createServiceAccountApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -445,15 +304,8 @@ export class ServiceAccountsApiResponseProcessor { ) as ApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -462,11 +314,8 @@ export class ServiceAccountsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -474,17 +323,13 @@ export class ServiceAccountsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ApplicationKeyResponse", - "" + "ApplicationKeyResponse", "" ) as ApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -494,24 +339,13 @@ export class ServiceAccountsApiResponseProcessor { * @params response Response returned by the server for a request to deleteServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async deleteServiceAccountApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteServiceAccountApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -520,11 +354,8 @@ export class ServiceAccountsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -532,17 +363,13 @@ export class ServiceAccountsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -552,12 +379,8 @@ export class ServiceAccountsApiResponseProcessor { * @params response Response returned by the server for a request to getServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async getServiceAccountApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getServiceAccountApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PartialApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -565,15 +388,8 @@ export class ServiceAccountsApiResponseProcessor { ) as PartialApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -582,11 +398,8 @@ export class ServiceAccountsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -594,17 +407,13 @@ export class ServiceAccountsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PartialApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PartialApplicationKeyResponse", - "" + "PartialApplicationKeyResponse", "" ) as PartialApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -614,12 +423,8 @@ export class ServiceAccountsApiResponseProcessor { * @params response Response returned by the server for a request to listServiceAccountApplicationKeys * @throws ApiException if the response code was not in [200, 299] */ - public async listServiceAccountApplicationKeys( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listServiceAccountApplicationKeys(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListApplicationKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -627,16 +432,8 @@ export class ServiceAccountsApiResponseProcessor { ) as ListApplicationKeysResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -645,11 +442,8 @@ export class ServiceAccountsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -657,17 +451,13 @@ export class ServiceAccountsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListApplicationKeysResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListApplicationKeysResponse", - "" + "ListApplicationKeysResponse", "" ) as ListApplicationKeysResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -677,12 +467,8 @@ export class ServiceAccountsApiResponseProcessor { * @params response Response returned by the server for a request to updateServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ - public async updateServiceAccountApplicationKey( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateServiceAccountApplicationKey(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PartialApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -690,16 +476,8 @@ export class ServiceAccountsApiResponseProcessor { ) as PartialApplicationKeyResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -708,11 +486,8 @@ export class ServiceAccountsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -720,17 +495,13 @@ export class ServiceAccountsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PartialApplicationKeyResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PartialApplicationKeyResponse", - "" + "PartialApplicationKeyResponse", "" ) as PartialApplicationKeyResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -738,7 +509,7 @@ export interface ServiceAccountsApiCreateServiceAccountRequest { /** * @type ServiceAccountCreateRequest */ - body: ServiceAccountCreateRequest; + body: ServiceAccountCreateRequest } export interface ServiceAccountsApiCreateServiceAccountApplicationKeyRequest { @@ -746,11 +517,11 @@ export interface ServiceAccountsApiCreateServiceAccountApplicationKeyRequest { * The ID of the service account. * @type string */ - serviceAccountId: string; + serviceAccountId: string /** * @type ApplicationKeyCreateRequest */ - body: ApplicationKeyCreateRequest; + body: ApplicationKeyCreateRequest } export interface ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest { @@ -758,12 +529,12 @@ export interface ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest { * The ID of the service account. * @type string */ - serviceAccountId: string; + serviceAccountId: string /** * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string } export interface ServiceAccountsApiGetServiceAccountApplicationKeyRequest { @@ -771,12 +542,12 @@ export interface ServiceAccountsApiGetServiceAccountApplicationKeyRequest { * The ID of the service account. * @type string */ - serviceAccountId: string; + serviceAccountId: string /** * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string } export interface ServiceAccountsApiListServiceAccountApplicationKeysRequest { @@ -784,39 +555,39 @@ export interface ServiceAccountsApiListServiceAccountApplicationKeysRequest { * The ID of the service account. * @type string */ - serviceAccountId: string; + serviceAccountId: string /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Application key attribute used to sort results. Sort order is ascending * by default. In order to specify a descending sort, prefix the * attribute with a minus sign. * @type ApplicationKeysSort */ - sort?: ApplicationKeysSort; + sort?: ApplicationKeysSort /** * Filter application keys by the specified string. * @type string */ - filter?: string; + filter?: string /** * Only include application keys created on or after the specified date. * @type string */ - filterCreatedAtStart?: string; + filterCreatedAtStart?: string /** * Only include application keys created on or before the specified date. * @type string */ - filterCreatedAtEnd?: string; + filterCreatedAtEnd?: string } export interface ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest { @@ -824,16 +595,16 @@ export interface ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest { * The ID of the service account. * @type string */ - serviceAccountId: string; + serviceAccountId: string /** * The ID of the application key. * @type string */ - appKeyId: string; + appKeyId: string /** * @type ApplicationKeyUpdateRequest */ - body: ApplicationKeyUpdateRequest; + body: ApplicationKeyUpdateRequest } export class ServiceAccountsApi { @@ -841,35 +612,21 @@ export class ServiceAccountsApi { private responseProcessor: ServiceAccountsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceAccountsApiRequestFactory, - responseProcessor?: ServiceAccountsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceAccountsApiRequestFactory, responseProcessor?: ServiceAccountsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ServiceAccountsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ServiceAccountsApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceAccountsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceAccountsApiResponseProcessor(); } /** * Create a service account for your organization. * @param param The request object */ - public createServiceAccount( - param: ServiceAccountsApiCreateServiceAccountRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createServiceAccount( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createServiceAccount(responseContext); + public createServiceAccount(param: ServiceAccountsApiCreateServiceAccountRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createServiceAccount(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createServiceAccount(responseContext); }); }); } @@ -878,23 +635,11 @@ export class ServiceAccountsApi { * Create an application key for this service account. * @param param The request object */ - public createServiceAccountApplicationKey( - param: ServiceAccountsApiCreateServiceAccountApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createServiceAccountApplicationKey( - param.serviceAccountId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createServiceAccountApplicationKey( - responseContext - ); + public createServiceAccountApplicationKey(param: ServiceAccountsApiCreateServiceAccountApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createServiceAccountApplicationKey(param.serviceAccountId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createServiceAccountApplicationKey(responseContext); }); }); } @@ -903,23 +648,11 @@ export class ServiceAccountsApi { * Delete an application key owned by this service account. * @param param The request object */ - public deleteServiceAccountApplicationKey( - param: ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.deleteServiceAccountApplicationKey( - param.serviceAccountId, - param.appKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteServiceAccountApplicationKey( - responseContext - ); + public deleteServiceAccountApplicationKey(param: ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteServiceAccountApplicationKey(param.serviceAccountId,param.appKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteServiceAccountApplicationKey(responseContext); }); }); } @@ -928,23 +661,11 @@ export class ServiceAccountsApi { * Get an application key owned by this service account. * @param param The request object */ - public getServiceAccountApplicationKey( - param: ServiceAccountsApiGetServiceAccountApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getServiceAccountApplicationKey( - param.serviceAccountId, - param.appKeyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getServiceAccountApplicationKey( - responseContext - ); + public getServiceAccountApplicationKey(param: ServiceAccountsApiGetServiceAccountApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getServiceAccountApplicationKey(param.serviceAccountId,param.appKeyId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getServiceAccountApplicationKey(responseContext); }); }); } @@ -953,28 +674,11 @@ export class ServiceAccountsApi { * List all application keys available for this service account. * @param param The request object */ - public listServiceAccountApplicationKeys( - param: ServiceAccountsApiListServiceAccountApplicationKeysRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.listServiceAccountApplicationKeys( - param.serviceAccountId, - param.pageSize, - param.pageNumber, - param.sort, - param.filter, - param.filterCreatedAtStart, - param.filterCreatedAtEnd, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listServiceAccountApplicationKeys( - responseContext - ); + public listServiceAccountApplicationKeys(param: ServiceAccountsApiListServiceAccountApplicationKeysRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listServiceAccountApplicationKeys(param.serviceAccountId,param.pageSize,param.pageNumber,param.sort,param.filter,param.filterCreatedAtStart,param.filterCreatedAtEnd,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listServiceAccountApplicationKeys(responseContext); }); }); } @@ -983,25 +687,12 @@ export class ServiceAccountsApi { * Edit an application key owned by this service account. * @param param The request object */ - public updateServiceAccountApplicationKey( - param: ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateServiceAccountApplicationKey( - param.serviceAccountId, - param.appKeyId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateServiceAccountApplicationKey( - responseContext - ); + public updateServiceAccountApplicationKey(param: ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateServiceAccountApplicationKey(param.serviceAccountId,param.appKeyId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateServiceAccountApplicationKey(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts b/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts index 8c2c0ab8c3be..005ca3138c8d 100644 --- a/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { ServiceDefinitionCreateResponse } from "../models/ServiceDefinitionCreateResponse"; import { ServiceDefinitionData } from "../models/ServiceDefinitionData"; @@ -25,31 +23,26 @@ import { ServiceDefinitionsCreateRequest } from "../models/ServiceDefinitionsCre import { ServiceDefinitionsListResponse } from "../models/ServiceDefinitionsListResponse"; export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory { - public async createOrUpdateServiceDefinitions( - body: ServiceDefinitionsCreateRequest, - _options?: Configuration - ): Promise { + + public async createOrUpdateServiceDefinitions(body: ServiceDefinitionsCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createOrUpdateServiceDefinitions"); + throw new RequiredError('body', 'createOrUpdateServiceDefinitions'); } // Path Params - const localVarPath = "/api/v2/services/definitions"; + const localVarPath = '/api/v2/services/definitions'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceDefinitionApi.createOrUpdateServiceDefinitions") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ServiceDefinitionApi.createOrUpdateServiceDefinitions').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "ServiceDefinitionsCreateRequest", ""), @@ -58,154 +51,93 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteServiceDefinition( - serviceName: string, - _options?: Configuration - ): Promise { + public async deleteServiceDefinition(serviceName: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceName' is not null or undefined if (serviceName === null || serviceName === undefined) { - throw new RequiredError("serviceName", "deleteServiceDefinition"); + throw new RequiredError('serviceName', 'deleteServiceDefinition'); } // Path Params - const localVarPath = "/api/v2/services/definitions/{service_name}".replace( - "{service_name}", - encodeURIComponent(String(serviceName)) - ); + const localVarPath = '/api/v2/services/definitions/{service_name}' + .replace('{service_name}', encodeURIComponent(String(serviceName))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceDefinitionApi.deleteServiceDefinition") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ServiceDefinitionApi.deleteServiceDefinition').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getServiceDefinition( - serviceName: string, - schemaVersion?: ServiceDefinitionSchemaVersions, - _options?: Configuration - ): Promise { + public async getServiceDefinition(serviceName: string,schemaVersion?: ServiceDefinitionSchemaVersions,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'serviceName' is not null or undefined if (serviceName === null || serviceName === undefined) { - throw new RequiredError("serviceName", "getServiceDefinition"); + throw new RequiredError('serviceName', 'getServiceDefinition'); } // Path Params - const localVarPath = "/api/v2/services/definitions/{service_name}".replace( - "{service_name}", - encodeURIComponent(String(serviceName)) - ); + const localVarPath = '/api/v2/services/definitions/{service_name}' + .replace('{service_name}', encodeURIComponent(String(serviceName))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceDefinitionApi.getServiceDefinition") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceDefinitionApi.getServiceDefinition').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (schemaVersion !== undefined) { - requestContext.setQueryParam( - "schema_version", - ObjectSerializer.serialize( - schemaVersion, - "ServiceDefinitionSchemaVersions", - "" - ), - "" - ); + requestContext.setQueryParam("schema_version", ObjectSerializer.serialize(schemaVersion, "ServiceDefinitionSchemaVersions", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listServiceDefinitions( - pageSize?: number, - pageNumber?: number, - schemaVersion?: ServiceDefinitionSchemaVersions, - _options?: Configuration - ): Promise { + public async listServiceDefinitions(pageSize?: number,pageNumber?: number,schemaVersion?: ServiceDefinitionSchemaVersions,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/services/definitions"; + const localVarPath = '/api/v2/services/definitions'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceDefinitionApi.listServiceDefinitions") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceDefinitionApi.listServiceDefinitions').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (schemaVersion !== undefined) { - requestContext.setQueryParam( - "schema_version", - ObjectSerializer.serialize( - schemaVersion, - "ServiceDefinitionSchemaVersions", - "" - ), - "" - ); + requestContext.setQueryParam("schema_version", ObjectSerializer.serialize(schemaVersion, "ServiceDefinitionSchemaVersions", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ServiceDefinitionApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -213,30 +145,17 @@ export class ServiceDefinitionApiResponseProcessor { * @params response Response returned by the server for a request to createOrUpdateServiceDefinitions * @throws ApiException if the response code was not in [200, 299] */ - public async createOrUpdateServiceDefinitions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createOrUpdateServiceDefinitions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ServiceDefinitionCreateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ServiceDefinitionCreateResponse" - ) as ServiceDefinitionCreateResponse; + const body: ServiceDefinitionCreateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ServiceDefinitionCreateResponse" + ) as ServiceDefinitionCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -245,30 +164,22 @@ export class ServiceDefinitionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ServiceDefinitionCreateResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ServiceDefinitionCreateResponse", - "" - ) as ServiceDefinitionCreateResponse; + const body: ServiceDefinitionCreateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ServiceDefinitionCreateResponse", "" + ) as ServiceDefinitionCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -278,25 +189,13 @@ export class ServiceDefinitionApiResponseProcessor { * @params response Response returned by the server for a request to deleteServiceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async deleteServiceDefinition( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteServiceDefinition(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -305,11 +204,8 @@ export class ServiceDefinitionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -317,17 +213,13 @@ export class ServiceDefinitionApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -337,12 +229,8 @@ export class ServiceDefinitionApiResponseProcessor { * @params response Response returned by the server for a request to getServiceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async getServiceDefinition( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getServiceDefinition(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ServiceDefinitionGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -350,17 +238,8 @@ export class ServiceDefinitionApiResponseProcessor { ) as ServiceDefinitionGetResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -369,11 +248,8 @@ export class ServiceDefinitionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -381,17 +257,13 @@ export class ServiceDefinitionApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ServiceDefinitionGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ServiceDefinitionGetResponse", - "" + "ServiceDefinitionGetResponse", "" ) as ServiceDefinitionGetResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -401,12 +273,8 @@ export class ServiceDefinitionApiResponseProcessor { * @params response Response returned by the server for a request to listServiceDefinitions * @throws ApiException if the response code was not in [200, 299] */ - public async listServiceDefinitions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listServiceDefinitions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ServiceDefinitionsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -414,11 +282,8 @@ export class ServiceDefinitionApiResponseProcessor { ) as ServiceDefinitionsListResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -427,11 +292,8 @@ export class ServiceDefinitionApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -439,17 +301,13 @@ export class ServiceDefinitionApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ServiceDefinitionsListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ServiceDefinitionsListResponse", - "" + "ServiceDefinitionsListResponse", "" ) as ServiceDefinitionsListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -458,7 +316,7 @@ export interface ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest { * Service Definition YAML/JSON. * @type ServiceDefinitionsCreateRequest */ - body: ServiceDefinitionsCreateRequest; + body: ServiceDefinitionsCreateRequest } export interface ServiceDefinitionApiDeleteServiceDefinitionRequest { @@ -466,7 +324,7 @@ export interface ServiceDefinitionApiDeleteServiceDefinitionRequest { * The name of the service. * @type string */ - serviceName: string; + serviceName: string } export interface ServiceDefinitionApiGetServiceDefinitionRequest { @@ -474,12 +332,12 @@ export interface ServiceDefinitionApiGetServiceDefinitionRequest { * The name of the service. * @type string */ - serviceName: string; + serviceName: string /** * The schema version desired in the response. * @type ServiceDefinitionSchemaVersions */ - schemaVersion?: ServiceDefinitionSchemaVersions; + schemaVersion?: ServiceDefinitionSchemaVersions } export interface ServiceDefinitionApiListServiceDefinitionsRequest { @@ -487,17 +345,17 @@ export interface ServiceDefinitionApiListServiceDefinitionsRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * The schema version desired in the response. * @type ServiceDefinitionSchemaVersions */ - schemaVersion?: ServiceDefinitionSchemaVersions; + schemaVersion?: ServiceDefinitionSchemaVersions } export class ServiceDefinitionApi { @@ -505,35 +363,21 @@ export class ServiceDefinitionApi { private responseProcessor: ServiceDefinitionApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceDefinitionApiRequestFactory, - responseProcessor?: ServiceDefinitionApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceDefinitionApiRequestFactory, responseProcessor?: ServiceDefinitionApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ServiceDefinitionApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ServiceDefinitionApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceDefinitionApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceDefinitionApiResponseProcessor(); } /** * Create or update service definition in the Datadog Service Catalog. * @param param The request object */ - public createOrUpdateServiceDefinitions( - param: ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createOrUpdateServiceDefinitions(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createOrUpdateServiceDefinitions( - responseContext - ); + public createOrUpdateServiceDefinitions(param: ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createOrUpdateServiceDefinitions(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createOrUpdateServiceDefinitions(responseContext); }); }); } @@ -542,21 +386,11 @@ export class ServiceDefinitionApi { * Delete a single service definition in the Datadog Service Catalog. * @param param The request object */ - public deleteServiceDefinition( - param: ServiceDefinitionApiDeleteServiceDefinitionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteServiceDefinition( - param.serviceName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteServiceDefinition( - responseContext - ); + public deleteServiceDefinition(param: ServiceDefinitionApiDeleteServiceDefinitionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteServiceDefinition(param.serviceName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteServiceDefinition(responseContext); }); }); } @@ -565,20 +399,11 @@ export class ServiceDefinitionApi { * Get a single service definition from the Datadog Service Catalog. * @param param The request object */ - public getServiceDefinition( - param: ServiceDefinitionApiGetServiceDefinitionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getServiceDefinition( - param.serviceName, - param.schemaVersion, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getServiceDefinition(responseContext); + public getServiceDefinition(param: ServiceDefinitionApiGetServiceDefinitionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getServiceDefinition(param.serviceName,param.schemaVersion,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getServiceDefinition(responseContext); }); }); } @@ -587,21 +412,11 @@ export class ServiceDefinitionApi { * Get a list of all service definitions from the Datadog Service Catalog. * @param param The request object */ - public listServiceDefinitions( - param: ServiceDefinitionApiListServiceDefinitionsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listServiceDefinitions( - param.pageSize, - param.pageNumber, - param.schemaVersion, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listServiceDefinitions(responseContext); + public listServiceDefinitions(param: ServiceDefinitionApiListServiceDefinitionsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listServiceDefinitions(param.pageSize,param.pageNumber,param.schemaVersion,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listServiceDefinitions(responseContext); }); }); } @@ -609,10 +424,8 @@ export class ServiceDefinitionApi { /** * Provide a paginated version of listServiceDefinitions returning a generator with all the items. */ - public async *listServiceDefinitionsWithPagination( - param: ServiceDefinitionApiListServiceDefinitionsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listServiceDefinitionsWithPagination(param: ServiceDefinitionApiListServiceDefinitionsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -620,19 +433,10 @@ export class ServiceDefinitionApi { param.pageSize = pageSize; param.pageNumber = 0; while (true) { - const requestContext = await this.requestFactory.listServiceDefinitions( - param.pageSize, - param.pageNumber, - param.schemaVersion, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listServiceDefinitions( - responseContext - ); + const requestContext = await this.requestFactory.listServiceDefinitions(param.pageSize,param.pageNumber,param.schemaVersion,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listServiceDefinitions(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -647,4 +451,4 @@ export class ServiceDefinitionApi { param.pageNumber = param.pageNumber + 1; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ServiceLevelObjectivesApi.ts b/packages/datadog-api-client-v2/apis/ServiceLevelObjectivesApi.ts index 113be8c6b983..77b922328c23 100644 --- a/packages/datadog-api-client-v2/apis/ServiceLevelObjectivesApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceLevelObjectivesApi.ts @@ -1,57 +1,50 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { SloReportCreateRequest } from "../models/SloReportCreateRequest"; import { SLOReportPostResponse } from "../models/SLOReportPostResponse"; import { SLOReportStatusGetResponse } from "../models/SLOReportStatusGetResponse"; export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFactory { - public async createSLOReportJob( - body: SloReportCreateRequest, - _options?: Configuration - ): Promise { + + public async createSLOReportJob(body: SloReportCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createSLOReportJob'"); - if (!_config.unstableOperations["v2.createSLOReportJob"]) { + if (!_config.unstableOperations['v2.createSLOReportJob']) { throw new Error("Unstable operation 'createSLOReportJob' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSLOReportJob"); + throw new RequiredError('body', 'createSLOReportJob'); } // Path Params - const localVarPath = "/api/v2/slo/report"; + const localVarPath = '/api/v2/slo/report'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceLevelObjectivesApi.createSLOReportJob") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ServiceLevelObjectivesApi.createSLOReportJob').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SloReportCreateRequest", ""), @@ -60,95 +53,70 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSLOReport( - reportId: string, - _options?: Configuration - ): Promise { + public async getSLOReport(reportId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getSLOReport'"); - if (!_config.unstableOperations["v2.getSLOReport"]) { + if (!_config.unstableOperations['v2.getSLOReport']) { throw new Error("Unstable operation 'getSLOReport' is disabled"); } // verify required parameter 'reportId' is not null or undefined if (reportId === null || reportId === undefined) { - throw new RequiredError("reportId", "getSLOReport"); + throw new RequiredError('reportId', 'getSLOReport'); } // Path Params - const localVarPath = "/api/v2/slo/report/{report_id}/download".replace( - "{report_id}", - encodeURIComponent(String(reportId)) - ); + const localVarPath = '/api/v2/slo/report/{report_id}/download' + .replace('{report_id}', encodeURIComponent(String(reportId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceLevelObjectivesApi.getSLOReport") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceLevelObjectivesApi.getSLOReport').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "text/csv, application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSLOReportJobStatus( - reportId: string, - _options?: Configuration - ): Promise { + public async getSLOReportJobStatus(reportId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'getSLOReportJobStatus'"); - if (!_config.unstableOperations["v2.getSLOReportJobStatus"]) { + if (!_config.unstableOperations['v2.getSLOReportJobStatus']) { throw new Error("Unstable operation 'getSLOReportJobStatus' is disabled"); } // verify required parameter 'reportId' is not null or undefined if (reportId === null || reportId === undefined) { - throw new RequiredError("reportId", "getSLOReportJobStatus"); + throw new RequiredError('reportId', 'getSLOReportJobStatus'); } // Path Params - const localVarPath = "/api/v2/slo/report/{report_id}/status".replace( - "{report_id}", - encodeURIComponent(String(reportId)) - ); + const localVarPath = '/api/v2/slo/report/{report_id}/status' + .replace('{report_id}', encodeURIComponent(String(reportId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceLevelObjectivesApi.getSLOReportJobStatus") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceLevelObjectivesApi.getSLOReportJobStatus').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ServiceLevelObjectivesApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -156,12 +124,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to createSLOReportJob * @throws ApiException if the response code was not in [200, 299] */ - public async createSLOReportJob( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSLOReportJob(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOReportPostResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -169,15 +133,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOReportPostResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -186,11 +143,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -198,17 +152,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOReportPostResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOReportPostResponse", - "" + "SLOReportPostResponse", "" ) as SLOReportPostResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -218,10 +168,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to getSLOReport * @throws ApiException if the response code was not in [200, 299] */ - public async getSLOReport(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSLOReport(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -229,16 +177,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as string; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -247,11 +187,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -259,17 +196,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "string", - "" + "string", "" ) as string; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -279,12 +212,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { * @params response Response returned by the server for a request to getSLOReportJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async getSLOReportJobStatus( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSLOReportJobStatus(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SLOReportStatusGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -292,16 +221,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as SLOReportStatusGetResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -310,11 +231,8 @@ export class ServiceLevelObjectivesApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -322,17 +240,13 @@ export class ServiceLevelObjectivesApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SLOReportStatusGetResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SLOReportStatusGetResponse", - "" + "SLOReportStatusGetResponse", "" ) as SLOReportStatusGetResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -341,7 +255,7 @@ export interface ServiceLevelObjectivesApiCreateSLOReportJobRequest { * Create SLO report job request body. * @type SloReportCreateRequest */ - body: SloReportCreateRequest; + body: SloReportCreateRequest } export interface ServiceLevelObjectivesApiGetSLOReportRequest { @@ -349,7 +263,7 @@ export interface ServiceLevelObjectivesApiGetSLOReportRequest { * The ID of the report job. * @type string */ - reportId: string; + reportId: string } export interface ServiceLevelObjectivesApiGetSLOReportJobStatusRequest { @@ -357,7 +271,7 @@ export interface ServiceLevelObjectivesApiGetSLOReportJobStatusRequest { * The ID of the report job. * @type string */ - reportId: string; + reportId: string } export class ServiceLevelObjectivesApi { @@ -365,61 +279,38 @@ export class ServiceLevelObjectivesApi { private responseProcessor: ServiceLevelObjectivesApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceLevelObjectivesApiRequestFactory, - responseProcessor?: ServiceLevelObjectivesApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceLevelObjectivesApiRequestFactory, responseProcessor?: ServiceLevelObjectivesApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || - new ServiceLevelObjectivesApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ServiceLevelObjectivesApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceLevelObjectivesApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceLevelObjectivesApiResponseProcessor(); } /** * Create a job to generate an SLO report. The report job is processed asynchronously and eventually results in a CSV report being available for download. - * + * * Check the status of the job and download the CSV report using the returned `report_id`. * @param param The request object */ - public createSLOReportJob( - param: ServiceLevelObjectivesApiCreateSLOReportJobRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createSLOReportJob( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSLOReportJob(responseContext); + public createSLOReportJob(param: ServiceLevelObjectivesApiCreateSLOReportJobRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSLOReportJob(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSLOReportJob(responseContext); }); }); } /** * Download an SLO report. This can only be performed after the report job has completed. - * + * * Reports are not guaranteed to exist indefinitely. Datadog recommends that you download the report as soon as it is available. * @param param The request object */ - public getSLOReport( - param: ServiceLevelObjectivesApiGetSLOReportRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSLOReport( - param.reportId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSLOReport(responseContext); + public getSLOReport(param: ServiceLevelObjectivesApiGetSLOReportRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSLOReport(param.reportId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSLOReport(responseContext); }); }); } @@ -428,20 +319,12 @@ export class ServiceLevelObjectivesApi { * Get the status of the SLO report job. * @param param The request object */ - public getSLOReportJobStatus( - param: ServiceLevelObjectivesApiGetSLOReportJobStatusRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSLOReportJobStatus( - param.reportId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSLOReportJobStatus(responseContext); + public getSLOReportJobStatus(param: ServiceLevelObjectivesApiGetSLOReportJobStatusRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSLOReportJobStatus(param.reportId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSLOReportJobStatus(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts b/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts index 6dcc9e42d341..7e666e1a8b56 100644 --- a/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CreateRuleRequest } from "../models/CreateRuleRequest"; import { CreateRuleResponse } from "../models/CreateRuleResponse"; @@ -29,38 +27,31 @@ import { UpdateRuleRequest } from "../models/UpdateRuleRequest"; import { UpdateRuleResponse } from "../models/UpdateRuleResponse"; export class ServiceScorecardsApiRequestFactory extends BaseAPIRequestFactory { - public async createScorecardOutcomesBatch( - body: OutcomesBatchRequest, - _options?: Configuration - ): Promise { + + public async createScorecardOutcomesBatch(body: OutcomesBatchRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createScorecardOutcomesBatch'"); - if (!_config.unstableOperations["v2.createScorecardOutcomesBatch"]) { - throw new Error( - "Unstable operation 'createScorecardOutcomesBatch' is disabled" - ); + if (!_config.unstableOperations['v2.createScorecardOutcomesBatch']) { + throw new Error("Unstable operation 'createScorecardOutcomesBatch' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createScorecardOutcomesBatch"); + throw new RequiredError('body', 'createScorecardOutcomesBatch'); } // Path Params - const localVarPath = "/api/v2/scorecard/outcomes/batch"; + const localVarPath = '/api/v2/scorecard/outcomes/batch'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceScorecardsApi.createScorecardOutcomesBatch") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ServiceScorecardsApi.createScorecardOutcomesBatch').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OutcomesBatchRequest", ""), @@ -69,45 +60,35 @@ export class ServiceScorecardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createScorecardRule( - body: CreateRuleRequest, - _options?: Configuration - ): Promise { + public async createScorecardRule(body: CreateRuleRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'createScorecardRule'"); - if (!_config.unstableOperations["v2.createScorecardRule"]) { + if (!_config.unstableOperations['v2.createScorecardRule']) { throw new Error("Unstable operation 'createScorecardRule' is disabled"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createScorecardRule"); + throw new RequiredError('body', 'createScorecardRule'); } // Path Params - const localVarPath = "/api/v2/scorecard/rules"; + const localVarPath = '/api/v2/scorecard/rules'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceScorecardsApi.createScorecardRule") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.ServiceScorecardsApi.createScorecardRule').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateRuleRequest", ""), @@ -116,317 +97,177 @@ export class ServiceScorecardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteScorecardRule( - ruleId: string, - _options?: Configuration - ): Promise { + public async deleteScorecardRule(ruleId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'deleteScorecardRule'"); - if (!_config.unstableOperations["v2.deleteScorecardRule"]) { + if (!_config.unstableOperations['v2.deleteScorecardRule']) { throw new Error("Unstable operation 'deleteScorecardRule' is disabled"); } // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "deleteScorecardRule"); + throw new RequiredError('ruleId', 'deleteScorecardRule'); } // Path Params - const localVarPath = "/api/v2/scorecard/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/scorecard/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceScorecardsApi.deleteScorecardRule") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.ServiceScorecardsApi.deleteScorecardRule').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listScorecardOutcomes( - pageSize?: number, - pageOffset?: number, - include?: string, - fieldsOutcome?: string, - fieldsRule?: string, - filterOutcomeServiceName?: string, - filterOutcomeState?: string, - filterRuleEnabled?: boolean, - filterRuleId?: string, - filterRuleName?: string, - _options?: Configuration - ): Promise { + public async listScorecardOutcomes(pageSize?: number,pageOffset?: number,include?: string,fieldsOutcome?: string,fieldsRule?: string,filterOutcomeServiceName?: string,filterOutcomeState?: string,filterRuleEnabled?: boolean,filterRuleId?: string,filterRuleName?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listScorecardOutcomes'"); - if (!_config.unstableOperations["v2.listScorecardOutcomes"]) { + if (!_config.unstableOperations['v2.listScorecardOutcomes']) { throw new Error("Unstable operation 'listScorecardOutcomes' is disabled"); } // Path Params - const localVarPath = "/api/v2/scorecard/outcomes"; + const localVarPath = '/api/v2/scorecard/outcomes'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceScorecardsApi.listScorecardOutcomes") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceScorecardsApi.listScorecardOutcomes').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } if (fieldsOutcome !== undefined) { - requestContext.setQueryParam( - "fields[outcome]", - ObjectSerializer.serialize(fieldsOutcome, "string", ""), - "" - ); + requestContext.setQueryParam("fields[outcome]", ObjectSerializer.serialize(fieldsOutcome, "string", ""), ""); } if (fieldsRule !== undefined) { - requestContext.setQueryParam( - "fields[rule]", - ObjectSerializer.serialize(fieldsRule, "string", ""), - "" - ); + requestContext.setQueryParam("fields[rule]", ObjectSerializer.serialize(fieldsRule, "string", ""), ""); } if (filterOutcomeServiceName !== undefined) { - requestContext.setQueryParam( - "filter[outcome][service_name]", - ObjectSerializer.serialize(filterOutcomeServiceName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[outcome][service_name]", ObjectSerializer.serialize(filterOutcomeServiceName, "string", ""), ""); } if (filterOutcomeState !== undefined) { - requestContext.setQueryParam( - "filter[outcome][state]", - ObjectSerializer.serialize(filterOutcomeState, "string", ""), - "" - ); + requestContext.setQueryParam("filter[outcome][state]", ObjectSerializer.serialize(filterOutcomeState, "string", ""), ""); } if (filterRuleEnabled !== undefined) { - requestContext.setQueryParam( - "filter[rule][enabled]", - ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[rule][enabled]", ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), ""); } if (filterRuleId !== undefined) { - requestContext.setQueryParam( - "filter[rule][id]", - ObjectSerializer.serialize(filterRuleId, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule][id]", ObjectSerializer.serialize(filterRuleId, "string", ""), ""); } if (filterRuleName !== undefined) { - requestContext.setQueryParam( - "filter[rule][name]", - ObjectSerializer.serialize(filterRuleName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule][name]", ObjectSerializer.serialize(filterRuleName, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listScorecardRules( - pageSize?: number, - pageOffset?: number, - include?: string, - filterRuleId?: string, - filterRuleEnabled?: boolean, - filterRuleCustom?: boolean, - filterRuleName?: string, - filterRuleDescription?: string, - fieldsRule?: string, - fieldsScorecard?: string, - _options?: Configuration - ): Promise { + public async listScorecardRules(pageSize?: number,pageOffset?: number,include?: string,filterRuleId?: string,filterRuleEnabled?: boolean,filterRuleCustom?: boolean,filterRuleName?: string,filterRuleDescription?: string,fieldsRule?: string,fieldsScorecard?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'listScorecardRules'"); - if (!_config.unstableOperations["v2.listScorecardRules"]) { + if (!_config.unstableOperations['v2.listScorecardRules']) { throw new Error("Unstable operation 'listScorecardRules' is disabled"); } // Path Params - const localVarPath = "/api/v2/scorecard/rules"; + const localVarPath = '/api/v2/scorecard/rules'; // Make Request Context - const requestContext = _config - .getServer("v2.ServiceScorecardsApi.listScorecardRules") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.ServiceScorecardsApi.listScorecardRules').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "string", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "string", ""), ""); } if (filterRuleId !== undefined) { - requestContext.setQueryParam( - "filter[rule][id]", - ObjectSerializer.serialize(filterRuleId, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule][id]", ObjectSerializer.serialize(filterRuleId, "string", ""), ""); } if (filterRuleEnabled !== undefined) { - requestContext.setQueryParam( - "filter[rule][enabled]", - ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[rule][enabled]", ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), ""); } if (filterRuleCustom !== undefined) { - requestContext.setQueryParam( - "filter[rule][custom]", - ObjectSerializer.serialize(filterRuleCustom, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[rule][custom]", ObjectSerializer.serialize(filterRuleCustom, "boolean", ""), ""); } if (filterRuleName !== undefined) { - requestContext.setQueryParam( - "filter[rule][name]", - ObjectSerializer.serialize(filterRuleName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule][name]", ObjectSerializer.serialize(filterRuleName, "string", ""), ""); } if (filterRuleDescription !== undefined) { - requestContext.setQueryParam( - "filter[rule][description]", - ObjectSerializer.serialize(filterRuleDescription, "string", ""), - "" - ); + requestContext.setQueryParam("filter[rule][description]", ObjectSerializer.serialize(filterRuleDescription, "string", ""), ""); } if (fieldsRule !== undefined) { - requestContext.setQueryParam( - "fields[rule]", - ObjectSerializer.serialize(fieldsRule, "string", ""), - "" - ); + requestContext.setQueryParam("fields[rule]", ObjectSerializer.serialize(fieldsRule, "string", ""), ""); } if (fieldsScorecard !== undefined) { - requestContext.setQueryParam( - "fields[scorecard]", - ObjectSerializer.serialize(fieldsScorecard, "string", ""), - "" - ); + requestContext.setQueryParam("fields[scorecard]", ObjectSerializer.serialize(fieldsScorecard, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateScorecardRule( - ruleId: string, - body: UpdateRuleRequest, - _options?: Configuration - ): Promise { + public async updateScorecardRule(ruleId: string,body: UpdateRuleRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; logger.warn("Using unstable operation 'updateScorecardRule'"); - if (!_config.unstableOperations["v2.updateScorecardRule"]) { + if (!_config.unstableOperations['v2.updateScorecardRule']) { throw new Error("Unstable operation 'updateScorecardRule' is disabled"); } // verify required parameter 'ruleId' is not null or undefined if (ruleId === null || ruleId === undefined) { - throw new RequiredError("ruleId", "updateScorecardRule"); + throw new RequiredError('ruleId', 'updateScorecardRule'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateScorecardRule"); + throw new RequiredError('body', 'updateScorecardRule'); } // Path Params - const localVarPath = "/api/v2/scorecard/rules/{rule_id}".replace( - "{rule_id}", - encodeURIComponent(String(ruleId)) - ); + const localVarPath = '/api/v2/scorecard/rules/{rule_id}' + .replace('{rule_id}', encodeURIComponent(String(ruleId))); // Make Request Context - const requestContext = _config - .getServer("v2.ServiceScorecardsApi.updateScorecardRule") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.ServiceScorecardsApi.updateScorecardRule').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UpdateRuleRequest", ""), @@ -435,17 +276,14 @@ export class ServiceScorecardsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class ServiceScorecardsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -453,12 +291,8 @@ export class ServiceScorecardsApiResponseProcessor { * @params response Response returned by the server for a request to createScorecardOutcomesBatch * @throws ApiException if the response code was not in [200, 299] */ - public async createScorecardOutcomesBatch( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createScorecardOutcomesBatch(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OutcomesBatchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -466,15 +300,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as OutcomesBatchResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -483,11 +310,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -495,17 +319,13 @@ export class ServiceScorecardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OutcomesBatchResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OutcomesBatchResponse", - "" + "OutcomesBatchResponse", "" ) as OutcomesBatchResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -515,12 +335,8 @@ export class ServiceScorecardsApiResponseProcessor { * @params response Response returned by the server for a request to createScorecardRule * @throws ApiException if the response code was not in [200, 299] */ - public async createScorecardRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createScorecardRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CreateRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -528,15 +344,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as CreateRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -545,11 +354,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -557,17 +363,13 @@ export class ServiceScorecardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CreateRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CreateRuleResponse", - "" + "CreateRuleResponse", "" ) as CreateRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -577,23 +379,13 @@ export class ServiceScorecardsApiResponseProcessor { * @params response Response returned by the server for a request to deleteScorecardRule * @throws ApiException if the response code was not in [200, 299] */ - public async deleteScorecardRule(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteScorecardRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -602,11 +394,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -614,17 +403,13 @@ export class ServiceScorecardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -634,12 +419,8 @@ export class ServiceScorecardsApiResponseProcessor { * @params response Response returned by the server for a request to listScorecardOutcomes * @throws ApiException if the response code was not in [200, 299] */ - public async listScorecardOutcomes( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listScorecardOutcomes(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OutcomesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -647,15 +428,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as OutcomesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -664,11 +438,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -676,17 +447,13 @@ export class ServiceScorecardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OutcomesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OutcomesResponse", - "" + "OutcomesResponse", "" ) as OutcomesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -696,12 +463,8 @@ export class ServiceScorecardsApiResponseProcessor { * @params response Response returned by the server for a request to listScorecardRules * @throws ApiException if the response code was not in [200, 299] */ - public async listScorecardRules( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listScorecardRules(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListRulesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -709,15 +472,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as ListRulesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -726,11 +482,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -738,17 +491,13 @@ export class ServiceScorecardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListRulesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListRulesResponse", - "" + "ListRulesResponse", "" ) as ListRulesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -758,12 +507,8 @@ export class ServiceScorecardsApiResponseProcessor { * @params response Response returned by the server for a request to updateScorecardRule * @throws ApiException if the response code was not in [200, 299] */ - public async updateScorecardRule( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateScorecardRule(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UpdateRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -771,15 +516,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as UpdateRuleResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -788,11 +526,8 @@ export class ServiceScorecardsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -800,17 +535,13 @@ export class ServiceScorecardsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UpdateRuleResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UpdateRuleResponse", - "" + "UpdateRuleResponse", "" ) as UpdateRuleResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -819,7 +550,7 @@ export interface ServiceScorecardsApiCreateScorecardOutcomesBatchRequest { * Set of scorecard outcomes. * @type OutcomesBatchRequest */ - body: OutcomesBatchRequest; + body: OutcomesBatchRequest } export interface ServiceScorecardsApiCreateScorecardRuleRequest { @@ -827,7 +558,7 @@ export interface ServiceScorecardsApiCreateScorecardRuleRequest { * Rule attributes. * @type CreateRuleRequest */ - body: CreateRuleRequest; + body: CreateRuleRequest } export interface ServiceScorecardsApiDeleteScorecardRuleRequest { @@ -835,7 +566,7 @@ export interface ServiceScorecardsApiDeleteScorecardRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string } export interface ServiceScorecardsApiListScorecardOutcomesRequest { @@ -843,52 +574,52 @@ export interface ServiceScorecardsApiListScorecardOutcomesRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * Include related rule details in the response. * @type string */ - include?: string; + include?: string /** * Return only specified values in the outcome attributes. * @type string */ - fieldsOutcome?: string; + fieldsOutcome?: string /** * Return only specified values in the included rule details. * @type string */ - fieldsRule?: string; + fieldsRule?: string /** * Filter the outcomes on a specific service name. * @type string */ - filterOutcomeServiceName?: string; + filterOutcomeServiceName?: string /** * Filter the outcomes by a specific state. * @type string */ - filterOutcomeState?: string; + filterOutcomeState?: string /** * Filter outcomes on whether a rule is enabled/disabled. * @type boolean */ - filterRuleEnabled?: boolean; + filterRuleEnabled?: boolean /** * Filter outcomes based on rule ID. * @type string */ - filterRuleId?: string; + filterRuleId?: string /** * Filter outcomes based on rule name. * @type string */ - filterRuleName?: string; + filterRuleName?: string } export interface ServiceScorecardsApiListScorecardRulesRequest { @@ -896,52 +627,52 @@ export interface ServiceScorecardsApiListScorecardRulesRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * Include related scorecard details in the response. * @type string */ - include?: string; + include?: string /** * Filter the rules on a rule ID. * @type string */ - filterRuleId?: string; + filterRuleId?: string /** * Filter for enabled rules only. * @type boolean */ - filterRuleEnabled?: boolean; + filterRuleEnabled?: boolean /** * Filter for custom rules only. * @type boolean */ - filterRuleCustom?: boolean; + filterRuleCustom?: boolean /** * Filter rules on the rule name. * @type string */ - filterRuleName?: string; + filterRuleName?: string /** * Filter rules on the rule description. * @type string */ - filterRuleDescription?: string; + filterRuleDescription?: string /** * Return only specific fields in the response for rule attributes. * @type string */ - fieldsRule?: string; + fieldsRule?: string /** * Return only specific fields in the included response for scorecard attributes. * @type string */ - fieldsScorecard?: string; + fieldsScorecard?: string } export interface ServiceScorecardsApiUpdateScorecardRuleRequest { @@ -949,12 +680,12 @@ export interface ServiceScorecardsApiUpdateScorecardRuleRequest { * The ID of the rule. * @type string */ - ruleId: string; + ruleId: string /** * Rule attributes. * @type UpdateRuleRequest */ - body: UpdateRuleRequest; + body: UpdateRuleRequest } export class ServiceScorecardsApi { @@ -962,35 +693,21 @@ export class ServiceScorecardsApi { private responseProcessor: ServiceScorecardsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: ServiceScorecardsApiRequestFactory, - responseProcessor?: ServiceScorecardsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: ServiceScorecardsApiRequestFactory, responseProcessor?: ServiceScorecardsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new ServiceScorecardsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new ServiceScorecardsApiResponseProcessor(); + this.requestFactory = requestFactory || new ServiceScorecardsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new ServiceScorecardsApiResponseProcessor(); } /** * Sets multiple service-rule outcomes in a single batched request. * @param param The request object */ - public createScorecardOutcomesBatch( - param: ServiceScorecardsApiCreateScorecardOutcomesBatchRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.createScorecardOutcomesBatch(param.body, options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createScorecardOutcomesBatch( - responseContext - ); + public createScorecardOutcomesBatch(param: ServiceScorecardsApiCreateScorecardOutcomesBatchRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createScorecardOutcomesBatch(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createScorecardOutcomesBatch(responseContext); }); }); } @@ -999,19 +716,11 @@ export class ServiceScorecardsApi { * Creates a new rule. * @param param The request object */ - public createScorecardRule( - param: ServiceScorecardsApiCreateScorecardRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createScorecardRule( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createScorecardRule(responseContext); + public createScorecardRule(param: ServiceScorecardsApiCreateScorecardRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createScorecardRule(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createScorecardRule(responseContext); }); }); } @@ -1020,19 +729,11 @@ export class ServiceScorecardsApi { * Deletes a single rule. * @param param The request object */ - public deleteScorecardRule( - param: ServiceScorecardsApiDeleteScorecardRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteScorecardRule( - param.ruleId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteScorecardRule(responseContext); + public deleteScorecardRule(param: ServiceScorecardsApiDeleteScorecardRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteScorecardRule(param.ruleId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteScorecardRule(responseContext); }); }); } @@ -1041,28 +742,11 @@ export class ServiceScorecardsApi { * Fetches all rule outcomes. * @param param The request object */ - public listScorecardOutcomes( - param: ServiceScorecardsApiListScorecardOutcomesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listScorecardOutcomes( - param.pageSize, - param.pageOffset, - param.include, - param.fieldsOutcome, - param.fieldsRule, - param.filterOutcomeServiceName, - param.filterOutcomeState, - param.filterRuleEnabled, - param.filterRuleId, - param.filterRuleName, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listScorecardOutcomes(responseContext); + public listScorecardOutcomes(param: ServiceScorecardsApiListScorecardOutcomesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listScorecardOutcomes(param.pageSize,param.pageOffset,param.include,param.fieldsOutcome,param.fieldsRule,param.filterOutcomeServiceName,param.filterOutcomeState,param.filterRuleEnabled,param.filterRuleId,param.filterRuleName,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listScorecardOutcomes(responseContext); }); }); } @@ -1070,36 +754,18 @@ export class ServiceScorecardsApi { /** * Provide a paginated version of listScorecardOutcomes returning a generator with all the items. */ - public async *listScorecardOutcomesWithPagination( - param: ServiceScorecardsApiListScorecardOutcomesRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listScorecardOutcomesWithPagination(param: ServiceScorecardsApiListScorecardOutcomesRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.listScorecardOutcomes( - param.pageSize, - param.pageOffset, - param.include, - param.fieldsOutcome, - param.fieldsRule, - param.filterOutcomeServiceName, - param.filterOutcomeState, - param.filterRuleEnabled, - param.filterRuleId, - param.filterRuleName, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listScorecardOutcomes( - responseContext - ); + const requestContext = await this.requestFactory.listScorecardOutcomes(param.pageSize,param.pageOffset,param.include,param.fieldsOutcome,param.fieldsRule,param.filterOutcomeServiceName,param.filterOutcomeState,param.filterRuleEnabled,param.filterRuleId,param.filterRuleName,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listScorecardOutcomes(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -1123,28 +789,11 @@ export class ServiceScorecardsApi { * Fetch all rules. * @param param The request object */ - public listScorecardRules( - param: ServiceScorecardsApiListScorecardRulesRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listScorecardRules( - param.pageSize, - param.pageOffset, - param.include, - param.filterRuleId, - param.filterRuleEnabled, - param.filterRuleCustom, - param.filterRuleName, - param.filterRuleDescription, - param.fieldsRule, - param.fieldsScorecard, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listScorecardRules(responseContext); + public listScorecardRules(param: ServiceScorecardsApiListScorecardRulesRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listScorecardRules(param.pageSize,param.pageOffset,param.include,param.filterRuleId,param.filterRuleEnabled,param.filterRuleCustom,param.filterRuleName,param.filterRuleDescription,param.fieldsRule,param.fieldsScorecard,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listScorecardRules(responseContext); }); }); } @@ -1152,36 +801,18 @@ export class ServiceScorecardsApi { /** * Provide a paginated version of listScorecardRules returning a generator with all the items. */ - public async *listScorecardRulesWithPagination( - param: ServiceScorecardsApiListScorecardRulesRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listScorecardRulesWithPagination(param: ServiceScorecardsApiListScorecardRulesRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; } param.pageSize = pageSize; while (true) { - const requestContext = await this.requestFactory.listScorecardRules( - param.pageSize, - param.pageOffset, - param.include, - param.filterRuleId, - param.filterRuleEnabled, - param.filterRuleCustom, - param.filterRuleName, - param.filterRuleDescription, - param.fieldsRule, - param.fieldsScorecard, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listScorecardRules( - responseContext - ); + const requestContext = await this.requestFactory.listScorecardRules(param.pageSize,param.pageOffset,param.include,param.filterRuleId,param.filterRuleEnabled,param.filterRuleCustom,param.filterRuleName,param.filterRuleDescription,param.fieldsRule,param.fieldsScorecard,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listScorecardRules(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -1205,21 +836,12 @@ export class ServiceScorecardsApi { * Updates an existing rule. * @param param The request object */ - public updateScorecardRule( - param: ServiceScorecardsApiUpdateScorecardRuleRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateScorecardRule( - param.ruleId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateScorecardRule(responseContext); + public updateScorecardRule(param: ServiceScorecardsApiUpdateScorecardRuleRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateScorecardRule(param.ruleId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateScorecardRule(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts b/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts index c3c3afefff43..eb8254b7fea0 100644 --- a/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts +++ b/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { EntityData } from "../models/EntityData"; import { IncludeType } from "../models/IncludeType"; @@ -25,172 +23,98 @@ import { UpsertCatalogEntityRequest } from "../models/UpsertCatalogEntityRequest import { UpsertCatalogEntityResponse } from "../models/UpsertCatalogEntityResponse"; export class SoftwareCatalogApiRequestFactory extends BaseAPIRequestFactory { - public async deleteCatalogEntity( - entityId: string, - _options?: Configuration - ): Promise { + + public async deleteCatalogEntity(entityId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'entityId' is not null or undefined if (entityId === null || entityId === undefined) { - throw new RequiredError("entityId", "deleteCatalogEntity"); + throw new RequiredError('entityId', 'deleteCatalogEntity'); } // Path Params - const localVarPath = "/api/v2/catalog/entity/{entity_id}".replace( - "{entity_id}", - encodeURIComponent(String(entityId)) - ); + const localVarPath = '/api/v2/catalog/entity/{entity_id}' + .replace('{entity_id}', encodeURIComponent(String(entityId))); // Make Request Context - const requestContext = _config - .getServer("v2.SoftwareCatalogApi.deleteCatalogEntity") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SoftwareCatalogApi.deleteCatalogEntity').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listCatalogEntity( - pageOffset?: number, - pageLimit?: number, - filterId?: string, - filterRef?: string, - filterName?: string, - filterKind?: string, - filterOwner?: string, - filterRelationType?: RelationType, - filterExcludeSnapshot?: string, - include?: IncludeType, - _options?: Configuration - ): Promise { + public async listCatalogEntity(pageOffset?: number,pageLimit?: number,filterId?: string,filterRef?: string,filterName?: string,filterKind?: string,filterOwner?: string,filterRelationType?: RelationType,filterExcludeSnapshot?: string,include?: IncludeType,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/catalog/entity"; + const localVarPath = '/api/v2/catalog/entity'; // Make Request Context - const requestContext = _config - .getServer("v2.SoftwareCatalogApi.listCatalogEntity") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SoftwareCatalogApi.listCatalogEntity').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageOffset !== undefined) { - requestContext.setQueryParam( - "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[offset]", ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); } if (filterId !== undefined) { - requestContext.setQueryParam( - "filter[id]", - ObjectSerializer.serialize(filterId, "string", ""), - "" - ); + requestContext.setQueryParam("filter[id]", ObjectSerializer.serialize(filterId, "string", ""), ""); } if (filterRef !== undefined) { - requestContext.setQueryParam( - "filter[ref]", - ObjectSerializer.serialize(filterRef, "string", ""), - "" - ); + requestContext.setQueryParam("filter[ref]", ObjectSerializer.serialize(filterRef, "string", ""), ""); } if (filterName !== undefined) { - requestContext.setQueryParam( - "filter[name]", - ObjectSerializer.serialize(filterName, "string", ""), - "" - ); + requestContext.setQueryParam("filter[name]", ObjectSerializer.serialize(filterName, "string", ""), ""); } if (filterKind !== undefined) { - requestContext.setQueryParam( - "filter[kind]", - ObjectSerializer.serialize(filterKind, "string", ""), - "" - ); + requestContext.setQueryParam("filter[kind]", ObjectSerializer.serialize(filterKind, "string", ""), ""); } if (filterOwner !== undefined) { - requestContext.setQueryParam( - "filter[owner]", - ObjectSerializer.serialize(filterOwner, "string", ""), - "" - ); + requestContext.setQueryParam("filter[owner]", ObjectSerializer.serialize(filterOwner, "string", ""), ""); } if (filterRelationType !== undefined) { - requestContext.setQueryParam( - "filter[relation][type]", - ObjectSerializer.serialize(filterRelationType, "RelationType", ""), - "" - ); + requestContext.setQueryParam("filter[relation][type]", ObjectSerializer.serialize(filterRelationType, "RelationType", ""), ""); } if (filterExcludeSnapshot !== undefined) { - requestContext.setQueryParam( - "filter[exclude_snapshot]", - ObjectSerializer.serialize(filterExcludeSnapshot, "string", ""), - "" - ); + requestContext.setQueryParam("filter[exclude_snapshot]", ObjectSerializer.serialize(filterExcludeSnapshot, "string", ""), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "IncludeType", ""), - "" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "IncludeType", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async upsertCatalogEntity( - body: UpsertCatalogEntityRequest, - _options?: Configuration - ): Promise { + public async upsertCatalogEntity(body: UpsertCatalogEntityRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "upsertCatalogEntity"); + throw new RequiredError('body', 'upsertCatalogEntity'); } // Path Params - const localVarPath = "/api/v2/catalog/entity"; + const localVarPath = '/api/v2/catalog/entity'; // Make Request Context - const requestContext = _config - .getServer("v2.SoftwareCatalogApi.upsertCatalogEntity") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SoftwareCatalogApi.upsertCatalogEntity').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UpsertCatalogEntityRequest", ""), @@ -199,17 +123,14 @@ export class SoftwareCatalogApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SoftwareCatalogApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -217,23 +138,13 @@ export class SoftwareCatalogApiResponseProcessor { * @params response Response returned by the server for a request to deleteCatalogEntity * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCatalogEntity(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteCatalogEntity(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -242,11 +153,8 @@ export class SoftwareCatalogApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -254,17 +162,13 @@ export class SoftwareCatalogApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -274,12 +178,8 @@ export class SoftwareCatalogApiResponseProcessor { * @params response Response returned by the server for a request to listCatalogEntity * @throws ApiException if the response code was not in [200, 299] */ - public async listCatalogEntity( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listCatalogEntity(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ListEntityCatalogResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -287,11 +187,8 @@ export class SoftwareCatalogApiResponseProcessor { ) as ListEntityCatalogResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -300,11 +197,8 @@ export class SoftwareCatalogApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -312,17 +206,13 @@ export class SoftwareCatalogApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ListEntityCatalogResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ListEntityCatalogResponse", - "" + "ListEntityCatalogResponse", "" ) as ListEntityCatalogResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -332,12 +222,8 @@ export class SoftwareCatalogApiResponseProcessor { * @params response Response returned by the server for a request to upsertCatalogEntity * @throws ApiException if the response code was not in [200, 299] */ - public async upsertCatalogEntity( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async upsertCatalogEntity(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 202) { const body: UpsertCatalogEntityResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -345,15 +231,8 @@ export class SoftwareCatalogApiResponseProcessor { ) as UpsertCatalogEntityResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -362,11 +241,8 @@ export class SoftwareCatalogApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -374,17 +250,13 @@ export class SoftwareCatalogApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UpsertCatalogEntityResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UpsertCatalogEntityResponse", - "" + "UpsertCatalogEntityResponse", "" ) as UpsertCatalogEntityResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -393,7 +265,7 @@ export interface SoftwareCatalogApiDeleteCatalogEntityRequest { * UUID or Entity Ref. * @type string */ - entityId: string; + entityId: string } export interface SoftwareCatalogApiListCatalogEntityRequest { @@ -401,52 +273,52 @@ export interface SoftwareCatalogApiListCatalogEntityRequest { * Specific offset to use as the beginning of the returned page. * @type number */ - pageOffset?: number; + pageOffset?: number /** * Maximum number of entities in the response. * @type number */ - pageLimit?: number; + pageLimit?: number /** * Filter entities by UUID. * @type string */ - filterId?: string; + filterId?: string /** * Filter entities by reference * @type string */ - filterRef?: string; + filterRef?: string /** * Filter entities by name. * @type string */ - filterName?: string; + filterName?: string /** * Filter entities by kind. * @type string */ - filterKind?: string; + filterKind?: string /** * Filter entities by owner. * @type string */ - filterOwner?: string; + filterOwner?: string /** * Filter entities by relation type. * @type RelationType */ - filterRelationType?: RelationType; + filterRelationType?: RelationType /** * Filter entities by excluding snapshotted entities. * @type string */ - filterExcludeSnapshot?: string; + filterExcludeSnapshot?: string /** * Include relationship data. * @type IncludeType */ - include?: IncludeType; + include?: IncludeType } export interface SoftwareCatalogApiUpsertCatalogEntityRequest { @@ -454,7 +326,7 @@ export interface SoftwareCatalogApiUpsertCatalogEntityRequest { * Entity YAML or JSON. * @type UpsertCatalogEntityRequest */ - body: UpsertCatalogEntityRequest; + body: UpsertCatalogEntityRequest } export class SoftwareCatalogApi { @@ -462,35 +334,21 @@ export class SoftwareCatalogApi { private responseProcessor: SoftwareCatalogApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SoftwareCatalogApiRequestFactory, - responseProcessor?: SoftwareCatalogApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SoftwareCatalogApiRequestFactory, responseProcessor?: SoftwareCatalogApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SoftwareCatalogApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SoftwareCatalogApiResponseProcessor(); + this.requestFactory = requestFactory || new SoftwareCatalogApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SoftwareCatalogApiResponseProcessor(); } /** * Delete a single entity in Software Catalog. * @param param The request object */ - public deleteCatalogEntity( - param: SoftwareCatalogApiDeleteCatalogEntityRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteCatalogEntity( - param.entityId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteCatalogEntity(responseContext); + public deleteCatalogEntity(param: SoftwareCatalogApiDeleteCatalogEntityRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteCatalogEntity(param.entityId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteCatalogEntity(responseContext); }); }); } @@ -499,28 +357,11 @@ export class SoftwareCatalogApi { * Get a list of entities from Software Catalog. * @param param The request object */ - public listCatalogEntity( - param: SoftwareCatalogApiListCatalogEntityRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listCatalogEntity( - param.pageOffset, - param.pageLimit, - param.filterId, - param.filterRef, - param.filterName, - param.filterKind, - param.filterOwner, - param.filterRelationType, - param.filterExcludeSnapshot, - param.include, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listCatalogEntity(responseContext); + public listCatalogEntity(param: SoftwareCatalogApiListCatalogEntityRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listCatalogEntity(param.pageOffset,param.pageLimit,param.filterId,param.filterRef,param.filterName,param.filterKind,param.filterOwner,param.filterRelationType,param.filterExcludeSnapshot,param.include,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listCatalogEntity(responseContext); }); }); } @@ -528,36 +369,18 @@ export class SoftwareCatalogApi { /** * Provide a paginated version of listCatalogEntity returning a generator with all the items. */ - public async *listCatalogEntityWithPagination( - param: SoftwareCatalogApiListCatalogEntityRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listCatalogEntityWithPagination(param: SoftwareCatalogApiListCatalogEntityRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 100; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listCatalogEntity( - param.pageOffset, - param.pageLimit, - param.filterId, - param.filterRef, - param.filterName, - param.filterKind, - param.filterOwner, - param.filterRelationType, - param.filterExcludeSnapshot, - param.include, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listCatalogEntity( - responseContext - ); + const requestContext = await this.requestFactory.listCatalogEntity(param.pageOffset,param.pageLimit,param.filterId,param.filterRef,param.filterName,param.filterKind,param.filterOwner,param.filterRelationType,param.filterExcludeSnapshot,param.include,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listCatalogEntity(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -581,20 +404,12 @@ export class SoftwareCatalogApi { * Create or update entities in Software Catalog. * @param param The request object */ - public upsertCatalogEntity( - param: SoftwareCatalogApiUpsertCatalogEntityRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.upsertCatalogEntity( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.upsertCatalogEntity(responseContext); + public upsertCatalogEntity(param: SoftwareCatalogApiUpsertCatalogEntityRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.upsertCatalogEntity(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.upsertCatalogEntity(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/SpansApi.ts b/packages/datadog-api-client-v2/apis/SpansApi.ts index 0fbfe4ed2c02..6cd3040feda0 100644 --- a/packages/datadog-api-client-v2/apis/SpansApi.ts +++ b/packages/datadog-api-client-v2/apis/SpansApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse"; import { Span } from "../models/Span"; @@ -29,31 +27,26 @@ import { SpansListResponse } from "../models/SpansListResponse"; import { SpansSort } from "../models/SpansSort"; export class SpansApiRequestFactory extends BaseAPIRequestFactory { - public async aggregateSpans( - body: SpansAggregateRequest, - _options?: Configuration - ): Promise { + + public async aggregateSpans(body: SpansAggregateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "aggregateSpans"); + throw new RequiredError('body', 'aggregateSpans'); } // Path Params - const localVarPath = "/api/v2/spans/analytics/aggregate"; + const localVarPath = '/api/v2/spans/analytics/aggregate'; // Make Request Context - const requestContext = _config - .getServer("v2.SpansApi.aggregateSpans") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SpansApi.aggregateSpans').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SpansAggregateRequest", ""), @@ -62,40 +55,30 @@ export class SpansApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSpans( - body: SpansListRequest, - _options?: Configuration - ): Promise { + public async listSpans(body: SpansListRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "listSpans"); + throw new RequiredError('body', 'listSpans'); } // Path Params - const localVarPath = "/api/v2/spans/events/search"; + const localVarPath = '/api/v2/spans/events/search'; // Make Request Context - const requestContext = _config - .getServer("v2.SpansApi.listSpans") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SpansApi.listSpans').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SpansListRequest", ""), @@ -104,92 +87,51 @@ export class SpansApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSpansGet( - filterQuery?: string, - filterFrom?: string, - filterTo?: string, - sort?: SpansSort, - pageCursor?: string, - pageLimit?: number, - _options?: Configuration - ): Promise { + public async listSpansGet(filterQuery?: string,filterFrom?: string,filterTo?: string,sort?: SpansSort,pageCursor?: string,pageLimit?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/spans/events"; + const localVarPath = '/api/v2/spans/events'; // Make Request Context - const requestContext = _config - .getServer("v2.SpansApi.listSpansGet") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SpansApi.listSpansGet').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterQuery !== undefined) { - requestContext.setQueryParam( - "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", ""), - "" - ); + requestContext.setQueryParam("filter[query]", ObjectSerializer.serialize(filterQuery, "string", ""), ""); } if (filterFrom !== undefined) { - requestContext.setQueryParam( - "filter[from]", - ObjectSerializer.serialize(filterFrom, "string", ""), - "" - ); + requestContext.setQueryParam("filter[from]", ObjectSerializer.serialize(filterFrom, "string", ""), ""); } if (filterTo !== undefined) { - requestContext.setQueryParam( - "filter[to]", - ObjectSerializer.serialize(filterTo, "string", ""), - "" - ); + requestContext.setQueryParam("filter[to]", ObjectSerializer.serialize(filterTo, "string", ""), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "SpansSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "SpansSort", ""), ""); } if (pageCursor !== undefined) { - requestContext.setQueryParam( - "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", ""), - "" - ); + requestContext.setQueryParam("page[cursor]", ObjectSerializer.serialize(pageCursor, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SpansApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -197,12 +139,8 @@ export class SpansApiResponseProcessor { * @params response Response returned by the server for a request to aggregateSpans * @throws ApiException if the response code was not in [200, 299] */ - public async aggregateSpans( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async aggregateSpans(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansAggregateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -210,15 +148,8 @@ export class SpansApiResponseProcessor { ) as SpansAggregateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -227,11 +158,8 @@ export class SpansApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -239,17 +167,13 @@ export class SpansApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansAggregateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansAggregateResponse", - "" + "SpansAggregateResponse", "" ) as SpansAggregateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -259,12 +183,8 @@ export class SpansApiResponseProcessor { * @params response Response returned by the server for a request to listSpans * @throws ApiException if the response code was not in [200, 299] */ - public async listSpans( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSpans(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -272,16 +192,8 @@ export class SpansApiResponseProcessor { ) as SpansListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -290,32 +202,22 @@ export class SpansApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansListResponse", - "" + "SpansListResponse", "" ) as SpansListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -325,12 +227,8 @@ export class SpansApiResponseProcessor { * @params response Response returned by the server for a request to listSpansGet * @throws ApiException if the response code was not in [200, 299] */ - public async listSpansGet( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSpansGet(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -338,16 +236,8 @@ export class SpansApiResponseProcessor { ) as SpansListResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -356,32 +246,22 @@ export class SpansApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansListResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansListResponse", - "" + "SpansListResponse", "" ) as SpansListResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -389,14 +269,14 @@ export interface SpansApiAggregateSpansRequest { /** * @type SpansAggregateRequest */ - body: SpansAggregateRequest; + body: SpansAggregateRequest } export interface SpansApiListSpansRequest { /** * @type SpansListRequest */ - body: SpansListRequest; + body: SpansListRequest } export interface SpansApiListSpansGetRequest { @@ -404,32 +284,32 @@ export interface SpansApiListSpansGetRequest { * Search query following spans syntax. * @type string */ - filterQuery?: string; + filterQuery?: string /** * Minimum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds). * @type string */ - filterFrom?: string; + filterFrom?: string /** * Maximum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds). * @type string */ - filterTo?: string; + filterTo?: string /** * Order of spans in results. * @type SpansSort */ - sort?: SpansSort; + sort?: SpansSort /** * List following results with a cursor provided in the previous query. * @type string */ - pageCursor?: string; + pageCursor?: string /** * Maximum number of spans in the response. * @type number */ - pageLimit?: number; + pageLimit?: number } export class SpansApi { @@ -437,16 +317,10 @@ export class SpansApi { private responseProcessor: SpansApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SpansApiRequestFactory, - responseProcessor?: SpansApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SpansApiRequestFactory, responseProcessor?: SpansApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SpansApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SpansApiResponseProcessor(); + this.requestFactory = requestFactory || new SpansApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SpansApiResponseProcessor(); } /** @@ -454,19 +328,11 @@ export class SpansApi { * This endpoint is rate limited to `300` requests per hour. * @param param The request object */ - public aggregateSpans( - param: SpansApiAggregateSpansRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.aggregateSpans( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.aggregateSpans(responseContext); + public aggregateSpans(param: SpansApiAggregateSpansRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.aggregateSpans(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.aggregateSpans(responseContext); }); }); } @@ -474,26 +340,18 @@ export class SpansApi { /** * List endpoint returns spans that match a span search query. * [Results are paginated][1]. - * + * * Use this endpoint to build complex spans filtering and search. * This endpoint is rate limited to `300` requests per hour. - * + * * [1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api * @param param The request object */ - public listSpans( - param: SpansApiListSpansRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listSpans( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSpans(responseContext); + public listSpans(param: SpansApiListSpansRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSpans(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSpans(responseContext); }); }); } @@ -501,18 +359,16 @@ export class SpansApi { /** * Provide a paginated version of listSpans returning a generator with all the items. */ - public async *listSpansWithPagination( - param: SpansApiListSpansRequest, - options?: Configuration - ): AsyncGenerator { + public async *listSpansWithPagination(param: SpansApiListSpansRequest, options?: Configuration): AsyncGenerator { + let pageSize = 10; - if (param.body.data === undefined) { + if (param.body.data === undefined ) { param.body.data = new SpansListRequestData(); } - if (param.body.data.attributes === undefined) { + if (param.body.data.attributes === undefined ) { param.body.data.attributes = new SpansListRequestAttributes(); } - if (param.body.data.attributes.page === undefined) { + if (param.body.data.attributes.page === undefined ) { param.body.data.attributes.page = new SpansListRequestPage(); } if (param.body.data.attributes.page.limit === undefined) { @@ -521,13 +377,8 @@ export class SpansApi { pageSize = param.body.data.attributes.page.limit; } while (true) { - const requestContext = await this.requestFactory.listSpans( - param.body, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listSpans(param.body,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listSpans(responseContext); const responseData = response.data; @@ -561,31 +412,18 @@ export class SpansApi { /** * List endpoint returns spans that match a span search query. * [Results are paginated][1]. - * + * * Use this endpoint to see your latest spans. * This endpoint is rate limited to `300` requests per hour. - * + * * [1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api * @param param The request object */ - public listSpansGet( - param: SpansApiListSpansGetRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listSpansGet( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSpansGet(responseContext); + public listSpansGet(param: SpansApiListSpansGetRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listSpansGet(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSpansGet(responseContext); }); }); } @@ -593,32 +431,18 @@ export class SpansApi { /** * Provide a paginated version of listSpansGet returning a generator with all the items. */ - public async *listSpansGetWithPagination( - param: SpansApiListSpansGetRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listSpansGetWithPagination(param: SpansApiListSpansGetRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageLimit !== undefined) { pageSize = param.pageLimit; } param.pageLimit = pageSize; while (true) { - const requestContext = await this.requestFactory.listSpansGet( - param.filterQuery, - param.filterFrom, - param.filterTo, - param.sort, - param.pageCursor, - param.pageLimit, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.listSpansGet( - responseContext - ); + const requestContext = await this.requestFactory.listSpansGet(param.filterQuery,param.filterFrom,param.filterTo,param.sort,param.pageCursor,param.pageLimit,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.listSpansGet(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -646,4 +470,4 @@ export class SpansApi { param.pageCursor = cursorMetaPageAfter; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/SpansMetricsApi.ts b/packages/datadog-api-client-v2/apis/SpansMetricsApi.ts index 569b8b247d14..4d4e13cb6f86 100644 --- a/packages/datadog-api-client-v2/apis/SpansMetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/SpansMetricsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { SpansMetricCreateRequest } from "../models/SpansMetricCreateRequest"; import { SpansMetricResponse } from "../models/SpansMetricResponse"; @@ -23,31 +21,26 @@ import { SpansMetricsResponse } from "../models/SpansMetricsResponse"; import { SpansMetricUpdateRequest } from "../models/SpansMetricUpdateRequest"; export class SpansMetricsApiRequestFactory extends BaseAPIRequestFactory { - public async createSpansMetric( - body: SpansMetricCreateRequest, - _options?: Configuration - ): Promise { + + public async createSpansMetric(body: SpansMetricCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createSpansMetric"); + throw new RequiredError('body', 'createSpansMetric'); } // Path Params - const localVarPath = "/api/v2/apm/config/metrics"; + const localVarPath = '/api/v2/apm/config/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.SpansMetricsApi.createSpansMetric") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SpansMetricsApi.createSpansMetric').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SpansMetricCreateRequest", ""), @@ -56,138 +49,99 @@ export class SpansMetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteSpansMetric( - metricId: string, - _options?: Configuration - ): Promise { + public async deleteSpansMetric(metricId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "deleteSpansMetric"); + throw new RequiredError('metricId', 'deleteSpansMetric'); } // Path Params - const localVarPath = "/api/v2/apm/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/apm/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.SpansMetricsApi.deleteSpansMetric") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.SpansMetricsApi.deleteSpansMetric').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getSpansMetric( - metricId: string, - _options?: Configuration - ): Promise { + public async getSpansMetric(metricId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "getSpansMetric"); + throw new RequiredError('metricId', 'getSpansMetric'); } // Path Params - const localVarPath = "/api/v2/apm/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/apm/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.SpansMetricsApi.getSpansMetric") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SpansMetricsApi.getSpansMetric').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listSpansMetrics( - _options?: Configuration - ): Promise { + public async listSpansMetrics(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/apm/config/metrics"; + const localVarPath = '/api/v2/apm/config/metrics'; // Make Request Context - const requestContext = _config - .getServer("v2.SpansMetricsApi.listSpansMetrics") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SpansMetricsApi.listSpansMetrics').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateSpansMetric( - metricId: string, - body: SpansMetricUpdateRequest, - _options?: Configuration - ): Promise { + public async updateSpansMetric(metricId: string,body: SpansMetricUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'metricId' is not null or undefined if (metricId === null || metricId === undefined) { - throw new RequiredError("metricId", "updateSpansMetric"); + throw new RequiredError('metricId', 'updateSpansMetric'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateSpansMetric"); + throw new RequiredError('body', 'updateSpansMetric'); } // Path Params - const localVarPath = "/api/v2/apm/config/metrics/{metric_id}".replace( - "{metric_id}", - encodeURIComponent(String(metricId)) - ); + const localVarPath = '/api/v2/apm/config/metrics/{metric_id}' + .replace('{metric_id}', encodeURIComponent(String(metricId))); // Make Request Context - const requestContext = _config - .getServer("v2.SpansMetricsApi.updateSpansMetric") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.SpansMetricsApi.updateSpansMetric').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "SpansMetricUpdateRequest", ""), @@ -196,16 +150,14 @@ export class SpansMetricsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SpansMetricsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -213,12 +165,8 @@ export class SpansMetricsApiResponseProcessor { * @params response Response returned by the server for a request to createSpansMetric * @throws ApiException if the response code was not in [200, 299] */ - public async createSpansMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createSpansMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -226,16 +174,8 @@ export class SpansMetricsApiResponseProcessor { ) as SpansMetricResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -244,11 +184,8 @@ export class SpansMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -256,17 +193,13 @@ export class SpansMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansMetricResponse", - "" + "SpansMetricResponse", "" ) as SpansMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -276,22 +209,13 @@ export class SpansMetricsApiResponseProcessor { * @params response Response returned by the server for a request to deleteSpansMetric * @throws ApiException if the response code was not in [200, 299] */ - public async deleteSpansMetric(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteSpansMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -300,11 +224,8 @@ export class SpansMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -312,17 +233,13 @@ export class SpansMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -332,12 +249,8 @@ export class SpansMetricsApiResponseProcessor { * @params response Response returned by the server for a request to getSpansMetric * @throws ApiException if the response code was not in [200, 299] */ - public async getSpansMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getSpansMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -345,15 +258,8 @@ export class SpansMetricsApiResponseProcessor { ) as SpansMetricResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -362,11 +268,8 @@ export class SpansMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -374,17 +277,13 @@ export class SpansMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansMetricResponse", - "" + "SpansMetricResponse", "" ) as SpansMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -394,12 +293,8 @@ export class SpansMetricsApiResponseProcessor { * @params response Response returned by the server for a request to listSpansMetrics * @throws ApiException if the response code was not in [200, 299] */ - public async listSpansMetrics( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listSpansMetrics(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -407,11 +302,8 @@ export class SpansMetricsApiResponseProcessor { ) as SpansMetricsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -420,11 +312,8 @@ export class SpansMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -432,17 +321,13 @@ export class SpansMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansMetricsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansMetricsResponse", - "" + "SpansMetricsResponse", "" ) as SpansMetricsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -452,12 +337,8 @@ export class SpansMetricsApiResponseProcessor { * @params response Response returned by the server for a request to updateSpansMetric * @throws ApiException if the response code was not in [200, 299] */ - public async updateSpansMetric( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateSpansMetric(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: SpansMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -465,16 +346,8 @@ export class SpansMetricsApiResponseProcessor { ) as SpansMetricResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -483,11 +356,8 @@ export class SpansMetricsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -495,17 +365,13 @@ export class SpansMetricsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: SpansMetricResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "SpansMetricResponse", - "" + "SpansMetricResponse", "" ) as SpansMetricResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -514,7 +380,7 @@ export interface SpansMetricsApiCreateSpansMetricRequest { * The definition of the new span-based metric. * @type SpansMetricCreateRequest */ - body: SpansMetricCreateRequest; + body: SpansMetricCreateRequest } export interface SpansMetricsApiDeleteSpansMetricRequest { @@ -522,7 +388,7 @@ export interface SpansMetricsApiDeleteSpansMetricRequest { * The name of the span-based metric. * @type string */ - metricId: string; + metricId: string } export interface SpansMetricsApiGetSpansMetricRequest { @@ -530,7 +396,7 @@ export interface SpansMetricsApiGetSpansMetricRequest { * The name of the span-based metric. * @type string */ - metricId: string; + metricId: string } export interface SpansMetricsApiUpdateSpansMetricRequest { @@ -538,12 +404,12 @@ export interface SpansMetricsApiUpdateSpansMetricRequest { * The name of the span-based metric. * @type string */ - metricId: string; + metricId: string /** * New definition of the span-based metric. * @type SpansMetricUpdateRequest */ - body: SpansMetricUpdateRequest; + body: SpansMetricUpdateRequest } export class SpansMetricsApi { @@ -551,16 +417,10 @@ export class SpansMetricsApi { private responseProcessor: SpansMetricsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SpansMetricsApiRequestFactory, - responseProcessor?: SpansMetricsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SpansMetricsApiRequestFactory, responseProcessor?: SpansMetricsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SpansMetricsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SpansMetricsApiResponseProcessor(); + this.requestFactory = requestFactory || new SpansMetricsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SpansMetricsApiResponseProcessor(); } /** @@ -568,19 +428,11 @@ export class SpansMetricsApi { * Returns the span-based metric object from the request body when the request is successful. * @param param The request object */ - public createSpansMetric( - param: SpansMetricsApiCreateSpansMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createSpansMetric( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createSpansMetric(responseContext); + public createSpansMetric(param: SpansMetricsApiCreateSpansMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createSpansMetric(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createSpansMetric(responseContext); }); }); } @@ -589,19 +441,11 @@ export class SpansMetricsApi { * Delete a specific span-based metric from your organization. * @param param The request object */ - public deleteSpansMetric( - param: SpansMetricsApiDeleteSpansMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteSpansMetric( - param.metricId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteSpansMetric(responseContext); + public deleteSpansMetric(param: SpansMetricsApiDeleteSpansMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteSpansMetric(param.metricId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteSpansMetric(responseContext); }); }); } @@ -610,19 +454,11 @@ export class SpansMetricsApi { * Get a specific span-based metric from your organization. * @param param The request object */ - public getSpansMetric( - param: SpansMetricsApiGetSpansMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getSpansMetric( - param.metricId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSpansMetric(responseContext); + public getSpansMetric(param: SpansMetricsApiGetSpansMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getSpansMetric(param.metricId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getSpansMetric(responseContext); }); }); } @@ -631,15 +467,11 @@ export class SpansMetricsApi { * Get the list of configured span-based metrics with their definitions. * @param param The request object */ - public listSpansMetrics( - options?: Configuration - ): Promise { + public listSpansMetrics( options?: Configuration): Promise { const requestContextPromise = this.requestFactory.listSpansMetrics(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSpansMetrics(responseContext); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listSpansMetrics(responseContext); }); }); } @@ -649,21 +481,12 @@ export class SpansMetricsApi { * Returns the span-based metric object from the request body when the request is successful. * @param param The request object */ - public updateSpansMetric( - param: SpansMetricsApiUpdateSpansMetricRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateSpansMetric( - param.metricId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateSpansMetric(responseContext); + public updateSpansMetric(param: SpansMetricsApiUpdateSpansMetricRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateSpansMetric(param.metricId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateSpansMetric(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/SyntheticsApi.ts b/packages/datadog-api-client-v2/apis/SyntheticsApi.ts index 3dc8b39d8eb3..825af1c9e80d 100644 --- a/packages/datadog-api-client-v2/apis/SyntheticsApi.ts +++ b/packages/datadog-api-client-v2/apis/SyntheticsApi.ts @@ -1,77 +1,61 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { OnDemandConcurrencyCapAttributes } from "../models/OnDemandConcurrencyCapAttributes"; import { OnDemandConcurrencyCapResponse } from "../models/OnDemandConcurrencyCapResponse"; export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { - public async getOnDemandConcurrencyCap( - _options?: Configuration - ): Promise { + + public async getOnDemandConcurrencyCap(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = - "/api/v2/synthetics/settings/on_demand_concurrency_cap"; + const localVarPath = '/api/v2/synthetics/settings/on_demand_concurrency_cap'; // Make Request Context - const requestContext = _config - .getServer("v2.SyntheticsApi.getOnDemandConcurrencyCap") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.SyntheticsApi.getOnDemandConcurrencyCap').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async setOnDemandConcurrencyCap( - body: OnDemandConcurrencyCapAttributes, - _options?: Configuration - ): Promise { + public async setOnDemandConcurrencyCap(body: OnDemandConcurrencyCapAttributes,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "setOnDemandConcurrencyCap"); + throw new RequiredError('body', 'setOnDemandConcurrencyCap'); } // Path Params - const localVarPath = - "/api/v2/synthetics/settings/on_demand_concurrency_cap"; + const localVarPath = '/api/v2/synthetics/settings/on_demand_concurrency_cap'; // Make Request Context - const requestContext = _config - .getServer("v2.SyntheticsApi.setOnDemandConcurrencyCap") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.SyntheticsApi.setOnDemandConcurrencyCap').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "OnDemandConcurrencyCapAttributes", ""), @@ -80,16 +64,14 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class SyntheticsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -97,12 +79,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to getOnDemandConcurrencyCap * @throws ApiException if the response code was not in [200, 299] */ - public async getOnDemandConcurrencyCap( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getOnDemandConcurrencyCap(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OnDemandConcurrencyCapResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -111,10 +89,7 @@ export class SyntheticsApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -123,11 +98,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -135,17 +107,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OnDemandConcurrencyCapResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OnDemandConcurrencyCapResponse", - "" + "OnDemandConcurrencyCapResponse", "" ) as OnDemandConcurrencyCapResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -155,12 +123,8 @@ export class SyntheticsApiResponseProcessor { * @params response Response returned by the server for a request to setOnDemandConcurrencyCap * @throws ApiException if the response code was not in [200, 299] */ - public async setOnDemandConcurrencyCap( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async setOnDemandConcurrencyCap(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: OnDemandConcurrencyCapResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -169,10 +133,7 @@ export class SyntheticsApiResponseProcessor { return body; } if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -181,11 +142,8 @@ export class SyntheticsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -193,17 +151,13 @@ export class SyntheticsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: OnDemandConcurrencyCapResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "OnDemandConcurrencyCapResponse", - "" + "OnDemandConcurrencyCapResponse", "" ) as OnDemandConcurrencyCapResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -212,7 +166,7 @@ export interface SyntheticsApiSetOnDemandConcurrencyCapRequest { * . * @type OnDemandConcurrencyCapAttributes */ - body: OnDemandConcurrencyCapAttributes; + body: OnDemandConcurrencyCapAttributes } export class SyntheticsApi { @@ -220,34 +174,21 @@ export class SyntheticsApi { private responseProcessor: SyntheticsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: SyntheticsApiRequestFactory, - responseProcessor?: SyntheticsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: SyntheticsApiRequestFactory, responseProcessor?: SyntheticsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new SyntheticsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new SyntheticsApiResponseProcessor(); + this.requestFactory = requestFactory || new SyntheticsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new SyntheticsApiResponseProcessor(); } /** * Get the on-demand concurrency cap. * @param param The request object */ - public getOnDemandConcurrencyCap( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getOnDemandConcurrencyCap(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOnDemandConcurrencyCap( - responseContext - ); + public getOnDemandConcurrencyCap( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getOnDemandConcurrencyCap(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getOnDemandConcurrencyCap(responseContext); }); }); } @@ -256,22 +197,12 @@ export class SyntheticsApi { * Save new value for on-demand concurrency cap. * @param param The request object */ - public setOnDemandConcurrencyCap( - param: SyntheticsApiSetOnDemandConcurrencyCapRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.setOnDemandConcurrencyCap( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.setOnDemandConcurrencyCap( - responseContext - ); + public setOnDemandConcurrencyCap(param: SyntheticsApiSetOnDemandConcurrencyCapRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.setOnDemandConcurrencyCap(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.setOnDemandConcurrencyCap(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/TeamsApi.ts b/packages/datadog-api-client-v2/apis/TeamsApi.ts index 0c806612ccd0..f3296a12624b 100644 --- a/packages/datadog-api-client-v2/apis/TeamsApi.ts +++ b/packages/datadog-api-client-v2/apis/TeamsApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { GetTeamMembershipsSort } from "../models/GetTeamMembershipsSort"; import { ListTeamsInclude } from "../models/ListTeamsInclude"; @@ -39,31 +37,26 @@ import { UserTeamsResponse } from "../models/UserTeamsResponse"; import { UserTeamUpdateRequest } from "../models/UserTeamUpdateRequest"; export class TeamsApiRequestFactory extends BaseAPIRequestFactory { - public async createTeam( - body: TeamCreateRequest, - _options?: Configuration - ): Promise { + + public async createTeam(body: TeamCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createTeam"); + throw new RequiredError('body', 'createTeam'); } // Path Params - const localVarPath = "/api/v2/team"; + const localVarPath = '/api/v2/team'; // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.createTeam") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.TeamsApi.createTeam').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "TeamCreateRequest", ""), @@ -72,49 +65,36 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createTeamLink( - teamId: string, - body: TeamLinkCreateRequest, - _options?: Configuration - ): Promise { + public async createTeamLink(teamId: string,body: TeamLinkCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "createTeamLink"); + throw new RequiredError('teamId', 'createTeamLink'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createTeamLink"); + throw new RequiredError('body', 'createTeamLink'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/links".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}/links' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.createTeamLink") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.TeamsApi.createTeamLink').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "TeamLinkCreateRequest", ""), @@ -123,49 +103,36 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createTeamMembership( - teamId: string, - body: UserTeamRequest, - _options?: Configuration - ): Promise { + public async createTeamMembership(teamId: string,body: UserTeamRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "createTeamMembership"); + throw new RequiredError('teamId', 'createTeamMembership'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createTeamMembership"); + throw new RequiredError('body', 'createTeamMembership'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/memberships".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}/memberships' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.createTeamMembership") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.TeamsApi.createTeamMembership').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UserTeamRequest", ""), @@ -174,487 +141,315 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteTeam( - teamId: string, - _options?: Configuration - ): Promise { + public async deleteTeam(teamId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "deleteTeam"); + throw new RequiredError('teamId', 'deleteTeam'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.deleteTeam") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.TeamsApi.deleteTeam').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteTeamLink( - teamId: string, - linkId: string, - _options?: Configuration - ): Promise { + public async deleteTeamLink(teamId: string,linkId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "deleteTeamLink"); + throw new RequiredError('teamId', 'deleteTeamLink'); } // verify required parameter 'linkId' is not null or undefined if (linkId === null || linkId === undefined) { - throw new RequiredError("linkId", "deleteTeamLink"); + throw new RequiredError('linkId', 'deleteTeamLink'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/links/{link_id}" - .replace("{team_id}", encodeURIComponent(String(teamId))) - .replace("{link_id}", encodeURIComponent(String(linkId))); + const localVarPath = '/api/v2/team/{team_id}/links/{link_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))) + .replace('{link_id}', encodeURIComponent(String(linkId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.deleteTeamLink") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.TeamsApi.deleteTeamLink').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteTeamMembership( - teamId: string, - userId: string, - _options?: Configuration - ): Promise { + public async deleteTeamMembership(teamId: string,userId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "deleteTeamMembership"); + throw new RequiredError('teamId', 'deleteTeamMembership'); } // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "deleteTeamMembership"); + throw new RequiredError('userId', 'deleteTeamMembership'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/memberships/{user_id}" - .replace("{team_id}", encodeURIComponent(String(teamId))) - .replace("{user_id}", encodeURIComponent(String(userId))); + const localVarPath = '/api/v2/team/{team_id}/memberships/{user_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))) + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.deleteTeamMembership") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.TeamsApi.deleteTeamMembership').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTeam( - teamId: string, - _options?: Configuration - ): Promise { + public async getTeam(teamId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "getTeam"); + throw new RequiredError('teamId', 'getTeam'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.getTeam") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.getTeam').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTeamLink( - teamId: string, - linkId: string, - _options?: Configuration - ): Promise { + public async getTeamLink(teamId: string,linkId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "getTeamLink"); + throw new RequiredError('teamId', 'getTeamLink'); } // verify required parameter 'linkId' is not null or undefined if (linkId === null || linkId === undefined) { - throw new RequiredError("linkId", "getTeamLink"); + throw new RequiredError('linkId', 'getTeamLink'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/links/{link_id}" - .replace("{team_id}", encodeURIComponent(String(teamId))) - .replace("{link_id}", encodeURIComponent(String(linkId))); + const localVarPath = '/api/v2/team/{team_id}/links/{link_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))) + .replace('{link_id}', encodeURIComponent(String(linkId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.getTeamLink") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.getTeamLink').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTeamLinks( - teamId: string, - _options?: Configuration - ): Promise { + public async getTeamLinks(teamId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "getTeamLinks"); + throw new RequiredError('teamId', 'getTeamLinks'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/links".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}/links' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.getTeamLinks") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.getTeamLinks').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTeamMemberships( - teamId: string, - pageSize?: number, - pageNumber?: number, - sort?: GetTeamMembershipsSort, - filterKeyword?: string, - _options?: Configuration - ): Promise { + public async getTeamMemberships(teamId: string,pageSize?: number,pageNumber?: number,sort?: GetTeamMembershipsSort,filterKeyword?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "getTeamMemberships"); + throw new RequiredError('teamId', 'getTeamMemberships'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/memberships".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}/memberships' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.getTeamMemberships") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.getTeamMemberships').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "GetTeamMembershipsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "GetTeamMembershipsSort", ""), ""); } if (filterKeyword !== undefined) { - requestContext.setQueryParam( - "filter[keyword]", - ObjectSerializer.serialize(filterKeyword, "string", ""), - "" - ); + requestContext.setQueryParam("filter[keyword]", ObjectSerializer.serialize(filterKeyword, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getTeamPermissionSettings( - teamId: string, - _options?: Configuration - ): Promise { + public async getTeamPermissionSettings(teamId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "getTeamPermissionSettings"); + throw new RequiredError('teamId', 'getTeamPermissionSettings'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/permission-settings".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}/permission-settings' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.getTeamPermissionSettings") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.getTeamPermissionSettings').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUserMemberships( - userUuid: string, - _options?: Configuration - ): Promise { + public async getUserMemberships(userUuid: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userUuid' is not null or undefined if (userUuid === null || userUuid === undefined) { - throw new RequiredError("userUuid", "getUserMemberships"); + throw new RequiredError('userUuid', 'getUserMemberships'); } // Path Params - const localVarPath = "/api/v2/users/{user_uuid}/memberships".replace( - "{user_uuid}", - encodeURIComponent(String(userUuid)) - ); + const localVarPath = '/api/v2/users/{user_uuid}/memberships' + .replace('{user_uuid}', encodeURIComponent(String(userUuid))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.getUserMemberships") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.getUserMemberships').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listTeams( - pageNumber?: number, - pageSize?: number, - sort?: ListTeamsSort, - include?: Array, - filterKeyword?: string, - filterMe?: boolean, - fieldsTeam?: Array, - _options?: Configuration - ): Promise { + public async listTeams(pageNumber?: number,pageSize?: number,sort?: ListTeamsSort,include?: Array,filterKeyword?: string,filterMe?: boolean,fieldsTeam?: Array,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/team"; + const localVarPath = '/api/v2/team'; // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.listTeams") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.TeamsApi.listTeams').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "ListTeamsSort", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "ListTeamsSort", ""), ""); } if (include !== undefined) { - requestContext.setQueryParam( - "include", - ObjectSerializer.serialize(include, "Array", ""), - "multi" - ); + requestContext.setQueryParam("include", ObjectSerializer.serialize(include, "Array", ""), "multi"); } if (filterKeyword !== undefined) { - requestContext.setQueryParam( - "filter[keyword]", - ObjectSerializer.serialize(filterKeyword, "string", ""), - "" - ); + requestContext.setQueryParam("filter[keyword]", ObjectSerializer.serialize(filterKeyword, "string", ""), ""); } if (filterMe !== undefined) { - requestContext.setQueryParam( - "filter[me]", - ObjectSerializer.serialize(filterMe, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[me]", ObjectSerializer.serialize(filterMe, "boolean", ""), ""); } if (fieldsTeam !== undefined) { - requestContext.setQueryParam( - "fields[team]", - ObjectSerializer.serialize(fieldsTeam, "Array", ""), - "csv" - ); + requestContext.setQueryParam("fields[team]", ObjectSerializer.serialize(fieldsTeam, "Array", ""), "csv"); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateTeam( - teamId: string, - body: TeamUpdateRequest, - _options?: Configuration - ): Promise { + public async updateTeam(teamId: string,body: TeamUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "updateTeam"); + throw new RequiredError('teamId', 'updateTeam'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTeam"); + throw new RequiredError('body', 'updateTeam'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}".replace( - "{team_id}", - encodeURIComponent(String(teamId)) - ); + const localVarPath = '/api/v2/team/{team_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.updateTeam") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.TeamsApi.updateTeam').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "TeamUpdateRequest", ""), @@ -663,54 +458,42 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateTeamLink( - teamId: string, - linkId: string, - body: TeamLinkCreateRequest, - _options?: Configuration - ): Promise { + public async updateTeamLink(teamId: string,linkId: string,body: TeamLinkCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "updateTeamLink"); + throw new RequiredError('teamId', 'updateTeamLink'); } // verify required parameter 'linkId' is not null or undefined if (linkId === null || linkId === undefined) { - throw new RequiredError("linkId", "updateTeamLink"); + throw new RequiredError('linkId', 'updateTeamLink'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTeamLink"); + throw new RequiredError('body', 'updateTeamLink'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/links/{link_id}" - .replace("{team_id}", encodeURIComponent(String(teamId))) - .replace("{link_id}", encodeURIComponent(String(linkId))); + const localVarPath = '/api/v2/team/{team_id}/links/{link_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))) + .replace('{link_id}', encodeURIComponent(String(linkId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.updateTeamLink") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.TeamsApi.updateTeamLink').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "TeamLinkCreateRequest", ""), @@ -719,54 +502,42 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateTeamMembership( - teamId: string, - userId: string, - body: UserTeamUpdateRequest, - _options?: Configuration - ): Promise { + public async updateTeamMembership(teamId: string,userId: string,body: UserTeamUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "updateTeamMembership"); + throw new RequiredError('teamId', 'updateTeamMembership'); } // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "updateTeamMembership"); + throw new RequiredError('userId', 'updateTeamMembership'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTeamMembership"); + throw new RequiredError('body', 'updateTeamMembership'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/memberships/{user_id}" - .replace("{team_id}", encodeURIComponent(String(teamId))) - .replace("{user_id}", encodeURIComponent(String(userId))); + const localVarPath = '/api/v2/team/{team_id}/memberships/{user_id}' + .replace('{team_id}', encodeURIComponent(String(teamId))) + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.updateTeamMembership") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.TeamsApi.updateTeamMembership').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UserTeamUpdateRequest", ""), @@ -775,77 +546,58 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateTeamPermissionSetting( - teamId: string, - action: string, - body: TeamPermissionSettingUpdateRequest, - _options?: Configuration - ): Promise { + public async updateTeamPermissionSetting(teamId: string,action: string,body: TeamPermissionSettingUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { - throw new RequiredError("teamId", "updateTeamPermissionSetting"); + throw new RequiredError('teamId', 'updateTeamPermissionSetting'); } // verify required parameter 'action' is not null or undefined if (action === null || action === undefined) { - throw new RequiredError("action", "updateTeamPermissionSetting"); + throw new RequiredError('action', 'updateTeamPermissionSetting'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateTeamPermissionSetting"); + throw new RequiredError('body', 'updateTeamPermissionSetting'); } // Path Params - const localVarPath = "/api/v2/team/{team_id}/permission-settings/{action}" - .replace("{team_id}", encodeURIComponent(String(teamId))) - .replace("{action}", encodeURIComponent(String(action))); + const localVarPath = '/api/v2/team/{team_id}/permission-settings/{action}' + .replace('{team_id}', encodeURIComponent(String(teamId))) + .replace('{action}', encodeURIComponent(String(action))); // Make Request Context - const requestContext = _config - .getServer("v2.TeamsApi.updateTeamPermissionSetting") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.TeamsApi.updateTeamPermissionSetting').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize( - body, - "TeamPermissionSettingUpdateRequest", - "" - ), + ObjectSerializer.serialize(body, "TeamPermissionSettingUpdateRequest", ""), contentType ); requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class TeamsApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -853,10 +605,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to createTeam * @throws ApiException if the response code was not in [200, 299] */ - public async createTeam(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: TeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -864,15 +614,8 @@ export class TeamsApiResponseProcessor { ) as TeamResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -881,11 +624,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -893,17 +633,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamResponse", - "" + "TeamResponse", "" ) as TeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -913,12 +649,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to createTeamLink * @throws ApiException if the response code was not in [200, 299] */ - public async createTeamLink( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createTeamLink(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamLinkResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -926,16 +658,8 @@ export class TeamsApiResponseProcessor { ) as TeamLinkResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -944,11 +668,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -956,17 +677,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamLinkResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamLinkResponse", - "" + "TeamLinkResponse", "" ) as TeamLinkResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -976,12 +693,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to createTeamMembership * @throws ApiException if the response code was not in [200, 299] */ - public async createTeamMembership( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createTeamMembership(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -989,16 +702,8 @@ export class TeamsApiResponseProcessor { ) as UserTeamResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1007,11 +712,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1019,17 +721,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserTeamResponse", - "" + "UserTeamResponse", "" ) as UserTeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1039,22 +737,13 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to deleteTeam * @throws ApiException if the response code was not in [200, 299] */ - public async deleteTeam(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1063,11 +752,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1075,17 +761,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1095,22 +777,13 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to deleteTeamLink * @throws ApiException if the response code was not in [200, 299] */ - public async deleteTeamLink(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteTeamLink(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1119,11 +792,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1131,17 +801,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1151,22 +817,13 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to deleteTeamMembership * @throws ApiException if the response code was not in [200, 299] */ - public async deleteTeamMembership(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteTeamMembership(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1175,11 +832,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1187,17 +841,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1207,10 +857,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to getTeam * @throws ApiException if the response code was not in [200, 299] */ - public async getTeam(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1218,15 +866,8 @@ export class TeamsApiResponseProcessor { ) as TeamResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1235,11 +876,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1247,17 +885,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamResponse", - "" + "TeamResponse", "" ) as TeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1267,12 +901,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to getTeamLink * @throws ApiException if the response code was not in [200, 299] */ - public async getTeamLink( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTeamLink(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamLinkResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1280,15 +910,8 @@ export class TeamsApiResponseProcessor { ) as TeamLinkResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1297,11 +920,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1309,17 +929,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamLinkResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamLinkResponse", - "" + "TeamLinkResponse", "" ) as TeamLinkResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1329,12 +945,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to getTeamLinks * @throws ApiException if the response code was not in [200, 299] */ - public async getTeamLinks( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTeamLinks(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamLinksResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1342,15 +954,8 @@ export class TeamsApiResponseProcessor { ) as TeamLinksResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1359,11 +964,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1371,17 +973,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamLinksResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamLinksResponse", - "" + "TeamLinksResponse", "" ) as TeamLinksResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1391,12 +989,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to getTeamMemberships * @throws ApiException if the response code was not in [200, 299] */ - public async getTeamMemberships( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTeamMemberships(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserTeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1404,15 +998,8 @@ export class TeamsApiResponseProcessor { ) as UserTeamsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1421,11 +1008,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1433,17 +1017,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserTeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserTeamsResponse", - "" + "UserTeamsResponse", "" ) as UserTeamsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1453,12 +1033,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to getTeamPermissionSettings * @throws ApiException if the response code was not in [200, 299] */ - public async getTeamPermissionSettings( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getTeamPermissionSettings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamPermissionSettingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1466,15 +1042,8 @@ export class TeamsApiResponseProcessor { ) as TeamPermissionSettingsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1483,11 +1052,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1495,17 +1061,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamPermissionSettingsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamPermissionSettingsResponse", - "" + "TeamPermissionSettingsResponse", "" ) as TeamPermissionSettingsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1515,12 +1077,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to getUserMemberships * @throws ApiException if the response code was not in [200, 299] */ - public async getUserMemberships( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUserMemberships(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserTeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1528,11 +1086,8 @@ export class TeamsApiResponseProcessor { ) as UserTeamsResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1541,11 +1096,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1553,17 +1105,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserTeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserTeamsResponse", - "" + "UserTeamsResponse", "" ) as UserTeamsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1573,10 +1121,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to listTeams * @throws ApiException if the response code was not in [200, 299] */ - public async listTeams(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listTeams(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1584,11 +1130,8 @@ export class TeamsApiResponseProcessor { ) as TeamsResponse; return body; } - if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1597,11 +1140,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1609,17 +1149,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamsResponse", - "" + "TeamsResponse", "" ) as TeamsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1629,10 +1165,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to updateTeam * @throws ApiException if the response code was not in [200, 299] */ - public async updateTeam(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTeam(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1640,17 +1174,8 @@ export class TeamsApiResponseProcessor { ) as TeamResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 409 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 409||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1659,11 +1184,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1671,17 +1193,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamResponse", - "" + "TeamResponse", "" ) as TeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1691,12 +1209,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to updateTeamLink * @throws ApiException if the response code was not in [200, 299] */ - public async updateTeamLink( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTeamLink(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamLinkResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1704,15 +1218,8 @@ export class TeamsApiResponseProcessor { ) as TeamLinkResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1721,11 +1228,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1733,17 +1237,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamLinkResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamLinkResponse", - "" + "TeamLinkResponse", "" ) as TeamLinkResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1753,12 +1253,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to updateTeamMembership * @throws ApiException if the response code was not in [200, 299] */ - public async updateTeamMembership( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTeamMembership(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1766,15 +1262,8 @@ export class TeamsApiResponseProcessor { ) as UserTeamResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1783,11 +1272,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1795,17 +1281,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserTeamResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserTeamResponse", - "" + "UserTeamResponse", "" ) as UserTeamResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1815,12 +1297,8 @@ export class TeamsApiResponseProcessor { * @params response Response returned by the server for a request to updateTeamPermissionSetting * @throws ApiException if the response code was not in [200, 299] */ - public async updateTeamPermissionSetting( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateTeamPermissionSetting(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: TeamPermissionSettingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1828,15 +1306,8 @@ export class TeamsApiResponseProcessor { ) as TeamPermissionSettingResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1845,11 +1316,8 @@ export class TeamsApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1857,17 +1325,13 @@ export class TeamsApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: TeamPermissionSettingResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "TeamPermissionSettingResponse", - "" + "TeamPermissionSettingResponse", "" ) as TeamPermissionSettingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1875,7 +1339,7 @@ export interface TeamsApiCreateTeamRequest { /** * @type TeamCreateRequest */ - body: TeamCreateRequest; + body: TeamCreateRequest } export interface TeamsApiCreateTeamLinkRequest { @@ -1883,11 +1347,11 @@ export interface TeamsApiCreateTeamLinkRequest { * None * @type string */ - teamId: string; + teamId: string /** * @type TeamLinkCreateRequest */ - body: TeamLinkCreateRequest; + body: TeamLinkCreateRequest } export interface TeamsApiCreateTeamMembershipRequest { @@ -1895,11 +1359,11 @@ export interface TeamsApiCreateTeamMembershipRequest { * None * @type string */ - teamId: string; + teamId: string /** * @type UserTeamRequest */ - body: UserTeamRequest; + body: UserTeamRequest } export interface TeamsApiDeleteTeamRequest { @@ -1907,7 +1371,7 @@ export interface TeamsApiDeleteTeamRequest { * None * @type string */ - teamId: string; + teamId: string } export interface TeamsApiDeleteTeamLinkRequest { @@ -1915,12 +1379,12 @@ export interface TeamsApiDeleteTeamLinkRequest { * None * @type string */ - teamId: string; + teamId: string /** * None * @type string */ - linkId: string; + linkId: string } export interface TeamsApiDeleteTeamMembershipRequest { @@ -1928,12 +1392,12 @@ export interface TeamsApiDeleteTeamMembershipRequest { * None * @type string */ - teamId: string; + teamId: string /** * None * @type string */ - userId: string; + userId: string } export interface TeamsApiGetTeamRequest { @@ -1941,7 +1405,7 @@ export interface TeamsApiGetTeamRequest { * None * @type string */ - teamId: string; + teamId: string } export interface TeamsApiGetTeamLinkRequest { @@ -1949,12 +1413,12 @@ export interface TeamsApiGetTeamLinkRequest { * None * @type string */ - teamId: string; + teamId: string /** * None * @type string */ - linkId: string; + linkId: string } export interface TeamsApiGetTeamLinksRequest { @@ -1962,7 +1426,7 @@ export interface TeamsApiGetTeamLinksRequest { * None * @type string */ - teamId: string; + teamId: string } export interface TeamsApiGetTeamMembershipsRequest { @@ -1970,27 +1434,27 @@ export interface TeamsApiGetTeamMembershipsRequest { * None * @type string */ - teamId: string; + teamId: string /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Specifies the order of returned team memberships * @type GetTeamMembershipsSort */ - sort?: GetTeamMembershipsSort; + sort?: GetTeamMembershipsSort /** * Search query, can be user email or name * @type string */ - filterKeyword?: string; + filterKeyword?: string } export interface TeamsApiGetTeamPermissionSettingsRequest { @@ -1998,7 +1462,7 @@ export interface TeamsApiGetTeamPermissionSettingsRequest { * None * @type string */ - teamId: string; + teamId: string } export interface TeamsApiGetUserMembershipsRequest { @@ -2006,7 +1470,7 @@ export interface TeamsApiGetUserMembershipsRequest { * None * @type string */ - userUuid: string; + userUuid: string } export interface TeamsApiListTeamsRequest { @@ -2014,37 +1478,37 @@ export interface TeamsApiListTeamsRequest { * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specifies the order of the returned teams * @type ListTeamsSort */ - sort?: ListTeamsSort; + sort?: ListTeamsSort /** * Included related resources optionally requested. Allowed enum values: `team_links, user_team_permissions` * @type Array */ - include?: Array; + include?: Array /** * Search query. Can be team name, team handle, or email of team member * @type string */ - filterKeyword?: string; + filterKeyword?: string /** * When true, only returns teams the current user belongs to * @type boolean */ - filterMe?: boolean; + filterMe?: boolean /** * List of fields that need to be fetched. * @type Array */ - fieldsTeam?: Array; + fieldsTeam?: Array } export interface TeamsApiUpdateTeamRequest { @@ -2052,11 +1516,11 @@ export interface TeamsApiUpdateTeamRequest { * None * @type string */ - teamId: string; + teamId: string /** * @type TeamUpdateRequest */ - body: TeamUpdateRequest; + body: TeamUpdateRequest } export interface TeamsApiUpdateTeamLinkRequest { @@ -2064,16 +1528,16 @@ export interface TeamsApiUpdateTeamLinkRequest { * None * @type string */ - teamId: string; + teamId: string /** * None * @type string */ - linkId: string; + linkId: string /** * @type TeamLinkCreateRequest */ - body: TeamLinkCreateRequest; + body: TeamLinkCreateRequest } export interface TeamsApiUpdateTeamMembershipRequest { @@ -2081,16 +1545,16 @@ export interface TeamsApiUpdateTeamMembershipRequest { * None * @type string */ - teamId: string; + teamId: string /** * None * @type string */ - userId: string; + userId: string /** * @type UserTeamUpdateRequest */ - body: UserTeamUpdateRequest; + body: UserTeamUpdateRequest } export interface TeamsApiUpdateTeamPermissionSettingRequest { @@ -2098,16 +1562,16 @@ export interface TeamsApiUpdateTeamPermissionSettingRequest { * None * @type string */ - teamId: string; + teamId: string /** * None * @type string */ - action: string; + action: string /** * @type TeamPermissionSettingUpdateRequest */ - body: TeamPermissionSettingUpdateRequest; + body: TeamPermissionSettingUpdateRequest } export class TeamsApi { @@ -2115,16 +1579,10 @@ export class TeamsApi { private responseProcessor: TeamsApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: TeamsApiRequestFactory, - responseProcessor?: TeamsApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: TeamsApiRequestFactory, responseProcessor?: TeamsApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new TeamsApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new TeamsApiResponseProcessor(); + this.requestFactory = requestFactory || new TeamsApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new TeamsApiResponseProcessor(); } /** @@ -2132,19 +1590,11 @@ export class TeamsApi { * User IDs passed through the `users` relationship field are added to the team. * @param param The request object */ - public createTeam( - param: TeamsApiCreateTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createTeam( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createTeam(responseContext); + public createTeam(param: TeamsApiCreateTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createTeam(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createTeam(responseContext); }); }); } @@ -2153,20 +1603,11 @@ export class TeamsApi { * Add a new link to a team. * @param param The request object */ - public createTeamLink( - param: TeamsApiCreateTeamLinkRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createTeamLink( - param.teamId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createTeamLink(responseContext); + public createTeamLink(param: TeamsApiCreateTeamLinkRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createTeamLink(param.teamId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createTeamLink(responseContext); }); }); } @@ -2175,20 +1616,11 @@ export class TeamsApi { * Add a user to a team. * @param param The request object */ - public createTeamMembership( - param: TeamsApiCreateTeamMembershipRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createTeamMembership( - param.teamId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createTeamMembership(responseContext); + public createTeamMembership(param: TeamsApiCreateTeamMembershipRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createTeamMembership(param.teamId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createTeamMembership(responseContext); }); }); } @@ -2197,19 +1629,11 @@ export class TeamsApi { * Remove a team using the team's `id`. * @param param The request object */ - public deleteTeam( - param: TeamsApiDeleteTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteTeam( - param.teamId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteTeam(responseContext); + public deleteTeam(param: TeamsApiDeleteTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteTeam(param.teamId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteTeam(responseContext); }); }); } @@ -2218,20 +1642,11 @@ export class TeamsApi { * Remove a link from a team. * @param param The request object */ - public deleteTeamLink( - param: TeamsApiDeleteTeamLinkRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteTeamLink( - param.teamId, - param.linkId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteTeamLink(responseContext); + public deleteTeamLink(param: TeamsApiDeleteTeamLinkRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteTeamLink(param.teamId,param.linkId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteTeamLink(responseContext); }); }); } @@ -2240,20 +1655,11 @@ export class TeamsApi { * Remove a user from a team. * @param param The request object */ - public deleteTeamMembership( - param: TeamsApiDeleteTeamMembershipRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteTeamMembership( - param.teamId, - param.userId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteTeamMembership(responseContext); + public deleteTeamMembership(param: TeamsApiDeleteTeamMembershipRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteTeamMembership(param.teamId,param.userId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteTeamMembership(responseContext); }); }); } @@ -2262,19 +1668,11 @@ export class TeamsApi { * Get a single team using the team's `id`. * @param param The request object */ - public getTeam( - param: TeamsApiGetTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTeam( - param.teamId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTeam(responseContext); + public getTeam(param: TeamsApiGetTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTeam(param.teamId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTeam(responseContext); }); }); } @@ -2283,20 +1681,11 @@ export class TeamsApi { * Get a single link for a team. * @param param The request object */ - public getTeamLink( - param: TeamsApiGetTeamLinkRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTeamLink( - param.teamId, - param.linkId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTeamLink(responseContext); + public getTeamLink(param: TeamsApiGetTeamLinkRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTeamLink(param.teamId,param.linkId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTeamLink(responseContext); }); }); } @@ -2305,19 +1694,11 @@ export class TeamsApi { * Get all links for a given team. * @param param The request object */ - public getTeamLinks( - param: TeamsApiGetTeamLinksRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTeamLinks( - param.teamId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTeamLinks(responseContext); + public getTeamLinks(param: TeamsApiGetTeamLinksRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTeamLinks(param.teamId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTeamLinks(responseContext); }); }); } @@ -2326,23 +1707,11 @@ export class TeamsApi { * Get a paginated list of members for a team * @param param The request object */ - public getTeamMemberships( - param: TeamsApiGetTeamMembershipsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTeamMemberships( - param.teamId, - param.pageSize, - param.pageNumber, - param.sort, - param.filterKeyword, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTeamMemberships(responseContext); + public getTeamMemberships(param: TeamsApiGetTeamMembershipsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTeamMemberships(param.teamId,param.pageSize,param.pageNumber,param.sort,param.filterKeyword,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTeamMemberships(responseContext); }); }); } @@ -2350,10 +1719,8 @@ export class TeamsApi { /** * Provide a paginated version of getTeamMemberships returning a generator with all the items. */ - public async *getTeamMembershipsWithPagination( - param: TeamsApiGetTeamMembershipsRequest, - options?: Configuration - ): AsyncGenerator { + public async *getTeamMembershipsWithPagination(param: TeamsApiGetTeamMembershipsRequest, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -2361,21 +1728,10 @@ export class TeamsApi { param.pageSize = pageSize; param.pageNumber = 0; while (true) { - const requestContext = await this.requestFactory.getTeamMemberships( - param.teamId, - param.pageSize, - param.pageNumber, - param.sort, - param.filterKeyword, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); - - const response = await this.responseProcessor.getTeamMemberships( - responseContext - ); + const requestContext = await this.requestFactory.getTeamMemberships(param.teamId,param.pageSize,param.pageNumber,param.sort,param.filterKeyword,options); + const responseContext = await this.configuration.httpApi.send(requestContext); + + const response = await this.responseProcessor.getTeamMemberships(responseContext); const responseData = response.data; if (responseData === undefined) { break; @@ -2395,21 +1751,11 @@ export class TeamsApi { * Get all permission settings for a given team. * @param param The request object */ - public getTeamPermissionSettings( - param: TeamsApiGetTeamPermissionSettingsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getTeamPermissionSettings( - param.teamId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getTeamPermissionSettings( - responseContext - ); + public getTeamPermissionSettings(param: TeamsApiGetTeamPermissionSettingsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getTeamPermissionSettings(param.teamId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getTeamPermissionSettings(responseContext); }); }); } @@ -2418,19 +1764,11 @@ export class TeamsApi { * Get a list of memberships for a user * @param param The request object */ - public getUserMemberships( - param: TeamsApiGetUserMembershipsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUserMemberships( - param.userUuid, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUserMemberships(responseContext); + public getUserMemberships(param: TeamsApiGetUserMembershipsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUserMemberships(param.userUuid,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUserMemberships(responseContext); }); }); } @@ -2440,25 +1778,11 @@ export class TeamsApi { * Can be used to search for teams using the `filter[keyword]` and `filter[me]` query parameters. * @param param The request object */ - public listTeams( - param: TeamsApiListTeamsRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listTeams( - param.pageNumber, - param.pageSize, - param.sort, - param.include, - param.filterKeyword, - param.filterMe, - param.fieldsTeam, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listTeams(responseContext); + public listTeams(param: TeamsApiListTeamsRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listTeams(param.pageNumber,param.pageSize,param.sort,param.include,param.filterKeyword,param.filterMe,param.fieldsTeam,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listTeams(responseContext); }); }); } @@ -2466,10 +1790,8 @@ export class TeamsApi { /** * Provide a paginated version of listTeams returning a generator with all the items. */ - public async *listTeamsWithPagination( - param: TeamsApiListTeamsRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listTeamsWithPagination(param: TeamsApiListTeamsRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -2477,19 +1799,8 @@ export class TeamsApi { param.pageSize = pageSize; param.pageNumber = 0; while (true) { - const requestContext = await this.requestFactory.listTeams( - param.pageNumber, - param.pageSize, - param.sort, - param.include, - param.filterKeyword, - param.filterMe, - param.fieldsTeam, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listTeams(param.pageNumber,param.pageSize,param.sort,param.include,param.filterKeyword,param.filterMe,param.fieldsTeam,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listTeams(responseContext); const responseData = response.data; @@ -2512,20 +1823,11 @@ export class TeamsApi { * If the `team_links` relationship is present, the associated links are updated to be in the order they appear in the array, and any existing team links not present are removed. * @param param The request object */ - public updateTeam( - param: TeamsApiUpdateTeamRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateTeam( - param.teamId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTeam(responseContext); + public updateTeam(param: TeamsApiUpdateTeamRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTeam(param.teamId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTeam(responseContext); }); }); } @@ -2534,21 +1836,11 @@ export class TeamsApi { * Update a team link. * @param param The request object */ - public updateTeamLink( - param: TeamsApiUpdateTeamLinkRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateTeamLink( - param.teamId, - param.linkId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTeamLink(responseContext); + public updateTeamLink(param: TeamsApiUpdateTeamLinkRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTeamLink(param.teamId,param.linkId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTeamLink(responseContext); }); }); } @@ -2557,21 +1849,11 @@ export class TeamsApi { * Update a user's membership attributes on a team. * @param param The request object */ - public updateTeamMembership( - param: TeamsApiUpdateTeamMembershipRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateTeamMembership( - param.teamId, - param.userId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTeamMembership(responseContext); + public updateTeamMembership(param: TeamsApiUpdateTeamMembershipRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTeamMembership(param.teamId,param.userId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTeamMembership(responseContext); }); }); } @@ -2580,25 +1862,12 @@ export class TeamsApi { * Update a team permission setting for a given team. * @param param The request object */ - public updateTeamPermissionSetting( - param: TeamsApiUpdateTeamPermissionSettingRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.updateTeamPermissionSetting( - param.teamId, - param.action, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateTeamPermissionSetting( - responseContext - ); + public updateTeamPermissionSetting(param: TeamsApiUpdateTeamPermissionSettingRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateTeamPermissionSetting(param.teamId,param.action,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateTeamPermissionSetting(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts b/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts index e158e120ff7f..78078bffb432 100644 --- a/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts +++ b/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { ActiveBillingDimensionsResponse } from "../models/ActiveBillingDimensionsResponse"; import { APIErrorResponse } from "../models/APIErrorResponse"; import { BillingDimensionsMappingResponse } from "../models/BillingDimensionsMappingResponse"; @@ -29,700 +27,379 @@ import { UsageLambdaTracedInvocationsResponse } from "../models/UsageLambdaTrace import { UsageObservabilityPipelinesResponse } from "../models/UsageObservabilityPipelinesResponse"; export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { - public async getActiveBillingDimensions( - _options?: Configuration - ): Promise { + + public async getActiveBillingDimensions(_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions"; + const localVarPath = '/api/v2/cost_by_tag/active_billing_dimensions'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getActiveBillingDimensions") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getActiveBillingDimensions').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getBillingDimensionMapping( - filterMonth?: Date, - filterView?: string, - _options?: Configuration - ): Promise { + public async getBillingDimensionMapping(filterMonth?: Date,filterView?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/usage/billing_dimension_mapping"; + const localVarPath = '/api/v2/usage/billing_dimension_mapping'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getBillingDimensionMapping") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getBillingDimensionMapping').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterMonth !== undefined) { - requestContext.setQueryParam( - "filter[month]", - ObjectSerializer.serialize(filterMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[month]", ObjectSerializer.serialize(filterMonth, "Date", "date-time"), ""); } if (filterView !== undefined) { - requestContext.setQueryParam( - "filter[view]", - ObjectSerializer.serialize(filterView, "string", ""), - "" - ); + requestContext.setQueryParam("filter[view]", ObjectSerializer.serialize(filterView, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getCostByOrg( - startMonth: Date, - endMonth?: Date, - _options?: Configuration - ): Promise { + public async getCostByOrg(startMonth: Date,endMonth?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startMonth' is not null or undefined if (startMonth === null || startMonth === undefined) { - throw new RequiredError("startMonth", "getCostByOrg"); + throw new RequiredError('startMonth', 'getCostByOrg'); } // Path Params - const localVarPath = "/api/v2/usage/cost_by_org"; + const localVarPath = '/api/v2/usage/cost_by_org'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getCostByOrg") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getCostByOrg').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startMonth !== undefined) { - requestContext.setQueryParam( - "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_month", ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); } if (endMonth !== undefined) { - requestContext.setQueryParam( - "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_month", ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getEstimatedCostByOrg( - view?: string, - startMonth?: Date, - endMonth?: Date, - startDate?: Date, - endDate?: Date, - includeConnectedAccounts?: boolean, - _options?: Configuration - ): Promise { + public async getEstimatedCostByOrg(view?: string,startMonth?: Date,endMonth?: Date,startDate?: Date,endDate?: Date,includeConnectedAccounts?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/usage/estimated_cost"; + const localVarPath = '/api/v2/usage/estimated_cost'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getEstimatedCostByOrg") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getEstimatedCostByOrg').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (view !== undefined) { - requestContext.setQueryParam( - "view", - ObjectSerializer.serialize(view, "string", ""), - "" - ); + requestContext.setQueryParam("view", ObjectSerializer.serialize(view, "string", ""), ""); } if (startMonth !== undefined) { - requestContext.setQueryParam( - "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_month", ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); } if (endMonth !== undefined) { - requestContext.setQueryParam( - "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_month", ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); } if (startDate !== undefined) { - requestContext.setQueryParam( - "start_date", - ObjectSerializer.serialize(startDate, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_date", ObjectSerializer.serialize(startDate, "Date", "date-time"), ""); } if (endDate !== undefined) { - requestContext.setQueryParam( - "end_date", - ObjectSerializer.serialize(endDate, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_date", ObjectSerializer.serialize(endDate, "Date", "date-time"), ""); } if (includeConnectedAccounts !== undefined) { - requestContext.setQueryParam( - "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getHistoricalCostByOrg( - startMonth: Date, - view?: string, - endMonth?: Date, - includeConnectedAccounts?: boolean, - _options?: Configuration - ): Promise { + public async getHistoricalCostByOrg(startMonth: Date,view?: string,endMonth?: Date,includeConnectedAccounts?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startMonth' is not null or undefined if (startMonth === null || startMonth === undefined) { - throw new RequiredError("startMonth", "getHistoricalCostByOrg"); + throw new RequiredError('startMonth', 'getHistoricalCostByOrg'); } // Path Params - const localVarPath = "/api/v2/usage/historical_cost"; + const localVarPath = '/api/v2/usage/historical_cost'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getHistoricalCostByOrg") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getHistoricalCostByOrg').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (view !== undefined) { - requestContext.setQueryParam( - "view", - ObjectSerializer.serialize(view, "string", ""), - "" - ); + requestContext.setQueryParam("view", ObjectSerializer.serialize(view, "string", ""), ""); } if (startMonth !== undefined) { - requestContext.setQueryParam( - "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_month", ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); } if (endMonth !== undefined) { - requestContext.setQueryParam( - "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_month", ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); } if (includeConnectedAccounts !== undefined) { - requestContext.setQueryParam( - "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getHourlyUsage( - filterTimestampStart: Date, - filterProductFamilies: string, - filterTimestampEnd?: Date, - filterIncludeDescendants?: boolean, - filterIncludeConnectedAccounts?: boolean, - filterIncludeBreakdown?: boolean, - filterVersions?: string, - pageLimit?: number, - pageNextRecordId?: string, - _options?: Configuration - ): Promise { + public async getHourlyUsage(filterTimestampStart: Date,filterProductFamilies: string,filterTimestampEnd?: Date,filterIncludeDescendants?: boolean,filterIncludeConnectedAccounts?: boolean,filterIncludeBreakdown?: boolean,filterVersions?: string,pageLimit?: number,pageNextRecordId?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'filterTimestampStart' is not null or undefined if (filterTimestampStart === null || filterTimestampStart === undefined) { - throw new RequiredError("filterTimestampStart", "getHourlyUsage"); + throw new RequiredError('filterTimestampStart', 'getHourlyUsage'); } // verify required parameter 'filterProductFamilies' is not null or undefined if (filterProductFamilies === null || filterProductFamilies === undefined) { - throw new RequiredError("filterProductFamilies", "getHourlyUsage"); + throw new RequiredError('filterProductFamilies', 'getHourlyUsage'); } // Path Params - const localVarPath = "/api/v2/usage/hourly_usage"; + const localVarPath = '/api/v2/usage/hourly_usage'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getHourlyUsage") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getHourlyUsage').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (filterTimestampStart !== undefined) { - requestContext.setQueryParam( - "filter[timestamp][start]", - ObjectSerializer.serialize(filterTimestampStart, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[timestamp][start]", ObjectSerializer.serialize(filterTimestampStart, "Date", "date-time"), ""); } if (filterTimestampEnd !== undefined) { - requestContext.setQueryParam( - "filter[timestamp][end]", - ObjectSerializer.serialize(filterTimestampEnd, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("filter[timestamp][end]", ObjectSerializer.serialize(filterTimestampEnd, "Date", "date-time"), ""); } if (filterProductFamilies !== undefined) { - requestContext.setQueryParam( - "filter[product_families]", - ObjectSerializer.serialize(filterProductFamilies, "string", ""), - "" - ); + requestContext.setQueryParam("filter[product_families]", ObjectSerializer.serialize(filterProductFamilies, "string", ""), ""); } if (filterIncludeDescendants !== undefined) { - requestContext.setQueryParam( - "filter[include_descendants]", - ObjectSerializer.serialize(filterIncludeDescendants, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[include_descendants]", ObjectSerializer.serialize(filterIncludeDescendants, "boolean", ""), ""); } if (filterIncludeConnectedAccounts !== undefined) { - requestContext.setQueryParam( - "filter[include_connected_accounts]", - ObjectSerializer.serialize( - filterIncludeConnectedAccounts, - "boolean", - "" - ), - "" - ); + requestContext.setQueryParam("filter[include_connected_accounts]", ObjectSerializer.serialize(filterIncludeConnectedAccounts, "boolean", ""), ""); } if (filterIncludeBreakdown !== undefined) { - requestContext.setQueryParam( - "filter[include_breakdown]", - ObjectSerializer.serialize(filterIncludeBreakdown, "boolean", ""), - "" - ); + requestContext.setQueryParam("filter[include_breakdown]", ObjectSerializer.serialize(filterIncludeBreakdown, "boolean", ""), ""); } if (filterVersions !== undefined) { - requestContext.setQueryParam( - "filter[versions]", - ObjectSerializer.serialize(filterVersions, "string", ""), - "" - ); + requestContext.setQueryParam("filter[versions]", ObjectSerializer.serialize(filterVersions, "string", ""), ""); } if (pageLimit !== undefined) { - requestContext.setQueryParam( - "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32"), - "" - ); + requestContext.setQueryParam("page[limit]", ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); } if (pageNextRecordId !== undefined) { - requestContext.setQueryParam( - "page[next_record_id]", - ObjectSerializer.serialize(pageNextRecordId, "string", ""), - "" - ); + requestContext.setQueryParam("page[next_record_id]", ObjectSerializer.serialize(pageNextRecordId, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getMonthlyCostAttribution( - startMonth: Date, - fields: string, - endMonth?: Date, - sortDirection?: SortDirection, - sortName?: string, - tagBreakdownKeys?: string, - nextRecordId?: string, - includeDescendants?: boolean, - _options?: Configuration - ): Promise { + public async getMonthlyCostAttribution(startMonth: Date,fields: string,endMonth?: Date,sortDirection?: SortDirection,sortName?: string,tagBreakdownKeys?: string,nextRecordId?: string,includeDescendants?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startMonth' is not null or undefined if (startMonth === null || startMonth === undefined) { - throw new RequiredError("startMonth", "getMonthlyCostAttribution"); + throw new RequiredError('startMonth', 'getMonthlyCostAttribution'); } // verify required parameter 'fields' is not null or undefined if (fields === null || fields === undefined) { - throw new RequiredError("fields", "getMonthlyCostAttribution"); + throw new RequiredError('fields', 'getMonthlyCostAttribution'); } // Path Params - const localVarPath = "/api/v2/cost_by_tag/monthly_cost_attribution"; + const localVarPath = '/api/v2/cost_by_tag/monthly_cost_attribution'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getMonthlyCostAttribution") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getMonthlyCostAttribution').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startMonth !== undefined) { - requestContext.setQueryParam( - "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_month", ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); } if (endMonth !== undefined) { - requestContext.setQueryParam( - "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_month", ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); } if (fields !== undefined) { - requestContext.setQueryParam( - "fields", - ObjectSerializer.serialize(fields, "string", ""), - "" - ); + requestContext.setQueryParam("fields", ObjectSerializer.serialize(fields, "string", ""), ""); } if (sortDirection !== undefined) { - requestContext.setQueryParam( - "sort_direction", - ObjectSerializer.serialize(sortDirection, "SortDirection", ""), - "" - ); + requestContext.setQueryParam("sort_direction", ObjectSerializer.serialize(sortDirection, "SortDirection", ""), ""); } if (sortName !== undefined) { - requestContext.setQueryParam( - "sort_name", - ObjectSerializer.serialize(sortName, "string", ""), - "" - ); + requestContext.setQueryParam("sort_name", ObjectSerializer.serialize(sortName, "string", ""), ""); } if (tagBreakdownKeys !== undefined) { - requestContext.setQueryParam( - "tag_breakdown_keys", - ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), - "" - ); + requestContext.setQueryParam("tag_breakdown_keys", ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), ""); } if (nextRecordId !== undefined) { - requestContext.setQueryParam( - "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", ""), - "" - ); + requestContext.setQueryParam("next_record_id", ObjectSerializer.serialize(nextRecordId, "string", ""), ""); } if (includeDescendants !== undefined) { - requestContext.setQueryParam( - "include_descendants", - ObjectSerializer.serialize(includeDescendants, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_descendants", ObjectSerializer.serialize(includeDescendants, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getProjectedCost( - view?: string, - includeConnectedAccounts?: boolean, - _options?: Configuration - ): Promise { + public async getProjectedCost(view?: string,includeConnectedAccounts?: boolean,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/usage/projected_cost"; + const localVarPath = '/api/v2/usage/projected_cost'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getProjectedCost") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getProjectedCost').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (view !== undefined) { - requestContext.setQueryParam( - "view", - ObjectSerializer.serialize(view, "string", ""), - "" - ); + requestContext.setQueryParam("view", ObjectSerializer.serialize(view, "string", ""), ""); } if (includeConnectedAccounts !== undefined) { - requestContext.setQueryParam( - "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), - "" - ); + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageApplicationSecurityMonitoring( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageApplicationSecurityMonitoring(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError( - "startHr", - "getUsageApplicationSecurityMonitoring" - ); + throw new RequiredError('startHr', 'getUsageApplicationSecurityMonitoring'); } // Path Params - const localVarPath = "/api/v2/usage/application_security"; + const localVarPath = '/api/v2/usage/application_security'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getUsageApplicationSecurityMonitoring") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getUsageApplicationSecurityMonitoring').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageLambdaTracedInvocations( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageLambdaTracedInvocations(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageLambdaTracedInvocations"); + throw new RequiredError('startHr', 'getUsageLambdaTracedInvocations'); } // Path Params - const localVarPath = "/api/v2/usage/lambda_traced_invocations"; + const localVarPath = '/api/v2/usage/lambda_traced_invocations'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getUsageLambdaTracedInvocations") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getUsageLambdaTracedInvocations').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUsageObservabilityPipelines( - startHr: Date, - endHr?: Date, - _options?: Configuration - ): Promise { + public async getUsageObservabilityPipelines(startHr: Date,endHr?: Date,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'startHr' is not null or undefined if (startHr === null || startHr === undefined) { - throw new RequiredError("startHr", "getUsageObservabilityPipelines"); + throw new RequiredError('startHr', 'getUsageObservabilityPipelines'); } // Path Params - const localVarPath = "/api/v2/usage/observability_pipelines"; + const localVarPath = '/api/v2/usage/observability_pipelines'; // Make Request Context - const requestContext = _config - .getServer("v2.UsageMeteringApi.getUsageObservabilityPipelines") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam( - "Accept", - "application/json;datetime-format=rfc3339" - ); + const requestContext = _config.getServer('v2.UsageMeteringApi.getUsageObservabilityPipelines').makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (startHr !== undefined) { - requestContext.setQueryParam( - "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("start_hr", ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); } if (endHr !== undefined) { - requestContext.setQueryParam( - "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time"), - "" - ); + requestContext.setQueryParam("end_hr", ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class UsageMeteringApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -730,29 +407,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getActiveBillingDimensions * @throws ApiException if the response code was not in [200, 299] */ - public async getActiveBillingDimensions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getActiveBillingDimensions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: ActiveBillingDimensionsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ActiveBillingDimensionsResponse" - ) as ActiveBillingDimensionsResponse; + const body: ActiveBillingDimensionsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ActiveBillingDimensionsResponse" + ) as ActiveBillingDimensionsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -761,30 +426,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ActiveBillingDimensionsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "ActiveBillingDimensionsResponse", - "" - ) as ActiveBillingDimensionsResponse; + const body: ActiveBillingDimensionsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ActiveBillingDimensionsResponse", "" + ) as ActiveBillingDimensionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -794,29 +451,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getBillingDimensionMapping * @throws ApiException if the response code was not in [200, 299] */ - public async getBillingDimensionMapping( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getBillingDimensionMapping(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: BillingDimensionsMappingResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BillingDimensionsMappingResponse" - ) as BillingDimensionsMappingResponse; + const body: BillingDimensionsMappingResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "BillingDimensionsMappingResponse" + ) as BillingDimensionsMappingResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -825,30 +470,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: BillingDimensionsMappingResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BillingDimensionsMappingResponse", - "" - ) as BillingDimensionsMappingResponse; + const body: BillingDimensionsMappingResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "BillingDimensionsMappingResponse", "" + ) as BillingDimensionsMappingResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -858,12 +495,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getCostByOrg * @throws ApiException if the response code was not in [200, 299] */ - public async getCostByOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getCostByOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CostByOrgResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -871,15 +504,8 @@ export class UsageMeteringApiResponseProcessor { ) as CostByOrgResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -888,11 +514,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -900,17 +523,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CostByOrgResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CostByOrgResponse", - "" + "CostByOrgResponse", "" ) as CostByOrgResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -920,12 +539,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getEstimatedCostByOrg * @throws ApiException if the response code was not in [200, 299] */ - public async getEstimatedCostByOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getEstimatedCostByOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CostByOrgResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -933,15 +548,8 @@ export class UsageMeteringApiResponseProcessor { ) as CostByOrgResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -950,11 +558,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -962,17 +567,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CostByOrgResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CostByOrgResponse", - "" + "CostByOrgResponse", "" ) as CostByOrgResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -982,12 +583,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getHistoricalCostByOrg * @throws ApiException if the response code was not in [200, 299] */ - public async getHistoricalCostByOrg( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getHistoricalCostByOrg(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: CostByOrgResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -995,15 +592,8 @@ export class UsageMeteringApiResponseProcessor { ) as CostByOrgResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1012,11 +602,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1024,17 +611,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CostByOrgResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CostByOrgResponse", - "" + "CostByOrgResponse", "" ) as CostByOrgResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1044,12 +627,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getHourlyUsage * @throws ApiException if the response code was not in [200, 299] */ - public async getHourlyUsage( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getHourlyUsage(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: HourlyUsageResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1057,15 +636,8 @@ export class UsageMeteringApiResponseProcessor { ) as HourlyUsageResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1074,11 +646,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1086,17 +655,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: HourlyUsageResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "HourlyUsageResponse", - "" + "HourlyUsageResponse", "" ) as HourlyUsageResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1106,12 +671,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getMonthlyCostAttribution * @throws ApiException if the response code was not in [200, 299] */ - public async getMonthlyCostAttribution( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getMonthlyCostAttribution(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: MonthlyCostAttributionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1119,15 +680,8 @@ export class UsageMeteringApiResponseProcessor { ) as MonthlyCostAttributionResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1136,11 +690,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1148,17 +699,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: MonthlyCostAttributionResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "MonthlyCostAttributionResponse", - "" + "MonthlyCostAttributionResponse", "" ) as MonthlyCostAttributionResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1168,12 +715,8 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getProjectedCost * @throws ApiException if the response code was not in [200, 299] */ - public async getProjectedCost( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getProjectedCost(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: ProjectedCostResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -1181,15 +724,8 @@ export class UsageMeteringApiResponseProcessor { ) as ProjectedCostResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1198,11 +734,8 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -1210,17 +743,13 @@ export class UsageMeteringApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: ProjectedCostResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectedCostResponse", - "" + "ProjectedCostResponse", "" ) as ProjectedCostResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1230,29 +759,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageApplicationSecurityMonitoring * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageApplicationSecurityMonitoring( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageApplicationSecurityMonitoring(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageApplicationSecurityMonitoringResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageApplicationSecurityMonitoringResponse" - ) as UsageApplicationSecurityMonitoringResponse; + const body: UsageApplicationSecurityMonitoringResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageApplicationSecurityMonitoringResponse" + ) as UsageApplicationSecurityMonitoringResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1261,30 +778,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageApplicationSecurityMonitoringResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageApplicationSecurityMonitoringResponse", - "" - ) as UsageApplicationSecurityMonitoringResponse; + const body: UsageApplicationSecurityMonitoringResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageApplicationSecurityMonitoringResponse", "" + ) as UsageApplicationSecurityMonitoringResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1294,29 +803,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageLambdaTracedInvocations * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageLambdaTracedInvocations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageLambdaTracedInvocations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageLambdaTracedInvocationsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageLambdaTracedInvocationsResponse" - ) as UsageLambdaTracedInvocationsResponse; + const body: UsageLambdaTracedInvocationsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageLambdaTracedInvocationsResponse" + ) as UsageLambdaTracedInvocationsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1325,30 +822,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageLambdaTracedInvocationsResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageLambdaTracedInvocationsResponse", - "" - ) as UsageLambdaTracedInvocationsResponse; + const body: UsageLambdaTracedInvocationsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageLambdaTracedInvocationsResponse", "" + ) as UsageLambdaTracedInvocationsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -1358,29 +847,17 @@ export class UsageMeteringApiResponseProcessor { * @params response Response returned by the server for a request to getUsageObservabilityPipelines * @throws ApiException if the response code was not in [200, 299] */ - public async getUsageObservabilityPipelines( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUsageObservabilityPipelines(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: UsageObservabilityPipelinesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageObservabilityPipelinesResponse" - ) as UsageObservabilityPipelinesResponse; + const body: UsageObservabilityPipelinesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageObservabilityPipelinesResponse" + ) as UsageObservabilityPipelinesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -1389,30 +866,22 @@ export class UsageMeteringApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: UsageObservabilityPipelinesResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "UsageObservabilityPipelinesResponse", - "" - ) as UsageObservabilityPipelinesResponse; + const body: UsageObservabilityPipelinesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "UsageObservabilityPipelinesResponse", "" + ) as UsageObservabilityPipelinesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -1421,12 +890,12 @@ export interface UsageMeteringApiGetBillingDimensionMappingRequest { * Datetime in ISO-8601 format, UTC, and for mappings beginning this month. Defaults to the current month. * @type Date */ - filterMonth?: Date; + filterMonth?: Date /** * String to specify whether to retrieve active billing dimension mappings for the contract or for all available mappings. Allowed views have the string `active` or `all`. Defaults to `active`. * @type string */ - filterView?: string; + filterView?: string } export interface UsageMeteringApiGetCostByOrgRequest { @@ -1434,12 +903,12 @@ export interface UsageMeteringApiGetCostByOrgRequest { * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost beginning this month. * @type Date */ - startMonth: Date; + startMonth: Date /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month. * @type Date */ - endMonth?: Date; + endMonth?: Date } export interface UsageMeteringApiGetEstimatedCostByOrgRequest { @@ -1447,32 +916,32 @@ export interface UsageMeteringApiGetEstimatedCostByOrgRequest { * String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are `summary` and `sub-org`. Defaults to `summary`. * @type string */ - view?: string; + view?: string /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost beginning this month. **Either start_month or start_date should be specified, but not both.** (start_month cannot go beyond two months in the past). Provide an `end_month` to view month-over-month cost. * @type Date */ - startMonth?: Date; + startMonth?: Date /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month. * @type Date */ - endMonth?: Date; + endMonth?: Date /** * Datetime in ISO-8601 format, UTC, precise to day: `[YYYY-MM-DD]` for cost beginning this day. **Either start_month or start_date should be specified, but not both.** (start_date cannot go beyond two months in the past). Provide an `end_date` to view day-over-day cumulative cost. * @type Date */ - startDate?: Date; + startDate?: Date /** * Datetime in ISO-8601 format, UTC, precise to day: `[YYYY-MM-DD]` for cost ending this day. * @type Date */ - endDate?: Date; + endDate?: Date /** - * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. + * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. * @type boolean */ - includeConnectedAccounts?: boolean; + includeConnectedAccounts?: boolean } export interface UsageMeteringApiGetHistoricalCostByOrgRequest { @@ -1480,22 +949,22 @@ export interface UsageMeteringApiGetHistoricalCostByOrgRequest { * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost beginning this month. * @type Date */ - startMonth: Date; + startMonth: Date /** * String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are `summary` and `sub-org`. Defaults to `summary`. * @type string */ - view?: string; + view?: string /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month. * @type Date */ - endMonth?: Date; + endMonth?: Date /** - * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. + * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. * @type boolean */ - includeConnectedAccounts?: boolean; + includeConnectedAccounts?: boolean } export interface UsageMeteringApiGetHourlyUsageRequest { @@ -1503,7 +972,7 @@ export interface UsageMeteringApiGetHourlyUsageRequest { * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. * @type Date */ - filterTimestampStart: Date; + filterTimestampStart: Date /** * Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, * `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cloud_siem`, @@ -1516,44 +985,44 @@ export interface UsageMeteringApiGetHourlyUsageRequest { * The following product family has been **deprecated**: `audit_logs`. * @type string */ - filterProductFamilies: string; + filterProductFamilies: string /** * Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. * @type Date */ - filterTimestampEnd?: Date; + filterTimestampEnd?: Date /** * Include child org usage in the response. Defaults to false. * @type boolean */ - filterIncludeDescendants?: boolean; + filterIncludeDescendants?: boolean /** * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to false. * @type boolean */ - filterIncludeConnectedAccounts?: boolean; + filterIncludeConnectedAccounts?: boolean /** * Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false. * @type boolean */ - filterIncludeBreakdown?: boolean; + filterIncludeBreakdown?: boolean /** * Comma separated list of product family versions to use in the format `product_family:version`. For example, * `infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested * product family. Currently all families have one version `1.0.0`. * @type string */ - filterVersions?: string; + filterVersions?: string /** * Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified. * @type number */ - pageLimit?: number; + pageLimit?: number /** * List following results with a next_record_id provided in the previous query. * @type string */ - pageNextRecordId?: string; + pageNextRecordId?: string } export interface UsageMeteringApiGetMonthlyCostAttributionRequest { @@ -1561,7 +1030,7 @@ export interface UsageMeteringApiGetMonthlyCostAttributionRequest { * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost beginning in this month. * @type Date */ - startMonth: Date; + startMonth: Date /** * Comma-separated list specifying cost types (e.g., `_on_demand_cost`, `_committed_cost`, `_total_cost`) and the * proportions (`_percentage_in_org`, `_percentage_in_account`). Use `*` to retrieve all fields. @@ -1570,38 +1039,38 @@ export interface UsageMeteringApiGetMonthlyCostAttributionRequest { * `` in the field names, make a request to the [Get active billing dimensions API](https://docs.datadoghq.com/api/latest/usage-metering/#get-active-billing-dimensions-for-cost-attribution). * @type string */ - fields: string; + fields: string /** * Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month. * @type Date */ - endMonth?: Date; + endMonth?: Date /** * The direction to sort by: `[desc, asc]`. * @type SortDirection */ - sortDirection?: SortDirection; + sortDirection?: SortDirection /** * The billing dimension to sort by. Always sorted by total cost. Example: `infra_host`. * @type string */ - sortName?: string; + sortName?: string /** * Comma separated list of tag keys used to group cost. If no value is provided the cost will not be broken down by tags. * To see which tags are available, look for the value of `tag_config_source` in the API response. * @type string */ - tagBreakdownKeys?: string; + tagBreakdownKeys?: string /** * List following results with a next_record_id provided in the previous query. * @type string */ - nextRecordId?: string; + nextRecordId?: string /** * Include child org cost in the response. Defaults to `true`. * @type boolean */ - includeDescendants?: boolean; + includeDescendants?: boolean } export interface UsageMeteringApiGetProjectedCostRequest { @@ -1609,12 +1078,12 @@ export interface UsageMeteringApiGetProjectedCostRequest { * String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are `summary` and `sub-org`. Defaults to `summary`. * @type string */ - view?: string; + view?: string /** - * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. + * Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`. * @type boolean */ - includeConnectedAccounts?: boolean; + includeConnectedAccounts?: boolean } export interface UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest { @@ -1622,13 +1091,13 @@ export interface UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageLambdaTracedInvocationsRequest { @@ -1636,13 +1105,13 @@ export interface UsageMeteringApiGetUsageLambdaTracedInvocationsRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export interface UsageMeteringApiGetUsageObservabilityPipelinesRequest { @@ -1650,13 +1119,13 @@ export interface UsageMeteringApiGetUsageObservabilityPipelinesRequest { * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. * @type Date */ - startHr: Date; + startHr: Date /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending * **before** this hour. * @type Date */ - endHr?: Date; + endHr?: Date } export class UsageMeteringApi { @@ -1664,34 +1133,21 @@ export class UsageMeteringApi { private responseProcessor: UsageMeteringApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: UsageMeteringApiRequestFactory, - responseProcessor?: UsageMeteringApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: UsageMeteringApiRequestFactory, responseProcessor?: UsageMeteringApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new UsageMeteringApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new UsageMeteringApiResponseProcessor(); + this.requestFactory = requestFactory || new UsageMeteringApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new UsageMeteringApiResponseProcessor(); } /** * Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 19th of the following month. * @param param The request object */ - public getActiveBillingDimensions( - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getActiveBillingDimensions(options); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getActiveBillingDimensions( - responseContext - ); + public getActiveBillingDimensions( options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getActiveBillingDimensions(options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getActiveBillingDimensions(responseContext); }); }); } @@ -1699,27 +1155,15 @@ export class UsageMeteringApi { /** * Get a mapping of billing dimensions to the corresponding keys for the supported usage metering public API endpoints. * Mapping data is updated on a monthly cadence. - * + * * This endpoint is only accessible to [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getBillingDimensionMapping( - param: UsageMeteringApiGetBillingDimensionMappingRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getBillingDimensionMapping( - param.filterMonth, - param.filterView, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getBillingDimensionMapping( - responseContext - ); + public getBillingDimensionMapping(param: UsageMeteringApiGetBillingDimensionMappingRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getBillingDimensionMapping(param.filterMonth,param.filterView,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getBillingDimensionMapping(responseContext); }); }); } @@ -1730,24 +1174,15 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Please use the new endpoint * [`/historical_cost`](https://docs.datadoghq.com/api/latest/usage-metering/#get-historical-cost-across-your-account) * instead. - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getCostByOrg( - param: UsageMeteringApiGetCostByOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getCostByOrg( - param.startMonth, - param.endMonth, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getCostByOrg(responseContext); + public getCostByOrg(param: UsageMeteringApiGetCostByOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getCostByOrg(param.startMonth,param.endMonth,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getCostByOrg(responseContext); }); }); } @@ -1757,28 +1192,15 @@ export class UsageMeteringApi { * Estimated cost data is only available for the current month and previous month * and is delayed by up to 72 hours from when it was incurred. * To access historical costs prior to this, use the `/historical_cost` endpoint. - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getEstimatedCostByOrg( - param: UsageMeteringApiGetEstimatedCostByOrgRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getEstimatedCostByOrg( - param.view, - param.startMonth, - param.endMonth, - param.startDate, - param.endDate, - param.includeConnectedAccounts, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getEstimatedCostByOrg(responseContext); + public getEstimatedCostByOrg(param: UsageMeteringApiGetEstimatedCostByOrgRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getEstimatedCostByOrg(param.view,param.startMonth,param.endMonth,param.startDate,param.endDate,param.includeConnectedAccounts,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getEstimatedCostByOrg(responseContext); }); }); } @@ -1786,26 +1208,15 @@ export class UsageMeteringApi { /** * Get historical cost across multi-org and single root-org accounts. * Cost data for a given month becomes available no later than the 16th of the following month. - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getHistoricalCostByOrg( - param: UsageMeteringApiGetHistoricalCostByOrgRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getHistoricalCostByOrg( - param.startMonth, - param.view, - param.endMonth, - param.includeConnectedAccounts, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getHistoricalCostByOrg(responseContext); + public getHistoricalCostByOrg(param: UsageMeteringApiGetHistoricalCostByOrgRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getHistoricalCostByOrg(param.startMonth,param.view,param.endMonth,param.includeConnectedAccounts,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getHistoricalCostByOrg(responseContext); }); }); } @@ -1814,27 +1225,11 @@ export class UsageMeteringApi { * Get hourly usage by product family. * @param param The request object */ - public getHourlyUsage( - param: UsageMeteringApiGetHourlyUsageRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getHourlyUsage( - param.filterTimestampStart, - param.filterProductFamilies, - param.filterTimestampEnd, - param.filterIncludeDescendants, - param.filterIncludeConnectedAccounts, - param.filterIncludeBreakdown, - param.filterVersions, - param.pageLimit, - param.pageNextRecordId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getHourlyUsage(responseContext); + public getHourlyUsage(param: UsageMeteringApiGetHourlyUsageRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getHourlyUsage(param.filterTimestampStart,param.filterProductFamilies,param.filterTimestampEnd,param.filterIncludeDescendants,param.filterIncludeConnectedAccounts,param.filterIncludeBreakdown,param.filterVersions,param.pageLimit,param.pageNextRecordId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getHourlyUsage(responseContext); }); }); } @@ -1854,32 +1249,15 @@ export class UsageMeteringApi { * cursor := response.metadata.pagination.next_record_id * END * ``` - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). This endpoint is not available in the Government (US1-FED) site. * @param param The request object */ - public getMonthlyCostAttribution( - param: UsageMeteringApiGetMonthlyCostAttributionRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getMonthlyCostAttribution( - param.startMonth, - param.fields, - param.endMonth, - param.sortDirection, - param.sortName, - param.tagBreakdownKeys, - param.nextRecordId, - param.includeDescendants, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getMonthlyCostAttribution( - responseContext - ); + public getMonthlyCostAttribution(param: UsageMeteringApiGetMonthlyCostAttributionRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getMonthlyCostAttribution(param.startMonth,param.fields,param.endMonth,param.sortDirection,param.sortName,param.tagBreakdownKeys,param.nextRecordId,param.includeDescendants,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getMonthlyCostAttribution(responseContext); }); }); } @@ -1887,24 +1265,15 @@ export class UsageMeteringApi { /** * Get projected cost across multi-org and single root-org accounts. * Projected cost data is only available for the current month and becomes available around the 12th of the month. - * + * * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). * @param param The request object */ - public getProjectedCost( - param: UsageMeteringApiGetProjectedCostRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getProjectedCost( - param.view, - param.includeConnectedAccounts, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getProjectedCost(responseContext); + public getProjectedCost(param: UsageMeteringApiGetProjectedCostRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getProjectedCost(param.view,param.includeConnectedAccounts,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getProjectedCost(responseContext); }); }); } @@ -1914,23 +1283,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family) * @param param The request object */ - public getUsageApplicationSecurityMonitoring( - param: UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getUsageApplicationSecurityMonitoring( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageApplicationSecurityMonitoring( - responseContext - ); + public getUsageApplicationSecurityMonitoring(param: UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageApplicationSecurityMonitoring(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageApplicationSecurityMonitoring(responseContext); }); }); } @@ -1940,23 +1297,11 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated.. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family) * @param param The request object */ - public getUsageLambdaTracedInvocations( - param: UsageMeteringApiGetUsageLambdaTracedInvocationsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getUsageLambdaTracedInvocations( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageLambdaTracedInvocations( - responseContext - ); + public getUsageLambdaTracedInvocations(param: UsageMeteringApiGetUsageLambdaTracedInvocationsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageLambdaTracedInvocations(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageLambdaTracedInvocations(responseContext); }); }); } @@ -1966,24 +1311,12 @@ export class UsageMeteringApi { * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family) * @param param The request object */ - public getUsageObservabilityPipelines( - param: UsageMeteringApiGetUsageObservabilityPipelinesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = - this.requestFactory.getUsageObservabilityPipelines( - param.startHr, - param.endHr, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUsageObservabilityPipelines( - responseContext - ); + public getUsageObservabilityPipelines(param: UsageMeteringApiGetUsageObservabilityPipelinesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUsageObservabilityPipelines(param.startHr,param.endHr,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUsageObservabilityPipelines(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/UsersApi.ts b/packages/datadog-api-client-v2/apis/UsersApi.ts index 02e0897a2e7b..c373c5c3a25c 100644 --- a/packages/datadog-api-client-v2/apis/UsersApi.ts +++ b/packages/datadog-api-client-v2/apis/UsersApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { PermissionsResponse } from "../models/PermissionsResponse"; import { QuerySortOrder } from "../models/QuerySortOrder"; @@ -29,31 +27,26 @@ import { UsersResponse } from "../models/UsersResponse"; import { UserUpdateRequest } from "../models/UserUpdateRequest"; export class UsersApiRequestFactory extends BaseAPIRequestFactory { - public async createUser( - body: UserCreateRequest, - _options?: Configuration - ): Promise { + + public async createUser(body: UserCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createUser"); + throw new RequiredError('body', 'createUser'); } // Path Params - const localVarPath = "/api/v2/users"; + const localVarPath = '/api/v2/users'; // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.createUser") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.UsersApi.createUser').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UserCreateRequest", ""), @@ -62,286 +55,182 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async disableUser( - userId: string, - _options?: Configuration - ): Promise { + public async disableUser(userId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "disableUser"); + throw new RequiredError('userId', 'disableUser'); } // Path Params - const localVarPath = "/api/v2/users/{user_id}".replace( - "{user_id}", - encodeURIComponent(String(userId)) - ); + const localVarPath = '/api/v2/users/{user_id}' + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.disableUser") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.UsersApi.disableUser').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getInvitation( - userInvitationUuid: string, - _options?: Configuration - ): Promise { + public async getInvitation(userInvitationUuid: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userInvitationUuid' is not null or undefined if (userInvitationUuid === null || userInvitationUuid === undefined) { - throw new RequiredError("userInvitationUuid", "getInvitation"); + throw new RequiredError('userInvitationUuid', 'getInvitation'); } // Path Params - const localVarPath = - "/api/v2/user_invitations/{user_invitation_uuid}".replace( - "{user_invitation_uuid}", - encodeURIComponent(String(userInvitationUuid)) - ); + const localVarPath = '/api/v2/user_invitations/{user_invitation_uuid}' + .replace('{user_invitation_uuid}', encodeURIComponent(String(userInvitationUuid))); // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.getInvitation") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.UsersApi.getInvitation').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getUser( - userId: string, - _options?: Configuration - ): Promise { + public async getUser(userId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "getUser"); + throw new RequiredError('userId', 'getUser'); } // Path Params - const localVarPath = "/api/v2/users/{user_id}".replace( - "{user_id}", - encodeURIComponent(String(userId)) - ); + const localVarPath = '/api/v2/users/{user_id}' + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.getUser") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.UsersApi.getUser').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listUserOrganizations( - userId: string, - _options?: Configuration - ): Promise { + public async listUserOrganizations(userId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "listUserOrganizations"); + throw new RequiredError('userId', 'listUserOrganizations'); } // Path Params - const localVarPath = "/api/v2/users/{user_id}/orgs".replace( - "{user_id}", - encodeURIComponent(String(userId)) - ); + const localVarPath = '/api/v2/users/{user_id}/orgs' + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.listUserOrganizations") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.UsersApi.listUserOrganizations').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listUserPermissions( - userId: string, - _options?: Configuration - ): Promise { + public async listUserPermissions(userId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "listUserPermissions"); + throw new RequiredError('userId', 'listUserPermissions'); } // Path Params - const localVarPath = "/api/v2/users/{user_id}/permissions".replace( - "{user_id}", - encodeURIComponent(String(userId)) - ); + const localVarPath = '/api/v2/users/{user_id}/permissions' + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.listUserPermissions") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.UsersApi.listUserPermissions').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listUsers( - pageSize?: number, - pageNumber?: number, - sort?: string, - sortDir?: QuerySortOrder, - filter?: string, - filterStatus?: string, - _options?: Configuration - ): Promise { + public async listUsers(pageSize?: number,pageNumber?: number,sort?: string,sortDir?: QuerySortOrder,filter?: string,filterStatus?: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // Path Params - const localVarPath = "/api/v2/users"; + const localVarPath = '/api/v2/users'; // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.listUsers") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.UsersApi.listUsers').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } if (sort !== undefined) { - requestContext.setQueryParam( - "sort", - ObjectSerializer.serialize(sort, "string", ""), - "" - ); + requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "string", ""), ""); } if (sortDir !== undefined) { - requestContext.setQueryParam( - "sort_dir", - ObjectSerializer.serialize(sortDir, "QuerySortOrder", ""), - "" - ); + requestContext.setQueryParam("sort_dir", ObjectSerializer.serialize(sortDir, "QuerySortOrder", ""), ""); } if (filter !== undefined) { - requestContext.setQueryParam( - "filter", - ObjectSerializer.serialize(filter, "string", ""), - "" - ); + requestContext.setQueryParam("filter", ObjectSerializer.serialize(filter, "string", ""), ""); } if (filterStatus !== undefined) { - requestContext.setQueryParam( - "filter[status]", - ObjectSerializer.serialize(filterStatus, "string", ""), - "" - ); + requestContext.setQueryParam("filter[status]", ObjectSerializer.serialize(filterStatus, "string", ""), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async sendInvitations( - body: UserInvitationsRequest, - _options?: Configuration - ): Promise { + public async sendInvitations(body: UserInvitationsRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "sendInvitations"); + throw new RequiredError('body', 'sendInvitations'); } // Path Params - const localVarPath = "/api/v2/user_invitations"; + const localVarPath = '/api/v2/user_invitations'; // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.sendInvitations") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.UsersApi.sendInvitations').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UserInvitationsRequest", ""), @@ -350,49 +239,36 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateUser( - userId: string, - body: UserUpdateRequest, - _options?: Configuration - ): Promise { + public async updateUser(userId: string,body: UserUpdateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'userId' is not null or undefined if (userId === null || userId === undefined) { - throw new RequiredError("userId", "updateUser"); + throw new RequiredError('userId', 'updateUser'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateUser"); + throw new RequiredError('body', 'updateUser'); } // Path Params - const localVarPath = "/api/v2/users/{user_id}".replace( - "{user_id}", - encodeURIComponent(String(userId)) - ); + const localVarPath = '/api/v2/users/{user_id}' + .replace('{user_id}', encodeURIComponent(String(userId))); // Make Request Context - const requestContext = _config - .getServer("v2.UsersApi.updateUser") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.UsersApi.updateUser').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UserUpdateRequest", ""), @@ -401,17 +277,14 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class UsersApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -419,10 +292,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to createUser * @throws ApiException if the response code was not in [200, 299] */ - public async createUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -430,15 +301,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -447,11 +311,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -459,17 +320,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -479,22 +336,13 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to disableUser * @throws ApiException if the response code was not in [200, 299] */ - public async disableUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async disableUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -503,11 +351,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -515,17 +360,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -535,12 +376,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to getInvitation * @throws ApiException if the response code was not in [200, 299] */ - public async getInvitation( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getInvitation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserInvitationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -548,15 +385,8 @@ export class UsersApiResponseProcessor { ) as UserInvitationResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -565,11 +395,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -577,17 +404,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserInvitationResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserInvitationResponse", - "" + "UserInvitationResponse", "" ) as UserInvitationResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -597,10 +420,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to getUser * @throws ApiException if the response code was not in [200, 299] */ - public async getUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -608,15 +429,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -625,11 +439,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -637,17 +448,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -657,12 +464,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to listUserOrganizations * @throws ApiException if the response code was not in [200, 299] */ - public async listUserOrganizations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listUserOrganizations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -670,15 +473,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -687,11 +483,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -699,17 +492,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -719,12 +508,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to listUserPermissions * @throws ApiException if the response code was not in [200, 299] */ - public async listUserPermissions( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listUserPermissions(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -732,15 +517,8 @@ export class UsersApiResponseProcessor { ) as PermissionsResponse; return body; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -749,11 +527,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -761,17 +536,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: PermissionsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "PermissionsResponse", - "" + "PermissionsResponse", "" ) as PermissionsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -781,10 +552,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to listUsers * @throws ApiException if the response code was not in [200, 299] */ - public async listUsers(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listUsers(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -792,15 +561,8 @@ export class UsersApiResponseProcessor { ) as UsersResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -809,11 +571,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -821,17 +580,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UsersResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UsersResponse", - "" + "UsersResponse", "" ) as UsersResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -841,12 +596,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to sendInvitations * @throws ApiException if the response code was not in [200, 299] */ - public async sendInvitations( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async sendInvitations(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: UserInvitationsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -854,15 +605,8 @@ export class UsersApiResponseProcessor { ) as UserInvitationsResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -871,11 +615,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -883,17 +624,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserInvitationsResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserInvitationsResponse", - "" + "UserInvitationsResponse", "" ) as UserInvitationsResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -903,10 +640,8 @@ export class UsersApiResponseProcessor { * @params response Response returned by the server for a request to updateUser * @throws ApiException if the response code was not in [200, 299] */ - public async updateUser(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateUser(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -914,17 +649,8 @@ export class UsersApiResponseProcessor { ) as UserResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 422 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 422||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -933,11 +659,8 @@ export class UsersApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -945,17 +668,13 @@ export class UsersApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UserResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UserResponse", - "" + "UserResponse", "" ) as UserResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -963,7 +682,7 @@ export interface UsersApiCreateUserRequest { /** * @type UserCreateRequest */ - body: UserCreateRequest; + body: UserCreateRequest } export interface UsersApiDisableUserRequest { @@ -971,7 +690,7 @@ export interface UsersApiDisableUserRequest { * The ID of the user. * @type string */ - userId: string; + userId: string } export interface UsersApiGetInvitationRequest { @@ -979,7 +698,7 @@ export interface UsersApiGetInvitationRequest { * The UUID of the user invitation. * @type string */ - userInvitationUuid: string; + userInvitationUuid: string } export interface UsersApiGetUserRequest { @@ -987,7 +706,7 @@ export interface UsersApiGetUserRequest { * The ID of the user. * @type string */ - userId: string; + userId: string } export interface UsersApiListUserOrganizationsRequest { @@ -995,7 +714,7 @@ export interface UsersApiListUserOrganizationsRequest { * The ID of the user. * @type string */ - userId: string; + userId: string } export interface UsersApiListUserPermissionsRequest { @@ -1003,7 +722,7 @@ export interface UsersApiListUserPermissionsRequest { * The ID of the user. * @type string */ - userId: string; + userId: string } export interface UsersApiListUsersRequest { @@ -1011,12 +730,12 @@ export interface UsersApiListUsersRequest { * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number /** * User attribute to order results by. Sort order is ascending by default. * Sort order is descending if the field @@ -1024,31 +743,31 @@ export interface UsersApiListUsersRequest { * `modified_at`, `user_count`. * @type string */ - sort?: string; + sort?: string /** * Direction of sort. Options: `asc`, `desc`. * @type QuerySortOrder */ - sortDir?: QuerySortOrder; + sortDir?: QuerySortOrder /** * Filter all users by the given string. Defaults to no filtering. * @type string */ - filter?: string; + filter?: string /** * Filter on status attribute. * Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. * Defaults to no filtering. * @type string */ - filterStatus?: string; + filterStatus?: string } export interface UsersApiSendInvitationsRequest { /** * @type UserInvitationsRequest */ - body: UserInvitationsRequest; + body: UserInvitationsRequest } export interface UsersApiUpdateUserRequest { @@ -1056,11 +775,11 @@ export interface UsersApiUpdateUserRequest { * The ID of the user. * @type string */ - userId: string; + userId: string /** * @type UserUpdateRequest */ - body: UserUpdateRequest; + body: UserUpdateRequest } export class UsersApi { @@ -1068,35 +787,21 @@ export class UsersApi { private responseProcessor: UsersApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: UsersApiRequestFactory, - responseProcessor?: UsersApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: UsersApiRequestFactory, responseProcessor?: UsersApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new UsersApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new UsersApiResponseProcessor(); + this.requestFactory = requestFactory || new UsersApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new UsersApiResponseProcessor(); } /** * Create a user for your organization. * @param param The request object */ - public createUser( - param: UsersApiCreateUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createUser( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createUser(responseContext); + public createUser(param: UsersApiCreateUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createUser(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createUser(responseContext); }); }); } @@ -1106,19 +811,11 @@ export class UsersApi { * to an administrator user. * @param param The request object */ - public disableUser( - param: UsersApiDisableUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.disableUser( - param.userId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.disableUser(responseContext); + public disableUser(param: UsersApiDisableUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.disableUser(param.userId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.disableUser(responseContext); }); }); } @@ -1127,19 +824,11 @@ export class UsersApi { * Returns a single user invitation by its UUID. * @param param The request object */ - public getInvitation( - param: UsersApiGetInvitationRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getInvitation( - param.userInvitationUuid, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getInvitation(responseContext); + public getInvitation(param: UsersApiGetInvitationRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getInvitation(param.userInvitationUuid,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getInvitation(responseContext); }); }); } @@ -1148,19 +837,11 @@ export class UsersApi { * Get a user in the organization specified by the user’s `user_id`. * @param param The request object */ - public getUser( - param: UsersApiGetUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getUser( - param.userId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getUser(responseContext); + public getUser(param: UsersApiGetUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getUser(param.userId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getUser(responseContext); }); }); } @@ -1170,19 +851,11 @@ export class UsersApi { * joined by this user. * @param param The request object */ - public listUserOrganizations( - param: UsersApiListUserOrganizationsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listUserOrganizations( - param.userId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listUserOrganizations(responseContext); + public listUserOrganizations(param: UsersApiListUserOrganizationsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listUserOrganizations(param.userId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listUserOrganizations(responseContext); }); }); } @@ -1192,19 +865,11 @@ export class UsersApi { * granted by the associated user's roles. * @param param The request object */ - public listUserPermissions( - param: UsersApiListUserPermissionsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listUserPermissions( - param.userId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listUserPermissions(responseContext); + public listUserPermissions(param: UsersApiListUserPermissionsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listUserPermissions(param.userId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listUserPermissions(responseContext); }); }); } @@ -1214,24 +879,11 @@ export class UsersApi { * all users even if they are deactivated or unverified. * @param param The request object */ - public listUsers( - param: UsersApiListUsersRequest = {}, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listUsers( - param.pageSize, - param.pageNumber, - param.sort, - param.sortDir, - param.filter, - param.filterStatus, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listUsers(responseContext); + public listUsers(param: UsersApiListUsersRequest = {}, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listUsers(param.pageSize,param.pageNumber,param.sort,param.sortDir,param.filter,param.filterStatus,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listUsers(responseContext); }); }); } @@ -1239,10 +891,8 @@ export class UsersApi { /** * Provide a paginated version of listUsers returning a generator with all the items. */ - public async *listUsersWithPagination( - param: UsersApiListUsersRequest = {}, - options?: Configuration - ): AsyncGenerator { + public async *listUsersWithPagination(param: UsersApiListUsersRequest = {}, options?: Configuration): AsyncGenerator { + let pageSize = 10; if (param.pageSize !== undefined) { pageSize = param.pageSize; @@ -1250,18 +900,8 @@ export class UsersApi { param.pageSize = pageSize; param.pageNumber = 0; while (true) { - const requestContext = await this.requestFactory.listUsers( - param.pageSize, - param.pageNumber, - param.sort, - param.sortDir, - param.filter, - param.filterStatus, - options - ); - const responseContext = await this.configuration.httpApi.send( - requestContext - ); + const requestContext = await this.requestFactory.listUsers(param.pageSize,param.pageNumber,param.sort,param.sortDir,param.filter,param.filterStatus,options); + const responseContext = await this.configuration.httpApi.send(requestContext); const response = await this.responseProcessor.listUsers(responseContext); const responseData = response.data; @@ -1283,19 +923,11 @@ export class UsersApi { * Sends emails to one or more users inviting them to join the organization. * @param param The request object */ - public sendInvitations( - param: UsersApiSendInvitationsRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.sendInvitations( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.sendInvitations(responseContext); + public sendInvitations(param: UsersApiSendInvitationsRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.sendInvitations(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.sendInvitations(responseContext); }); }); } @@ -1305,21 +937,12 @@ export class UsersApi { * to an administrator user. * @param param The request object */ - public updateUser( - param: UsersApiUpdateUserRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateUser( - param.userId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateUser(responseContext); + public updateUser(param: UsersApiUpdateUserRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateUser(param.userId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateUser(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts b/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts index 9533111d4650..64a0dd99ec51 100644 --- a/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts +++ b/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts @@ -1,21 +1,19 @@ -import { - BaseAPIRequestFactory, - RequiredError, -} from "../../datadog-api-client-common/baseapi"; -import { - Configuration, - applySecurityAuthentication, -} from "../../datadog-api-client-common/configuration"; +import { BaseAPIRequestFactory, RequiredError } from "../../datadog-api-client-common/baseapi"; +import { Configuration, applySecurityAuthentication} from "../../datadog-api-client-common/configuration"; import { RequestContext, HttpMethod, ResponseContext, -} from "../../datadog-api-client-common/http/http"; + HttpFile + } from "../../datadog-api-client-common/http/http"; + +import FormData from "form-data"; import { logger } from "../../../logger"; import { ObjectSerializer } from "../models/ObjectSerializer"; import { ApiException } from "../../datadog-api-client-common/exception"; + import { APIErrorResponse } from "../models/APIErrorResponse"; import { CreateWorkflowRequest } from "../models/CreateWorkflowRequest"; import { CreateWorkflowResponse } from "../models/CreateWorkflowResponse"; @@ -30,70 +28,55 @@ import { WorklflowCancelInstanceResponse } from "../models/WorklflowCancelInstan import { WorklflowGetInstanceResponse } from "../models/WorklflowGetInstanceResponse"; export class WorkflowAutomationApiRequestFactory extends BaseAPIRequestFactory { - public async cancelWorkflowInstance( - workflowId: string, - instanceId: string, - _options?: Configuration - ): Promise { + + public async cancelWorkflowInstance(workflowId: string,instanceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "cancelWorkflowInstance"); + throw new RequiredError('workflowId', 'cancelWorkflowInstance'); } // verify required parameter 'instanceId' is not null or undefined if (instanceId === null || instanceId === undefined) { - throw new RequiredError("instanceId", "cancelWorkflowInstance"); + throw new RequiredError('instanceId', 'cancelWorkflowInstance'); } // Path Params - const localVarPath = - "/api/v2/workflows/{workflow_id}/instances/{instance_id}/cancel" - .replace("{workflow_id}", encodeURIComponent(String(workflowId))) - .replace("{instance_id}", encodeURIComponent(String(instanceId))); + const localVarPath = '/api/v2/workflows/{workflow_id}/instances/{instance_id}/cancel' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))) + .replace('{instance_id}', encodeURIComponent(String(instanceId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.cancelWorkflowInstance") - .makeRequestContext(localVarPath, HttpMethod.PUT); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.cancelWorkflowInstance').makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createWorkflow( - body: CreateWorkflowRequest, - _options?: Configuration - ): Promise { + public async createWorkflow(body: CreateWorkflowRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createWorkflow"); + throw new RequiredError('body', 'createWorkflow'); } // Path Params - const localVarPath = "/api/v2/workflows"; + const localVarPath = '/api/v2/workflows'; // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.createWorkflow") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.createWorkflow').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "CreateWorkflowRequest", ""), @@ -102,48 +85,36 @@ export class WorkflowAutomationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async createWorkflowInstance( - workflowId: string, - body: WorkflowInstanceCreateRequest, - _options?: Configuration - ): Promise { + public async createWorkflowInstance(workflowId: string,body: WorkflowInstanceCreateRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "createWorkflowInstance"); + throw new RequiredError('workflowId', 'createWorkflowInstance'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "createWorkflowInstance"); + throw new RequiredError('body', 'createWorkflowInstance'); } // Path Params - const localVarPath = "/api/v2/workflows/{workflow_id}/instances".replace( - "{workflow_id}", - encodeURIComponent(String(workflowId)) - ); + const localVarPath = '/api/v2/workflows/{workflow_id}/instances' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.createWorkflowInstance") - .makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.createWorkflowInstance').makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "WorkflowInstanceCreateRequest", ""), @@ -152,207 +123,142 @@ export class WorkflowAutomationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async deleteWorkflow( - workflowId: string, - _options?: Configuration - ): Promise { + public async deleteWorkflow(workflowId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "deleteWorkflow"); + throw new RequiredError('workflowId', 'deleteWorkflow'); } // Path Params - const localVarPath = "/api/v2/workflows/{workflow_id}".replace( - "{workflow_id}", - encodeURIComponent(String(workflowId)) - ); + const localVarPath = '/api/v2/workflows/{workflow_id}' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.deleteWorkflow") - .makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.deleteWorkflow').makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "*/*"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getWorkflow( - workflowId: string, - _options?: Configuration - ): Promise { + public async getWorkflow(workflowId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "getWorkflow"); + throw new RequiredError('workflowId', 'getWorkflow'); } // Path Params - const localVarPath = "/api/v2/workflows/{workflow_id}".replace( - "{workflow_id}", - encodeURIComponent(String(workflowId)) - ); + const localVarPath = '/api/v2/workflows/{workflow_id}' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.getWorkflow") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.getWorkflow').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async getWorkflowInstance( - workflowId: string, - instanceId: string, - _options?: Configuration - ): Promise { + public async getWorkflowInstance(workflowId: string,instanceId: string,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "getWorkflowInstance"); + throw new RequiredError('workflowId', 'getWorkflowInstance'); } // verify required parameter 'instanceId' is not null or undefined if (instanceId === null || instanceId === undefined) { - throw new RequiredError("instanceId", "getWorkflowInstance"); + throw new RequiredError('instanceId', 'getWorkflowInstance'); } // Path Params - const localVarPath = - "/api/v2/workflows/{workflow_id}/instances/{instance_id}" - .replace("{workflow_id}", encodeURIComponent(String(workflowId))) - .replace("{instance_id}", encodeURIComponent(String(instanceId))); + const localVarPath = '/api/v2/workflows/{workflow_id}/instances/{instance_id}' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))) + .replace('{instance_id}', encodeURIComponent(String(instanceId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.getWorkflowInstance") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.getWorkflowInstance').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async listWorkflowInstances( - workflowId: string, - pageSize?: number, - pageNumber?: number, - _options?: Configuration - ): Promise { + public async listWorkflowInstances(workflowId: string,pageSize?: number,pageNumber?: number,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "listWorkflowInstances"); + throw new RequiredError('workflowId', 'listWorkflowInstances'); } // Path Params - const localVarPath = "/api/v2/workflows/{workflow_id}/instances".replace( - "{workflow_id}", - encodeURIComponent(String(workflowId)) - ); + const localVarPath = '/api/v2/workflows/{workflow_id}/instances' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.listWorkflowInstances") - .makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.listWorkflowInstances').makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Query Params if (pageSize !== undefined) { - requestContext.setQueryParam( - "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[size]", ObjectSerializer.serialize(pageSize, "number", "int64"), ""); } if (pageNumber !== undefined) { - requestContext.setQueryParam( - "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64"), - "" - ); + requestContext.setQueryParam("page[number]", ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); } // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "AuthZ", - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["AuthZ", "apiKeyAuth", "appKeyAuth"]); return requestContext; } - public async updateWorkflow( - workflowId: string, - body: UpdateWorkflowRequest, - _options?: Configuration - ): Promise { + public async updateWorkflow(workflowId: string,body: UpdateWorkflowRequest,_options?: Configuration): Promise { const _config = _options || this.configuration; // verify required parameter 'workflowId' is not null or undefined if (workflowId === null || workflowId === undefined) { - throw new RequiredError("workflowId", "updateWorkflow"); + throw new RequiredError('workflowId', 'updateWorkflow'); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("body", "updateWorkflow"); + throw new RequiredError('body', 'updateWorkflow'); } // Path Params - const localVarPath = "/api/v2/workflows/{workflow_id}".replace( - "{workflow_id}", - encodeURIComponent(String(workflowId)) - ); + const localVarPath = '/api/v2/workflows/{workflow_id}' + .replace('{workflow_id}', encodeURIComponent(String(workflowId))); // Make Request Context - const requestContext = _config - .getServer("v2.WorkflowAutomationApi.updateWorkflow") - .makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.getServer('v2.WorkflowAutomationApi.updateWorkflow').makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json"); requestContext.setHttpConfig(_config.httpConfig); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json", - ]); + "application/json"]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( ObjectSerializer.serialize(body, "UpdateWorkflowRequest", ""), @@ -361,16 +267,14 @@ export class WorkflowAutomationApiRequestFactory extends BaseAPIRequestFactory { requestContext.setBody(serializedBody); // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); + applySecurityAuthentication(_config, requestContext, ["apiKeyAuth", "appKeyAuth"]); return requestContext; } } export class WorkflowAutomationApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -378,30 +282,17 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to cancelWorkflowInstance * @throws ApiException if the response code was not in [200, 299] */ - public async cancelWorkflowInstance( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async cancelWorkflowInstance(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: WorklflowCancelInstanceResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WorklflowCancelInstanceResponse" - ) as WorklflowCancelInstanceResponse; + const body: WorklflowCancelInstanceResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WorklflowCancelInstanceResponse" + ) as WorklflowCancelInstanceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -410,30 +301,22 @@ export class WorkflowAutomationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: WorklflowCancelInstanceResponse = - ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "WorklflowCancelInstanceResponse", - "" - ) as WorklflowCancelInstanceResponse; + const body: WorklflowCancelInstanceResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "WorklflowCancelInstanceResponse", "" + ) as WorklflowCancelInstanceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -443,12 +326,8 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to createWorkflow * @throws ApiException if the response code was not in [200, 299] */ - public async createWorkflow( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createWorkflow(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 201) { const body: CreateWorkflowResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -456,15 +335,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as CreateWorkflowResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -473,32 +345,22 @@ export class WorkflowAutomationApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: CreateWorkflowResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CreateWorkflowResponse", - "" + "CreateWorkflowResponse", "" ) as CreateWorkflowResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -508,12 +370,8 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to createWorkflowInstance * @throws ApiException if the response code was not in [200, 299] */ - public async createWorkflowInstance( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async createWorkflowInstance(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: WorkflowInstanceCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -521,15 +379,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as WorkflowInstanceCreateResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -538,11 +389,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -550,17 +398,13 @@ export class WorkflowAutomationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: WorkflowInstanceCreateResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "WorkflowInstanceCreateResponse", - "" + "WorkflowInstanceCreateResponse", "" ) as WorkflowInstanceCreateResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -570,22 +414,13 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to deleteWorkflow * @throws ApiException if the response code was not in [200, 299] */ - public async deleteWorkflow(response: ResponseContext): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async deleteWorkflow(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 204) { return; } - if ( - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -594,32 +429,22 @@ export class WorkflowAutomationApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "void", - "" + "void", "" ) as void; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -629,12 +454,8 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to getWorkflow * @throws ApiException if the response code was not in [200, 299] */ - public async getWorkflow( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getWorkflow(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: GetWorkflowResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -642,16 +463,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as GetWorkflowResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -660,32 +473,22 @@ export class WorkflowAutomationApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: GetWorkflowResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "GetWorkflowResponse", - "" + "GetWorkflowResponse", "" ) as GetWorkflowResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -695,12 +498,8 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to getWorkflowInstance * @throws ApiException if the response code was not in [200, 299] */ - public async getWorkflowInstance( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async getWorkflowInstance(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: WorklflowGetInstanceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -708,16 +507,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as WorklflowGetInstanceResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -726,11 +517,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -738,17 +526,13 @@ export class WorkflowAutomationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: WorklflowGetInstanceResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "WorklflowGetInstanceResponse", - "" + "WorklflowGetInstanceResponse", "" ) as WorklflowGetInstanceResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -758,12 +542,8 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to listWorkflowInstances * @throws ApiException if the response code was not in [200, 299] */ - public async listWorkflowInstances( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async listWorkflowInstances(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: WorkflowListInstancesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -771,15 +551,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as WorkflowListInstancesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: APIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -788,11 +561,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as APIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } + throw new ApiException(response.httpStatusCode, bodyText); + } throw new ApiException(response.httpStatusCode, body); } @@ -800,17 +570,13 @@ export class WorkflowAutomationApiResponseProcessor { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: WorkflowListInstancesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "WorkflowListInstancesResponse", - "" + "WorkflowListInstancesResponse", "" ) as WorkflowListInstancesResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } /** @@ -820,12 +586,8 @@ export class WorkflowAutomationApiResponseProcessor { * @params response Response returned by the server for a request to updateWorkflow * @throws ApiException if the response code was not in [200, 299] */ - public async updateWorkflow( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); + public async updateWorkflow(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { const body: UpdateWorkflowResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), @@ -833,16 +595,8 @@ export class WorkflowAutomationApiResponseProcessor { ) as UpdateWorkflowResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); + if (response.httpStatusCode === 400||response.httpStatusCode === 403||response.httpStatusCode === 404||response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse(await response.body.text(), contentType); let body: JSONAPIErrorResponse; try { body = ObjectSerializer.deserialize( @@ -851,32 +605,22 @@ export class WorkflowAutomationApiResponseProcessor { ) as JSONAPIErrorResponse; } catch (error) { logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); + throw new ApiException(response.httpStatusCode, bodyText); + } + throw new ApiException(response.httpStatusCode, body); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: UpdateWorkflowResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "UpdateWorkflowResponse", - "" + "UpdateWorkflowResponse", "" ) as UpdateWorkflowResponse; return body; } const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\""); } } @@ -885,19 +629,19 @@ export interface WorkflowAutomationApiCancelWorkflowInstanceRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string /** * The ID of the workflow instance. * @type string */ - instanceId: string; + instanceId: string } export interface WorkflowAutomationApiCreateWorkflowRequest { /** * @type CreateWorkflowRequest */ - body: CreateWorkflowRequest; + body: CreateWorkflowRequest } export interface WorkflowAutomationApiCreateWorkflowInstanceRequest { @@ -905,11 +649,11 @@ export interface WorkflowAutomationApiCreateWorkflowInstanceRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string /** * @type WorkflowInstanceCreateRequest */ - body: WorkflowInstanceCreateRequest; + body: WorkflowInstanceCreateRequest } export interface WorkflowAutomationApiDeleteWorkflowRequest { @@ -917,7 +661,7 @@ export interface WorkflowAutomationApiDeleteWorkflowRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string } export interface WorkflowAutomationApiGetWorkflowRequest { @@ -925,7 +669,7 @@ export interface WorkflowAutomationApiGetWorkflowRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string } export interface WorkflowAutomationApiGetWorkflowInstanceRequest { @@ -933,12 +677,12 @@ export interface WorkflowAutomationApiGetWorkflowInstanceRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string /** * The ID of the workflow instance. * @type string */ - instanceId: string; + instanceId: string } export interface WorkflowAutomationApiListWorkflowInstancesRequest { @@ -946,17 +690,17 @@ export interface WorkflowAutomationApiListWorkflowInstancesRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string /** * Size for a given page. The maximum allowed value is 100. * @type number */ - pageSize?: number; + pageSize?: number /** * Specific page number to return. * @type number */ - pageNumber?: number; + pageNumber?: number } export interface WorkflowAutomationApiUpdateWorkflowRequest { @@ -964,11 +708,11 @@ export interface WorkflowAutomationApiUpdateWorkflowRequest { * The ID of the workflow. * @type string */ - workflowId: string; + workflowId: string /** * @type UpdateWorkflowRequest */ - body: UpdateWorkflowRequest; + body: UpdateWorkflowRequest } export class WorkflowAutomationApi { @@ -976,36 +720,21 @@ export class WorkflowAutomationApi { private responseProcessor: WorkflowAutomationApiResponseProcessor; private configuration: Configuration; - public constructor( - configuration: Configuration, - requestFactory?: WorkflowAutomationApiRequestFactory, - responseProcessor?: WorkflowAutomationApiResponseProcessor - ) { + public constructor(configuration: Configuration, requestFactory?: WorkflowAutomationApiRequestFactory, responseProcessor?: WorkflowAutomationApiResponseProcessor) { this.configuration = configuration; - this.requestFactory = - requestFactory || new WorkflowAutomationApiRequestFactory(configuration); - this.responseProcessor = - responseProcessor || new WorkflowAutomationApiResponseProcessor(); + this.requestFactory = requestFactory || new WorkflowAutomationApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new WorkflowAutomationApiResponseProcessor(); } /** * Cancels a specific execution of a given workflow. This API requires an application key scoped with the workflows_run permission. * @param param The request object */ - public cancelWorkflowInstance( - param: WorkflowAutomationApiCancelWorkflowInstanceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.cancelWorkflowInstance( - param.workflowId, - param.instanceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.cancelWorkflowInstance(responseContext); + public cancelWorkflowInstance(param: WorkflowAutomationApiCancelWorkflowInstanceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.cancelWorkflowInstance(param.workflowId,param.instanceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.cancelWorkflowInstance(responseContext); }); }); } @@ -1014,19 +743,11 @@ export class WorkflowAutomationApi { * Create a new workflow, returning the workflow ID. This API requires an application key scoped with the `workflows_write` permission. * @param param The request object */ - public createWorkflow( - param: WorkflowAutomationApiCreateWorkflowRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createWorkflow( - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createWorkflow(responseContext); + public createWorkflow(param: WorkflowAutomationApiCreateWorkflowRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createWorkflow(param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createWorkflow(responseContext); }); }); } @@ -1035,20 +756,11 @@ export class WorkflowAutomationApi { * Execute the given workflow. This API requires an application key scoped with the workflows_run permission. * @param param The request object */ - public createWorkflowInstance( - param: WorkflowAutomationApiCreateWorkflowInstanceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.createWorkflowInstance( - param.workflowId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.createWorkflowInstance(responseContext); + public createWorkflowInstance(param: WorkflowAutomationApiCreateWorkflowInstanceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.createWorkflowInstance(param.workflowId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.createWorkflowInstance(responseContext); }); }); } @@ -1057,19 +769,11 @@ export class WorkflowAutomationApi { * Delete a workflow by ID. This API requires an application key scoped with the `workflows_write` permission. * @param param The request object */ - public deleteWorkflow( - param: WorkflowAutomationApiDeleteWorkflowRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.deleteWorkflow( - param.workflowId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteWorkflow(responseContext); + public deleteWorkflow(param: WorkflowAutomationApiDeleteWorkflowRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.deleteWorkflow(param.workflowId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.deleteWorkflow(responseContext); }); }); } @@ -1078,19 +782,11 @@ export class WorkflowAutomationApi { * Get a workflow by ID. This API requires an application key scoped with the `workflows_read` permission. * @param param The request object */ - public getWorkflow( - param: WorkflowAutomationApiGetWorkflowRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getWorkflow( - param.workflowId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getWorkflow(responseContext); + public getWorkflow(param: WorkflowAutomationApiGetWorkflowRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getWorkflow(param.workflowId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getWorkflow(responseContext); }); }); } @@ -1099,20 +795,11 @@ export class WorkflowAutomationApi { * Get a specific execution of a given workflow. This API requires an application key scoped with the workflows_read permission. * @param param The request object */ - public getWorkflowInstance( - param: WorkflowAutomationApiGetWorkflowInstanceRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getWorkflowInstance( - param.workflowId, - param.instanceId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getWorkflowInstance(responseContext); + public getWorkflowInstance(param: WorkflowAutomationApiGetWorkflowInstanceRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getWorkflowInstance(param.workflowId,param.instanceId,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.getWorkflowInstance(responseContext); }); }); } @@ -1121,21 +808,11 @@ export class WorkflowAutomationApi { * List all instances of a given workflow. This API requires an application key scoped with the workflows_read permission. * @param param The request object */ - public listWorkflowInstances( - param: WorkflowAutomationApiListWorkflowInstancesRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.listWorkflowInstances( - param.workflowId, - param.pageSize, - param.pageNumber, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listWorkflowInstances(responseContext); + public listWorkflowInstances(param: WorkflowAutomationApiListWorkflowInstancesRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listWorkflowInstances(param.workflowId,param.pageSize,param.pageNumber,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.listWorkflowInstances(responseContext); }); }); } @@ -1144,21 +821,12 @@ export class WorkflowAutomationApi { * Update a workflow by ID. This API requires an application key scoped with the `workflows_write` permission. * @param param The request object */ - public updateWorkflow( - param: WorkflowAutomationApiUpdateWorkflowRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.updateWorkflow( - param.workflowId, - param.body, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.updateWorkflow(responseContext); + public updateWorkflow(param: WorkflowAutomationApiUpdateWorkflowRequest, options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.updateWorkflow(param.workflowId,param.body,options); + return requestContextPromise.then(requestContext => { + return this.configuration.httpApi.send(requestContext).then(responseContext => { + return this.responseProcessor.updateWorkflow(responseContext); }); }); } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 1077f5e1185b..7a03d228d634 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -1,49 +1,59 @@ + + export { APIManagementApiCreateOpenAPIRequest, APIManagementApiDeleteOpenAPIRequest, APIManagementApiGetOpenAPIRequest, APIManagementApiListAPIsRequest, APIManagementApiUpdateOpenAPIRequest, - APIManagementApi, + APIManagementApi } from "./apis/APIManagementApi"; + export { APMRetentionFiltersApiCreateApmRetentionFilterRequest, APMRetentionFiltersApiDeleteApmRetentionFilterRequest, APMRetentionFiltersApiGetApmRetentionFilterRequest, APMRetentionFiltersApiReorderApmRetentionFiltersRequest, APMRetentionFiltersApiUpdateApmRetentionFilterRequest, - APMRetentionFiltersApi, + APMRetentionFiltersApi } from "./apis/APMRetentionFiltersApi"; + export { AWSIntegrationApiCreateAWSAccountRequest, AWSIntegrationApiDeleteAWSAccountRequest, AWSIntegrationApiGetAWSAccountRequest, AWSIntegrationApiListAWSAccountsRequest, AWSIntegrationApiUpdateAWSAccountRequest, - AWSIntegrationApi, + AWSIntegrationApi } from "./apis/AWSIntegrationApi"; -export { AWSLogsIntegrationApi } from "./apis/AWSLogsIntegrationApi"; + +export { + AWSLogsIntegrationApi +} from "./apis/AWSLogsIntegrationApi"; + export { ActionConnectionApiCreateActionConnectionRequest, ActionConnectionApiDeleteActionConnectionRequest, ActionConnectionApiGetActionConnectionRequest, ActionConnectionApiUpdateActionConnectionRequest, - ActionConnectionApi, + ActionConnectionApi } from "./apis/ActionConnectionApi"; + export { AgentlessScanningApiCreateAwsOnDemandTaskRequest, AgentlessScanningApiCreateAwsScanOptionsRequest, AgentlessScanningApiDeleteAwsScanOptionsRequest, AgentlessScanningApiGetAwsOnDemandTaskRequest, AgentlessScanningApiUpdateAwsScanOptionsRequest, - AgentlessScanningApi, + AgentlessScanningApi } from "./apis/AgentlessScanningApi"; + export { AppBuilderApiCreateAppRequest, AppBuilderApiDeleteAppRequest, @@ -53,9 +63,10 @@ export { AppBuilderApiPublishAppRequest, AppBuilderApiUnpublishAppRequest, AppBuilderApiUpdateAppRequest, - AppBuilderApi, + AppBuilderApi } from "./apis/AppBuilderApi"; + export { ApplicationSecurityApiCreateApplicationSecurityWafCustomRuleRequest, ApplicationSecurityApiCreateApplicationSecurityWafExclusionFilterRequest, @@ -65,46 +76,55 @@ export { ApplicationSecurityApiGetApplicationSecurityWafExclusionFilterRequest, ApplicationSecurityApiUpdateApplicationSecurityWafCustomRuleRequest, ApplicationSecurityApiUpdateApplicationSecurityWafExclusionFilterRequest, - ApplicationSecurityApi, + ApplicationSecurityApi } from "./apis/ApplicationSecurityApi"; + export { AuditApiListAuditLogsRequest, AuditApiSearchAuditLogsRequest, - AuditApi, + AuditApi } from "./apis/AuditApi"; + export { AuthNMappingsApiCreateAuthNMappingRequest, AuthNMappingsApiDeleteAuthNMappingRequest, AuthNMappingsApiGetAuthNMappingRequest, AuthNMappingsApiListAuthNMappingsRequest, AuthNMappingsApiUpdateAuthNMappingRequest, - AuthNMappingsApi, + AuthNMappingsApi } from "./apis/AuthNMappingsApi"; + export { CIVisibilityPipelinesApiAggregateCIAppPipelineEventsRequest, CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest, CIVisibilityPipelinesApiListCIAppPipelineEventsRequest, CIVisibilityPipelinesApiSearchCIAppPipelineEventsRequest, - CIVisibilityPipelinesApi, + CIVisibilityPipelinesApi } from "./apis/CIVisibilityPipelinesApi"; + export { CIVisibilityTestsApiAggregateCIAppTestEventsRequest, CIVisibilityTestsApiListCIAppTestEventsRequest, CIVisibilityTestsApiSearchCIAppTestEventsRequest, - CIVisibilityTestsApi, + CIVisibilityTestsApi } from "./apis/CIVisibilityTestsApi"; + export { CSMAgentsApiListAllCSMAgentsRequest, CSMAgentsApiListAllCSMServerlessAgentsRequest, - CSMAgentsApi, + CSMAgentsApi } from "./apis/CSMAgentsApi"; -export { CSMCoverageAnalysisApi } from "./apis/CSMCoverageAnalysisApi"; + +export { + CSMCoverageAnalysisApi +} from "./apis/CSMCoverageAnalysisApi"; + export { CSMThreatsApiCreateCSMThreatsAgentRuleRequest, @@ -115,9 +135,10 @@ export { CSMThreatsApiGetCloudWorkloadSecurityAgentRuleRequest, CSMThreatsApiUpdateCSMThreatsAgentRuleRequest, CSMThreatsApiUpdateCloudWorkloadSecurityAgentRuleRequest, - CSMThreatsApi, + CSMThreatsApi } from "./apis/CSMThreatsApi"; + export { CaseManagementApiArchiveCaseRequest, CaseManagementApiAssignCaseRequest, @@ -131,9 +152,10 @@ export { CaseManagementApiUnassignCaseRequest, CaseManagementApiUpdatePriorityRequest, CaseManagementApiUpdateStatusRequest, - CaseManagementApi, + CaseManagementApi } from "./apis/CaseManagementApi"; + export { CloudCostManagementApiCreateCostAWSCURConfigRequest, CloudCostManagementApiCreateCostAzureUCConfigsRequest, @@ -144,17 +166,19 @@ export { CloudCostManagementApiUpdateCostAWSCURConfigRequest, CloudCostManagementApiUpdateCostAzureUCConfigsRequest, CloudCostManagementApiUploadCustomCostsFileRequest, - CloudCostManagementApi, + CloudCostManagementApi } from "./apis/CloudCostManagementApi"; + export { CloudflareIntegrationApiCreateCloudflareAccountRequest, CloudflareIntegrationApiDeleteCloudflareAccountRequest, CloudflareIntegrationApiGetCloudflareAccountRequest, CloudflareIntegrationApiUpdateCloudflareAccountRequest, - CloudflareIntegrationApi, + CloudflareIntegrationApi } from "./apis/CloudflareIntegrationApi"; + export { ConfluentCloudApiCreateConfluentAccountRequest, ConfluentCloudApiCreateConfluentResourceRequest, @@ -165,45 +189,52 @@ export { ConfluentCloudApiListConfluentResourceRequest, ConfluentCloudApiUpdateConfluentAccountRequest, ConfluentCloudApiUpdateConfluentResourceRequest, - ConfluentCloudApi, + ConfluentCloudApi } from "./apis/ConfluentCloudApi"; + export { ContainerImagesApiListContainerImagesRequest, - ContainerImagesApi, + ContainerImagesApi } from "./apis/ContainerImagesApi"; + export { ContainersApiListContainersRequest, - ContainersApi, + ContainersApi } from "./apis/ContainersApi"; + export { DORAMetricsApiCreateDORADeploymentRequest, DORAMetricsApiCreateDORAIncidentRequest, - DORAMetricsApi, + DORAMetricsApi } from "./apis/DORAMetricsApi"; + export { DashboardListsApiCreateDashboardListItemsRequest, DashboardListsApiDeleteDashboardListItemsRequest, DashboardListsApiGetDashboardListItemsRequest, DashboardListsApiUpdateDashboardListItemsRequest, - DashboardListsApi, + DashboardListsApi } from "./apis/DashboardListsApi"; + export { DataDeletionApiCancelDataDeletionRequestRequest, DataDeletionApiCreateDataDeletionRequestRequest, DataDeletionApiGetDataDeletionRequestsRequest, - DataDeletionApi, + DataDeletionApi } from "./apis/DataDeletionApi"; + export { DomainAllowlistApiPatchDomainAllowlistRequest, - DomainAllowlistApi, + DomainAllowlistApi } from "./apis/DomainAllowlistApi"; + export { DowntimesApiCancelDowntimeRequest, DowntimesApiCreateDowntimeRequest, @@ -211,16 +242,18 @@ export { DowntimesApiListDowntimesRequest, DowntimesApiListMonitorDowntimesRequest, DowntimesApiUpdateDowntimeRequest, - DowntimesApi, + DowntimesApi } from "./apis/DowntimesApi"; + export { EventsApiCreateEventRequest, EventsApiListEventsRequest, EventsApiSearchEventsRequest, - EventsApi, + EventsApi } from "./apis/EventsApi"; + export { FastlyIntegrationApiCreateFastlyAccountRequest, FastlyIntegrationApiCreateFastlyServiceRequest, @@ -231,40 +264,45 @@ export { FastlyIntegrationApiListFastlyServicesRequest, FastlyIntegrationApiUpdateFastlyAccountRequest, FastlyIntegrationApiUpdateFastlyServiceRequest, - FastlyIntegrationApi, + FastlyIntegrationApi } from "./apis/FastlyIntegrationApi"; + export { GCPIntegrationApiCreateGCPSTSAccountRequest, GCPIntegrationApiDeleteGCPSTSAccountRequest, GCPIntegrationApiMakeGCPSTSDelegateRequest, GCPIntegrationApiUpdateGCPSTSAccountRequest, - GCPIntegrationApi, + GCPIntegrationApi } from "./apis/GCPIntegrationApi"; + export { IPAllowlistApiUpdateIPAllowlistRequest, - IPAllowlistApi, + IPAllowlistApi } from "./apis/IPAllowlistApi"; + export { IncidentServicesApiCreateIncidentServiceRequest, IncidentServicesApiDeleteIncidentServiceRequest, IncidentServicesApiGetIncidentServiceRequest, IncidentServicesApiListIncidentServicesRequest, IncidentServicesApiUpdateIncidentServiceRequest, - IncidentServicesApi, + IncidentServicesApi } from "./apis/IncidentServicesApi"; + export { IncidentTeamsApiCreateIncidentTeamRequest, IncidentTeamsApiDeleteIncidentTeamRequest, IncidentTeamsApiGetIncidentTeamRequest, IncidentTeamsApiListIncidentTeamsRequest, IncidentTeamsApiUpdateIncidentTeamRequest, - IncidentTeamsApi, + IncidentTeamsApi } from "./apis/IncidentTeamsApi"; + export { IncidentsApiCreateIncidentRequest, IncidentsApiCreateIncidentIntegrationRequest, @@ -289,9 +327,10 @@ export { IncidentsApiUpdateIncidentIntegrationRequest, IncidentsApiUpdateIncidentTodoRequest, IncidentsApiUpdateIncidentTypeRequest, - IncidentsApi, + IncidentsApi } from "./apis/IncidentsApi"; + export { KeyManagementApiCreateAPIKeyRequest, KeyManagementApiCreateCurrentUserApplicationKeyRequest, @@ -307,17 +346,19 @@ export { KeyManagementApiUpdateAPIKeyRequest, KeyManagementApiUpdateApplicationKeyRequest, KeyManagementApiUpdateCurrentUserApplicationKeyRequest, - KeyManagementApi, + KeyManagementApi } from "./apis/KeyManagementApi"; + export { LogsApiAggregateLogsRequest, LogsApiListLogsRequest, LogsApiListLogsGetRequest, LogsApiSubmitLogRequest, - LogsApi, + LogsApi } from "./apis/LogsApi"; + export { LogsArchivesApiAddReadRoleToArchiveRequest, LogsArchivesApiCreateLogsArchiveRequest, @@ -327,25 +368,28 @@ export { LogsArchivesApiRemoveRoleFromArchiveRequest, LogsArchivesApiUpdateLogsArchiveRequest, LogsArchivesApiUpdateLogsArchiveOrderRequest, - LogsArchivesApi, + LogsArchivesApi } from "./apis/LogsArchivesApi"; + export { LogsCustomDestinationsApiCreateLogsCustomDestinationRequest, LogsCustomDestinationsApiDeleteLogsCustomDestinationRequest, LogsCustomDestinationsApiGetLogsCustomDestinationRequest, LogsCustomDestinationsApiUpdateLogsCustomDestinationRequest, - LogsCustomDestinationsApi, + LogsCustomDestinationsApi } from "./apis/LogsCustomDestinationsApi"; + export { LogsMetricsApiCreateLogsMetricRequest, LogsMetricsApiDeleteLogsMetricRequest, LogsMetricsApiGetLogsMetricRequest, LogsMetricsApiUpdateLogsMetricRequest, - LogsMetricsApi, + LogsMetricsApi } from "./apis/LogsMetricsApi"; + export { MetricsApiCreateBulkTagsMetricsConfigurationRequest, MetricsApiCreateTagConfigurationRequest, @@ -362,9 +406,10 @@ export { MetricsApiQueryTimeseriesDataRequest, MetricsApiSubmitMetricsRequest, MetricsApiUpdateTagConfigurationRequest, - MetricsApi, + MetricsApi } from "./apis/MetricsApi"; + export { MicrosoftTeamsIntegrationApiCreateTenantBasedHandleRequest, MicrosoftTeamsIntegrationApiCreateWorkflowsWebhookHandleRequest, @@ -377,63 +422,71 @@ export { MicrosoftTeamsIntegrationApiListWorkflowsWebhookHandlesRequest, MicrosoftTeamsIntegrationApiUpdateTenantBasedHandleRequest, MicrosoftTeamsIntegrationApiUpdateWorkflowsWebhookHandleRequest, - MicrosoftTeamsIntegrationApi, + MicrosoftTeamsIntegrationApi } from "./apis/MicrosoftTeamsIntegrationApi"; + export { MonitorsApiCreateMonitorConfigPolicyRequest, MonitorsApiDeleteMonitorConfigPolicyRequest, MonitorsApiGetMonitorConfigPolicyRequest, MonitorsApiUpdateMonitorConfigPolicyRequest, - MonitorsApi, + MonitorsApi } from "./apis/MonitorsApi"; + export { NetworkDeviceMonitoringApiGetDeviceRequest, NetworkDeviceMonitoringApiGetInterfacesRequest, NetworkDeviceMonitoringApiListDeviceUserTagsRequest, NetworkDeviceMonitoringApiListDevicesRequest, NetworkDeviceMonitoringApiUpdateDeviceUserTagsRequest, - NetworkDeviceMonitoringApi, + NetworkDeviceMonitoringApi } from "./apis/NetworkDeviceMonitoringApi"; + export { OktaIntegrationApiCreateOktaAccountRequest, OktaIntegrationApiDeleteOktaAccountRequest, OktaIntegrationApiGetOktaAccountRequest, OktaIntegrationApiUpdateOktaAccountRequest, - OktaIntegrationApi, + OktaIntegrationApi } from "./apis/OktaIntegrationApi"; + export { OpsgenieIntegrationApiCreateOpsgenieServiceRequest, OpsgenieIntegrationApiDeleteOpsgenieServiceRequest, OpsgenieIntegrationApiGetOpsgenieServiceRequest, OpsgenieIntegrationApiUpdateOpsgenieServiceRequest, - OpsgenieIntegrationApi, + OpsgenieIntegrationApi } from "./apis/OpsgenieIntegrationApi"; + export { OrganizationsApiGetOrgConfigRequest, OrganizationsApiUpdateOrgConfigRequest, OrganizationsApiUploadIdPMetadataRequest, - OrganizationsApi, + OrganizationsApi } from "./apis/OrganizationsApi"; + export { PowerpackApiCreatePowerpackRequest, PowerpackApiDeletePowerpackRequest, PowerpackApiGetPowerpackRequest, PowerpackApiListPowerpacksRequest, PowerpackApiUpdatePowerpackRequest, - PowerpackApi, + PowerpackApi } from "./apis/PowerpackApi"; + export { ProcessesApiListProcessesRequest, - ProcessesApi, + ProcessesApi } from "./apis/ProcessesApi"; + export { RUMApiAggregateRUMEventsRequest, RUMApiCreateRUMApplicationRequest, @@ -442,16 +495,18 @@ export { RUMApiListRUMEventsRequest, RUMApiSearchRUMEventsRequest, RUMApiUpdateRUMApplicationRequest, - RUMApi, + RUMApi } from "./apis/RUMApi"; + export { RestrictionPoliciesApiDeleteRestrictionPolicyRequest, RestrictionPoliciesApiGetRestrictionPolicyRequest, RestrictionPoliciesApiUpdateRestrictionPolicyRequest, - RestrictionPoliciesApi, + RestrictionPoliciesApi } from "./apis/RestrictionPoliciesApi"; + export { RolesApiAddPermissionToRoleRequest, RolesApiAddUserToRoleRequest, @@ -465,17 +520,19 @@ export { RolesApiRemovePermissionFromRoleRequest, RolesApiRemoveUserFromRoleRequest, RolesApiUpdateRoleRequest, - RolesApi, + RolesApi } from "./apis/RolesApi"; + export { RumMetricsApiCreateRumMetricRequest, RumMetricsApiDeleteRumMetricRequest, RumMetricsApiGetRumMetricRequest, RumMetricsApiUpdateRumMetricRequest, - RumMetricsApi, + RumMetricsApi } from "./apis/RumMetricsApi"; + export { RumRetentionFiltersApiCreateRetentionFilterRequest, RumRetentionFiltersApiDeleteRetentionFilterRequest, @@ -483,9 +540,10 @@ export { RumRetentionFiltersApiListRetentionFiltersRequest, RumRetentionFiltersApiOrderRetentionFiltersRequest, RumRetentionFiltersApiUpdateRetentionFilterRequest, - RumRetentionFiltersApi, + RumRetentionFiltersApi } from "./apis/RumRetentionFiltersApi"; + export { SecurityMonitoringApiCancelHistoricalJobRequest, SecurityMonitoringApiConvertExistingSecurityMonitoringRuleRequest, @@ -532,9 +590,10 @@ export { SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest, SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest, SecurityMonitoringApiValidateSecurityMonitoringRuleRequest, - SecurityMonitoringApi, + SecurityMonitoringApi } from "./apis/SecurityMonitoringApi"; + export { SensitiveDataScannerApiCreateScanningGroupRequest, SensitiveDataScannerApiCreateScanningRuleRequest, @@ -543,9 +602,10 @@ export { SensitiveDataScannerApiReorderScanningGroupsRequest, SensitiveDataScannerApiUpdateScanningGroupRequest, SensitiveDataScannerApiUpdateScanningRuleRequest, - SensitiveDataScannerApi, + SensitiveDataScannerApi } from "./apis/SensitiveDataScannerApi"; + export { ServiceAccountsApiCreateServiceAccountRequest, ServiceAccountsApiCreateServiceAccountApplicationKeyRequest, @@ -553,24 +613,27 @@ export { ServiceAccountsApiGetServiceAccountApplicationKeyRequest, ServiceAccountsApiListServiceAccountApplicationKeysRequest, ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest, - ServiceAccountsApi, + ServiceAccountsApi } from "./apis/ServiceAccountsApi"; + export { ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest, ServiceDefinitionApiDeleteServiceDefinitionRequest, ServiceDefinitionApiGetServiceDefinitionRequest, ServiceDefinitionApiListServiceDefinitionsRequest, - ServiceDefinitionApi, + ServiceDefinitionApi } from "./apis/ServiceDefinitionApi"; + export { ServiceLevelObjectivesApiCreateSLOReportJobRequest, ServiceLevelObjectivesApiGetSLOReportRequest, ServiceLevelObjectivesApiGetSLOReportJobStatusRequest, - ServiceLevelObjectivesApi, + ServiceLevelObjectivesApi } from "./apis/ServiceLevelObjectivesApi"; + export { ServiceScorecardsApiCreateScorecardOutcomesBatchRequest, ServiceScorecardsApiCreateScorecardRuleRequest, @@ -578,36 +641,41 @@ export { ServiceScorecardsApiListScorecardOutcomesRequest, ServiceScorecardsApiListScorecardRulesRequest, ServiceScorecardsApiUpdateScorecardRuleRequest, - ServiceScorecardsApi, + ServiceScorecardsApi } from "./apis/ServiceScorecardsApi"; + export { SoftwareCatalogApiDeleteCatalogEntityRequest, SoftwareCatalogApiListCatalogEntityRequest, SoftwareCatalogApiUpsertCatalogEntityRequest, - SoftwareCatalogApi, + SoftwareCatalogApi } from "./apis/SoftwareCatalogApi"; + export { SpansApiAggregateSpansRequest, SpansApiListSpansRequest, SpansApiListSpansGetRequest, - SpansApi, + SpansApi } from "./apis/SpansApi"; + export { SpansMetricsApiCreateSpansMetricRequest, SpansMetricsApiDeleteSpansMetricRequest, SpansMetricsApiGetSpansMetricRequest, SpansMetricsApiUpdateSpansMetricRequest, - SpansMetricsApi, + SpansMetricsApi } from "./apis/SpansMetricsApi"; + export { SyntheticsApiSetOnDemandConcurrencyCapRequest, - SyntheticsApi, + SyntheticsApi } from "./apis/SyntheticsApi"; + export { TeamsApiCreateTeamRequest, TeamsApiCreateTeamLinkRequest, @@ -626,9 +694,10 @@ export { TeamsApiUpdateTeamLinkRequest, TeamsApiUpdateTeamMembershipRequest, TeamsApiUpdateTeamPermissionSettingRequest, - TeamsApi, + TeamsApi } from "./apis/TeamsApi"; + export { UsageMeteringApiGetBillingDimensionMappingRequest, UsageMeteringApiGetCostByOrgRequest, @@ -640,9 +709,10 @@ export { UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest, UsageMeteringApiGetUsageLambdaTracedInvocationsRequest, UsageMeteringApiGetUsageObservabilityPipelinesRequest, - UsageMeteringApi, + UsageMeteringApi } from "./apis/UsageMeteringApi"; + export { UsersApiCreateUserRequest, UsersApiDisableUserRequest, @@ -653,9 +723,10 @@ export { UsersApiListUsersRequest, UsersApiSendInvitationsRequest, UsersApiUpdateUserRequest, - UsersApi, + UsersApi } from "./apis/UsersApi"; + export { WorkflowAutomationApiCancelWorkflowInstanceRequest, WorkflowAutomationApiCreateWorkflowRequest, @@ -665,7 +736,7 @@ export { WorkflowAutomationApiGetWorkflowInstanceRequest, WorkflowAutomationApiListWorkflowInstancesRequest, WorkflowAutomationApiUpdateWorkflowRequest, - WorkflowAutomationApi, + WorkflowAutomationApi } from "./apis/WorkflowAutomationApi"; export { AccountFilteringConfig } from "./models/AccountFilteringConfig"; diff --git a/packages/datadog-api-client-v2/models/APIErrorResponse.ts b/packages/datadog-api-client-v2/models/APIErrorResponse.ts index 64c1b10f5920..10fc838ff09f 100644 --- a/packages/datadog-api-client-v2/models/APIErrorResponse.ts +++ b/packages/datadog-api-client-v2/models/APIErrorResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * API error response. - */ +*/ export class APIErrorResponse { /** * A list of errors. - */ + */ "errors": Array; /** @@ -31,23 +36,49 @@ export class APIErrorResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIErrorResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyCreateAttributes.ts b/packages/datadog-api-client-v2/models/APIKeyCreateAttributes.ts index ec38e820aa7a..1e1fb30e5b61 100644 --- a/packages/datadog-api-client-v2/models/APIKeyCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/APIKeyCreateAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes used to create an API Key. - */ +*/ export class APIKeyCreateAttributes { /** * The APIKeyCreateAttributes category. - */ + */ "category"?: string; /** * Name of the API key. - */ + */ "name": string; /** * The APIKeyCreateAttributes remote_config_read_enabled. - */ + */ "remoteConfigReadEnabled"?: boolean; /** @@ -39,31 +44,57 @@ export class APIKeyCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "string", - }, - name: { - baseName: "name", - type: "string", - required: true, + "category": { + "baseName": "category", + "type": "string", }, - remoteConfigReadEnabled: { - baseName: "remote_config_read_enabled", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "remoteConfigReadEnabled": { + "baseName": "remote_config_read_enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyCreateData.ts b/packages/datadog-api-client-v2/models/APIKeyCreateData.ts index f7deda5122bd..2374b2f91fa4 100644 --- a/packages/datadog-api-client-v2/models/APIKeyCreateData.ts +++ b/packages/datadog-api-client-v2/models/APIKeyCreateData.ts @@ -6,19 +6,24 @@ import { APIKeyCreateAttributes } from "./APIKeyCreateAttributes"; import { APIKeysType } from "./APIKeysType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object used to create an API key. - */ +*/ export class APIKeyCreateData { /** * Attributes used to create an API Key. - */ + */ "attributes": APIKeyCreateAttributes; /** * API Keys resource type. - */ + */ "type": APIKeysType; /** @@ -37,28 +42,54 @@ export class APIKeyCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "APIKeyCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "APIKeyCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "APIKeysType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "APIKeysType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyCreateRequest.ts b/packages/datadog-api-client-v2/models/APIKeyCreateRequest.ts index 866e3a2bce08..1939c0940b00 100644 --- a/packages/datadog-api-client-v2/models/APIKeyCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/APIKeyCreateRequest.ts @@ -5,15 +5,20 @@ */ import { APIKeyCreateData } from "./APIKeyCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to create an API key. - */ +*/ export class APIKeyCreateRequest { /** * Object used to create an API key. - */ + */ "data": APIKeyCreateData; /** @@ -32,23 +37,49 @@ export class APIKeyCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "APIKeyCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "APIKeyCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyRelationships.ts b/packages/datadog-api-client-v2/models/APIKeyRelationships.ts index e2cd4f3ec3c0..1fb27c46b7f8 100644 --- a/packages/datadog-api-client-v2/models/APIKeyRelationships.ts +++ b/packages/datadog-api-client-v2/models/APIKeyRelationships.ts @@ -6,19 +6,24 @@ import { NullableRelationshipToUser } from "./NullableRelationshipToUser"; import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Resources related to the API key. - */ +*/ export class APIKeyRelationships { /** * Relationship to user. - */ + */ "createdBy"?: RelationshipToUser; /** * Relationship to user. - */ + */ "modifiedBy"?: NullableRelationshipToUser; /** @@ -37,26 +42,52 @@ export class APIKeyRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdBy: { - baseName: "created_by", - type: "RelationshipToUser", + "createdBy": { + "baseName": "created_by", + "type": "RelationshipToUser", }, - modifiedBy: { - baseName: "modified_by", - type: "NullableRelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "modifiedBy": { + "baseName": "modified_by", + "type": "NullableRelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyResponse.ts b/packages/datadog-api-client-v2/models/APIKeyResponse.ts index 5661f44e1842..f56db12a7ee9 100644 --- a/packages/datadog-api-client-v2/models/APIKeyResponse.ts +++ b/packages/datadog-api-client-v2/models/APIKeyResponse.ts @@ -6,19 +6,24 @@ import { APIKeyResponseIncludedItem } from "./APIKeyResponseIncludedItem"; import { FullAPIKey } from "./FullAPIKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving an API key. - */ +*/ export class APIKeyResponse { /** * Datadog API key. - */ + */ "data"?: FullAPIKey; /** * Array of objects related to the API key. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class APIKeyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FullAPIKey", + "data": { + "baseName": "data", + "type": "FullAPIKey", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/APIKeyResponseIncludedItem.ts index f104ed8ea3f7..6930ce795ad5 100644 --- a/packages/datadog-api-client-v2/models/APIKeyResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/APIKeyResponseIncludedItem.ts @@ -6,10 +6,15 @@ import { LeakedKey } from "./LeakedKey"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an API key. - */ +*/ -export type APIKeyResponseIncludedItem = User | LeakedKey | UnparsedObject; +export type APIKeyResponseIncludedItem = User | LeakedKey | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/APIKeyUpdateAttributes.ts b/packages/datadog-api-client-v2/models/APIKeyUpdateAttributes.ts index a940362f8cc0..04fdd7e80d45 100644 --- a/packages/datadog-api-client-v2/models/APIKeyUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/APIKeyUpdateAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes used to update an API Key. - */ +*/ export class APIKeyUpdateAttributes { /** * The APIKeyUpdateAttributes category. - */ + */ "category"?: string; /** * Name of the API key. - */ + */ "name": string; /** * The APIKeyUpdateAttributes remote_config_read_enabled. - */ + */ "remoteConfigReadEnabled"?: boolean; /** @@ -39,31 +44,57 @@ export class APIKeyUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "string", - }, - name: { - baseName: "name", - type: "string", - required: true, + "category": { + "baseName": "category", + "type": "string", }, - remoteConfigReadEnabled: { - baseName: "remote_config_read_enabled", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "remoteConfigReadEnabled": { + "baseName": "remote_config_read_enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyUpdateData.ts b/packages/datadog-api-client-v2/models/APIKeyUpdateData.ts index 54d8b4c49175..d2b442106d20 100644 --- a/packages/datadog-api-client-v2/models/APIKeyUpdateData.ts +++ b/packages/datadog-api-client-v2/models/APIKeyUpdateData.ts @@ -6,23 +6,28 @@ import { APIKeysType } from "./APIKeysType"; import { APIKeyUpdateAttributes } from "./APIKeyUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object used to update an API key. - */ +*/ export class APIKeyUpdateData { /** * Attributes used to update an API Key. - */ + */ "attributes": APIKeyUpdateAttributes; /** * ID of the API key. - */ + */ "id": string; /** * API Keys resource type. - */ + */ "type": APIKeysType; /** @@ -41,33 +46,59 @@ export class APIKeyUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "APIKeyUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "APIKeyUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "APIKeysType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "APIKeysType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeyUpdateRequest.ts b/packages/datadog-api-client-v2/models/APIKeyUpdateRequest.ts index 8458e1373bcc..c3bdfb4a30cc 100644 --- a/packages/datadog-api-client-v2/models/APIKeyUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/APIKeyUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { APIKeyUpdateData } from "./APIKeyUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to update an API key. - */ +*/ export class APIKeyUpdateRequest { /** * Object used to update an API key. - */ + */ "data": APIKeyUpdateData; /** @@ -32,23 +37,49 @@ export class APIKeyUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "APIKeyUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "APIKeyUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeyUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeysResponse.ts b/packages/datadog-api-client-v2/models/APIKeysResponse.ts index ec0ca886ef55..cc1dabedf731 100644 --- a/packages/datadog-api-client-v2/models/APIKeysResponse.ts +++ b/packages/datadog-api-client-v2/models/APIKeysResponse.ts @@ -7,23 +7,28 @@ import { APIKeyResponseIncludedItem } from "./APIKeyResponseIncludedItem"; import { APIKeysResponseMeta } from "./APIKeysResponseMeta"; import { PartialAPIKey } from "./PartialAPIKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for a list of API keys. - */ +*/ export class APIKeysResponse { /** * Array of API keys. - */ + */ "data"?: Array; /** * Array of objects related to the API key. - */ + */ "included"?: Array; /** * Additional information related to api keys response. - */ + */ "meta"?: APIKeysResponseMeta; /** @@ -42,30 +47,56 @@ export class APIKeysResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "APIKeysResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "APIKeysResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeysResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeysResponseMeta.ts b/packages/datadog-api-client-v2/models/APIKeysResponseMeta.ts index 31a3233c1f63..b442b1d8705b 100644 --- a/packages/datadog-api-client-v2/models/APIKeysResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/APIKeysResponseMeta.ts @@ -5,19 +5,24 @@ */ import { APIKeysResponseMetaPage } from "./APIKeysResponseMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional information related to api keys response. - */ +*/ export class APIKeysResponseMeta { /** * Max allowed number of API keys. - */ + */ "maxAllowed"?: number; /** * Additional information related to the API keys response. - */ + */ "page"?: APIKeysResponseMetaPage; /** @@ -36,27 +41,53 @@ export class APIKeysResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - maxAllowed: { - baseName: "max_allowed", - type: "number", - format: "int64", + "maxAllowed": { + "baseName": "max_allowed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "APIKeysResponseMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "APIKeysResponseMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeysResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.ts b/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.ts index 876e0459aa30..d9fe4405cada 100644 --- a/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.ts +++ b/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional information related to the API keys response. - */ +*/ export class APIKeysResponseMetaPage { /** * Total filtered application key count. - */ + */ "totalFilteredCount"?: number; /** @@ -31,23 +36,49 @@ export class APIKeysResponseMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APIKeysResponseMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APIKeysSort.ts b/packages/datadog-api-client-v2/models/APIKeysSort.ts index c8d8937dc6cf..e6ed17819939 100644 --- a/packages/datadog-api-client-v2/models/APIKeysSort.ts +++ b/packages/datadog-api-client-v2/models/APIKeysSort.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sorting options - */ +*/ -export type APIKeysSort = - | typeof CREATED_AT_ASCENDING - | typeof CREATED_AT_DESCENDING - | typeof LAST4_ASCENDING - | typeof LAST4_DESCENDING - | typeof MODIFIED_AT_ASCENDING - | typeof MODIFIED_AT_DESCENDING - | typeof NAME_ASCENDING - | typeof NAME_DESCENDING - | UnparsedObject; -export const CREATED_AT_ASCENDING = "created_at"; -export const CREATED_AT_DESCENDING = "-created_at"; -export const LAST4_ASCENDING = "last4"; -export const LAST4_DESCENDING = "-last4"; -export const MODIFIED_AT_ASCENDING = "modified_at"; -export const MODIFIED_AT_DESCENDING = "-modified_at"; -export const NAME_ASCENDING = "name"; -export const NAME_DESCENDING = "-name"; +export type APIKeysSort = typeof CREATED_AT_ASCENDING| typeof CREATED_AT_DESCENDING| typeof LAST4_ASCENDING| typeof LAST4_DESCENDING| typeof MODIFIED_AT_ASCENDING| typeof MODIFIED_AT_DESCENDING| typeof NAME_ASCENDING| typeof NAME_DESCENDING | UnparsedObject; +export const CREATED_AT_ASCENDING = 'created_at'; +export const CREATED_AT_DESCENDING = '-created_at'; +export const LAST4_ASCENDING = 'last4'; +export const LAST4_DESCENDING = '-last4'; +export const MODIFIED_AT_ASCENDING = 'modified_at'; +export const MODIFIED_AT_DESCENDING = '-modified_at'; +export const NAME_ASCENDING = 'name'; +export const NAME_DESCENDING = '-name'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/APIKeysType.ts b/packages/datadog-api-client-v2/models/APIKeysType.ts index 128130c36503..496902fce95b 100644 --- a/packages/datadog-api-client-v2/models/APIKeysType.ts +++ b/packages/datadog-api-client-v2/models/APIKeysType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * API Keys resource type. - */ +*/ export type APIKeysType = typeof API_KEYS | UnparsedObject; -export const API_KEYS = "api_keys"; +export const API_KEYS = 'api_keys'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/APITrigger.ts b/packages/datadog-api-client-v2/models/APITrigger.ts index df584fe4e674..4bf8db35575d 100644 --- a/packages/datadog-api-client-v2/models/APITrigger.ts +++ b/packages/datadog-api-client-v2/models/APITrigger.ts @@ -5,15 +5,20 @@ */ import { TriggerRateLimit } from "./TriggerRateLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from an API request. The workflow must be published. - */ +*/ export class APITrigger { /** * Defines a rate limit for a trigger. - */ + */ "rateLimit"?: TriggerRateLimit; /** @@ -32,22 +37,48 @@ export class APITrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rateLimit: { - baseName: "rateLimit", - type: "TriggerRateLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rateLimit": { + "baseName": "rateLimit", + "type": "TriggerRateLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APITrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/APITriggerWrapper.ts b/packages/datadog-api-client-v2/models/APITriggerWrapper.ts index 88dc175e5e3a..f61c62e49a94 100644 --- a/packages/datadog-api-client-v2/models/APITriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/APITriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { APITrigger } from "./APITrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for an API-based trigger. - */ +*/ export class APITriggerWrapper { /** * Trigger a workflow from an API request. The workflow must be published. - */ + */ "apiTrigger": APITrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class APITriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiTrigger: { - baseName: "apiTrigger", - type: "APITrigger", - required: true, + "apiTrigger": { + "baseName": "apiTrigger", + "type": "APITrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return APITriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.ts b/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.ts index 514740d24ab0..71eb9a83e9d7 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.ts @@ -5,15 +5,20 @@ */ import { AWSAccountCreateRequestData } from "./AWSAccountCreateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account Create Request body. - */ +*/ export class AWSAccountCreateRequest { /** * AWS Account Create Request data. - */ + */ "data": AWSAccountCreateRequestData; /** @@ -32,23 +37,49 @@ export class AWSAccountCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AWSAccountCreateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AWSAccountCreateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts index 67daf00e0959..4bfd65f51ed9 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts @@ -4,6 +4,7 @@ * Copyright 2020-Present Datadog, Inc. */ import { AWSAccountPartition } from "./AWSAccountPartition"; +import { AWSAccountTagsItem } from "./AWSAccountTagsItem"; import { AWSAuthConfig } from "./AWSAuthConfig"; import { AWSLogsConfig } from "./AWSLogsConfig"; import { AWSMetricsConfig } from "./AWSMetricsConfig"; @@ -11,48 +12,53 @@ import { AWSRegions } from "./AWSRegions"; import { AWSResourcesConfig } from "./AWSResourcesConfig"; import { AWSTracesConfig } from "./AWSTracesConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The AWS Account Integration Config to be created. - */ +*/ export class AWSAccountCreateRequestAttributes { /** * Tags to apply to all hosts and metrics reporting for this account. Defaults to `[]`. - */ + */ "accountTags"?: Array; /** * AWS Authentication config. - */ + */ "authConfig": AWSAuthConfig; /** * AWS Account ID. - */ + */ "awsAccountId": string; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. - */ + */ "awsPartition": AWSAccountPartition; /** * AWS Regions to collect data from. Defaults to `include_all`. - */ + */ "awsRegions"?: AWSRegions; /** * AWS Logs Collection config. - */ + */ "logsConfig"?: AWSLogsConfig; /** * AWS Metrics Collection config. - */ + */ "metricsConfig"?: AWSMetricsConfig; /** * AWS Resources Collection config. - */ + */ "resourcesConfig"?: AWSResourcesConfig; /** * AWS Traces Collection config. - */ + */ "tracesConfig"?: AWSTracesConfig; /** @@ -71,57 +77,83 @@ export class AWSAccountCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountTags: { - baseName: "account_tags", - type: "Array", + "accountTags": { + "baseName": "account_tags", + "type": "Array", }, - authConfig: { - baseName: "auth_config", - type: "AWSAuthConfig", - required: true, + "authConfig": { + "baseName": "auth_config", + "type": "AWSAuthConfig", + "required": true, }, - awsAccountId: { - baseName: "aws_account_id", - type: "string", - required: true, + "awsAccountId": { + "baseName": "aws_account_id", + "type": "string", + "required": true, }, - awsPartition: { - baseName: "aws_partition", - type: "AWSAccountPartition", - required: true, + "awsPartition": { + "baseName": "aws_partition", + "type": "AWSAccountPartition", + "required": true, }, - awsRegions: { - baseName: "aws_regions", - type: "AWSRegions", + "awsRegions": { + "baseName": "aws_regions", + "type": "AWSRegions", }, - logsConfig: { - baseName: "logs_config", - type: "AWSLogsConfig", + "logsConfig": { + "baseName": "logs_config", + "type": "AWSLogsConfig", }, - metricsConfig: { - baseName: "metrics_config", - type: "AWSMetricsConfig", + "metricsConfig": { + "baseName": "metrics_config", + "type": "AWSMetricsConfig", }, - resourcesConfig: { - baseName: "resources_config", - type: "AWSResourcesConfig", + "resourcesConfig": { + "baseName": "resources_config", + "type": "AWSResourcesConfig", }, - tracesConfig: { - baseName: "traces_config", - type: "AWSTracesConfig", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tracesConfig": { + "baseName": "traces_config", + "type": "AWSTracesConfig", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.ts b/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.ts index 1b9c87241870..698016af4ce5 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.ts @@ -6,19 +6,24 @@ import { AWSAccountCreateRequestAttributes } from "./AWSAccountCreateRequestAttributes"; import { AWSAccountType } from "./AWSAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account Create Request data. - */ +*/ export class AWSAccountCreateRequestData { /** * The AWS Account Integration Config to be created. - */ + */ "attributes": AWSAccountCreateRequestAttributes; /** * AWS Account resource type. - */ + */ "type": AWSAccountType; /** @@ -37,28 +42,54 @@ export class AWSAccountCreateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AWSAccountCreateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AWSAccountCreateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AWSAccountType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountCreateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountPartition.ts b/packages/datadog-api-client-v2/models/AWSAccountPartition.ts index 8f2929220853..a003154c2d0c 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountPartition.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountPartition.ts @@ -4,18 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AWS partition your AWS account is scoped to. Defaults to `aws`. * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. - */ +*/ -export type AWSAccountPartition = - | typeof AWS - | typeof AWS_CN - | typeof AWS_US_GOV - | UnparsedObject; -export const AWS = "aws"; -export const AWS_CN = "aws-cn"; -export const AWS_US_GOV = "aws-us-gov"; +export type AWSAccountPartition = typeof AWS| typeof AWS_CN| typeof AWS_US_GOV | UnparsedObject; +export const AWS = 'aws'; +export const AWS_CN = 'aws-cn'; +export const AWS_US_GOV = 'aws-us-gov'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSAccountResponse.ts b/packages/datadog-api-client-v2/models/AWSAccountResponse.ts index b8e4c4877efc..33337de8c031 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountResponse.ts @@ -5,15 +5,20 @@ */ import { AWSAccountResponseData } from "./AWSAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account response body. - */ +*/ export class AWSAccountResponse { /** * AWS Account response data. - */ + */ "data": AWSAccountResponseData; /** @@ -32,23 +37,49 @@ export class AWSAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AWSAccountResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AWSAccountResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts index f459a6ae76b9..7c5acce46b8b 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts @@ -4,6 +4,7 @@ * Copyright 2020-Present Datadog, Inc. */ import { AWSAccountPartition } from "./AWSAccountPartition"; +import { AWSAccountTagsItem } from "./AWSAccountTagsItem"; import { AWSAuthConfig } from "./AWSAuthConfig"; import { AWSLogsConfig } from "./AWSLogsConfig"; import { AWSMetricsConfig } from "./AWSMetricsConfig"; @@ -11,56 +12,61 @@ import { AWSRegions } from "./AWSRegions"; import { AWSResourcesConfig } from "./AWSResourcesConfig"; import { AWSTracesConfig } from "./AWSTracesConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account response attributes. - */ +*/ export class AWSAccountResponseAttributes { /** * Tags to apply to all hosts and metrics reporting for this account. Defaults to `[]`. - */ + */ "accountTags"?: Array; /** * AWS Authentication config. - */ + */ "authConfig"?: AWSAuthConfig; /** * AWS Account ID. - */ + */ "awsAccountId": string; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. - */ + */ "awsPartition"?: AWSAccountPartition; /** * AWS Regions to collect data from. Defaults to `include_all`. - */ + */ "awsRegions"?: AWSRegions; /** * Timestamp of when the account integration was created. - */ + */ "createdAt"?: Date; /** * AWS Logs Collection config. - */ + */ "logsConfig"?: AWSLogsConfig; /** * AWS Metrics Collection config. - */ + */ "metricsConfig"?: AWSMetricsConfig; /** * Timestamp of when the account integration was updated. - */ + */ "modifiedAt"?: Date; /** * AWS Resources Collection config. - */ + */ "resourcesConfig"?: AWSResourcesConfig; /** * AWS Traces Collection config. - */ + */ "tracesConfig"?: AWSTracesConfig; /** @@ -79,65 +85,91 @@ export class AWSAccountResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountTags: { - baseName: "account_tags", - type: "Array", - }, - authConfig: { - baseName: "auth_config", - type: "AWSAuthConfig", + "accountTags": { + "baseName": "account_tags", + "type": "Array", }, - awsAccountId: { - baseName: "aws_account_id", - type: "string", - required: true, + "authConfig": { + "baseName": "auth_config", + "type": "AWSAuthConfig", }, - awsPartition: { - baseName: "aws_partition", - type: "AWSAccountPartition", + "awsAccountId": { + "baseName": "aws_account_id", + "type": "string", + "required": true, }, - awsRegions: { - baseName: "aws_regions", - type: "AWSRegions", + "awsPartition": { + "baseName": "aws_partition", + "type": "AWSAccountPartition", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "awsRegions": { + "baseName": "aws_regions", + "type": "AWSRegions", }, - logsConfig: { - baseName: "logs_config", - type: "AWSLogsConfig", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - metricsConfig: { - baseName: "metrics_config", - type: "AWSMetricsConfig", + "logsConfig": { + "baseName": "logs_config", + "type": "AWSLogsConfig", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "metricsConfig": { + "baseName": "metrics_config", + "type": "AWSMetricsConfig", }, - resourcesConfig: { - baseName: "resources_config", - type: "AWSResourcesConfig", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - tracesConfig: { - baseName: "traces_config", - type: "AWSTracesConfig", + "resourcesConfig": { + "baseName": "resources_config", + "type": "AWSResourcesConfig", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tracesConfig": { + "baseName": "traces_config", + "type": "AWSTracesConfig", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts b/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts index 9c6f385de66b..8ad3d14486ed 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts @@ -6,25 +6,30 @@ import { AWSAccountResponseAttributes } from "./AWSAccountResponseAttributes"; import { AWSAccountType } from "./AWSAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account response data. - */ +*/ export class AWSAccountResponseData { /** * AWS Account response attributes. - */ + */ "attributes"?: AWSAccountResponseAttributes; /** * Unique Datadog ID of the AWS Account Integration Config. * To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) * endpoint and query by AWS Account ID. - */ + */ "id": string; /** * AWS Account resource type. - */ + */ "type": AWSAccountType; /** @@ -43,32 +48,58 @@ export class AWSAccountResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AWSAccountResponseAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AWSAccountResponseAttributes", }, - type: { - baseName: "type", - type: "AWSAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountType.ts b/packages/datadog-api-client-v2/models/AWSAccountType.ts index 4eada54609d1..0fccef88d710 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountType.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AWS Account resource type. - */ +*/ export type AWSAccountType = typeof ACCOUNT | UnparsedObject; -export const ACCOUNT = "account"; +export const ACCOUNT = 'account'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.ts b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.ts index fa1fc26d944f..b17c4ad014e3 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { AWSAccountUpdateRequestData } from "./AWSAccountUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account Update Request body. - */ +*/ export class AWSAccountUpdateRequest { /** * AWS Account Update Request data. - */ + */ "data": AWSAccountUpdateRequestData; /** @@ -32,23 +37,49 @@ export class AWSAccountUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AWSAccountUpdateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AWSAccountUpdateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts index fa28df9b7725..de5d295af5ec 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts @@ -4,6 +4,7 @@ * Copyright 2020-Present Datadog, Inc. */ import { AWSAccountPartition } from "./AWSAccountPartition"; +import { AWSAccountTagsItem } from "./AWSAccountTagsItem"; import { AWSAuthConfig } from "./AWSAuthConfig"; import { AWSLogsConfig } from "./AWSLogsConfig"; import { AWSMetricsConfig } from "./AWSMetricsConfig"; @@ -11,48 +12,53 @@ import { AWSRegions } from "./AWSRegions"; import { AWSResourcesConfig } from "./AWSResourcesConfig"; import { AWSTracesConfig } from "./AWSTracesConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The AWS Account Integration Config to be updated. - */ +*/ export class AWSAccountUpdateRequestAttributes { /** * Tags to apply to all hosts and metrics reporting for this account. Defaults to `[]`. - */ + */ "accountTags"?: Array; /** * AWS Authentication config. - */ + */ "authConfig"?: AWSAuthConfig; /** * AWS Account ID. - */ + */ "awsAccountId": string; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. - */ + */ "awsPartition"?: AWSAccountPartition; /** * AWS Regions to collect data from. Defaults to `include_all`. - */ + */ "awsRegions"?: AWSRegions; /** * AWS Logs Collection config. - */ + */ "logsConfig"?: AWSLogsConfig; /** * AWS Metrics Collection config. - */ + */ "metricsConfig"?: AWSMetricsConfig; /** * AWS Resources Collection config. - */ + */ "resourcesConfig"?: AWSResourcesConfig; /** * AWS Traces Collection config. - */ + */ "tracesConfig"?: AWSTracesConfig; /** @@ -71,55 +77,81 @@ export class AWSAccountUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountTags: { - baseName: "account_tags", - type: "Array", + "accountTags": { + "baseName": "account_tags", + "type": "Array", }, - authConfig: { - baseName: "auth_config", - type: "AWSAuthConfig", + "authConfig": { + "baseName": "auth_config", + "type": "AWSAuthConfig", }, - awsAccountId: { - baseName: "aws_account_id", - type: "string", - required: true, + "awsAccountId": { + "baseName": "aws_account_id", + "type": "string", + "required": true, }, - awsPartition: { - baseName: "aws_partition", - type: "AWSAccountPartition", + "awsPartition": { + "baseName": "aws_partition", + "type": "AWSAccountPartition", }, - awsRegions: { - baseName: "aws_regions", - type: "AWSRegions", + "awsRegions": { + "baseName": "aws_regions", + "type": "AWSRegions", }, - logsConfig: { - baseName: "logs_config", - type: "AWSLogsConfig", + "logsConfig": { + "baseName": "logs_config", + "type": "AWSLogsConfig", }, - metricsConfig: { - baseName: "metrics_config", - type: "AWSMetricsConfig", + "metricsConfig": { + "baseName": "metrics_config", + "type": "AWSMetricsConfig", }, - resourcesConfig: { - baseName: "resources_config", - type: "AWSResourcesConfig", + "resourcesConfig": { + "baseName": "resources_config", + "type": "AWSResourcesConfig", }, - tracesConfig: { - baseName: "traces_config", - type: "AWSTracesConfig", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tracesConfig": { + "baseName": "traces_config", + "type": "AWSTracesConfig", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts index abfc5091e9c0..dd114501d696 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts @@ -6,25 +6,30 @@ import { AWSAccountType } from "./AWSAccountType"; import { AWSAccountUpdateRequestAttributes } from "./AWSAccountUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Account Update Request data. - */ +*/ export class AWSAccountUpdateRequestData { /** * The AWS Account Integration Config to be updated. - */ + */ "attributes": AWSAccountUpdateRequestAttributes; /** * Unique Datadog ID of the AWS Account Integration Config. * To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) * endpoint and query by AWS Account ID. - */ + */ "id"?: string; /** * AWS Account resource type. - */ + */ "type": AWSAccountType; /** @@ -43,32 +48,58 @@ export class AWSAccountUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AWSAccountUpdateRequestAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "AWSAccountUpdateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AWSAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAccountsResponse.ts b/packages/datadog-api-client-v2/models/AWSAccountsResponse.ts index b0a6184e2d70..6aab42ead3eb 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountsResponse.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountsResponse.ts @@ -5,15 +5,20 @@ */ import { AWSAccountResponseData } from "./AWSAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Accounts response body. - */ +*/ export class AWSAccountsResponse { /** * List of AWS Account Integration Configs. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class AWSAccountsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAccountsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAssumeRole.ts b/packages/datadog-api-client-v2/models/AWSAssumeRole.ts index 3e445dc0cabf..f25947af53cc 100644 --- a/packages/datadog-api-client-v2/models/AWSAssumeRole.ts +++ b/packages/datadog-api-client-v2/models/AWSAssumeRole.ts @@ -5,31 +5,36 @@ */ import { AWSAssumeRoleType } from "./AWSAssumeRoleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AWSAssumeRole` object. - */ +*/ export class AWSAssumeRole { /** * AWS account the connection is created for - */ + */ "accountId": string; /** * External ID used to scope which connection can be used to assume the role - */ + */ "externalId"?: string; /** * AWS account that will assume the role - */ + */ "principalId"?: string; /** * Role to assume - */ + */ "role": string; /** * The definition of `AWSAssumeRoleType` object. - */ + */ "type": AWSAssumeRoleType; /** @@ -48,41 +53,67 @@ export class AWSAssumeRole { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - externalId: { - baseName: "external_id", - type: "string", + "externalId": { + "baseName": "external_id", + "type": "string", }, - principalId: { - baseName: "principal_id", - type: "string", + "principalId": { + "baseName": "principal_id", + "type": "string", }, - role: { - baseName: "role", - type: "string", - required: true, + "role": { + "baseName": "role", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "AWSAssumeRoleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSAssumeRoleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAssumeRole.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAssumeRoleType.ts b/packages/datadog-api-client-v2/models/AWSAssumeRoleType.ts index e911b552ebc2..b55841641ea0 100644 --- a/packages/datadog-api-client-v2/models/AWSAssumeRoleType.ts +++ b/packages/datadog-api-client-v2/models/AWSAssumeRoleType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `AWSAssumeRoleType` object. - */ +*/ export type AWSAssumeRoleType = typeof AWSASSUMEROLE | UnparsedObject; -export const AWSASSUMEROLE = "AWSAssumeRole"; +export const AWSASSUMEROLE = 'AWSAssumeRole'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.ts b/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.ts index fa83489dd439..7f29642b9e61 100644 --- a/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.ts +++ b/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.ts @@ -5,27 +5,32 @@ */ import { AWSAssumeRoleType } from "./AWSAssumeRoleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AWSAssumeRoleUpdate` object. - */ +*/ export class AWSAssumeRoleUpdate { /** * AWS account the connection is created for - */ + */ "accountId"?: string; /** * The `AWSAssumeRoleUpdate` `generate_new_external_id`. - */ + */ "generateNewExternalId"?: boolean; /** * Role to assume - */ + */ "role"?: string; /** * The definition of `AWSAssumeRoleType` object. - */ + */ "type": AWSAssumeRoleType; /** @@ -44,35 +49,61 @@ export class AWSAssumeRoleUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", + "accountId": { + "baseName": "account_id", + "type": "string", }, - generateNewExternalId: { - baseName: "generate_new_external_id", - type: "boolean", + "generateNewExternalId": { + "baseName": "generate_new_external_id", + "type": "boolean", }, - role: { - baseName: "role", - type: "string", + "role": { + "baseName": "role", + "type": "string", }, - type: { - baseName: "type", - type: "AWSAssumeRoleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSAssumeRoleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAssumeRoleUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAuthConfig.ts b/packages/datadog-api-client-v2/models/AWSAuthConfig.ts index b80fe6fa2425..254c98a37b42 100644 --- a/packages/datadog-api-client-v2/models/AWSAuthConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSAuthConfig.ts @@ -6,13 +6,15 @@ import { AWSAuthConfigKeys } from "./AWSAuthConfigKeys"; import { AWSAuthConfigRole } from "./AWSAuthConfigRole"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AWS Authentication config. - */ +*/ -export type AWSAuthConfig = - | AWSAuthConfigKeys - | AWSAuthConfigRole - | UnparsedObject; +export type AWSAuthConfig = AWSAuthConfigKeys | AWSAuthConfigRole | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.ts b/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.ts index ba718dc2f004..65e91b3e615a 100644 --- a/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.ts +++ b/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Authentication config to integrate your account using an access key pair. - */ +*/ export class AWSAuthConfigKeys { /** * AWS Access Key ID. - */ + */ "accessKeyId": string; /** * AWS Secret Access Key. - */ + */ "secretAccessKey"?: string; /** @@ -35,27 +40,53 @@ export class AWSAuthConfigKeys { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessKeyId: { - baseName: "access_key_id", - type: "string", - required: true, + "accessKeyId": { + "baseName": "access_key_id", + "type": "string", + "required": true, }, - secretAccessKey: { - baseName: "secret_access_key", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "secretAccessKey": { + "baseName": "secret_access_key", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAuthConfigKeys.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSAuthConfigRole.ts b/packages/datadog-api-client-v2/models/AWSAuthConfigRole.ts index cdb6d6217295..628f91ddee96 100644 --- a/packages/datadog-api-client-v2/models/AWSAuthConfigRole.ts +++ b/packages/datadog-api-client-v2/models/AWSAuthConfigRole.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Authentication config to integrate your account using an IAM role. - */ +*/ export class AWSAuthConfigRole { /** * AWS IAM External ID for associated role. - */ + */ "externalId"?: string; /** * AWS IAM Role name. - */ + */ "roleName": string; /** @@ -35,27 +40,53 @@ export class AWSAuthConfigRole { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - externalId: { - baseName: "external_id", - type: "string", + "externalId": { + "baseName": "external_id", + "type": "string", }, - roleName: { - baseName: "role_name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "roleName": { + "baseName": "role_name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSAuthConfigRole.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSCredentials.ts b/packages/datadog-api-client-v2/models/AWSCredentials.ts index 648b54179b3b..8c22ad8bac9e 100644 --- a/packages/datadog-api-client-v2/models/AWSCredentials.ts +++ b/packages/datadog-api-client-v2/models/AWSCredentials.ts @@ -5,10 +5,15 @@ */ import { AWSAssumeRole } from "./AWSAssumeRole"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `AWSCredentials` object. - */ +*/ -export type AWSCredentials = AWSAssumeRole | UnparsedObject; +export type AWSCredentials = AWSAssumeRole | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.ts b/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.ts index 99b8382c9055..2b6d05dabc5c 100644 --- a/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.ts +++ b/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.ts @@ -5,10 +5,15 @@ */ import { AWSAssumeRoleUpdate } from "./AWSAssumeRoleUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `AWSCredentialsUpdate` object. - */ +*/ -export type AWSCredentialsUpdate = AWSAssumeRoleUpdate | UnparsedObject; +export type AWSCredentialsUpdate = AWSAssumeRoleUpdate | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSIntegration.ts b/packages/datadog-api-client-v2/models/AWSIntegration.ts index 28157816b957..e300595b790a 100644 --- a/packages/datadog-api-client-v2/models/AWSIntegration.ts +++ b/packages/datadog-api-client-v2/models/AWSIntegration.ts @@ -6,19 +6,24 @@ import { AWSCredentials } from "./AWSCredentials"; import { AWSIntegrationType } from "./AWSIntegrationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AWSIntegration` object. - */ +*/ export class AWSIntegration { /** * The definition of `AWSCredentials` object. - */ + */ "credentials": AWSCredentials; /** * The definition of `AWSIntegrationType` object. - */ + */ "type": AWSIntegrationType; /** @@ -37,28 +42,54 @@ export class AWSIntegration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - credentials: { - baseName: "credentials", - type: "AWSCredentials", - required: true, + "credentials": { + "baseName": "credentials", + "type": "AWSCredentials", + "required": true, }, - type: { - baseName: "type", - type: "AWSIntegrationType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSIntegrationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSIntegration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSIntegrationType.ts b/packages/datadog-api-client-v2/models/AWSIntegrationType.ts index 787ca71828bc..0db87c297960 100644 --- a/packages/datadog-api-client-v2/models/AWSIntegrationType.ts +++ b/packages/datadog-api-client-v2/models/AWSIntegrationType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `AWSIntegrationType` object. - */ +*/ export type AWSIntegrationType = typeof AWS | UnparsedObject; -export const AWS = "AWS"; +export const AWS = 'AWS'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.ts b/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.ts index 6ab25a5752bd..f3ce6b8d7766 100644 --- a/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.ts +++ b/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.ts @@ -6,19 +6,24 @@ import { AWSCredentialsUpdate } from "./AWSCredentialsUpdate"; import { AWSIntegrationType } from "./AWSIntegrationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AWSIntegrationUpdate` object. - */ +*/ export class AWSIntegrationUpdate { /** * The definition of `AWSCredentialsUpdate` object. - */ + */ "credentials"?: AWSCredentialsUpdate; /** * The definition of `AWSIntegrationType` object. - */ + */ "type": AWSIntegrationType; /** @@ -37,27 +42,53 @@ export class AWSIntegrationUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - credentials: { - baseName: "credentials", - type: "AWSCredentialsUpdate", + "credentials": { + "baseName": "credentials", + "type": "AWSCredentialsUpdate", }, - type: { - baseName: "type", - type: "AWSIntegrationType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSIntegrationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSIntegrationUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts b/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts index a88a5a4ec888..34ce95f63af5 100644 --- a/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Log Autosubscription configuration for Datadog Forwarder Lambda functions. Automatically set up triggers for existing * and new logs for some services, ensuring no logs from new resources are missed and saving time spent on manual configuration. - */ +*/ export class AWSLambdaForwarderConfig { /** * List of Datadog Lambda Log Forwarder ARNs in your AWS account. Defaults to `[]`. - */ + */ "lambdas"?: Array; /** * List of service IDs set to enable automatic log collection. Discover the list of available services with the * [Get list of AWS log ready services](https://docs.datadoghq.com/api/latest/aws-logs-integration/#get-list-of-aws-log-ready-services) endpoint. - */ + */ "sources"?: Array; /** @@ -37,26 +42,52 @@ export class AWSLambdaForwarderConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lambdas: { - baseName: "lambdas", - type: "Array", + "lambdas": { + "baseName": "lambdas", + "type": "Array", }, - sources: { - baseName: "sources", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sources": { + "baseName": "sources", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLambdaForwarderConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSLogsConfig.ts b/packages/datadog-api-client-v2/models/AWSLogsConfig.ts index 436ab8caed7c..1abd89e5af70 100644 --- a/packages/datadog-api-client-v2/models/AWSLogsConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSLogsConfig.ts @@ -5,16 +5,21 @@ */ import { AWSLambdaForwarderConfig } from "./AWSLambdaForwarderConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Logs Collection config. - */ +*/ export class AWSLogsConfig { /** * Log Autosubscription configuration for Datadog Forwarder Lambda functions. Automatically set up triggers for existing * and new logs for some services, ensuring no logs from new resources are missed and saving time spent on manual configuration. - */ + */ "lambdaForwarder"?: AWSLambdaForwarderConfig; /** @@ -33,22 +38,48 @@ export class AWSLogsConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lambdaForwarder: { - baseName: "lambda_forwarder", - type: "AWSLambdaForwarderConfig", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lambdaForwarder": { + "baseName": "lambda_forwarder", + "type": "AWSLambdaForwarderConfig", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.ts b/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.ts index 397438c1498b..a64098c38889 100644 --- a/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.ts +++ b/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.ts @@ -5,15 +5,20 @@ */ import { AWSLogsServicesResponseData } from "./AWSLogsServicesResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Logs Services response body - */ +*/ export class AWSLogsServicesResponse { /** * AWS Logs Services response body - */ + */ "data": AWSLogsServicesResponseData; /** @@ -32,23 +37,49 @@ export class AWSLogsServicesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AWSLogsServicesResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AWSLogsServicesResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsServicesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSLogsServicesResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSLogsServicesResponseAttributes.ts index 56f877199b24..8cdeb0f6e292 100644 --- a/packages/datadog-api-client-v2/models/AWSLogsServicesResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSLogsServicesResponseAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Logs Services response body - */ +*/ export class AWSLogsServicesResponseAttributes { /** * List of AWS services that can send logs to Datadog - */ + */ "logsServices": Array; /** @@ -31,23 +36,49 @@ export class AWSLogsServicesResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - logsServices: { - baseName: "logs_services", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "logsServices": { + "baseName": "logs_services", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsServicesResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.ts b/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.ts index af3e0c6c4ad1..c8fd3cdbe24b 100644 --- a/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.ts +++ b/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.ts @@ -6,23 +6,28 @@ import { AWSLogsServicesResponseAttributes } from "./AWSLogsServicesResponseAttributes"; import { AWSLogsServicesResponseDataType } from "./AWSLogsServicesResponseDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Logs Services response body - */ +*/ export class AWSLogsServicesResponseData { /** * AWS Logs Services response body - */ + */ "attributes"?: AWSLogsServicesResponseAttributes; /** * The `AWSLogsServicesResponseData` `id`. - */ + */ "id": string; /** * The `AWSLogsServicesResponseData` `type`. - */ + */ "type": AWSLogsServicesResponseDataType; /** @@ -41,32 +46,58 @@ export class AWSLogsServicesResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AWSLogsServicesResponseAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AWSLogsServicesResponseAttributes", }, - type: { - baseName: "type", - type: "AWSLogsServicesResponseDataType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSLogsServicesResponseDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSLogsServicesResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.ts b/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.ts index a3d37597f5f4..c34998c4e738 100644 --- a/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.ts +++ b/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The `AWSLogsServicesResponseData` `type`. - */ +*/ -export type AWSLogsServicesResponseDataType = - | typeof LOGS_SERVICES - | UnparsedObject; -export const LOGS_SERVICES = "logs_services"; +export type AWSLogsServicesResponseDataType = typeof LOGS_SERVICES | UnparsedObject; +export const LOGS_SERVICES = 'logs_services'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSMetricsConfig.ts b/packages/datadog-api-client-v2/models/AWSMetricsConfig.ts index 6afce2252c7a..fd28661eda2b 100644 --- a/packages/datadog-api-client-v2/models/AWSMetricsConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSMetricsConfig.ts @@ -6,35 +6,40 @@ import { AWSNamespaceFilters } from "./AWSNamespaceFilters"; import { AWSNamespaceTagFilter } from "./AWSNamespaceTagFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Metrics Collection config. - */ +*/ export class AWSMetricsConfig { /** * Enable EC2 automute for AWS metrics. Defaults to `true`. - */ + */ "automuteEnabled"?: boolean; /** * Enable CloudWatch alarms collection. Defaults to `false`. - */ + */ "collectCloudwatchAlarms"?: boolean; /** * Enable custom metrics collection. Defaults to `false`. - */ + */ "collectCustomMetrics"?: boolean; /** * Enable AWS metrics collection. Defaults to `true`. - */ + */ "enabled"?: boolean; /** * AWS Metrics namespace filters. Defaults to `exclude_only`. - */ + */ "namespaceFilters"?: AWSNamespaceFilters; /** * AWS Metrics collection tag filters list. Defaults to `[]`. - */ + */ "tagFilters"?: Array; /** @@ -53,42 +58,68 @@ export class AWSMetricsConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - automuteEnabled: { - baseName: "automute_enabled", - type: "boolean", - }, - collectCloudwatchAlarms: { - baseName: "collect_cloudwatch_alarms", - type: "boolean", + "automuteEnabled": { + "baseName": "automute_enabled", + "type": "boolean", }, - collectCustomMetrics: { - baseName: "collect_custom_metrics", - type: "boolean", + "collectCloudwatchAlarms": { + "baseName": "collect_cloudwatch_alarms", + "type": "boolean", }, - enabled: { - baseName: "enabled", - type: "boolean", + "collectCustomMetrics": { + "baseName": "collect_custom_metrics", + "type": "boolean", }, - namespaceFilters: { - baseName: "namespace_filters", - type: "AWSNamespaceFilters", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - tagFilters: { - baseName: "tag_filters", - type: "Array", + "namespaceFilters": { + "baseName": "namespace_filters", + "type": "AWSNamespaceFilters", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagFilters": { + "baseName": "tag_filters", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSMetricsConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespaceFilters.ts b/packages/datadog-api-client-v2/models/AWSNamespaceFilters.ts index 449f36c0c317..0ce5adf15780 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespaceFilters.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespaceFilters.ts @@ -6,13 +6,15 @@ import { AWSNamespaceFiltersExcludeOnly } from "./AWSNamespaceFiltersExcludeOnly"; import { AWSNamespaceFiltersIncludeOnly } from "./AWSNamespaceFiltersIncludeOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AWS Metrics namespace filters. Defaults to `exclude_only`. - */ +*/ -export type AWSNamespaceFilters = - | AWSNamespaceFiltersExcludeOnly - | AWSNamespaceFiltersIncludeOnly - | UnparsedObject; +export type AWSNamespaceFilters = AWSNamespaceFiltersExcludeOnly | AWSNamespaceFiltersIncludeOnly | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts b/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts index 4304f50d018d..8099e3e4f705 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts @@ -4,17 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce"]`. * `AWS/SQS` and `AWS/ElasticMapReduce` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls. - */ +*/ export class AWSNamespaceFiltersExcludeOnly { /** * Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce"]`. * `AWS/SQS` and `AWS/ElasticMapReduce` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls. - */ + */ "excludeOnly": Array; /** @@ -33,23 +38,49 @@ export class AWSNamespaceFiltersExcludeOnly { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - excludeOnly: { - baseName: "exclude_only", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "excludeOnly": { + "baseName": "exclude_only", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNamespaceFiltersExcludeOnly.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespaceFiltersIncludeOnly.ts b/packages/datadog-api-client-v2/models/AWSNamespaceFiltersIncludeOnly.ts index 9e7e0a0ed9b0..e0a14065679f 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespaceFiltersIncludeOnly.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespaceFiltersIncludeOnly.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Include only these namespaces. - */ +*/ export class AWSNamespaceFiltersIncludeOnly { /** * Include only these namespaces. - */ + */ "includeOnly": Array; /** @@ -31,23 +36,49 @@ export class AWSNamespaceFiltersIncludeOnly { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeOnly: { - baseName: "include_only", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includeOnly": { + "baseName": "include_only", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNamespaceFiltersIncludeOnly.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts b/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts index d69f016fd04f..72d1641146c8 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Metrics Collection tag filters list. Defaults to `[]`. * The array of custom AWS resource tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from a specified service. * Wildcards, such as `?` (match a single character) and `*` (match multiple characters), and exclusion using `!` before the tag are supported. * For EC2, only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. * For example, `env:production,instance-type:c?.*,!region:us-east-1`. - */ +*/ export class AWSNamespaceTagFilter { /** * The AWS service for which the tag filters defined in `tags` will be applied. - */ + */ "namespace"?: string; /** * The AWS resource tags to filter on for the service specified by `namespace`. - */ + */ "tags"?: Array; /** @@ -39,26 +44,52 @@ export class AWSNamespaceTagFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - namespace: { - baseName: "namespace", - type: "string", + "namespace": { + "baseName": "namespace", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNamespaceTagFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespacesResponse.ts b/packages/datadog-api-client-v2/models/AWSNamespacesResponse.ts index 0ac6560923ff..75a74c7265bf 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespacesResponse.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespacesResponse.ts @@ -5,15 +5,20 @@ */ import { AWSNamespacesResponseData } from "./AWSNamespacesResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Namespaces response body. - */ +*/ export class AWSNamespacesResponse { /** * AWS Namespaces response data. - */ + */ "data": AWSNamespacesResponseData; /** @@ -32,23 +37,49 @@ export class AWSNamespacesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AWSNamespacesResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AWSNamespacesResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNamespacesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.ts index 817a632b5527..c1316d94f494 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Namespaces response attributes. - */ +*/ export class AWSNamespacesResponseAttributes { /** * AWS CloudWatch namespace. - */ + */ "namespaces": Array; /** @@ -31,23 +36,49 @@ export class AWSNamespacesResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - namespaces: { - baseName: "namespaces", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "namespaces": { + "baseName": "namespaces", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNamespacesResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.ts b/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.ts index 912df98558ae..48380d6df227 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.ts @@ -6,23 +6,28 @@ import { AWSNamespacesResponseAttributes } from "./AWSNamespacesResponseAttributes"; import { AWSNamespacesResponseDataType } from "./AWSNamespacesResponseDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Namespaces response data. - */ +*/ export class AWSNamespacesResponseData { /** * AWS Namespaces response attributes. - */ + */ "attributes"?: AWSNamespacesResponseAttributes; /** * The `AWSNamespacesResponseData` `id`. - */ + */ "id": string; /** * The `AWSNamespacesResponseData` `type`. - */ + */ "type": AWSNamespacesResponseDataType; /** @@ -41,32 +46,58 @@ export class AWSNamespacesResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AWSNamespacesResponseAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AWSNamespacesResponseAttributes", }, - type: { - baseName: "type", - type: "AWSNamespacesResponseDataType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSNamespacesResponseDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNamespacesResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.ts b/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.ts index 293fa7f66922..7b4e779be827 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The `AWSNamespacesResponseData` `type`. - */ +*/ export type AWSNamespacesResponseDataType = typeof NAMESPACES | UnparsedObject; -export const NAMESPACES = "namespaces"; +export const NAMESPACES = 'namespaces'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.ts b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.ts index e3b0d3664d46..4ef4b86d53d6 100644 --- a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.ts +++ b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.ts @@ -5,15 +5,20 @@ */ import { AWSNewExternalIDResponseData } from "./AWSNewExternalIDResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS External ID response body. - */ +*/ export class AWSNewExternalIDResponse { /** * AWS External ID response body. - */ + */ "data": AWSNewExternalIDResponseData; /** @@ -32,23 +37,49 @@ export class AWSNewExternalIDResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AWSNewExternalIDResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AWSNewExternalIDResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNewExternalIDResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.ts index 5d0dd35f2dae..3689d260f0b4 100644 --- a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS External ID response body. - */ +*/ export class AWSNewExternalIDResponseAttributes { /** * AWS IAM External ID for associated role. - */ + */ "externalId": string; /** @@ -31,23 +36,49 @@ export class AWSNewExternalIDResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - externalId: { - baseName: "external_id", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "externalId": { + "baseName": "external_id", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNewExternalIDResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.ts b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.ts index 2723971b38ed..58ef85c989ad 100644 --- a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.ts +++ b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.ts @@ -6,23 +6,28 @@ import { AWSNewExternalIDResponseAttributes } from "./AWSNewExternalIDResponseAttributes"; import { AWSNewExternalIDResponseDataType } from "./AWSNewExternalIDResponseDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS External ID response body. - */ +*/ export class AWSNewExternalIDResponseData { /** * AWS External ID response body. - */ + */ "attributes"?: AWSNewExternalIDResponseAttributes; /** * The `AWSNewExternalIDResponseData` `id`. - */ + */ "id": string; /** * The `AWSNewExternalIDResponseData` `type`. - */ + */ "type": AWSNewExternalIDResponseDataType; /** @@ -41,32 +46,58 @@ export class AWSNewExternalIDResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AWSNewExternalIDResponseAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AWSNewExternalIDResponseAttributes", }, - type: { - baseName: "type", - type: "AWSNewExternalIDResponseDataType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AWSNewExternalIDResponseDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSNewExternalIDResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.ts b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.ts index 860619cddd6c..792b61bd3e27 100644 --- a/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.ts +++ b/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The `AWSNewExternalIDResponseData` `type`. - */ +*/ -export type AWSNewExternalIDResponseDataType = - | typeof EXTERNAL_ID - | UnparsedObject; -export const EXTERNAL_ID = "external_id"; +export type AWSNewExternalIDResponseDataType = typeof EXTERNAL_ID | UnparsedObject; +export const EXTERNAL_ID = 'external_id'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSRegions.ts b/packages/datadog-api-client-v2/models/AWSRegions.ts index 28ca88f46c26..e3df5d64fced 100644 --- a/packages/datadog-api-client-v2/models/AWSRegions.ts +++ b/packages/datadog-api-client-v2/models/AWSRegions.ts @@ -6,13 +6,15 @@ import { AWSRegionsIncludeAll } from "./AWSRegionsIncludeAll"; import { AWSRegionsIncludeOnly } from "./AWSRegionsIncludeOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AWS Regions to collect data from. Defaults to `include_all`. - */ +*/ -export type AWSRegions = - | AWSRegionsIncludeAll - | AWSRegionsIncludeOnly - | UnparsedObject; +export type AWSRegions = AWSRegionsIncludeAll | AWSRegionsIncludeOnly | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AWSRegionsIncludeAll.ts b/packages/datadog-api-client-v2/models/AWSRegionsIncludeAll.ts index 499b084c5293..b638fef07c52 100644 --- a/packages/datadog-api-client-v2/models/AWSRegionsIncludeAll.ts +++ b/packages/datadog-api-client-v2/models/AWSRegionsIncludeAll.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Include all regions. Defaults to `true`. - */ +*/ export class AWSRegionsIncludeAll { /** * Include all regions. - */ + */ "includeAll": boolean; /** @@ -31,23 +36,49 @@ export class AWSRegionsIncludeAll { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeAll: { - baseName: "include_all", - type: "boolean", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includeAll": { + "baseName": "include_all", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSRegionsIncludeAll.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.ts b/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.ts index dbb05c1146d4..73fcfa6eec7f 100644 --- a/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.ts +++ b/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Include only these regions. - */ +*/ export class AWSRegionsIncludeOnly { /** * Include only these regions. - */ + */ "includeOnly": Array; /** @@ -31,23 +36,49 @@ export class AWSRegionsIncludeOnly { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeOnly: { - baseName: "include_only", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includeOnly": { + "baseName": "include_only", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSRegionsIncludeOnly.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts b/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts index 149f1611a131..69cbae699242 100644 --- a/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Resources Collection config. - */ +*/ export class AWSResourcesConfig { /** * Enable Cloud Security Management to scan AWS resources for vulnerabilities, misconfigurations, identity risks, and compliance violations. Defaults to `false`. Requires `extended_collection` to be set to `true`. - */ + */ "cloudSecurityPostureManagementCollection"?: boolean; /** * Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Defaults to `true`. Required for `cloud_security_posture_management_collection`. - */ + */ "extendedCollection"?: boolean; /** @@ -35,26 +40,52 @@ export class AWSResourcesConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cloudSecurityPostureManagementCollection: { - baseName: "cloud_security_posture_management_collection", - type: "boolean", + "cloudSecurityPostureManagementCollection": { + "baseName": "cloud_security_posture_management_collection", + "type": "boolean", }, - extendedCollection: { - baseName: "extended_collection", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "extendedCollection": { + "baseName": "extended_collection", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSResourcesConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AWSTracesConfig.ts b/packages/datadog-api-client-v2/models/AWSTracesConfig.ts index 95532abbaf1a..92f1d0dfac53 100644 --- a/packages/datadog-api-client-v2/models/AWSTracesConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSTracesConfig.ts @@ -5,15 +5,20 @@ */ import { XRayServicesList } from "./XRayServicesList"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS Traces Collection config. - */ +*/ export class AWSTracesConfig { /** * AWS X-Ray services to collect traces from. Defaults to `include_only`. - */ + */ "xrayServices"?: XRayServicesList; /** @@ -32,22 +37,48 @@ export class AWSTracesConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - xrayServices: { - baseName: "xray_services", - type: "XRayServicesList", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "xrayServices": { + "baseName": "xray_services", + "type": "XRayServicesList", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AWSTracesConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AccountFilteringConfig.ts b/packages/datadog-api-client-v2/models/AccountFilteringConfig.ts index 1952d64a714e..d21dfdc034a0 100644 --- a/packages/datadog-api-client-v2/models/AccountFilteringConfig.ts +++ b/packages/datadog-api-client-v2/models/AccountFilteringConfig.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The account filtering configuration. - */ +*/ export class AccountFilteringConfig { /** * The AWS account IDs to be excluded from your billing dataset. This field is used when `include_new_accounts` is `true`. - */ + */ "excludedAccounts"?: Array; /** * Whether or not to automatically include new member accounts by default in your billing dataset. - */ + */ "includeNewAccounts"?: boolean; /** * The AWS account IDs to be included in your billing dataset. This field is used when `include_new_accounts` is `false`. - */ + */ "includedAccounts"?: Array; /** @@ -39,30 +44,56 @@ export class AccountFilteringConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - excludedAccounts: { - baseName: "excluded_accounts", - type: "Array", - }, - includeNewAccounts: { - baseName: "include_new_accounts", - type: "boolean", + "excludedAccounts": { + "baseName": "excluded_accounts", + "type": "Array", }, - includedAccounts: { - baseName: "included_accounts", - type: "Array", + "includeNewAccounts": { + "baseName": "include_new_accounts", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includedAccounts": { + "baseName": "included_accounts", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AccountFilteringConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionConnectionAttributes.ts b/packages/datadog-api-client-v2/models/ActionConnectionAttributes.ts index 6be7fd711084..0389defd270b 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionAttributes.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionAttributes.ts @@ -5,19 +5,24 @@ */ import { ActionConnectionIntegration } from "./ActionConnectionIntegration"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `ActionConnectionAttributes` object. - */ +*/ export class ActionConnectionAttributes { /** * The definition of `ActionConnectionIntegration` object. - */ + */ "integration": ActionConnectionIntegration; /** * Name of the connection - */ + */ "name": string; /** @@ -36,28 +41,54 @@ export class ActionConnectionAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - integration: { - baseName: "integration", - type: "ActionConnectionIntegration", - required: true, + "integration": { + "baseName": "integration", + "type": "ActionConnectionIntegration", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionConnectionAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.ts b/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.ts index 535b88a8037d..3d20c9b77a99 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.ts @@ -5,19 +5,24 @@ */ import { ActionConnectionIntegrationUpdate } from "./ActionConnectionIntegrationUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `ActionConnectionAttributesUpdate` object. - */ +*/ export class ActionConnectionAttributesUpdate { /** * The definition of `ActionConnectionIntegrationUpdate` object. - */ + */ "integration"?: ActionConnectionIntegrationUpdate; /** * Name of the connection - */ + */ "name"?: string; /** @@ -36,26 +41,52 @@ export class ActionConnectionAttributesUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - integration: { - baseName: "integration", - type: "ActionConnectionIntegrationUpdate", + "integration": { + "baseName": "integration", + "type": "ActionConnectionIntegrationUpdate", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionConnectionAttributesUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionConnectionData.ts b/packages/datadog-api-client-v2/models/ActionConnectionData.ts index 145d7896385c..2ebd25b25629 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionData.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionData.ts @@ -6,23 +6,28 @@ import { ActionConnectionAttributes } from "./ActionConnectionAttributes"; import { ActionConnectionDataType } from "./ActionConnectionDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the connection. - */ +*/ export class ActionConnectionData { /** * The definition of `ActionConnectionAttributes` object. - */ + */ "attributes": ActionConnectionAttributes; /** * The connection identifier - */ + */ "id"?: string; /** * The definition of `ActionConnectionDataType` object. - */ + */ "type": ActionConnectionDataType; /** @@ -41,32 +46,58 @@ export class ActionConnectionData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ActionConnectionAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ActionConnectionAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ActionConnectionDataType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ActionConnectionDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionConnectionData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionConnectionDataType.ts b/packages/datadog-api-client-v2/models/ActionConnectionDataType.ts index 213b944d7abb..4dbc81c35a02 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionDataType.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `ActionConnectionDataType` object. - */ +*/ -export type ActionConnectionDataType = - | typeof ACTION_CONNECTION - | UnparsedObject; -export const ACTION_CONNECTION = "action_connection"; +export type ActionConnectionDataType = typeof ACTION_CONNECTION | UnparsedObject; +export const ACTION_CONNECTION = 'action_connection'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.ts b/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.ts index 8f5dd8607527..db07e250cb6e 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.ts @@ -6,19 +6,24 @@ import { ActionConnectionAttributesUpdate } from "./ActionConnectionAttributesUpdate"; import { ActionConnectionDataType } from "./ActionConnectionDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the connection update. - */ +*/ export class ActionConnectionDataUpdate { /** * The definition of `ActionConnectionAttributesUpdate` object. - */ + */ "attributes": ActionConnectionAttributesUpdate; /** * The definition of `ActionConnectionDataType` object. - */ + */ "type": ActionConnectionDataType; /** @@ -37,28 +42,54 @@ export class ActionConnectionDataUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ActionConnectionAttributesUpdate", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ActionConnectionAttributesUpdate", + "required": true, }, - type: { - baseName: "type", - type: "ActionConnectionDataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ActionConnectionDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionConnectionDataUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionConnectionIntegration.ts b/packages/datadog-api-client-v2/models/ActionConnectionIntegration.ts index 9e8e18a3b163..9e6fbf151f28 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionIntegration.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionIntegration.ts @@ -6,13 +6,15 @@ import { AWSIntegration } from "./AWSIntegration"; import { HTTPIntegration } from "./HTTPIntegration"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `ActionConnectionIntegration` object. - */ +*/ -export type ActionConnectionIntegration = - | AWSIntegration - | HTTPIntegration - | UnparsedObject; +export type ActionConnectionIntegration = AWSIntegration | HTTPIntegration | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.ts b/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.ts index 1339c47153a3..ab17bf98f94b 100644 --- a/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.ts +++ b/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.ts @@ -6,13 +6,15 @@ import { AWSIntegrationUpdate } from "./AWSIntegrationUpdate"; import { HTTPIntegrationUpdate } from "./HTTPIntegrationUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `ActionConnectionIntegrationUpdate` object. - */ +*/ -export type ActionConnectionIntegrationUpdate = - | AWSIntegrationUpdate - | HTTPIntegrationUpdate - | UnparsedObject; +export type ActionConnectionIntegrationUpdate = AWSIntegrationUpdate | HTTPIntegrationUpdate | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQuery.ts b/packages/datadog-api-client-v2/models/ActionQuery.ts index 51990eeaa761..977cfc6dff4c 100644 --- a/packages/datadog-api-client-v2/models/ActionQuery.ts +++ b/packages/datadog-api-client-v2/models/ActionQuery.ts @@ -7,31 +7,36 @@ import { ActionQueryProperties } from "./ActionQueryProperties"; import { ActionQueryType } from "./ActionQueryType"; import { AppBuilderEvent } from "./AppBuilderEvent"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An action query. This query type is used to trigger an action, such as sending a HTTP request. - */ +*/ export class ActionQuery { /** * Events to listen for downstream of the action query. - */ + */ "events"?: Array; /** * The ID of the action query. - */ + */ "id": string; /** * A unique identifier for this action query. This name is also used to access the query's result throughout the app. - */ + */ "name": string; /** * The properties of the action query. - */ + */ "properties": ActionQueryProperties; /** * The action query type. - */ + */ "type": ActionQueryType; /** @@ -50,43 +55,69 @@ export class ActionQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - properties: { - baseName: "properties", - type: "ActionQueryProperties", - required: true, + "properties": { + "baseName": "properties", + "type": "ActionQueryProperties", + "required": true, }, - type: { - baseName: "type", - type: "ActionQueryType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ActionQueryType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionQueryCondition.ts b/packages/datadog-api-client-v2/models/ActionQueryCondition.ts index 2a10f910c682..1afbc5678066 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryCondition.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryCondition.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether to run this query. If specified, the query will only run if this condition evaluates to `true` in JavaScript and all other conditions are also met. - */ +*/ -export type ActionQueryCondition = boolean | string | UnparsedObject; +export type ActionQueryCondition = boolean | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryDebounceInMs.ts b/packages/datadog-api-client-v2/models/ActionQueryDebounceInMs.ts index 1b97b82be26f..c3d39504309a 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryDebounceInMs.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryDebounceInMs.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The minimum time in milliseconds that must pass before the query can be triggered again. This is useful for preventing accidental double-clicks from triggering the query multiple times. - */ +*/ -export type ActionQueryDebounceInMs = number | string | UnparsedObject; +export type ActionQueryDebounceInMs = number | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryMockedOutputs.ts b/packages/datadog-api-client-v2/models/ActionQueryMockedOutputs.ts index 60b7acbce56f..8f9c6da24dfa 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryMockedOutputs.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryMockedOutputs.ts @@ -5,13 +5,15 @@ */ import { ActionQueryMockedOutputsObject } from "./ActionQueryMockedOutputsObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The mocked outputs of the action query. This is useful for testing the app without actually running the action. - */ +*/ -export type ActionQueryMockedOutputs = - | string - | ActionQueryMockedOutputsObject - | UnparsedObject; +export type ActionQueryMockedOutputs = string | ActionQueryMockedOutputsObject | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsEnabled.ts b/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsEnabled.ts index 320daa867035..4043a80f53ed 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsEnabled.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsEnabled.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether to enable the mocked outputs for testing. - */ +*/ -export type ActionQueryMockedOutputsEnabled = boolean | string | UnparsedObject; +export type ActionQueryMockedOutputsEnabled = boolean | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsObject.ts b/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsObject.ts index 0bb75d09b357..94fb79319554 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsObject.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryMockedOutputsObject.ts @@ -5,19 +5,24 @@ */ import { ActionQueryMockedOutputsEnabled } from "./ActionQueryMockedOutputsEnabled"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The mocked outputs of the action query. - */ +*/ export class ActionQueryMockedOutputsObject { /** * Whether to enable the mocked outputs for testing. - */ + */ "enabled": ActionQueryMockedOutputsEnabled; /** * The mocked outputs of the action query, serialized as JSON. - */ + */ "outputs"?: string; /** @@ -36,27 +41,53 @@ export class ActionQueryMockedOutputsObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "ActionQueryMockedOutputsEnabled", - required: true, + "enabled": { + "baseName": "enabled", + "type": "ActionQueryMockedOutputsEnabled", + "required": true, }, - outputs: { - baseName: "outputs", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "outputs": { + "baseName": "outputs", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionQueryMockedOutputsObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionQueryOnlyTriggerManually.ts b/packages/datadog-api-client-v2/models/ActionQueryOnlyTriggerManually.ts index c1942f9f7501..51a4e78bddbe 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryOnlyTriggerManually.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryOnlyTriggerManually.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Determines when this query is executed. If set to `false`, the query will run when the app loads and whenever any query arguments change. If set to `true`, the query will only run when manually triggered from elsewhere in the app. - */ +*/ -export type ActionQueryOnlyTriggerManually = boolean | string | UnparsedObject; +export type ActionQueryOnlyTriggerManually = boolean | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryPollingIntervalInMs.ts b/packages/datadog-api-client-v2/models/ActionQueryPollingIntervalInMs.ts index 771a6518a917..14aed47e9f90 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryPollingIntervalInMs.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryPollingIntervalInMs.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * If specified, the app will poll the query at the specified interval in milliseconds. The minimum polling interval is 15 seconds. The query will only poll when the app's browser tab is active. - */ +*/ -export type ActionQueryPollingIntervalInMs = number | string | UnparsedObject; +export type ActionQueryPollingIntervalInMs = number | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryProperties.ts b/packages/datadog-api-client-v2/models/ActionQueryProperties.ts index 3ef3a23c8ba8..753ac6a204a3 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryProperties.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryProperties.ts @@ -12,47 +12,52 @@ import { ActionQueryRequiresConfirmation } from "./ActionQueryRequiresConfirmati import { ActionQueryShowToastOnError } from "./ActionQueryShowToastOnError"; import { ActionQuerySpec } from "./ActionQuerySpec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The properties of the action query. - */ +*/ export class ActionQueryProperties { /** * Whether to run this query. If specified, the query will only run if this condition evaluates to `true` in JavaScript and all other conditions are also met. - */ + */ "condition"?: ActionQueryCondition; /** * The minimum time in milliseconds that must pass before the query can be triggered again. This is useful for preventing accidental double-clicks from triggering the query multiple times. - */ + */ "debounceInMs"?: ActionQueryDebounceInMs; /** * The mocked outputs of the action query. This is useful for testing the app without actually running the action. - */ + */ "mockedOutputs"?: ActionQueryMockedOutputs; /** * Determines when this query is executed. If set to `false`, the query will run when the app loads and whenever any query arguments change. If set to `true`, the query will only run when manually triggered from elsewhere in the app. - */ + */ "onlyTriggerManually"?: ActionQueryOnlyTriggerManually; /** * The post-query transformation function, which is a JavaScript function that changes the query's `.outputs` property after the query's execution. - */ + */ "outputs"?: string; /** * If specified, the app will poll the query at the specified interval in milliseconds. The minimum polling interval is 15 seconds. The query will only poll when the app's browser tab is active. - */ + */ "pollingIntervalInMs"?: ActionQueryPollingIntervalInMs; /** * Whether to prompt the user to confirm this query before it runs. - */ + */ "requiresConfirmation"?: ActionQueryRequiresConfirmation; /** * Whether to display a toast to the user when the query returns an error. - */ + */ "showToastOnError"?: ActionQueryShowToastOnError; /** * The definition of the action query. - */ + */ "spec": ActionQuerySpec; /** @@ -71,55 +76,81 @@ export class ActionQueryProperties { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - condition: { - baseName: "condition", - type: "ActionQueryCondition", + "condition": { + "baseName": "condition", + "type": "ActionQueryCondition", }, - debounceInMs: { - baseName: "debounceInMs", - type: "ActionQueryDebounceInMs", + "debounceInMs": { + "baseName": "debounceInMs", + "type": "ActionQueryDebounceInMs", }, - mockedOutputs: { - baseName: "mockedOutputs", - type: "ActionQueryMockedOutputs", + "mockedOutputs": { + "baseName": "mockedOutputs", + "type": "ActionQueryMockedOutputs", }, - onlyTriggerManually: { - baseName: "onlyTriggerManually", - type: "ActionQueryOnlyTriggerManually", + "onlyTriggerManually": { + "baseName": "onlyTriggerManually", + "type": "ActionQueryOnlyTriggerManually", }, - outputs: { - baseName: "outputs", - type: "string", + "outputs": { + "baseName": "outputs", + "type": "string", }, - pollingIntervalInMs: { - baseName: "pollingIntervalInMs", - type: "ActionQueryPollingIntervalInMs", + "pollingIntervalInMs": { + "baseName": "pollingIntervalInMs", + "type": "ActionQueryPollingIntervalInMs", }, - requiresConfirmation: { - baseName: "requiresConfirmation", - type: "ActionQueryRequiresConfirmation", + "requiresConfirmation": { + "baseName": "requiresConfirmation", + "type": "ActionQueryRequiresConfirmation", }, - showToastOnError: { - baseName: "showToastOnError", - type: "ActionQueryShowToastOnError", + "showToastOnError": { + "baseName": "showToastOnError", + "type": "ActionQueryShowToastOnError", }, - spec: { - baseName: "spec", - type: "ActionQuerySpec", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "spec": { + "baseName": "spec", + "type": "ActionQuerySpec", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionQueryProperties.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionQueryRequiresConfirmation.ts b/packages/datadog-api-client-v2/models/ActionQueryRequiresConfirmation.ts index 69fa393743e1..5db30c27c5b2 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryRequiresConfirmation.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryRequiresConfirmation.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether to prompt the user to confirm this query before it runs. - */ +*/ -export type ActionQueryRequiresConfirmation = boolean | string | UnparsedObject; +export type ActionQueryRequiresConfirmation = boolean | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQueryShowToastOnError.ts b/packages/datadog-api-client-v2/models/ActionQueryShowToastOnError.ts index 384f2efbe5d7..490511612358 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryShowToastOnError.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryShowToastOnError.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether to display a toast to the user when the query returns an error. - */ +*/ -export type ActionQueryShowToastOnError = boolean | string | UnparsedObject; +export type ActionQueryShowToastOnError = boolean | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQuerySpec.ts b/packages/datadog-api-client-v2/models/ActionQuerySpec.ts index f2f1b48378b9..0154ae6da48d 100644 --- a/packages/datadog-api-client-v2/models/ActionQuerySpec.ts +++ b/packages/datadog-api-client-v2/models/ActionQuerySpec.ts @@ -5,10 +5,15 @@ */ import { ActionQuerySpecObject } from "./ActionQuerySpecObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of the action query. - */ +*/ -export type ActionQuerySpec = string | ActionQuerySpecObject | UnparsedObject; +export type ActionQuerySpec = string | ActionQuerySpecObject | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQuerySpecConnectionGroup.ts b/packages/datadog-api-client-v2/models/ActionQuerySpecConnectionGroup.ts index ffcc1b4edfa0..f535b8661f31 100644 --- a/packages/datadog-api-client-v2/models/ActionQuerySpecConnectionGroup.ts +++ b/packages/datadog-api-client-v2/models/ActionQuerySpecConnectionGroup.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The connection group to use for an action query. - */ +*/ export class ActionQuerySpecConnectionGroup { /** * The ID of the connection group. - */ + */ "id"?: string; /** * The tags of the connection group. - */ + */ "tags"?: Array; /** @@ -35,27 +40,53 @@ export class ActionQuerySpecConnectionGroup { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionQuerySpecConnectionGroup.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionQuerySpecInputs.ts b/packages/datadog-api-client-v2/models/ActionQuerySpecInputs.ts index 612ed7498e14..44496cfdb27a 100644 --- a/packages/datadog-api-client-v2/models/ActionQuerySpecInputs.ts +++ b/packages/datadog-api-client-v2/models/ActionQuerySpecInputs.ts @@ -4,13 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The inputs to the action query. These are the values that are passed to the action when it is triggered. - */ +*/ -export type ActionQuerySpecInputs = - | string - | { [key: string]: any } - | UnparsedObject; +export type ActionQuerySpecInputs = string | { [key: string]: any; } | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActionQuerySpecObject.ts b/packages/datadog-api-client-v2/models/ActionQuerySpecObject.ts index 229c146189a8..f39034f65292 100644 --- a/packages/datadog-api-client-v2/models/ActionQuerySpecObject.ts +++ b/packages/datadog-api-client-v2/models/ActionQuerySpecObject.ts @@ -6,27 +6,32 @@ import { ActionQuerySpecConnectionGroup } from "./ActionQuerySpecConnectionGroup"; import { ActionQuerySpecInputs } from "./ActionQuerySpecInputs"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The action query spec object. - */ +*/ export class ActionQuerySpecObject { /** * The connection group to use for an action query. - */ + */ "connectionGroup"?: ActionQuerySpecConnectionGroup; /** * The ID of the custom connection to use for this action query. - */ + */ "connectionId"?: string; /** * The fully qualified name of the action type. - */ + */ "fqn": string; /** * The inputs to the action query. These are the values that are passed to the action when it is triggered. - */ + */ "inputs"?: ActionQuerySpecInputs; /** @@ -45,35 +50,61 @@ export class ActionQuerySpecObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - connectionGroup: { - baseName: "connectionGroup", - type: "ActionQuerySpecConnectionGroup", + "connectionGroup": { + "baseName": "connectionGroup", + "type": "ActionQuerySpecConnectionGroup", }, - connectionId: { - baseName: "connectionId", - type: "string", + "connectionId": { + "baseName": "connectionId", + "type": "string", }, - fqn: { - baseName: "fqn", - type: "string", - required: true, + "fqn": { + "baseName": "fqn", + "type": "string", + "required": true, }, - inputs: { - baseName: "inputs", - type: "ActionQuerySpecInputs", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "inputs": { + "baseName": "inputs", + "type": "ActionQuerySpecInputs", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActionQuerySpecObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActionQueryType.ts b/packages/datadog-api-client-v2/models/ActionQueryType.ts index 0ff38b1b7eac..edf1815e0412 100644 --- a/packages/datadog-api-client-v2/models/ActionQueryType.ts +++ b/packages/datadog-api-client-v2/models/ActionQueryType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The action query type. - */ +*/ export type ActionQueryType = typeof ACTION | UnparsedObject; -export const ACTION = "action"; +export const ACTION = 'action'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.ts b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.ts index 0b15353caf86..ca16c0a09f76 100644 --- a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.ts +++ b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of active billing dimensions. - */ +*/ export class ActiveBillingDimensionsAttributes { /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`. - */ + */ "month"?: Date; /** * List of active billing dimensions. Example: `[infra_host, apm_host, serverless_infra]`. - */ + */ "values"?: Array; /** @@ -35,27 +40,53 @@ export class ActiveBillingDimensionsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - month: { - baseName: "month", - type: "Date", - format: "date-time", + "month": { + "baseName": "month", + "type": "Date", + "format": "date-time", }, - values: { - baseName: "values", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActiveBillingDimensionsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.ts b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.ts index 00027babfbfc..9ce7c2ed846a 100644 --- a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.ts +++ b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.ts @@ -6,23 +6,28 @@ import { ActiveBillingDimensionsAttributes } from "./ActiveBillingDimensionsAttributes"; import { ActiveBillingDimensionsType } from "./ActiveBillingDimensionsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Active billing dimensions data. - */ +*/ export class ActiveBillingDimensionsBody { /** * List of active billing dimensions. - */ + */ "attributes"?: ActiveBillingDimensionsAttributes; /** * Unique ID of the response. - */ + */ "id"?: string; /** * Type of active billing dimensions data. - */ + */ "type"?: ActiveBillingDimensionsType; /** @@ -41,30 +46,56 @@ export class ActiveBillingDimensionsBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ActiveBillingDimensionsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ActiveBillingDimensionsAttributes", }, - type: { - baseName: "type", - type: "ActiveBillingDimensionsType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ActiveBillingDimensionsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActiveBillingDimensionsBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.ts b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.ts index fa556ac27139..99d898e6fdfd 100644 --- a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.ts +++ b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.ts @@ -5,15 +5,20 @@ */ import { ActiveBillingDimensionsBody } from "./ActiveBillingDimensionsBody"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Active billing dimensions response. - */ +*/ export class ActiveBillingDimensionsResponse { /** * Active billing dimensions data. - */ + */ "data"?: ActiveBillingDimensionsBody; /** @@ -32,22 +37,48 @@ export class ActiveBillingDimensionsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ActiveBillingDimensionsBody", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ActiveBillingDimensionsBody", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ActiveBillingDimensionsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.ts b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.ts index 3b7da839e7e1..bc4263e00f77 100644 --- a/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.ts +++ b/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of active billing dimensions data. - */ +*/ -export type ActiveBillingDimensionsType = - | typeof BILLING_DIMENSIONS - | UnparsedObject; -export const BILLING_DIMENSIONS = "billing_dimensions"; +export type ActiveBillingDimensionsType = typeof BILLING_DIMENSIONS | UnparsedObject; +export const BILLING_DIMENSIONS = 'billing_dimensions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Advisory.ts b/packages/datadog-api-client-v2/models/Advisory.ts index 2b327f48229e..c252f31e9129 100644 --- a/packages/datadog-api-client-v2/models/Advisory.ts +++ b/packages/datadog-api-client-v2/models/Advisory.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Advisory. - */ +*/ export class Advisory { /** * Advisory base severity. - */ + */ "baseSeverity": string; /** * Advisory id. - */ + */ "id": string; /** * Advisory Datadog severity. - */ + */ "severity"?: string; /** @@ -39,32 +44,58 @@ export class Advisory { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - baseSeverity: { - baseName: "base_severity", - type: "string", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "baseSeverity": { + "baseName": "base_severity", + "type": "string", + "required": true, }, - severity: { - baseName: "severity", - type: "string", + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "severity": { + "baseName": "severity", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Advisory.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Annotation.ts b/packages/datadog-api-client-v2/models/Annotation.ts index a5379d9eba01..a90e659ac2d0 100644 --- a/packages/datadog-api-client-v2/models/Annotation.ts +++ b/packages/datadog-api-client-v2/models/Annotation.ts @@ -6,23 +6,28 @@ import { AnnotationDisplay } from "./AnnotationDisplay"; import { AnnotationMarkdownTextAnnotation } from "./AnnotationMarkdownTextAnnotation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of annotations used in the workflow. These are like sticky notes for your workflow! - */ +*/ export class Annotation { /** * The definition of `AnnotationDisplay` object. - */ + */ "display": AnnotationDisplay; /** * The `Annotation` `id`. - */ + */ "id": string; /** * The definition of `AnnotationMarkdownTextAnnotation` object. - */ + */ "markdownTextAnnotation": AnnotationMarkdownTextAnnotation; /** @@ -41,33 +46,59 @@ export class Annotation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - display: { - baseName: "display", - type: "AnnotationDisplay", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "display": { + "baseName": "display", + "type": "AnnotationDisplay", + "required": true, }, - markdownTextAnnotation: { - baseName: "markdownTextAnnotation", - type: "AnnotationMarkdownTextAnnotation", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "markdownTextAnnotation": { + "baseName": "markdownTextAnnotation", + "type": "AnnotationMarkdownTextAnnotation", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Annotation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AnnotationDisplay.ts b/packages/datadog-api-client-v2/models/AnnotationDisplay.ts index ac042f08e948..d2587a3aa1af 100644 --- a/packages/datadog-api-client-v2/models/AnnotationDisplay.ts +++ b/packages/datadog-api-client-v2/models/AnnotationDisplay.ts @@ -5,15 +5,20 @@ */ import { AnnotationDisplayBounds } from "./AnnotationDisplayBounds"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AnnotationDisplay` object. - */ +*/ export class AnnotationDisplay { /** * The definition of `AnnotationDisplayBounds` object. - */ + */ "bounds"?: AnnotationDisplayBounds; /** @@ -32,22 +37,48 @@ export class AnnotationDisplay { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bounds: { - baseName: "bounds", - type: "AnnotationDisplayBounds", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "bounds": { + "baseName": "bounds", + "type": "AnnotationDisplayBounds", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AnnotationDisplay.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AnnotationDisplayBounds.ts b/packages/datadog-api-client-v2/models/AnnotationDisplayBounds.ts index a2f466425248..674faebd779c 100644 --- a/packages/datadog-api-client-v2/models/AnnotationDisplayBounds.ts +++ b/packages/datadog-api-client-v2/models/AnnotationDisplayBounds.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AnnotationDisplayBounds` object. - */ +*/ export class AnnotationDisplayBounds { /** * The `bounds` `height`. - */ + */ "height"?: number; /** * The `bounds` `width`. - */ + */ "width"?: number; /** * The `bounds` `x`. - */ + */ "x"?: number; /** * The `bounds` `y`. - */ + */ "y"?: number; /** @@ -43,38 +48,64 @@ export class AnnotationDisplayBounds { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - format: "double", + "height": { + "baseName": "height", + "type": "number", + "format": "double", }, - width: { - baseName: "width", - type: "number", - format: "double", + "width": { + "baseName": "width", + "type": "number", + "format": "double", }, - x: { - baseName: "x", - type: "number", - format: "double", + "x": { + "baseName": "x", + "type": "number", + "format": "double", }, - y: { - baseName: "y", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AnnotationDisplayBounds.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AnnotationMarkdownTextAnnotation.ts b/packages/datadog-api-client-v2/models/AnnotationMarkdownTextAnnotation.ts index f4315f9b2756..bb8226a93761 100644 --- a/packages/datadog-api-client-v2/models/AnnotationMarkdownTextAnnotation.ts +++ b/packages/datadog-api-client-v2/models/AnnotationMarkdownTextAnnotation.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `AnnotationMarkdownTextAnnotation` object. - */ +*/ export class AnnotationMarkdownTextAnnotation { /** * The `markdownTextAnnotation` `text`. - */ + */ "text"?: string; /** @@ -31,22 +36,48 @@ export class AnnotationMarkdownTextAnnotation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - text: { - baseName: "text", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "text": { + "baseName": "text", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AnnotationMarkdownTextAnnotation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApmRetentionFilterType.ts b/packages/datadog-api-client-v2/models/ApmRetentionFilterType.ts index 31bfbcd9c7a7..f8d49acf8d08 100644 --- a/packages/datadog-api-client-v2/models/ApmRetentionFilterType.ts +++ b/packages/datadog-api-client-v2/models/ApmRetentionFilterType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. - */ +*/ -export type ApmRetentionFilterType = - | typeof apm_retention_filter - | UnparsedObject; -export const apm_retention_filter = "apm_retention_filter"; +export type ApmRetentionFilterType = typeof apm_retention_filter | UnparsedObject; +export const apm_retention_filter = 'apm_retention_filter'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AppBuilderEvent.ts b/packages/datadog-api-client-v2/models/AppBuilderEvent.ts index 0c96d9403d48..92ceb18deb5d 100644 --- a/packages/datadog-api-client-v2/models/AppBuilderEvent.ts +++ b/packages/datadog-api-client-v2/models/AppBuilderEvent.ts @@ -6,19 +6,24 @@ import { AppBuilderEventName } from "./AppBuilderEventName"; import { AppBuilderEventType } from "./AppBuilderEventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An event on a UI component that triggers a response or action in an app. - */ +*/ export class AppBuilderEvent { /** * The triggering action for the event. - */ + */ "name"?: AppBuilderEventName; /** * The response to the event. - */ + */ "type"?: AppBuilderEventType; /** @@ -37,26 +42,52 @@ export class AppBuilderEvent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "AppBuilderEventName", + "name": { + "baseName": "name", + "type": "AppBuilderEventName", }, - type: { - baseName: "type", - type: "AppBuilderEventType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppBuilderEventType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AppBuilderEvent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AppBuilderEventName.ts b/packages/datadog-api-client-v2/models/AppBuilderEventName.ts index 4cbc53477931..82dad1e3d8a7 100644 --- a/packages/datadog-api-client-v2/models/AppBuilderEventName.ts +++ b/packages/datadog-api-client-v2/models/AppBuilderEventName.ts @@ -4,31 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The triggering action for the event. - */ +*/ -export type AppBuilderEventName = - | typeof PAGECHANGE - | typeof TABLEROWCLICK - | typeof TABLEROWBUTTONCLICK - | typeof CHANGE - | typeof SUBMIT - | typeof CLICK - | typeof TOGGLEOPEN - | typeof CLOSE - | typeof OPEN - | typeof EXECUTIONFINISHED - | UnparsedObject; -export const PAGECHANGE = "pageChange"; -export const TABLEROWCLICK = "tableRowClick"; -export const TABLEROWBUTTONCLICK = "_tableRowButtonClick"; -export const CHANGE = "change"; -export const SUBMIT = "submit"; -export const CLICK = "click"; -export const TOGGLEOPEN = "toggleOpen"; -export const CLOSE = "close"; -export const OPEN = "open"; -export const EXECUTIONFINISHED = "executionFinished"; +export type AppBuilderEventName = typeof PAGECHANGE| typeof TABLEROWCLICK| typeof TABLEROWBUTTONCLICK| typeof CHANGE| typeof SUBMIT| typeof CLICK| typeof TOGGLEOPEN| typeof CLOSE| typeof OPEN| typeof EXECUTIONFINISHED | UnparsedObject; +export const PAGECHANGE = 'pageChange'; +export const TABLEROWCLICK = 'tableRowClick'; +export const TABLEROWBUTTONCLICK = '_tableRowButtonClick'; +export const CHANGE = 'change'; +export const SUBMIT = 'submit'; +export const CLICK = 'click'; +export const TOGGLEOPEN = 'toggleOpen'; +export const CLOSE = 'close'; +export const OPEN = 'open'; +export const EXECUTIONFINISHED = 'executionFinished'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AppBuilderEventType.ts b/packages/datadog-api-client-v2/models/AppBuilderEventType.ts index 6e269c313cdd..8bc809c00684 100644 --- a/packages/datadog-api-client-v2/models/AppBuilderEventType.ts +++ b/packages/datadog-api-client-v2/models/AppBuilderEventType.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The response to the event. - */ +*/ -export type AppBuilderEventType = - | typeof CUSTOM - | typeof SETCOMPONENTSTATE - | typeof TRIGGERQUERY - | typeof OPENMODAL - | typeof CLOSEMODAL - | typeof OPENURL - | typeof DOWNLOADFILE - | typeof SETSTATEVARIABLEVALUE - | UnparsedObject; -export const CUSTOM = "custom"; -export const SETCOMPONENTSTATE = "setComponentState"; -export const TRIGGERQUERY = "triggerQuery"; -export const OPENMODAL = "openModal"; -export const CLOSEMODAL = "closeModal"; -export const OPENURL = "openUrl"; -export const DOWNLOADFILE = "downloadFile"; -export const SETSTATEVARIABLEVALUE = "setStateVariableValue"; +export type AppBuilderEventType = typeof CUSTOM| typeof SETCOMPONENTSTATE| typeof TRIGGERQUERY| typeof OPENMODAL| typeof CLOSEMODAL| typeof OPENURL| typeof DOWNLOADFILE| typeof SETSTATEVARIABLEVALUE | UnparsedObject; +export const CUSTOM = 'custom'; +export const SETCOMPONENTSTATE = 'setComponentState'; +export const TRIGGERQUERY = 'triggerQuery'; +export const OPENMODAL = 'openModal'; +export const CLOSEMODAL = 'closeModal'; +export const OPENURL = 'openUrl'; +export const DOWNLOADFILE = 'downloadFile'; +export const SETSTATEVARIABLEVALUE = 'setStateVariableValue'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AppDefinitionType.ts b/packages/datadog-api-client-v2/models/AppDefinitionType.ts index 5e3f9666a744..cece305ca61b 100644 --- a/packages/datadog-api-client-v2/models/AppDefinitionType.ts +++ b/packages/datadog-api-client-v2/models/AppDefinitionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The app definition type. - */ +*/ export type AppDefinitionType = typeof APPDEFINITIONS | UnparsedObject; -export const APPDEFINITIONS = "appDefinitions"; +export const APPDEFINITIONS = 'appDefinitions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AppDeploymentType.ts b/packages/datadog-api-client-v2/models/AppDeploymentType.ts index 7f3c340a94fd..f79e98bcf09e 100644 --- a/packages/datadog-api-client-v2/models/AppDeploymentType.ts +++ b/packages/datadog-api-client-v2/models/AppDeploymentType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The deployment type. - */ +*/ export type AppDeploymentType = typeof DEPLOYMENT | UnparsedObject; -export const DEPLOYMENT = "deployment"; +export const DEPLOYMENT = 'deployment'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AppMeta.ts b/packages/datadog-api-client-v2/models/AppMeta.ts index 378faad57051..c1dfa0c69bb1 100644 --- a/packages/datadog-api-client-v2/models/AppMeta.ts +++ b/packages/datadog-api-client-v2/models/AppMeta.ts @@ -4,47 +4,52 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata of an app. - */ +*/ export class AppMeta { /** * Timestamp of when the app was created. - */ + */ "createdAt"?: Date; /** * Timestamp of when the app was deleted. - */ + */ "deletedAt"?: Date; /** * The Datadog organization ID that owns the app. - */ + */ "orgId"?: number; /** * Timestamp of when the app was last updated. - */ + */ "updatedAt"?: Date; /** * Whether the app was updated since it was last published. Published apps are pinned to a specific version and do not automatically update when the app is updated. - */ + */ "updatedSinceDeployment"?: boolean; /** * The ID of the user who created the app. - */ + */ "userId"?: number; /** * The name (or email address) of the user who created the app. - */ + */ "userName"?: string; /** * The UUID of the user who created the app. - */ + */ "userUuid"?: string; /** * The version number of the app. This starts at 1 and increments with each update. - */ + */ "version"?: number; /** @@ -63,61 +68,87 @@ export class AppMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - deletedAt: { - baseName: "deleted_at", - type: "Date", - format: "date-time", + "deletedAt": { + "baseName": "deleted_at", + "type": "Date", + "format": "date-time", }, - orgId: { - baseName: "org_id", - type: "number", - format: "int64", + "orgId": { + "baseName": "org_id", + "type": "number", + "format": "int64", }, - updatedAt: { - baseName: "updated_at", - type: "Date", - format: "date-time", + "updatedAt": { + "baseName": "updated_at", + "type": "Date", + "format": "date-time", }, - updatedSinceDeployment: { - baseName: "updated_since_deployment", - type: "boolean", + "updatedSinceDeployment": { + "baseName": "updated_since_deployment", + "type": "boolean", }, - userId: { - baseName: "user_id", - type: "number", - format: "int64", + "userId": { + "baseName": "user_id", + "type": "number", + "format": "int64", }, - userName: { - baseName: "user_name", - type: "string", + "userName": { + "baseName": "user_name", + "type": "string", }, - userUuid: { - baseName: "user_uuid", - type: "string", - format: "uuid", + "userUuid": { + "baseName": "user_uuid", + "type": "string", + "format": "uuid", }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AppMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AppRelationship.ts b/packages/datadog-api-client-v2/models/AppRelationship.ts index 11ad07922578..b7c8befcefc5 100644 --- a/packages/datadog-api-client-v2/models/AppRelationship.ts +++ b/packages/datadog-api-client-v2/models/AppRelationship.ts @@ -6,19 +6,24 @@ import { CustomConnection } from "./CustomConnection"; import { DeploymentRelationship } from "./DeploymentRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The app's publication relationship and custom connections. - */ +*/ export class AppRelationship { /** * Array of custom connections used by the app. - */ + */ "connections"?: Array; /** * Information pointing to the app's publication status. - */ + */ "deployment"?: DeploymentRelationship; /** @@ -37,26 +42,52 @@ export class AppRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - connections: { - baseName: "connections", - type: "Array", + "connections": { + "baseName": "connections", + "type": "Array", }, - deployment: { - baseName: "deployment", - type: "DeploymentRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deployment": { + "baseName": "deployment", + "type": "DeploymentRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AppRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AppTriggerWrapper.ts b/packages/datadog-api-client-v2/models/AppTriggerWrapper.ts index d219a051a2d4..325cd9aa1264 100644 --- a/packages/datadog-api-client-v2/models/AppTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/AppTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for an App-based trigger. - */ +*/ export class AppTriggerWrapper { /** * Trigger a workflow from an App. - */ + */ "appTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class AppTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - appTrigger: { - baseName: "appTrigger", - type: "any", - required: true, + "appTrigger": { + "baseName": "appTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AppTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyCreateAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationKeyCreateAttributes.ts index 82a5d70257e4..e5d33a481ad9 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyCreateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes used to create an application Key. - */ +*/ export class ApplicationKeyCreateAttributes { /** * Name of the application key. - */ + */ "name": string; /** * Array of scopes to grant the application key. - */ + */ "scopes"?: Array; /** @@ -35,27 +40,53 @@ export class ApplicationKeyCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - scopes: { - baseName: "scopes", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scopes": { + "baseName": "scopes", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyCreateData.ts b/packages/datadog-api-client-v2/models/ApplicationKeyCreateData.ts index bab7d486c163..ab543f374edb 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyCreateData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyCreateData.ts @@ -6,19 +6,24 @@ import { ApplicationKeyCreateAttributes } from "./ApplicationKeyCreateAttributes"; import { ApplicationKeysType } from "./ApplicationKeysType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object used to create an application key. - */ +*/ export class ApplicationKeyCreateData { /** * Attributes used to create an application Key. - */ + */ "attributes": ApplicationKeyCreateAttributes; /** * Application Keys resource type. - */ + */ "type": ApplicationKeysType; /** @@ -37,28 +42,54 @@ export class ApplicationKeyCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationKeyCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ApplicationKeyCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApplicationKeysType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationKeysType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyCreateRequest.ts b/packages/datadog-api-client-v2/models/ApplicationKeyCreateRequest.ts index f5602cc064d0..d909e9c41d18 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyCreateRequest.ts @@ -5,15 +5,20 @@ */ import { ApplicationKeyCreateData } from "./ApplicationKeyCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to create an application key. - */ +*/ export class ApplicationKeyCreateRequest { /** * Object used to create an application key. - */ + */ "data": ApplicationKeyCreateData; /** @@ -32,23 +37,49 @@ export class ApplicationKeyCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationKeyCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationKeyCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyRelationships.ts b/packages/datadog-api-client-v2/models/ApplicationKeyRelationships.ts index a0fd6a231e98..20d73d6685e2 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyRelationships.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Resources related to the application key. - */ +*/ export class ApplicationKeyRelationships { /** * Relationship to user. - */ + */ "ownedBy"?: RelationshipToUser; /** @@ -32,22 +37,48 @@ export class ApplicationKeyRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ownedBy: { - baseName: "owned_by", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ownedBy": { + "baseName": "owned_by", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyResponse.ts b/packages/datadog-api-client-v2/models/ApplicationKeyResponse.ts index e0bab0dd2696..a3ac20e73d37 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyResponse.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyResponse.ts @@ -6,19 +6,24 @@ import { ApplicationKeyResponseIncludedItem } from "./ApplicationKeyResponseIncludedItem"; import { FullApplicationKey } from "./FullApplicationKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving an application key. - */ +*/ export class ApplicationKeyResponse { /** * Datadog application key. - */ + */ "data"?: FullApplicationKey; /** * Array of objects related to the application key. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class ApplicationKeyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FullApplicationKey", + "data": { + "baseName": "data", + "type": "FullApplicationKey", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/ApplicationKeyResponseIncludedItem.ts index 4bb0281789bb..98a63305e680 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyResponseIncludedItem.ts @@ -7,14 +7,15 @@ import { LeakedKey } from "./LeakedKey"; import { Role } from "./Role"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an application key. - */ +*/ -export type ApplicationKeyResponseIncludedItem = - | User - | Role - | LeakedKey - | UnparsedObject; +export type ApplicationKeyResponseIncludedItem = User | Role | LeakedKey | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.ts b/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.ts index d63f0048a9d3..d4e159bf7676 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.ts @@ -5,19 +5,24 @@ */ import { ApplicationKeyResponseMetaPage } from "./ApplicationKeyResponseMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional information related to the application key response. - */ +*/ export class ApplicationKeyResponseMeta { /** * Max allowed number of application keys per user. - */ + */ "maxAllowedPerUser"?: number; /** * Additional information related to the application key response. - */ + */ "page"?: ApplicationKeyResponseMetaPage; /** @@ -36,27 +41,53 @@ export class ApplicationKeyResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - maxAllowedPerUser: { - baseName: "max_allowed_per_user", - type: "number", - format: "int64", + "maxAllowedPerUser": { + "baseName": "max_allowed_per_user", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "ApplicationKeyResponseMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "ApplicationKeyResponseMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.ts b/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.ts index f9a71016c5a0..6eda534b3088 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional information related to the application key response. - */ +*/ export class ApplicationKeyResponseMetaPage { /** * Total filtered application key count. - */ + */ "totalFilteredCount"?: number; /** @@ -31,23 +36,49 @@ export class ApplicationKeyResponseMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyResponseMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyUpdateAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationKeyUpdateAttributes.ts index b34bf820e89c..2404f3e806f8 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyUpdateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes used to update an application Key. - */ +*/ export class ApplicationKeyUpdateAttributes { /** * Name of the application key. - */ + */ "name"?: string; /** * Array of scopes to grant the application key. - */ + */ "scopes"?: Array; /** @@ -35,26 +40,52 @@ export class ApplicationKeyUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - scopes: { - baseName: "scopes", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scopes": { + "baseName": "scopes", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyUpdateData.ts b/packages/datadog-api-client-v2/models/ApplicationKeyUpdateData.ts index d4ed95a37cda..d61e639093fb 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyUpdateData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyUpdateData.ts @@ -6,23 +6,28 @@ import { ApplicationKeysType } from "./ApplicationKeysType"; import { ApplicationKeyUpdateAttributes } from "./ApplicationKeyUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object used to update an application key. - */ +*/ export class ApplicationKeyUpdateData { /** * Attributes used to update an application Key. - */ + */ "attributes": ApplicationKeyUpdateAttributes; /** * ID of the application key. - */ + */ "id": string; /** * Application Keys resource type. - */ + */ "type": ApplicationKeysType; /** @@ -41,33 +46,59 @@ export class ApplicationKeyUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationKeyUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ApplicationKeyUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApplicationKeysType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationKeysType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeyUpdateRequest.ts b/packages/datadog-api-client-v2/models/ApplicationKeyUpdateRequest.ts index 8b8aabc8c095..85c3692c50b9 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeyUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeyUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { ApplicationKeyUpdateData } from "./ApplicationKeyUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to update an application key. - */ +*/ export class ApplicationKeyUpdateRequest { /** * Object used to update an application key. - */ + */ "data": ApplicationKeyUpdateData; /** @@ -32,23 +37,49 @@ export class ApplicationKeyUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationKeyUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationKeyUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationKeyUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationKeysSort.ts b/packages/datadog-api-client-v2/models/ApplicationKeysSort.ts index 4c859d4ea6e2..e209594d4768 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeysSort.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeysSort.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sorting options - */ +*/ -export type ApplicationKeysSort = - | typeof CREATED_AT_ASCENDING - | typeof CREATED_AT_DESCENDING - | typeof LAST4_ASCENDING - | typeof LAST4_DESCENDING - | typeof NAME_ASCENDING - | typeof NAME_DESCENDING - | UnparsedObject; -export const CREATED_AT_ASCENDING = "created_at"; -export const CREATED_AT_DESCENDING = "-created_at"; -export const LAST4_ASCENDING = "last4"; -export const LAST4_DESCENDING = "-last4"; -export const NAME_ASCENDING = "name"; -export const NAME_DESCENDING = "-name"; +export type ApplicationKeysSort = typeof CREATED_AT_ASCENDING| typeof CREATED_AT_DESCENDING| typeof LAST4_ASCENDING| typeof LAST4_DESCENDING| typeof NAME_ASCENDING| typeof NAME_DESCENDING | UnparsedObject; +export const CREATED_AT_ASCENDING = 'created_at'; +export const CREATED_AT_DESCENDING = '-created_at'; +export const LAST4_ASCENDING = 'last4'; +export const LAST4_DESCENDING = '-last4'; +export const NAME_ASCENDING = 'name'; +export const NAME_DESCENDING = '-name'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationKeysType.ts b/packages/datadog-api-client-v2/models/ApplicationKeysType.ts index ee4f23299777..99b5ae2715dc 100644 --- a/packages/datadog-api-client-v2/models/ApplicationKeysType.ts +++ b/packages/datadog-api-client-v2/models/ApplicationKeysType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Application Keys resource type. - */ +*/ export type ApplicationKeysType = typeof APPLICATION_KEYS | UnparsedObject; -export const APPLICATION_KEYS = "application_keys"; +export const APPLICATION_KEYS = 'application_keys'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAction.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAction.ts index 1c171cc05257..d208f7c128e4 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAction.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAction.ts @@ -6,19 +6,24 @@ import { ApplicationSecurityWafCustomRuleActionAction } from "./ApplicationSecurityWafCustomRuleActionAction"; import { ApplicationSecurityWafCustomRuleActionParameters } from "./ApplicationSecurityWafCustomRuleActionParameters"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `ApplicationSecurityWafCustomRuleAction` object. - */ +*/ export class ApplicationSecurityWafCustomRuleAction { /** * Override the default action to take when the WAF custom rule would block. - */ + */ "action"?: ApplicationSecurityWafCustomRuleActionAction; /** * The definition of `ApplicationSecurityWafCustomRuleActionParameters` object. - */ + */ "parameters"?: ApplicationSecurityWafCustomRuleActionParameters; /** @@ -37,26 +42,52 @@ export class ApplicationSecurityWafCustomRuleAction { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "ApplicationSecurityWafCustomRuleActionAction", + "action": { + "baseName": "action", + "type": "ApplicationSecurityWafCustomRuleActionAction", }, - parameters: { - baseName: "parameters", - type: "ApplicationSecurityWafCustomRuleActionParameters", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "parameters": { + "baseName": "parameters", + "type": "ApplicationSecurityWafCustomRuleActionParameters", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleAction.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionAction.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionAction.ts index d07f018f975b..1bbe5f82d0ac 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionAction.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionAction.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Override the default action to take when the WAF custom rule would block. - */ +*/ -export type ApplicationSecurityWafCustomRuleActionAction = - | typeof REDIRECT_REQUEST - | typeof BLOCK_REQUEST - | UnparsedObject; -export const REDIRECT_REQUEST = "redirect_request"; -export const BLOCK_REQUEST = "block_request"; +export type ApplicationSecurityWafCustomRuleActionAction = typeof REDIRECT_REQUEST| typeof BLOCK_REQUEST | UnparsedObject; +export const REDIRECT_REQUEST = 'redirect_request'; +export const BLOCK_REQUEST = 'block_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionParameters.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionParameters.ts index 531a70b3a8d8..2aad15fe2bef 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionParameters.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleActionParameters.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `ApplicationSecurityWafCustomRuleActionParameters` object. - */ +*/ export class ApplicationSecurityWafCustomRuleActionParameters { /** * The location to redirect to when the WAF custom rule triggers. - */ + */ "location"?: string; /** * The status code to return when the WAF custom rule triggers. - */ + */ "statusCode"?: number; /** @@ -35,27 +40,53 @@ export class ApplicationSecurityWafCustomRuleActionParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - location: { - baseName: "location", - type: "string", + "location": { + "baseName": "location", + "type": "string", }, - statusCode: { - baseName: "status_code", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "statusCode": { + "baseName": "status_code", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleActionParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAttributes.ts index 5d5c81ddb3c7..8a45960e4846 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleAttributes.ts @@ -9,49 +9,54 @@ import { ApplicationSecurityWafCustomRuleMetadata } from "./ApplicationSecurityW import { ApplicationSecurityWafCustomRuleScope } from "./ApplicationSecurityWafCustomRuleScope"; import { ApplicationSecurityWafCustomRuleTags } from "./ApplicationSecurityWafCustomRuleTags"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleAttributes { /** * The definition of `ApplicationSecurityWafCustomRuleAction` object. - */ + */ "action"?: ApplicationSecurityWafCustomRuleAction; /** * Indicates whether the WAF custom rule will block the request. - */ + */ "blocking": boolean; /** * Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF * rule to trigger. - */ + */ "conditions": Array; /** * Indicates whether the WAF custom rule is enabled. - */ + */ "enabled": boolean; /** * Metadata associated with the WAF Custom Rule. - */ + */ "metadata"?: ApplicationSecurityWafCustomRuleMetadata; /** * The Name of the WAF custom rule. - */ + */ "name": string; /** * The path glob for the WAF custom rule. - */ + */ "pathGlob"?: string; /** * The scope of the WAF custom rule. - */ + */ "scope"?: Array; /** * Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security * activity field associated with the traces. - */ + */ "tags": ApplicationSecurityWafCustomRuleTags; /** @@ -70,59 +75,85 @@ export class ApplicationSecurityWafCustomRuleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "ApplicationSecurityWafCustomRuleAction", + "action": { + "baseName": "action", + "type": "ApplicationSecurityWafCustomRuleAction", }, - blocking: { - baseName: "blocking", - type: "boolean", - required: true, + "blocking": { + "baseName": "blocking", + "type": "boolean", + "required": true, }, - conditions: { - baseName: "conditions", - type: "Array", - required: true, + "conditions": { + "baseName": "conditions", + "type": "Array", + "required": true, }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - metadata: { - baseName: "metadata", - type: "ApplicationSecurityWafCustomRuleMetadata", + "metadata": { + "baseName": "metadata", + "type": "ApplicationSecurityWafCustomRuleMetadata", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - pathGlob: { - baseName: "path_glob", - type: "string", + "pathGlob": { + "baseName": "path_glob", + "type": "string", }, - scope: { - baseName: "scope", - type: "Array", + "scope": { + "baseName": "scope", + "type": "Array", }, - tags: { - baseName: "tags", - type: "ApplicationSecurityWafCustomRuleTags", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "ApplicationSecurityWafCustomRuleTags", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCondition.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCondition.ts index 2057af05c38e..124c839b2d67 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCondition.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCondition.ts @@ -6,19 +6,24 @@ import { ApplicationSecurityWafCustomRuleConditionOperator } from "./ApplicationSecurityWafCustomRuleConditionOperator"; import { ApplicationSecurityWafCustomRuleConditionParameters } from "./ApplicationSecurityWafCustomRuleConditionParameters"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * One condition of the WAF Custom Rule. - */ +*/ export class ApplicationSecurityWafCustomRuleCondition { /** * Operator to use for the WAF Condition. - */ + */ "operator": ApplicationSecurityWafCustomRuleConditionOperator; /** * The scope of the WAF custom rule. - */ + */ "parameters": ApplicationSecurityWafCustomRuleConditionParameters; /** @@ -37,28 +42,54 @@ export class ApplicationSecurityWafCustomRuleCondition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operator: { - baseName: "operator", - type: "ApplicationSecurityWafCustomRuleConditionOperator", - required: true, + "operator": { + "baseName": "operator", + "type": "ApplicationSecurityWafCustomRuleConditionOperator", + "required": true, }, - parameters: { - baseName: "parameters", - type: "ApplicationSecurityWafCustomRuleConditionParameters", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "parameters": { + "baseName": "parameters", + "type": "ApplicationSecurityWafCustomRuleConditionParameters", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleCondition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInput.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInput.ts index 630da294a7b2..5c579402cd7d 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInput.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInput.ts @@ -5,19 +5,24 @@ */ import { ApplicationSecurityWafCustomRuleConditionInputAddress } from "./ApplicationSecurityWafCustomRuleConditionInputAddress"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Input from the request on which the condition should apply. - */ +*/ export class ApplicationSecurityWafCustomRuleConditionInput { /** * Input from the request on which the condition should apply. - */ + */ "address": ApplicationSecurityWafCustomRuleConditionInputAddress; /** * Specific path for the input. - */ + */ "keyPath"?: Array; /** @@ -36,27 +41,53 @@ export class ApplicationSecurityWafCustomRuleConditionInput { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - address: { - baseName: "address", - type: "ApplicationSecurityWafCustomRuleConditionInputAddress", - required: true, + "address": { + "baseName": "address", + "type": "ApplicationSecurityWafCustomRuleConditionInputAddress", + "required": true, }, - keyPath: { - baseName: "key_path", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "keyPath": { + "baseName": "key_path", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleConditionInput.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInputAddress.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInputAddress.ts index e9d48854fcc7..a7036edba73f 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInputAddress.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionInputAddress.ts @@ -4,55 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Input from the request on which the condition should apply. - */ +*/ -export type ApplicationSecurityWafCustomRuleConditionInputAddress = - | typeof SERVER_DB_STATEMENT - | typeof SERVER_IO_FS_FILE - | typeof SERVER_IO_NET_URL - | typeof SERVER_SYS_SHELL_CMD - | typeof SERVER_REQUEST_METHOD - | typeof SERVER_REQUEST_URI_RAW - | typeof SERVER_REQUEST_PATH_PARAMS - | typeof SERVER_REQUEST_QUERY - | typeof SERVER_REQUEST_HEADERS_NO_COOKIES - | typeof SERVER_REQUEST_COOKIES - | typeof SERVER_REQUEST_TRAILERS - | typeof SERVER_REQUEST_BODY - | typeof SERVER_RESPONSE_STATUS - | typeof SERVER_RESPONSE_HEADERS_NO_COOKIES - | typeof SERVER_RESPONSE_TRAILERS - | typeof GRPC_SERVER_REQUEST_METADATA - | typeof GRPC_SERVER_REQUEST_MESSAGE - | typeof GRPC_SERVER_METHOD - | typeof GRAPHQL_SERVER_ALL_RESOLVERS - | typeof USR_ID - | typeof HTTP_CLIENT_IP - | UnparsedObject; -export const SERVER_DB_STATEMENT = "server.db.statement"; -export const SERVER_IO_FS_FILE = "server.io.fs.file"; -export const SERVER_IO_NET_URL = "server.io.net.url"; -export const SERVER_SYS_SHELL_CMD = "server.sys.shell.cmd"; -export const SERVER_REQUEST_METHOD = "server.request.method"; -export const SERVER_REQUEST_URI_RAW = "server.request.uri.raw"; -export const SERVER_REQUEST_PATH_PARAMS = "server.request.path_params"; -export const SERVER_REQUEST_QUERY = "server.request.query"; -export const SERVER_REQUEST_HEADERS_NO_COOKIES = - "server.request.headers.no_cookies"; -export const SERVER_REQUEST_COOKIES = "server.request.cookies"; -export const SERVER_REQUEST_TRAILERS = "server.request.trailers"; -export const SERVER_REQUEST_BODY = "server.request.body"; -export const SERVER_RESPONSE_STATUS = "server.response.status"; -export const SERVER_RESPONSE_HEADERS_NO_COOKIES = - "server.response.headers.no_cookies"; -export const SERVER_RESPONSE_TRAILERS = "server.response.trailers"; -export const GRPC_SERVER_REQUEST_METADATA = "grpc.server.request.metadata"; -export const GRPC_SERVER_REQUEST_MESSAGE = "grpc.server.request.message"; -export const GRPC_SERVER_METHOD = "grpc.server.method"; -export const GRAPHQL_SERVER_ALL_RESOLVERS = "graphql.server.all_resolvers"; -export const USR_ID = "usr.id"; -export const HTTP_CLIENT_IP = "http.client_ip"; +export type ApplicationSecurityWafCustomRuleConditionInputAddress = typeof SERVER_DB_STATEMENT| typeof SERVER_IO_FS_FILE| typeof SERVER_IO_NET_URL| typeof SERVER_SYS_SHELL_CMD| typeof SERVER_REQUEST_METHOD| typeof SERVER_REQUEST_URI_RAW| typeof SERVER_REQUEST_PATH_PARAMS| typeof SERVER_REQUEST_QUERY| typeof SERVER_REQUEST_HEADERS_NO_COOKIES| typeof SERVER_REQUEST_COOKIES| typeof SERVER_REQUEST_TRAILERS| typeof SERVER_REQUEST_BODY| typeof SERVER_RESPONSE_STATUS| typeof SERVER_RESPONSE_HEADERS_NO_COOKIES| typeof SERVER_RESPONSE_TRAILERS| typeof GRPC_SERVER_REQUEST_METADATA| typeof GRPC_SERVER_REQUEST_MESSAGE| typeof GRPC_SERVER_METHOD| typeof GRAPHQL_SERVER_ALL_RESOLVERS| typeof USR_ID| typeof HTTP_CLIENT_IP | UnparsedObject; +export const SERVER_DB_STATEMENT = 'server.db.statement'; +export const SERVER_IO_FS_FILE = 'server.io.fs.file'; +export const SERVER_IO_NET_URL = 'server.io.net.url'; +export const SERVER_SYS_SHELL_CMD = 'server.sys.shell.cmd'; +export const SERVER_REQUEST_METHOD = 'server.request.method'; +export const SERVER_REQUEST_URI_RAW = 'server.request.uri.raw'; +export const SERVER_REQUEST_PATH_PARAMS = 'server.request.path_params'; +export const SERVER_REQUEST_QUERY = 'server.request.query'; +export const SERVER_REQUEST_HEADERS_NO_COOKIES = 'server.request.headers.no_cookies'; +export const SERVER_REQUEST_COOKIES = 'server.request.cookies'; +export const SERVER_REQUEST_TRAILERS = 'server.request.trailers'; +export const SERVER_REQUEST_BODY = 'server.request.body'; +export const SERVER_RESPONSE_STATUS = 'server.response.status'; +export const SERVER_RESPONSE_HEADERS_NO_COOKIES = 'server.response.headers.no_cookies'; +export const SERVER_RESPONSE_TRAILERS = 'server.response.trailers'; +export const GRPC_SERVER_REQUEST_METADATA = 'grpc.server.request.metadata'; +export const GRPC_SERVER_REQUEST_MESSAGE = 'grpc.server.request.message'; +export const GRPC_SERVER_METHOD = 'grpc.server.method'; +export const GRAPHQL_SERVER_ALL_RESOLVERS = 'graphql.server.all_resolvers'; +export const USR_ID = 'usr.id'; +export const HTTP_CLIENT_IP = 'http.client_ip'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOperator.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOperator.ts index 2be8ddfa403d..5572ab8945a5 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOperator.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOperator.ts @@ -4,33 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Operator to use for the WAF Condition. - */ +*/ -export type ApplicationSecurityWafCustomRuleConditionOperator = - | typeof MATCH_REGEX - | typeof NOT_MATCH_REGEX - | typeof PHRASE_MATCH - | typeof NOT_PHRASE_MATCH - | typeof IS_XSS - | typeof IS_SQLI - | typeof EXACT_MATCH - | typeof NOT_EXACT_MATCH - | typeof IP_MATCH - | typeof NOT_IP_MATCH - | typeof CAPTURE_DATA - | UnparsedObject; -export const MATCH_REGEX = "match_regex"; -export const NOT_MATCH_REGEX = "!match_regex"; -export const PHRASE_MATCH = "phrase_match"; -export const NOT_PHRASE_MATCH = "!phrase_match"; -export const IS_XSS = "is_xss"; -export const IS_SQLI = "is_sqli"; -export const EXACT_MATCH = "exact_match"; -export const NOT_EXACT_MATCH = "!exact_match"; -export const IP_MATCH = "ip_match"; -export const NOT_IP_MATCH = "!ip_match"; -export const CAPTURE_DATA = "capture_data"; +export type ApplicationSecurityWafCustomRuleConditionOperator = typeof MATCH_REGEX| typeof NOT_MATCH_REGEX| typeof PHRASE_MATCH| typeof NOT_PHRASE_MATCH| typeof IS_XSS| typeof IS_SQLI| typeof EXACT_MATCH| typeof NOT_EXACT_MATCH| typeof IP_MATCH| typeof NOT_IP_MATCH| typeof CAPTURE_DATA | UnparsedObject; +export const MATCH_REGEX = 'match_regex'; +export const NOT_MATCH_REGEX = '!match_regex'; +export const PHRASE_MATCH = 'phrase_match'; +export const NOT_PHRASE_MATCH = '!phrase_match'; +export const IS_XSS = 'is_xss'; +export const IS_SQLI = 'is_sqli'; +export const EXACT_MATCH = 'exact_match'; +export const NOT_EXACT_MATCH = '!exact_match'; +export const IP_MATCH = 'ip_match'; +export const NOT_IP_MATCH = '!ip_match'; +export const CAPTURE_DATA = 'capture_data'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOptions.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOptions.ts index e7e3fe9c20c8..1710d9d6842f 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOptions.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionOptions.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for the operator of this condition. - */ +*/ export class ApplicationSecurityWafCustomRuleConditionOptions { /** * Evaluate the value as case sensitive. - */ + */ "caseSensitive"?: boolean; /** * Only evaluate this condition if the value has a minimum amount of characters. - */ + */ "minLength"?: number; /** @@ -35,27 +40,53 @@ export class ApplicationSecurityWafCustomRuleConditionOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - caseSensitive: { - baseName: "case_sensitive", - type: "boolean", + "caseSensitive": { + "baseName": "case_sensitive", + "type": "boolean", }, - minLength: { - baseName: "min_length", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "minLength": { + "baseName": "min_length", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleConditionOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionParameters.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionParameters.ts index b4b19d7e5b70..f01757402911 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionParameters.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleConditionParameters.ts @@ -6,36 +6,41 @@ import { ApplicationSecurityWafCustomRuleConditionInput } from "./ApplicationSecurityWafCustomRuleConditionInput"; import { ApplicationSecurityWafCustomRuleConditionOptions } from "./ApplicationSecurityWafCustomRuleConditionOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The scope of the WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleConditionParameters { /** * Identifier of a list of data from the denylist. Can only be used as substitution from the list parameter. - */ + */ "data"?: string; /** * List of inputs on which at least one should match with the given operator. - */ + */ "inputs": Array; /** * List of value to use with the condition. Only used with the phrase_match, !phrase_match, exact_match and * !exact_match operator. - */ + */ "list"?: Array; /** * Options for the operator of this condition. - */ + */ "options"?: ApplicationSecurityWafCustomRuleConditionOptions; /** * Regex to use with the condition. Only used with match_regex and !match_regex operator. - */ + */ "regex"?: string; /** * Store the captured value in the specified tag name. Only used with the capture_data operator. - */ + */ "value"?: string; /** @@ -54,43 +59,69 @@ export class ApplicationSecurityWafCustomRuleConditionParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "string", - }, - inputs: { - baseName: "inputs", - type: "Array", - required: true, + "data": { + "baseName": "data", + "type": "string", }, - list: { - baseName: "list", - type: "Array", + "inputs": { + "baseName": "inputs", + "type": "Array", + "required": true, }, - options: { - baseName: "options", - type: "ApplicationSecurityWafCustomRuleConditionOptions", + "list": { + "baseName": "list", + "type": "Array", }, - regex: { - baseName: "regex", - type: "string", + "options": { + "baseName": "options", + "type": "ApplicationSecurityWafCustomRuleConditionOptions", }, - value: { - baseName: "value", - type: "string", + "regex": { + "baseName": "regex", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleConditionParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateAttributes.ts index 5075a7f4dc6b..da01bf16b20e 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateAttributes.ts @@ -8,45 +8,50 @@ import { ApplicationSecurityWafCustomRuleCondition } from "./ApplicationSecurity import { ApplicationSecurityWafCustomRuleScope } from "./ApplicationSecurityWafCustomRuleScope"; import { ApplicationSecurityWafCustomRuleTags } from "./ApplicationSecurityWafCustomRuleTags"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a new WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleCreateAttributes { /** * The definition of `ApplicationSecurityWafCustomRuleAction` object. - */ + */ "action"?: ApplicationSecurityWafCustomRuleAction; /** * Indicates whether the WAF custom rule will block the request. - */ + */ "blocking": boolean; /** * Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF * rule to trigger - */ + */ "conditions": Array; /** * Indicates whether the WAF custom rule is enabled. - */ + */ "enabled": boolean; /** * The Name of the WAF custom rule. - */ + */ "name": string; /** * The path glob for the WAF custom rule. - */ + */ "pathGlob"?: string; /** * The scope of the WAF custom rule. - */ + */ "scope"?: Array; /** * Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security * activity field associated with the traces. - */ + */ "tags": ApplicationSecurityWafCustomRuleTags; /** @@ -65,55 +70,81 @@ export class ApplicationSecurityWafCustomRuleCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "ApplicationSecurityWafCustomRuleAction", + "action": { + "baseName": "action", + "type": "ApplicationSecurityWafCustomRuleAction", }, - blocking: { - baseName: "blocking", - type: "boolean", - required: true, + "blocking": { + "baseName": "blocking", + "type": "boolean", + "required": true, }, - conditions: { - baseName: "conditions", - type: "Array", - required: true, + "conditions": { + "baseName": "conditions", + "type": "Array", + "required": true, }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - pathGlob: { - baseName: "path_glob", - type: "string", + "pathGlob": { + "baseName": "path_glob", + "type": "string", }, - scope: { - baseName: "scope", - type: "Array", + "scope": { + "baseName": "scope", + "type": "Array", }, - tags: { - baseName: "tags", - type: "ApplicationSecurityWafCustomRuleTags", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "ApplicationSecurityWafCustomRuleTags", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateData.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateData.ts index d4c2e5dab542..2de69d8a8c0c 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateData.ts @@ -6,19 +6,24 @@ import { ApplicationSecurityWafCustomRuleCreateAttributes } from "./ApplicationSecurityWafCustomRuleCreateAttributes"; import { ApplicationSecurityWafCustomRuleType } from "./ApplicationSecurityWafCustomRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleCreateData { /** * Create a new WAF custom rule. - */ + */ "attributes": ApplicationSecurityWafCustomRuleCreateAttributes; /** * The type of the resource. The value should always be `custom_rule`. - */ + */ "type": ApplicationSecurityWafCustomRuleType; /** @@ -37,28 +42,54 @@ export class ApplicationSecurityWafCustomRuleCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationSecurityWafCustomRuleCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ApplicationSecurityWafCustomRuleCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApplicationSecurityWafCustomRuleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationSecurityWafCustomRuleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateRequest.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateRequest.ts index 0865631c3a2b..85b713fb2653 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleCreateRequest.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafCustomRuleCreateData } from "./ApplicationSecurityWafCustomRuleCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the custom rule to create. - */ +*/ export class ApplicationSecurityWafCustomRuleCreateRequest { /** * Object for a single WAF custom rule. - */ + */ "data": ApplicationSecurityWafCustomRuleCreateData; /** @@ -32,23 +37,49 @@ export class ApplicationSecurityWafCustomRuleCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationSecurityWafCustomRuleCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationSecurityWafCustomRuleCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleData.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleData.ts index c01bcf8240d7..0cb80955fe27 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleData.ts @@ -6,23 +6,28 @@ import { ApplicationSecurityWafCustomRuleAttributes } from "./ApplicationSecurityWafCustomRuleAttributes"; import { ApplicationSecurityWafCustomRuleType } from "./ApplicationSecurityWafCustomRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleData { /** * A WAF custom rule. - */ + */ "attributes"?: ApplicationSecurityWafCustomRuleAttributes; /** * The ID of the custom rule. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `custom_rule`. - */ + */ "type"?: ApplicationSecurityWafCustomRuleType; /** @@ -41,30 +46,56 @@ export class ApplicationSecurityWafCustomRuleData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationSecurityWafCustomRuleAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ApplicationSecurityWafCustomRuleAttributes", }, - type: { - baseName: "type", - type: "ApplicationSecurityWafCustomRuleType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationSecurityWafCustomRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleListResponse.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleListResponse.ts index c87266cff683..6224fb0fd7eb 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleListResponse.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleListResponse.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafCustomRuleData } from "./ApplicationSecurityWafCustomRuleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a list of WAF custom rules. - */ +*/ export class ApplicationSecurityWafCustomRuleListResponse { /** * The WAF custom rule data. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ApplicationSecurityWafCustomRuleListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleMetadata.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleMetadata.ts index 1fc392238f4b..24b87f553243 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleMetadata.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleMetadata.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata associated with the WAF Custom Rule. - */ +*/ export class ApplicationSecurityWafCustomRuleMetadata { /** * The date and time the WAF custom rule was created. - */ + */ "addedAt"?: Date; /** * The handle of the user who created the WAF custom rule. - */ + */ "addedBy"?: string; /** * The name of the user who created the WAF custom rule. - */ + */ "addedByName"?: string; /** * The date and time the WAF custom rule was last updated. - */ + */ "modifiedAt"?: Date; /** * The handle of the user who last updated the WAF custom rule. - */ + */ "modifiedBy"?: string; /** * The name of the user who last updated the WAF custom rule. - */ + */ "modifiedByName"?: string; /** @@ -51,44 +56,70 @@ export class ApplicationSecurityWafCustomRuleMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - addedAt: { - baseName: "added_at", - type: "Date", - format: "date-time", - }, - addedBy: { - baseName: "added_by", - type: "string", + "addedAt": { + "baseName": "added_at", + "type": "Date", + "format": "date-time", }, - addedByName: { - baseName: "added_by_name", - type: "string", + "addedBy": { + "baseName": "added_by", + "type": "string", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "addedByName": { + "baseName": "added_by_name", + "type": "string", }, - modifiedBy: { - baseName: "modified_by", - type: "string", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - modifiedByName: { - baseName: "modified_by_name", - type: "string", + "modifiedBy": { + "baseName": "modified_by", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "modifiedByName": { + "baseName": "modified_by_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleResponse.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleResponse.ts index a848d41ededb..ab92e6e667a1 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleResponse.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafCustomRuleData } from "./ApplicationSecurityWafCustomRuleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a single WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleResponse { /** * Object for a single WAF custom rule. - */ + */ "data"?: ApplicationSecurityWafCustomRuleData; /** @@ -32,22 +37,48 @@ export class ApplicationSecurityWafCustomRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationSecurityWafCustomRuleData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationSecurityWafCustomRuleData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleScope.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleScope.ts index a782a320799f..63b91060ea61 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleScope.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleScope.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The scope of the WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleScope { /** * The environment scope for the WAF custom rule. - */ + */ "env": string; /** * The service scope for the WAF custom rule. - */ + */ "service": string; /** @@ -35,28 +40,54 @@ export class ApplicationSecurityWafCustomRuleScope { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - env: { - baseName: "env", - type: "string", - required: true, + "env": { + "baseName": "env", + "type": "string", + "required": true, }, - service: { - baseName: "service", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleScope.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTags.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTags.ts index d043741399b4..d8ff651466d9 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTags.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTags.ts @@ -5,20 +5,25 @@ */ import { ApplicationSecurityWafCustomRuleTagsCategory } from "./ApplicationSecurityWafCustomRuleTagsCategory"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security * activity field associated with the traces. - */ +*/ export class ApplicationSecurityWafCustomRuleTags { /** * The category of the WAF Rule, can be either `business_logic`, `attack_attempt` or `security_response`. - */ + */ "category": ApplicationSecurityWafCustomRuleTagsCategory; /** * The type of the WAF rule, associated with the category will form the security activity. - */ + */ "type": string; /** @@ -37,28 +42,54 @@ export class ApplicationSecurityWafCustomRuleTags { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "ApplicationSecurityWafCustomRuleTagsCategory", - required: true, + "category": { + "baseName": "category", + "type": "ApplicationSecurityWafCustomRuleTagsCategory", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "string", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleTags.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTagsCategory.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTagsCategory.ts index 26bbcfc6471e..9833d68d4928 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTagsCategory.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleTagsCategory.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The category of the WAF Rule, can be either `business_logic`, `attack_attempt` or `security_response`. - */ +*/ -export type ApplicationSecurityWafCustomRuleTagsCategory = - | typeof ATTACK_ATTEMPT - | typeof BUSINESS_LOGIC - | typeof SECURITY_RESPONSES - | UnparsedObject; -export const ATTACK_ATTEMPT = "attack_attempt"; -export const BUSINESS_LOGIC = "business_logic"; -export const SECURITY_RESPONSES = "security_responses"; +export type ApplicationSecurityWafCustomRuleTagsCategory = typeof ATTACK_ATTEMPT| typeof BUSINESS_LOGIC| typeof SECURITY_RESPONSES | UnparsedObject; +export const ATTACK_ATTEMPT = 'attack_attempt'; +export const BUSINESS_LOGIC = 'business_logic'; +export const SECURITY_RESPONSES = 'security_responses'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleType.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleType.ts index 25bf9197911b..0130c029ec26 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleType.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `custom_rule`. - */ +*/ -export type ApplicationSecurityWafCustomRuleType = - | typeof CUSTOM_RULE - | UnparsedObject; -export const CUSTOM_RULE = "custom_rule"; +export type ApplicationSecurityWafCustomRuleType = typeof CUSTOM_RULE | UnparsedObject; +export const CUSTOM_RULE = 'custom_rule'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateAttributes.ts index 2bb66ff51a1e..b45a070f0ca3 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateAttributes.ts @@ -8,45 +8,50 @@ import { ApplicationSecurityWafCustomRuleCondition } from "./ApplicationSecurity import { ApplicationSecurityWafCustomRuleScope } from "./ApplicationSecurityWafCustomRuleScope"; import { ApplicationSecurityWafCustomRuleTags } from "./ApplicationSecurityWafCustomRuleTags"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update a WAF custom rule. - */ +*/ export class ApplicationSecurityWafCustomRuleUpdateAttributes { /** * The definition of `ApplicationSecurityWafCustomRuleAction` object. - */ + */ "action"?: ApplicationSecurityWafCustomRuleAction; /** * Indicates whether the WAF custom rule will block the request. - */ + */ "blocking": boolean; /** * Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF * rule to trigger. - */ + */ "conditions": Array; /** * Indicates whether the WAF custom rule is enabled. - */ + */ "enabled": boolean; /** * The Name of the WAF custom rule. - */ + */ "name": string; /** * The path glob for the WAF custom rule. - */ + */ "pathGlob"?: string; /** * The scope of the WAF custom rule. - */ + */ "scope"?: Array; /** * Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security * activity field associated with the traces. - */ + */ "tags": ApplicationSecurityWafCustomRuleTags; /** @@ -65,55 +70,81 @@ export class ApplicationSecurityWafCustomRuleUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "ApplicationSecurityWafCustomRuleAction", + "action": { + "baseName": "action", + "type": "ApplicationSecurityWafCustomRuleAction", }, - blocking: { - baseName: "blocking", - type: "boolean", - required: true, + "blocking": { + "baseName": "blocking", + "type": "boolean", + "required": true, }, - conditions: { - baseName: "conditions", - type: "Array", - required: true, + "conditions": { + "baseName": "conditions", + "type": "Array", + "required": true, }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - pathGlob: { - baseName: "path_glob", - type: "string", + "pathGlob": { + "baseName": "path_glob", + "type": "string", }, - scope: { - baseName: "scope", - type: "Array", + "scope": { + "baseName": "scope", + "type": "Array", }, - tags: { - baseName: "tags", - type: "ApplicationSecurityWafCustomRuleTags", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "ApplicationSecurityWafCustomRuleTags", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateData.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateData.ts index 88436a43c094..c2d74b96265e 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateData.ts @@ -6,19 +6,24 @@ import { ApplicationSecurityWafCustomRuleType } from "./ApplicationSecurityWafCustomRuleType"; import { ApplicationSecurityWafCustomRuleUpdateAttributes } from "./ApplicationSecurityWafCustomRuleUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single WAF Custom Rule. - */ +*/ export class ApplicationSecurityWafCustomRuleUpdateData { /** * Update a WAF custom rule. - */ + */ "attributes": ApplicationSecurityWafCustomRuleUpdateAttributes; /** * The type of the resource. The value should always be `custom_rule`. - */ + */ "type": ApplicationSecurityWafCustomRuleType; /** @@ -37,28 +42,54 @@ export class ApplicationSecurityWafCustomRuleUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationSecurityWafCustomRuleUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ApplicationSecurityWafCustomRuleUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApplicationSecurityWafCustomRuleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationSecurityWafCustomRuleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateRequest.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateRequest.ts index 9601ae39e8bb..a5b563de334d 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafCustomRuleUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafCustomRuleUpdateData } from "./ApplicationSecurityWafCustomRuleUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the Custom Rule to update. - */ +*/ export class ApplicationSecurityWafCustomRuleUpdateRequest { /** * Object for a single WAF Custom Rule. - */ + */ "data": ApplicationSecurityWafCustomRuleUpdateData; /** @@ -32,23 +37,49 @@ export class ApplicationSecurityWafCustomRuleUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationSecurityWafCustomRuleUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationSecurityWafCustomRuleUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafCustomRuleUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterAttributes.ts index 5ab900faa622..a8ecf223b737 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterAttributes.ts @@ -8,55 +8,60 @@ import { ApplicationSecurityWafExclusionFilterOnMatch } from "./ApplicationSecur import { ApplicationSecurityWafExclusionFilterRulesTarget } from "./ApplicationSecurityWafExclusionFilterRulesTarget"; import { ApplicationSecurityWafExclusionFilterScope } from "./ApplicationSecurityWafExclusionFilterScope"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing a WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterAttributes { /** * A description for the exclusion filter. - */ + */ "description"?: string; /** * Indicates whether the exclusion filter is enabled. - */ + */ "enabled"?: boolean; /** * The event query matched by the legacy exclusion filter. Cannot be created nor updated. - */ + */ "eventQuery"?: string; /** * The client IP addresses matched by the exclusion filter (CIDR notation is supported). - */ + */ "ipList"?: Array; /** * Extra information about the exclusion filter. - */ + */ "metadata"?: ApplicationSecurityWafExclusionFilterMetadata; /** * The action taken when the exclusion filter matches. When set to `monitor`, security traces are emitted but the requests are not blocked. By default, security traces are not emitted and the requests are not blocked. - */ + */ "onMatch"?: ApplicationSecurityWafExclusionFilterOnMatch; /** * A list of parameters matched by the exclusion filter in the HTTP query string and HTTP request body. Nested parameters can be matched by joining fields with a dot character. - */ + */ "parameters"?: Array; /** * The HTTP path glob expression matched by the exclusion filter. - */ + */ "pathGlob"?: string; /** * The WAF rules targeted by the exclusion filter. - */ + */ "rulesTarget"?: Array; /** * The services where the exclusion filter is deployed. - */ + */ "scope"?: Array; /** * Generated event search query for traces matching the exclusion filter. - */ + */ "searchQuery"?: string; /** @@ -75,62 +80,88 @@ export class ApplicationSecurityWafExclusionFilterAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - enabled: { - baseName: "enabled", - type: "boolean", + "description": { + "baseName": "description", + "type": "string", }, - eventQuery: { - baseName: "event_query", - type: "string", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - ipList: { - baseName: "ip_list", - type: "Array", + "eventQuery": { + "baseName": "event_query", + "type": "string", }, - metadata: { - baseName: "metadata", - type: "ApplicationSecurityWafExclusionFilterMetadata", + "ipList": { + "baseName": "ip_list", + "type": "Array", }, - onMatch: { - baseName: "on_match", - type: "ApplicationSecurityWafExclusionFilterOnMatch", + "metadata": { + "baseName": "metadata", + "type": "ApplicationSecurityWafExclusionFilterMetadata", }, - parameters: { - baseName: "parameters", - type: "Array", + "onMatch": { + "baseName": "on_match", + "type": "ApplicationSecurityWafExclusionFilterOnMatch", }, - pathGlob: { - baseName: "path_glob", - type: "string", + "parameters": { + "baseName": "parameters", + "type": "Array", }, - rulesTarget: { - baseName: "rules_target", - type: "Array", + "pathGlob": { + "baseName": "path_glob", + "type": "string", }, - scope: { - baseName: "scope", - type: "Array", + "rulesTarget": { + "baseName": "rules_target", + "type": "Array", }, - searchQuery: { - baseName: "search_query", - type: "string", + "scope": { + "baseName": "scope", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "searchQuery": { + "baseName": "search_query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateAttributes.ts index fbe940366e19..5267f1a67a7d 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateAttributes.ts @@ -7,43 +7,48 @@ import { ApplicationSecurityWafExclusionFilterOnMatch } from "./ApplicationSecur import { ApplicationSecurityWafExclusionFilterRulesTarget } from "./ApplicationSecurityWafExclusionFilterRulesTarget"; import { ApplicationSecurityWafExclusionFilterScope } from "./ApplicationSecurityWafExclusionFilterScope"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for creating a WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterCreateAttributes { /** * A description for the exclusion filter. - */ + */ "description": string; /** * Indicates whether the exclusion filter is enabled. - */ + */ "enabled": boolean; /** * The client IP addresses matched by the exclusion filter (CIDR notation is supported). - */ + */ "ipList"?: Array; /** * The action taken when the exclusion filter matches. When set to `monitor`, security traces are emitted but the requests are not blocked. By default, security traces are not emitted and the requests are not blocked. - */ + */ "onMatch"?: ApplicationSecurityWafExclusionFilterOnMatch; /** * A list of parameters matched by the exclusion filter in the HTTP query string and HTTP request body. Nested parameters can be matched by joining fields with a dot character. - */ + */ "parameters"?: Array; /** * The HTTP path glob expression matched by the exclusion filter. - */ + */ "pathGlob"?: string; /** * The WAF rules targeted by the exclusion filter. - */ + */ "rulesTarget"?: Array; /** * The services where the exclusion filter is deployed. - */ + */ "scope"?: Array; /** @@ -62,52 +67,78 @@ export class ApplicationSecurityWafExclusionFilterCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - required: true, + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - ipList: { - baseName: "ip_list", - type: "Array", + "ipList": { + "baseName": "ip_list", + "type": "Array", }, - onMatch: { - baseName: "on_match", - type: "ApplicationSecurityWafExclusionFilterOnMatch", + "onMatch": { + "baseName": "on_match", + "type": "ApplicationSecurityWafExclusionFilterOnMatch", }, - parameters: { - baseName: "parameters", - type: "Array", + "parameters": { + "baseName": "parameters", + "type": "Array", }, - pathGlob: { - baseName: "path_glob", - type: "string", + "pathGlob": { + "baseName": "path_glob", + "type": "string", }, - rulesTarget: { - baseName: "rules_target", - type: "Array", + "rulesTarget": { + "baseName": "rules_target", + "type": "Array", }, - scope: { - baseName: "scope", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scope": { + "baseName": "scope", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateData.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateData.ts index ee3e62534607..58237798430d 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateData.ts @@ -6,19 +6,24 @@ import { ApplicationSecurityWafExclusionFilterCreateAttributes } from "./ApplicationSecurityWafExclusionFilterCreateAttributes"; import { ApplicationSecurityWafExclusionFilterType } from "./ApplicationSecurityWafExclusionFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for creating a single WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterCreateData { /** * Attributes for creating a WAF exclusion filter. - */ + */ "attributes": ApplicationSecurityWafExclusionFilterCreateAttributes; /** * Type of the resource. The value should always be `exclusion_filter`. - */ + */ "type": ApplicationSecurityWafExclusionFilterType; /** @@ -37,28 +42,54 @@ export class ApplicationSecurityWafExclusionFilterCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationSecurityWafExclusionFilterCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ApplicationSecurityWafExclusionFilterCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApplicationSecurityWafExclusionFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationSecurityWafExclusionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateRequest.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateRequest.ts index b23b918887f1..20c59899c39d 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterCreateRequest.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafExclusionFilterCreateData } from "./ApplicationSecurityWafExclusionFilterCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object for creating a single WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterCreateRequest { /** * Object for creating a single WAF exclusion filter. - */ + */ "data": ApplicationSecurityWafExclusionFilterCreateData; /** @@ -32,23 +37,49 @@ export class ApplicationSecurityWafExclusionFilterCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationSecurityWafExclusionFilterCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationSecurityWafExclusionFilterCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterMetadata.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterMetadata.ts index f28e3e76f450..41e548ca2e6a 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterMetadata.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterMetadata.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Extra information about the exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterMetadata { /** * The creation date of the exclusion filter. - */ + */ "addedAt"?: Date; /** * The handle of the user who created the exclusion filter. - */ + */ "addedBy"?: string; /** * The name of the user who created the exclusion filter. - */ + */ "addedByName"?: string; /** * The last modification date of the exclusion filter. - */ + */ "modifiedAt"?: Date; /** * The handle of the user who last modified the exclusion filter. - */ + */ "modifiedBy"?: string; /** * The name of the user who last modified the exclusion filter. - */ + */ "modifiedByName"?: string; /** @@ -51,44 +56,70 @@ export class ApplicationSecurityWafExclusionFilterMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - addedAt: { - baseName: "added_at", - type: "Date", - format: "date-time", - }, - addedBy: { - baseName: "added_by", - type: "string", + "addedAt": { + "baseName": "added_at", + "type": "Date", + "format": "date-time", }, - addedByName: { - baseName: "added_by_name", - type: "string", + "addedBy": { + "baseName": "added_by", + "type": "string", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "addedByName": { + "baseName": "added_by_name", + "type": "string", }, - modifiedBy: { - baseName: "modified_by", - type: "string", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - modifiedByName: { - baseName: "modified_by_name", - type: "string", + "modifiedBy": { + "baseName": "modified_by", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "modifiedByName": { + "baseName": "modified_by_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterOnMatch.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterOnMatch.ts index 1bb2ed2501b9..b98be52fc9c2 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterOnMatch.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterOnMatch.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The action taken when the exclusion filter matches. When set to `monitor`, security traces are emitted but the requests are not blocked. By default, security traces are not emitted and the requests are not blocked. - */ +*/ -export type ApplicationSecurityWafExclusionFilterOnMatch = - | typeof MONITOR - | UnparsedObject; -export const MONITOR = "monitor"; +export type ApplicationSecurityWafExclusionFilterOnMatch = typeof MONITOR | UnparsedObject; +export const MONITOR = 'monitor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResource.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResource.ts index 3c00456e05ee..a2060bb4cdc6 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResource.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResource.ts @@ -6,23 +6,28 @@ import { ApplicationSecurityWafExclusionFilterAttributes } from "./ApplicationSecurityWafExclusionFilterAttributes"; import { ApplicationSecurityWafExclusionFilterType } from "./ApplicationSecurityWafExclusionFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A JSON:API resource for an WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterResource { /** * Attributes describing a WAF exclusion filter. - */ + */ "attributes"?: ApplicationSecurityWafExclusionFilterAttributes; /** * The identifier of the WAF exclusion filter. - */ + */ "id"?: string; /** * Type of the resource. The value should always be `exclusion_filter`. - */ + */ "type"?: ApplicationSecurityWafExclusionFilterType; /** @@ -41,30 +46,56 @@ export class ApplicationSecurityWafExclusionFilterResource { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationSecurityWafExclusionFilterAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ApplicationSecurityWafExclusionFilterAttributes", }, - type: { - baseName: "type", - type: "ApplicationSecurityWafExclusionFilterType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationSecurityWafExclusionFilterType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterResource.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResponse.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResponse.ts index 3c0f64e96d76..fbe637329207 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResponse.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterResponse.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafExclusionFilterResource } from "./ApplicationSecurityWafExclusionFilterResource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object for a single WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterResponse { /** * A JSON:API resource for an WAF exclusion filter. - */ + */ "data"?: ApplicationSecurityWafExclusionFilterResource; /** @@ -32,22 +37,48 @@ export class ApplicationSecurityWafExclusionFilterResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationSecurityWafExclusionFilterResource", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationSecurityWafExclusionFilterResource", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTarget.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTarget.ts index 941c073d326b..0274fb0b1225 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTarget.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTarget.ts @@ -5,19 +5,24 @@ */ import { ApplicationSecurityWafExclusionFilterRulesTargetTags } from "./ApplicationSecurityWafExclusionFilterRulesTargetTags"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Target WAF rules based either on an identifier or tags. - */ +*/ export class ApplicationSecurityWafExclusionFilterRulesTarget { /** * Target a single WAF rule based on its identifier. - */ + */ "ruleId"?: string; /** * Target multiple WAF rules based on their tags. - */ + */ "tags"?: ApplicationSecurityWafExclusionFilterRulesTargetTags; /** @@ -36,26 +41,52 @@ export class ApplicationSecurityWafExclusionFilterRulesTarget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ruleId: { - baseName: "rule_id", - type: "string", + "ruleId": { + "baseName": "rule_id", + "type": "string", }, - tags: { - baseName: "tags", - type: "ApplicationSecurityWafExclusionFilterRulesTargetTags", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "ApplicationSecurityWafExclusionFilterRulesTargetTags", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterRulesTarget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTargetTags.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTargetTags.ts index 68eb06c48e00..038deeac1536 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTargetTags.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterRulesTargetTags.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Target multiple WAF rules based on their tags. - */ +*/ export class ApplicationSecurityWafExclusionFilterRulesTargetTags { /** * The category of the targeted WAF rules. - */ + */ "category"?: string; /** * The type of the targeted WAF rules. - */ + */ "type"?: string; /** @@ -35,26 +40,52 @@ export class ApplicationSecurityWafExclusionFilterRulesTargetTags { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "string", + "category": { + "baseName": "category", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "string", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterRulesTargetTags.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterScope.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterScope.ts index 3ee4d18e7055..e38c8da703cb 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterScope.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterScope.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Deploy on services based on their environment and/or service name. - */ +*/ export class ApplicationSecurityWafExclusionFilterScope { /** * Deploy on this environment. - */ + */ "env"?: string; /** * Deploy on this service. - */ + */ "service"?: string; /** @@ -35,26 +40,52 @@ export class ApplicationSecurityWafExclusionFilterScope { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - env: { - baseName: "env", - type: "string", + "env": { + "baseName": "env", + "type": "string", }, - service: { - baseName: "service", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterScope.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterType.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterType.ts index 2c1899de36c2..44aa3145f8fb 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterType.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the resource. The value should always be `exclusion_filter`. - */ +*/ -export type ApplicationSecurityWafExclusionFilterType = - | typeof EXCLUSION_FILTER - | UnparsedObject; -export const EXCLUSION_FILTER = "exclusion_filter"; +export type ApplicationSecurityWafExclusionFilterType = typeof EXCLUSION_FILTER | UnparsedObject; +export const EXCLUSION_FILTER = 'exclusion_filter'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateAttributes.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateAttributes.ts index d0e0c5571cd1..b9eb847b5efa 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateAttributes.ts @@ -7,43 +7,48 @@ import { ApplicationSecurityWafExclusionFilterOnMatch } from "./ApplicationSecur import { ApplicationSecurityWafExclusionFilterRulesTarget } from "./ApplicationSecurityWafExclusionFilterRulesTarget"; import { ApplicationSecurityWafExclusionFilterScope } from "./ApplicationSecurityWafExclusionFilterScope"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for updating a WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterUpdateAttributes { /** * A description for the exclusion filter. - */ + */ "description": string; /** * Indicates whether the exclusion filter is enabled. - */ + */ "enabled": boolean; /** * The client IP addresses matched by the exclusion filter (CIDR notation is supported). - */ + */ "ipList"?: Array; /** * The action taken when the exclusion filter matches. When set to `monitor`, security traces are emitted but the requests are not blocked. By default, security traces are not emitted and the requests are not blocked. - */ + */ "onMatch"?: ApplicationSecurityWafExclusionFilterOnMatch; /** * A list of parameters matched by the exclusion filter in the HTTP query string and HTTP request body. Nested parameters can be matched by joining fields with a dot character. - */ + */ "parameters"?: Array; /** * The HTTP path glob expression matched by the exclusion filter. - */ + */ "pathGlob"?: string; /** * The WAF rules targeted by the exclusion filter. - */ + */ "rulesTarget"?: Array; /** * The services where the exclusion filter is deployed. - */ + */ "scope"?: Array; /** @@ -62,52 +67,78 @@ export class ApplicationSecurityWafExclusionFilterUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - required: true, + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - ipList: { - baseName: "ip_list", - type: "Array", + "ipList": { + "baseName": "ip_list", + "type": "Array", }, - onMatch: { - baseName: "on_match", - type: "ApplicationSecurityWafExclusionFilterOnMatch", + "onMatch": { + "baseName": "on_match", + "type": "ApplicationSecurityWafExclusionFilterOnMatch", }, - parameters: { - baseName: "parameters", - type: "Array", + "parameters": { + "baseName": "parameters", + "type": "Array", }, - pathGlob: { - baseName: "path_glob", - type: "string", + "pathGlob": { + "baseName": "path_glob", + "type": "string", }, - rulesTarget: { - baseName: "rules_target", - type: "Array", + "rulesTarget": { + "baseName": "rules_target", + "type": "Array", }, - scope: { - baseName: "scope", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scope": { + "baseName": "scope", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateData.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateData.ts index a1533a94b761..18e1d30ae459 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateData.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateData.ts @@ -6,19 +6,24 @@ import { ApplicationSecurityWafExclusionFilterType } from "./ApplicationSecurityWafExclusionFilterType"; import { ApplicationSecurityWafExclusionFilterUpdateAttributes } from "./ApplicationSecurityWafExclusionFilterUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for updating a single WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterUpdateData { /** * Attributes for updating a WAF exclusion filter. - */ + */ "attributes": ApplicationSecurityWafExclusionFilterUpdateAttributes; /** * Type of the resource. The value should always be `exclusion_filter`. - */ + */ "type": ApplicationSecurityWafExclusionFilterType; /** @@ -37,28 +42,54 @@ export class ApplicationSecurityWafExclusionFilterUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ApplicationSecurityWafExclusionFilterUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ApplicationSecurityWafExclusionFilterUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApplicationSecurityWafExclusionFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationSecurityWafExclusionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateRequest.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateRequest.ts index 51ab8913cf71..e622ef17b435 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFilterUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafExclusionFilterUpdateData } from "./ApplicationSecurityWafExclusionFilterUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object for updating a single WAF exclusion filter. - */ +*/ export class ApplicationSecurityWafExclusionFilterUpdateRequest { /** * Object for updating a single WAF exclusion filter. - */ + */ "data": ApplicationSecurityWafExclusionFilterUpdateData; /** @@ -32,23 +37,49 @@ export class ApplicationSecurityWafExclusionFilterUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ApplicationSecurityWafExclusionFilterUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ApplicationSecurityWafExclusionFilterUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFilterUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFiltersResponse.ts b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFiltersResponse.ts index b65e22b38a67..5f0d143b77ea 100644 --- a/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFiltersResponse.ts +++ b/packages/datadog-api-client-v2/models/ApplicationSecurityWafExclusionFiltersResponse.ts @@ -5,15 +5,20 @@ */ import { ApplicationSecurityWafExclusionFilterResource } from "./ApplicationSecurityWafExclusionFilterResource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object for multiple WAF exclusion filters. - */ +*/ export class ApplicationSecurityWafExclusionFiltersResponse { /** * A list of WAF exclusion filters. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ApplicationSecurityWafExclusionFiltersResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ApplicationSecurityWafExclusionFiltersResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AppsSortField.ts b/packages/datadog-api-client-v2/models/AppsSortField.ts index 5a74200e7cc9..66cdea3d241d 100644 --- a/packages/datadog-api-client-v2/models/AppsSortField.ts +++ b/packages/datadog-api-client-v2/models/AppsSortField.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The field and direction to sort apps by - */ +*/ -export type AppsSortField = - | typeof NAME - | typeof CREATED_AT - | typeof UPDATED_AT - | typeof USER_NAME - | typeof NAME_DESC - | typeof CREATED_AT_DESC - | typeof UPDATED_AT_DESC - | typeof USER_NAME_DESC - | UnparsedObject; -export const NAME = "name"; -export const CREATED_AT = "created_at"; -export const UPDATED_AT = "updated_at"; -export const USER_NAME = "user_name"; -export const NAME_DESC = "-name"; -export const CREATED_AT_DESC = "-created_at"; -export const UPDATED_AT_DESC = "-updated_at"; -export const USER_NAME_DESC = "-user_name"; +export type AppsSortField = typeof NAME| typeof CREATED_AT| typeof UPDATED_AT| typeof USER_NAME| typeof NAME_DESC| typeof CREATED_AT_DESC| typeof UPDATED_AT_DESC| typeof USER_NAME_DESC | UnparsedObject; +export const NAME = 'name'; +export const CREATED_AT = 'created_at'; +export const UPDATED_AT = 'updated_at'; +export const USER_NAME = 'user_name'; +export const NAME_DESC = '-name'; +export const CREATED_AT_DESC = '-created_at'; +export const UPDATED_AT_DESC = '-updated_at'; +export const USER_NAME_DESC = '-user_name'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Asset.ts b/packages/datadog-api-client-v2/models/Asset.ts index b97dd53b4c07..7931b279272d 100644 --- a/packages/datadog-api-client-v2/models/Asset.ts +++ b/packages/datadog-api-client-v2/models/Asset.ts @@ -6,23 +6,28 @@ import { AssetAttributes } from "./AssetAttributes"; import { AssetEntityType } from "./AssetEntityType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single vulnerable asset - */ +*/ export class Asset { /** * The JSON:API attributes of the asset. - */ + */ "attributes": AssetAttributes; /** * The unique ID for this asset. - */ + */ "id": string; /** * The JSON:API type. - */ + */ "type": AssetEntityType; /** @@ -41,33 +46,59 @@ export class Asset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AssetAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AssetAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AssetEntityType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AssetEntityType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Asset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AssetAttributes.ts b/packages/datadog-api-client-v2/models/AssetAttributes.ts index fac1e12e7c49..ca0445d73891 100644 --- a/packages/datadog-api-client-v2/models/AssetAttributes.ts +++ b/packages/datadog-api-client-v2/models/AssetAttributes.ts @@ -8,39 +8,44 @@ import { AssetRisks } from "./AssetRisks"; import { AssetType } from "./AssetType"; import { AssetVersion } from "./AssetVersion"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes of the asset. - */ +*/ export class AssetAttributes { /** * Asset architecture. - */ + */ "arch"?: string; /** * List of environments where the asset is deployed. - */ + */ "environments": Array; /** * Asset name. - */ + */ "name": string; /** * Asset operating system. - */ + */ "operatingSystem"?: AssetOperatingSystem; /** * Asset risks. - */ + */ "risks": AssetRisks; /** * The asset type - */ + */ "type": AssetType; /** * Asset version. - */ + */ "version"?: AssetVersion; /** @@ -59,50 +64,76 @@ export class AssetAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - arch: { - baseName: "arch", - type: "string", - }, - environments: { - baseName: "environments", - type: "Array", - required: true, + "arch": { + "baseName": "arch", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "environments": { + "baseName": "environments", + "type": "Array", + "required": true, }, - operatingSystem: { - baseName: "operating_system", - type: "AssetOperatingSystem", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - risks: { - baseName: "risks", - type: "AssetRisks", - required: true, + "operatingSystem": { + "baseName": "operating_system", + "type": "AssetOperatingSystem", }, - type: { - baseName: "type", - type: "AssetType", - required: true, + "risks": { + "baseName": "risks", + "type": "AssetRisks", + "required": true, }, - version: { - baseName: "version", - type: "AssetVersion", + "type": { + "baseName": "type", + "type": "AssetType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "AssetVersion", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AssetAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AssetEntityType.ts b/packages/datadog-api-client-v2/models/AssetEntityType.ts index ae7ff41b0b64..26c4f8bbec96 100644 --- a/packages/datadog-api-client-v2/models/AssetEntityType.ts +++ b/packages/datadog-api-client-v2/models/AssetEntityType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type. - */ +*/ export type AssetEntityType = typeof ASSETS | UnparsedObject; -export const ASSETS = "assets"; +export const ASSETS = 'assets'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AssetOperatingSystem.ts b/packages/datadog-api-client-v2/models/AssetOperatingSystem.ts index 8d0e59258b6e..876f538156bc 100644 --- a/packages/datadog-api-client-v2/models/AssetOperatingSystem.ts +++ b/packages/datadog-api-client-v2/models/AssetOperatingSystem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Asset operating system. - */ +*/ export class AssetOperatingSystem { /** * Operating system version. - */ + */ "description"?: string; /** * Operating system name. - */ + */ "name": string; /** @@ -35,27 +40,53 @@ export class AssetOperatingSystem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AssetOperatingSystem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AssetRisks.ts b/packages/datadog-api-client-v2/models/AssetRisks.ts index d53957b69734..40fea6033ddb 100644 --- a/packages/datadog-api-client-v2/models/AssetRisks.ts +++ b/packages/datadog-api-client-v2/models/AssetRisks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Asset risks. - */ +*/ export class AssetRisks { /** * Whether the asset has access to sensitive data or not. - */ + */ "hasAccessToSensitiveData"?: boolean; /** * Whether the asset has privileged access or not. - */ + */ "hasPrivilegedAccess"?: boolean; /** * Whether the asset is in production or not. - */ + */ "inProduction": boolean; /** * Whether the asset is publicly accessible or not. - */ + */ "isPubliclyAccessible"?: boolean; /** * Whether the asset is under attack or not. - */ + */ "underAttack"?: boolean; /** @@ -47,39 +52,65 @@ export class AssetRisks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hasAccessToSensitiveData: { - baseName: "has_access_to_sensitive_data", - type: "boolean", + "hasAccessToSensitiveData": { + "baseName": "has_access_to_sensitive_data", + "type": "boolean", }, - hasPrivilegedAccess: { - baseName: "has_privileged_access", - type: "boolean", + "hasPrivilegedAccess": { + "baseName": "has_privileged_access", + "type": "boolean", }, - inProduction: { - baseName: "in_production", - type: "boolean", - required: true, + "inProduction": { + "baseName": "in_production", + "type": "boolean", + "required": true, }, - isPubliclyAccessible: { - baseName: "is_publicly_accessible", - type: "boolean", + "isPubliclyAccessible": { + "baseName": "is_publicly_accessible", + "type": "boolean", }, - underAttack: { - baseName: "under_attack", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "underAttack": { + "baseName": "under_attack", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AssetRisks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AssetType.ts b/packages/datadog-api-client-v2/models/AssetType.ts index 166ead4ee842..5f501af563fc 100644 --- a/packages/datadog-api-client-v2/models/AssetType.ts +++ b/packages/datadog-api-client-v2/models/AssetType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The asset type - */ +*/ -export type AssetType = - | typeof REPOSITORY - | typeof SERVICE - | typeof HOST - | typeof HOSTIMAGE - | typeof IMAGE - | UnparsedObject; -export const REPOSITORY = "Repository"; -export const SERVICE = "Service"; -export const HOST = "Host"; -export const HOSTIMAGE = "HostImage"; -export const IMAGE = "Image"; +export type AssetType = typeof REPOSITORY| typeof SERVICE| typeof HOST| typeof HOSTIMAGE| typeof IMAGE | UnparsedObject; +export const REPOSITORY = 'Repository'; +export const SERVICE = 'Service'; +export const HOST = 'Host'; +export const HOSTIMAGE = 'HostImage'; +export const IMAGE = 'Image'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AssetVersion.ts b/packages/datadog-api-client-v2/models/AssetVersion.ts index 7116bef1c9dc..f7e3af580ea6 100644 --- a/packages/datadog-api-client-v2/models/AssetVersion.ts +++ b/packages/datadog-api-client-v2/models/AssetVersion.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Asset version. - */ +*/ export class AssetVersion { /** * Asset first version. - */ + */ "first"?: string; /** * Asset last version. - */ + */ "last"?: string; /** @@ -35,26 +40,52 @@ export class AssetVersion { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "last": { + "baseName": "last", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AssetVersion.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsEvent.ts b/packages/datadog-api-client-v2/models/AuditLogsEvent.ts index 9260b8ae876c..2e80d9bc079c 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsEvent.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsEvent.ts @@ -6,23 +6,28 @@ import { AuditLogsEventAttributes } from "./AuditLogsEventAttributes"; import { AuditLogsEventType } from "./AuditLogsEventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of an Audit Logs event after it is processed and stored by Datadog. - */ +*/ export class AuditLogsEvent { /** * JSON object containing all event attributes and their associated values. - */ + */ "attributes"?: AuditLogsEventAttributes; /** * Unique ID of the event. - */ + */ "id"?: string; /** * Type of the event. - */ + */ "type"?: AuditLogsEventType; /** @@ -41,30 +46,56 @@ export class AuditLogsEvent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AuditLogsEventAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "AuditLogsEventAttributes", }, - type: { - baseName: "type", - type: "AuditLogsEventType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AuditLogsEventType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsEvent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsEventAttributes.ts b/packages/datadog-api-client-v2/models/AuditLogsEventAttributes.ts index cb2760e742ed..d750c910e0e9 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsEventAttributes.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsEventAttributes.ts @@ -4,33 +4,38 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all event attributes and their associated values. - */ +*/ export class AuditLogsEventAttributes { /** * JSON object of attributes from Audit Logs events. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * Message of the event. - */ + */ "message"?: string; /** * Name of the application or service generating Audit Logs events. * This name is used to correlate Audit Logs to APM, so make sure you specify the same * value when you use both products. - */ + */ "service"?: string; /** * Array of tags associated with your event. - */ + */ "tags"?: Array; /** * Timestamp of your event. - */ + */ "timestamp"?: Date; /** @@ -49,39 +54,65 @@ export class AuditLogsEventAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - service: { - baseName: "service", - type: "string", + "service": { + "baseName": "service", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsEventAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsEventType.ts b/packages/datadog-api-client-v2/models/AuditLogsEventType.ts index 4c2d30e1a900..466e33a75ebb 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsEventType.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsEventType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ export type AuditLogsEventType = typeof Audit | UnparsedObject; -export const Audit = "audit"; +export const Audit = 'audit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuditLogsEventsResponse.ts b/packages/datadog-api-client-v2/models/AuditLogsEventsResponse.ts index c116dff7e3e7..a2f376284280 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsEventsResponse.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsEventsResponse.ts @@ -7,23 +7,28 @@ import { AuditLogsEvent } from "./AuditLogsEvent"; import { AuditLogsResponseLinks } from "./AuditLogsResponseLinks"; import { AuditLogsResponseMetadata } from "./AuditLogsResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all events matching the request and pagination information. - */ +*/ export class AuditLogsEventsResponse { /** * Array of events matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: AuditLogsResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: AuditLogsResponseMetadata; /** @@ -42,30 +47,56 @@ export class AuditLogsEventsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "AuditLogsResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "AuditLogsResponseMetadata", + "links": { + "baseName": "links", + "type": "AuditLogsResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "AuditLogsResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsEventsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsQueryFilter.ts b/packages/datadog-api-client-v2/models/AuditLogsQueryFilter.ts index 6700a05232e7..4511e047cbdc 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsQueryFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Search and filter query settings. - */ +*/ export class AuditLogsQueryFilter { /** * Minimum time for the requested events. Supports date, math, and regular timestamps (in milliseconds). - */ + */ "from"?: string; /** * Search query following the Audit Logs search syntax. - */ + */ "query"?: string; /** * Maximum time for the requested events. Supports date, math, and regular timestamps (in milliseconds). - */ + */ "to"?: string; /** @@ -39,30 +44,56 @@ export class AuditLogsQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - to: { - baseName: "to", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsQueryOptions.ts b/packages/datadog-api-client-v2/models/AuditLogsQueryOptions.ts index 991977768d9a..e308a5c3582f 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsQueryOptions.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsQueryOptions.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Global query options that are used during the query. * Note: Specify either timezone or time offset, not both. Otherwise, the query fails. - */ +*/ export class AuditLogsQueryOptions { /** * Time offset (in seconds) to apply to the query. - */ + */ "timeOffset"?: number; /** * The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class AuditLogsQueryOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeOffset: { - baseName: "time_offset", - type: "number", - format: "int64", + "timeOffset": { + "baseName": "time_offset", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsQueryOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsQueryPageOptions.ts b/packages/datadog-api-client-v2/models/AuditLogsQueryPageOptions.ts index f546ac871b88..606639fe4f72 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsQueryPageOptions.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsQueryPageOptions.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes for listing events. - */ +*/ export class AuditLogsQueryPageOptions { /** * List following results with a cursor provided in the previous query. - */ + */ "cursor"?: string; /** * Maximum number of events in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class AuditLogsQueryPageOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsQueryPageOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsResponseLinks.ts b/packages/datadog-api-client-v2/models/AuditLogsResponseLinks.ts index 9c1e4ae9a09f..1549a0620e43 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class AuditLogsResponseLinks { /** * Link for the next set of results. Note that the request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class AuditLogsResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsResponseMetadata.ts b/packages/datadog-api-client-v2/models/AuditLogsResponseMetadata.ts index 72987ded8b6c..efba6ed99655 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsResponseMetadata.ts @@ -7,32 +7,37 @@ import { AuditLogsResponsePage } from "./AuditLogsResponsePage"; import { AuditLogsResponseStatus } from "./AuditLogsResponseStatus"; import { AuditLogsWarning } from "./AuditLogsWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class AuditLogsResponseMetadata { /** * Time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * Paging attributes. - */ + */ "page"?: AuditLogsResponsePage; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The status of the response. - */ + */ "status"?: AuditLogsResponseStatus; /** * A list of warnings (non-fatal errors) encountered. Partial results may return if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -51,39 +56,65 @@ export class AuditLogsResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "AuditLogsResponsePage", + "page": { + "baseName": "page", + "type": "AuditLogsResponsePage", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "AuditLogsResponseStatus", + "status": { + "baseName": "status", + "type": "AuditLogsResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsResponsePage.ts b/packages/datadog-api-client-v2/models/AuditLogsResponsePage.ts index 7b6def8dd80a..4bd31f50b997 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsResponsePage.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsResponsePage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class AuditLogsResponsePage { /** * The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`. - */ + */ "after"?: string; /** @@ -31,22 +36,48 @@ export class AuditLogsResponsePage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsResponsePage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsResponseStatus.ts b/packages/datadog-api-client-v2/models/AuditLogsResponseStatus.ts index 8810128e7a2f..5ec1672035c4 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsResponseStatus.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsResponseStatus.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the response. - */ +*/ -export type AuditLogsResponseStatus = - | typeof DONE - | typeof TIMEOUT - | UnparsedObject; -export const DONE = "done"; -export const TIMEOUT = "timeout"; +export type AuditLogsResponseStatus = typeof DONE| typeof TIMEOUT | UnparsedObject; +export const DONE = 'done'; +export const TIMEOUT = 'timeout'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuditLogsSearchEventsRequest.ts b/packages/datadog-api-client-v2/models/AuditLogsSearchEventsRequest.ts index 0c6e29254bc3..2cebe8c35cde 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsSearchEventsRequest.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsSearchEventsRequest.ts @@ -8,28 +8,33 @@ import { AuditLogsQueryOptions } from "./AuditLogsQueryOptions"; import { AuditLogsQueryPageOptions } from "./AuditLogsQueryPageOptions"; import { AuditLogsSort } from "./AuditLogsSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a Audit Logs events list. - */ +*/ export class AuditLogsSearchEventsRequest { /** * Search and filter query settings. - */ + */ "filter"?: AuditLogsQueryFilter; /** * Global query options that are used during the query. * Note: Specify either timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: AuditLogsQueryOptions; /** * Paging attributes for listing events. - */ + */ "page"?: AuditLogsQueryPageOptions; /** * Sort parameters when querying events. - */ + */ "sort"?: AuditLogsSort; /** @@ -48,34 +53,60 @@ export class AuditLogsSearchEventsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "AuditLogsQueryFilter", + "filter": { + "baseName": "filter", + "type": "AuditLogsQueryFilter", }, - options: { - baseName: "options", - type: "AuditLogsQueryOptions", + "options": { + "baseName": "options", + "type": "AuditLogsQueryOptions", }, - page: { - baseName: "page", - type: "AuditLogsQueryPageOptions", + "page": { + "baseName": "page", + "type": "AuditLogsQueryPageOptions", }, - sort: { - baseName: "sort", - type: "AuditLogsSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "AuditLogsSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsSearchEventsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuditLogsSort.ts b/packages/datadog-api-client-v2/models/AuditLogsSort.ts index cbba3f7286b0..288d2487110a 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsSort.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sort parameters when querying events. - */ +*/ -export type AuditLogsSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type AuditLogsSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuditLogsWarning.ts b/packages/datadog-api-client-v2/models/AuditLogsWarning.ts index e1b496df510c..ec79440eb952 100644 --- a/packages/datadog-api-client-v2/models/AuditLogsWarning.ts +++ b/packages/datadog-api-client-v2/models/AuditLogsWarning.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Warning message indicating something that went wrong with the query. - */ +*/ export class AuditLogsWarning { /** * Unique code for this type of warning. - */ + */ "code"?: string; /** * Detailed explanation of this specific warning. - */ + */ "detail"?: string; /** * Short human-readable summary of the warning. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class AuditLogsWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - detail: { - baseName: "detail", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuditLogsWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMapping.ts b/packages/datadog-api-client-v2/models/AuthNMapping.ts index e638eabc3926..5af6a3f426c4 100644 --- a/packages/datadog-api-client-v2/models/AuthNMapping.ts +++ b/packages/datadog-api-client-v2/models/AuthNMapping.ts @@ -7,27 +7,32 @@ import { AuthNMappingAttributes } from "./AuthNMappingAttributes"; import { AuthNMappingRelationships } from "./AuthNMappingRelationships"; import { AuthNMappingsType } from "./AuthNMappingsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The AuthN Mapping object returned by API. - */ +*/ export class AuthNMapping { /** * Attributes of AuthN Mapping. - */ + */ "attributes"?: AuthNMappingAttributes; /** * ID of the AuthN Mapping. - */ + */ "id": string; /** * All relationships associated with AuthN Mapping. - */ + */ "relationships"?: AuthNMappingRelationships; /** * AuthN Mappings resource type. - */ + */ "type": AuthNMappingsType; /** @@ -46,36 +51,62 @@ export class AuthNMapping { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AuthNMappingAttributes", + "attributes": { + "baseName": "attributes", + "type": "AuthNMappingAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "AuthNMappingRelationships", + "relationships": { + "baseName": "relationships", + "type": "AuthNMappingRelationships", }, - type: { - baseName: "type", - type: "AuthNMappingsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AuthNMappingsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMapping.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingAttributes.ts b/packages/datadog-api-client-v2/models/AuthNMappingAttributes.ts index 1d8186cb7e64..408427803d28 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingAttributes.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of AuthN Mapping. - */ +*/ export class AuthNMappingAttributes { /** * Key portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeKey"?: string; /** * Value portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeValue"?: string; /** * Creation time of the AuthN Mapping. - */ + */ "createdAt"?: Date; /** * Time of last AuthN Mapping modification. - */ + */ "modifiedAt"?: Date; /** * The ID of the SAML assertion attribute. - */ + */ "samlAssertionAttributeId"?: string; /** @@ -47,40 +52,66 @@ export class AuthNMappingAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributeKey: { - baseName: "attribute_key", - type: "string", + "attributeKey": { + "baseName": "attribute_key", + "type": "string", }, - attributeValue: { - baseName: "attribute_value", - type: "string", + "attributeValue": { + "baseName": "attribute_value", + "type": "string", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - samlAssertionAttributeId: { - baseName: "saml_assertion_attribute_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "samlAssertionAttributeId": { + "baseName": "saml_assertion_attribute_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingCreateAttributes.ts b/packages/datadog-api-client-v2/models/AuthNMappingCreateAttributes.ts index c79b94b6b8ee..628a70bc7332 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingCreateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Key/Value pair of attributes used for create request. - */ +*/ export class AuthNMappingCreateAttributes { /** * Key portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeKey"?: string; /** * Value portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeValue"?: string; /** @@ -35,26 +40,52 @@ export class AuthNMappingCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributeKey: { - baseName: "attribute_key", - type: "string", + "attributeKey": { + "baseName": "attribute_key", + "type": "string", }, - attributeValue: { - baseName: "attribute_value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributeValue": { + "baseName": "attribute_value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingCreateData.ts b/packages/datadog-api-client-v2/models/AuthNMappingCreateData.ts index 12837f8277be..9ef660b8861e 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingCreateData.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingCreateData.ts @@ -7,23 +7,28 @@ import { AuthNMappingCreateAttributes } from "./AuthNMappingCreateAttributes"; import { AuthNMappingCreateRelationships } from "./AuthNMappingCreateRelationships"; import { AuthNMappingsType } from "./AuthNMappingsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for creating an AuthN Mapping. - */ +*/ export class AuthNMappingCreateData { /** * Key/Value pair of attributes used for create request. - */ + */ "attributes"?: AuthNMappingCreateAttributes; /** * Relationship of AuthN Mapping create object to a Role or Team. - */ + */ "relationships"?: AuthNMappingCreateRelationships; /** * AuthN Mappings resource type. - */ + */ "type": AuthNMappingsType; /** @@ -42,31 +47,57 @@ export class AuthNMappingCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AuthNMappingCreateAttributes", - }, - relationships: { - baseName: "relationships", - type: "AuthNMappingCreateRelationships", + "attributes": { + "baseName": "attributes", + "type": "AuthNMappingCreateAttributes", }, - type: { - baseName: "type", - type: "AuthNMappingsType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "AuthNMappingCreateRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AuthNMappingsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingCreateRelationships.ts b/packages/datadog-api-client-v2/models/AuthNMappingCreateRelationships.ts index 1785e29f70fe..9650c8d64043 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingCreateRelationships.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingCreateRelationships.ts @@ -6,13 +6,15 @@ import { AuthNMappingRelationshipToRole } from "./AuthNMappingRelationshipToRole"; import { AuthNMappingRelationshipToTeam } from "./AuthNMappingRelationshipToTeam"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Relationship of AuthN Mapping create object to a Role or Team. - */ +*/ -export type AuthNMappingCreateRelationships = - | AuthNMappingRelationshipToRole - | AuthNMappingRelationshipToTeam - | UnparsedObject; +export type AuthNMappingCreateRelationships = AuthNMappingRelationshipToRole | AuthNMappingRelationshipToTeam | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuthNMappingCreateRequest.ts b/packages/datadog-api-client-v2/models/AuthNMappingCreateRequest.ts index 9e7588e0df35..b10ff3f506da 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingCreateRequest.ts @@ -5,15 +5,20 @@ */ import { AuthNMappingCreateData } from "./AuthNMappingCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request for creating an AuthN Mapping. - */ +*/ export class AuthNMappingCreateRequest { /** * Data for creating an AuthN Mapping. - */ + */ "data": AuthNMappingCreateData; /** @@ -32,23 +37,49 @@ export class AuthNMappingCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AuthNMappingCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AuthNMappingCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingIncluded.ts b/packages/datadog-api-client-v2/models/AuthNMappingIncluded.ts index 568e70b159a4..73a52f8ccb38 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingIncluded.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingIncluded.ts @@ -7,14 +7,15 @@ import { AuthNMappingTeam } from "./AuthNMappingTeam"; import { Role } from "./Role"; import { SAMLAssertionAttribute } from "./SAMLAssertionAttribute"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Included data in the AuthN Mapping response. - */ +*/ -export type AuthNMappingIncluded = - | SAMLAssertionAttribute - | Role - | AuthNMappingTeam - | UnparsedObject; +export type AuthNMappingIncluded = SAMLAssertionAttribute | Role | AuthNMappingTeam | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToRole.ts b/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToRole.ts index 6446d9b236e2..0a79a56af2f9 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToRole.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToRole.ts @@ -5,15 +5,20 @@ */ import { RelationshipToRole } from "./RelationshipToRole"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship of AuthN Mapping to a Role. - */ +*/ export class AuthNMappingRelationshipToRole { /** * Relationship to role. - */ + */ "role": RelationshipToRole; /** @@ -32,23 +37,49 @@ export class AuthNMappingRelationshipToRole { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - role: { - baseName: "role", - type: "RelationshipToRole", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "role": { + "baseName": "role", + "type": "RelationshipToRole", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingRelationshipToRole.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToTeam.ts b/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToTeam.ts index 4018615ff2a1..839fcf7580b1 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToTeam.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingRelationshipToTeam.ts @@ -5,15 +5,20 @@ */ import { RelationshipToTeam } from "./RelationshipToTeam"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship of AuthN Mapping to a Team. - */ +*/ export class AuthNMappingRelationshipToTeam { /** * Relationship to team. - */ + */ "team": RelationshipToTeam; /** @@ -32,23 +37,49 @@ export class AuthNMappingRelationshipToTeam { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - team: { - baseName: "team", - type: "RelationshipToTeam", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "team": { + "baseName": "team", + "type": "RelationshipToTeam", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingRelationshipToTeam.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingRelationships.ts b/packages/datadog-api-client-v2/models/AuthNMappingRelationships.ts index cf6adcbb19e8..9871817e8111 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingRelationships.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingRelationships.ts @@ -7,23 +7,28 @@ import { RelationshipToRole } from "./RelationshipToRole"; import { RelationshipToSAMLAssertionAttribute } from "./RelationshipToSAMLAssertionAttribute"; import { RelationshipToTeam } from "./RelationshipToTeam"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All relationships associated with AuthN Mapping. - */ +*/ export class AuthNMappingRelationships { /** * Relationship to role. - */ + */ "role"?: RelationshipToRole; /** * AuthN Mapping relationship to SAML Assertion Attribute. - */ + */ "samlAssertionAttribute"?: RelationshipToSAMLAssertionAttribute; /** * Relationship to team. - */ + */ "team"?: RelationshipToTeam; /** @@ -42,30 +47,56 @@ export class AuthNMappingRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - role: { - baseName: "role", - type: "RelationshipToRole", - }, - samlAssertionAttribute: { - baseName: "saml_assertion_attribute", - type: "RelationshipToSAMLAssertionAttribute", + "role": { + "baseName": "role", + "type": "RelationshipToRole", }, - team: { - baseName: "team", - type: "RelationshipToTeam", + "samlAssertionAttribute": { + "baseName": "saml_assertion_attribute", + "type": "RelationshipToSAMLAssertionAttribute", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "team": { + "baseName": "team", + "type": "RelationshipToTeam", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingResourceType.ts b/packages/datadog-api-client-v2/models/AuthNMappingResourceType.ts index 8857dbfb2499..cd03ed94dad0 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingResourceType.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingResourceType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of resource being mapped to. - */ +*/ -export type AuthNMappingResourceType = - | typeof ROLE - | typeof TEAM - | UnparsedObject; -export const ROLE = "role"; -export const TEAM = "team"; +export type AuthNMappingResourceType = typeof ROLE| typeof TEAM | UnparsedObject; +export const ROLE = 'role'; +export const TEAM = 'team'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuthNMappingResponse.ts b/packages/datadog-api-client-v2/models/AuthNMappingResponse.ts index 5305c7c0469c..365c80b3fc09 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingResponse.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingResponse.ts @@ -6,19 +6,24 @@ import { AuthNMapping } from "./AuthNMapping"; import { AuthNMappingIncluded } from "./AuthNMappingIncluded"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AuthN Mapping response from the API. - */ +*/ export class AuthNMappingResponse { /** * The AuthN Mapping object returned by API. - */ + */ "data"?: AuthNMapping; /** * Included data in the AuthN Mapping response. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class AuthNMappingResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AuthNMapping", + "data": { + "baseName": "data", + "type": "AuthNMapping", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingTeam.ts b/packages/datadog-api-client-v2/models/AuthNMappingTeam.ts index ad8e24c32cb0..0e87fd0ce4e5 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingTeam.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingTeam.ts @@ -6,23 +6,28 @@ import { AuthNMappingTeamAttributes } from "./AuthNMappingTeamAttributes"; import { TeamType } from "./TeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team. - */ +*/ export class AuthNMappingTeam { /** * Team attributes. - */ + */ "attributes"?: AuthNMappingTeamAttributes; /** * The ID of the Team. - */ + */ "id"?: string; /** * Team type - */ + */ "type"?: TeamType; /** @@ -41,30 +46,56 @@ export class AuthNMappingTeam { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AuthNMappingTeamAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "AuthNMappingTeamAttributes", }, - type: { - baseName: "type", - type: "TeamType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingTeam.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingTeamAttributes.ts b/packages/datadog-api-client-v2/models/AuthNMappingTeamAttributes.ts index 7c5343227f57..6059f44e8691 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingTeamAttributes.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingTeamAttributes.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team attributes. - */ +*/ export class AuthNMappingTeamAttributes { /** * Unicode representation of the avatar for the team, limited to a single grapheme - */ + */ "avatar"?: string; /** * Banner selection for the team - */ + */ "banner"?: number; /** * The team's identifier - */ + */ "handle"?: string; /** * The number of links belonging to the team - */ + */ "linkCount"?: number; /** * The name of the team - */ + */ "name"?: string; /** * A brief summary of the team, derived from the `description` - */ + */ "summary"?: string; /** * The number of users belonging to the team - */ + */ "userCount"?: number; /** @@ -55,49 +60,75 @@ export class AuthNMappingTeamAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - avatar: { - baseName: "avatar", - type: "string", - }, - banner: { - baseName: "banner", - type: "number", - format: "int64", + "avatar": { + "baseName": "avatar", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", + "banner": { + "baseName": "banner", + "type": "number", + "format": "int64", }, - linkCount: { - baseName: "link_count", - type: "number", - format: "int32", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "linkCount": { + "baseName": "link_count", + "type": "number", + "format": "int32", }, - summary: { - baseName: "summary", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - userCount: { - baseName: "user_count", - type: "number", - format: "int32", + "summary": { + "baseName": "summary", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userCount": { + "baseName": "user_count", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingTeamAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingUpdateAttributes.ts b/packages/datadog-api-client-v2/models/AuthNMappingUpdateAttributes.ts index 264c95e0beb3..205d9a2a61cc 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingUpdateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Key/Value pair of attributes used for update request. - */ +*/ export class AuthNMappingUpdateAttributes { /** * Key portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeKey"?: string; /** * Value portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeValue"?: string; /** @@ -35,26 +40,52 @@ export class AuthNMappingUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributeKey: { - baseName: "attribute_key", - type: "string", + "attributeKey": { + "baseName": "attribute_key", + "type": "string", }, - attributeValue: { - baseName: "attribute_value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributeValue": { + "baseName": "attribute_value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingUpdateData.ts b/packages/datadog-api-client-v2/models/AuthNMappingUpdateData.ts index 9e881e6f03e4..c3efe648d92c 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingUpdateData.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingUpdateData.ts @@ -7,27 +7,32 @@ import { AuthNMappingsType } from "./AuthNMappingsType"; import { AuthNMappingUpdateAttributes } from "./AuthNMappingUpdateAttributes"; import { AuthNMappingUpdateRelationships } from "./AuthNMappingUpdateRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for updating an AuthN Mapping. - */ +*/ export class AuthNMappingUpdateData { /** * Key/Value pair of attributes used for update request. - */ + */ "attributes"?: AuthNMappingUpdateAttributes; /** * ID of the AuthN Mapping. - */ + */ "id": string; /** * Relationship of AuthN Mapping update object to a Role or Team. - */ + */ "relationships"?: AuthNMappingUpdateRelationships; /** * AuthN Mappings resource type. - */ + */ "type": AuthNMappingsType; /** @@ -46,36 +51,62 @@ export class AuthNMappingUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AuthNMappingUpdateAttributes", + "attributes": { + "baseName": "attributes", + "type": "AuthNMappingUpdateAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "AuthNMappingUpdateRelationships", + "relationships": { + "baseName": "relationships", + "type": "AuthNMappingUpdateRelationships", }, - type: { - baseName: "type", - type: "AuthNMappingsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AuthNMappingsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingUpdateRelationships.ts b/packages/datadog-api-client-v2/models/AuthNMappingUpdateRelationships.ts index dc2076badeba..7a4b87df4850 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingUpdateRelationships.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingUpdateRelationships.ts @@ -6,13 +6,15 @@ import { AuthNMappingRelationshipToRole } from "./AuthNMappingRelationshipToRole"; import { AuthNMappingRelationshipToTeam } from "./AuthNMappingRelationshipToTeam"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Relationship of AuthN Mapping update object to a Role or Team. - */ +*/ -export type AuthNMappingUpdateRelationships = - | AuthNMappingRelationshipToRole - | AuthNMappingRelationshipToTeam - | UnparsedObject; +export type AuthNMappingUpdateRelationships = AuthNMappingRelationshipToRole | AuthNMappingRelationshipToTeam | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuthNMappingUpdateRequest.ts b/packages/datadog-api-client-v2/models/AuthNMappingUpdateRequest.ts index b2ae92f40dcf..3e00fa2b440b 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { AuthNMappingUpdateData } from "./AuthNMappingUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request to update an AuthN Mapping. - */ +*/ export class AuthNMappingUpdateRequest { /** * Data for updating an AuthN Mapping. - */ + */ "data": AuthNMappingUpdateData; /** @@ -32,23 +37,49 @@ export class AuthNMappingUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AuthNMappingUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AuthNMappingUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingsResponse.ts b/packages/datadog-api-client-v2/models/AuthNMappingsResponse.ts index d083954a7295..020600661ea5 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingsResponse.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingsResponse.ts @@ -7,23 +7,28 @@ import { AuthNMapping } from "./AuthNMapping"; import { AuthNMappingIncluded } from "./AuthNMappingIncluded"; import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Array of AuthN Mappings response. - */ +*/ export class AuthNMappingsResponse { /** * Array of returned AuthN Mappings. - */ + */ "data"?: Array; /** * Included data in the AuthN Mapping response. - */ + */ "included"?: Array; /** * Object describing meta attributes of response. - */ + */ "meta"?: ResponseMetaAttributes; /** @@ -42,30 +47,56 @@ export class AuthNMappingsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ResponseMetaAttributes", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ResponseMetaAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AuthNMappingsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AuthNMappingsSort.ts b/packages/datadog-api-client-v2/models/AuthNMappingsSort.ts index 64269daa97dc..a0a09fd2c37d 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingsSort.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingsSort.ts @@ -4,41 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sorting options for AuthN Mappings. - */ +*/ -export type AuthNMappingsSort = - | typeof CREATED_AT_ASCENDING - | typeof CREATED_AT_DESCENDING - | typeof ROLE_ID_ASCENDING - | typeof ROLE_ID_DESCENDING - | typeof SAML_ASSERTION_ATTRIBUTE_ID_ASCENDING - | typeof SAML_ASSERTION_ATTRIBUTE_ID_DESCENDING - | typeof ROLE_NAME_ASCENDING - | typeof ROLE_NAME_DESCENDING - | typeof SAML_ASSERTION_ATTRIBUTE_KEY_ASCENDING - | typeof SAML_ASSERTION_ATTRIBUTE_KEY_DESCENDING - | typeof SAML_ASSERTION_ATTRIBUTE_VALUE_ASCENDING - | typeof SAML_ASSERTION_ATTRIBUTE_VALUE_DESCENDING - | UnparsedObject; -export const CREATED_AT_ASCENDING = "created_at"; -export const CREATED_AT_DESCENDING = "-created_at"; -export const ROLE_ID_ASCENDING = "role_id"; -export const ROLE_ID_DESCENDING = "-role_id"; -export const SAML_ASSERTION_ATTRIBUTE_ID_ASCENDING = - "saml_assertion_attribute_id"; -export const SAML_ASSERTION_ATTRIBUTE_ID_DESCENDING = - "-saml_assertion_attribute_id"; -export const ROLE_NAME_ASCENDING = "role.name"; -export const ROLE_NAME_DESCENDING = "-role.name"; -export const SAML_ASSERTION_ATTRIBUTE_KEY_ASCENDING = - "saml_assertion_attribute.attribute_key"; -export const SAML_ASSERTION_ATTRIBUTE_KEY_DESCENDING = - "-saml_assertion_attribute.attribute_key"; -export const SAML_ASSERTION_ATTRIBUTE_VALUE_ASCENDING = - "saml_assertion_attribute.attribute_value"; -export const SAML_ASSERTION_ATTRIBUTE_VALUE_DESCENDING = - "-saml_assertion_attribute.attribute_value"; +export type AuthNMappingsSort = typeof CREATED_AT_ASCENDING| typeof CREATED_AT_DESCENDING| typeof ROLE_ID_ASCENDING| typeof ROLE_ID_DESCENDING| typeof SAML_ASSERTION_ATTRIBUTE_ID_ASCENDING| typeof SAML_ASSERTION_ATTRIBUTE_ID_DESCENDING| typeof ROLE_NAME_ASCENDING| typeof ROLE_NAME_DESCENDING| typeof SAML_ASSERTION_ATTRIBUTE_KEY_ASCENDING| typeof SAML_ASSERTION_ATTRIBUTE_KEY_DESCENDING| typeof SAML_ASSERTION_ATTRIBUTE_VALUE_ASCENDING| typeof SAML_ASSERTION_ATTRIBUTE_VALUE_DESCENDING | UnparsedObject; +export const CREATED_AT_ASCENDING = 'created_at'; +export const CREATED_AT_DESCENDING = '-created_at'; +export const ROLE_ID_ASCENDING = 'role_id'; +export const ROLE_ID_DESCENDING = '-role_id'; +export const SAML_ASSERTION_ATTRIBUTE_ID_ASCENDING = 'saml_assertion_attribute_id'; +export const SAML_ASSERTION_ATTRIBUTE_ID_DESCENDING = '-saml_assertion_attribute_id'; +export const ROLE_NAME_ASCENDING = 'role.name'; +export const ROLE_NAME_DESCENDING = '-role.name'; +export const SAML_ASSERTION_ATTRIBUTE_KEY_ASCENDING = 'saml_assertion_attribute.attribute_key'; +export const SAML_ASSERTION_ATTRIBUTE_KEY_DESCENDING = '-saml_assertion_attribute.attribute_key'; +export const SAML_ASSERTION_ATTRIBUTE_VALUE_ASCENDING = 'saml_assertion_attribute.attribute_value'; +export const SAML_ASSERTION_ATTRIBUTE_VALUE_DESCENDING = '-saml_assertion_attribute.attribute_value'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AuthNMappingsType.ts b/packages/datadog-api-client-v2/models/AuthNMappingsType.ts index 2a70ab95a0c4..507c6a56bd45 100644 --- a/packages/datadog-api-client-v2/models/AuthNMappingsType.ts +++ b/packages/datadog-api-client-v2/models/AuthNMappingsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AuthN Mappings resource type. - */ +*/ export type AuthNMappingsType = typeof AUTHN_MAPPINGS | UnparsedObject; -export const AUTHN_MAPPINGS = "authn_mappings"; +export const AUTHN_MAPPINGS = 'authn_mappings'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AwsCURConfig.ts b/packages/datadog-api-client-v2/models/AwsCURConfig.ts index 767f1165ba71..12aa7b64f61f 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfig.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfig.ts @@ -6,23 +6,28 @@ import { AwsCURConfigAttributes } from "./AwsCURConfigAttributes"; import { AwsCURConfigType } from "./AwsCURConfigType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS CUR config. - */ +*/ export class AwsCURConfig { /** * Attributes for An AWS CUR config. - */ + */ "attributes": AwsCURConfigAttributes; /** * The ID of the AWS CUR config. - */ + */ "id"?: number; /** * Type of AWS CUR config. - */ + */ "type": AwsCURConfigType; /** @@ -41,33 +46,59 @@ export class AwsCURConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsCURConfigAttributes", - required: true, - }, - id: { - baseName: "id", - type: "number", - format: "int64", + "attributes": { + "baseName": "attributes", + "type": "AwsCURConfigAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AwsCURConfigType", - required: true, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsCURConfigType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigAttributes.ts b/packages/datadog-api-client-v2/models/AwsCURConfigAttributes.ts index 8e203c05f49d..931668b8dd74 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigAttributes.ts @@ -5,59 +5,64 @@ */ import { AccountFilteringConfig } from "./AccountFilteringConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for An AWS CUR config. - */ +*/ export class AwsCURConfigAttributes { /** * The account filtering configuration. - */ + */ "accountFilters"?: AccountFilteringConfig; /** * The AWS account ID. - */ + */ "accountId": string; /** * The AWS bucket name used to store the Cost and Usage Report. - */ + */ "bucketName": string; /** * The region the bucket is located in. - */ + */ "bucketRegion": string; /** * The timestamp when the AWS CUR config was created. - */ + */ "createdAt"?: string; /** * The error messages for the AWS CUR config. - */ + */ "errorMessages"?: Array; /** * The number of months the report has been backfilled. - */ + */ "months"?: number; /** * The name of the Cost and Usage Report. - */ + */ "reportName": string; /** * The report prefix used for the Cost and Usage Report. - */ + */ "reportPrefix": string; /** * The status of the AWS CUR. - */ + */ "status": string; /** * The timestamp when the AWS CUR config status was updated. - */ + */ "statusUpdatedAt"?: string; /** * The timestamp when the AWS CUR config status was updated. - */ + */ "updatedAt"?: string; /** @@ -76,73 +81,99 @@ export class AwsCURConfigAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountFilters: { - baseName: "account_filters", - type: "AccountFilteringConfig", + "accountFilters": { + "baseName": "account_filters", + "type": "AccountFilteringConfig", }, - accountId: { - baseName: "account_id", - type: "string", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - bucketName: { - baseName: "bucket_name", - type: "string", - required: true, + "bucketName": { + "baseName": "bucket_name", + "type": "string", + "required": true, }, - bucketRegion: { - baseName: "bucket_region", - type: "string", - required: true, + "bucketRegion": { + "baseName": "bucket_region", + "type": "string", + "required": true, }, - createdAt: { - baseName: "created_at", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "string", }, - errorMessages: { - baseName: "error_messages", - type: "Array", + "errorMessages": { + "baseName": "error_messages", + "type": "Array", }, - months: { - baseName: "months", - type: "number", - format: "int32", + "months": { + "baseName": "months", + "type": "number", + "format": "int32", }, - reportName: { - baseName: "report_name", - type: "string", - required: true, + "reportName": { + "baseName": "report_name", + "type": "string", + "required": true, }, - reportPrefix: { - baseName: "report_prefix", - type: "string", - required: true, + "reportPrefix": { + "baseName": "report_prefix", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "string", - required: true, + "status": { + "baseName": "status", + "type": "string", + "required": true, }, - statusUpdatedAt: { - baseName: "status_updated_at", - type: "string", + "statusUpdatedAt": { + "baseName": "status_updated_at", + "type": "string", }, - updatedAt: { - baseName: "updated_at", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "updatedAt": { + "baseName": "updated_at", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPatchData.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPatchData.ts index efe6a9789850..586ab830dd04 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPatchData.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPatchData.ts @@ -6,19 +6,24 @@ import { AwsCURConfigPatchRequestAttributes } from "./AwsCURConfigPatchRequestAttributes"; import { AwsCURConfigPatchRequestType } from "./AwsCURConfigPatchRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS CUR config Patch data. - */ +*/ export class AwsCURConfigPatchData { /** * Attributes for AWS CUR config Patch Request. - */ + */ "attributes": AwsCURConfigPatchRequestAttributes; /** * Type of AWS CUR config Patch Request. - */ + */ "type": AwsCURConfigPatchRequestType; /** @@ -37,28 +42,54 @@ export class AwsCURConfigPatchData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsCURConfigPatchRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AwsCURConfigPatchRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AwsCURConfigPatchRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsCURConfigPatchRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigPatchData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequest.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequest.ts index 6936da0d46bf..ac1cbf691240 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequest.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequest.ts @@ -5,15 +5,20 @@ */ import { AwsCURConfigPatchData } from "./AwsCURConfigPatchData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS CUR config Patch Request. - */ +*/ export class AwsCURConfigPatchRequest { /** * AWS CUR config Patch data. - */ + */ "data": AwsCURConfigPatchData; /** @@ -32,23 +37,49 @@ export class AwsCURConfigPatchRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsCURConfigPatchData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsCURConfigPatchData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigPatchRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestAttributes.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestAttributes.ts index a371db83a5e2..06eab4024edb 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestAttributes.ts @@ -5,19 +5,24 @@ */ import { AccountFilteringConfig } from "./AccountFilteringConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for AWS CUR config Patch Request. - */ +*/ export class AwsCURConfigPatchRequestAttributes { /** * The account filtering configuration. - */ + */ "accountFilters"?: AccountFilteringConfig; /** * Whether or not the Cloud Cost Management account is enabled. - */ + */ "isEnabled"?: boolean; /** @@ -36,26 +41,52 @@ export class AwsCURConfigPatchRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountFilters: { - baseName: "account_filters", - type: "AccountFilteringConfig", + "accountFilters": { + "baseName": "account_filters", + "type": "AccountFilteringConfig", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigPatchRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestType.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestType.ts index 7538e5265556..9ef61fd89659 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestType.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPatchRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of AWS CUR config Patch Request. - */ +*/ -export type AwsCURConfigPatchRequestType = - | typeof AWS_CUR_CONFIG_PATCH_REQUEST - | UnparsedObject; -export const AWS_CUR_CONFIG_PATCH_REQUEST = "aws_cur_config_patch_request"; +export type AwsCURConfigPatchRequestType = typeof AWS_CUR_CONFIG_PATCH_REQUEST | UnparsedObject; +export const AWS_CUR_CONFIG_PATCH_REQUEST = 'aws_cur_config_patch_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPostData.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPostData.ts index eedc57abfd79..875903bd46a2 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPostData.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPostData.ts @@ -6,19 +6,24 @@ import { AwsCURConfigPostRequestAttributes } from "./AwsCURConfigPostRequestAttributes"; import { AwsCURConfigPostRequestType } from "./AwsCURConfigPostRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS CUR config Post data. - */ +*/ export class AwsCURConfigPostData { /** * Attributes for AWS CUR config Post Request. - */ + */ "attributes": AwsCURConfigPostRequestAttributes; /** * Type of AWS CUR config Post Request. - */ + */ "type": AwsCURConfigPostRequestType; /** @@ -37,28 +42,54 @@ export class AwsCURConfigPostData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsCURConfigPostRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AwsCURConfigPostRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AwsCURConfigPostRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsCURConfigPostRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigPostData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPostRequest.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPostRequest.ts index 3e5208bbd5c5..1cae6b66e6ae 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPostRequest.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPostRequest.ts @@ -5,15 +5,20 @@ */ import { AwsCURConfigPostData } from "./AwsCURConfigPostData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AWS CUR config Post Request. - */ +*/ export class AwsCURConfigPostRequest { /** * AWS CUR config Post data. - */ + */ "data": AwsCURConfigPostData; /** @@ -32,23 +37,49 @@ export class AwsCURConfigPostRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsCURConfigPostData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsCURConfigPostData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigPostRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestAttributes.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestAttributes.ts index e59755594cbc..fcf9ed9fd78f 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestAttributes.ts @@ -5,43 +5,48 @@ */ import { AccountFilteringConfig } from "./AccountFilteringConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for AWS CUR config Post Request. - */ +*/ export class AwsCURConfigPostRequestAttributes { /** * The account filtering configuration. - */ + */ "accountFilters"?: AccountFilteringConfig; /** * The AWS account ID. - */ + */ "accountId": string; /** * The AWS bucket name used to store the Cost and Usage Report. - */ + */ "bucketName": string; /** * The region the bucket is located in. - */ + */ "bucketRegion"?: string; /** * Whether or not the Cloud Cost Management account is enabled. - */ + */ "isEnabled"?: boolean; /** * The month of the report. - */ + */ "months"?: number; /** * The name of the Cost and Usage Report. - */ + */ "reportName": string; /** * The report prefix used for the Cost and Usage Report. - */ + */ "reportPrefix": string; /** @@ -60,55 +65,81 @@ export class AwsCURConfigPostRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountFilters: { - baseName: "account_filters", - type: "AccountFilteringConfig", + "accountFilters": { + "baseName": "account_filters", + "type": "AccountFilteringConfig", }, - accountId: { - baseName: "account_id", - type: "string", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - bucketName: { - baseName: "bucket_name", - type: "string", - required: true, + "bucketName": { + "baseName": "bucket_name", + "type": "string", + "required": true, }, - bucketRegion: { - baseName: "bucket_region", - type: "string", + "bucketRegion": { + "baseName": "bucket_region", + "type": "string", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - months: { - baseName: "months", - type: "number", - format: "int32", + "months": { + "baseName": "months", + "type": "number", + "format": "int32", }, - reportName: { - baseName: "report_name", - type: "string", - required: true, + "reportName": { + "baseName": "report_name", + "type": "string", + "required": true, }, - reportPrefix: { - baseName: "report_prefix", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "reportPrefix": { + "baseName": "report_prefix", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigPostRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestType.ts b/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestType.ts index 4a3188716a27..1e543947a44f 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestType.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigPostRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of AWS CUR config Post Request. - */ +*/ -export type AwsCURConfigPostRequestType = - | typeof AWS_CUR_CONFIG_POST_REQUEST - | UnparsedObject; -export const AWS_CUR_CONFIG_POST_REQUEST = "aws_cur_config_post_request"; +export type AwsCURConfigPostRequestType = typeof AWS_CUR_CONFIG_POST_REQUEST | UnparsedObject; +export const AWS_CUR_CONFIG_POST_REQUEST = 'aws_cur_config_post_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigResponse.ts b/packages/datadog-api-client-v2/models/AwsCURConfigResponse.ts index 959a3f205d50..e5a74ca8ced2 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigResponse.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigResponse.ts @@ -5,15 +5,20 @@ */ import { AwsCURConfig } from "./AwsCURConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response of AWS CUR config. - */ +*/ export class AwsCURConfigResponse { /** * AWS CUR config. - */ + */ "data"?: AwsCURConfig; /** @@ -32,22 +37,48 @@ export class AwsCURConfigResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsCURConfig", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsCURConfig", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigType.ts b/packages/datadog-api-client-v2/models/AwsCURConfigType.ts index b31caef51440..6e546838bead 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigType.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of AWS CUR config. - */ +*/ export type AwsCURConfigType = typeof AWS_CUR_CONFIG | UnparsedObject; -export const AWS_CUR_CONFIG = "aws_cur_config"; +export const AWS_CUR_CONFIG = 'aws_cur_config'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.ts b/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.ts index 8a3ead1eee7a..6c00c853baa6 100644 --- a/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.ts +++ b/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.ts @@ -5,15 +5,20 @@ */ import { AwsCURConfig } from "./AwsCURConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of AWS CUR configs. - */ +*/ export class AwsCURConfigsResponse { /** * An AWS CUR config. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class AwsCURConfigsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsCURConfigsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandAttributes.ts b/packages/datadog-api-client-v2/models/AwsOnDemandAttributes.ts index 0c346f9491b8..98b8fcc14f25 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandAttributes.ts @@ -4,30 +4,35 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for the AWS on demand task. - */ +*/ export class AwsOnDemandAttributes { /** * The arn of the resource to scan. - */ + */ "arn"?: string; /** * Specifies the assignment timestamp if the task has been already assigned to a scanner. - */ + */ "assignedAt"?: string; /** * The task submission timestamp. - */ + */ "createdAt"?: string; /** * Indicates the status of the task. * QUEUED: the task has been submitted successfully and the resource has not been assigned to a scanner yet. * ASSIGNED: the task has been assigned. * ABORTED: the scan has been aborted after a period of time due to technical reasons, such as resource not found, insufficient permissions, or the absence of a configured scanner. - */ + */ "status"?: string; /** @@ -46,34 +51,60 @@ export class AwsOnDemandAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - arn: { - baseName: "arn", - type: "string", + "arn": { + "baseName": "arn", + "type": "string", }, - assignedAt: { - baseName: "assigned_at", - type: "string", + "assignedAt": { + "baseName": "assigned_at", + "type": "string", }, - createdAt: { - baseName: "created_at", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "string", }, - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandCreateAttributes.ts b/packages/datadog-api-client-v2/models/AwsOnDemandCreateAttributes.ts index a9b63cf43629..ae3f7a8cb1ed 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandCreateAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for the AWS on demand task. - */ +*/ export class AwsOnDemandCreateAttributes { /** * The arn of the resource to scan. Agentless supports the scan of EC2 instances, lambda functions, AMI, ECR, RDS and S3 buckets. - */ + */ "arn": string; /** @@ -31,23 +36,49 @@ export class AwsOnDemandCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - arn: { - baseName: "arn", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "arn": { + "baseName": "arn", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandCreateData.ts b/packages/datadog-api-client-v2/models/AwsOnDemandCreateData.ts index 0502f4062347..8e4f2a95382e 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandCreateData.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandCreateData.ts @@ -6,19 +6,24 @@ import { AwsOnDemandCreateAttributes } from "./AwsOnDemandCreateAttributes"; import { AwsOnDemandType } from "./AwsOnDemandType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single AWS on demand task. - */ +*/ export class AwsOnDemandCreateData { /** * Attributes for the AWS on demand task. - */ + */ "attributes": AwsOnDemandCreateAttributes; /** * The type of the on demand task. The value should always be `aws_resource`. - */ + */ "type": AwsOnDemandType; /** @@ -37,28 +42,54 @@ export class AwsOnDemandCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsOnDemandCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AwsOnDemandCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AwsOnDemandType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsOnDemandType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandCreateRequest.ts b/packages/datadog-api-client-v2/models/AwsOnDemandCreateRequest.ts index 6fc2bb0e2789..0031713e3645 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandCreateRequest.ts @@ -5,15 +5,20 @@ */ import { AwsOnDemandCreateData } from "./AwsOnDemandCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the on demand task to submit. - */ +*/ export class AwsOnDemandCreateRequest { /** * Object for a single AWS on demand task. - */ + */ "data": AwsOnDemandCreateData; /** @@ -32,23 +37,49 @@ export class AwsOnDemandCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsOnDemandCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsOnDemandCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandData.ts b/packages/datadog-api-client-v2/models/AwsOnDemandData.ts index 5f9c0f0e4ec9..a913cb1b87b9 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandData.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandData.ts @@ -6,23 +6,28 @@ import { AwsOnDemandAttributes } from "./AwsOnDemandAttributes"; import { AwsOnDemandType } from "./AwsOnDemandType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Single AWS on demand task. - */ +*/ export class AwsOnDemandData { /** * Attributes for the AWS on demand task. - */ + */ "attributes"?: AwsOnDemandAttributes; /** * The UUID of the task. - */ + */ "id"?: string; /** * The type of the on demand task. The value should always be `aws_resource`. - */ + */ "type"?: AwsOnDemandType; /** @@ -41,30 +46,56 @@ export class AwsOnDemandData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsOnDemandAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "AwsOnDemandAttributes", }, - type: { - baseName: "type", - type: "AwsOnDemandType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsOnDemandType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandListResponse.ts b/packages/datadog-api-client-v2/models/AwsOnDemandListResponse.ts index f1fccc307936..0bab3ee085f5 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandListResponse.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandListResponse.ts @@ -5,15 +5,20 @@ */ import { AwsOnDemandData } from "./AwsOnDemandData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a list of AWS on demand tasks. - */ +*/ export class AwsOnDemandListResponse { /** * A list of on demand tasks. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class AwsOnDemandListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandResponse.ts b/packages/datadog-api-client-v2/models/AwsOnDemandResponse.ts index ca3c05c5ba52..2564a9139a95 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandResponse.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandResponse.ts @@ -5,15 +5,20 @@ */ import { AwsOnDemandData } from "./AwsOnDemandData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes an AWS on demand task. - */ +*/ export class AwsOnDemandResponse { /** * Single AWS on demand task. - */ + */ "data"?: AwsOnDemandData; /** @@ -32,22 +37,48 @@ export class AwsOnDemandResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsOnDemandData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsOnDemandData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsOnDemandResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsOnDemandType.ts b/packages/datadog-api-client-v2/models/AwsOnDemandType.ts index f6e03c347d51..6957f5855ade 100644 --- a/packages/datadog-api-client-v2/models/AwsOnDemandType.ts +++ b/packages/datadog-api-client-v2/models/AwsOnDemandType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the on demand task. The value should always be `aws_resource`. - */ +*/ export type AwsOnDemandType = typeof AWS_RESOURCE | UnparsedObject; -export const AWS_RESOURCE = "aws_resource"; +export const AWS_RESOURCE = 'aws_resource'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.ts index fb062815a221..c5f56dd24195 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for the AWS scan options. - */ +*/ export class AwsScanOptionsAttributes { /** * Indicates if scanning of Lambda functions is enabled. - */ + */ "lambda"?: boolean; /** * Indicates if scanning for sensitive data is enabled. - */ + */ "sensitiveData"?: boolean; /** * Indicates if scanning for vulnerabilities in containers is enabled. - */ + */ "vulnContainersOs"?: boolean; /** * Indicates if scanning for vulnerabilities in hosts is enabled. - */ + */ "vulnHostOs"?: boolean; /** @@ -43,34 +48,60 @@ export class AwsScanOptionsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lambda: { - baseName: "lambda", - type: "boolean", + "lambda": { + "baseName": "lambda", + "type": "boolean", }, - sensitiveData: { - baseName: "sensitive_data", - type: "boolean", + "sensitiveData": { + "baseName": "sensitive_data", + "type": "boolean", }, - vulnContainersOs: { - baseName: "vuln_containers_os", - type: "boolean", + "vulnContainersOs": { + "baseName": "vuln_containers_os", + "type": "boolean", }, - vulnHostOs: { - baseName: "vuln_host_os", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vulnHostOs": { + "baseName": "vuln_host_os", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsCreateAttributes.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsCreateAttributes.ts index 067fa1039c66..0cf00da34243 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsCreateAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for the AWS scan options to create. - */ +*/ export class AwsScanOptionsCreateAttributes { /** * Indicates if scanning of Lambda functions is enabled. - */ + */ "lambda": boolean; /** * Indicates if scanning for sensitive data is enabled. - */ + */ "sensitiveData": boolean; /** * Indicates if scanning for vulnerabilities in containers is enabled. - */ + */ "vulnContainersOs": boolean; /** * Indicates if scanning for vulnerabilities in hosts is enabled. - */ + */ "vulnHostOs": boolean; /** @@ -43,38 +48,64 @@ export class AwsScanOptionsCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lambda: { - baseName: "lambda", - type: "boolean", - required: true, + "lambda": { + "baseName": "lambda", + "type": "boolean", + "required": true, }, - sensitiveData: { - baseName: "sensitive_data", - type: "boolean", - required: true, + "sensitiveData": { + "baseName": "sensitive_data", + "type": "boolean", + "required": true, }, - vulnContainersOs: { - baseName: "vuln_containers_os", - type: "boolean", - required: true, + "vulnContainersOs": { + "baseName": "vuln_containers_os", + "type": "boolean", + "required": true, }, - vulnHostOs: { - baseName: "vuln_host_os", - type: "boolean", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vulnHostOs": { + "baseName": "vuln_host_os", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsCreateData.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsCreateData.ts index d1f4f8c8e566..60b771205847 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsCreateData.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsCreateData.ts @@ -6,23 +6,28 @@ import { AwsScanOptionsCreateAttributes } from "./AwsScanOptionsCreateAttributes"; import { AwsScanOptionsType } from "./AwsScanOptionsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for the scan options of a single AWS account. - */ +*/ export class AwsScanOptionsCreateData { /** * Attributes for the AWS scan options to create. - */ + */ "attributes": AwsScanOptionsCreateAttributes; /** * The ID of the AWS account. - */ + */ "id": string; /** * The type of the resource. The value should always be `aws_scan_options`. - */ + */ "type": AwsScanOptionsType; /** @@ -41,33 +46,59 @@ export class AwsScanOptionsCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsScanOptionsCreateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AwsScanOptionsCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AwsScanOptionsType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsScanOptionsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsCreateRequest.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsCreateRequest.ts index ab0468e8edb9..88b9589f5130 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsCreateRequest.ts @@ -5,15 +5,20 @@ */ import { AwsScanOptionsCreateData } from "./AwsScanOptionsCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the scan options to create. - */ +*/ export class AwsScanOptionsCreateRequest { /** * Object for the scan options of a single AWS account. - */ + */ "data": AwsScanOptionsCreateData; /** @@ -32,23 +37,49 @@ export class AwsScanOptionsCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsScanOptionsCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsScanOptionsCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsData.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsData.ts index de3b1351b47f..aa4f239c3aea 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsData.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsData.ts @@ -6,23 +6,28 @@ import { AwsScanOptionsAttributes } from "./AwsScanOptionsAttributes"; import { AwsScanOptionsType } from "./AwsScanOptionsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Single AWS Scan Options entry. - */ +*/ export class AwsScanOptionsData { /** * Attributes for the AWS scan options. - */ + */ "attributes"?: AwsScanOptionsAttributes; /** * The ID of the AWS account. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `aws_scan_options`. - */ + */ "type"?: AwsScanOptionsType; /** @@ -41,30 +46,56 @@ export class AwsScanOptionsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsScanOptionsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "AwsScanOptionsAttributes", }, - type: { - baseName: "type", - type: "AwsScanOptionsType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsScanOptionsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsListResponse.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsListResponse.ts index 6dcd323ab8ae..c6b19dca4558 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsListResponse.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsListResponse.ts @@ -5,15 +5,20 @@ */ import { AwsScanOptionsData } from "./AwsScanOptionsData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a list of AWS scan options. - */ +*/ export class AwsScanOptionsListResponse { /** * A list of AWS scan options. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class AwsScanOptionsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.ts index c06a7681fddf..163ad10f4a58 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.ts @@ -5,15 +5,20 @@ */ import { AwsScanOptionsData } from "./AwsScanOptionsData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes the scan options of an AWS account. - */ +*/ export class AwsScanOptionsResponse { /** * Single AWS Scan Options entry. - */ + */ "data"?: AwsScanOptionsData; /** @@ -32,22 +37,48 @@ export class AwsScanOptionsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsScanOptionsData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsScanOptionsData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsType.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsType.ts index 7d8310d41405..e8407a69644d 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsType.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `aws_scan_options`. - */ +*/ export type AwsScanOptionsType = typeof AWS_SCAN_OPTIONS | UnparsedObject; -export const AWS_SCAN_OPTIONS = "aws_scan_options"; +export const AWS_SCAN_OPTIONS = 'aws_scan_options'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateAttributes.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateAttributes.ts index 369ef614ac45..d066e6445d1d 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for the AWS scan options to update. - */ +*/ export class AwsScanOptionsUpdateAttributes { /** * Indicates if scanning of Lambda functions is enabled. - */ + */ "lambda"?: boolean; /** * Indicates if scanning for sensitive data is enabled. - */ + */ "sensitiveData"?: boolean; /** * Indicates if scanning for vulnerabilities in containers is enabled. - */ + */ "vulnContainersOs"?: boolean; /** * Indicates if scanning for vulnerabilities in hosts is enabled. - */ + */ "vulnHostOs"?: boolean; /** @@ -43,34 +48,60 @@ export class AwsScanOptionsUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lambda: { - baseName: "lambda", - type: "boolean", + "lambda": { + "baseName": "lambda", + "type": "boolean", }, - sensitiveData: { - baseName: "sensitive_data", - type: "boolean", + "sensitiveData": { + "baseName": "sensitive_data", + "type": "boolean", }, - vulnContainersOs: { - baseName: "vuln_containers_os", - type: "boolean", + "vulnContainersOs": { + "baseName": "vuln_containers_os", + "type": "boolean", }, - vulnHostOs: { - baseName: "vuln_host_os", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vulnHostOs": { + "baseName": "vuln_host_os", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateData.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateData.ts index 15228bdae94f..cc38e382c4b3 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateData.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateData.ts @@ -6,23 +6,28 @@ import { AwsScanOptionsType } from "./AwsScanOptionsType"; import { AwsScanOptionsUpdateAttributes } from "./AwsScanOptionsUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for the scan options of a single AWS account. - */ +*/ export class AwsScanOptionsUpdateData { /** * Attributes for the AWS scan options to update. - */ + */ "attributes": AwsScanOptionsUpdateAttributes; /** * The ID of the AWS account. - */ + */ "id": string; /** * The type of the resource. The value should always be `aws_scan_options`. - */ + */ "type": AwsScanOptionsType; /** @@ -41,33 +46,59 @@ export class AwsScanOptionsUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AwsScanOptionsUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AwsScanOptionsUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AwsScanOptionsType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AwsScanOptionsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateRequest.ts b/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateRequest.ts index 71499d0e76ec..801d5f70e3a6 100644 --- a/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/AwsScanOptionsUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { AwsScanOptionsUpdateData } from "./AwsScanOptionsUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the scan options to update. - */ +*/ export class AwsScanOptionsUpdateRequest { /** * Object for the scan options of a single AWS account. - */ + */ "data": AwsScanOptionsUpdateData; /** @@ -32,23 +37,49 @@ export class AwsScanOptionsUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AwsScanOptionsUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AwsScanOptionsUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AwsScanOptionsUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfig.ts b/packages/datadog-api-client-v2/models/AzureUCConfig.ts index 09a6e9663f63..35df55ae068f 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfig.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfig.ts @@ -4,71 +4,76 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Azure config. - */ +*/ export class AzureUCConfig { /** * The tenant ID of the azure account. - */ + */ "accountId": string; /** * The client ID of the Azure account. - */ + */ "clientId": string; /** * The timestamp when the Azure config was created. - */ + */ "createdAt"?: string; /** * The dataset type of the Azure config. - */ + */ "datasetType": string; /** * The error messages for the Azure config. - */ + */ "errorMessages"?: Array; /** * The name of the configured Azure Export. - */ + */ "exportName": string; /** * The path where the Azure Export is saved. - */ + */ "exportPath": string; /** * The ID of the Azure config. - */ + */ "id"?: number; /** * The number of months the report has been backfilled. - */ + */ "months"?: number; /** * The scope of your observed subscription. - */ + */ "scope": string; /** * The status of the Azure config. - */ + */ "status": string; /** * The timestamp when the Azure config status was last updated. - */ + */ "statusUpdatedAt"?: string; /** * The name of the storage account where the Azure Export is saved. - */ + */ "storageAccount": string; /** * The name of the storage container where the Azure Export is saved. - */ + */ "storageContainer": string; /** * The timestamp when the Azure config was last updated. - */ + */ "updatedAt"?: string; /** @@ -87,89 +92,115 @@ export class AzureUCConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, - }, - clientId: { - baseName: "client_id", - type: "string", - required: true, - }, - createdAt: { - baseName: "created_at", - type: "string", - }, - datasetType: { - baseName: "dataset_type", - type: "string", - required: true, - }, - errorMessages: { - baseName: "error_messages", - type: "Array", - }, - exportName: { - baseName: "export_name", - type: "string", - required: true, - }, - exportPath: { - baseName: "export_path", - type: "string", - required: true, - }, - id: { - baseName: "id", - type: "number", - format: "int64", - }, - months: { - baseName: "months", - type: "number", - format: "int32", - }, - scope: { - baseName: "scope", - type: "string", - required: true, - }, - status: { - baseName: "status", - type: "string", - required: true, - }, - statusUpdatedAt: { - baseName: "status_updated_at", - type: "string", - }, - storageAccount: { - baseName: "storage_account", - type: "string", - required: true, - }, - storageContainer: { - baseName: "storage_container", - type: "string", - required: true, - }, - updatedAt: { - baseName: "updated_at", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, + }, + "clientId": { + "baseName": "client_id", + "type": "string", + "required": true, + }, + "createdAt": { + "baseName": "created_at", + "type": "string", + }, + "datasetType": { + "baseName": "dataset_type", + "type": "string", + "required": true, + }, + "errorMessages": { + "baseName": "error_messages", + "type": "Array", + }, + "exportName": { + "baseName": "export_name", + "type": "string", + "required": true, + }, + "exportPath": { + "baseName": "export_path", + "type": "string", + "required": true, + }, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", + }, + "months": { + "baseName": "months", + "type": "number", + "format": "int32", + }, + "scope": { + "baseName": "scope", + "type": "string", + "required": true, + }, + "status": { + "baseName": "status", + "type": "string", + "required": true, + }, + "statusUpdatedAt": { + "baseName": "status_updated_at", + "type": "string", + }, + "storageAccount": { + "baseName": "storage_account", + "type": "string", + "required": true, + }, + "storageContainer": { + "baseName": "storage_container", + "type": "string", + "required": true, + }, + "updatedAt": { + "baseName": "updated_at", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPair.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPair.ts index 8934635d2ac0..814fa5af800b 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPair.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPair.ts @@ -6,23 +6,28 @@ import { AzureUCConfigPairAttributes } from "./AzureUCConfigPairAttributes"; import { AzureUCConfigPairType } from "./AzureUCConfigPairType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Azure config pair. - */ +*/ export class AzureUCConfigPair { /** * Attributes for Azure config pair. - */ + */ "attributes": AzureUCConfigPairAttributes; /** * The ID of Cloud Cost Management account. - */ + */ "id"?: number; /** * Type of Azure config pair. - */ + */ "type": AzureUCConfigPairType; /** @@ -41,33 +46,59 @@ export class AzureUCConfigPair { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AzureUCConfigPairAttributes", - required: true, - }, - id: { - baseName: "id", - type: "number", - format: "int64", + "attributes": { + "baseName": "attributes", + "type": "AzureUCConfigPairAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AzureUCConfigPairType", - required: true, + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AzureUCConfigPairType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPair.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPairAttributes.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPairAttributes.ts index e2355c13f15d..83018b4b6795 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPairAttributes.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPairAttributes.ts @@ -5,19 +5,24 @@ */ import { AzureUCConfig } from "./AzureUCConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for Azure config pair. - */ +*/ export class AzureUCConfigPairAttributes { /** * An Azure config. - */ + */ "configs": Array; /** * The ID of the Azure config pair. - */ + */ "id"?: number; /** @@ -36,28 +41,54 @@ export class AzureUCConfigPairAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - configs: { - baseName: "configs", - type: "Array", - required: true, + "configs": { + "baseName": "configs", + "type": "Array", + "required": true, }, - id: { - baseName: "id", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPairAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPairType.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPairType.ts index d4be898ffa0f..4e7861e6a4aa 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPairType.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPairType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Azure config pair. - */ +*/ export type AzureUCConfigPairType = typeof AZURE_UC_CONFIGS | UnparsedObject; -export const AZURE_UC_CONFIGS = "azure_uc_configs"; +export const AZURE_UC_CONFIGS = 'azure_uc_configs'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPairsResponse.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPairsResponse.ts index 0fdbe8ffa388..5ad146521d50 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPairsResponse.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPairsResponse.ts @@ -5,15 +5,20 @@ */ import { AzureUCConfigPair } from "./AzureUCConfigPair"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response of Azure config pair. - */ +*/ export class AzureUCConfigPairsResponse { /** * Azure config pair. - */ + */ "data"?: AzureUCConfigPair; /** @@ -32,22 +37,48 @@ export class AzureUCConfigPairsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AzureUCConfigPair", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AzureUCConfigPair", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPairsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.ts index bcfc9ea7fd98..c8178e9fb693 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.ts @@ -6,19 +6,24 @@ import { AzureUCConfigPatchRequestAttributes } from "./AzureUCConfigPatchRequestAttributes"; import { AzureUCConfigPatchRequestType } from "./AzureUCConfigPatchRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Azure config Patch data. - */ +*/ export class AzureUCConfigPatchData { /** * Attributes for Azure config Patch Request. - */ + */ "attributes": AzureUCConfigPatchRequestAttributes; /** * Type of Azure config Patch Request. - */ + */ "type": AzureUCConfigPatchRequestType; /** @@ -37,28 +42,54 @@ export class AzureUCConfigPatchData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AzureUCConfigPatchRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AzureUCConfigPatchRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AzureUCConfigPatchRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AzureUCConfigPatchRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPatchData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequest.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequest.ts index 4a8807b64826..ef148d6152a3 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequest.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequest.ts @@ -5,15 +5,20 @@ */ import { AzureUCConfigPatchData } from "./AzureUCConfigPatchData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Azure config Patch Request. - */ +*/ export class AzureUCConfigPatchRequest { /** * Azure config Patch data. - */ + */ "data": AzureUCConfigPatchData; /** @@ -32,23 +37,49 @@ export class AzureUCConfigPatchRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AzureUCConfigPatchData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AzureUCConfigPatchData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPatchRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestAttributes.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestAttributes.ts index 1c8d64d3b5aa..16f8b820cc03 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for Azure config Patch Request. - */ +*/ export class AzureUCConfigPatchRequestAttributes { /** * Whether or not the Cloud Cost Management account is enabled. - */ + */ "isEnabled": boolean; /** @@ -31,23 +36,49 @@ export class AzureUCConfigPatchRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPatchRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestType.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestType.ts index 99156b9b4476..d358f89f3b75 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestType.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPatchRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Azure config Patch Request. - */ +*/ -export type AzureUCConfigPatchRequestType = - | typeof AZURE_UC_CONFIG_PATCH_REQUEST - | UnparsedObject; -export const AZURE_UC_CONFIG_PATCH_REQUEST = "azure_uc_config_patch_request"; +export type AzureUCConfigPatchRequestType = typeof AZURE_UC_CONFIG_PATCH_REQUEST | UnparsedObject; +export const AZURE_UC_CONFIG_PATCH_REQUEST = 'azure_uc_config_patch_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPostData.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPostData.ts index 5a298bcef5d6..18398631e9fb 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPostData.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPostData.ts @@ -6,19 +6,24 @@ import { AzureUCConfigPostRequestAttributes } from "./AzureUCConfigPostRequestAttributes"; import { AzureUCConfigPostRequestType } from "./AzureUCConfigPostRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Azure config Post data. - */ +*/ export class AzureUCConfigPostData { /** * Attributes for Azure config Post Request. - */ + */ "attributes": AzureUCConfigPostRequestAttributes; /** * Type of Azure config Post Request. - */ + */ "type": AzureUCConfigPostRequestType; /** @@ -37,28 +42,54 @@ export class AzureUCConfigPostData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "AzureUCConfigPostRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "AzureUCConfigPostRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AzureUCConfigPostRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AzureUCConfigPostRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPostData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPostRequest.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPostRequest.ts index cbf3b96d11d1..b8d4a99d06d2 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPostRequest.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPostRequest.ts @@ -5,15 +5,20 @@ */ import { AzureUCConfigPostData } from "./AzureUCConfigPostData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Azure config Post Request. - */ +*/ export class AzureUCConfigPostRequest { /** * Azure config Post data. - */ + */ "data": AzureUCConfigPostData; /** @@ -32,23 +37,49 @@ export class AzureUCConfigPostRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "AzureUCConfigPostData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "AzureUCConfigPostData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPostRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.ts index 7f6a4df8a352..53e4484099c2 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.ts @@ -5,35 +5,40 @@ */ import { BillConfig } from "./BillConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for Azure config Post Request. - */ +*/ export class AzureUCConfigPostRequestAttributes { /** * The tenant ID of the azure account. - */ + */ "accountId": string; /** * Bill config. - */ + */ "actualBillConfig": BillConfig; /** * Bill config. - */ + */ "amortizedBillConfig": BillConfig; /** * The client ID of the azure account. - */ + */ "clientId": string; /** * Whether or not the Cloud Cost Management account is enabled. - */ + */ "isEnabled"?: boolean; /** * The scope of your observed subscription. - */ + */ "scope": string; /** @@ -52,47 +57,73 @@ export class AzureUCConfigPostRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, - }, - actualBillConfig: { - baseName: "actual_bill_config", - type: "BillConfig", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - amortizedBillConfig: { - baseName: "amortized_bill_config", - type: "BillConfig", - required: true, + "actualBillConfig": { + "baseName": "actual_bill_config", + "type": "BillConfig", + "required": true, }, - clientId: { - baseName: "client_id", - type: "string", - required: true, + "amortizedBillConfig": { + "baseName": "amortized_bill_config", + "type": "BillConfig", + "required": true, }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "clientId": { + "baseName": "client_id", + "type": "string", + "required": true, }, - scope: { - baseName: "scope", - type: "string", - required: true, + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scope": { + "baseName": "scope", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigPostRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestType.ts b/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestType.ts index 62b237e1c298..4a83a2abfdaa 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestType.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Azure config Post Request. - */ +*/ -export type AzureUCConfigPostRequestType = - | typeof AZURE_UC_CONFIG_POST_REQUEST - | UnparsedObject; -export const AZURE_UC_CONFIG_POST_REQUEST = "azure_uc_config_post_request"; +export type AzureUCConfigPostRequestType = typeof AZURE_UC_CONFIG_POST_REQUEST | UnparsedObject; +export const AZURE_UC_CONFIG_POST_REQUEST = 'azure_uc_config_post_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.ts b/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.ts index f28972013dc2..898c74fa8a03 100644 --- a/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.ts +++ b/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.ts @@ -5,15 +5,20 @@ */ import { AzureUCConfigPair } from "./AzureUCConfigPair"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of Azure accounts with configs. - */ +*/ export class AzureUCConfigsResponse { /** * An Azure config pair. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class AzureUCConfigsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return AzureUCConfigsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BillConfig.ts b/packages/datadog-api-client-v2/models/BillConfig.ts index 094f59620460..dbf0209a46af 100644 --- a/packages/datadog-api-client-v2/models/BillConfig.ts +++ b/packages/datadog-api-client-v2/models/BillConfig.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Bill config. - */ +*/ export class BillConfig { /** * The name of the configured Azure Export. - */ + */ "exportName": string; /** * The path where the Azure Export is saved. - */ + */ "exportPath": string; /** * The name of the storage account where the Azure Export is saved. - */ + */ "storageAccount": string; /** * The name of the storage container where the Azure Export is saved. - */ + */ "storageContainer": string; /** @@ -43,38 +48,64 @@ export class BillConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - exportName: { - baseName: "export_name", - type: "string", - required: true, + "exportName": { + "baseName": "export_name", + "type": "string", + "required": true, }, - exportPath: { - baseName: "export_path", - type: "string", - required: true, + "exportPath": { + "baseName": "export_path", + "type": "string", + "required": true, }, - storageAccount: { - baseName: "storage_account", - type: "string", - required: true, + "storageAccount": { + "baseName": "storage_account", + "type": "string", + "required": true, }, - storageContainer: { - baseName: "storage_container", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "storageContainer": { + "baseName": "storage_container", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BillConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItem.ts b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItem.ts index 20817ae49a87..95490900f995 100644 --- a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItem.ts +++ b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItem.ts @@ -6,23 +6,28 @@ import { ActiveBillingDimensionsType } from "./ActiveBillingDimensionsType"; import { BillingDimensionsMappingBodyItemAttributes } from "./BillingDimensionsMappingBodyItemAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The mapping data for each billing dimension. - */ +*/ export class BillingDimensionsMappingBodyItem { /** * Mapping of billing dimensions to endpoint keys. - */ + */ "attributes"?: BillingDimensionsMappingBodyItemAttributes; /** * ID of the billing dimension. - */ + */ "id"?: string; /** * Type of active billing dimensions data. - */ + */ "type"?: ActiveBillingDimensionsType; /** @@ -41,30 +46,56 @@ export class BillingDimensionsMappingBodyItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "BillingDimensionsMappingBodyItemAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "BillingDimensionsMappingBodyItemAttributes", }, - type: { - baseName: "type", - type: "ActiveBillingDimensionsType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ActiveBillingDimensionsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BillingDimensionsMappingBodyItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributes.ts b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributes.ts index 0f19e8a37e24..98b5cedca252 100644 --- a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributes.ts +++ b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributes.ts @@ -5,23 +5,28 @@ */ import { BillingDimensionsMappingBodyItemAttributesEndpointsItems } from "./BillingDimensionsMappingBodyItemAttributesEndpointsItems"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Mapping of billing dimensions to endpoint keys. - */ +*/ export class BillingDimensionsMappingBodyItemAttributes { /** * List of supported endpoints with their keys mapped to the billing_dimension. - */ + */ "endpoints"?: Array; /** * Label used for the billing dimension in the Plan & Usage charts. - */ + */ "inAppLabel"?: string; /** * Month in ISO-8601 format, UTC, and precise to the second: `[YYYY-MM-DDThh:mm:ss]`. - */ + */ "timestamp"?: Date; /** @@ -40,31 +45,57 @@ export class BillingDimensionsMappingBodyItemAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - endpoints: { - baseName: "endpoints", - type: "Array", - }, - inAppLabel: { - baseName: "in_app_label", - type: "string", + "endpoints": { + "baseName": "endpoints", + "type": "Array", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", + "inAppLabel": { + "baseName": "in_app_label", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BillingDimensionsMappingBodyItemAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItems.ts b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItems.ts index 6f24999d7146..6af3d2a9f347 100644 --- a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItems.ts +++ b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItems.ts @@ -5,23 +5,28 @@ */ import { BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus } from "./BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An endpoint's keys mapped to the billing_dimension. - */ +*/ export class BillingDimensionsMappingBodyItemAttributesEndpointsItems { /** * The URL for the endpoint. - */ + */ "id"?: string; /** * The billing dimension. - */ + */ "keys"?: Array; /** * Denotes whether mapping keys were available for this endpoint. - */ + */ "status"?: BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus; /** @@ -40,30 +45,56 @@ export class BillingDimensionsMappingBodyItemAttributesEndpointsItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - keys: { - baseName: "keys", - type: "Array", + "id": { + "baseName": "id", + "type": "string", }, - status: { - baseName: "status", - type: "BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus", + "keys": { + "baseName": "keys", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BillingDimensionsMappingBodyItemAttributesEndpointsItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus.ts b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus.ts index 6b2476b0088d..a240e8ee64af 100644 --- a/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus.ts +++ b/packages/datadog-api-client-v2/models/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Denotes whether mapping keys were available for this endpoint. - */ +*/ -export type BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus = - | typeof OK - | typeof NOT_FOUND - | UnparsedObject; -export const OK = "OK"; -export const NOT_FOUND = "NOT_FOUND"; +export type BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus = typeof OK| typeof NOT_FOUND | UnparsedObject; +export const OK = 'OK'; +export const NOT_FOUND = 'NOT_FOUND'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/BillingDimensionsMappingResponse.ts b/packages/datadog-api-client-v2/models/BillingDimensionsMappingResponse.ts index a2385d3be4cf..06b91c505ed5 100644 --- a/packages/datadog-api-client-v2/models/BillingDimensionsMappingResponse.ts +++ b/packages/datadog-api-client-v2/models/BillingDimensionsMappingResponse.ts @@ -5,15 +5,20 @@ */ import { BillingDimensionsMappingBodyItem } from "./BillingDimensionsMappingBodyItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Billing dimensions mapping response. - */ +*/ export class BillingDimensionsMappingResponse { /** * Billing dimensions mapping data. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class BillingDimensionsMappingResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BillingDimensionsMappingResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequest.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequest.ts index 9cf30b030a50..ed279a498067 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequest.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequest.ts @@ -5,15 +5,20 @@ */ import { BulkMuteFindingsRequestData } from "./BulkMuteFindingsRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new bulk mute finding request. - */ +*/ export class BulkMuteFindingsRequest { /** * Data object containing the new bulk mute properties of the finding. - */ + */ "data": BulkMuteFindingsRequestData; /** @@ -32,23 +37,49 @@ export class BulkMuteFindingsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "BulkMuteFindingsRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "BulkMuteFindingsRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestAttributes.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestAttributes.ts index 531e3c7c8aa8..8f7f180eee10 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestAttributes.ts @@ -5,15 +5,20 @@ */ import { BulkMuteFindingsRequestProperties } from "./BulkMuteFindingsRequestProperties"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The mute properties to be updated. - */ +*/ export class BulkMuteFindingsRequestAttributes { /** * Object containing the new mute properties of the findings. - */ + */ "mute": BulkMuteFindingsRequestProperties; /** @@ -25,19 +30,45 @@ export class BulkMuteFindingsRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - mute: { - baseName: "mute", - type: "BulkMuteFindingsRequestProperties", - required: true, - }, + "mute": { + "baseName": "mute", + "type": "BulkMuteFindingsRequestProperties", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestData.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestData.ts index ebd5a7dc7378..ecd01bf95ec9 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestData.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestData.ts @@ -7,27 +7,32 @@ import { BulkMuteFindingsRequestAttributes } from "./BulkMuteFindingsRequestAttr import { BulkMuteFindingsRequestMeta } from "./BulkMuteFindingsRequestMeta"; import { FindingType } from "./FindingType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object containing the new bulk mute properties of the finding. - */ +*/ export class BulkMuteFindingsRequestData { /** * The mute properties to be updated. - */ + */ "attributes": BulkMuteFindingsRequestAttributes; /** * UUID to identify the request - */ + */ "id": string; /** * Meta object containing the findings to be updated. - */ + */ "meta": BulkMuteFindingsRequestMeta; /** * The JSON:API type for findings. - */ + */ "type": FindingType; /** @@ -46,38 +51,64 @@ export class BulkMuteFindingsRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "BulkMuteFindingsRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "BulkMuteFindingsRequestAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - meta: { - baseName: "meta", - type: "BulkMuteFindingsRequestMeta", - required: true, + "meta": { + "baseName": "meta", + "type": "BulkMuteFindingsRequestMeta", + "required": true, }, - type: { - baseName: "type", - type: "FindingType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FindingType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMeta.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMeta.ts index 259f97e69136..1039852f7230 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMeta.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMeta.ts @@ -5,15 +5,20 @@ */ import { BulkMuteFindingsRequestMetaFindings } from "./BulkMuteFindingsRequestMetaFindings"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta object containing the findings to be updated. - */ +*/ export class BulkMuteFindingsRequestMeta { /** * Array of findings. - */ + */ "findings"?: Array; /** @@ -32,22 +37,48 @@ export class BulkMuteFindingsRequestMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - findings: { - baseName: "findings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "findings": { + "baseName": "findings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsRequestMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMetaFindings.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMetaFindings.ts index 097b9de56b90..aa5ab5ac6417 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMetaFindings.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestMetaFindings.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Finding object containing the finding information. - */ +*/ export class BulkMuteFindingsRequestMetaFindings { /** * The unique ID for this finding. - */ + */ "findingId"?: string; /** @@ -31,22 +36,48 @@ export class BulkMuteFindingsRequestMetaFindings { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - findingId: { - baseName: "finding_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "findingId": { + "baseName": "finding_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsRequestMetaFindings.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestProperties.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestProperties.ts index f33fed7e40b3..2ca3605d8b00 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestProperties.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsRequestProperties.ts @@ -5,28 +5,33 @@ */ import { FindingMuteReason } from "./FindingMuteReason"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the new mute properties of the findings. - */ +*/ export class BulkMuteFindingsRequestProperties { /** * Additional information about the reason why those findings are muted or unmuted. This field has a maximum limit of 280 characters. - */ + */ "description"?: string; /** * The expiration date of the mute or unmute action (Unix ms). It must be set to a value greater than the current timestamp. * If this field is not provided, the finding will be muted or unmuted indefinitely, which is equivalent to setting the expiration date to 9999999999999. - */ + */ "expirationDate"?: number; /** * Whether those findings should be muted or unmuted. - */ + */ "muted": boolean; /** * The reason why this finding is muted or unmuted. - */ + */ "reason": FindingMuteReason; /** @@ -38,33 +43,59 @@ export class BulkMuteFindingsRequestProperties { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - expirationDate: { - baseName: "expiration_date", - type: "number", - format: "int64", + "expirationDate": { + "baseName": "expiration_date", + "type": "number", + "format": "int64", }, - muted: { - baseName: "muted", - type: "boolean", - required: true, - }, - reason: { - baseName: "reason", - type: "FindingMuteReason", - required: true, + "muted": { + "baseName": "muted", + "type": "boolean", + "required": true, }, + "reason": { + "baseName": "reason", + "type": "FindingMuteReason", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsRequestProperties.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsResponse.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsResponse.ts index c4ce13e19eba..1142ca60b20e 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsResponse.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsResponse.ts @@ -5,15 +5,20 @@ */ import { BulkMuteFindingsResponseData } from "./BulkMuteFindingsResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema. - */ +*/ export class BulkMuteFindingsResponse { /** * Data object containing the ID of the request that was updated. - */ + */ "data": BulkMuteFindingsResponseData; /** @@ -32,23 +37,49 @@ export class BulkMuteFindingsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "BulkMuteFindingsResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "BulkMuteFindingsResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/BulkMuteFindingsResponseData.ts b/packages/datadog-api-client-v2/models/BulkMuteFindingsResponseData.ts index b2bd5df0f317..bb083457aa60 100644 --- a/packages/datadog-api-client-v2/models/BulkMuteFindingsResponseData.ts +++ b/packages/datadog-api-client-v2/models/BulkMuteFindingsResponseData.ts @@ -5,19 +5,24 @@ */ import { FindingType } from "./FindingType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object containing the ID of the request that was updated. - */ +*/ export class BulkMuteFindingsResponseData { /** * UUID used to identify the request - */ + */ "id"?: string; /** * The JSON:API type for findings. - */ + */ "type"?: FindingType; /** @@ -36,26 +41,52 @@ export class BulkMuteFindingsResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "FindingType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FindingType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return BulkMuteFindingsResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppAggregateBucketValue.ts b/packages/datadog-api-client-v2/models/CIAppAggregateBucketValue.ts index 88f7bc44315d..3d3762f4c5b1 100644 --- a/packages/datadog-api-client-v2/models/CIAppAggregateBucketValue.ts +++ b/packages/datadog-api-client-v2/models/CIAppAggregateBucketValue.ts @@ -5,14 +5,15 @@ */ import { CIAppAggregateBucketValueTimeseriesPoint } from "./CIAppAggregateBucketValueTimeseriesPoint"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A bucket value, can either be a timeseries or a single value. - */ +*/ -export type CIAppAggregateBucketValue = - | string - | number - | Array - | UnparsedObject; +export type CIAppAggregateBucketValue = string | number | Array | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppAggregateBucketValueTimeseriesPoint.ts b/packages/datadog-api-client-v2/models/CIAppAggregateBucketValueTimeseriesPoint.ts index b2e218884386..b99300c2c355 100644 --- a/packages/datadog-api-client-v2/models/CIAppAggregateBucketValueTimeseriesPoint.ts +++ b/packages/datadog-api-client-v2/models/CIAppAggregateBucketValueTimeseriesPoint.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A timeseries point. - */ +*/ export class CIAppAggregateBucketValueTimeseriesPoint { /** * The time value for this point. - */ + */ "time"?: Date; /** * The value for this point. - */ + */ "value"?: number; /** @@ -35,28 +40,54 @@ export class CIAppAggregateBucketValueTimeseriesPoint { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - time: { - baseName: "time", - type: "Date", - format: "date-time", + "time": { + "baseName": "time", + "type": "Date", + "format": "date-time", }, - value: { - baseName: "value", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppAggregateBucketValueTimeseriesPoint.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppAggregateSort.ts b/packages/datadog-api-client-v2/models/CIAppAggregateSort.ts index 6583d6b3214f..dc631e81a972 100644 --- a/packages/datadog-api-client-v2/models/CIAppAggregateSort.ts +++ b/packages/datadog-api-client-v2/models/CIAppAggregateSort.ts @@ -7,27 +7,32 @@ import { CIAppAggregateSortType } from "./CIAppAggregateSortType"; import { CIAppAggregationFunction } from "./CIAppAggregationFunction"; import { CIAppSortOrder } from "./CIAppSortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A sort rule. The `aggregation` field is required when `type` is `measure`. - */ +*/ export class CIAppAggregateSort { /** * An aggregation function. - */ + */ "aggregation"?: CIAppAggregationFunction; /** * The metric to sort by (only used for `type=measure`). - */ + */ "metric"?: string; /** * The order to use, ascending or descending. - */ + */ "order"?: CIAppSortOrder; /** * The type of sorting algorithm. - */ + */ "type"?: CIAppAggregateSortType; /** @@ -46,34 +51,60 @@ export class CIAppAggregateSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "CIAppAggregationFunction", + "aggregation": { + "baseName": "aggregation", + "type": "CIAppAggregationFunction", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - order: { - baseName: "order", - type: "CIAppSortOrder", + "order": { + "baseName": "order", + "type": "CIAppSortOrder", }, - type: { - baseName: "type", - type: "CIAppAggregateSortType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CIAppAggregateSortType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppAggregateSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppAggregateSortType.ts b/packages/datadog-api-client-v2/models/CIAppAggregateSortType.ts index 95dfe2efb293..33a474af569a 100644 --- a/packages/datadog-api-client-v2/models/CIAppAggregateSortType.ts +++ b/packages/datadog-api-client-v2/models/CIAppAggregateSortType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of sorting algorithm. - */ +*/ -export type CIAppAggregateSortType = - | typeof ALPHABETICAL - | typeof MEASURE - | UnparsedObject; -export const ALPHABETICAL = "alphabetical"; -export const MEASURE = "measure"; +export type CIAppAggregateSortType = typeof ALPHABETICAL| typeof MEASURE | UnparsedObject; +export const ALPHABETICAL = 'alphabetical'; +export const MEASURE = 'measure'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppAggregationFunction.ts b/packages/datadog-api-client-v2/models/CIAppAggregationFunction.ts index 8ef91574687e..ddba2ed96c61 100644 --- a/packages/datadog-api-client-v2/models/CIAppAggregationFunction.ts +++ b/packages/datadog-api-client-v2/models/CIAppAggregationFunction.ts @@ -4,43 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An aggregation function. - */ +*/ -export type CIAppAggregationFunction = - | typeof COUNT - | typeof CARDINALITY - | typeof PERCENTILE_75 - | typeof PERCENTILE_90 - | typeof PERCENTILE_95 - | typeof PERCENTILE_98 - | typeof PERCENTILE_99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | typeof MEDIAN - | typeof LATEST - | typeof EARLIEST - | typeof MOST_FREQUENT - | typeof DELTA - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const PERCENTILE_75 = "pc75"; -export const PERCENTILE_90 = "pc90"; -export const PERCENTILE_95 = "pc95"; -export const PERCENTILE_98 = "pc98"; -export const PERCENTILE_99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; -export const MEDIAN = "median"; -export const LATEST = "latest"; -export const EARLIEST = "earliest"; -export const MOST_FREQUENT = "most_frequent"; -export const DELTA = "delta"; +export type CIAppAggregationFunction = typeof COUNT| typeof CARDINALITY| typeof PERCENTILE_75| typeof PERCENTILE_90| typeof PERCENTILE_95| typeof PERCENTILE_98| typeof PERCENTILE_99| typeof SUM| typeof MIN| typeof MAX| typeof AVG| typeof MEDIAN| typeof LATEST| typeof EARLIEST| typeof MOST_FREQUENT| typeof DELTA | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const PERCENTILE_75 = 'pc75'; +export const PERCENTILE_90 = 'pc90'; +export const PERCENTILE_95 = 'pc95'; +export const PERCENTILE_98 = 'pc98'; +export const PERCENTILE_99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; +export const MEDIAN = 'median'; +export const LATEST = 'latest'; +export const EARLIEST = 'earliest'; +export const MOST_FREQUENT = 'most_frequent'; +export const DELTA = 'delta'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppCIError.ts b/packages/datadog-api-client-v2/models/CIAppCIError.ts index 7d5a6ba0e242..eb1098bee446 100644 --- a/packages/datadog-api-client-v2/models/CIAppCIError.ts +++ b/packages/datadog-api-client-v2/models/CIAppCIError.ts @@ -5,27 +5,32 @@ */ import { CIAppCIErrorDomain } from "./CIAppCIErrorDomain"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Contains information of the CI error. - */ +*/ export class CIAppCIError { /** * Error category used to differentiate between issues related to the developer or provider environments. - */ + */ "domain"?: CIAppCIErrorDomain; /** * Error message. - */ + */ "message"?: string; /** * The stack trace of the reported errors. - */ + */ "stack"?: string; /** * Short description of the error type. - */ + */ "type"?: string; /** @@ -44,34 +49,60 @@ export class CIAppCIError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - domain: { - baseName: "domain", - type: "CIAppCIErrorDomain", + "domain": { + "baseName": "domain", + "type": "CIAppCIErrorDomain", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - stack: { - baseName: "stack", - type: "string", + "stack": { + "baseName": "stack", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppCIError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppCIErrorDomain.ts b/packages/datadog-api-client-v2/models/CIAppCIErrorDomain.ts index d2f70e83de69..1c8eae277900 100644 --- a/packages/datadog-api-client-v2/models/CIAppCIErrorDomain.ts +++ b/packages/datadog-api-client-v2/models/CIAppCIErrorDomain.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Error category used to differentiate between issues related to the developer or provider environments. - */ +*/ -export type CIAppCIErrorDomain = - | typeof PROVIDER - | typeof USER - | typeof UNKNOWN - | UnparsedObject; -export const PROVIDER = "provider"; -export const USER = "user"; -export const UNKNOWN = "unknown"; +export type CIAppCIErrorDomain = typeof PROVIDER| typeof USER| typeof UNKNOWN | UnparsedObject; +export const PROVIDER = 'provider'; +export const USER = 'user'; +export const UNKNOWN = 'unknown'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppCompute.ts b/packages/datadog-api-client-v2/models/CIAppCompute.ts index 9615384c344a..cab518b8c605 100644 --- a/packages/datadog-api-client-v2/models/CIAppCompute.ts +++ b/packages/datadog-api-client-v2/models/CIAppCompute.ts @@ -6,28 +6,33 @@ import { CIAppAggregationFunction } from "./CIAppAggregationFunction"; import { CIAppComputeType } from "./CIAppComputeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A compute rule to compute metrics or timeseries. - */ +*/ export class CIAppCompute { /** * An aggregation function. - */ + */ "aggregation": CIAppAggregationFunction; /** * The time buckets' size (only used for type=timeseries) * Defaults to a resolution of 150 points. - */ + */ "interval"?: string; /** * The metric to use. - */ + */ "metric"?: string; /** * The type of compute. - */ + */ "type"?: CIAppComputeType; /** @@ -46,35 +51,61 @@ export class CIAppCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "CIAppAggregationFunction", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "CIAppAggregationFunction", + "required": true, }, - interval: { - baseName: "interval", - type: "string", + "interval": { + "baseName": "interval", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - type: { - baseName: "type", - type: "CIAppComputeType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CIAppComputeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppComputeType.ts b/packages/datadog-api-client-v2/models/CIAppComputeType.ts index bbd15ad2df3f..e147c9e367df 100644 --- a/packages/datadog-api-client-v2/models/CIAppComputeType.ts +++ b/packages/datadog-api-client-v2/models/CIAppComputeType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of compute. - */ +*/ -export type CIAppComputeType = - | typeof TIMESERIES - | typeof TOTAL - | UnparsedObject; -export const TIMESERIES = "timeseries"; -export const TOTAL = "total"; +export type CIAppComputeType = typeof TIMESERIES| typeof TOTAL | UnparsedObject; +export const TIMESERIES = 'timeseries'; +export const TOTAL = 'total'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.ts b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.ts index ac5b53525411..6b95e2cafc3a 100644 --- a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.ts +++ b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.ts @@ -5,15 +5,20 @@ */ import { CIAppCreatePipelineEventRequestData } from "./CIAppCreatePipelineEventRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object. - */ +*/ export class CIAppCreatePipelineEventRequest { /** * Data of the pipeline event to create. - */ + */ "data"?: CIAppCreatePipelineEventRequestData; /** @@ -32,22 +37,48 @@ export class CIAppCreatePipelineEventRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CIAppCreatePipelineEventRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CIAppCreatePipelineEventRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppCreatePipelineEventRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.ts b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.ts index 43627c38b94b..5d87b712707b 100644 --- a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.ts @@ -5,27 +5,32 @@ */ import { CIAppCreatePipelineEventRequestAttributesResource } from "./CIAppCreatePipelineEventRequestAttributesResource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the pipeline event to create. - */ +*/ export class CIAppCreatePipelineEventRequestAttributes { /** * The Datadog environment. - */ + */ "env"?: string; /** * The name of the CI provider. By default, this is "custom". - */ + */ "providerName"?: string; /** * Details of the CI pipeline event. - */ + */ "resource": CIAppCreatePipelineEventRequestAttributesResource; /** * If the CI provider is SaaS, use this to differentiate between instances. - */ + */ "service"?: string; /** @@ -44,35 +49,61 @@ export class CIAppCreatePipelineEventRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - env: { - baseName: "env", - type: "string", + "env": { + "baseName": "env", + "type": "string", }, - providerName: { - baseName: "provider_name", - type: "string", + "providerName": { + "baseName": "provider_name", + "type": "string", }, - resource: { - baseName: "resource", - type: "CIAppCreatePipelineEventRequestAttributesResource", - required: true, + "resource": { + "baseName": "resource", + "type": "CIAppCreatePipelineEventRequestAttributesResource", + "required": true, }, - service: { - baseName: "service", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppCreatePipelineEventRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributesResource.ts b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributesResource.ts index 033012c67f16..cbbf1615f263 100644 --- a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributesResource.ts +++ b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributesResource.ts @@ -8,15 +8,15 @@ import { CIAppPipelineEventPipeline } from "./CIAppPipelineEventPipeline"; import { CIAppPipelineEventStage } from "./CIAppPipelineEventStage"; import { CIAppPipelineEventStep } from "./CIAppPipelineEventStep"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Details of the CI pipeline event. - */ +*/ -export type CIAppCreatePipelineEventRequestAttributesResource = - | CIAppPipelineEventPipeline - | CIAppPipelineEventStage - | CIAppPipelineEventJob - | CIAppPipelineEventStep - | UnparsedObject; +export type CIAppCreatePipelineEventRequestAttributesResource = CIAppPipelineEventPipeline | CIAppPipelineEventStage | CIAppPipelineEventJob | CIAppPipelineEventStep | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestData.ts b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestData.ts index a796e673d68a..4148ebf299fe 100644 --- a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestData.ts +++ b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestData.ts @@ -6,19 +6,24 @@ import { CIAppCreatePipelineEventRequestAttributes } from "./CIAppCreatePipelineEventRequestAttributes"; import { CIAppCreatePipelineEventRequestDataType } from "./CIAppCreatePipelineEventRequestDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data of the pipeline event to create. - */ +*/ export class CIAppCreatePipelineEventRequestData { /** * Attributes of the pipeline event to create. - */ + */ "attributes"?: CIAppCreatePipelineEventRequestAttributes; /** * Type of the event. - */ + */ "type"?: CIAppCreatePipelineEventRequestDataType; /** @@ -37,26 +42,52 @@ export class CIAppCreatePipelineEventRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CIAppCreatePipelineEventRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "CIAppCreatePipelineEventRequestAttributes", }, - type: { - baseName: "type", - type: "CIAppCreatePipelineEventRequestDataType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CIAppCreatePipelineEventRequestDataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppCreatePipelineEventRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataType.ts b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataType.ts index 70dcff586852..db745a89d2c5 100644 --- a/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataType.ts +++ b/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ -export type CIAppCreatePipelineEventRequestDataType = - | typeof CIPIPELINE_RESOURCE_REQUEST - | UnparsedObject; -export const CIPIPELINE_RESOURCE_REQUEST = "cipipeline_resource_request"; +export type CIAppCreatePipelineEventRequestDataType = typeof CIPIPELINE_RESOURCE_REQUEST | UnparsedObject; +export const CIPIPELINE_RESOURCE_REQUEST = 'cipipeline_resource_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppEventAttributes.ts b/packages/datadog-api-client-v2/models/CIAppEventAttributes.ts index 4bd30f26770e..79484800a0c9 100644 --- a/packages/datadog-api-client-v2/models/CIAppEventAttributes.ts +++ b/packages/datadog-api-client-v2/models/CIAppEventAttributes.ts @@ -4,24 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ import { CIAppTestLevel } from "./CIAppTestLevel"; +import { TagsEventAttributeItem } from "./TagsEventAttributeItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all event attributes and their associated values. - */ +*/ export class CIAppEventAttributes { /** * JSON object of attributes from CI Visibility test events. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * Array of tags associated with your event. - */ + */ "tags"?: Array; /** * Test run level. - */ + */ "testLevel"?: CIAppTestLevel; /** @@ -40,30 +46,56 @@ export class CIAppEventAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", - }, - tags: { - baseName: "tags", - type: "Array", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - testLevel: { - baseName: "test_level", - type: "CIAppTestLevel", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "testLevel": { + "baseName": "test_level", + "type": "CIAppTestLevel", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppEventAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppGitInfo.ts b/packages/datadog-api-client-v2/models/CIAppGitInfo.ts index c517a847d128..d63af2e3d4ba 100644 --- a/packages/datadog-api-client-v2/models/CIAppGitInfo.ts +++ b/packages/datadog-api-client-v2/models/CIAppGitInfo.ts @@ -4,60 +4,65 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. * Note that either `tag` or `branch` has to be provided, but not both. - */ +*/ export class CIAppGitInfo { /** * The commit author email. - */ + */ "authorEmail": string; /** * The commit author name. - */ + */ "authorName"?: string; /** * The commit author timestamp in RFC3339 format. - */ + */ "authorTime"?: string; /** * The branch name (if a tag use the tag parameter). - */ + */ "branch"?: string; /** * The commit timestamp in RFC3339 format. - */ + */ "commitTime"?: string; /** * The committer email. - */ + */ "committerEmail"?: string; /** * The committer name. - */ + */ "committerName"?: string; /** * The Git repository's default branch. - */ + */ "defaultBranch"?: string; /** * The commit message. - */ + */ "message"?: string; /** * The URL of the repository. - */ + */ "repositoryUrl": string; /** * The git commit SHA. - */ + */ "sha": string; /** * The tag name (if a branch use the branch parameter). - */ + */ "tag"?: string; /** @@ -76,69 +81,95 @@ export class CIAppGitInfo { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - authorEmail: { - baseName: "author_email", - type: "string", - required: true, + "authorEmail": { + "baseName": "author_email", + "type": "string", + "required": true, }, - authorName: { - baseName: "author_name", - type: "string", + "authorName": { + "baseName": "author_name", + "type": "string", }, - authorTime: { - baseName: "author_time", - type: "string", + "authorTime": { + "baseName": "author_time", + "type": "string", }, - branch: { - baseName: "branch", - type: "string", + "branch": { + "baseName": "branch", + "type": "string", }, - commitTime: { - baseName: "commit_time", - type: "string", + "commitTime": { + "baseName": "commit_time", + "type": "string", }, - committerEmail: { - baseName: "committer_email", - type: "string", + "committerEmail": { + "baseName": "committer_email", + "type": "string", }, - committerName: { - baseName: "committer_name", - type: "string", + "committerName": { + "baseName": "committer_name", + "type": "string", }, - defaultBranch: { - baseName: "default_branch", - type: "string", + "defaultBranch": { + "baseName": "default_branch", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - repositoryUrl: { - baseName: "repository_url", - type: "string", - required: true, + "repositoryUrl": { + "baseName": "repository_url", + "type": "string", + "required": true, }, - sha: { - baseName: "sha", - type: "string", - required: true, + "sha": { + "baseName": "sha", + "type": "string", + "required": true, }, - tag: { - baseName: "tag", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tag": { + "baseName": "tag", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppGitInfo.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppGroupByHistogram.ts b/packages/datadog-api-client-v2/models/CIAppGroupByHistogram.ts index fb0ee94940a6..e462d429e3c0 100644 --- a/packages/datadog-api-client-v2/models/CIAppGroupByHistogram.ts +++ b/packages/datadog-api-client-v2/models/CIAppGroupByHistogram.ts @@ -4,26 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to perform a histogram computation (only for measure facets). * At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`. - */ +*/ export class CIAppGroupByHistogram { /** * The bin size of the histogram buckets. - */ + */ "interval": number; /** * The maximum value for the measure used in the histogram * (values greater than this one are filtered out). - */ + */ "max": number; /** * The minimum value for the measure used in the histogram * (values smaller than this one are filtered out). - */ + */ "min": number; /** @@ -42,36 +47,62 @@ export class CIAppGroupByHistogram { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - interval: { - baseName: "interval", - type: "number", - required: true, - format: "double", - }, - max: { - baseName: "max", - type: "number", - required: true, - format: "double", + "interval": { + "baseName": "interval", + "type": "number", + "required": true, + "format": "double", }, - min: { - baseName: "min", - type: "number", - required: true, - format: "double", + "max": { + "baseName": "max", + "type": "number", + "required": true, + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "min": { + "baseName": "min", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppGroupByHistogram.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppGroupByMissing.ts b/packages/datadog-api-client-v2/models/CIAppGroupByMissing.ts index a4bea610eb6b..89cd8e905ed0 100644 --- a/packages/datadog-api-client-v2/models/CIAppGroupByMissing.ts +++ b/packages/datadog-api-client-v2/models/CIAppGroupByMissing.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The value to use for logs that don't have the facet used to group-by. - */ +*/ -export type CIAppGroupByMissing = string | number | UnparsedObject; +export type CIAppGroupByMissing = string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppGroupByTotal.ts b/packages/datadog-api-client-v2/models/CIAppGroupByTotal.ts index c8d29c6bd633..a852b355f49d 100644 --- a/packages/datadog-api-client-v2/models/CIAppGroupByTotal.ts +++ b/packages/datadog-api-client-v2/models/CIAppGroupByTotal.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A resulting object to put the given computes in over all the matching records. - */ +*/ -export type CIAppGroupByTotal = boolean | string | number | UnparsedObject; +export type CIAppGroupByTotal = boolean | string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppHostInfo.ts b/packages/datadog-api-client-v2/models/CIAppHostInfo.ts index fe97f136769a..324cdca8ce32 100644 --- a/packages/datadog-api-client-v2/models/CIAppHostInfo.ts +++ b/packages/datadog-api-client-v2/models/CIAppHostInfo.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Contains information of the host running the pipeline, stage, job, or step. - */ +*/ export class CIAppHostInfo { /** * FQDN of the host. - */ + */ "hostname"?: string; /** * A list of labels used to select or identify the node. - */ + */ "labels"?: Array; /** * Name for the host. - */ + */ "name"?: string; /** * The path where the code is checked out. - */ + */ "workspace"?: string; /** @@ -43,34 +48,60 @@ export class CIAppHostInfo { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - hostname: { - baseName: "hostname", - type: "string", + "hostname": { + "baseName": "hostname", + "type": "string", }, - labels: { - baseName: "labels", - type: "Array", + "labels": { + "baseName": "labels", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - workspace: { - baseName: "workspace", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "workspace": { + "baseName": "workspace", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppHostInfo.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEvent.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEvent.ts index e3c00f189f67..b591295fa8f8 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEvent.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEvent.ts @@ -6,23 +6,28 @@ import { CIAppPipelineEventAttributes } from "./CIAppPipelineEventAttributes"; import { CIAppPipelineEventTypeName } from "./CIAppPipelineEventTypeName"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of a pipeline event after being processed and stored by Datadog. - */ +*/ export class CIAppPipelineEvent { /** * JSON object containing all event attributes and their associated values. - */ + */ "attributes"?: CIAppPipelineEventAttributes; /** * Unique ID of the event. - */ + */ "id"?: string; /** * Type of the event. - */ + */ "type"?: CIAppPipelineEventTypeName; /** @@ -41,30 +46,56 @@ export class CIAppPipelineEvent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CIAppPipelineEventAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CIAppPipelineEventAttributes", }, - type: { - baseName: "type", - type: "CIAppPipelineEventTypeName", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CIAppPipelineEventTypeName", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEvent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventAttributes.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventAttributes.ts index 0a84d606e3f2..277171f1eb42 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventAttributes.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventAttributes.ts @@ -4,24 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ import { CIAppPipelineLevel } from "./CIAppPipelineLevel"; +import { TagsEventAttributeItem } from "./TagsEventAttributeItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all event attributes and their associated values. - */ +*/ export class CIAppPipelineEventAttributes { /** * JSON object of attributes from CI Visibility pipeline events. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * Pipeline execution level. - */ + */ "ciLevel"?: CIAppPipelineLevel; /** * Array of tags associated with your event. - */ + */ "tags"?: Array; /** @@ -40,30 +46,56 @@ export class CIAppPipelineEventAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", - }, - ciLevel: { - baseName: "ci_level", - type: "CIAppPipelineLevel", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - tags: { - baseName: "tags", - type: "Array", + "ciLevel": { + "baseName": "ci_level", + "type": "CIAppPipelineLevel", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.ts index e22d69213bb3..48702b6a4ae1 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.ts @@ -6,100 +6,107 @@ import { CIAppCIError } from "./CIAppCIError"; import { CIAppGitInfo } from "./CIAppGitInfo"; import { CIAppHostInfo } from "./CIAppHostInfo"; +import { CIAppPipelineEventMetricsItem } from "./CIAppPipelineEventMetricsItem"; import { CIAppPipelineEventParentPipeline } from "./CIAppPipelineEventParentPipeline"; import { CIAppPipelineEventPipelineLevel } from "./CIAppPipelineEventPipelineLevel"; import { CIAppPipelineEventPipelineStatus } from "./CIAppPipelineEventPipelineStatus"; import { CIAppPipelineEventPreviousPipeline } from "./CIAppPipelineEventPreviousPipeline"; +import { CIAppPipelineEventTagsItem } from "./CIAppPipelineEventTagsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a finished pipeline. - */ +*/ export class CIAppPipelineEventFinishedPipeline { /** * Time when the pipeline run finished. It cannot be older than 18 hours in the past from the current time. The time format must be RFC3339. - */ + */ "end": Date; /** * Contains information of the CI error. - */ + */ "error"?: CIAppCIError; /** * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. * Note that either `tag` or `branch` has to be provided, but not both. - */ + */ "git"?: CIAppGitInfo; /** * Whether or not the pipeline was triggered manually by the user. - */ + */ "isManual"?: boolean; /** * Whether or not the pipeline was resumed after being blocked. - */ + */ "isResumed"?: boolean; /** * Used to distinguish between pipelines, stages, jobs, and steps. - */ + */ "level": CIAppPipelineEventPipelineLevel; /** * A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric. - */ + */ "metrics"?: Array; /** * Name of the pipeline. All pipeline runs for the builds should have the same name. - */ + */ "name": string; /** * Contains information of the host running the pipeline, stage, job, or step. - */ + */ "node"?: CIAppHostInfo; /** * A map of key-value parameters or environment variables that were defined for the pipeline. - */ - "parameters"?: { [key: string]: string }; + */ + "parameters"?: { [key: string]: string; }; /** * If the pipeline is triggered as child of another pipeline, this should contain the details of the parent pipeline. - */ + */ "parentPipeline"?: CIAppPipelineEventParentPipeline; /** * Whether or not the pipeline was a partial retry of a previous attempt. A partial retry is one * which only runs a subset of the original jobs. - */ + */ "partialRetry": boolean; /** * Any ID used in the provider to identify the pipeline run even if it is not unique across retries. * If the `pipeline_id` is unique, then both `unique_id` and `pipeline_id` can be set to the same value. - */ + */ "pipelineId"?: string; /** * If the pipeline is a retry, this should contain the details of the previous attempt. - */ + */ "previousAttempt"?: CIAppPipelineEventPreviousPipeline; /** * The queue time in milliseconds, if applicable. - */ + */ "queueTime"?: number; /** * Time when the pipeline run started (it should not include any queue time). The time format must be RFC3339. - */ + */ "start": Date; /** * The final status of the pipeline. - */ + */ "status": CIAppPipelineEventPipelineStatus; /** * A list of user-defined tags. The tags must follow the `key:value` pattern. - */ + */ "tags"?: Array; /** * UUID of the pipeline run. The ID has to be unique across retries and pipelines, * including partial retries. - */ + */ "uniqueId": string; /** * The URL to look at the pipeline in the CI provider UI. - */ + */ "url": string; /** @@ -118,109 +125,135 @@ export class CIAppPipelineEventFinishedPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - required: true, - format: "date-time", - }, - error: { - baseName: "error", - type: "CIAppCIError", - }, - git: { - baseName: "git", - type: "CIAppGitInfo", - }, - isManual: { - baseName: "is_manual", - type: "boolean", - }, - isResumed: { - baseName: "is_resumed", - type: "boolean", - }, - level: { - baseName: "level", - type: "CIAppPipelineEventPipelineLevel", - required: true, - }, - metrics: { - baseName: "metrics", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - required: true, - }, - node: { - baseName: "node", - type: "CIAppHostInfo", - }, - parameters: { - baseName: "parameters", - type: "{ [key: string]: string; }", - }, - parentPipeline: { - baseName: "parent_pipeline", - type: "CIAppPipelineEventParentPipeline", - }, - partialRetry: { - baseName: "partial_retry", - type: "boolean", - required: true, - }, - pipelineId: { - baseName: "pipeline_id", - type: "string", - }, - previousAttempt: { - baseName: "previous_attempt", - type: "CIAppPipelineEventPreviousPipeline", - }, - queueTime: { - baseName: "queue_time", - type: "number", - format: "int64", - }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CIAppPipelineEventPipelineStatus", - required: true, - }, - tags: { - baseName: "tags", - type: "Array", - }, - uniqueId: { - baseName: "unique_id", - type: "string", - required: true, - }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "end": { + "baseName": "end", + "type": "Date", + "required": true, + "format": "date-time", + }, + "error": { + "baseName": "error", + "type": "CIAppCIError", + }, + "git": { + "baseName": "git", + "type": "CIAppGitInfo", + }, + "isManual": { + "baseName": "is_manual", + "type": "boolean", + }, + "isResumed": { + "baseName": "is_resumed", + "type": "boolean", + }, + "level": { + "baseName": "level", + "type": "CIAppPipelineEventPipelineLevel", + "required": true, + }, + "metrics": { + "baseName": "metrics", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + "required": true, + }, + "node": { + "baseName": "node", + "type": "CIAppHostInfo", + }, + "parameters": { + "baseName": "parameters", + "type": "{ [key: string]: string; }", + }, + "parentPipeline": { + "baseName": "parent_pipeline", + "type": "CIAppPipelineEventParentPipeline", }, + "partialRetry": { + "baseName": "partial_retry", + "type": "boolean", + "required": true, + }, + "pipelineId": { + "baseName": "pipeline_id", + "type": "string", + }, + "previousAttempt": { + "baseName": "previous_attempt", + "type": "CIAppPipelineEventPreviousPipeline", + }, + "queueTime": { + "baseName": "queue_time", + "type": "number", + "format": "int64", + }, + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", + }, + "status": { + "baseName": "status", + "type": "CIAppPipelineEventPipelineStatus", + "required": true, + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "uniqueId": { + "baseName": "unique_id", + "type": "string", + "required": true, + }, + "url": { + "baseName": "url", + "type": "string", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventFinishedPipeline.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.ts index f038204825d0..2454ac839a0b 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.ts @@ -6,95 +6,102 @@ import { CIAppCIError } from "./CIAppCIError"; import { CIAppGitInfo } from "./CIAppGitInfo"; import { CIAppHostInfo } from "./CIAppHostInfo"; +import { CIAppPipelineEventMetricsItem } from "./CIAppPipelineEventMetricsItem"; import { CIAppPipelineEventParentPipeline } from "./CIAppPipelineEventParentPipeline"; import { CIAppPipelineEventPipelineInProgressStatus } from "./CIAppPipelineEventPipelineInProgressStatus"; import { CIAppPipelineEventPipelineLevel } from "./CIAppPipelineEventPipelineLevel"; import { CIAppPipelineEventPreviousPipeline } from "./CIAppPipelineEventPreviousPipeline"; +import { CIAppPipelineEventTagsItem } from "./CIAppPipelineEventTagsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a running pipeline. - */ +*/ export class CIAppPipelineEventInProgressPipeline { /** * Contains information of the CI error. - */ + */ "error"?: CIAppCIError; /** * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. * Note that either `tag` or `branch` has to be provided, but not both. - */ + */ "git"?: CIAppGitInfo; /** * Whether or not the pipeline was triggered manually by the user. - */ + */ "isManual"?: boolean; /** * Whether or not the pipeline was resumed after being blocked. - */ + */ "isResumed"?: boolean; /** * Used to distinguish between pipelines, stages, jobs, and steps. - */ + */ "level": CIAppPipelineEventPipelineLevel; /** * A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric. - */ + */ "metrics"?: Array; /** * Name of the pipeline. All pipeline runs for the builds should have the same name. - */ + */ "name": string; /** * Contains information of the host running the pipeline, stage, job, or step. - */ + */ "node"?: CIAppHostInfo; /** * A map of key-value parameters or environment variables that were defined for the pipeline. - */ - "parameters"?: { [key: string]: string }; + */ + "parameters"?: { [key: string]: string; }; /** * If the pipeline is triggered as child of another pipeline, this should contain the details of the parent pipeline. - */ + */ "parentPipeline"?: CIAppPipelineEventParentPipeline; /** * Whether or not the pipeline was a partial retry of a previous attempt. A partial retry is one * which only runs a subset of the original jobs. - */ + */ "partialRetry": boolean; /** * Any ID used in the provider to identify the pipeline run even if it is not unique across retries. * If the `pipeline_id` is unique, then both `unique_id` and `pipeline_id` can be set to the same value. - */ + */ "pipelineId"?: string; /** * If the pipeline is a retry, this should contain the details of the previous attempt. - */ + */ "previousAttempt"?: CIAppPipelineEventPreviousPipeline; /** * The queue time in milliseconds, if applicable. - */ + */ "queueTime"?: number; /** * Time when the pipeline run started (it should not include any queue time). The time format must be RFC3339. - */ + */ "start": Date; /** * The in progress status of the pipeline. - */ + */ "status": CIAppPipelineEventPipelineInProgressStatus; /** * A list of user-defined tags. The tags must follow the `key:value` pattern. - */ + */ "tags"?: Array; /** * UUID of the pipeline run. The ID has to be the same as the finished pipeline. - */ + */ "uniqueId": string; /** * The URL to look at the pipeline in the CI provider UI. - */ + */ "url": string; /** @@ -113,103 +120,129 @@ export class CIAppPipelineEventInProgressPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - error: { - baseName: "error", - type: "CIAppCIError", - }, - git: { - baseName: "git", - type: "CIAppGitInfo", - }, - isManual: { - baseName: "is_manual", - type: "boolean", - }, - isResumed: { - baseName: "is_resumed", - type: "boolean", - }, - level: { - baseName: "level", - type: "CIAppPipelineEventPipelineLevel", - required: true, - }, - metrics: { - baseName: "metrics", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - required: true, - }, - node: { - baseName: "node", - type: "CIAppHostInfo", - }, - parameters: { - baseName: "parameters", - type: "{ [key: string]: string; }", - }, - parentPipeline: { - baseName: "parent_pipeline", - type: "CIAppPipelineEventParentPipeline", - }, - partialRetry: { - baseName: "partial_retry", - type: "boolean", - required: true, - }, - pipelineId: { - baseName: "pipeline_id", - type: "string", - }, - previousAttempt: { - baseName: "previous_attempt", - type: "CIAppPipelineEventPreviousPipeline", - }, - queueTime: { - baseName: "queue_time", - type: "number", - format: "int64", - }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CIAppPipelineEventPipelineInProgressStatus", - required: true, - }, - tags: { - baseName: "tags", - type: "Array", - }, - uniqueId: { - baseName: "unique_id", - type: "string", - required: true, - }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "error": { + "baseName": "error", + "type": "CIAppCIError", + }, + "git": { + "baseName": "git", + "type": "CIAppGitInfo", + }, + "isManual": { + "baseName": "is_manual", + "type": "boolean", + }, + "isResumed": { + "baseName": "is_resumed", + "type": "boolean", + }, + "level": { + "baseName": "level", + "type": "CIAppPipelineEventPipelineLevel", + "required": true, + }, + "metrics": { + "baseName": "metrics", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + "required": true, + }, + "node": { + "baseName": "node", + "type": "CIAppHostInfo", + }, + "parameters": { + "baseName": "parameters", + "type": "{ [key: string]: string; }", + }, + "parentPipeline": { + "baseName": "parent_pipeline", + "type": "CIAppPipelineEventParentPipeline", + }, + "partialRetry": { + "baseName": "partial_retry", + "type": "boolean", + "required": true, + }, + "pipelineId": { + "baseName": "pipeline_id", + "type": "string", + }, + "previousAttempt": { + "baseName": "previous_attempt", + "type": "CIAppPipelineEventPreviousPipeline", + }, + "queueTime": { + "baseName": "queue_time", + "type": "number", + "format": "int64", + }, + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", + }, + "status": { + "baseName": "status", + "type": "CIAppPipelineEventPipelineInProgressStatus", + "required": true, + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "uniqueId": { + "baseName": "unique_id", + "type": "string", + "required": true, + }, + "url": { + "baseName": "url", + "type": "string", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventInProgressPipeline.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.ts index 2e36b1272d2d..a4e107b1d9c3 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.ts @@ -8,89 +8,96 @@ import { CIAppGitInfo } from "./CIAppGitInfo"; import { CIAppHostInfo } from "./CIAppHostInfo"; import { CIAppPipelineEventJobLevel } from "./CIAppPipelineEventJobLevel"; import { CIAppPipelineEventJobStatus } from "./CIAppPipelineEventJobStatus"; +import { CIAppPipelineEventMetricsItem } from "./CIAppPipelineEventMetricsItem"; +import { CIAppPipelineEventTagsItem } from "./CIAppPipelineEventTagsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a CI job. - */ +*/ export class CIAppPipelineEventJob { /** * A list of job IDs that this job depends on. - */ + */ "dependencies"?: Array; /** * Time when the job run finished. The time format must be RFC3339. - */ + */ "end": Date; /** * Contains information of the CI error. - */ + */ "error"?: CIAppCIError; /** * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. * Note that either `tag` or `branch` has to be provided, but not both. - */ + */ "git"?: CIAppGitInfo; /** * The UUID for the job. It has to be unique within each pipeline execution. - */ + */ "id": string; /** * Used to distinguish between pipelines, stages, jobs, and steps. - */ + */ "level": CIAppPipelineEventJobLevel; /** * A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric. - */ + */ "metrics"?: Array; /** * The name for the job. - */ + */ "name": string; /** * Contains information of the host running the pipeline, stage, job, or step. - */ + */ "node"?: CIAppHostInfo; /** * A map of key-value parameters or environment variables that were defined for the pipeline. - */ - "parameters"?: { [key: string]: string }; + */ + "parameters"?: { [key: string]: string; }; /** * The parent pipeline name. - */ + */ "pipelineName": string; /** * The parent pipeline UUID. - */ + */ "pipelineUniqueId": string; /** * The queue time in milliseconds, if applicable. - */ + */ "queueTime"?: number; /** * The parent stage UUID (if applicable). - */ + */ "stageId"?: string; /** * The parent stage name (if applicable). - */ + */ "stageName"?: string; /** * Time when the job run instance started (it should not include any queue time). The time format must be RFC3339. - */ + */ "start": Date; /** * The final status of the job. - */ + */ "status": CIAppPipelineEventJobStatus; /** * A list of user-defined tags. The tags must follow the `key:value` pattern. - */ + */ "tags"?: Array; /** * The URL to look at the job in the CI provider UI. - */ + */ "url": string; /** @@ -109,106 +116,132 @@ export class CIAppPipelineEventJob { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dependencies: { - baseName: "dependencies", - type: "Array", - }, - end: { - baseName: "end", - type: "Date", - required: true, - format: "date-time", - }, - error: { - baseName: "error", - type: "CIAppCIError", - }, - git: { - baseName: "git", - type: "CIAppGitInfo", - }, - id: { - baseName: "id", - type: "string", - required: true, - }, - level: { - baseName: "level", - type: "CIAppPipelineEventJobLevel", - required: true, - }, - metrics: { - baseName: "metrics", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - required: true, - }, - node: { - baseName: "node", - type: "CIAppHostInfo", - }, - parameters: { - baseName: "parameters", - type: "{ [key: string]: string; }", - }, - pipelineName: { - baseName: "pipeline_name", - type: "string", - required: true, - }, - pipelineUniqueId: { - baseName: "pipeline_unique_id", - type: "string", - required: true, - }, - queueTime: { - baseName: "queue_time", - type: "number", - format: "int64", - }, - stageId: { - baseName: "stage_id", - type: "string", - }, - stageName: { - baseName: "stage_name", - type: "string", - }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CIAppPipelineEventJobStatus", - required: true, - }, - tags: { - baseName: "tags", - type: "Array", - }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "dependencies": { + "baseName": "dependencies", + "type": "Array", + }, + "end": { + "baseName": "end", + "type": "Date", + "required": true, + "format": "date-time", + }, + "error": { + "baseName": "error", + "type": "CIAppCIError", + }, + "git": { + "baseName": "git", + "type": "CIAppGitInfo", + }, + "id": { + "baseName": "id", + "type": "string", + "required": true, + }, + "level": { + "baseName": "level", + "type": "CIAppPipelineEventJobLevel", + "required": true, + }, + "metrics": { + "baseName": "metrics", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + "required": true, + }, + "node": { + "baseName": "node", + "type": "CIAppHostInfo", + }, + "parameters": { + "baseName": "parameters", + "type": "{ [key: string]: string; }", + }, + "pipelineName": { + "baseName": "pipeline_name", + "type": "string", + "required": true, + }, + "pipelineUniqueId": { + "baseName": "pipeline_unique_id", + "type": "string", + "required": true, + }, + "queueTime": { + "baseName": "queue_time", + "type": "number", + "format": "int64", + }, + "stageId": { + "baseName": "stage_id", + "type": "string", + }, + "stageName": { + "baseName": "stage_name", + "type": "string", + }, + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", + }, + "status": { + "baseName": "status", + "type": "CIAppPipelineEventJobStatus", + "required": true, + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "url": { + "baseName": "url", + "type": "string", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventJob.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventJobLevel.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventJobLevel.ts index fc181a08ec3a..ec35c3eb7159 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventJobLevel.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventJobLevel.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Used to distinguish between pipelines, stages, jobs, and steps. - */ +*/ export type CIAppPipelineEventJobLevel = typeof JOB | UnparsedObject; -export const JOB = "job"; +export const JOB = 'job'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventJobStatus.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventJobStatus.ts index 8a7e7806b0f1..5101d938c3a4 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventJobStatus.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventJobStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The final status of the job. - */ +*/ -export type CIAppPipelineEventJobStatus = - | typeof SUCCESS - | typeof ERROR - | typeof CANCELED - | typeof SKIPPED - | UnparsedObject; -export const SUCCESS = "success"; -export const ERROR = "error"; -export const CANCELED = "canceled"; -export const SKIPPED = "skipped"; +export type CIAppPipelineEventJobStatus = typeof SUCCESS| typeof ERROR| typeof CANCELED| typeof SKIPPED | UnparsedObject; +export const SUCCESS = 'success'; +export const ERROR = 'error'; +export const CANCELED = 'canceled'; +export const SKIPPED = 'skipped'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventParentPipeline.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventParentPipeline.ts index 5933a6ec6a99..288a7b2440a7 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventParentPipeline.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventParentPipeline.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * If the pipeline is triggered as child of another pipeline, this should contain the details of the parent pipeline. - */ +*/ export class CIAppPipelineEventParentPipeline { /** * UUID of a pipeline. - */ + */ "id": string; /** * The URL to look at the pipeline in the CI provider UI. - */ + */ "url"?: string; /** @@ -35,27 +40,53 @@ export class CIAppPipelineEventParentPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventParentPipeline.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.ts index e4bf3ace1cec..385f136c810b 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.ts @@ -6,13 +6,15 @@ import { CIAppPipelineEventFinishedPipeline } from "./CIAppPipelineEventFinishedPipeline"; import { CIAppPipelineEventInProgressPipeline } from "./CIAppPipelineEventInProgressPipeline"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Details of the top level pipeline, build, or workflow of your CI. - */ +*/ -export type CIAppPipelineEventPipeline = - | CIAppPipelineEventFinishedPipeline - | CIAppPipelineEventInProgressPipeline - | UnparsedObject; +export type CIAppPipelineEventPipeline = CIAppPipelineEventFinishedPipeline | CIAppPipelineEventInProgressPipeline | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.ts index 712c2ad8da90..d5e42723e03d 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The in progress status of the pipeline. - */ +*/ -export type CIAppPipelineEventPipelineInProgressStatus = - | typeof RUNNING - | UnparsedObject; -export const RUNNING = "running"; +export type CIAppPipelineEventPipelineInProgressStatus = typeof RUNNING | UnparsedObject; +export const RUNNING = 'running'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineLevel.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineLevel.ts index 9348eec0283f..d44948de3d92 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineLevel.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineLevel.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Used to distinguish between pipelines, stages, jobs, and steps. - */ +*/ export type CIAppPipelineEventPipelineLevel = typeof PIPELINE | UnparsedObject; -export const PIPELINE = "pipeline"; +export const PIPELINE = 'pipeline'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineStatus.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineStatus.ts index 54d1a56f9621..de7c9a7dfd6b 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineStatus.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineStatus.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The final status of the pipeline. - */ +*/ -export type CIAppPipelineEventPipelineStatus = - | typeof SUCCESS - | typeof ERROR - | typeof CANCELED - | typeof SKIPPED - | typeof BLOCKED - | UnparsedObject; -export const SUCCESS = "success"; -export const ERROR = "error"; -export const CANCELED = "canceled"; -export const SKIPPED = "skipped"; -export const BLOCKED = "blocked"; +export type CIAppPipelineEventPipelineStatus = typeof SUCCESS| typeof ERROR| typeof CANCELED| typeof SKIPPED| typeof BLOCKED | UnparsedObject; +export const SUCCESS = 'success'; +export const ERROR = 'error'; +export const CANCELED = 'canceled'; +export const SKIPPED = 'skipped'; +export const BLOCKED = 'blocked'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventPreviousPipeline.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventPreviousPipeline.ts index 81e07dfe6c9a..d1365aba7e8b 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventPreviousPipeline.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventPreviousPipeline.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * If the pipeline is a retry, this should contain the details of the previous attempt. - */ +*/ export class CIAppPipelineEventPreviousPipeline { /** * UUID of a pipeline. - */ + */ "id": string; /** * The URL to look at the pipeline in the CI provider UI. - */ + */ "url"?: string; /** @@ -35,27 +40,53 @@ export class CIAppPipelineEventPreviousPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventPreviousPipeline.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.ts index 059a27d7b118..0abf5997533a 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.ts @@ -6,79 +6,86 @@ import { CIAppCIError } from "./CIAppCIError"; import { CIAppGitInfo } from "./CIAppGitInfo"; import { CIAppHostInfo } from "./CIAppHostInfo"; +import { CIAppPipelineEventMetricsItem } from "./CIAppPipelineEventMetricsItem"; import { CIAppPipelineEventStageLevel } from "./CIAppPipelineEventStageLevel"; import { CIAppPipelineEventStageStatus } from "./CIAppPipelineEventStageStatus"; +import { CIAppPipelineEventTagsItem } from "./CIAppPipelineEventTagsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a CI stage. - */ +*/ export class CIAppPipelineEventStage { /** * A list of stage IDs that this stage depends on. - */ + */ "dependencies"?: Array; /** * Time when the stage run finished. The time format must be RFC3339. - */ + */ "end": Date; /** * Contains information of the CI error. - */ + */ "error"?: CIAppCIError; /** * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. * Note that either `tag` or `branch` has to be provided, but not both. - */ + */ "git"?: CIAppGitInfo; /** * UUID for the stage. It has to be unique at least in the pipeline scope. - */ + */ "id": string; /** * Used to distinguish between pipelines, stages, jobs and steps. - */ + */ "level": CIAppPipelineEventStageLevel; /** * A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric. - */ + */ "metrics"?: Array; /** * The name for the stage. - */ + */ "name": string; /** * Contains information of the host running the pipeline, stage, job, or step. - */ + */ "node"?: CIAppHostInfo; /** * A map of key-value parameters or environment variables that were defined for the pipeline. - */ - "parameters"?: { [key: string]: string }; + */ + "parameters"?: { [key: string]: string; }; /** * The parent pipeline name. - */ + */ "pipelineName": string; /** * The parent pipeline UUID. - */ + */ "pipelineUniqueId": string; /** * The queue time in milliseconds, if applicable. - */ + */ "queueTime"?: number; /** * Time when the stage run started (it should not include any queue time). The time format must be RFC3339. - */ + */ "start": Date; /** * The final status of the stage. - */ + */ "status": CIAppPipelineEventStageStatus; /** * A list of user-defined tags. The tags must follow the `key:value` pattern. - */ + */ "tags"?: Array; /** @@ -97,93 +104,119 @@ export class CIAppPipelineEventStage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dependencies: { - baseName: "dependencies", - type: "Array", - }, - end: { - baseName: "end", - type: "Date", - required: true, - format: "date-time", - }, - error: { - baseName: "error", - type: "CIAppCIError", - }, - git: { - baseName: "git", - type: "CIAppGitInfo", - }, - id: { - baseName: "id", - type: "string", - required: true, - }, - level: { - baseName: "level", - type: "CIAppPipelineEventStageLevel", - required: true, - }, - metrics: { - baseName: "metrics", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - required: true, - }, - node: { - baseName: "node", - type: "CIAppHostInfo", - }, - parameters: { - baseName: "parameters", - type: "{ [key: string]: string; }", - }, - pipelineName: { - baseName: "pipeline_name", - type: "string", - required: true, - }, - pipelineUniqueId: { - baseName: "pipeline_unique_id", - type: "string", - required: true, - }, - queueTime: { - baseName: "queue_time", - type: "number", - format: "int64", - }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CIAppPipelineEventStageStatus", - required: true, - }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "dependencies": { + "baseName": "dependencies", + "type": "Array", + }, + "end": { + "baseName": "end", + "type": "Date", + "required": true, + "format": "date-time", + }, + "error": { + "baseName": "error", + "type": "CIAppCIError", + }, + "git": { + "baseName": "git", + "type": "CIAppGitInfo", + }, + "id": { + "baseName": "id", + "type": "string", + "required": true, + }, + "level": { + "baseName": "level", + "type": "CIAppPipelineEventStageLevel", + "required": true, + }, + "metrics": { + "baseName": "metrics", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + "required": true, + }, + "node": { + "baseName": "node", + "type": "CIAppHostInfo", + }, + "parameters": { + "baseName": "parameters", + "type": "{ [key: string]: string; }", + }, + "pipelineName": { + "baseName": "pipeline_name", + "type": "string", + "required": true, + }, + "pipelineUniqueId": { + "baseName": "pipeline_unique_id", + "type": "string", + "required": true, + }, + "queueTime": { + "baseName": "queue_time", + "type": "number", + "format": "int64", + }, + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", + }, + "status": { + "baseName": "status", + "type": "CIAppPipelineEventStageStatus", + "required": true, + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventStage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventStageLevel.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventStageLevel.ts index 7369f854fc7a..abbf0cd497bf 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventStageLevel.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventStageLevel.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Used to distinguish between pipelines, stages, jobs and steps. - */ +*/ export type CIAppPipelineEventStageLevel = typeof STAGE | UnparsedObject; -export const STAGE = "stage"; +export const STAGE = 'stage'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventStageStatus.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventStageStatus.ts index 6e021593df39..dd73225f7b52 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventStageStatus.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventStageStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The final status of the stage. - */ +*/ -export type CIAppPipelineEventStageStatus = - | typeof SUCCESS - | typeof ERROR - | typeof CANCELED - | typeof SKIPPED - | UnparsedObject; -export const SUCCESS = "success"; -export const ERROR = "error"; -export const CANCELED = "canceled"; -export const SKIPPED = "skipped"; +export type CIAppPipelineEventStageStatus = typeof SUCCESS| typeof ERROR| typeof CANCELED| typeof SKIPPED | UnparsedObject; +export const SUCCESS = 'success'; +export const ERROR = 'error'; +export const CANCELED = 'canceled'; +export const SKIPPED = 'skipped'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.ts index 76f1270888e7..0de7bed10cd3 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.ts @@ -6,91 +6,98 @@ import { CIAppCIError } from "./CIAppCIError"; import { CIAppGitInfo } from "./CIAppGitInfo"; import { CIAppHostInfo } from "./CIAppHostInfo"; +import { CIAppPipelineEventMetricsItem } from "./CIAppPipelineEventMetricsItem"; import { CIAppPipelineEventStepLevel } from "./CIAppPipelineEventStepLevel"; import { CIAppPipelineEventStepStatus } from "./CIAppPipelineEventStepStatus"; +import { CIAppPipelineEventTagsItem } from "./CIAppPipelineEventTagsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a CI step. - */ +*/ export class CIAppPipelineEventStep { /** * Time when the step run finished. The time format must be RFC3339. - */ + */ "end": Date; /** * Contains information of the CI error. - */ + */ "error"?: CIAppCIError; /** * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. * Note that either `tag` or `branch` has to be provided, but not both. - */ + */ "git"?: CIAppGitInfo; /** * UUID for the step. It has to be unique within each pipeline execution. - */ + */ "id": string; /** * The parent job UUID (if applicable). - */ + */ "jobId"?: string; /** * The parent job name (if applicable). - */ + */ "jobName"?: string; /** * Used to distinguish between pipelines, stages, jobs and steps. - */ + */ "level": CIAppPipelineEventStepLevel; /** * A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric. - */ + */ "metrics"?: Array; /** * The name for the step. - */ + */ "name": string; /** * Contains information of the host running the pipeline, stage, job, or step. - */ + */ "node"?: CIAppHostInfo; /** * A map of key-value parameters or environment variables that were defined for the pipeline. - */ - "parameters"?: { [key: string]: string }; + */ + "parameters"?: { [key: string]: string; }; /** * The parent pipeline name. - */ + */ "pipelineName": string; /** * The parent pipeline UUID. - */ + */ "pipelineUniqueId": string; /** * The parent stage UUID (if applicable). - */ + */ "stageId"?: string; /** * The parent stage name (if applicable). - */ + */ "stageName"?: string; /** * Time when the step run started. The time format must be RFC3339. - */ + */ "start": Date; /** * The final status of the step. - */ + */ "status": CIAppPipelineEventStepStatus; /** * A list of user-defined tags. The tags must follow the `key:value` pattern. - */ + */ "tags"?: Array; /** * The URL to look at the step in the CI provider UI. - */ + */ "url"?: string; /** @@ -109,104 +116,130 @@ export class CIAppPipelineEventStep { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - required: true, - format: "date-time", - }, - error: { - baseName: "error", - type: "CIAppCIError", - }, - git: { - baseName: "git", - type: "CIAppGitInfo", - }, - id: { - baseName: "id", - type: "string", - required: true, - }, - jobId: { - baseName: "job_id", - type: "string", - }, - jobName: { - baseName: "job_name", - type: "string", - }, - level: { - baseName: "level", - type: "CIAppPipelineEventStepLevel", - required: true, - }, - metrics: { - baseName: "metrics", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - required: true, - }, - node: { - baseName: "node", - type: "CIAppHostInfo", - }, - parameters: { - baseName: "parameters", - type: "{ [key: string]: string; }", - }, - pipelineName: { - baseName: "pipeline_name", - type: "string", - required: true, - }, - pipelineUniqueId: { - baseName: "pipeline_unique_id", - type: "string", - required: true, - }, - stageId: { - baseName: "stage_id", - type: "string", - }, - stageName: { - baseName: "stage_name", - type: "string", - }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CIAppPipelineEventStepStatus", - required: true, - }, - tags: { - baseName: "tags", - type: "Array", - }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "end": { + "baseName": "end", + "type": "Date", + "required": true, + "format": "date-time", + }, + "error": { + "baseName": "error", + "type": "CIAppCIError", + }, + "git": { + "baseName": "git", + "type": "CIAppGitInfo", + }, + "id": { + "baseName": "id", + "type": "string", + "required": true, + }, + "jobId": { + "baseName": "job_id", + "type": "string", + }, + "jobName": { + "baseName": "job_name", + "type": "string", + }, + "level": { + "baseName": "level", + "type": "CIAppPipelineEventStepLevel", + "required": true, + }, + "metrics": { + "baseName": "metrics", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + "required": true, + }, + "node": { + "baseName": "node", + "type": "CIAppHostInfo", + }, + "parameters": { + "baseName": "parameters", + "type": "{ [key: string]: string; }", + }, + "pipelineName": { + "baseName": "pipeline_name", + "type": "string", + "required": true, + }, + "pipelineUniqueId": { + "baseName": "pipeline_unique_id", + "type": "string", + "required": true, + }, + "stageId": { + "baseName": "stage_id", + "type": "string", + }, + "stageName": { + "baseName": "stage_name", + "type": "string", + }, + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", + }, + "status": { + "baseName": "status", + "type": "CIAppPipelineEventStepStatus", + "required": true, + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "url": { + "baseName": "url", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventStep.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventStepLevel.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventStepLevel.ts index ca65d48bd2af..357a38d6ebda 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventStepLevel.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventStepLevel.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Used to distinguish between pipelines, stages, jobs and steps. - */ +*/ export type CIAppPipelineEventStepLevel = typeof STEP | UnparsedObject; -export const STEP = "step"; +export const STEP = 'step'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventStepStatus.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventStepStatus.ts index 61fe2fbc9a75..b1b6dab58e56 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventStepStatus.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventStepStatus.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The final status of the step. - */ +*/ -export type CIAppPipelineEventStepStatus = - | typeof SUCCESS - | typeof ERROR - | UnparsedObject; -export const SUCCESS = "success"; -export const ERROR = "error"; +export type CIAppPipelineEventStepStatus = typeof SUCCESS| typeof ERROR | UnparsedObject; +export const SUCCESS = 'success'; +export const ERROR = 'error'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventTypeName.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventTypeName.ts index 21ad3427bd89..f59c6bdc7161 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventTypeName.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventTypeName.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ export type CIAppPipelineEventTypeName = typeof CIPIPELINE | UnparsedObject; -export const CIPIPELINE = "cipipeline"; +export const CIPIPELINE = 'cipipeline'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventsRequest.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventsRequest.ts index 551060546ea9..9f5ef953f573 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventsRequest.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventsRequest.ts @@ -8,28 +8,33 @@ import { CIAppQueryOptions } from "./CIAppQueryOptions"; import { CIAppQueryPageOptions } from "./CIAppQueryPageOptions"; import { CIAppSort } from "./CIAppSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a pipelines search. - */ +*/ export class CIAppPipelineEventsRequest { /** * The search and filter query settings. - */ + */ "filter"?: CIAppPipelinesQueryFilter; /** * Global query options that are used during the query. * Only supply timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: CIAppQueryOptions; /** * Paging attributes for listing events. - */ + */ "page"?: CIAppQueryPageOptions; /** * Sort parameters when querying events. - */ + */ "sort"?: CIAppSort; /** @@ -48,34 +53,60 @@ export class CIAppPipelineEventsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "CIAppPipelinesQueryFilter", + "filter": { + "baseName": "filter", + "type": "CIAppPipelinesQueryFilter", }, - options: { - baseName: "options", - type: "CIAppQueryOptions", + "options": { + "baseName": "options", + "type": "CIAppQueryOptions", }, - page: { - baseName: "page", - type: "CIAppQueryPageOptions", + "page": { + "baseName": "page", + "type": "CIAppQueryPageOptions", }, - sort: { - baseName: "sort", - type: "CIAppSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "CIAppSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineEventsResponse.ts b/packages/datadog-api-client-v2/models/CIAppPipelineEventsResponse.ts index f5ae7ba75032..4171248b13fc 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineEventsResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineEventsResponse.ts @@ -7,23 +7,28 @@ import { CIAppPipelineEvent } from "./CIAppPipelineEvent"; import { CIAppResponseLinks } from "./CIAppResponseLinks"; import { CIAppResponseMetadataWithPagination } from "./CIAppResponseMetadataWithPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all pipeline events matching the request and pagination information. - */ +*/ export class CIAppPipelineEventsResponse { /** * Array of events matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: CIAppResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: CIAppResponseMetadataWithPagination; /** @@ -42,30 +47,56 @@ export class CIAppPipelineEventsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "CIAppResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "CIAppResponseMetadataWithPagination", + "links": { + "baseName": "links", + "type": "CIAppResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CIAppResponseMetadataWithPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelineEventsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelineLevel.ts b/packages/datadog-api-client-v2/models/CIAppPipelineLevel.ts index c78940611d09..18abfffb18a8 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelineLevel.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelineLevel.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Pipeline execution level. - */ +*/ -export type CIAppPipelineLevel = - | typeof PIPELINE - | typeof STAGE - | typeof JOB - | typeof STEP - | typeof CUSTOM - | UnparsedObject; -export const PIPELINE = "pipeline"; -export const STAGE = "stage"; -export const JOB = "job"; -export const STEP = "step"; -export const CUSTOM = "custom"; +export type CIAppPipelineLevel = typeof PIPELINE| typeof STAGE| typeof JOB| typeof STEP| typeof CUSTOM | UnparsedObject; +export const PIPELINE = 'pipeline'; +export const STAGE = 'stage'; +export const JOB = 'job'; +export const STEP = 'step'; +export const CUSTOM = 'custom'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppPipelinesAggregateRequest.ts b/packages/datadog-api-client-v2/models/CIAppPipelinesAggregateRequest.ts index 038050e32978..70a97f261f2c 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelinesAggregateRequest.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelinesAggregateRequest.ts @@ -8,28 +8,33 @@ import { CIAppPipelinesGroupBy } from "./CIAppPipelinesGroupBy"; import { CIAppPipelinesQueryFilter } from "./CIAppPipelinesQueryFilter"; import { CIAppQueryOptions } from "./CIAppQueryOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object sent with the request to retrieve aggregation buckets of pipeline events from your organization. - */ +*/ export class CIAppPipelinesAggregateRequest { /** * The list of metrics or timeseries to compute for the retrieved buckets. - */ + */ "compute"?: Array; /** * The search and filter query settings. - */ + */ "filter"?: CIAppPipelinesQueryFilter; /** * The rules for the group-by. - */ + */ "groupBy"?: Array; /** * Global query options that are used during the query. * Only supply timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: CIAppQueryOptions; /** @@ -48,34 +53,60 @@ export class CIAppPipelinesAggregateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "Array", + "compute": { + "baseName": "compute", + "type": "Array", }, - filter: { - baseName: "filter", - type: "CIAppPipelinesQueryFilter", + "filter": { + "baseName": "filter", + "type": "CIAppPipelinesQueryFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - options: { - baseName: "options", - type: "CIAppQueryOptions", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "options": { + "baseName": "options", + "type": "CIAppQueryOptions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelinesAggregateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelinesAggregationBucketsResponse.ts b/packages/datadog-api-client-v2/models/CIAppPipelinesAggregationBucketsResponse.ts index 181b8ef4afa5..d80b07aac792 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelinesAggregationBucketsResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelinesAggregationBucketsResponse.ts @@ -5,15 +5,20 @@ */ import { CIAppPipelinesBucketResponse } from "./CIAppPipelinesBucketResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The query results. - */ +*/ export class CIAppPipelinesAggregationBucketsResponse { /** * The list of matching buckets, one item per bucket. - */ + */ "buckets"?: Array; /** @@ -32,22 +37,48 @@ export class CIAppPipelinesAggregationBucketsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - buckets: { - baseName: "buckets", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "buckets": { + "baseName": "buckets", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelinesAggregationBucketsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelinesAnalyticsAggregateResponse.ts b/packages/datadog-api-client-v2/models/CIAppPipelinesAnalyticsAggregateResponse.ts index cc09eda258f3..3b76f37fbd8d 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelinesAnalyticsAggregateResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelinesAnalyticsAggregateResponse.ts @@ -7,23 +7,28 @@ import { CIAppPipelinesAggregationBucketsResponse } from "./CIAppPipelinesAggreg import { CIAppResponseLinks } from "./CIAppResponseLinks"; import { CIAppResponseMetadata } from "./CIAppResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object for the pipeline events aggregate API endpoint. - */ +*/ export class CIAppPipelinesAnalyticsAggregateResponse { /** * The query results. - */ + */ "data"?: CIAppPipelinesAggregationBucketsResponse; /** * Links attributes. - */ + */ "links"?: CIAppResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: CIAppResponseMetadata; /** @@ -42,30 +47,56 @@ export class CIAppPipelinesAnalyticsAggregateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CIAppPipelinesAggregationBucketsResponse", - }, - links: { - baseName: "links", - type: "CIAppResponseLinks", + "data": { + "baseName": "data", + "type": "CIAppPipelinesAggregationBucketsResponse", }, - meta: { - baseName: "meta", - type: "CIAppResponseMetadata", + "links": { + "baseName": "links", + "type": "CIAppResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CIAppResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelinesAnalyticsAggregateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelinesBucketResponse.ts b/packages/datadog-api-client-v2/models/CIAppPipelinesBucketResponse.ts index 5f523e293858..de80ba80f821 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelinesBucketResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelinesBucketResponse.ts @@ -5,20 +5,25 @@ */ import { CIAppAggregateBucketValue } from "./CIAppAggregateBucketValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Bucket values. - */ +*/ export class CIAppPipelinesBucketResponse { /** * The key-value pairs for each group-by. - */ - "by"?: { [key: string]: any }; + */ + "by"?: { [key: string]: any; }; /** * A map of the metric name to value for regular compute, or a list of values for a timeseries. - */ - "computes"?: { [key: string]: CIAppAggregateBucketValue }; + */ + "computes"?: { [key: string]: CIAppAggregateBucketValue; }; /** * A container for additional, undeclared properties. @@ -36,26 +41,52 @@ export class CIAppPipelinesBucketResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - by: { - baseName: "by", - type: "{ [key: string]: any; }", + "by": { + "baseName": "by", + "type": "{ [key: string]: any; }", }, - computes: { - baseName: "computes", - type: "{ [key: string]: CIAppAggregateBucketValue; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "computes": { + "baseName": "computes", + "type": "{ [key: string]: CIAppAggregateBucketValue; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelinesBucketResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelinesGroupBy.ts b/packages/datadog-api-client-v2/models/CIAppPipelinesGroupBy.ts index 8452af0d6c99..f39b62f374ab 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelinesGroupBy.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelinesGroupBy.ts @@ -8,36 +8,41 @@ import { CIAppGroupByHistogram } from "./CIAppGroupByHistogram"; import { CIAppGroupByMissing } from "./CIAppGroupByMissing"; import { CIAppGroupByTotal } from "./CIAppGroupByTotal"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group-by rule. - */ +*/ export class CIAppPipelinesGroupBy { /** * The name of the facet to use (required). - */ + */ "facet": string; /** * Used to perform a histogram computation (only for measure facets). * At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`. - */ + */ "histogram"?: CIAppGroupByHistogram; /** * The maximum buckets to return for this group-by. - */ + */ "limit"?: number; /** * The value to use for logs that don't have the facet used to group-by. - */ + */ "missing"?: CIAppGroupByMissing; /** * A sort rule. The `aggregation` field is required when `type` is `measure`. - */ + */ "sort"?: CIAppAggregateSort; /** * A resulting object to put the given computes in over all the matching records. - */ + */ "total"?: CIAppGroupByTotal; /** @@ -56,44 +61,70 @@ export class CIAppPipelinesGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - histogram: { - baseName: "histogram", - type: "CIAppGroupByHistogram", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "histogram": { + "baseName": "histogram", + "type": "CIAppGroupByHistogram", }, - missing: { - baseName: "missing", - type: "CIAppGroupByMissing", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - sort: { - baseName: "sort", - type: "CIAppAggregateSort", + "missing": { + "baseName": "missing", + "type": "CIAppGroupByMissing", }, - total: { - baseName: "total", - type: "CIAppGroupByTotal", + "sort": { + "baseName": "sort", + "type": "CIAppAggregateSort", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "CIAppGroupByTotal", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelinesGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppPipelinesQueryFilter.ts b/packages/datadog-api-client-v2/models/CIAppPipelinesQueryFilter.ts index fa27ec7bbf7f..78655566aab2 100644 --- a/packages/datadog-api-client-v2/models/CIAppPipelinesQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/CIAppPipelinesQueryFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The search and filter query settings. - */ +*/ export class CIAppPipelinesQueryFilter { /** * The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds). - */ + */ "from"?: string; /** * The search query following the CI Visibility Explorer search syntax. - */ + */ "query"?: string; /** * The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds). - */ + */ "to"?: string; /** @@ -39,30 +44,56 @@ export class CIAppPipelinesQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - to: { - baseName: "to", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppPipelinesQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppQueryOptions.ts b/packages/datadog-api-client-v2/models/CIAppQueryOptions.ts index 3398ac971648..731f72f3f210 100644 --- a/packages/datadog-api-client-v2/models/CIAppQueryOptions.ts +++ b/packages/datadog-api-client-v2/models/CIAppQueryOptions.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Global query options that are used during the query. * Only supply timezone or time offset, not both. Otherwise, the query fails. - */ +*/ export class CIAppQueryOptions { /** * The time offset (in seconds) to apply to the query. - */ + */ "timeOffset"?: number; /** * The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class CIAppQueryOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeOffset: { - baseName: "time_offset", - type: "number", - format: "int64", + "timeOffset": { + "baseName": "time_offset", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppQueryOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppQueryPageOptions.ts b/packages/datadog-api-client-v2/models/CIAppQueryPageOptions.ts index 5235867af52a..fc616de5f7f4 100644 --- a/packages/datadog-api-client-v2/models/CIAppQueryPageOptions.ts +++ b/packages/datadog-api-client-v2/models/CIAppQueryPageOptions.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes for listing events. - */ +*/ export class CIAppQueryPageOptions { /** * List following results with a cursor provided in the previous query. - */ + */ "cursor"?: string; /** * Maximum number of events in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class CIAppQueryPageOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppQueryPageOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppResponseLinks.ts b/packages/datadog-api-client-v2/models/CIAppResponseLinks.ts index 52e44289e2db..4f9dbe15ac73 100644 --- a/packages/datadog-api-client-v2/models/CIAppResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/CIAppResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class CIAppResponseLinks { /** * Link for the next set of results. The request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class CIAppResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppResponseMetadata.ts b/packages/datadog-api-client-v2/models/CIAppResponseMetadata.ts index 6d6f61f3f656..00507edeb3b4 100644 --- a/packages/datadog-api-client-v2/models/CIAppResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/CIAppResponseMetadata.ts @@ -6,28 +6,33 @@ import { CIAppResponseStatus } from "./CIAppResponseStatus"; import { CIAppWarning } from "./CIAppWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class CIAppResponseMetadata { /** * The time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The status of the response. - */ + */ "status"?: CIAppResponseStatus; /** * A list of warnings (non-fatal errors) encountered. Partial results may return if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -46,35 +51,61 @@ export class CIAppResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "CIAppResponseStatus", + "status": { + "baseName": "status", + "type": "CIAppResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppResponseMetadataWithPagination.ts b/packages/datadog-api-client-v2/models/CIAppResponseMetadataWithPagination.ts index 52b9b61c3392..be46207aac35 100644 --- a/packages/datadog-api-client-v2/models/CIAppResponseMetadataWithPagination.ts +++ b/packages/datadog-api-client-v2/models/CIAppResponseMetadataWithPagination.ts @@ -7,32 +7,37 @@ import { CIAppResponsePage } from "./CIAppResponsePage"; import { CIAppResponseStatus } from "./CIAppResponseStatus"; import { CIAppWarning } from "./CIAppWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class CIAppResponseMetadataWithPagination { /** * The time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * Paging attributes. - */ + */ "page"?: CIAppResponsePage; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The status of the response. - */ + */ "status"?: CIAppResponseStatus; /** * A list of warnings (non-fatal errors) encountered. Partial results may return if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -51,39 +56,65 @@ export class CIAppResponseMetadataWithPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "CIAppResponsePage", + "page": { + "baseName": "page", + "type": "CIAppResponsePage", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "CIAppResponseStatus", + "status": { + "baseName": "status", + "type": "CIAppResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppResponseMetadataWithPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppResponsePage.ts b/packages/datadog-api-client-v2/models/CIAppResponsePage.ts index 4dd95b3fee51..474766c49e53 100644 --- a/packages/datadog-api-client-v2/models/CIAppResponsePage.ts +++ b/packages/datadog-api-client-v2/models/CIAppResponsePage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class CIAppResponsePage { /** * The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`. - */ + */ "after"?: string; /** @@ -31,22 +36,48 @@ export class CIAppResponsePage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppResponsePage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppResponseStatus.ts b/packages/datadog-api-client-v2/models/CIAppResponseStatus.ts index 645e7837c1ca..c4eedf5ee605 100644 --- a/packages/datadog-api-client-v2/models/CIAppResponseStatus.ts +++ b/packages/datadog-api-client-v2/models/CIAppResponseStatus.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the response. - */ +*/ -export type CIAppResponseStatus = typeof DONE | typeof TIMEOUT | UnparsedObject; -export const DONE = "done"; -export const TIMEOUT = "timeout"; +export type CIAppResponseStatus = typeof DONE| typeof TIMEOUT | UnparsedObject; +export const DONE = 'done'; +export const TIMEOUT = 'timeout'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppSort.ts b/packages/datadog-api-client-v2/models/CIAppSort.ts index 31569320115a..fe578a1d9e2f 100644 --- a/packages/datadog-api-client-v2/models/CIAppSort.ts +++ b/packages/datadog-api-client-v2/models/CIAppSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sort parameters when querying events. - */ +*/ -export type CIAppSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type CIAppSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppSortOrder.ts b/packages/datadog-api-client-v2/models/CIAppSortOrder.ts index 41a0db562054..1fcae8e05e5e 100644 --- a/packages/datadog-api-client-v2/models/CIAppSortOrder.ts +++ b/packages/datadog-api-client-v2/models/CIAppSortOrder.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The order to use, ascending or descending. - */ +*/ -export type CIAppSortOrder = - | typeof ASCENDING - | typeof DESCENDING - | UnparsedObject; -export const ASCENDING = "asc"; -export const DESCENDING = "desc"; +export type CIAppSortOrder = typeof ASCENDING| typeof DESCENDING | UnparsedObject; +export const ASCENDING = 'asc'; +export const DESCENDING = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppTestEvent.ts b/packages/datadog-api-client-v2/models/CIAppTestEvent.ts index c5c74fe12745..194c7cd9905b 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestEvent.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestEvent.ts @@ -6,23 +6,28 @@ import { CIAppEventAttributes } from "./CIAppEventAttributes"; import { CIAppTestEventTypeName } from "./CIAppTestEventTypeName"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of test event after being processed and stored by Datadog. - */ +*/ export class CIAppTestEvent { /** * JSON object containing all event attributes and their associated values. - */ + */ "attributes"?: CIAppEventAttributes; /** * Unique ID of the event. - */ + */ "id"?: string; /** * Type of the event. - */ + */ "type"?: CIAppTestEventTypeName; /** @@ -41,30 +46,56 @@ export class CIAppTestEvent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CIAppEventAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CIAppEventAttributes", }, - type: { - baseName: "type", - type: "CIAppTestEventTypeName", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CIAppTestEventTypeName", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestEvent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestEventTypeName.ts b/packages/datadog-api-client-v2/models/CIAppTestEventTypeName.ts index 1dd24a8d9c5f..8cb0611beb3b 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestEventTypeName.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestEventTypeName.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ export type CIAppTestEventTypeName = typeof CITEST | UnparsedObject; -export const CITEST = "citest"; +export const CITEST = 'citest'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppTestEventsRequest.ts b/packages/datadog-api-client-v2/models/CIAppTestEventsRequest.ts index e55791fa989c..3212bd9b2166 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestEventsRequest.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestEventsRequest.ts @@ -8,28 +8,33 @@ import { CIAppQueryPageOptions } from "./CIAppQueryPageOptions"; import { CIAppSort } from "./CIAppSort"; import { CIAppTestsQueryFilter } from "./CIAppTestsQueryFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a tests search. - */ +*/ export class CIAppTestEventsRequest { /** * The search and filter query settings. - */ + */ "filter"?: CIAppTestsQueryFilter; /** * Global query options that are used during the query. * Only supply timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: CIAppQueryOptions; /** * Paging attributes for listing events. - */ + */ "page"?: CIAppQueryPageOptions; /** * Sort parameters when querying events. - */ + */ "sort"?: CIAppSort; /** @@ -48,34 +53,60 @@ export class CIAppTestEventsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "CIAppTestsQueryFilter", + "filter": { + "baseName": "filter", + "type": "CIAppTestsQueryFilter", }, - options: { - baseName: "options", - type: "CIAppQueryOptions", + "options": { + "baseName": "options", + "type": "CIAppQueryOptions", }, - page: { - baseName: "page", - type: "CIAppQueryPageOptions", + "page": { + "baseName": "page", + "type": "CIAppQueryPageOptions", }, - sort: { - baseName: "sort", - type: "CIAppSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "CIAppSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestEventsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestEventsResponse.ts b/packages/datadog-api-client-v2/models/CIAppTestEventsResponse.ts index e6a3058b6168..66553749c405 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestEventsResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestEventsResponse.ts @@ -7,23 +7,28 @@ import { CIAppResponseLinks } from "./CIAppResponseLinks"; import { CIAppResponseMetadataWithPagination } from "./CIAppResponseMetadataWithPagination"; import { CIAppTestEvent } from "./CIAppTestEvent"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all test events matching the request and pagination information. - */ +*/ export class CIAppTestEventsResponse { /** * Array of events matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: CIAppResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: CIAppResponseMetadataWithPagination; /** @@ -42,30 +47,56 @@ export class CIAppTestEventsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "CIAppResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "CIAppResponseMetadataWithPagination", + "links": { + "baseName": "links", + "type": "CIAppResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CIAppResponseMetadataWithPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestEventsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestLevel.ts b/packages/datadog-api-client-v2/models/CIAppTestLevel.ts index c1c0a6bc477b..99133b9b2adf 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestLevel.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestLevel.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Test run level. - */ +*/ -export type CIAppTestLevel = - | typeof SESSION - | typeof MODULE - | typeof SUITE - | typeof TEST - | UnparsedObject; -export const SESSION = "session"; -export const MODULE = "module"; -export const SUITE = "suite"; -export const TEST = "test"; +export type CIAppTestLevel = typeof SESSION| typeof MODULE| typeof SUITE| typeof TEST | UnparsedObject; +export const SESSION = 'session'; +export const MODULE = 'module'; +export const SUITE = 'suite'; +export const TEST = 'test'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CIAppTestsAggregateRequest.ts b/packages/datadog-api-client-v2/models/CIAppTestsAggregateRequest.ts index 4756d106eb38..601255fc6e77 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestsAggregateRequest.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestsAggregateRequest.ts @@ -8,28 +8,33 @@ import { CIAppQueryOptions } from "./CIAppQueryOptions"; import { CIAppTestsGroupBy } from "./CIAppTestsGroupBy"; import { CIAppTestsQueryFilter } from "./CIAppTestsQueryFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object sent with the request to retrieve aggregation buckets of test events from your organization. - */ +*/ export class CIAppTestsAggregateRequest { /** * The list of metrics or timeseries to compute for the retrieved buckets. - */ + */ "compute"?: Array; /** * The search and filter query settings. - */ + */ "filter"?: CIAppTestsQueryFilter; /** * The rules for the group-by. - */ + */ "groupBy"?: Array; /** * Global query options that are used during the query. * Only supply timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: CIAppQueryOptions; /** @@ -48,34 +53,60 @@ export class CIAppTestsAggregateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "Array", + "compute": { + "baseName": "compute", + "type": "Array", }, - filter: { - baseName: "filter", - type: "CIAppTestsQueryFilter", + "filter": { + "baseName": "filter", + "type": "CIAppTestsQueryFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - options: { - baseName: "options", - type: "CIAppQueryOptions", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "options": { + "baseName": "options", + "type": "CIAppQueryOptions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestsAggregateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestsAggregationBucketsResponse.ts b/packages/datadog-api-client-v2/models/CIAppTestsAggregationBucketsResponse.ts index c1b0fc567401..87fb9fbc9912 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestsAggregationBucketsResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestsAggregationBucketsResponse.ts @@ -5,15 +5,20 @@ */ import { CIAppTestsBucketResponse } from "./CIAppTestsBucketResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The query results. - */ +*/ export class CIAppTestsAggregationBucketsResponse { /** * The list of matching buckets, one item per bucket. - */ + */ "buckets"?: Array; /** @@ -32,22 +37,48 @@ export class CIAppTestsAggregationBucketsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - buckets: { - baseName: "buckets", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "buckets": { + "baseName": "buckets", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestsAggregationBucketsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestsAnalyticsAggregateResponse.ts b/packages/datadog-api-client-v2/models/CIAppTestsAnalyticsAggregateResponse.ts index 48feda45d6bb..f48c7aa17f75 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestsAnalyticsAggregateResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestsAnalyticsAggregateResponse.ts @@ -7,23 +7,28 @@ import { CIAppResponseLinks } from "./CIAppResponseLinks"; import { CIAppResponseMetadataWithPagination } from "./CIAppResponseMetadataWithPagination"; import { CIAppTestsAggregationBucketsResponse } from "./CIAppTestsAggregationBucketsResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object for the test events aggregate API endpoint. - */ +*/ export class CIAppTestsAnalyticsAggregateResponse { /** * The query results. - */ + */ "data"?: CIAppTestsAggregationBucketsResponse; /** * Links attributes. - */ + */ "links"?: CIAppResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: CIAppResponseMetadataWithPagination; /** @@ -42,30 +47,56 @@ export class CIAppTestsAnalyticsAggregateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CIAppTestsAggregationBucketsResponse", - }, - links: { - baseName: "links", - type: "CIAppResponseLinks", + "data": { + "baseName": "data", + "type": "CIAppTestsAggregationBucketsResponse", }, - meta: { - baseName: "meta", - type: "CIAppResponseMetadataWithPagination", + "links": { + "baseName": "links", + "type": "CIAppResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CIAppResponseMetadataWithPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestsAnalyticsAggregateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestsBucketResponse.ts b/packages/datadog-api-client-v2/models/CIAppTestsBucketResponse.ts index ad001c50ea15..31b1adc784da 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestsBucketResponse.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestsBucketResponse.ts @@ -5,20 +5,25 @@ */ import { CIAppAggregateBucketValue } from "./CIAppAggregateBucketValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Bucket values. - */ +*/ export class CIAppTestsBucketResponse { /** * The key-value pairs for each group-by. - */ - "by"?: { [key: string]: any }; + */ + "by"?: { [key: string]: any; }; /** * A map of the metric name to value for regular compute, or a list of values for a timeseries. - */ - "computes"?: { [key: string]: CIAppAggregateBucketValue }; + */ + "computes"?: { [key: string]: CIAppAggregateBucketValue; }; /** * A container for additional, undeclared properties. @@ -36,26 +41,52 @@ export class CIAppTestsBucketResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - by: { - baseName: "by", - type: "{ [key: string]: any; }", + "by": { + "baseName": "by", + "type": "{ [key: string]: any; }", }, - computes: { - baseName: "computes", - type: "{ [key: string]: CIAppAggregateBucketValue; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "computes": { + "baseName": "computes", + "type": "{ [key: string]: CIAppAggregateBucketValue; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestsBucketResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestsGroupBy.ts b/packages/datadog-api-client-v2/models/CIAppTestsGroupBy.ts index b2e86e9b0bd1..416235e0a795 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestsGroupBy.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestsGroupBy.ts @@ -8,36 +8,41 @@ import { CIAppGroupByHistogram } from "./CIAppGroupByHistogram"; import { CIAppGroupByMissing } from "./CIAppGroupByMissing"; import { CIAppGroupByTotal } from "./CIAppGroupByTotal"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group-by rule. - */ +*/ export class CIAppTestsGroupBy { /** * The name of the facet to use (required). - */ + */ "facet": string; /** * Used to perform a histogram computation (only for measure facets). * At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`. - */ + */ "histogram"?: CIAppGroupByHistogram; /** * The maximum buckets to return for this group-by. - */ + */ "limit"?: number; /** * The value to use for logs that don't have the facet used to group-by. - */ + */ "missing"?: CIAppGroupByMissing; /** * A sort rule. The `aggregation` field is required when `type` is `measure`. - */ + */ "sort"?: CIAppAggregateSort; /** * A resulting object to put the given computes in over all the matching records. - */ + */ "total"?: CIAppGroupByTotal; /** @@ -56,44 +61,70 @@ export class CIAppTestsGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - histogram: { - baseName: "histogram", - type: "CIAppGroupByHistogram", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "histogram": { + "baseName": "histogram", + "type": "CIAppGroupByHistogram", }, - missing: { - baseName: "missing", - type: "CIAppGroupByMissing", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - sort: { - baseName: "sort", - type: "CIAppAggregateSort", + "missing": { + "baseName": "missing", + "type": "CIAppGroupByMissing", }, - total: { - baseName: "total", - type: "CIAppGroupByTotal", + "sort": { + "baseName": "sort", + "type": "CIAppAggregateSort", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "CIAppGroupByTotal", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestsGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppTestsQueryFilter.ts b/packages/datadog-api-client-v2/models/CIAppTestsQueryFilter.ts index a84b340bb98f..810813b71d26 100644 --- a/packages/datadog-api-client-v2/models/CIAppTestsQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/CIAppTestsQueryFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The search and filter query settings. - */ +*/ export class CIAppTestsQueryFilter { /** * The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds). - */ + */ "from"?: string; /** * The search query following the CI Visibility Explorer search syntax. - */ + */ "query"?: string; /** * The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds). - */ + */ "to"?: string; /** @@ -39,30 +44,56 @@ export class CIAppTestsQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - to: { - baseName: "to", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppTestsQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CIAppWarning.ts b/packages/datadog-api-client-v2/models/CIAppWarning.ts index e5206c002378..238bd893d985 100644 --- a/packages/datadog-api-client-v2/models/CIAppWarning.ts +++ b/packages/datadog-api-client-v2/models/CIAppWarning.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A warning message indicating something that went wrong with the query. - */ +*/ export class CIAppWarning { /** * A unique code for this type of warning. - */ + */ "code"?: string; /** * A detailed explanation of this specific warning. - */ + */ "detail"?: string; /** * A short human-readable summary of the warning. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class CIAppWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - detail: { - baseName: "detail", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CIAppWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CSMAgentsMetadata.ts b/packages/datadog-api-client-v2/models/CSMAgentsMetadata.ts index a90f5cb9b0d2..99b3229dc9d8 100644 --- a/packages/datadog-api-client-v2/models/CSMAgentsMetadata.ts +++ b/packages/datadog-api-client-v2/models/CSMAgentsMetadata.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata related to the paginated response. - */ +*/ export class CSMAgentsMetadata { /** * The index of the current page in the paginated results. - */ + */ "pageIndex"?: number; /** * The number of items per page in the paginated results. - */ + */ "pageSize"?: number; /** * Total number of items that match the filter criteria. - */ + */ "totalFiltered"?: number; /** @@ -39,33 +44,59 @@ export class CSMAgentsMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pageIndex: { - baseName: "page_index", - type: "number", - format: "int64", - }, - pageSize: { - baseName: "page_size", - type: "number", - format: "int64", + "pageIndex": { + "baseName": "page_index", + "type": "number", + "format": "int64", }, - totalFiltered: { - baseName: "total_filtered", - type: "number", - format: "int64", + "pageSize": { + "baseName": "page_size", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFiltered": { + "baseName": "total_filtered", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CSMAgentsMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CSMAgentsType.ts b/packages/datadog-api-client-v2/models/CSMAgentsType.ts index feaf0457ab5b..966fa7d4cc06 100644 --- a/packages/datadog-api-client-v2/models/CSMAgentsType.ts +++ b/packages/datadog-api-client-v2/models/CSMAgentsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `datadog_agent`. - */ +*/ export type CSMAgentsType = typeof DATADOG_AGENT | UnparsedObject; -export const DATADOG_AGENT = "datadog_agent"; +export const DATADOG_AGENT = 'datadog_agent'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CVSS.ts b/packages/datadog-api-client-v2/models/CVSS.ts index 3ff646af342a..31feb0593e0f 100644 --- a/packages/datadog-api-client-v2/models/CVSS.ts +++ b/packages/datadog-api-client-v2/models/CVSS.ts @@ -5,23 +5,28 @@ */ import { VulnerabilitySeverity } from "./VulnerabilitySeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability severity. - */ +*/ export class CVSS { /** * Vulnerability severity score. - */ + */ "score": number; /** * The vulnerability severity. - */ + */ "severity": VulnerabilitySeverity; /** * Vulnerability CVSS vector. - */ + */ "vector": string; /** @@ -40,34 +45,60 @@ export class CVSS { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - score: { - baseName: "score", - type: "number", - required: true, - format: "double", - }, - severity: { - baseName: "severity", - type: "VulnerabilitySeverity", - required: true, + "score": { + "baseName": "score", + "type": "number", + "required": true, + "format": "double", }, - vector: { - baseName: "vector", - type: "string", - required: true, + "severity": { + "baseName": "severity", + "type": "VulnerabilitySeverity", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vector": { + "baseName": "vector", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CVSS.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CalculatedField.ts b/packages/datadog-api-client-v2/models/CalculatedField.ts index 8b480f827db4..967ce8f4f4b1 100644 --- a/packages/datadog-api-client-v2/models/CalculatedField.ts +++ b/packages/datadog-api-client-v2/models/CalculatedField.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Calculated field. - */ +*/ export class CalculatedField { /** * Expression. - */ + */ "expression": string; /** * Field name. - */ + */ "name": string; /** @@ -35,28 +40,54 @@ export class CalculatedField { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - expression: { - baseName: "expression", - type: "string", - required: true, + "expression": { + "baseName": "expression", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CalculatedField.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.ts b/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.ts index 7ead179b5bbc..2dbae5cbc4d8 100644 --- a/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.ts +++ b/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.ts @@ -6,19 +6,24 @@ import { DataDeletionResponseItem } from "./DataDeletionResponseItem"; import { DataDeletionResponseMeta } from "./DataDeletionResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response from the cancel data deletion request endpoint. - */ +*/ export class CancelDataDeletionResponseBody { /** * The created data deletion request information. - */ + */ "data"?: DataDeletionResponseItem; /** * The metadata of the data deletion response. - */ + */ "meta"?: DataDeletionResponseMeta; /** @@ -37,26 +42,52 @@ export class CancelDataDeletionResponseBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DataDeletionResponseItem", + "data": { + "baseName": "data", + "type": "DataDeletionResponseItem", }, - meta: { - baseName: "meta", - type: "DataDeletionResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "DataDeletionResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CancelDataDeletionResponseBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Case.ts b/packages/datadog-api-client-v2/models/Case.ts index c60c00649d7a..1f7025bdcae0 100644 --- a/packages/datadog-api-client-v2/models/Case.ts +++ b/packages/datadog-api-client-v2/models/Case.ts @@ -7,27 +7,32 @@ import { CaseAttributes } from "./CaseAttributes"; import { CaseRelationships } from "./CaseRelationships"; import { CaseResourceType } from "./CaseResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A case - */ +*/ export class Case { /** * Case attributes - */ + */ "attributes": CaseAttributes; /** * Case's identifier - */ + */ "id": string; /** * Resources related to a case - */ + */ "relationships"?: CaseRelationships; /** * Case resource type - */ + */ "type": CaseResourceType; /** @@ -46,37 +51,63 @@ export class Case { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CaseAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CaseAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "CaseRelationships", + "relationships": { + "baseName": "relationships", + "type": "CaseRelationships", }, - type: { - baseName: "type", - type: "CaseResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Case.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Case3rdPartyTicketStatus.ts b/packages/datadog-api-client-v2/models/Case3rdPartyTicketStatus.ts index f7a9d374bf94..97a8ebe93e0f 100644 --- a/packages/datadog-api-client-v2/models/Case3rdPartyTicketStatus.ts +++ b/packages/datadog-api-client-v2/models/Case3rdPartyTicketStatus.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Case status - */ +*/ -export type Case3rdPartyTicketStatus = - | typeof IN_PROGRESS - | typeof COMPLETED - | typeof FAILED - | UnparsedObject; -export const IN_PROGRESS = "IN_PROGRESS"; -export const COMPLETED = "COMPLETED"; -export const FAILED = "FAILED"; +export type Case3rdPartyTicketStatus = typeof IN_PROGRESS| typeof COMPLETED| typeof FAILED | UnparsedObject; +export const IN_PROGRESS = 'IN_PROGRESS'; +export const COMPLETED = 'COMPLETED'; +export const FAILED = 'FAILED'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CaseAssign.ts b/packages/datadog-api-client-v2/models/CaseAssign.ts index 1dfd9b3f5cfd..099229db559d 100644 --- a/packages/datadog-api-client-v2/models/CaseAssign.ts +++ b/packages/datadog-api-client-v2/models/CaseAssign.ts @@ -6,19 +6,24 @@ import { CaseAssignAttributes } from "./CaseAssignAttributes"; import { CaseResourceType } from "./CaseResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case assign - */ +*/ export class CaseAssign { /** * Case assign attributes - */ + */ "attributes": CaseAssignAttributes; /** * Case resource type - */ + */ "type": CaseResourceType; /** @@ -37,28 +42,54 @@ export class CaseAssign { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CaseAssignAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CaseAssignAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CaseResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseAssign.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseAssignAttributes.ts b/packages/datadog-api-client-v2/models/CaseAssignAttributes.ts index c9e15323136b..0a479a2f230c 100644 --- a/packages/datadog-api-client-v2/models/CaseAssignAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseAssignAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case assign attributes - */ +*/ export class CaseAssignAttributes { /** * Assignee's UUID - */ + */ "assigneeId": string; /** @@ -31,23 +36,49 @@ export class CaseAssignAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assigneeId: { - baseName: "assignee_id", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "assigneeId": { + "baseName": "assignee_id", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseAssignAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseAssignRequest.ts b/packages/datadog-api-client-v2/models/CaseAssignRequest.ts index 6a8e5b6d9a40..ff4ba6ed5d85 100644 --- a/packages/datadog-api-client-v2/models/CaseAssignRequest.ts +++ b/packages/datadog-api-client-v2/models/CaseAssignRequest.ts @@ -5,15 +5,20 @@ */ import { CaseAssign } from "./CaseAssign"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case assign request - */ +*/ export class CaseAssignRequest { /** * Case assign - */ + */ "data": CaseAssign; /** @@ -32,23 +37,49 @@ export class CaseAssignRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CaseAssign", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CaseAssign", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseAssignRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseAttributes.ts b/packages/datadog-api-client-v2/models/CaseAttributes.ts index 913f4d094ea6..67d4454f5d0b 100644 --- a/packages/datadog-api-client-v2/models/CaseAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseAttributes.ts @@ -9,59 +9,64 @@ import { CaseType } from "./CaseType"; import { JiraIssue } from "./JiraIssue"; import { ServiceNowTicket } from "./ServiceNowTicket"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case attributes - */ +*/ export class CaseAttributes { /** * Timestamp of when the case was archived - */ + */ "archivedAt"?: Date; /** * Timestamp of when the case was closed - */ + */ "closedAt"?: Date; /** * Timestamp of when the case was created - */ + */ "createdAt"?: Date; /** * Description - */ + */ "description"?: string; /** * Jira issue attached to case - */ + */ "jiraIssue"?: JiraIssue; /** * Key - */ + */ "key"?: string; /** * Timestamp of when the case was last modified - */ + */ "modifiedAt"?: Date; /** * Case priority - */ + */ "priority"?: CasePriority; /** * ServiceNow ticket attached to case - */ + */ "serviceNowTicket"?: ServiceNowTicket; /** * Case status - */ + */ "status"?: CaseStatus; /** * Title - */ + */ "title"?: string; /** * Case type - */ + */ "type"?: CaseType; /** @@ -80,70 +85,96 @@ export class CaseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - archivedAt: { - baseName: "archived_at", - type: "Date", - format: "date-time", + "archivedAt": { + "baseName": "archived_at", + "type": "Date", + "format": "date-time", }, - closedAt: { - baseName: "closed_at", - type: "Date", - format: "date-time", + "closedAt": { + "baseName": "closed_at", + "type": "Date", + "format": "date-time", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - jiraIssue: { - baseName: "jira_issue", - type: "JiraIssue", + "jiraIssue": { + "baseName": "jira_issue", + "type": "JiraIssue", }, - key: { - baseName: "key", - type: "string", + "key": { + "baseName": "key", + "type": "string", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - priority: { - baseName: "priority", - type: "CasePriority", + "priority": { + "baseName": "priority", + "type": "CasePriority", }, - serviceNowTicket: { - baseName: "service_now_ticket", - type: "ServiceNowTicket", + "serviceNowTicket": { + "baseName": "service_now_ticket", + "type": "ServiceNowTicket", }, - status: { - baseName: "status", - type: "CaseStatus", + "status": { + "baseName": "status", + "type": "CaseStatus", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - type: { - baseName: "type", - type: "CaseType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseCreate.ts b/packages/datadog-api-client-v2/models/CaseCreate.ts index 7dfcdc532956..02a4f387826d 100644 --- a/packages/datadog-api-client-v2/models/CaseCreate.ts +++ b/packages/datadog-api-client-v2/models/CaseCreate.ts @@ -7,23 +7,28 @@ import { CaseCreateAttributes } from "./CaseCreateAttributes"; import { CaseCreateRelationships } from "./CaseCreateRelationships"; import { CaseResourceType } from "./CaseResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case creation data - */ +*/ export class CaseCreate { /** * Case creation attributes - */ + */ "attributes": CaseCreateAttributes; /** * Relationships formed with the case on creation - */ + */ "relationships"?: CaseCreateRelationships; /** * Case resource type - */ + */ "type": CaseResourceType; /** @@ -42,32 +47,58 @@ export class CaseCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CaseCreateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "CaseCreateRelationships", + "attributes": { + "baseName": "attributes", + "type": "CaseCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CaseResourceType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "CaseCreateRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts b/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts index e692dfa27019..89edfb3d9f5b 100644 --- a/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts @@ -6,27 +6,32 @@ import { CasePriority } from "./CasePriority"; import { CaseType } from "./CaseType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case creation attributes - */ +*/ export class CaseCreateAttributes { /** * Description - */ + */ "description"?: string; /** * Case priority - */ + */ "priority"?: CasePriority; /** * Title - */ + */ "title": string; /** * Case type - */ + */ "type": CaseType; /** @@ -45,36 +50,62 @@ export class CaseCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - priority: { - baseName: "priority", - type: "CasePriority", + "priority": { + "baseName": "priority", + "type": "CasePriority", }, - title: { - baseName: "title", - type: "string", - required: true, + "title": { + "baseName": "title", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "CaseType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseCreateRelationships.ts b/packages/datadog-api-client-v2/models/CaseCreateRelationships.ts index 7ee8211bed9f..5161f2e8dbae 100644 --- a/packages/datadog-api-client-v2/models/CaseCreateRelationships.ts +++ b/packages/datadog-api-client-v2/models/CaseCreateRelationships.ts @@ -6,19 +6,24 @@ import { NullableUserRelationship } from "./NullableUserRelationship"; import { ProjectRelationship } from "./ProjectRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships formed with the case on creation - */ +*/ export class CaseCreateRelationships { /** * Relationship to user. - */ + */ "assignee"?: NullableUserRelationship; /** * Relationship to project - */ + */ "project": ProjectRelationship; /** @@ -37,27 +42,53 @@ export class CaseCreateRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assignee: { - baseName: "assignee", - type: "NullableUserRelationship", + "assignee": { + "baseName": "assignee", + "type": "NullableUserRelationship", }, - project: { - baseName: "project", - type: "ProjectRelationship", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "project": { + "baseName": "project", + "type": "ProjectRelationship", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseCreateRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseCreateRequest.ts b/packages/datadog-api-client-v2/models/CaseCreateRequest.ts index 401b3feb78cb..23cf6fa04a1f 100644 --- a/packages/datadog-api-client-v2/models/CaseCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/CaseCreateRequest.ts @@ -5,15 +5,20 @@ */ import { CaseCreate } from "./CaseCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case create request - */ +*/ export class CaseCreateRequest { /** * Case creation data - */ + */ "data": CaseCreate; /** @@ -32,23 +37,49 @@ export class CaseCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CaseCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CaseCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseEmpty.ts b/packages/datadog-api-client-v2/models/CaseEmpty.ts index 38bb77dfe793..597728d92283 100644 --- a/packages/datadog-api-client-v2/models/CaseEmpty.ts +++ b/packages/datadog-api-client-v2/models/CaseEmpty.ts @@ -5,15 +5,20 @@ */ import { CaseResourceType } from "./CaseResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case empty request data - */ +*/ export class CaseEmpty { /** * Case resource type - */ + */ "type": CaseResourceType; /** @@ -32,23 +37,49 @@ export class CaseEmpty { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "CaseResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseEmpty.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseEmptyRequest.ts b/packages/datadog-api-client-v2/models/CaseEmptyRequest.ts index 299f209a4f80..2dea13483492 100644 --- a/packages/datadog-api-client-v2/models/CaseEmptyRequest.ts +++ b/packages/datadog-api-client-v2/models/CaseEmptyRequest.ts @@ -5,15 +5,20 @@ */ import { CaseEmpty } from "./CaseEmpty"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case empty request - */ +*/ export class CaseEmptyRequest { /** * Case empty request data - */ + */ "data": CaseEmpty; /** @@ -32,23 +37,49 @@ export class CaseEmptyRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CaseEmpty", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CaseEmpty", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseEmptyRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CasePriority.ts b/packages/datadog-api-client-v2/models/CasePriority.ts index 1ef61f834cc7..364c580a52e1 100644 --- a/packages/datadog-api-client-v2/models/CasePriority.ts +++ b/packages/datadog-api-client-v2/models/CasePriority.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Case priority - */ +*/ -export type CasePriority = - | typeof NOT_DEFINED - | typeof P1 - | typeof P2 - | typeof P3 - | typeof P4 - | typeof P5 - | UnparsedObject; -export const NOT_DEFINED = "NOT_DEFINED"; -export const P1 = "P1"; -export const P2 = "P2"; -export const P3 = "P3"; -export const P4 = "P4"; -export const P5 = "P5"; +export type CasePriority = typeof NOT_DEFINED| typeof P1| typeof P2| typeof P3| typeof P4| typeof P5 | UnparsedObject; +export const NOT_DEFINED = 'NOT_DEFINED'; +export const P1 = 'P1'; +export const P2 = 'P2'; +export const P3 = 'P3'; +export const P4 = 'P4'; +export const P5 = 'P5'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CaseRelationships.ts b/packages/datadog-api-client-v2/models/CaseRelationships.ts index 881120a6507d..6d191f72db69 100644 --- a/packages/datadog-api-client-v2/models/CaseRelationships.ts +++ b/packages/datadog-api-client-v2/models/CaseRelationships.ts @@ -6,27 +6,32 @@ import { NullableUserRelationship } from "./NullableUserRelationship"; import { ProjectRelationship } from "./ProjectRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Resources related to a case - */ +*/ export class CaseRelationships { /** * Relationship to user. - */ + */ "assignee"?: NullableUserRelationship; /** * Relationship to user. - */ + */ "createdBy"?: NullableUserRelationship; /** * Relationship to user. - */ + */ "modifiedBy"?: NullableUserRelationship; /** * Relationship to project - */ + */ "project"?: ProjectRelationship; /** @@ -45,34 +50,60 @@ export class CaseRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assignee: { - baseName: "assignee", - type: "NullableUserRelationship", + "assignee": { + "baseName": "assignee", + "type": "NullableUserRelationship", }, - createdBy: { - baseName: "created_by", - type: "NullableUserRelationship", + "createdBy": { + "baseName": "created_by", + "type": "NullableUserRelationship", }, - modifiedBy: { - baseName: "modified_by", - type: "NullableUserRelationship", + "modifiedBy": { + "baseName": "modified_by", + "type": "NullableUserRelationship", }, - project: { - baseName: "project", - type: "ProjectRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "project": { + "baseName": "project", + "type": "ProjectRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseResourceType.ts b/packages/datadog-api-client-v2/models/CaseResourceType.ts index 74a432108cd1..8d0929ef1ecd 100644 --- a/packages/datadog-api-client-v2/models/CaseResourceType.ts +++ b/packages/datadog-api-client-v2/models/CaseResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Case resource type - */ +*/ export type CaseResourceType = typeof CASE | UnparsedObject; -export const CASE = "case"; +export const CASE = 'case'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CaseResponse.ts b/packages/datadog-api-client-v2/models/CaseResponse.ts index 35361ccfbb31..6aaf6a1e5a68 100644 --- a/packages/datadog-api-client-v2/models/CaseResponse.ts +++ b/packages/datadog-api-client-v2/models/CaseResponse.ts @@ -5,15 +5,20 @@ */ import { Case } from "./Case"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case response - */ +*/ export class CaseResponse { /** * A case - */ + */ "data"?: Case; /** @@ -32,22 +37,48 @@ export class CaseResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Case", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Case", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseSortableField.ts b/packages/datadog-api-client-v2/models/CaseSortableField.ts index 6939f4e41c0e..f6ef35cf056a 100644 --- a/packages/datadog-api-client-v2/models/CaseSortableField.ts +++ b/packages/datadog-api-client-v2/models/CaseSortableField.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Case field that can be sorted on - */ +*/ -export type CaseSortableField = - | typeof CREATED_AT - | typeof PRIORITY - | typeof STATUS - | UnparsedObject; -export const CREATED_AT = "created_at"; -export const PRIORITY = "priority"; -export const STATUS = "status"; +export type CaseSortableField = typeof CREATED_AT| typeof PRIORITY| typeof STATUS | UnparsedObject; +export const CREATED_AT = 'created_at'; +export const PRIORITY = 'priority'; +export const STATUS = 'status'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CaseStatus.ts b/packages/datadog-api-client-v2/models/CaseStatus.ts index 0631226cf429..5a8e7a7a7323 100644 --- a/packages/datadog-api-client-v2/models/CaseStatus.ts +++ b/packages/datadog-api-client-v2/models/CaseStatus.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Case status - */ +*/ -export type CaseStatus = - | typeof OPEN - | typeof IN_PROGRESS - | typeof CLOSED - | UnparsedObject; -export const OPEN = "OPEN"; -export const IN_PROGRESS = "IN_PROGRESS"; -export const CLOSED = "CLOSED"; +export type CaseStatus = typeof OPEN| typeof IN_PROGRESS| typeof CLOSED | UnparsedObject; +export const OPEN = 'OPEN'; +export const IN_PROGRESS = 'IN_PROGRESS'; +export const CLOSED = 'CLOSED'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CaseTrigger.ts b/packages/datadog-api-client-v2/models/CaseTrigger.ts index 817bf4958916..3ac8314a1d7f 100644 --- a/packages/datadog-api-client-v2/models/CaseTrigger.ts +++ b/packages/datadog-api-client-v2/models/CaseTrigger.ts @@ -5,15 +5,20 @@ */ import { TriggerRateLimit } from "./TriggerRateLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from a Case. For automatic triggering a handle must be configured and the workflow must be published. - */ +*/ export class CaseTrigger { /** * Defines a rate limit for a trigger. - */ + */ "rateLimit"?: TriggerRateLimit; /** @@ -32,22 +37,48 @@ export class CaseTrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rateLimit: { - baseName: "rateLimit", - type: "TriggerRateLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rateLimit": { + "baseName": "rateLimit", + "type": "TriggerRateLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseTrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseTriggerWrapper.ts b/packages/datadog-api-client-v2/models/CaseTriggerWrapper.ts index 448bc6059cc6..ce133a53324d 100644 --- a/packages/datadog-api-client-v2/models/CaseTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/CaseTriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { CaseTrigger } from "./CaseTrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Case-based trigger. - */ +*/ export class CaseTriggerWrapper { /** * Trigger a workflow from a Case. For automatic triggering a handle must be configured and the workflow must be published. - */ + */ "caseTrigger": CaseTrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class CaseTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - caseTrigger: { - baseName: "caseTrigger", - type: "CaseTrigger", - required: true, + "caseTrigger": { + "baseName": "caseTrigger", + "type": "CaseTrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseType.ts b/packages/datadog-api-client-v2/models/CaseType.ts index fd1f876d140c..7f6b89b1d14c 100644 --- a/packages/datadog-api-client-v2/models/CaseType.ts +++ b/packages/datadog-api-client-v2/models/CaseType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Case type - */ +*/ export type CaseType = typeof STANDARD | UnparsedObject; -export const STANDARD = "STANDARD"; +export const STANDARD = 'STANDARD'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CaseUpdatePriority.ts b/packages/datadog-api-client-v2/models/CaseUpdatePriority.ts index 44383eeb7519..0b4be7f15766 100644 --- a/packages/datadog-api-client-v2/models/CaseUpdatePriority.ts +++ b/packages/datadog-api-client-v2/models/CaseUpdatePriority.ts @@ -6,19 +6,24 @@ import { CaseResourceType } from "./CaseResourceType"; import { CaseUpdatePriorityAttributes } from "./CaseUpdatePriorityAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case priority status - */ +*/ export class CaseUpdatePriority { /** * Case update priority attributes - */ + */ "attributes": CaseUpdatePriorityAttributes; /** * Case resource type - */ + */ "type": CaseResourceType; /** @@ -37,28 +42,54 @@ export class CaseUpdatePriority { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CaseUpdatePriorityAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CaseUpdatePriorityAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CaseResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseUpdatePriority.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseUpdatePriorityAttributes.ts b/packages/datadog-api-client-v2/models/CaseUpdatePriorityAttributes.ts index 936f5a9c8713..8316d3c5b8eb 100644 --- a/packages/datadog-api-client-v2/models/CaseUpdatePriorityAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseUpdatePriorityAttributes.ts @@ -5,15 +5,20 @@ */ import { CasePriority } from "./CasePriority"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case update priority attributes - */ +*/ export class CaseUpdatePriorityAttributes { /** * Case priority - */ + */ "priority": CasePriority; /** @@ -32,23 +37,49 @@ export class CaseUpdatePriorityAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - priority: { - baseName: "priority", - type: "CasePriority", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "priority": { + "baseName": "priority", + "type": "CasePriority", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseUpdatePriorityAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseUpdatePriorityRequest.ts b/packages/datadog-api-client-v2/models/CaseUpdatePriorityRequest.ts index fb03ee0db56d..07a1cca3938e 100644 --- a/packages/datadog-api-client-v2/models/CaseUpdatePriorityRequest.ts +++ b/packages/datadog-api-client-v2/models/CaseUpdatePriorityRequest.ts @@ -5,15 +5,20 @@ */ import { CaseUpdatePriority } from "./CaseUpdatePriority"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case update priority request - */ +*/ export class CaseUpdatePriorityRequest { /** * Case priority status - */ + */ "data": CaseUpdatePriority; /** @@ -32,23 +37,49 @@ export class CaseUpdatePriorityRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CaseUpdatePriority", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CaseUpdatePriority", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseUpdatePriorityRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseUpdateStatus.ts b/packages/datadog-api-client-v2/models/CaseUpdateStatus.ts index d3a660a300eb..9e16c6cc9e66 100644 --- a/packages/datadog-api-client-v2/models/CaseUpdateStatus.ts +++ b/packages/datadog-api-client-v2/models/CaseUpdateStatus.ts @@ -6,19 +6,24 @@ import { CaseResourceType } from "./CaseResourceType"; import { CaseUpdateStatusAttributes } from "./CaseUpdateStatusAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case update status - */ +*/ export class CaseUpdateStatus { /** * Case update status attributes - */ + */ "attributes": CaseUpdateStatusAttributes; /** * Case resource type - */ + */ "type": CaseResourceType; /** @@ -37,28 +42,54 @@ export class CaseUpdateStatus { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CaseUpdateStatusAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CaseUpdateStatusAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CaseResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CaseResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseUpdateStatus.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseUpdateStatusAttributes.ts b/packages/datadog-api-client-v2/models/CaseUpdateStatusAttributes.ts index 83e1b423f19b..fd734402ab8c 100644 --- a/packages/datadog-api-client-v2/models/CaseUpdateStatusAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseUpdateStatusAttributes.ts @@ -5,15 +5,20 @@ */ import { CaseStatus } from "./CaseStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case update status attributes - */ +*/ export class CaseUpdateStatusAttributes { /** * Case status - */ + */ "status": CaseStatus; /** @@ -32,23 +37,49 @@ export class CaseUpdateStatusAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - status: { - baseName: "status", - type: "CaseStatus", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "CaseStatus", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseUpdateStatusAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CaseUpdateStatusRequest.ts b/packages/datadog-api-client-v2/models/CaseUpdateStatusRequest.ts index 1387050ec78e..26dd3611cd72 100644 --- a/packages/datadog-api-client-v2/models/CaseUpdateStatusRequest.ts +++ b/packages/datadog-api-client-v2/models/CaseUpdateStatusRequest.ts @@ -5,15 +5,20 @@ */ import { CaseUpdateStatus } from "./CaseUpdateStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case update status request - */ +*/ export class CaseUpdateStatusRequest { /** * Case update status - */ + */ "data": CaseUpdateStatus; /** @@ -32,23 +37,49 @@ export class CaseUpdateStatusRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CaseUpdateStatus", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CaseUpdateStatus", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CaseUpdateStatusRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CasesResponse.ts b/packages/datadog-api-client-v2/models/CasesResponse.ts index 67265f041f2a..2b9247d825c5 100644 --- a/packages/datadog-api-client-v2/models/CasesResponse.ts +++ b/packages/datadog-api-client-v2/models/CasesResponse.ts @@ -6,19 +6,24 @@ import { Case } from "./Case"; import { CasesResponseMeta } from "./CasesResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with cases - */ +*/ export class CasesResponse { /** * Cases response data - */ + */ "data"?: Array; /** * Cases response metadata - */ + */ "meta"?: CasesResponseMeta; /** @@ -37,26 +42,52 @@ export class CasesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "CasesResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CasesResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CasesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CasesResponseMeta.ts b/packages/datadog-api-client-v2/models/CasesResponseMeta.ts index 2c99626ffd6b..c52367134e25 100644 --- a/packages/datadog-api-client-v2/models/CasesResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/CasesResponseMeta.ts @@ -5,15 +5,20 @@ */ import { CasesResponseMetaPagination } from "./CasesResponseMetaPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cases response metadata - */ +*/ export class CasesResponseMeta { /** * Pagination metadata - */ + */ "page"?: CasesResponseMetaPagination; /** @@ -32,22 +37,48 @@ export class CasesResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "CasesResponseMetaPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "CasesResponseMetaPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CasesResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CasesResponseMetaPagination.ts b/packages/datadog-api-client-v2/models/CasesResponseMetaPagination.ts index 8f811ce1f8d6..1c12dbd12499 100644 --- a/packages/datadog-api-client-v2/models/CasesResponseMetaPagination.ts +++ b/packages/datadog-api-client-v2/models/CasesResponseMetaPagination.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata - */ +*/ export class CasesResponseMetaPagination { /** * Current page number - */ + */ "current"?: number; /** * Number of cases in current page - */ + */ "size"?: number; /** * Total number of pages - */ + */ "total"?: number; /** @@ -39,33 +44,59 @@ export class CasesResponseMetaPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - current: { - baseName: "current", - type: "number", - format: "int64", - }, - size: { - baseName: "size", - type: "number", - format: "int64", + "current": { + "baseName": "current", + "type": "number", + "format": "int64", }, - total: { - baseName: "total", - type: "number", - format: "int64", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CasesResponseMetaPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.ts index f418a22ef4b5..36bfb967488f 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.ts @@ -7,37 +7,42 @@ import { ChangeEventCustomAttributesAuthor } from "./ChangeEventCustomAttributes import { ChangeEventCustomAttributesChangedResource } from "./ChangeEventCustomAttributesChangedResource"; import { ChangeEventCustomAttributesImpactedResourcesItems } from "./ChangeEventCustomAttributesImpactedResourcesItems"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing custom change event attributes. - */ +*/ export class ChangeEventCustomAttributes { /** * Object representing the entity which made the change. Optional field but if provided should include `type` and `name`. - */ + */ "author"?: ChangeEventCustomAttributesAuthor; /** * Free form object with information related to the `change` event. Can be arbitrarily nested and contain any valid JSON. - */ - "changeMetadata"?: { [key: string]: any }; + */ + "changeMetadata"?: { [key: string]: any; }; /** * Object representing a uniquely identified resource. - */ + */ "changedResource": ChangeEventCustomAttributesChangedResource; /** * A list of resources impacted by this change. It is recommended to provide an impacted resource to display * the change event at the right location. Only resources of type `service` are supported. - */ + */ "impactedResources"?: Array; /** * Free form object to track new value of the changed resource. - */ - "newValue"?: { [key: string]: any }; + */ + "newValue"?: { [key: string]: any; }; /** * Free form object to track previous value of the changed resource. - */ - "prevValue"?: { [key: string]: any }; + */ + "prevValue"?: { [key: string]: any; }; /** * A container for additional, undeclared properties. @@ -55,43 +60,69 @@ export class ChangeEventCustomAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "ChangeEventCustomAttributesAuthor", - }, - changeMetadata: { - baseName: "change_metadata", - type: "{ [key: string]: any; }", + "author": { + "baseName": "author", + "type": "ChangeEventCustomAttributesAuthor", }, - changedResource: { - baseName: "changed_resource", - type: "ChangeEventCustomAttributesChangedResource", - required: true, + "changeMetadata": { + "baseName": "change_metadata", + "type": "{ [key: string]: any; }", }, - impactedResources: { - baseName: "impacted_resources", - type: "Array", + "changedResource": { + "baseName": "changed_resource", + "type": "ChangeEventCustomAttributesChangedResource", + "required": true, }, - newValue: { - baseName: "new_value", - type: "{ [key: string]: any; }", + "impactedResources": { + "baseName": "impacted_resources", + "type": "Array", }, - prevValue: { - baseName: "prev_value", - type: "{ [key: string]: any; }", + "newValue": { + "baseName": "new_value", + "type": "{ [key: string]: any; }", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prevValue": { + "baseName": "prev_value", + "type": "{ [key: string]: any; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeEventCustomAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.ts index 41b38ab3853d..dfa69f9c748c 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.ts @@ -5,19 +5,24 @@ */ import { ChangeEventCustomAttributesAuthorType } from "./ChangeEventCustomAttributesAuthorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing the entity which made the change. Optional field but if provided should include `type` and `name`. - */ +*/ export class ChangeEventCustomAttributesAuthor { /** * Author's name. Limited to 128 characters. - */ + */ "name": string; /** * Author's type. - */ + */ "type": ChangeEventCustomAttributesAuthorType; /** @@ -36,28 +41,54 @@ export class ChangeEventCustomAttributesAuthor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ChangeEventCustomAttributesAuthorType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ChangeEventCustomAttributesAuthorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeEventCustomAttributesAuthor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.ts index 8dbaa164423d..c3d4cecc657a 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Author's type. - */ +*/ -export type ChangeEventCustomAttributesAuthorType = - | typeof USER - | typeof SYSTEM - | UnparsedObject; -export const USER = "user"; -export const SYSTEM = "system"; +export type ChangeEventCustomAttributesAuthorType = typeof USER| typeof SYSTEM | UnparsedObject; +export const USER = 'user'; +export const SYSTEM = 'system'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.ts index ee698837a8fd..e25095ba2ace 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.ts @@ -5,19 +5,24 @@ */ import { ChangeEventCustomAttributesChangedResourceType } from "./ChangeEventCustomAttributesChangedResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing a uniquely identified resource. - */ +*/ export class ChangeEventCustomAttributesChangedResource { /** * Resource's name. - */ + */ "name": string; /** * Resource's type. - */ + */ "type": ChangeEventCustomAttributesChangedResourceType; /** @@ -36,28 +41,54 @@ export class ChangeEventCustomAttributesChangedResource { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ChangeEventCustomAttributesChangedResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ChangeEventCustomAttributesChangedResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeEventCustomAttributesChangedResource.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.ts index 79ca0b383ada..e5516d72eb0f 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Resource's type. - */ +*/ -export type ChangeEventCustomAttributesChangedResourceType = - | typeof FEATURE_FLAG - | typeof CONFIGURATION - | UnparsedObject; -export const FEATURE_FLAG = "feature_flag"; -export const CONFIGURATION = "configuration"; +export type ChangeEventCustomAttributesChangedResourceType = typeof FEATURE_FLAG| typeof CONFIGURATION | UnparsedObject; +export const FEATURE_FLAG = 'feature_flag'; +export const CONFIGURATION = 'configuration'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.ts index 1677006e8d93..dbfe52654396 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.ts @@ -5,19 +5,24 @@ */ import { ChangeEventCustomAttributesImpactedResourcesItemsType } from "./ChangeEventCustomAttributesImpactedResourcesItemsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing a uniquely identified resource. Only the resource type `service` is supported. - */ +*/ export class ChangeEventCustomAttributesImpactedResourcesItems { /** * Resource's name. - */ + */ "name": string; /** * Resource's type. - */ + */ "type": ChangeEventCustomAttributesImpactedResourcesItemsType; /** @@ -36,28 +41,54 @@ export class ChangeEventCustomAttributesImpactedResourcesItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ChangeEventCustomAttributesImpactedResourcesItemsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ChangeEventCustomAttributesImpactedResourcesItemsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeEventCustomAttributesImpactedResourcesItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.ts b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.ts index 8c944085516a..b13f0a0ff2b5 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Resource's type. - */ +*/ -export type ChangeEventCustomAttributesImpactedResourcesItemsType = - | typeof SERVICE - | UnparsedObject; -export const SERVICE = "service"; +export type ChangeEventCustomAttributesImpactedResourcesItemsType = typeof SERVICE | UnparsedObject; +export const SERVICE = 'service'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ChangeEventTriggerWrapper.ts b/packages/datadog-api-client-v2/models/ChangeEventTriggerWrapper.ts index b54f4c0df2a9..f14b04c0e1bd 100644 --- a/packages/datadog-api-client-v2/models/ChangeEventTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/ChangeEventTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Change Event-based trigger. - */ +*/ export class ChangeEventTriggerWrapper { /** * Trigger a workflow from a Change Event. - */ + */ "changeEventTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class ChangeEventTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - changeEventTrigger: { - baseName: "changeEventTrigger", - type: "any", - required: true, + "changeEventTrigger": { + "baseName": "changeEventTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChangeEventTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ChargebackBreakdown.ts b/packages/datadog-api-client-v2/models/ChargebackBreakdown.ts index b7d5e5576d4d..801f25addd5f 100644 --- a/packages/datadog-api-client-v2/models/ChargebackBreakdown.ts +++ b/packages/datadog-api-client-v2/models/ChargebackBreakdown.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Charges breakdown. - */ +*/ export class ChargebackBreakdown { /** * The type of charge for a particular product. - */ + */ "chargeType"?: string; /** * The cost for a particular product and charge type during a given month. - */ + */ "cost"?: number; /** * The product for which cost is being reported. - */ + */ "productName"?: string; /** @@ -39,31 +44,57 @@ export class ChargebackBreakdown { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - chargeType: { - baseName: "charge_type", - type: "string", - }, - cost: { - baseName: "cost", - type: "number", - format: "double", + "chargeType": { + "baseName": "charge_type", + "type": "string", }, - productName: { - baseName: "product_name", - type: "string", + "cost": { + "baseName": "cost", + "type": "number", + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "productName": { + "baseName": "product_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ChargebackBreakdown.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationComplianceRuleOptions.ts b/packages/datadog-api-client-v2/models/CloudConfigurationComplianceRuleOptions.ts index 046a364ff82f..77cbe05817b5 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationComplianceRuleOptions.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationComplianceRuleOptions.ts @@ -5,25 +5,30 @@ */ import { CloudConfigurationRegoRule } from "./CloudConfigurationRegoRule"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for cloud_configuration rules. * Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules. - */ +*/ export class CloudConfigurationComplianceRuleOptions { /** * Whether the rule is a complex one. * Must be set to true if `regoRule.resourceTypes` contains more than one item. Defaults to false. - */ + */ "complexRule"?: boolean; /** * Rule details. - */ + */ "regoRule"?: CloudConfigurationRegoRule; /** * Main resource type to be checked by the rule. It should be specified again in `regoRule.resourceTypes`. - */ + */ "resourceType"?: string; /** @@ -42,30 +47,56 @@ export class CloudConfigurationComplianceRuleOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - complexRule: { - baseName: "complexRule", - type: "boolean", - }, - regoRule: { - baseName: "regoRule", - type: "CloudConfigurationRegoRule", + "complexRule": { + "baseName": "complexRule", + "type": "boolean", }, - resourceType: { - baseName: "resourceType", - type: "string", + "regoRule": { + "baseName": "regoRule", + "type": "CloudConfigurationRegoRule", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "resourceType": { + "baseName": "resourceType", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationComplianceRuleOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRegoRule.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRegoRule.ts index c74cb445ab80..3f003528903b 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRegoRule.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRegoRule.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rule details. - */ +*/ export class CloudConfigurationRegoRule { /** * The policy written in `rego`, see: https://www.openpolicyagent.org/docs/latest/policy-language/ - */ + */ "policy": string; /** * List of resource types that will be evaluated upon. Must have at least one element. - */ + */ "resourceTypes": Array; /** @@ -35,28 +40,54 @@ export class CloudConfigurationRegoRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - policy: { - baseName: "policy", - type: "string", - required: true, + "policy": { + "baseName": "policy", + "type": "string", + "required": true, }, - resourceTypes: { - baseName: "resourceTypes", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "resourceTypes": { + "baseName": "resourceTypes", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationRegoRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRuleCaseCreate.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRuleCaseCreate.ts index 8919f7f1559c..5cd3bc5d6746 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRuleCaseCreate.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRuleCaseCreate.ts @@ -5,19 +5,24 @@ */ import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Description of signals. - */ +*/ export class CloudConfigurationRuleCaseCreate { /** * Notification targets for each rule case. - */ + */ "notifications"?: Array; /** * Severity of the Security Signal. - */ + */ "status": SecurityMonitoringRuleSeverity; /** @@ -36,27 +41,53 @@ export class CloudConfigurationRuleCaseCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - notifications: { - baseName: "notifications", - type: "Array", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - status: { - baseName: "status", - type: "SecurityMonitoringRuleSeverity", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SecurityMonitoringRuleSeverity", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationRuleCaseCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRuleComplianceSignalOptions.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRuleComplianceSignalOptions.ts index 422a9e2fd97a..76b24227eb5d 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRuleComplianceSignalOptions.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRuleComplianceSignalOptions.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * How to generate compliance signals. Useful for cloud_configuration rules only. - */ +*/ export class CloudConfigurationRuleComplianceSignalOptions { /** * The default activation status. - */ + */ "defaultActivationStatus"?: boolean; /** * The default group by fields. - */ + */ "defaultGroupByFields"?: Array; /** * Whether signals will be sent. - */ + */ "userActivationStatus"?: boolean; /** * Fields to use to group findings by when sending signals. - */ + */ "userGroupByFields"?: Array; /** @@ -43,34 +48,60 @@ export class CloudConfigurationRuleComplianceSignalOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultActivationStatus: { - baseName: "defaultActivationStatus", - type: "boolean", + "defaultActivationStatus": { + "baseName": "defaultActivationStatus", + "type": "boolean", }, - defaultGroupByFields: { - baseName: "defaultGroupByFields", - type: "Array", + "defaultGroupByFields": { + "baseName": "defaultGroupByFields", + "type": "Array", }, - userActivationStatus: { - baseName: "userActivationStatus", - type: "boolean", + "userActivationStatus": { + "baseName": "userActivationStatus", + "type": "boolean", }, - userGroupByFields: { - baseName: "userGroupByFields", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userGroupByFields": { + "baseName": "userGroupByFields", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationRuleComplianceSignalOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRuleCreatePayload.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRuleCreatePayload.ts index 21a9f50b490d..ec0c6aa71594 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRuleCreatePayload.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRuleCreatePayload.ts @@ -9,47 +9,52 @@ import { CloudConfigurationRuleOptions } from "./CloudConfigurationRuleOptions"; import { CloudConfigurationRuleType } from "./CloudConfigurationRuleType"; import { SecurityMonitoringFilter } from "./SecurityMonitoringFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a new cloud configuration rule. - */ +*/ export class CloudConfigurationRuleCreatePayload { /** * Description of generated findings and signals (severity and channels to be notified in case of a signal). Must contain exactly one item. - */ + */ "cases": Array; /** * How to generate compliance signals. Useful for cloud_configuration rules only. - */ + */ "complianceSignalOptions": CloudConfigurationRuleComplianceSignalOptions; /** * Additional queries to filter matched events before they are processed. - */ + */ "filters"?: Array; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message in markdown format for generated findings and signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options on cloud configuration rules. - */ + */ "options": CloudConfigurationRuleOptions; /** * Tags for generated findings and signals. - */ + */ "tags"?: Array; /** * The rule type. - */ + */ "type"?: CloudConfigurationRuleType; /** @@ -68,60 +73,86 @@ export class CloudConfigurationRuleCreatePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - complianceSignalOptions: { - baseName: "complianceSignalOptions", - type: "CloudConfigurationRuleComplianceSignalOptions", - required: true, + "complianceSignalOptions": { + "baseName": "complianceSignalOptions", + "type": "CloudConfigurationRuleComplianceSignalOptions", + "required": true, }, - filters: { - baseName: "filters", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "CloudConfigurationRuleOptions", - required: true, + "options": { + "baseName": "options", + "type": "CloudConfigurationRuleOptions", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "CloudConfigurationRuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudConfigurationRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationRuleCreatePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRuleOptions.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRuleOptions.ts index 89e23800747d..c297e4c1122a 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRuleOptions.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRuleOptions.ts @@ -5,16 +5,21 @@ */ import { CloudConfigurationComplianceRuleOptions } from "./CloudConfigurationComplianceRuleOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options on cloud configuration rules. - */ +*/ export class CloudConfigurationRuleOptions { /** * Options for cloud_configuration rules. * Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules. - */ + */ "complianceRuleOptions": CloudConfigurationComplianceRuleOptions; /** @@ -33,23 +38,49 @@ export class CloudConfigurationRuleOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - complianceRuleOptions: { - baseName: "complianceRuleOptions", - type: "CloudConfigurationComplianceRuleOptions", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "complianceRuleOptions": { + "baseName": "complianceRuleOptions", + "type": "CloudConfigurationComplianceRuleOptions", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationRuleOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRulePayload.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRulePayload.ts index 663c7a1a5ad8..892be81222b0 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRulePayload.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRulePayload.ts @@ -9,47 +9,52 @@ import { CloudConfigurationRuleOptions } from "./CloudConfigurationRuleOptions"; import { CloudConfigurationRuleType } from "./CloudConfigurationRuleType"; import { SecurityMonitoringFilter } from "./SecurityMonitoringFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The payload of a cloud configuration rule. - */ +*/ export class CloudConfigurationRulePayload { /** * Description of generated findings and signals (severity and channels to be notified in case of a signal). Must contain exactly one item. - */ + */ "cases": Array; /** * How to generate compliance signals. Useful for cloud_configuration rules only. - */ + */ "complianceSignalOptions": CloudConfigurationRuleComplianceSignalOptions; /** * Additional queries to filter matched events before they are processed. - */ + */ "filters"?: Array; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message in markdown format for generated findings and signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options on cloud configuration rules. - */ + */ "options": CloudConfigurationRuleOptions; /** * Tags for generated findings and signals. - */ + */ "tags"?: Array; /** * The rule type. - */ + */ "type"?: CloudConfigurationRuleType; /** @@ -68,60 +73,86 @@ export class CloudConfigurationRulePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - complianceSignalOptions: { - baseName: "complianceSignalOptions", - type: "CloudConfigurationRuleComplianceSignalOptions", - required: true, + "complianceSignalOptions": { + "baseName": "complianceSignalOptions", + "type": "CloudConfigurationRuleComplianceSignalOptions", + "required": true, }, - filters: { - baseName: "filters", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "CloudConfigurationRuleOptions", - required: true, + "options": { + "baseName": "options", + "type": "CloudConfigurationRuleOptions", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "CloudConfigurationRuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudConfigurationRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudConfigurationRulePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudConfigurationRuleType.ts b/packages/datadog-api-client-v2/models/CloudConfigurationRuleType.ts index 20e7f4b79dba..7a774f28dc23 100644 --- a/packages/datadog-api-client-v2/models/CloudConfigurationRuleType.ts +++ b/packages/datadog-api-client-v2/models/CloudConfigurationRuleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The rule type. - */ +*/ -export type CloudConfigurationRuleType = - | typeof CLOUD_CONFIGURATION - | UnparsedObject; -export const CLOUD_CONFIGURATION = "cloud_configuration"; +export type CloudConfigurationRuleType = typeof CLOUD_CONFIGURATION | UnparsedObject; +export const CLOUD_CONFIGURATION = 'cloud_configuration'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAction.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAction.ts index 95ad05deff4d..b7186b0ae3bb 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAction.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAction.ts @@ -5,19 +5,24 @@ */ import { CloudWorkloadSecurityAgentRuleKill } from "./CloudWorkloadSecurityAgentRuleKill"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The action the rule can perform if triggered. - */ +*/ export class CloudWorkloadSecurityAgentRuleAction { /** * SECL expression used to target the container to apply the action on - */ + */ "filter"?: string; /** * Kill system call applied on the container matching the rule - */ + */ "kill"?: CloudWorkloadSecurityAgentRuleKill; /** @@ -36,26 +41,52 @@ export class CloudWorkloadSecurityAgentRuleAction { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "string", + "filter": { + "baseName": "filter", + "type": "string", }, - kill: { - baseName: "kill", - type: "CloudWorkloadSecurityAgentRuleKill", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "kill": { + "baseName": "kill", + "type": "CloudWorkloadSecurityAgentRuleKill", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleAction.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.ts index 2d21a0a29539..2d682245c378 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.ts @@ -7,79 +7,84 @@ import { CloudWorkloadSecurityAgentRuleAction } from "./CloudWorkloadSecurityAge import { CloudWorkloadSecurityAgentRuleCreatorAttributes } from "./CloudWorkloadSecurityAgentRuleCreatorAttributes"; import { CloudWorkloadSecurityAgentRuleUpdaterAttributes } from "./CloudWorkloadSecurityAgentRuleUpdaterAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Cloud Workload Security Agent rule returned by the API. - */ +*/ export class CloudWorkloadSecurityAgentRuleAttributes { /** * The array of actions the rule can perform if triggered. - */ + */ "actions"?: Array; /** * The version of the agent. - */ + */ "agentConstraint"?: string; /** * The category of the Agent rule. - */ + */ "category"?: string; /** * The ID of the user who created the rule. - */ + */ "creationAuthorUuId"?: string; /** * When the Agent rule was created, timestamp in milliseconds. - */ + */ "creationDate"?: number; /** * The attributes of the user who created the Agent rule. - */ + */ "creator"?: CloudWorkloadSecurityAgentRuleCreatorAttributes; /** * Whether the rule is included by default. - */ + */ "defaultRule"?: boolean; /** * The description of the Agent rule. - */ + */ "description"?: string; /** * Whether the Agent rule is enabled. - */ + */ "enabled"?: boolean; /** * The SECL expression of the Agent rule. - */ + */ "expression"?: string; /** * The platforms the Agent rule is supported on. - */ + */ "filters"?: Array; /** * The name of the Agent rule. - */ + */ "name"?: string; /** * The ID of the user who updated the rule. - */ + */ "updateAuthorUuId"?: string; /** * Timestamp in milliseconds when the Agent rule was last updated. - */ + */ "updateDate"?: number; /** * When the Agent rule was last updated, timestamp in milliseconds. - */ + */ "updatedAt"?: number; /** * The attributes of the user who last updated the Agent rule. - */ + */ "updater"?: CloudWorkloadSecurityAgentRuleUpdaterAttributes; /** * The version of the Agent rule. - */ + */ "version"?: number; /** @@ -98,90 +103,116 @@ export class CloudWorkloadSecurityAgentRuleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - actions: { - baseName: "actions", - type: "Array", - }, - agentConstraint: { - baseName: "agentConstraint", - type: "string", - }, - category: { - baseName: "category", - type: "string", - }, - creationAuthorUuId: { - baseName: "creationAuthorUuId", - type: "string", - }, - creationDate: { - baseName: "creationDate", - type: "number", - format: "int64", - }, - creator: { - baseName: "creator", - type: "CloudWorkloadSecurityAgentRuleCreatorAttributes", - }, - defaultRule: { - baseName: "defaultRule", - type: "boolean", - }, - description: { - baseName: "description", - type: "string", - }, - enabled: { - baseName: "enabled", - type: "boolean", - }, - expression: { - baseName: "expression", - type: "string", - }, - filters: { - baseName: "filters", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - }, - updateAuthorUuId: { - baseName: "updateAuthorUuId", - type: "string", - }, - updateDate: { - baseName: "updateDate", - type: "number", - format: "int64", - }, - updatedAt: { - baseName: "updatedAt", - type: "number", - format: "int64", - }, - updater: { - baseName: "updater", - type: "CloudWorkloadSecurityAgentRuleUpdaterAttributes", - }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "actions": { + "baseName": "actions", + "type": "Array", + }, + "agentConstraint": { + "baseName": "agentConstraint", + "type": "string", + }, + "category": { + "baseName": "category", + "type": "string", + }, + "creationAuthorUuId": { + "baseName": "creationAuthorUuId", + "type": "string", + }, + "creationDate": { + "baseName": "creationDate", + "type": "number", + "format": "int64", + }, + "creator": { + "baseName": "creator", + "type": "CloudWorkloadSecurityAgentRuleCreatorAttributes", + }, + "defaultRule": { + "baseName": "defaultRule", + "type": "boolean", + }, + "description": { + "baseName": "description", + "type": "string", + }, + "enabled": { + "baseName": "enabled", + "type": "boolean", + }, + "expression": { + "baseName": "expression", + "type": "string", + }, + "filters": { + "baseName": "filters", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "updateAuthorUuId": { + "baseName": "updateAuthorUuId", + "type": "string", + }, + "updateDate": { + "baseName": "updateDate", + "type": "number", + "format": "int64", + }, + "updatedAt": { + "baseName": "updatedAt", + "type": "number", + "format": "int64", + }, + "updater": { + "baseName": "updater", + "type": "CloudWorkloadSecurityAgentRuleUpdaterAttributes", + }, + "version": { + "baseName": "version", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateAttributes.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateAttributes.ts index b5f36846fdbe..09a3740ab818 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a new Cloud Workload Security Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleCreateAttributes { /** * The description of the Agent rule. - */ + */ "description"?: string; /** * Whether the Agent rule is enabled. - */ + */ "enabled"?: boolean; /** * The SECL expression of the Agent rule. - */ + */ "expression": string; /** * The platforms the Agent rule is supported on. - */ + */ "filters"?: Array; /** * The name of the Agent rule. - */ + */ "name": string; /** @@ -47,40 +52,66 @@ export class CloudWorkloadSecurityAgentRuleCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - expression: { - baseName: "expression", - type: "string", - required: true, + "expression": { + "baseName": "expression", + "type": "string", + "required": true, }, - filters: { - baseName: "filters", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateData.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateData.ts index 74fefb98f540..0d56470bd87d 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateData.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateData.ts @@ -6,19 +6,24 @@ import { CloudWorkloadSecurityAgentRuleCreateAttributes } from "./CloudWorkloadSecurityAgentRuleCreateAttributes"; import { CloudWorkloadSecurityAgentRuleType } from "./CloudWorkloadSecurityAgentRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleCreateData { /** * Create a new Cloud Workload Security Agent rule. - */ + */ "attributes": CloudWorkloadSecurityAgentRuleCreateAttributes; /** * The type of the resource. The value should always be `agent_rule`. - */ + */ "type": CloudWorkloadSecurityAgentRuleType; /** @@ -37,28 +42,54 @@ export class CloudWorkloadSecurityAgentRuleCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CloudWorkloadSecurityAgentRuleCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CloudWorkloadSecurityAgentRuleCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CloudWorkloadSecurityAgentRuleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudWorkloadSecurityAgentRuleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateRequest.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateRequest.ts index 4d43602920ab..533f9365dcc4 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreateRequest.ts @@ -5,15 +5,20 @@ */ import { CloudWorkloadSecurityAgentRuleCreateData } from "./CloudWorkloadSecurityAgentRuleCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the Agent rule to create. - */ +*/ export class CloudWorkloadSecurityAgentRuleCreateRequest { /** * Object for a single Agent rule. - */ + */ "data": CloudWorkloadSecurityAgentRuleCreateData; /** @@ -32,23 +37,49 @@ export class CloudWorkloadSecurityAgentRuleCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CloudWorkloadSecurityAgentRuleCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CloudWorkloadSecurityAgentRuleCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreatorAttributes.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreatorAttributes.ts index 2517d2e90a82..aa1b0e7a88ff 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreatorAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleCreatorAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of the user who created the Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleCreatorAttributes { /** * The handle of the user. - */ + */ "handle"?: string; /** * The name of the user. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class CloudWorkloadSecurityAgentRuleCreatorAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleCreatorAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleData.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleData.ts index ec0ba13ae79c..fb4b0e237923 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleData.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleData.ts @@ -6,23 +6,28 @@ import { CloudWorkloadSecurityAgentRuleAttributes } from "./CloudWorkloadSecurityAgentRuleAttributes"; import { CloudWorkloadSecurityAgentRuleType } from "./CloudWorkloadSecurityAgentRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleData { /** * A Cloud Workload Security Agent rule returned by the API. - */ + */ "attributes"?: CloudWorkloadSecurityAgentRuleAttributes; /** * The ID of the Agent rule. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `agent_rule`. - */ + */ "type"?: CloudWorkloadSecurityAgentRuleType; /** @@ -41,30 +46,56 @@ export class CloudWorkloadSecurityAgentRuleData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CloudWorkloadSecurityAgentRuleAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CloudWorkloadSecurityAgentRuleAttributes", }, - type: { - baseName: "type", - type: "CloudWorkloadSecurityAgentRuleType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudWorkloadSecurityAgentRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleKill.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleKill.ts index f7a46d8c21c1..42546e8bd75a 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleKill.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleKill.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Kill system call applied on the container matching the rule - */ +*/ export class CloudWorkloadSecurityAgentRuleKill { /** * Supported signals for the kill system call. - */ + */ "signal"?: string; /** @@ -31,22 +36,48 @@ export class CloudWorkloadSecurityAgentRuleKill { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - signal: { - baseName: "signal", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "signal": { + "baseName": "signal", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleKill.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleResponse.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleResponse.ts index 8a7ff7a2b640..5a34fd6438de 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleResponse.ts @@ -5,15 +5,20 @@ */ import { CloudWorkloadSecurityAgentRuleData } from "./CloudWorkloadSecurityAgentRuleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes an Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleResponse { /** * Object for a single Agent rule. - */ + */ "data"?: CloudWorkloadSecurityAgentRuleData; /** @@ -32,22 +37,48 @@ export class CloudWorkloadSecurityAgentRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CloudWorkloadSecurityAgentRuleData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CloudWorkloadSecurityAgentRuleData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleType.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleType.ts index 90039a5fa8c9..38b5bf136d3b 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleType.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `agent_rule`. - */ +*/ -export type CloudWorkloadSecurityAgentRuleType = - | typeof AGENT_RULE - | UnparsedObject; -export const AGENT_RULE = "agent_rule"; +export type CloudWorkloadSecurityAgentRuleType = typeof AGENT_RULE | UnparsedObject; +export const AGENT_RULE = 'agent_rule'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateAttributes.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateAttributes.ts index afae71721927..86aa18d5914f 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update an existing Cloud Workload Security Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleUpdateAttributes { /** * The description of the Agent rule. - */ + */ "description"?: string; /** * Whether the Agent rule is enabled. - */ + */ "enabled"?: boolean; /** * The SECL expression of the Agent rule. - */ + */ "expression"?: string; /** @@ -39,30 +44,56 @@ export class CloudWorkloadSecurityAgentRuleUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - enabled: { - baseName: "enabled", - type: "boolean", + "description": { + "baseName": "description", + "type": "string", }, - expression: { - baseName: "expression", - type: "string", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "expression": { + "baseName": "expression", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateData.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateData.ts index 5892903c00ca..d0e6fe68cbb9 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateData.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateData.ts @@ -6,23 +6,28 @@ import { CloudWorkloadSecurityAgentRuleType } from "./CloudWorkloadSecurityAgentRuleType"; import { CloudWorkloadSecurityAgentRuleUpdateAttributes } from "./CloudWorkloadSecurityAgentRuleUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleUpdateData { /** * Update an existing Cloud Workload Security Agent rule. - */ + */ "attributes": CloudWorkloadSecurityAgentRuleUpdateAttributes; /** * The ID of the agent rule. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `agent_rule`. - */ + */ "type": CloudWorkloadSecurityAgentRuleType; /** @@ -41,32 +46,58 @@ export class CloudWorkloadSecurityAgentRuleUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CloudWorkloadSecurityAgentRuleUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CloudWorkloadSecurityAgentRuleUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CloudWorkloadSecurityAgentRuleType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudWorkloadSecurityAgentRuleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateRequest.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateRequest.ts index 46c36b1db08c..16494d3b9b37 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { CloudWorkloadSecurityAgentRuleUpdateData } from "./CloudWorkloadSecurityAgentRuleUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the Agent rule with the attributes to update. - */ +*/ export class CloudWorkloadSecurityAgentRuleUpdateRequest { /** * Object for a single Agent rule. - */ + */ "data": CloudWorkloadSecurityAgentRuleUpdateData; /** @@ -32,23 +37,49 @@ export class CloudWorkloadSecurityAgentRuleUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CloudWorkloadSecurityAgentRuleUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CloudWorkloadSecurityAgentRuleUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdaterAttributes.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdaterAttributes.ts index e134643a22bb..8f8b98dc340d 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdaterAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleUpdaterAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of the user who last updated the Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRuleUpdaterAttributes { /** * The handle of the user. - */ + */ "handle"?: string; /** * The name of the user. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class CloudWorkloadSecurityAgentRuleUpdaterAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRuleUpdaterAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRulesListResponse.ts b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRulesListResponse.ts index 7266eed76ff7..1e95078abfbc 100644 --- a/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRulesListResponse.ts +++ b/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRulesListResponse.ts @@ -5,15 +5,20 @@ */ import { CloudWorkloadSecurityAgentRuleData } from "./CloudWorkloadSecurityAgentRuleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a list of Agent rule. - */ +*/ export class CloudWorkloadSecurityAgentRulesListResponse { /** * A list of Agent rules objects. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class CloudWorkloadSecurityAgentRulesListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudWorkloadSecurityAgentRulesListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.ts b/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.ts index 2ff08c781e9b..1338318a5e2a 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.ts @@ -5,15 +5,20 @@ */ import { CloudflareAccountCreateRequestData } from "./CloudflareAccountCreateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema when adding a Cloudflare account. - */ +*/ export class CloudflareAccountCreateRequest { /** * Data object for creating a Cloudflare account. - */ + */ "data": CloudflareAccountCreateRequestData; /** @@ -32,23 +37,49 @@ export class CloudflareAccountCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CloudflareAccountCreateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CloudflareAccountCreateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.ts index 12f8e9376847..ab242f6ffaf7 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for creating a Cloudflare account. - */ +*/ export class CloudflareAccountCreateRequestAttributes { /** * The API key (or token) for the Cloudflare account. - */ + */ "apiKey": string; /** * The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required. - */ + */ "email"?: string; /** * The name of the Cloudflare account. - */ + */ "name": string; /** * An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), 'worker'`. - */ + */ "resources"?: Array; /** * An allowlist of zones to restrict pulling metrics for. - */ + */ "zones"?: Array; /** @@ -47,40 +52,66 @@ export class CloudflareAccountCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - required: true, + "apiKey": { + "baseName": "api_key", + "type": "string", + "required": true, }, - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - resources: { - baseName: "resources", - type: "Array", + "resources": { + "baseName": "resources", + "type": "Array", }, - zones: { - baseName: "zones", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "zones": { + "baseName": "zones", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.ts b/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.ts index 1940966f64e8..4c191b8ca897 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.ts @@ -6,19 +6,24 @@ import { CloudflareAccountCreateRequestAttributes } from "./CloudflareAccountCreateRequestAttributes"; import { CloudflareAccountType } from "./CloudflareAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for creating a Cloudflare account. - */ +*/ export class CloudflareAccountCreateRequestData { /** * Attributes object for creating a Cloudflare account. - */ + */ "attributes": CloudflareAccountCreateRequestAttributes; /** * The JSON:API type for this API. Should always be `cloudflare-accounts`. - */ + */ "type": CloudflareAccountType; /** @@ -37,28 +42,54 @@ export class CloudflareAccountCreateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CloudflareAccountCreateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CloudflareAccountCreateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CloudflareAccountType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudflareAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountCreateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountResponse.ts b/packages/datadog-api-client-v2/models/CloudflareAccountResponse.ts index be46e133a486..a34e33499d99 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountResponse.ts @@ -5,15 +5,20 @@ */ import { CloudflareAccountResponseData } from "./CloudflareAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting a Cloudflare account. - */ +*/ export class CloudflareAccountResponse { /** * Data object of a Cloudflare account. - */ + */ "data"?: CloudflareAccountResponseData; /** @@ -32,22 +37,48 @@ export class CloudflareAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CloudflareAccountResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CloudflareAccountResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.ts b/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.ts index b7dfde90c9c9..318939de2b58 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object of a Cloudflare account. - */ +*/ export class CloudflareAccountResponseAttributes { /** * The email associated with the Cloudflare account. - */ + */ "email"?: string; /** * The name of the Cloudflare account. - */ + */ "name": string; /** * An allowlist of resources, such as `web`, `dns`, `lb` (load balancer), `worker`, that restricts pulling metrics from those resources. - */ + */ "resources"?: Array; /** * An allowlist of zones to restrict pulling metrics for. - */ + */ "zones"?: Array; /** @@ -43,35 +48,61 @@ export class CloudflareAccountResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - resources: { - baseName: "resources", - type: "Array", + "resources": { + "baseName": "resources", + "type": "Array", }, - zones: { - baseName: "zones", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "zones": { + "baseName": "zones", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.ts b/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.ts index e0d9796d98c4..a34b607696b5 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.ts @@ -6,23 +6,28 @@ import { CloudflareAccountResponseAttributes } from "./CloudflareAccountResponseAttributes"; import { CloudflareAccountType } from "./CloudflareAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object of a Cloudflare account. - */ +*/ export class CloudflareAccountResponseData { /** * Attributes object of a Cloudflare account. - */ + */ "attributes": CloudflareAccountResponseAttributes; /** * The ID of the Cloudflare account, a hash of the account name. - */ + */ "id": string; /** * The JSON:API type for this API. Should always be `cloudflare-accounts`. - */ + */ "type": CloudflareAccountType; /** @@ -41,33 +46,59 @@ export class CloudflareAccountResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CloudflareAccountResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CloudflareAccountResponseAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CloudflareAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudflareAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountType.ts b/packages/datadog-api-client-v2/models/CloudflareAccountType.ts index 163f03f50537..2512ed22293f 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountType.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for this API. Should always be `cloudflare-accounts`. - */ +*/ export type CloudflareAccountType = typeof CLOUDFLARE_ACCOUNTS | UnparsedObject; -export const CLOUDFLARE_ACCOUNTS = "cloudflare-accounts"; +export const CLOUDFLARE_ACCOUNTS = 'cloudflare-accounts'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.ts b/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.ts index 905099a3d098..915973352331 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { CloudflareAccountUpdateRequestData } from "./CloudflareAccountUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema when updating a Cloudflare account. - */ +*/ export class CloudflareAccountUpdateRequest { /** * Data object for updating a Cloudflare account. - */ + */ "data": CloudflareAccountUpdateRequestData; /** @@ -32,23 +37,49 @@ export class CloudflareAccountUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CloudflareAccountUpdateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CloudflareAccountUpdateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.ts index 819029a13762..c3bc395cad27 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for updating a Cloudflare account. - */ +*/ export class CloudflareAccountUpdateRequestAttributes { /** * The API key of the Cloudflare account. - */ + */ "apiKey": string; /** * The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required. - */ + */ "email"?: string; /** * The name of the Cloudflare account. - */ + */ "name"?: string; /** * An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), 'worker'`. - */ + */ "resources"?: Array; /** * An allowlist of zones to restrict pulling metrics for. - */ + */ "zones"?: Array; /** @@ -47,39 +52,65 @@ export class CloudflareAccountUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - required: true, + "apiKey": { + "baseName": "api_key", + "type": "string", + "required": true, }, - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - resources: { - baseName: "resources", - type: "Array", + "resources": { + "baseName": "resources", + "type": "Array", }, - zones: { - baseName: "zones", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "zones": { + "baseName": "zones", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.ts index 0cfaf98112a3..626d67d29317 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.ts @@ -6,19 +6,24 @@ import { CloudflareAccountType } from "./CloudflareAccountType"; import { CloudflareAccountUpdateRequestAttributes } from "./CloudflareAccountUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for updating a Cloudflare account. - */ +*/ export class CloudflareAccountUpdateRequestData { /** * Attributes object for updating a Cloudflare account. - */ + */ "attributes"?: CloudflareAccountUpdateRequestAttributes; /** * The JSON:API type for this API. Should always be `cloudflare-accounts`. - */ + */ "type"?: CloudflareAccountType; /** @@ -37,26 +42,52 @@ export class CloudflareAccountUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CloudflareAccountUpdateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "CloudflareAccountUpdateRequestAttributes", }, - type: { - baseName: "type", - type: "CloudflareAccountType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CloudflareAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.ts b/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.ts index 9977af87b73f..4a6c111d7ee9 100644 --- a/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.ts +++ b/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.ts @@ -5,15 +5,20 @@ */ import { CloudflareAccountResponseData } from "./CloudflareAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting Cloudflare accounts. - */ +*/ export class CloudflareAccountsResponse { /** * The JSON:API data schema. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class CloudflareAccountsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CloudflareAccountsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CodeLocation.ts b/packages/datadog-api-client-v2/models/CodeLocation.ts index 5e7a587dff53..14292e76dba6 100644 --- a/packages/datadog-api-client-v2/models/CodeLocation.ts +++ b/packages/datadog-api-client-v2/models/CodeLocation.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Code vulnerability location. - */ +*/ export class CodeLocation { /** * Vulnerability location file path. - */ + */ "filePath"?: string; /** * Vulnerability extracted location. - */ + */ "location": string; /** * Vulnerability location method. - */ + */ "method"?: string; /** @@ -39,31 +44,57 @@ export class CodeLocation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filePath: { - baseName: "file_path", - type: "string", - }, - location: { - baseName: "location", - type: "string", - required: true, + "filePath": { + "baseName": "file_path", + "type": "string", }, - method: { - baseName: "method", - type: "string", + "location": { + "baseName": "location", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "method": { + "baseName": "method", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CodeLocation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CompletionCondition.ts b/packages/datadog-api-client-v2/models/CompletionCondition.ts index 525f23e5fc3b..9c1dedee93f8 100644 --- a/packages/datadog-api-client-v2/models/CompletionCondition.ts +++ b/packages/datadog-api-client-v2/models/CompletionCondition.ts @@ -5,23 +5,28 @@ */ import { CompletionConditionOperator } from "./CompletionConditionOperator"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `CompletionCondition` object. - */ +*/ export class CompletionCondition { /** * The `CompletionCondition` `operand1`. - */ + */ "operand1": any; /** * The `CompletionCondition` `operand2`. - */ + */ "operand2"?: any; /** * The definition of `CompletionConditionOperator` object. - */ + */ "operator": CompletionConditionOperator; /** @@ -40,32 +45,58 @@ export class CompletionCondition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - operand1: { - baseName: "operand1", - type: "any", - required: true, - }, - operand2: { - baseName: "operand2", - type: "any", + "operand1": { + "baseName": "operand1", + "type": "any", + "required": true, }, - operator: { - baseName: "operator", - type: "CompletionConditionOperator", - required: true, + "operand2": { + "baseName": "operand2", + "type": "any", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "operator": { + "baseName": "operator", + "type": "CompletionConditionOperator", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CompletionCondition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CompletionConditionOperator.ts b/packages/datadog-api-client-v2/models/CompletionConditionOperator.ts index 380abbb75d51..65ae8bbb3cf1 100644 --- a/packages/datadog-api-client-v2/models/CompletionConditionOperator.ts +++ b/packages/datadog-api-client-v2/models/CompletionConditionOperator.ts @@ -4,36 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `CompletionConditionOperator` object. - */ +*/ -export type CompletionConditionOperator = - | typeof OPERATOR_EQUAL - | typeof OPERATOR_NOT_EQUAL - | typeof OPERATOR_GREATER_THAN - | typeof OPERATOR_LESS_THAN - | typeof OPERATOR_GREATER_THAN_OR_EQUAL_TO - | typeof OPERATOR_LESS_THAN_OR_EQUAL_TO - | typeof OPERATOR_CONTAINS - | typeof OPERATOR_DOES_NOT_CONTAIN - | typeof OPERATOR_IS_NULL - | typeof OPERATOR_IS_NOT_NULL - | typeof OPERATOR_IS_EMPTY - | typeof OPERATOR_IS_NOT_EMPTY - | UnparsedObject; -export const OPERATOR_EQUAL = "OPERATOR_EQUAL"; -export const OPERATOR_NOT_EQUAL = "OPERATOR_NOT_EQUAL"; -export const OPERATOR_GREATER_THAN = "OPERATOR_GREATER_THAN"; -export const OPERATOR_LESS_THAN = "OPERATOR_LESS_THAN"; -export const OPERATOR_GREATER_THAN_OR_EQUAL_TO = - "OPERATOR_GREATER_THAN_OR_EQUAL_TO"; -export const OPERATOR_LESS_THAN_OR_EQUAL_TO = "OPERATOR_LESS_THAN_OR_EQUAL_TO"; -export const OPERATOR_CONTAINS = "OPERATOR_CONTAINS"; -export const OPERATOR_DOES_NOT_CONTAIN = "OPERATOR_DOES_NOT_CONTAIN"; -export const OPERATOR_IS_NULL = "OPERATOR_IS_NULL"; -export const OPERATOR_IS_NOT_NULL = "OPERATOR_IS_NOT_NULL"; -export const OPERATOR_IS_EMPTY = "OPERATOR_IS_EMPTY"; -export const OPERATOR_IS_NOT_EMPTY = "OPERATOR_IS_NOT_EMPTY"; +export type CompletionConditionOperator = typeof OPERATOR_EQUAL| typeof OPERATOR_NOT_EQUAL| typeof OPERATOR_GREATER_THAN| typeof OPERATOR_LESS_THAN| typeof OPERATOR_GREATER_THAN_OR_EQUAL_TO| typeof OPERATOR_LESS_THAN_OR_EQUAL_TO| typeof OPERATOR_CONTAINS| typeof OPERATOR_DOES_NOT_CONTAIN| typeof OPERATOR_IS_NULL| typeof OPERATOR_IS_NOT_NULL| typeof OPERATOR_IS_EMPTY| typeof OPERATOR_IS_NOT_EMPTY | UnparsedObject; +export const OPERATOR_EQUAL = 'OPERATOR_EQUAL'; +export const OPERATOR_NOT_EQUAL = 'OPERATOR_NOT_EQUAL'; +export const OPERATOR_GREATER_THAN = 'OPERATOR_GREATER_THAN'; +export const OPERATOR_LESS_THAN = 'OPERATOR_LESS_THAN'; +export const OPERATOR_GREATER_THAN_OR_EQUAL_TO = 'OPERATOR_GREATER_THAN_OR_EQUAL_TO'; +export const OPERATOR_LESS_THAN_OR_EQUAL_TO = 'OPERATOR_LESS_THAN_OR_EQUAL_TO'; +export const OPERATOR_CONTAINS = 'OPERATOR_CONTAINS'; +export const OPERATOR_DOES_NOT_CONTAIN = 'OPERATOR_DOES_NOT_CONTAIN'; +export const OPERATOR_IS_NULL = 'OPERATOR_IS_NULL'; +export const OPERATOR_IS_NOT_NULL = 'OPERATOR_IS_NOT_NULL'; +export const OPERATOR_IS_EMPTY = 'OPERATOR_IS_EMPTY'; +export const OPERATOR_IS_NOT_EMPTY = 'OPERATOR_IS_NOT_EMPTY'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CompletionGate.ts b/packages/datadog-api-client-v2/models/CompletionGate.ts index 3024c3e1e97b..57ca338c6b28 100644 --- a/packages/datadog-api-client-v2/models/CompletionGate.ts +++ b/packages/datadog-api-client-v2/models/CompletionGate.ts @@ -6,19 +6,24 @@ import { CompletionCondition } from "./CompletionCondition"; import { RetryStrategy } from "./RetryStrategy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to create conditions before running subsequent actions. - */ +*/ export class CompletionGate { /** * The definition of `CompletionCondition` object. - */ + */ "completionCondition": CompletionCondition; /** * The definition of `RetryStrategy` object. - */ + */ "retryStrategy": RetryStrategy; /** @@ -37,28 +42,54 @@ export class CompletionGate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - completionCondition: { - baseName: "completionCondition", - type: "CompletionCondition", - required: true, + "completionCondition": { + "baseName": "completionCondition", + "type": "CompletionCondition", + "required": true, }, - retryStrategy: { - baseName: "retryStrategy", - type: "RetryStrategy", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "retryStrategy": { + "baseName": "retryStrategy", + "type": "RetryStrategy", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CompletionGate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Component.ts b/packages/datadog-api-client-v2/models/Component.ts index 5aaab00bb5b4..c0e883bd18b4 100644 --- a/packages/datadog-api-client-v2/models/Component.ts +++ b/packages/datadog-api-client-v2/models/Component.ts @@ -7,31 +7,36 @@ import { AppBuilderEvent } from "./AppBuilderEvent"; import { ComponentProperties } from "./ComponentProperties"; import { ComponentType } from "./ComponentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * [Definition of a UI component in the app](https://docs.datadoghq.com/service_management/app_builder/components/) - */ +*/ export class Component { /** * Events to listen for on the UI component. - */ + */ "events"?: Array; /** * The ID of the UI component. This property is deprecated; use `name` to identify individual components instead. - */ + */ "id"?: string; /** * A unique identifier for this UI component. This name is also visible in the app editor. - */ + */ "name": string; /** * Properties of a UI component. Different component types can have their own additional unique properties. See the [components documentation](https://docs.datadoghq.com/service_management/app_builder/components/) for more detail on each component type and its properties. - */ + */ "properties": ComponentProperties; /** * The UI component type. - */ + */ "type": ComponentType; /** @@ -50,41 +55,67 @@ export class Component { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - properties: { - baseName: "properties", - type: "ComponentProperties", - required: true, + "properties": { + "baseName": "properties", + "type": "ComponentProperties", + "required": true, }, - type: { - baseName: "type", - type: "ComponentType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ComponentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Component.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ComponentGrid.ts b/packages/datadog-api-client-v2/models/ComponentGrid.ts index b3e55b14f35d..12fab347a6ef 100644 --- a/packages/datadog-api-client-v2/models/ComponentGrid.ts +++ b/packages/datadog-api-client-v2/models/ComponentGrid.ts @@ -7,31 +7,36 @@ import { AppBuilderEvent } from "./AppBuilderEvent"; import { ComponentGridProperties } from "./ComponentGridProperties"; import { ComponentGridType } from "./ComponentGridType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A grid component. The grid component is the root canvas for an app and contains all other components. - */ +*/ export class ComponentGrid { /** * Events to listen for on the grid component. - */ + */ "events"?: Array; /** * The ID of the grid component. This property is deprecated; use `name` to identify individual components instead. - */ + */ "id"?: string; /** * A unique identifier for this grid component. This name is also visible in the app editor. - */ + */ "name": string; /** * Properties of a grid component. - */ + */ "properties": ComponentGridProperties; /** * The grid component type. - */ + */ "type": ComponentGridType; /** @@ -50,41 +55,67 @@ export class ComponentGrid { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - properties: { - baseName: "properties", - type: "ComponentGridProperties", - required: true, + "properties": { + "baseName": "properties", + "type": "ComponentGridProperties", + "required": true, }, - type: { - baseName: "type", - type: "ComponentGridType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ComponentGridType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ComponentGrid.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ComponentGridProperties.ts b/packages/datadog-api-client-v2/models/ComponentGridProperties.ts index 507523baa2f7..9a46cdc525ee 100644 --- a/packages/datadog-api-client-v2/models/ComponentGridProperties.ts +++ b/packages/datadog-api-client-v2/models/ComponentGridProperties.ts @@ -6,23 +6,28 @@ import { Component } from "./Component"; import { ComponentGridPropertiesIsVisible } from "./ComponentGridPropertiesIsVisible"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Properties of a grid component. - */ +*/ export class ComponentGridProperties { /** * The background color of the grid. - */ + */ "backgroundColor"?: string; /** * The child components of the grid. - */ + */ "children"?: Array; /** * Whether the grid component and its children are visible. If a string, it must be a valid JavaScript expression that evaluates to a boolean. - */ + */ "isVisible"?: ComponentGridPropertiesIsVisible; /** @@ -41,30 +46,56 @@ export class ComponentGridProperties { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - backgroundColor: { - baseName: "backgroundColor", - type: "string", - }, - children: { - baseName: "children", - type: "Array", + "backgroundColor": { + "baseName": "backgroundColor", + "type": "string", }, - isVisible: { - baseName: "isVisible", - type: "ComponentGridPropertiesIsVisible", + "children": { + "baseName": "children", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "isVisible": { + "baseName": "isVisible", + "type": "ComponentGridPropertiesIsVisible", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ComponentGridProperties.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.ts b/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.ts index 76f880a2a4b9..86a6f0789e8e 100644 --- a/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.ts +++ b/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.ts @@ -4,13 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether the grid component and its children are visible. If a string, it must be a valid JavaScript expression that evaluates to a boolean. - */ +*/ -export type ComponentGridPropertiesIsVisible = - | string - | boolean - | UnparsedObject; +export type ComponentGridPropertiesIsVisible = string | boolean | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ComponentGridType.ts b/packages/datadog-api-client-v2/models/ComponentGridType.ts index 4354b3e82cba..3ebdcd5e9d4c 100644 --- a/packages/datadog-api-client-v2/models/ComponentGridType.ts +++ b/packages/datadog-api-client-v2/models/ComponentGridType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The grid component type. - */ +*/ export type ComponentGridType = typeof GRID | UnparsedObject; -export const GRID = "grid"; +export const GRID = 'grid'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ComponentProperties.ts b/packages/datadog-api-client-v2/models/ComponentProperties.ts index 059f914ba8d4..47e0b10f7a75 100644 --- a/packages/datadog-api-client-v2/models/ComponentProperties.ts +++ b/packages/datadog-api-client-v2/models/ComponentProperties.ts @@ -6,19 +6,24 @@ import { Component } from "./Component"; import { ComponentPropertiesIsVisible } from "./ComponentPropertiesIsVisible"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Properties of a UI component. Different component types can have their own additional unique properties. See the [components documentation](https://docs.datadoghq.com/service_management/app_builder/components/) for more detail on each component type and its properties. - */ +*/ export class ComponentProperties { /** * The child components of the UI component. - */ + */ "children"?: Array; /** * Whether the UI component is visible. If this is a string, it must be a valid JavaScript expression that evaluates to a boolean. - */ + */ "isVisible"?: ComponentPropertiesIsVisible; /** @@ -37,26 +42,52 @@ export class ComponentProperties { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - children: { - baseName: "children", - type: "Array", + "children": { + "baseName": "children", + "type": "Array", }, - isVisible: { - baseName: "isVisible", - type: "ComponentPropertiesIsVisible", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "isVisible": { + "baseName": "isVisible", + "type": "ComponentPropertiesIsVisible", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ComponentProperties.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.ts b/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.ts index 375a4cb9c90b..0efdf0d007ad 100644 --- a/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.ts +++ b/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Whether the UI component is visible. If this is a string, it must be a valid JavaScript expression that evaluates to a boolean. - */ +*/ -export type ComponentPropertiesIsVisible = boolean | string | UnparsedObject; +export type ComponentPropertiesIsVisible = boolean | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ComponentType.ts b/packages/datadog-api-client-v2/models/ComponentType.ts index 010a42378b03..8922e502beb7 100644 --- a/packages/datadog-api-client-v2/models/ComponentType.ts +++ b/packages/datadog-api-client-v2/models/ComponentType.ts @@ -4,51 +4,35 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The UI component type. - */ +*/ -export type ComponentType = - | typeof TABLE - | typeof TEXTINPUT - | typeof TEXTAREA - | typeof BUTTON - | typeof TEXT - | typeof SELECT - | typeof MODAL - | typeof SCHEMAFORM - | typeof CHECKBOX - | typeof TABS - | typeof VEGACHART - | typeof RADIOBUTTONS - | typeof NUMBERINPUT - | typeof FILEINPUT - | typeof JSONINPUT - | typeof GRIDCELL - | typeof DATERANGEPICKER - | typeof SEARCH - | typeof CONTAINER - | typeof CALLOUTVALUE - | UnparsedObject; -export const TABLE = "table"; -export const TEXTINPUT = "textInput"; -export const TEXTAREA = "textArea"; -export const BUTTON = "button"; -export const TEXT = "text"; -export const SELECT = "select"; -export const MODAL = "modal"; -export const SCHEMAFORM = "schemaForm"; -export const CHECKBOX = "checkbox"; -export const TABS = "tabs"; -export const VEGACHART = "vegaChart"; -export const RADIOBUTTONS = "radioButtons"; -export const NUMBERINPUT = "numberInput"; -export const FILEINPUT = "fileInput"; -export const JSONINPUT = "jsonInput"; -export const GRIDCELL = "gridCell"; -export const DATERANGEPICKER = "dateRangePicker"; -export const SEARCH = "search"; -export const CONTAINER = "container"; -export const CALLOUTVALUE = "calloutValue"; +export type ComponentType = typeof TABLE| typeof TEXTINPUT| typeof TEXTAREA| typeof BUTTON| typeof TEXT| typeof SELECT| typeof MODAL| typeof SCHEMAFORM| typeof CHECKBOX| typeof TABS| typeof VEGACHART| typeof RADIOBUTTONS| typeof NUMBERINPUT| typeof FILEINPUT| typeof JSONINPUT| typeof GRIDCELL| typeof DATERANGEPICKER| typeof SEARCH| typeof CONTAINER| typeof CALLOUTVALUE | UnparsedObject; +export const TABLE = 'table'; +export const TEXTINPUT = 'textInput'; +export const TEXTAREA = 'textArea'; +export const BUTTON = 'button'; +export const TEXT = 'text'; +export const SELECT = 'select'; +export const MODAL = 'modal'; +export const SCHEMAFORM = 'schemaForm'; +export const CHECKBOX = 'checkbox'; +export const TABS = 'tabs'; +export const VEGACHART = 'vegaChart'; +export const RADIOBUTTONS = 'radioButtons'; +export const NUMBERINPUT = 'numberInput'; +export const FILEINPUT = 'fileInput'; +export const JSONINPUT = 'jsonInput'; +export const GRIDCELL = 'gridCell'; +export const DATERANGEPICKER = 'dateRangePicker'; +export const SEARCH = 'search'; +export const CONTAINER = 'container'; +export const CALLOUTVALUE = 'calloutValue'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.ts b/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.ts index 3fb53315f0c1..2801a0d91047 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.ts @@ -5,15 +5,20 @@ */ import { ConfluentAccountCreateRequestData } from "./ConfluentAccountCreateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema when adding a Confluent account. - */ +*/ export class ConfluentAccountCreateRequest { /** * The data body for adding a Confluent account. - */ + */ "data": ConfluentAccountCreateRequestData; /** @@ -32,23 +37,49 @@ export class ConfluentAccountCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ConfluentAccountCreateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ConfluentAccountCreateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.ts index 8e9712b06655..f02f442c7389 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.ts @@ -5,27 +5,32 @@ */ import { ConfluentAccountResourceAttributes } from "./ConfluentAccountResourceAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes associated with the account creation request. - */ +*/ export class ConfluentAccountCreateRequestAttributes { /** * The API key associated with your Confluent account. - */ + */ "apiKey": string; /** * The API secret associated with your Confluent account. - */ + */ "apiSecret": string; /** * A list of Confluent resources associated with the Confluent account. - */ + */ "resources"?: Array; /** * A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. - */ + */ "tags"?: Array; /** @@ -44,36 +49,62 @@ export class ConfluentAccountCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - required: true, + "apiKey": { + "baseName": "api_key", + "type": "string", + "required": true, }, - apiSecret: { - baseName: "api_secret", - type: "string", - required: true, + "apiSecret": { + "baseName": "api_secret", + "type": "string", + "required": true, }, - resources: { - baseName: "resources", - type: "Array", + "resources": { + "baseName": "resources", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.ts b/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.ts index 7bc611120738..025e2607dcac 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.ts @@ -6,19 +6,24 @@ import { ConfluentAccountCreateRequestAttributes } from "./ConfluentAccountCreateRequestAttributes"; import { ConfluentAccountType } from "./ConfluentAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data body for adding a Confluent account. - */ +*/ export class ConfluentAccountCreateRequestData { /** * Attributes associated with the account creation request. - */ + */ "attributes": ConfluentAccountCreateRequestAttributes; /** * The JSON:API type for this API. Should always be `confluent-cloud-accounts`. - */ + */ "type": ConfluentAccountType; /** @@ -37,28 +42,54 @@ export class ConfluentAccountCreateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ConfluentAccountCreateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ConfluentAccountCreateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ConfluentAccountType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ConfluentAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountCreateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.ts b/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.ts index 4e5de1abd510..77c05a982f8b 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for updating a Confluent resource. - */ +*/ export class ConfluentAccountResourceAttributes { /** * Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags. - */ + */ "enableCustomMetrics"?: boolean; /** * The ID associated with a Confluent resource. - */ + */ "id"?: string; /** * The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`. - */ + */ "resourceType": string; /** * A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. - */ + */ "tags"?: Array; /** @@ -43,35 +48,61 @@ export class ConfluentAccountResourceAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enableCustomMetrics: { - baseName: "enable_custom_metrics", - type: "boolean", + "enableCustomMetrics": { + "baseName": "enable_custom_metrics", + "type": "boolean", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - resourceType: { - baseName: "resource_type", - type: "string", - required: true, + "resourceType": { + "baseName": "resource_type", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountResourceAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountResponse.ts b/packages/datadog-api-client-v2/models/ConfluentAccountResponse.ts index c701933cdad5..5881499b3480 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountResponse.ts @@ -5,15 +5,20 @@ */ import { ConfluentAccountResponseData } from "./ConfluentAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting a Confluent account. - */ +*/ export class ConfluentAccountResponse { /** * An API key and API secret pair that represents a Confluent account. - */ + */ "data"?: ConfluentAccountResponseData; /** @@ -32,22 +37,48 @@ export class ConfluentAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ConfluentAccountResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ConfluentAccountResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.ts b/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.ts index a796ff01e884..2b394808d9a0 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.ts @@ -5,23 +5,28 @@ */ import { ConfluentResourceResponseAttributes } from "./ConfluentResourceResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of a Confluent account. - */ +*/ export class ConfluentAccountResponseAttributes { /** * The API key associated with your Confluent account. - */ + */ "apiKey": string; /** * A list of Confluent resources associated with the Confluent account. - */ + */ "resources"?: Array; /** * A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. - */ + */ "tags"?: Array; /** @@ -40,31 +45,57 @@ export class ConfluentAccountResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - required: true, - }, - resources: { - baseName: "resources", - type: "Array", + "apiKey": { + "baseName": "api_key", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "resources": { + "baseName": "resources", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.ts b/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.ts index d073c8115546..79ae39535c6e 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.ts @@ -6,23 +6,28 @@ import { ConfluentAccountResponseAttributes } from "./ConfluentAccountResponseAttributes"; import { ConfluentAccountType } from "./ConfluentAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An API key and API secret pair that represents a Confluent account. - */ +*/ export class ConfluentAccountResponseData { /** * The attributes of a Confluent account. - */ + */ "attributes": ConfluentAccountResponseAttributes; /** * A randomly generated ID associated with a Confluent account. - */ + */ "id": string; /** * The JSON:API type for this API. Should always be `confluent-cloud-accounts`. - */ + */ "type": ConfluentAccountType; /** @@ -41,33 +46,59 @@ export class ConfluentAccountResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ConfluentAccountResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ConfluentAccountResponseAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ConfluentAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ConfluentAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountType.ts b/packages/datadog-api-client-v2/models/ConfluentAccountType.ts index 9e1c51b45cdb..b83e1de58f98 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountType.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for this API. Should always be `confluent-cloud-accounts`. - */ +*/ -export type ConfluentAccountType = - | typeof CONFLUENT_CLOUD_ACCOUNTS - | UnparsedObject; -export const CONFLUENT_CLOUD_ACCOUNTS = "confluent-cloud-accounts"; +export type ConfluentAccountType = typeof CONFLUENT_CLOUD_ACCOUNTS | UnparsedObject; +export const CONFLUENT_CLOUD_ACCOUNTS = 'confluent-cloud-accounts'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.ts b/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.ts index a814435890d1..35c4e5e1dc73 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { ConfluentAccountUpdateRequestData } from "./ConfluentAccountUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API request for updating a Confluent account. - */ +*/ export class ConfluentAccountUpdateRequest { /** * Data object for updating a Confluent account. - */ + */ "data": ConfluentAccountUpdateRequestData; /** @@ -32,23 +37,49 @@ export class ConfluentAccountUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ConfluentAccountUpdateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ConfluentAccountUpdateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.ts index 1429f31cf10b..a7cf1ff3535d 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for updating a Confluent account. - */ +*/ export class ConfluentAccountUpdateRequestAttributes { /** * The API key associated with your Confluent account. - */ + */ "apiKey": string; /** * The API secret associated with your Confluent account. - */ + */ "apiSecret": string; /** * A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. - */ + */ "tags"?: Array; /** @@ -39,32 +44,58 @@ export class ConfluentAccountUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - required: true, - }, - apiSecret: { - baseName: "api_secret", - type: "string", - required: true, + "apiKey": { + "baseName": "api_key", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "apiSecret": { + "baseName": "api_secret", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.ts index 99f9a17bba1d..b17c11640934 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.ts @@ -6,19 +6,24 @@ import { ConfluentAccountType } from "./ConfluentAccountType"; import { ConfluentAccountUpdateRequestAttributes } from "./ConfluentAccountUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for updating a Confluent account. - */ +*/ export class ConfluentAccountUpdateRequestData { /** * Attributes object for updating a Confluent account. - */ + */ "attributes": ConfluentAccountUpdateRequestAttributes; /** * The JSON:API type for this API. Should always be `confluent-cloud-accounts`. - */ + */ "type": ConfluentAccountType; /** @@ -37,28 +42,54 @@ export class ConfluentAccountUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ConfluentAccountUpdateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ConfluentAccountUpdateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ConfluentAccountType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ConfluentAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.ts b/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.ts index 3626f5c1440f..b62d67bb93a4 100644 --- a/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.ts +++ b/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.ts @@ -5,15 +5,20 @@ */ import { ConfluentAccountResponseData } from "./ConfluentAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Confluent account returned by the API. - */ +*/ export class ConfluentAccountsResponse { /** * The Confluent account. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ConfluentAccountsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentAccountsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceRequest.ts b/packages/datadog-api-client-v2/models/ConfluentResourceRequest.ts index ddf314088451..1484607ecc98 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceRequest.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceRequest.ts @@ -5,15 +5,20 @@ */ import { ConfluentResourceRequestData } from "./ConfluentResourceRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API request for updating a Confluent resource. - */ +*/ export class ConfluentResourceRequest { /** * JSON:API request for updating a Confluent resource. - */ + */ "data": ConfluentResourceRequestData; /** @@ -32,23 +37,49 @@ export class ConfluentResourceRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ConfluentResourceRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ConfluentResourceRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourceRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.ts b/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.ts index 5e61d7866342..e3945d718d40 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for updating a Confluent resource. - */ +*/ export class ConfluentResourceRequestAttributes { /** * Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags. - */ + */ "enableCustomMetrics"?: boolean; /** * The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`. - */ + */ "resourceType": string; /** * A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. - */ + */ "tags"?: Array; /** @@ -39,31 +44,57 @@ export class ConfluentResourceRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enableCustomMetrics: { - baseName: "enable_custom_metrics", - type: "boolean", - }, - resourceType: { - baseName: "resource_type", - type: "string", - required: true, + "enableCustomMetrics": { + "baseName": "enable_custom_metrics", + "type": "boolean", }, - tags: { - baseName: "tags", - type: "Array", + "resourceType": { + "baseName": "resource_type", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourceRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.ts b/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.ts index e98d04b553aa..028a710cb0ad 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.ts @@ -6,23 +6,28 @@ import { ConfluentResourceRequestAttributes } from "./ConfluentResourceRequestAttributes"; import { ConfluentResourceType } from "./ConfluentResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON:API request for updating a Confluent resource. - */ +*/ export class ConfluentResourceRequestData { /** * Attributes object for updating a Confluent resource. - */ + */ "attributes": ConfluentResourceRequestAttributes; /** * The ID associated with a Confluent resource. - */ + */ "id": string; /** * The JSON:API type for this request. - */ + */ "type": ConfluentResourceType; /** @@ -41,33 +46,59 @@ export class ConfluentResourceRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ConfluentResourceRequestAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ConfluentResourceRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ConfluentResourceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ConfluentResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourceRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceResponse.ts b/packages/datadog-api-client-v2/models/ConfluentResourceResponse.ts index f06498ebe21e..b993b992794f 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceResponse.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceResponse.ts @@ -5,15 +5,20 @@ */ import { ConfluentResourceResponseData } from "./ConfluentResourceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response schema when interacting with a Confluent resource. - */ +*/ export class ConfluentResourceResponse { /** * Confluent Cloud resource data. - */ + */ "data"?: ConfluentResourceResponseData; /** @@ -32,22 +37,48 @@ export class ConfluentResourceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ConfluentResourceResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ConfluentResourceResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.ts b/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.ts index aeb1aea27f46..98021a62573a 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Model representation of a Confluent Cloud resource. - */ +*/ export class ConfluentResourceResponseAttributes { /** * Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags. - */ + */ "enableCustomMetrics"?: boolean; /** * The ID associated with the Confluent resource. - */ + */ "id"?: string; /** * The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`. - */ + */ "resourceType": string; /** * A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. - */ + */ "tags"?: Array; /** @@ -43,35 +48,61 @@ export class ConfluentResourceResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enableCustomMetrics: { - baseName: "enable_custom_metrics", - type: "boolean", + "enableCustomMetrics": { + "baseName": "enable_custom_metrics", + "type": "boolean", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - resourceType: { - baseName: "resource_type", - type: "string", - required: true, + "resourceType": { + "baseName": "resource_type", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourceResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.ts b/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.ts index 19bc6904b3b4..c608c4d0baa9 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.ts @@ -6,23 +6,28 @@ import { ConfluentResourceResponseAttributes } from "./ConfluentResourceResponseAttributes"; import { ConfluentResourceType } from "./ConfluentResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Confluent Cloud resource data. - */ +*/ export class ConfluentResourceResponseData { /** * Model representation of a Confluent Cloud resource. - */ + */ "attributes": ConfluentResourceResponseAttributes; /** * The ID associated with the Confluent resource. - */ + */ "id": string; /** * The JSON:API type for this request. - */ + */ "type": ConfluentResourceType; /** @@ -41,33 +46,59 @@ export class ConfluentResourceResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ConfluentResourceResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ConfluentResourceResponseAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ConfluentResourceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ConfluentResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourceResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConfluentResourceType.ts b/packages/datadog-api-client-v2/models/ConfluentResourceType.ts index 1da4916f0f26..748ca29e8870 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourceType.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourceType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for this request. - */ +*/ -export type ConfluentResourceType = - | typeof CONFLUENT_CLOUD_RESOURCES - | UnparsedObject; -export const CONFLUENT_CLOUD_RESOURCES = "confluent-cloud-resources"; +export type ConfluentResourceType = typeof CONFLUENT_CLOUD_RESOURCES | UnparsedObject; +export const CONFLUENT_CLOUD_RESOURCES = 'confluent-cloud-resources'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.ts b/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.ts index e6286fe7add1..20d5f97633e4 100644 --- a/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.ts +++ b/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.ts @@ -5,15 +5,20 @@ */ import { ConfluentResourceResponseData } from "./ConfluentResourceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response schema when interacting with a list of Confluent resources. - */ +*/ export class ConfluentResourcesResponse { /** * The JSON:API data attribute. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ConfluentResourcesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConfluentResourcesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Connection.ts b/packages/datadog-api-client-v2/models/Connection.ts index 85c00ddb7f99..5ad5569ed09b 100644 --- a/packages/datadog-api-client-v2/models/Connection.ts +++ b/packages/datadog-api-client-v2/models/Connection.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `Connection` object. - */ +*/ export class Connection { /** * The `Connection` `connectionId`. - */ + */ "connectionId": string; /** * The `Connection` `label`. - */ + */ "label": string; /** @@ -35,28 +40,54 @@ export class Connection { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - connectionId: { - baseName: "connectionId", - type: "string", - required: true, + "connectionId": { + "baseName": "connectionId", + "type": "string", + "required": true, }, - label: { - baseName: "label", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "label": { + "baseName": "label", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Connection.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConnectionEnv.ts b/packages/datadog-api-client-v2/models/ConnectionEnv.ts index 00b0acf2a54b..b11951c817b4 100644 --- a/packages/datadog-api-client-v2/models/ConnectionEnv.ts +++ b/packages/datadog-api-client-v2/models/ConnectionEnv.ts @@ -7,23 +7,28 @@ import { Connection } from "./Connection"; import { ConnectionEnvEnv } from "./ConnectionEnvEnv"; import { ConnectionGroup } from "./ConnectionGroup"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of connections or connection groups used in the workflow. - */ +*/ export class ConnectionEnv { /** * The `ConnectionEnv` `connectionGroups`. - */ + */ "connectionGroups"?: Array; /** * The `ConnectionEnv` `connections`. - */ + */ "connections"?: Array; /** * The definition of `ConnectionEnvEnv` object. - */ + */ "env": ConnectionEnvEnv; /** @@ -42,31 +47,57 @@ export class ConnectionEnv { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - connectionGroups: { - baseName: "connectionGroups", - type: "Array", - }, - connections: { - baseName: "connections", - type: "Array", + "connectionGroups": { + "baseName": "connectionGroups", + "type": "Array", }, - env: { - baseName: "env", - type: "ConnectionEnvEnv", - required: true, + "connections": { + "baseName": "connections", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "env": { + "baseName": "env", + "type": "ConnectionEnvEnv", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConnectionEnv.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConnectionEnvEnv.ts b/packages/datadog-api-client-v2/models/ConnectionEnvEnv.ts index 090a19853560..811e1f899122 100644 --- a/packages/datadog-api-client-v2/models/ConnectionEnvEnv.ts +++ b/packages/datadog-api-client-v2/models/ConnectionEnvEnv.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `ConnectionEnvEnv` object. - */ +*/ export type ConnectionEnvEnv = typeof DEFAULT | UnparsedObject; -export const DEFAULT = "default"; +export const DEFAULT = 'default'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ConnectionGroup.ts b/packages/datadog-api-client-v2/models/ConnectionGroup.ts index dd0900de1fb6..0f9a0f0a4010 100644 --- a/packages/datadog-api-client-v2/models/ConnectionGroup.ts +++ b/packages/datadog-api-client-v2/models/ConnectionGroup.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `ConnectionGroup` object. - */ +*/ export class ConnectionGroup { /** * The `ConnectionGroup` `connectionGroupId`. - */ + */ "connectionGroupId": string; /** * The `ConnectionGroup` `label`. - */ + */ "label": string; /** * The `ConnectionGroup` `tags`. - */ + */ "tags": Array; /** @@ -39,33 +44,59 @@ export class ConnectionGroup { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - connectionGroupId: { - baseName: "connectionGroupId", - type: "string", - required: true, - }, - label: { - baseName: "label", - type: "string", - required: true, + "connectionGroupId": { + "baseName": "connectionGroupId", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - required: true, + "label": { + "baseName": "label", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConnectionGroup.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Container.ts b/packages/datadog-api-client-v2/models/Container.ts index 4b3cb19381e0..bb8fd111d403 100644 --- a/packages/datadog-api-client-v2/models/Container.ts +++ b/packages/datadog-api-client-v2/models/Container.ts @@ -6,23 +6,28 @@ import { ContainerAttributes } from "./ContainerAttributes"; import { ContainerType } from "./ContainerType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Container object. - */ +*/ export class Container { /** * Attributes for a container. - */ + */ "attributes"?: ContainerAttributes; /** * Container ID. - */ + */ "id"?: string; /** * Type of container. - */ + */ "type"?: ContainerType; /** @@ -41,30 +46,56 @@ export class Container { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ContainerAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ContainerAttributes", }, - type: { - baseName: "type", - type: "ContainerType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ContainerType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Container.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerAttributes.ts b/packages/datadog-api-client-v2/models/ContainerAttributes.ts index f62da382be87..5d3c7a1c8aa5 100644 --- a/packages/datadog-api-client-v2/models/ContainerAttributes.ts +++ b/packages/datadog-api-client-v2/models/ContainerAttributes.ts @@ -4,51 +4,56 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for a container. - */ +*/ export class ContainerAttributes { /** * The ID of the container. - */ + */ "containerId"?: string; /** * Time the container was created. - */ + */ "createdAt"?: string; /** * Hostname of the host running the container. - */ + */ "host"?: string; /** * Digest of the compressed image manifest. - */ + */ "imageDigest"?: string; /** * Name of the associated container image. - */ + */ "imageName"?: string; /** * List of image tags associated with the container image. - */ + */ "imageTags"?: Array; /** * Name of the container. - */ + */ "name"?: string; /** * Time the container was started. - */ + */ "startedAt"?: string; /** * State of the container. This depends on the container runtime. - */ + */ "state"?: string; /** * List of tags associated with the container. - */ + */ "tags"?: Array; /** @@ -67,58 +72,84 @@ export class ContainerAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - containerId: { - baseName: "container_id", - type: "string", - }, - createdAt: { - baseName: "created_at", - type: "string", + "containerId": { + "baseName": "container_id", + "type": "string", }, - host: { - baseName: "host", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "string", }, - imageDigest: { - baseName: "image_digest", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - imageName: { - baseName: "image_name", - type: "string", + "imageDigest": { + "baseName": "image_digest", + "type": "string", }, - imageTags: { - baseName: "image_tags", - type: "Array", + "imageName": { + "baseName": "image_name", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "imageTags": { + "baseName": "image_tags", + "type": "Array", }, - startedAt: { - baseName: "started_at", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - state: { - baseName: "state", - type: "string", + "startedAt": { + "baseName": "started_at", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "state": { + "baseName": "state", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerGroup.ts b/packages/datadog-api-client-v2/models/ContainerGroup.ts index 1ba10aba1be4..b7b490bfc251 100644 --- a/packages/datadog-api-client-v2/models/ContainerGroup.ts +++ b/packages/datadog-api-client-v2/models/ContainerGroup.ts @@ -7,27 +7,32 @@ import { ContainerGroupAttributes } from "./ContainerGroupAttributes"; import { ContainerGroupRelationships } from "./ContainerGroupRelationships"; import { ContainerGroupType } from "./ContainerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Container group object. - */ +*/ export class ContainerGroup { /** * Attributes for a container group. - */ + */ "attributes"?: ContainerGroupAttributes; /** * Container Group ID. - */ + */ "id"?: string; /** * Relationships to containers inside a container group. - */ + */ "relationships"?: ContainerGroupRelationships; /** * Type of container group. - */ + */ "type"?: ContainerGroupType; /** @@ -46,34 +51,60 @@ export class ContainerGroup { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ContainerGroupAttributes", + "attributes": { + "baseName": "attributes", + "type": "ContainerGroupAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "ContainerGroupRelationships", + "relationships": { + "baseName": "relationships", + "type": "ContainerGroupRelationships", }, - type: { - baseName: "type", - type: "ContainerGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ContainerGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerGroup.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerGroupAttributes.ts b/packages/datadog-api-client-v2/models/ContainerGroupAttributes.ts index 8910a7b6b584..f842bedc98d2 100644 --- a/packages/datadog-api-client-v2/models/ContainerGroupAttributes.ts +++ b/packages/datadog-api-client-v2/models/ContainerGroupAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for a container group. - */ +*/ export class ContainerGroupAttributes { /** * Number of containers in the group. - */ + */ "count"?: number; /** * Tags from the group name parsed in key/value format. - */ + */ "tags"?: any; /** @@ -35,27 +40,53 @@ export class ContainerGroupAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - tags: { - baseName: "tags", - type: "any", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerGroupAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerGroupRelationships.ts b/packages/datadog-api-client-v2/models/ContainerGroupRelationships.ts index 64dd7753d139..9f0ecbc269ac 100644 --- a/packages/datadog-api-client-v2/models/ContainerGroupRelationships.ts +++ b/packages/datadog-api-client-v2/models/ContainerGroupRelationships.ts @@ -5,15 +5,20 @@ */ import { ContainerGroupRelationshipsLink } from "./ContainerGroupRelationshipsLink"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships to containers inside a container group. - */ +*/ export class ContainerGroupRelationships { /** * Relationships to Containers inside a Container Group. - */ + */ "containers"?: ContainerGroupRelationshipsLink; /** @@ -32,22 +37,48 @@ export class ContainerGroupRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - containers: { - baseName: "containers", - type: "ContainerGroupRelationshipsLink", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "containers": { + "baseName": "containers", + "type": "ContainerGroupRelationshipsLink", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerGroupRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLink.ts b/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLink.ts index 0f382bf09a6a..4fcc1a54c8c1 100644 --- a/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLink.ts +++ b/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLink.ts @@ -3,21 +3,27 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { ContainerGroupRelationshipsDataItem } from "./ContainerGroupRelationshipsDataItem"; import { ContainerGroupRelationshipsLinks } from "./ContainerGroupRelationshipsLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships to Containers inside a Container Group. - */ +*/ export class ContainerGroupRelationshipsLink { /** * Links data. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: ContainerGroupRelationshipsLinks; /** @@ -36,26 +42,52 @@ export class ContainerGroupRelationshipsLink { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - links: { - baseName: "links", - type: "ContainerGroupRelationshipsLinks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "links": { + "baseName": "links", + "type": "ContainerGroupRelationshipsLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerGroupRelationshipsLink.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLinks.ts b/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLinks.ts index 9bda5177a904..30247c1274f2 100644 --- a/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLinks.ts +++ b/packages/datadog-api-client-v2/models/ContainerGroupRelationshipsLinks.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class ContainerGroupRelationshipsLinks { /** * Link to related containers. - */ + */ "related"?: string; /** @@ -31,22 +36,48 @@ export class ContainerGroupRelationshipsLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - related: { - baseName: "related", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "related": { + "baseName": "related", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerGroupRelationshipsLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerGroupType.ts b/packages/datadog-api-client-v2/models/ContainerGroupType.ts index 2d1bba86a306..a30c10f195e5 100644 --- a/packages/datadog-api-client-v2/models/ContainerGroupType.ts +++ b/packages/datadog-api-client-v2/models/ContainerGroupType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of container group. - */ +*/ export type ContainerGroupType = typeof CONTAINER_GROUP | UnparsedObject; -export const CONTAINER_GROUP = "container_group"; +export const CONTAINER_GROUP = 'container_group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerImage.ts b/packages/datadog-api-client-v2/models/ContainerImage.ts index 96fe94132b9b..38292357f90a 100644 --- a/packages/datadog-api-client-v2/models/ContainerImage.ts +++ b/packages/datadog-api-client-v2/models/ContainerImage.ts @@ -6,23 +6,28 @@ import { ContainerImageAttributes } from "./ContainerImageAttributes"; import { ContainerImageType } from "./ContainerImageType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Container Image object. - */ +*/ export class ContainerImage { /** * Attributes for a Container Image. - */ + */ "attributes"?: ContainerImageAttributes; /** * Container Image ID. - */ + */ "id"?: string; /** * Type of Container Image. - */ + */ "type"?: ContainerImageType; /** @@ -41,30 +46,56 @@ export class ContainerImage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ContainerImageAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ContainerImageAttributes", }, - type: { - baseName: "type", - type: "ContainerImageType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ContainerImageType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageAttributes.ts b/packages/datadog-api-client-v2/models/ContainerImageAttributes.ts index a49e69a202d6..6167ef6dbf4b 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageAttributes.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageAttributes.ts @@ -6,82 +6,87 @@ import { ContainerImageFlavor } from "./ContainerImageFlavor"; import { ContainerImageVulnerabilities } from "./ContainerImageVulnerabilities"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for a Container Image. - */ +*/ export class ContainerImageAttributes { /** * Number of containers running the image. - */ + */ "containerCount"?: number; /** * List of platform-specific images associated with the image record. * The list contains more than 1 entry for multi-architecture images. - */ + */ "imageFlavors"?: Array; /** * List of image tags associated with the Container Image. - */ + */ "imageTags"?: Array; /** * List of build times associated with the Container Image. * The list contains more than 1 entry for multi-architecture images. - */ + */ "imagesBuiltAt"?: Array; /** * Name of the Container Image. - */ + */ "name"?: string; /** * List of Operating System architectures supported by the Container Image. - */ + */ "osArchitectures"?: Array; /** * List of Operating System names supported by the Container Image. - */ + */ "osNames"?: Array; /** * List of Operating System versions supported by the Container Image. - */ + */ "osVersions"?: Array; /** * Time the image was pushed to the container registry. - */ + */ "publishedAt"?: string; /** * Registry the Container Image was pushed to. - */ + */ "registry"?: string; /** * Digest of the compressed image manifest. - */ + */ "repoDigest"?: string; /** * Repository where the Container Image is stored in. - */ + */ "repository"?: string; /** * Short version of the Container Image name. - */ + */ "shortImage"?: string; /** * List of size for each platform-specific image associated with the image record. * The list contains more than 1 entry for multi-architecture images. - */ + */ "sizes"?: Array; /** * List of sources where the Container Image was collected from. - */ + */ "sources"?: Array; /** * List of tags associated with the Container Image. - */ + */ "tags"?: Array; /** * Vulnerability counts associated with the Container Image. - */ + */ "vulnerabilityCount"?: ContainerImageVulnerabilities; /** @@ -100,88 +105,114 @@ export class ContainerImageAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - containerCount: { - baseName: "container_count", - type: "number", - format: "int64", - }, - imageFlavors: { - baseName: "image_flavors", - type: "Array", - }, - imageTags: { - baseName: "image_tags", - type: "Array", - }, - imagesBuiltAt: { - baseName: "images_built_at", - type: "Array", - }, - name: { - baseName: "name", - type: "string", - }, - osArchitectures: { - baseName: "os_architectures", - type: "Array", - }, - osNames: { - baseName: "os_names", - type: "Array", - }, - osVersions: { - baseName: "os_versions", - type: "Array", - }, - publishedAt: { - baseName: "published_at", - type: "string", - }, - registry: { - baseName: "registry", - type: "string", - }, - repoDigest: { - baseName: "repo_digest", - type: "string", - }, - repository: { - baseName: "repository", - type: "string", - }, - shortImage: { - baseName: "short_image", - type: "string", - }, - sizes: { - baseName: "sizes", - type: "Array", - format: "int64", - }, - sources: { - baseName: "sources", - type: "Array", - }, - tags: { - baseName: "tags", - type: "Array", - }, - vulnerabilityCount: { - baseName: "vulnerability_count", - type: "ContainerImageVulnerabilities", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "containerCount": { + "baseName": "container_count", + "type": "number", + "format": "int64", + }, + "imageFlavors": { + "baseName": "image_flavors", + "type": "Array", + }, + "imageTags": { + "baseName": "image_tags", + "type": "Array", + }, + "imagesBuiltAt": { + "baseName": "images_built_at", + "type": "Array", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "osArchitectures": { + "baseName": "os_architectures", + "type": "Array", + }, + "osNames": { + "baseName": "os_names", + "type": "Array", + }, + "osVersions": { + "baseName": "os_versions", + "type": "Array", + }, + "publishedAt": { + "baseName": "published_at", + "type": "string", + }, + "registry": { + "baseName": "registry", + "type": "string", + }, + "repoDigest": { + "baseName": "repo_digest", + "type": "string", + }, + "repository": { + "baseName": "repository", + "type": "string", + }, + "shortImage": { + "baseName": "short_image", + "type": "string", + }, + "sizes": { + "baseName": "sizes", + "type": "Array", + "format": "int64", + }, + "sources": { + "baseName": "sources", + "type": "Array", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "vulnerabilityCount": { + "baseName": "vulnerability_count", + "type": "ContainerImageVulnerabilities", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageFlavor.ts b/packages/datadog-api-client-v2/models/ContainerImageFlavor.ts index d35cebb98f69..6b935959d306 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageFlavor.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageFlavor.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Container Image breakdown by supported platform. - */ +*/ export class ContainerImageFlavor { /** * Time the platform-specific Container Image was built. - */ + */ "builtAt"?: string; /** * Operating System architecture supported by the Container Image. - */ + */ "osArchitecture"?: string; /** * Operating System name supported by the Container Image. - */ + */ "osName"?: string; /** * Operating System version supported by the Container Image. - */ + */ "osVersion"?: string; /** * Size of the platform-specific Container Image. - */ + */ "size"?: number; /** @@ -47,39 +52,65 @@ export class ContainerImageFlavor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - builtAt: { - baseName: "built_at", - type: "string", + "builtAt": { + "baseName": "built_at", + "type": "string", }, - osArchitecture: { - baseName: "os_architecture", - type: "string", + "osArchitecture": { + "baseName": "os_architecture", + "type": "string", }, - osName: { - baseName: "os_name", - type: "string", + "osName": { + "baseName": "os_name", + "type": "string", }, - osVersion: { - baseName: "os_version", - type: "string", + "osVersion": { + "baseName": "os_version", + "type": "string", }, - size: { - baseName: "size", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageFlavor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageGroup.ts b/packages/datadog-api-client-v2/models/ContainerImageGroup.ts index 58481551cdfc..630f961c308c 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageGroup.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageGroup.ts @@ -7,27 +7,32 @@ import { ContainerImageGroupAttributes } from "./ContainerImageGroupAttributes"; import { ContainerImageGroupRelationships } from "./ContainerImageGroupRelationships"; import { ContainerImageGroupType } from "./ContainerImageGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Container Image Group object. - */ +*/ export class ContainerImageGroup { /** * Attributes for a Container Image Group. - */ + */ "attributes"?: ContainerImageGroupAttributes; /** * Container Image Group ID. - */ + */ "id"?: string; /** * Relationships inside a Container Image Group. - */ + */ "relationships"?: ContainerImageGroupRelationships; /** * Type of Container Image Group. - */ + */ "type"?: ContainerImageGroupType; /** @@ -46,34 +51,60 @@ export class ContainerImageGroup { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ContainerImageGroupAttributes", + "attributes": { + "baseName": "attributes", + "type": "ContainerImageGroupAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "ContainerImageGroupRelationships", + "relationships": { + "baseName": "relationships", + "type": "ContainerImageGroupRelationships", }, - type: { - baseName: "type", - type: "ContainerImageGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ContainerImageGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageGroup.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.ts b/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.ts index 87ce4778157e..5ad2841d9c6c 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for a Container Image Group. - */ +*/ export class ContainerImageGroupAttributes { /** * Number of Container Images in the group. - */ + */ "count"?: number; /** * Name of the Container Image group. - */ + */ "name"?: string; /** * Tags from the group name parsed in key/value format. - */ + */ "tags"?: any; /** @@ -39,31 +44,57 @@ export class ContainerImageGroupAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", - }, - name: { - baseName: "name", - type: "string", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - tags: { - baseName: "tags", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageGroupAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.ts b/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.ts index 1f7e8452c029..963c5f4c34b3 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.ts @@ -3,21 +3,27 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { ContainerImageGroupRelationshipsDataItem } from "./ContainerImageGroupRelationshipsDataItem"; import { ContainerImageGroupRelationshipsLinks } from "./ContainerImageGroupRelationshipsLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships to Container Images inside a Container Image Group. - */ +*/ export class ContainerImageGroupImagesRelationshipsLink { /** * Links data. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: ContainerImageGroupRelationshipsLinks; /** @@ -36,26 +42,52 @@ export class ContainerImageGroupImagesRelationshipsLink { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - links: { - baseName: "links", - type: "ContainerImageGroupRelationshipsLinks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "links": { + "baseName": "links", + "type": "ContainerImageGroupRelationshipsLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageGroupImagesRelationshipsLink.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.ts b/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.ts index b2ef24edf367..310a928fe8f4 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.ts @@ -5,15 +5,20 @@ */ import { ContainerImageGroupImagesRelationshipsLink } from "./ContainerImageGroupImagesRelationshipsLink"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships inside a Container Image Group. - */ +*/ export class ContainerImageGroupRelationships { /** * Relationships to Container Images inside a Container Image Group. - */ + */ "containerImages"?: ContainerImageGroupImagesRelationshipsLink; /** @@ -32,22 +37,48 @@ export class ContainerImageGroupRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - containerImages: { - baseName: "container_images", - type: "ContainerImageGroupImagesRelationshipsLink", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "containerImages": { + "baseName": "container_images", + "type": "ContainerImageGroupImagesRelationshipsLink", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageGroupRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.ts b/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.ts index 2653f43da157..41b9fb2cbf12 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class ContainerImageGroupRelationshipsLinks { /** * Link to related Container Images. - */ + */ "related"?: string; /** @@ -31,22 +36,48 @@ export class ContainerImageGroupRelationshipsLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - related: { - baseName: "related", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "related": { + "baseName": "related", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageGroupRelationshipsLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageGroupType.ts b/packages/datadog-api-client-v2/models/ContainerImageGroupType.ts index 7bad39c13510..416739118d7b 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageGroupType.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageGroupType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Container Image Group. - */ +*/ -export type ContainerImageGroupType = - | typeof CONTAINER_IMAGE_GROUP - | UnparsedObject; -export const CONTAINER_IMAGE_GROUP = "container_image_group"; +export type ContainerImageGroupType = typeof CONTAINER_IMAGE_GROUP | UnparsedObject; +export const CONTAINER_IMAGE_GROUP = 'container_image_group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerImageItem.ts b/packages/datadog-api-client-v2/models/ContainerImageItem.ts index df23f367870c..2ec2fe316add 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageItem.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageItem.ts @@ -6,13 +6,15 @@ import { ContainerImage } from "./ContainerImage"; import { ContainerImageGroup } from "./ContainerImageGroup"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Possible Container Image models. - */ +*/ -export type ContainerImageItem = - | ContainerImage - | ContainerImageGroup - | UnparsedObject; +export type ContainerImageItem = ContainerImage | ContainerImageGroup | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerImageMeta.ts b/packages/datadog-api-client-v2/models/ContainerImageMeta.ts index 62a1f85f815d..d32021527a48 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageMeta.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageMeta.ts @@ -5,15 +5,20 @@ */ import { ContainerImageMetaPage } from "./ContainerImageMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response metadata object. - */ +*/ export class ContainerImageMeta { /** * Paging attributes. - */ + */ "pagination"?: ContainerImageMetaPage; /** @@ -32,22 +37,48 @@ export class ContainerImageMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "ContainerImageMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "ContainerImageMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageMetaPage.ts b/packages/datadog-api-client-v2/models/ContainerImageMetaPage.ts index 1be1e46b7e0b..9c841694fcda 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageMetaPage.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageMetaPage.ts @@ -5,35 +5,40 @@ */ import { ContainerImageMetaPageType } from "./ContainerImageMetaPageType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class ContainerImageMetaPage { /** * The cursor used to get the current results, if any. - */ + */ "cursor"?: string; /** * Number of results returned - */ + */ "limit"?: number; /** * The cursor used to get the next results, if any. - */ + */ "nextCursor"?: string; /** * The cursor used to get the previous results, if any. - */ + */ "prevCursor"?: string; /** * Total number of records that match the query. - */ + */ "total"?: number; /** * Type of Container Image pagination. - */ + */ "type"?: ContainerImageMetaPageType; /** @@ -52,44 +57,70 @@ export class ContainerImageMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", - }, - limit: { - baseName: "limit", - type: "number", - format: "int32", + "cursor": { + "baseName": "cursor", + "type": "string", }, - nextCursor: { - baseName: "next_cursor", - type: "string", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, - prevCursor: { - baseName: "prev_cursor", - type: "string", + "nextCursor": { + "baseName": "next_cursor", + "type": "string", }, - total: { - baseName: "total", - type: "number", - format: "int64", + "prevCursor": { + "baseName": "prev_cursor", + "type": "string", }, - type: { - baseName: "type", - type: "ContainerImageMetaPageType", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ContainerImageMetaPageType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.ts b/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.ts index 8818856565d2..3486b04ff312 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Container Image pagination. - */ +*/ export type ContainerImageMetaPageType = typeof CURSOR_LIMIT | UnparsedObject; -export const CURSOR_LIMIT = "cursor_limit"; +export const CURSOR_LIMIT = 'cursor_limit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerImageType.ts b/packages/datadog-api-client-v2/models/ContainerImageType.ts index ea7827c3b652..51f7353ed091 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageType.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Container Image. - */ +*/ export type ContainerImageType = typeof CONTAINER_IMAGE | UnparsedObject; -export const CONTAINER_IMAGE = "container_image"; +export const CONTAINER_IMAGE = 'container_image'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.ts b/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.ts index 73991810a851..f35bc5f2c902 100644 --- a/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.ts +++ b/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability counts associated with the Container Image. - */ +*/ export class ContainerImageVulnerabilities { /** * ID of the Container Image. - */ + */ "assetId"?: string; /** * Number of vulnerabilities with CVSS Critical severity. - */ + */ "critical"?: number; /** * Number of vulnerabilities with CVSS High severity. - */ + */ "high"?: number; /** * Number of vulnerabilities with CVSS Low severity. - */ + */ "low"?: number; /** * Number of vulnerabilities with CVSS Medium severity. - */ + */ "medium"?: number; /** * Number of vulnerabilities with CVSS None severity. - */ + */ "none"?: number; /** * Number of vulnerabilities with an unknown CVSS severity. - */ + */ "unknown"?: number; /** @@ -55,52 +60,78 @@ export class ContainerImageVulnerabilities { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assetId: { - baseName: "asset_id", - type: "string", - }, - critical: { - baseName: "critical", - type: "number", - format: "int64", + "assetId": { + "baseName": "asset_id", + "type": "string", }, - high: { - baseName: "high", - type: "number", - format: "int64", + "critical": { + "baseName": "critical", + "type": "number", + "format": "int64", }, - low: { - baseName: "low", - type: "number", - format: "int64", + "high": { + "baseName": "high", + "type": "number", + "format": "int64", }, - medium: { - baseName: "medium", - type: "number", - format: "int64", + "low": { + "baseName": "low", + "type": "number", + "format": "int64", }, - none: { - baseName: "none", - type: "number", - format: "int64", + "medium": { + "baseName": "medium", + "type": "number", + "format": "int64", }, - unknown: { - baseName: "unknown", - type: "number", - format: "int64", + "none": { + "baseName": "none", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unknown": { + "baseName": "unknown", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImageVulnerabilities.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImagesResponse.ts b/packages/datadog-api-client-v2/models/ContainerImagesResponse.ts index a7085dc47467..3ac62fc5ef71 100644 --- a/packages/datadog-api-client-v2/models/ContainerImagesResponse.ts +++ b/packages/datadog-api-client-v2/models/ContainerImagesResponse.ts @@ -7,23 +7,28 @@ import { ContainerImageItem } from "./ContainerImageItem"; import { ContainerImageMeta } from "./ContainerImageMeta"; import { ContainerImagesResponseLinks } from "./ContainerImagesResponseLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of Container Images. - */ +*/ export class ContainerImagesResponse { /** * Array of Container Image objects. - */ + */ "data"?: Array; /** * Pagination links. - */ + */ "links"?: ContainerImagesResponseLinks; /** * Response metadata object. - */ + */ "meta"?: ContainerImageMeta; /** @@ -42,30 +47,56 @@ export class ContainerImagesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "ContainerImagesResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ContainerImageMeta", + "links": { + "baseName": "links", + "type": "ContainerImagesResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ContainerImageMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImagesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.ts b/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.ts index 3e8c7f764b20..fbc43b600b31 100644 --- a/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination links. - */ +*/ export class ContainerImagesResponseLinks { /** * Link to the first page. - */ + */ "first"?: string; /** * Link to the last page. - */ + */ "last"?: string; /** * Link to the next page. - */ + */ "next"?: string; /** * Link to previous page. - */ + */ "prev"?: string; /** * Link to current page. - */ + */ "self"?: string; /** @@ -47,38 +52,64 @@ export class ContainerImagesResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", + "last": { + "baseName": "last", + "type": "string", }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - prev: { - baseName: "prev", - type: "string", + "prev": { + "baseName": "prev", + "type": "string", }, - self: { - baseName: "self", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerImagesResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerItem.ts b/packages/datadog-api-client-v2/models/ContainerItem.ts index 0db605169448..7634e6188053 100644 --- a/packages/datadog-api-client-v2/models/ContainerItem.ts +++ b/packages/datadog-api-client-v2/models/ContainerItem.ts @@ -6,10 +6,15 @@ import { Container } from "./Container"; import { ContainerGroup } from "./ContainerGroup"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Possible Container models. - */ +*/ -export type ContainerItem = Container | ContainerGroup | UnparsedObject; +export type ContainerItem = Container | ContainerGroup | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerMeta.ts b/packages/datadog-api-client-v2/models/ContainerMeta.ts index 013134b74d45..540245c3321d 100644 --- a/packages/datadog-api-client-v2/models/ContainerMeta.ts +++ b/packages/datadog-api-client-v2/models/ContainerMeta.ts @@ -5,15 +5,20 @@ */ import { ContainerMetaPage } from "./ContainerMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response metadata object. - */ +*/ export class ContainerMeta { /** * Paging attributes. - */ + */ "pagination"?: ContainerMetaPage; /** @@ -32,22 +37,48 @@ export class ContainerMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "ContainerMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "ContainerMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerMetaPage.ts b/packages/datadog-api-client-v2/models/ContainerMetaPage.ts index 03fd1dc547e8..9cef28466499 100644 --- a/packages/datadog-api-client-v2/models/ContainerMetaPage.ts +++ b/packages/datadog-api-client-v2/models/ContainerMetaPage.ts @@ -5,35 +5,40 @@ */ import { ContainerMetaPageType } from "./ContainerMetaPageType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class ContainerMetaPage { /** * The cursor used to get the current results, if any. - */ + */ "cursor"?: string; /** * Number of results returned - */ + */ "limit"?: number; /** * The cursor used to get the next results, if any. - */ + */ "nextCursor"?: string; /** * The cursor used to get the previous results, if any. - */ + */ "prevCursor"?: string; /** * Total number of records that match the query. - */ + */ "total"?: number; /** * Type of Container pagination. - */ + */ "type"?: ContainerMetaPageType; /** @@ -52,44 +57,70 @@ export class ContainerMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", - }, - limit: { - baseName: "limit", - type: "number", - format: "int32", + "cursor": { + "baseName": "cursor", + "type": "string", }, - nextCursor: { - baseName: "next_cursor", - type: "string", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, - prevCursor: { - baseName: "prev_cursor", - type: "string", + "nextCursor": { + "baseName": "next_cursor", + "type": "string", }, - total: { - baseName: "total", - type: "number", - format: "int64", + "prevCursor": { + "baseName": "prev_cursor", + "type": "string", }, - type: { - baseName: "type", - type: "ContainerMetaPageType", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ContainerMetaPageType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainerMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainerMetaPageType.ts b/packages/datadog-api-client-v2/models/ContainerMetaPageType.ts index 498f026e5ffc..97fbecf3f97e 100644 --- a/packages/datadog-api-client-v2/models/ContainerMetaPageType.ts +++ b/packages/datadog-api-client-v2/models/ContainerMetaPageType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of Container pagination. - */ +*/ export type ContainerMetaPageType = typeof CURSOR_LIMIT | UnparsedObject; -export const CURSOR_LIMIT = "cursor_limit"; +export const CURSOR_LIMIT = 'cursor_limit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainerType.ts b/packages/datadog-api-client-v2/models/ContainerType.ts index a952b7b028ee..693eeaf11c19 100644 --- a/packages/datadog-api-client-v2/models/ContainerType.ts +++ b/packages/datadog-api-client-v2/models/ContainerType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of container. - */ +*/ export type ContainerType = typeof CONTAINER | UnparsedObject; -export const CONTAINER = "container"; +export const CONTAINER = 'container'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ContainersResponse.ts b/packages/datadog-api-client-v2/models/ContainersResponse.ts index ec2c4847d614..22802b487a37 100644 --- a/packages/datadog-api-client-v2/models/ContainersResponse.ts +++ b/packages/datadog-api-client-v2/models/ContainersResponse.ts @@ -7,23 +7,28 @@ import { ContainerItem } from "./ContainerItem"; import { ContainerMeta } from "./ContainerMeta"; import { ContainersResponseLinks } from "./ContainersResponseLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of containers. - */ +*/ export class ContainersResponse { /** * Array of Container objects. - */ + */ "data"?: Array; /** * Pagination links. - */ + */ "links"?: ContainersResponseLinks; /** * Response metadata object. - */ + */ "meta"?: ContainerMeta; /** @@ -42,30 +47,56 @@ export class ContainersResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "ContainersResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ContainerMeta", + "links": { + "baseName": "links", + "type": "ContainersResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ContainerMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainersResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContainersResponseLinks.ts b/packages/datadog-api-client-v2/models/ContainersResponseLinks.ts index ff2b1e4399d5..ded9e43a7b30 100644 --- a/packages/datadog-api-client-v2/models/ContainersResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/ContainersResponseLinks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination links. - */ +*/ export class ContainersResponseLinks { /** * Link to the first page. - */ + */ "first"?: string; /** * Link to the last page. - */ + */ "last"?: string; /** * Link to the next page. - */ + */ "next"?: string; /** * Link to previous page. - */ + */ "prev"?: string; /** * Link to current page. - */ + */ "self"?: string; /** @@ -47,38 +52,64 @@ export class ContainersResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", + "last": { + "baseName": "last", + "type": "string", }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - prev: { - baseName: "prev", - type: "string", + "prev": { + "baseName": "prev", + "type": "string", }, - self: { - baseName: "self", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ContainersResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ContentEncoding.ts b/packages/datadog-api-client-v2/models/ContentEncoding.ts index c9a9d7d2900b..bcf81796eae6 100644 --- a/packages/datadog-api-client-v2/models/ContentEncoding.ts +++ b/packages/datadog-api-client-v2/models/ContentEncoding.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * HTTP header used to compress the media-type. - */ +*/ -export type ContentEncoding = - | typeof IDENTITY - | typeof GZIP - | typeof DEFLATE - | UnparsedObject; -export const IDENTITY = "identity"; -export const GZIP = "gzip"; -export const DEFLATE = "deflate"; +export type ContentEncoding = typeof IDENTITY| typeof GZIP| typeof DEFLATE | UnparsedObject; +export const IDENTITY = 'identity'; +export const GZIP = 'gzip'; +export const DEFLATE = 'deflate'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.ts b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.ts index 849f93de1ad1..90babcde9c8b 100644 --- a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.ts +++ b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.ts @@ -5,31 +5,36 @@ */ import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for converting historical job results to signals. - */ +*/ export class ConvertJobResultsToSignalsAttributes { /** * Request ID. - */ + */ "id"?: string; /** * Job result IDs. - */ + */ "jobResultIds": Array; /** * Notifications sent. - */ + */ "notifications": Array; /** * Message of generated signals. - */ + */ "signalMessage": string; /** * Severity of the Security Signal. - */ + */ "signalSeverity": SecurityMonitoringRuleSeverity; /** @@ -48,42 +53,68 @@ export class ConvertJobResultsToSignalsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - jobResultIds: { - baseName: "jobResultIds", - type: "Array", - required: true, + "jobResultIds": { + "baseName": "jobResultIds", + "type": "Array", + "required": true, }, - notifications: { - baseName: "notifications", - type: "Array", - required: true, + "notifications": { + "baseName": "notifications", + "type": "Array", + "required": true, }, - signalMessage: { - baseName: "signalMessage", - type: "string", - required: true, + "signalMessage": { + "baseName": "signalMessage", + "type": "string", + "required": true, }, - signalSeverity: { - baseName: "signalSeverity", - type: "SecurityMonitoringRuleSeverity", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "signalSeverity": { + "baseName": "signalSeverity", + "type": "SecurityMonitoringRuleSeverity", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConvertJobResultsToSignalsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.ts b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.ts index c826a39b15de..144ffada7aeb 100644 --- a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.ts +++ b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.ts @@ -6,19 +6,24 @@ import { ConvertJobResultsToSignalsAttributes } from "./ConvertJobResultsToSignalsAttributes"; import { ConvertJobResultsToSignalsDataType } from "./ConvertJobResultsToSignalsDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for converting historical job results to signals. - */ +*/ export class ConvertJobResultsToSignalsData { /** * Attributes for converting historical job results to signals. - */ + */ "attributes"?: ConvertJobResultsToSignalsAttributes; /** * Type of payload. - */ + */ "type"?: ConvertJobResultsToSignalsDataType; /** @@ -37,26 +42,52 @@ export class ConvertJobResultsToSignalsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ConvertJobResultsToSignalsAttributes", + "attributes": { + "baseName": "attributes", + "type": "ConvertJobResultsToSignalsAttributes", }, - type: { - baseName: "type", - type: "ConvertJobResultsToSignalsDataType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ConvertJobResultsToSignalsDataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConvertJobResultsToSignalsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.ts b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.ts index 678ee492cbda..f0666fd7e3c4 100644 --- a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.ts +++ b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.ts @@ -4,14 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of payload. - */ +*/ -export type ConvertJobResultsToSignalsDataType = - | typeof HISTORICALDETECTIONSJOBRESULTSIGNALCONVERSION - | UnparsedObject; -export const HISTORICALDETECTIONSJOBRESULTSIGNALCONVERSION = - "historicalDetectionsJobResultSignalConversion"; +export type ConvertJobResultsToSignalsDataType = typeof HISTORICALDETECTIONSJOBRESULTSIGNALCONVERSION | UnparsedObject; +export const HISTORICALDETECTIONSJOBRESULTSIGNALCONVERSION = 'historicalDetectionsJobResultSignalConversion'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.ts b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.ts index 65c59c81e6fb..d0010e52bdff 100644 --- a/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.ts +++ b/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.ts @@ -5,15 +5,20 @@ */ import { ConvertJobResultsToSignalsData } from "./ConvertJobResultsToSignalsData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request for converting historical job results to signals. - */ +*/ export class ConvertJobResultsToSignalsRequest { /** * Data for converting historical job results to signals. - */ + */ "data"?: ConvertJobResultsToSignalsData; /** @@ -32,22 +37,48 @@ export class ConvertJobResultsToSignalsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ConvertJobResultsToSignalsData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ConvertJobResultsToSignalsData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ConvertJobResultsToSignalsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.ts b/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.ts index 734ba5be6e57..c5e333e0205b 100644 --- a/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.ts +++ b/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing the aggregates. - */ +*/ export class CostAttributionAggregatesBody { /** * The aggregate type. - */ + */ "aggType"?: string; /** * The field. - */ + */ "field"?: string; /** * The value for a given field. - */ + */ "value"?: number; /** @@ -39,31 +44,57 @@ export class CostAttributionAggregatesBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggType: { - baseName: "agg_type", - type: "string", - }, - field: { - baseName: "field", - type: "string", + "aggType": { + "baseName": "agg_type", + "type": "string", }, - value: { - baseName: "value", - type: "number", - format: "double", + "field": { + "baseName": "field", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CostAttributionAggregatesBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CostAttributionType.ts b/packages/datadog-api-client-v2/models/CostAttributionType.ts index 507634578763..34ea5d101094 100644 --- a/packages/datadog-api-client-v2/models/CostAttributionType.ts +++ b/packages/datadog-api-client-v2/models/CostAttributionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of cost attribution data. - */ +*/ export type CostAttributionType = typeof COST_BY_TAG | UnparsedObject; -export const COST_BY_TAG = "cost_by_tag"; +export const COST_BY_TAG = 'cost_by_tag'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CostByOrg.ts b/packages/datadog-api-client-v2/models/CostByOrg.ts index c6e1488ac79c..106d2fd458e8 100644 --- a/packages/datadog-api-client-v2/models/CostByOrg.ts +++ b/packages/datadog-api-client-v2/models/CostByOrg.ts @@ -6,23 +6,28 @@ import { CostByOrgAttributes } from "./CostByOrgAttributes"; import { CostByOrgType } from "./CostByOrgType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cost data. - */ +*/ export class CostByOrg { /** * Cost attributes data. - */ + */ "attributes"?: CostByOrgAttributes; /** * Unique ID of the response. - */ + */ "id"?: string; /** * Type of cost data. - */ + */ "type"?: CostByOrgType; /** @@ -41,30 +46,56 @@ export class CostByOrg { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CostByOrgAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CostByOrgAttributes", }, - type: { - baseName: "type", - type: "CostByOrgType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CostByOrgType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CostByOrg.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CostByOrgAttributes.ts b/packages/datadog-api-client-v2/models/CostByOrgAttributes.ts index 6c17955eaf09..91d1c5ea106b 100644 --- a/packages/datadog-api-client-v2/models/CostByOrgAttributes.ts +++ b/packages/datadog-api-client-v2/models/CostByOrgAttributes.ts @@ -5,43 +5,48 @@ */ import { ChargebackBreakdown } from "./ChargebackBreakdown"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cost attributes data. - */ +*/ export class CostByOrgAttributes { /** * The account name. - */ + */ "accountName"?: string; /** * The account public ID. - */ + */ "accountPublicId"?: string; /** * List of charges data reported for the requested month. - */ + */ "charges"?: Array; /** * The month requested. - */ + */ "date"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The region of the Datadog instance that the organization belongs to. - */ + */ "region"?: string; /** * The total cost of products for the month. - */ + */ "totalCost"?: number; /** @@ -60,52 +65,78 @@ export class CostByOrgAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountName: { - baseName: "account_name", - type: "string", + "accountName": { + "baseName": "account_name", + "type": "string", }, - accountPublicId: { - baseName: "account_public_id", - type: "string", + "accountPublicId": { + "baseName": "account_public_id", + "type": "string", }, - charges: { - baseName: "charges", - type: "Array", + "charges": { + "baseName": "charges", + "type": "Array", }, - date: { - baseName: "date", - type: "Date", - format: "date-time", + "date": { + "baseName": "date", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "region": { + "baseName": "region", + "type": "string", }, - totalCost: { - baseName: "total_cost", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCost": { + "baseName": "total_cost", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CostByOrgAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CostByOrgResponse.ts b/packages/datadog-api-client-v2/models/CostByOrgResponse.ts index 012d7efc7375..9795bc56d81e 100644 --- a/packages/datadog-api-client-v2/models/CostByOrgResponse.ts +++ b/packages/datadog-api-client-v2/models/CostByOrgResponse.ts @@ -5,15 +5,20 @@ */ import { CostByOrg } from "./CostByOrg"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Chargeback Summary response. - */ +*/ export class CostByOrgResponse { /** * Response containing Chargeback Summary. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class CostByOrgResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CostByOrgResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CostByOrgType.ts b/packages/datadog-api-client-v2/models/CostByOrgType.ts index dba4ee553222..79c56ca2a833 100644 --- a/packages/datadog-api-client-v2/models/CostByOrgType.ts +++ b/packages/datadog-api-client-v2/models/CostByOrgType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of cost data. - */ +*/ export type CostByOrgType = typeof COST_BY_ORG | UnparsedObject; -export const COST_BY_ORG = "cost_by_org"; +export const COST_BY_ORG = 'cost_by_org'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.ts b/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.ts index 2c1794cb826c..6b0ebe0d3339 100644 --- a/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.ts +++ b/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.ts @@ -5,15 +5,20 @@ */ import { ActionConnectionData } from "./ActionConnectionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to create an action connection. - */ +*/ export class CreateActionConnectionRequest { /** * Data related to the connection. - */ + */ "data": ActionConnectionData; /** @@ -32,23 +37,49 @@ export class CreateActionConnectionRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ActionConnectionData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ActionConnectionData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateActionConnectionRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.ts b/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.ts index fc8ccb777409..60a38a9ab06f 100644 --- a/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.ts +++ b/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.ts @@ -5,15 +5,20 @@ */ import { ActionConnectionData } from "./ActionConnectionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response for a created connection - */ +*/ export class CreateActionConnectionResponse { /** * Data related to the connection. - */ + */ "data"?: ActionConnectionData; /** @@ -32,22 +37,48 @@ export class CreateActionConnectionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ActionConnectionData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ActionConnectionData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateActionConnectionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateAppRequest.ts b/packages/datadog-api-client-v2/models/CreateAppRequest.ts index af78c682db09..385518cadd89 100644 --- a/packages/datadog-api-client-v2/models/CreateAppRequest.ts +++ b/packages/datadog-api-client-v2/models/CreateAppRequest.ts @@ -5,15 +5,20 @@ */ import { CreateAppRequestData } from "./CreateAppRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request object for creating a new app. - */ +*/ export class CreateAppRequest { /** * The data object containing the app definition. - */ + */ "data"?: CreateAppRequestData; /** @@ -32,22 +37,48 @@ export class CreateAppRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateAppRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateAppRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateAppRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateAppRequestData.ts b/packages/datadog-api-client-v2/models/CreateAppRequestData.ts index ed9db0faee7b..a57c887b51c3 100644 --- a/packages/datadog-api-client-v2/models/CreateAppRequestData.ts +++ b/packages/datadog-api-client-v2/models/CreateAppRequestData.ts @@ -6,19 +6,24 @@ import { AppDefinitionType } from "./AppDefinitionType"; import { CreateAppRequestDataAttributes } from "./CreateAppRequestDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object containing the app definition. - */ +*/ export class CreateAppRequestData { /** * App definition attributes such as name, description, and components. - */ + */ "attributes"?: CreateAppRequestDataAttributes; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -37,27 +42,53 @@ export class CreateAppRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CreateAppRequestDataAttributes", + "attributes": { + "baseName": "attributes", + "type": "CreateAppRequestDataAttributes", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateAppRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.ts index 7b21b6781093..26abb9e65e15 100644 --- a/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.ts @@ -6,35 +6,40 @@ import { ComponentGrid } from "./ComponentGrid"; import { Query } from "./Query"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * App definition attributes such as name, description, and components. - */ +*/ export class CreateAppRequestDataAttributes { /** * The UI components that make up the app. - */ + */ "components"?: Array; /** * A human-readable description for the app. - */ + */ "description"?: string; /** * The name of the app. - */ + */ "name"?: string; /** * An array of queries, such as external actions and state variables, that the app uses. - */ + */ "queries"?: Array; /** * The name of the root component of the app. This must be a `grid` component that contains all other components. - */ + */ "rootInstanceName"?: string; /** * A list of tags for the app, which can be used to filter apps. - */ + */ "tags"?: Array; /** @@ -53,42 +58,68 @@ export class CreateAppRequestDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - components: { - baseName: "components", - type: "Array", - }, - description: { - baseName: "description", - type: "string", + "components": { + "baseName": "components", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - queries: { - baseName: "queries", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - rootInstanceName: { - baseName: "rootInstanceName", - type: "string", + "queries": { + "baseName": "queries", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "rootInstanceName": { + "baseName": "rootInstanceName", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateAppRequestDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateAppResponse.ts b/packages/datadog-api-client-v2/models/CreateAppResponse.ts index df14b0391b52..2c8584ce215b 100644 --- a/packages/datadog-api-client-v2/models/CreateAppResponse.ts +++ b/packages/datadog-api-client-v2/models/CreateAppResponse.ts @@ -5,15 +5,20 @@ */ import { CreateAppResponseData } from "./CreateAppResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after a new app is successfully created, with the app ID. - */ +*/ export class CreateAppResponse { /** * The data object containing the app ID. - */ + */ "data"?: CreateAppResponseData; /** @@ -32,22 +37,48 @@ export class CreateAppResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateAppResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateAppResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateAppResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateAppResponseData.ts b/packages/datadog-api-client-v2/models/CreateAppResponseData.ts index 23c8ab3b0acd..cc4075aa9327 100644 --- a/packages/datadog-api-client-v2/models/CreateAppResponseData.ts +++ b/packages/datadog-api-client-v2/models/CreateAppResponseData.ts @@ -5,19 +5,24 @@ */ import { AppDefinitionType } from "./AppDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object containing the app ID. - */ +*/ export class CreateAppResponseData { /** * The ID of the created app. - */ + */ "id": string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -36,29 +41,55 @@ export class CreateAppResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateAppResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.ts b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.ts index 03ac3b956d99..f198304209b8 100644 --- a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.ts +++ b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.ts @@ -5,15 +5,20 @@ */ import { CreateDataDeletionRequestBodyData } from "./CreateDataDeletionRequestBodyData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object needed to create a data deletion request. - */ +*/ export class CreateDataDeletionRequestBody { /** * Data needed to create a data deletion request. - */ + */ "data": CreateDataDeletionRequestBodyData; /** @@ -32,23 +37,49 @@ export class CreateDataDeletionRequestBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateDataDeletionRequestBodyData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateDataDeletionRequestBodyData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateDataDeletionRequestBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.ts b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.ts index 1c7d82c1e553..543aad31be23 100644 --- a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.ts +++ b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for creating a data deletion request. - */ +*/ export class CreateDataDeletionRequestBodyAttributes { /** * Start of requested time window, milliseconds since Unix epoch. - */ + */ "from": number; /** * List of indexes for the search. If not provided, the search is performed in all indexes. - */ + */ "indexes"?: Array; /** * Query for creating a data deletion request. - */ - "query": { [key: string]: string }; + */ + "query": { [key: string]: string; }; /** * End of requested time window, milliseconds since Unix epoch. - */ + */ "to": number; /** @@ -43,39 +48,65 @@ export class CreateDataDeletionRequestBodyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", + "from": { + "baseName": "from", + "type": "number", + "required": true, + "format": "int64", }, - indexes: { - baseName: "indexes", - type: "Array", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - query: { - baseName: "query", - type: "{ [key: string]: string; }", - required: true, + "query": { + "baseName": "query", + "type": "{ [key: string]: string; }", + "required": true, }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateDataDeletionRequestBodyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.ts b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.ts index 7835fdcdf738..5013b7f335cb 100644 --- a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.ts +++ b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.ts @@ -6,19 +6,24 @@ import { CreateDataDeletionRequestBodyAttributes } from "./CreateDataDeletionRequestBodyAttributes"; import { CreateDataDeletionRequestBodyDataType } from "./CreateDataDeletionRequestBodyDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data needed to create a data deletion request. - */ +*/ export class CreateDataDeletionRequestBodyData { /** * Attributes for creating a data deletion request. - */ + */ "attributes": CreateDataDeletionRequestBodyAttributes; /** * The deletion request type. - */ + */ "type": CreateDataDeletionRequestBodyDataType; /** @@ -37,28 +42,54 @@ export class CreateDataDeletionRequestBodyData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CreateDataDeletionRequestBodyAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CreateDataDeletionRequestBodyAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CreateDataDeletionRequestBodyDataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CreateDataDeletionRequestBodyDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateDataDeletionRequestBodyData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.ts b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.ts index 825078ac8f93..028178da3a22 100644 --- a/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.ts +++ b/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The deletion request type. - */ +*/ -export type CreateDataDeletionRequestBodyDataType = - | typeof CREATE_DELETION_REQ - | UnparsedObject; -export const CREATE_DELETION_REQ = "create_deletion_req"; +export type CreateDataDeletionRequestBodyDataType = typeof CREATE_DELETION_REQ | UnparsedObject; +export const CREATE_DELETION_REQ = 'create_deletion_req'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.ts b/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.ts index 1006e9073e7d..e8fd89b5bbc1 100644 --- a/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.ts +++ b/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.ts @@ -6,19 +6,24 @@ import { DataDeletionResponseItem } from "./DataDeletionResponseItem"; import { DataDeletionResponseMeta } from "./DataDeletionResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response from the create data deletion request endpoint. - */ +*/ export class CreateDataDeletionResponseBody { /** * The created data deletion request information. - */ + */ "data"?: DataDeletionResponseItem; /** * The metadata of the data deletion response. - */ + */ "meta"?: DataDeletionResponseMeta; /** @@ -37,26 +42,52 @@ export class CreateDataDeletionResponseBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DataDeletionResponseItem", + "data": { + "baseName": "data", + "type": "DataDeletionResponseItem", }, - meta: { - baseName: "meta", - type: "DataDeletionResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "DataDeletionResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateDataDeletionResponseBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.ts b/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.ts index 6bf3bdc7c54a..925b8ca1ab85 100644 --- a/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.ts +++ b/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.ts @@ -5,15 +5,20 @@ */ import { CreateNotificationRuleParametersData } from "./CreateNotificationRuleParametersData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Body of the notification rule create request. - */ +*/ export class CreateNotificationRuleParameters { /** * Data of the notification rule create request: the rule type, and the rule attributes. All fields are required. - */ + */ "data"?: CreateNotificationRuleParametersData; /** @@ -32,22 +37,48 @@ export class CreateNotificationRuleParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateNotificationRuleParametersData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateNotificationRuleParametersData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateNotificationRuleParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.ts b/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.ts index 825868547104..04d1e867c1c2 100644 --- a/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.ts +++ b/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.ts @@ -6,19 +6,24 @@ import { CreateNotificationRuleParametersDataAttributes } from "./CreateNotificationRuleParametersDataAttributes"; import { NotificationRulesType } from "./NotificationRulesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data of the notification rule create request: the rule type, and the rule attributes. All fields are required. - */ +*/ export class CreateNotificationRuleParametersData { /** * Attributes of the notification rule create request. - */ + */ "attributes": CreateNotificationRuleParametersDataAttributes; /** * The rule type associated to notification rules. - */ + */ "type": NotificationRulesType; /** @@ -37,28 +42,54 @@ export class CreateNotificationRuleParametersData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CreateNotificationRuleParametersDataAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CreateNotificationRuleParametersDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotificationRulesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotificationRulesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateNotificationRuleParametersData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.ts index 467f73e0c0a5..8dd9e3553aee 100644 --- a/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.ts @@ -4,32 +4,38 @@ * Copyright 2020-Present Datadog, Inc. */ import { Selectors } from "./Selectors"; +import { TargetsItem } from "./TargetsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the notification rule create request. - */ +*/ export class CreateNotificationRuleParametersDataAttributes { /** * Field used to enable or disable the rule. - */ + */ "enabled"?: boolean; /** * Name of the notification rule. - */ + */ "name": string; /** * Selectors are used to filter security issues for which notifications should be generated. * Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. * Only the trigger_source field is required. - */ + */ "selectors": Selectors; /** * List of recipients to notify when a notification rule is triggered. Many different target types are supported, * such as email addresses, Slack channels, and PagerDuty services. * The appropriate integrations need to be properly configured to send notifications to the specified targets. - */ + */ "targets": Array; /** * Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation. @@ -37,7 +43,7 @@ export class CreateNotificationRuleParametersDataAttributes { * Notifications are only sent for new issues discovered during the window. * Time aggregation is only available for vulnerability-based notification rules. When omitted or set to 0, no aggregation * is done. - */ + */ "timeAggregation"?: number; /** @@ -56,42 +62,68 @@ export class CreateNotificationRuleParametersDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - selectors: { - baseName: "selectors", - type: "Selectors", - required: true, + "selectors": { + "baseName": "selectors", + "type": "Selectors", + "required": true, }, - targets: { - baseName: "targets", - type: "Array", - required: true, + "targets": { + "baseName": "targets", + "type": "Array", + "required": true, }, - timeAggregation: { - baseName: "time_aggregation", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeAggregation": { + "baseName": "time_aggregation", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateNotificationRuleParametersDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.ts b/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.ts index d242048a05b9..39606447628b 100644 --- a/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.ts +++ b/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.ts @@ -5,15 +5,20 @@ */ import { CreateOpenAPIResponseData } from "./CreateOpenAPIResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for `CreateOpenAPI` operation. - */ +*/ export class CreateOpenAPIResponse { /** * Data envelope for `CreateOpenAPIResponse`. - */ + */ "data"?: CreateOpenAPIResponseData; /** @@ -32,22 +37,48 @@ export class CreateOpenAPIResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateOpenAPIResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateOpenAPIResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateOpenAPIResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.ts b/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.ts index 81daec382433..cfa0460d7e31 100644 --- a/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.ts @@ -5,15 +5,20 @@ */ import { OpenAPIEndpoint } from "./OpenAPIEndpoint"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for `CreateOpenAPI`. - */ +*/ export class CreateOpenAPIResponseAttributes { /** * List of endpoints which couldn't be parsed. - */ + */ "failedEndpoints"?: Array; /** @@ -32,22 +37,48 @@ export class CreateOpenAPIResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - failedEndpoints: { - baseName: "failed_endpoints", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "failedEndpoints": { + "baseName": "failed_endpoints", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateOpenAPIResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.ts b/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.ts index a2c1bf44d56a..90941e23951b 100644 --- a/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.ts +++ b/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.ts @@ -5,19 +5,24 @@ */ import { CreateOpenAPIResponseAttributes } from "./CreateOpenAPIResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data envelope for `CreateOpenAPIResponse`. - */ +*/ export class CreateOpenAPIResponseData { /** * Attributes for `CreateOpenAPI`. - */ + */ "attributes"?: CreateOpenAPIResponseAttributes; /** * API identifier. - */ + */ "id"?: string; /** @@ -36,27 +41,53 @@ export class CreateOpenAPIResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CreateOpenAPIResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "CreateOpenAPIResponseAttributes", }, - id: { - baseName: "id", - type: "string", - format: "uuid", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateOpenAPIResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateRuleRequest.ts b/packages/datadog-api-client-v2/models/CreateRuleRequest.ts index 08ac12f3ebec..d4c265ca568b 100644 --- a/packages/datadog-api-client-v2/models/CreateRuleRequest.ts +++ b/packages/datadog-api-client-v2/models/CreateRuleRequest.ts @@ -5,15 +5,20 @@ */ import { CreateRuleRequestData } from "./CreateRuleRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard create rule request. - */ +*/ export class CreateRuleRequest { /** * Scorecard create rule request data. - */ + */ "data"?: CreateRuleRequestData; /** @@ -32,22 +37,48 @@ export class CreateRuleRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateRuleRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateRuleRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateRuleRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateRuleRequestData.ts b/packages/datadog-api-client-v2/models/CreateRuleRequestData.ts index 46becf07406f..d3a6bbd749a8 100644 --- a/packages/datadog-api-client-v2/models/CreateRuleRequestData.ts +++ b/packages/datadog-api-client-v2/models/CreateRuleRequestData.ts @@ -6,19 +6,24 @@ import { RuleAttributes } from "./RuleAttributes"; import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard create rule request data. - */ +*/ export class CreateRuleRequestData { /** * Details of a rule. - */ + */ "attributes"?: RuleAttributes; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -37,26 +42,52 @@ export class CreateRuleRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "RuleAttributes", }, - type: { - baseName: "type", - type: "RuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateRuleRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateRuleResponse.ts b/packages/datadog-api-client-v2/models/CreateRuleResponse.ts index 46b9e07b3efd..a93c82897295 100644 --- a/packages/datadog-api-client-v2/models/CreateRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/CreateRuleResponse.ts @@ -5,15 +5,20 @@ */ import { CreateRuleResponseData } from "./CreateRuleResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Created rule in response. - */ +*/ export class CreateRuleResponse { /** * Create rule response data. - */ + */ "data"?: CreateRuleResponseData; /** @@ -32,22 +37,48 @@ export class CreateRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CreateRuleResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CreateRuleResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateRuleResponseData.ts b/packages/datadog-api-client-v2/models/CreateRuleResponseData.ts index 7137a67b3a3c..9f1c4c03082a 100644 --- a/packages/datadog-api-client-v2/models/CreateRuleResponseData.ts +++ b/packages/datadog-api-client-v2/models/CreateRuleResponseData.ts @@ -7,27 +7,32 @@ import { RelationshipToRule } from "./RelationshipToRule"; import { RuleAttributes } from "./RuleAttributes"; import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create rule response data. - */ +*/ export class CreateRuleResponseData { /** * Details of a rule. - */ + */ "attributes"?: RuleAttributes; /** * The unique ID for a scorecard rule. - */ + */ "id"?: string; /** * Scorecard create rule response relationship. - */ + */ "relationships"?: RelationshipToRule; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -46,34 +51,60 @@ export class CreateRuleResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "RuleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RelationshipToRule", + "relationships": { + "baseName": "relationships", + "type": "RelationshipToRule", }, - type: { - baseName: "type", - type: "RuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateRuleResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateWorkflowRequest.ts b/packages/datadog-api-client-v2/models/CreateWorkflowRequest.ts index e5773ad4586b..1f5644eda2f5 100644 --- a/packages/datadog-api-client-v2/models/CreateWorkflowRequest.ts +++ b/packages/datadog-api-client-v2/models/CreateWorkflowRequest.ts @@ -5,15 +5,20 @@ */ import { WorkflowData } from "./WorkflowData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request object for creating a new workflow. - */ +*/ export class CreateWorkflowRequest { /** * Data related to the workflow. - */ + */ "data": WorkflowData; /** @@ -32,23 +37,49 @@ export class CreateWorkflowRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateWorkflowRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CreateWorkflowResponse.ts b/packages/datadog-api-client-v2/models/CreateWorkflowResponse.ts index 9d0afd9b1d69..e377608c6196 100644 --- a/packages/datadog-api-client-v2/models/CreateWorkflowResponse.ts +++ b/packages/datadog-api-client-v2/models/CreateWorkflowResponse.ts @@ -5,15 +5,20 @@ */ import { WorkflowData } from "./WorkflowData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after creating a new workflow. - */ +*/ export class CreateWorkflowResponse { /** * Data related to the workflow. - */ + */ "data": WorkflowData; /** @@ -32,23 +37,49 @@ export class CreateWorkflowResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CreateWorkflowResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Creator.ts b/packages/datadog-api-client-v2/models/Creator.ts index f4eac1eb6d31..30fcdd356e7e 100644 --- a/packages/datadog-api-client-v2/models/Creator.ts +++ b/packages/datadog-api-client-v2/models/Creator.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Creator of the object. - */ +*/ export class Creator { /** * Email of the creator. - */ + */ "email"?: string; /** * Handle of the creator. - */ + */ "handle"?: string; /** * Name of the creator. - */ + */ "name"?: string; /** @@ -39,30 +44,56 @@ export class Creator { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - }, - handle: { - baseName: "handle", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Creator.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmAgentData.ts b/packages/datadog-api-client-v2/models/CsmAgentData.ts index 6f87579a8946..fd2ed7480b04 100644 --- a/packages/datadog-api-client-v2/models/CsmAgentData.ts +++ b/packages/datadog-api-client-v2/models/CsmAgentData.ts @@ -6,23 +6,28 @@ import { CsmAgentsAttributes } from "./CsmAgentsAttributes"; import { CSMAgentsType } from "./CSMAgentsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Single Agent Data. - */ +*/ export class CsmAgentData { /** * A CSM Agent returned by the API. - */ + */ "attributes"?: CsmAgentsAttributes; /** * The ID of the Agent. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `datadog_agent`. - */ + */ "type"?: CSMAgentsType; /** @@ -41,30 +46,56 @@ export class CsmAgentData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CsmAgentsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CsmAgentsAttributes", }, - type: { - baseName: "type", - type: "CSMAgentsType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CSMAgentsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmAgentData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmAgentsAttributes.ts b/packages/datadog-api-client-v2/models/CsmAgentsAttributes.ts index f964b1edae79..7f7e66d13dc6 100644 --- a/packages/datadog-api-client-v2/models/CsmAgentsAttributes.ts +++ b/packages/datadog-api-client-v2/models/CsmAgentsAttributes.ts @@ -4,79 +4,84 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A CSM Agent returned by the API. - */ +*/ export class CsmAgentsAttributes { /** * Version of the Datadog Agent. - */ + */ "agentVersion"?: string; /** * AWS Fargate details. - */ + */ "awsFargate"?: string; /** * List of cluster names associated with the Agent. - */ + */ "clusterName"?: Array; /** * Unique identifier for the Datadog Agent. - */ + */ "datadogAgent"?: string; /** * ARN of the ECS Fargate task. - */ + */ "ecsFargateTaskArn"?: string; /** * List of environments associated with the Agent. - */ + */ "envs"?: Array; /** * ID of the host. - */ + */ "hostId"?: number; /** * Name of the host. - */ + */ "hostname"?: string; /** * Version of the installer used for installing the Datadog Agent. - */ + */ "installMethodInstallerVersion"?: string; /** * Tool used for installing the Datadog Agent. - */ + */ "installMethodTool"?: string; /** * Indicates if CSM VM Containers is enabled. - */ + */ "isCsmVmContainersEnabled"?: boolean; /** * Indicates if CSM VM Hosts is enabled. - */ + */ "isCsmVmHostsEnabled"?: boolean; /** * Indicates if CSPM is enabled. - */ + */ "isCspmEnabled"?: boolean; /** * Indicates if CWS is enabled. - */ + */ "isCwsEnabled"?: boolean; /** * Indicates if CWS Remote Configuration is enabled. - */ + */ "isCwsRemoteConfigurationEnabled"?: boolean; /** * Indicates if Remote Configuration is enabled. - */ + */ "isRemoteConfigurationEnabled"?: boolean; /** * Operating system of the host. - */ + */ "os"?: string; /** @@ -95,87 +100,113 @@ export class CsmAgentsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - agentVersion: { - baseName: "agent_version", - type: "string", - }, - awsFargate: { - baseName: "aws_fargate", - type: "string", - }, - clusterName: { - baseName: "cluster_name", - type: "Array", - }, - datadogAgent: { - baseName: "datadog_agent", - type: "string", - }, - ecsFargateTaskArn: { - baseName: "ecs_fargate_task_arn", - type: "string", - }, - envs: { - baseName: "envs", - type: "Array", - }, - hostId: { - baseName: "host_id", - type: "number", - format: "int64", - }, - hostname: { - baseName: "hostname", - type: "string", - }, - installMethodInstallerVersion: { - baseName: "install_method_installer_version", - type: "string", - }, - installMethodTool: { - baseName: "install_method_tool", - type: "string", - }, - isCsmVmContainersEnabled: { - baseName: "is_csm_vm_containers_enabled", - type: "boolean", - }, - isCsmVmHostsEnabled: { - baseName: "is_csm_vm_hosts_enabled", - type: "boolean", - }, - isCspmEnabled: { - baseName: "is_cspm_enabled", - type: "boolean", - }, - isCwsEnabled: { - baseName: "is_cws_enabled", - type: "boolean", - }, - isCwsRemoteConfigurationEnabled: { - baseName: "is_cws_remote_configuration_enabled", - type: "boolean", - }, - isRemoteConfigurationEnabled: { - baseName: "is_remote_configuration_enabled", - type: "boolean", - }, - os: { - baseName: "os", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "agentVersion": { + "baseName": "agent_version", + "type": "string", + }, + "awsFargate": { + "baseName": "aws_fargate", + "type": "string", + }, + "clusterName": { + "baseName": "cluster_name", + "type": "Array", + }, + "datadogAgent": { + "baseName": "datadog_agent", + "type": "string", + }, + "ecsFargateTaskArn": { + "baseName": "ecs_fargate_task_arn", + "type": "string", + }, + "envs": { + "baseName": "envs", + "type": "Array", + }, + "hostId": { + "baseName": "host_id", + "type": "number", + "format": "int64", + }, + "hostname": { + "baseName": "hostname", + "type": "string", + }, + "installMethodInstallerVersion": { + "baseName": "install_method_installer_version", + "type": "string", + }, + "installMethodTool": { + "baseName": "install_method_tool", + "type": "string", + }, + "isCsmVmContainersEnabled": { + "baseName": "is_csm_vm_containers_enabled", + "type": "boolean", + }, + "isCsmVmHostsEnabled": { + "baseName": "is_csm_vm_hosts_enabled", + "type": "boolean", + }, + "isCspmEnabled": { + "baseName": "is_cspm_enabled", + "type": "boolean", + }, + "isCwsEnabled": { + "baseName": "is_cws_enabled", + "type": "boolean", + }, + "isCwsRemoteConfigurationEnabled": { + "baseName": "is_cws_remote_configuration_enabled", + "type": "boolean", + }, + "isRemoteConfigurationEnabled": { + "baseName": "is_remote_configuration_enabled", + "type": "boolean", + }, + "os": { + "baseName": "os", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmAgentsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmAgentsResponse.ts b/packages/datadog-api-client-v2/models/CsmAgentsResponse.ts index aedd2beb3a21..1daa11711da2 100644 --- a/packages/datadog-api-client-v2/models/CsmAgentsResponse.ts +++ b/packages/datadog-api-client-v2/models/CsmAgentsResponse.ts @@ -6,19 +6,24 @@ import { CsmAgentData } from "./CsmAgentData"; import { CSMAgentsMetadata } from "./CSMAgentsMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a list of CSM Agents. - */ +*/ export class CsmAgentsResponse { /** * A list of Agents. - */ + */ "data"?: Array; /** * Metadata related to the paginated response. - */ + */ "meta"?: CSMAgentsMetadata; /** @@ -37,26 +42,52 @@ export class CsmAgentsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "CSMAgentsMetadata", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CSMAgentsMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmAgentsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.ts b/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.ts index e77c6f9fd7b8..6020123074cf 100644 --- a/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.ts +++ b/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.ts @@ -5,31 +5,36 @@ */ import { CsmCoverageAnalysis } from "./CsmCoverageAnalysis"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Cloud Accounts Coverage Analysis attributes. - */ +*/ export class CsmCloudAccountsCoverageAnalysisAttributes { /** * CSM Coverage Analysis. - */ + */ "awsCoverage"?: CsmCoverageAnalysis; /** * CSM Coverage Analysis. - */ + */ "azureCoverage"?: CsmCoverageAnalysis; /** * CSM Coverage Analysis. - */ + */ "gcpCoverage"?: CsmCoverageAnalysis; /** * The ID of your organization. - */ + */ "orgId"?: number; /** * CSM Coverage Analysis. - */ + */ "totalCoverage"?: CsmCoverageAnalysis; /** @@ -48,39 +53,65 @@ export class CsmCloudAccountsCoverageAnalysisAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - awsCoverage: { - baseName: "aws_coverage", - type: "CsmCoverageAnalysis", + "awsCoverage": { + "baseName": "aws_coverage", + "type": "CsmCoverageAnalysis", }, - azureCoverage: { - baseName: "azure_coverage", - type: "CsmCoverageAnalysis", + "azureCoverage": { + "baseName": "azure_coverage", + "type": "CsmCoverageAnalysis", }, - gcpCoverage: { - baseName: "gcp_coverage", - type: "CsmCoverageAnalysis", + "gcpCoverage": { + "baseName": "gcp_coverage", + "type": "CsmCoverageAnalysis", }, - orgId: { - baseName: "org_id", - type: "number", - format: "int64", + "orgId": { + "baseName": "org_id", + "type": "number", + "format": "int64", }, - totalCoverage: { - baseName: "total_coverage", - type: "CsmCoverageAnalysis", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCoverage": { + "baseName": "total_coverage", + "type": "CsmCoverageAnalysis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmCloudAccountsCoverageAnalysisAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.ts b/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.ts index f546f79945e3..c1cb22949e04 100644 --- a/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.ts +++ b/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.ts @@ -5,23 +5,28 @@ */ import { CsmCloudAccountsCoverageAnalysisAttributes } from "./CsmCloudAccountsCoverageAnalysisAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Cloud Accounts Coverage Analysis data. - */ +*/ export class CsmCloudAccountsCoverageAnalysisData { /** * CSM Cloud Accounts Coverage Analysis attributes. - */ + */ "attributes"?: CsmCloudAccountsCoverageAnalysisAttributes; /** * The ID of your organization. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `get_cloud_accounts_coverage_analysis_response_public_v0`. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class CsmCloudAccountsCoverageAnalysisData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CsmCloudAccountsCoverageAnalysisAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CsmCloudAccountsCoverageAnalysisAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmCloudAccountsCoverageAnalysisData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.ts b/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.ts index 5bebedcc2c29..a5b2ffec24da 100644 --- a/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.ts +++ b/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.ts @@ -5,15 +5,20 @@ */ import { CsmCloudAccountsCoverageAnalysisData } from "./CsmCloudAccountsCoverageAnalysisData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Cloud Accounts Coverage Analysis response. - */ +*/ export class CsmCloudAccountsCoverageAnalysisResponse { /** * CSM Cloud Accounts Coverage Analysis data. - */ + */ "data"?: CsmCloudAccountsCoverageAnalysisData; /** @@ -32,22 +37,48 @@ export class CsmCloudAccountsCoverageAnalysisResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CsmCloudAccountsCoverageAnalysisData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CsmCloudAccountsCoverageAnalysisData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmCloudAccountsCoverageAnalysisResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.ts b/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.ts index a79c86b47807..4726ef721177 100644 --- a/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.ts +++ b/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Coverage Analysis. - */ +*/ export class CsmCoverageAnalysis { /** * The number of fully configured resources. - */ + */ "configuredResourcesCount"?: number; /** * The coverage percentage. - */ + */ "coverage"?: number; /** * The number of partially configured resources. - */ + */ "partiallyConfiguredResourcesCount"?: number; /** * The total number of resources. - */ + */ "totalResourcesCount"?: number; /** @@ -43,38 +48,64 @@ export class CsmCoverageAnalysis { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - configuredResourcesCount: { - baseName: "configured_resources_count", - type: "number", - format: "int64", + "configuredResourcesCount": { + "baseName": "configured_resources_count", + "type": "number", + "format": "int64", }, - coverage: { - baseName: "coverage", - type: "number", - format: "double", + "coverage": { + "baseName": "coverage", + "type": "number", + "format": "double", }, - partiallyConfiguredResourcesCount: { - baseName: "partially_configured_resources_count", - type: "number", - format: "int64", + "partiallyConfiguredResourcesCount": { + "baseName": "partially_configured_resources_count", + "type": "number", + "format": "int64", }, - totalResourcesCount: { - baseName: "total_resources_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalResourcesCount": { + "baseName": "total_resources_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmCoverageAnalysis.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.ts b/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.ts index 7d624bbc307d..b8333f97f907 100644 --- a/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.ts +++ b/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.ts @@ -5,31 +5,36 @@ */ import { CsmCoverageAnalysis } from "./CsmCoverageAnalysis"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Hosts and Containers Coverage Analysis attributes. - */ +*/ export class CsmHostsAndContainersCoverageAnalysisAttributes { /** * CSM Coverage Analysis. - */ + */ "cspmCoverage"?: CsmCoverageAnalysis; /** * CSM Coverage Analysis. - */ + */ "cwsCoverage"?: CsmCoverageAnalysis; /** * The ID of your organization. - */ + */ "orgId"?: number; /** * CSM Coverage Analysis. - */ + */ "totalCoverage"?: CsmCoverageAnalysis; /** * CSM Coverage Analysis. - */ + */ "vmCoverage"?: CsmCoverageAnalysis; /** @@ -48,39 +53,65 @@ export class CsmHostsAndContainersCoverageAnalysisAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cspmCoverage: { - baseName: "cspm_coverage", - type: "CsmCoverageAnalysis", + "cspmCoverage": { + "baseName": "cspm_coverage", + "type": "CsmCoverageAnalysis", }, - cwsCoverage: { - baseName: "cws_coverage", - type: "CsmCoverageAnalysis", + "cwsCoverage": { + "baseName": "cws_coverage", + "type": "CsmCoverageAnalysis", }, - orgId: { - baseName: "org_id", - type: "number", - format: "int64", + "orgId": { + "baseName": "org_id", + "type": "number", + "format": "int64", }, - totalCoverage: { - baseName: "total_coverage", - type: "CsmCoverageAnalysis", + "totalCoverage": { + "baseName": "total_coverage", + "type": "CsmCoverageAnalysis", }, - vmCoverage: { - baseName: "vm_coverage", - type: "CsmCoverageAnalysis", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vmCoverage": { + "baseName": "vm_coverage", + "type": "CsmCoverageAnalysis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmHostsAndContainersCoverageAnalysisAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.ts b/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.ts index 02c06dc82c90..2d7a23100c72 100644 --- a/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.ts +++ b/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.ts @@ -5,23 +5,28 @@ */ import { CsmHostsAndContainersCoverageAnalysisAttributes } from "./CsmHostsAndContainersCoverageAnalysisAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Hosts and Containers Coverage Analysis data. - */ +*/ export class CsmHostsAndContainersCoverageAnalysisData { /** * CSM Hosts and Containers Coverage Analysis attributes. - */ + */ "attributes"?: CsmHostsAndContainersCoverageAnalysisAttributes; /** * The ID of your organization. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `get_hosts_and_containers_coverage_analysis_response_public_v0`. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class CsmHostsAndContainersCoverageAnalysisData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CsmHostsAndContainersCoverageAnalysisAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CsmHostsAndContainersCoverageAnalysisAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmHostsAndContainersCoverageAnalysisData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.ts b/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.ts index afe22daa6a35..177b6194f78f 100644 --- a/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.ts +++ b/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.ts @@ -5,15 +5,20 @@ */ import { CsmHostsAndContainersCoverageAnalysisData } from "./CsmHostsAndContainersCoverageAnalysisData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Hosts and Containers Coverage Analysis response. - */ +*/ export class CsmHostsAndContainersCoverageAnalysisResponse { /** * CSM Hosts and Containers Coverage Analysis data. - */ + */ "data"?: CsmHostsAndContainersCoverageAnalysisData; /** @@ -32,22 +37,48 @@ export class CsmHostsAndContainersCoverageAnalysisResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CsmHostsAndContainersCoverageAnalysisData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CsmHostsAndContainersCoverageAnalysisData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmHostsAndContainersCoverageAnalysisResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.ts b/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.ts index 048240071a0a..521e513c94b5 100644 --- a/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.ts +++ b/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.ts @@ -5,23 +5,28 @@ */ import { CsmCoverageAnalysis } from "./CsmCoverageAnalysis"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Serverless Resources Coverage Analysis attributes. - */ +*/ export class CsmServerlessCoverageAnalysisAttributes { /** * CSM Coverage Analysis. - */ + */ "cwsCoverage"?: CsmCoverageAnalysis; /** * The ID of your organization. - */ + */ "orgId"?: number; /** * CSM Coverage Analysis. - */ + */ "totalCoverage"?: CsmCoverageAnalysis; /** @@ -40,31 +45,57 @@ export class CsmServerlessCoverageAnalysisAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cwsCoverage: { - baseName: "cws_coverage", - type: "CsmCoverageAnalysis", - }, - orgId: { - baseName: "org_id", - type: "number", - format: "int64", + "cwsCoverage": { + "baseName": "cws_coverage", + "type": "CsmCoverageAnalysis", }, - totalCoverage: { - baseName: "total_coverage", - type: "CsmCoverageAnalysis", + "orgId": { + "baseName": "org_id", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCoverage": { + "baseName": "total_coverage", + "type": "CsmCoverageAnalysis", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmServerlessCoverageAnalysisAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.ts b/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.ts index 829083ec1e41..7fcc3bc419b4 100644 --- a/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.ts +++ b/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.ts @@ -5,23 +5,28 @@ */ import { CsmServerlessCoverageAnalysisAttributes } from "./CsmServerlessCoverageAnalysisAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Serverless Resources Coverage Analysis data. - */ +*/ export class CsmServerlessCoverageAnalysisData { /** * CSM Serverless Resources Coverage Analysis attributes. - */ + */ "attributes"?: CsmServerlessCoverageAnalysisAttributes; /** * The ID of your organization. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `get_serverless_coverage_analysis_response_public_v0`. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class CsmServerlessCoverageAnalysisData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CsmServerlessCoverageAnalysisAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CsmServerlessCoverageAnalysisAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmServerlessCoverageAnalysisData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.ts b/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.ts index bd16a62c2d69..06f0ea0bf26c 100644 --- a/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.ts +++ b/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.ts @@ -5,15 +5,20 @@ */ import { CsmServerlessCoverageAnalysisData } from "./CsmServerlessCoverageAnalysisData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CSM Serverless Resources Coverage Analysis response. - */ +*/ export class CsmServerlessCoverageAnalysisResponse { /** * CSM Serverless Resources Coverage Analysis data. - */ + */ "data"?: CsmServerlessCoverageAnalysisData; /** @@ -32,22 +37,48 @@ export class CsmServerlessCoverageAnalysisResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CsmServerlessCoverageAnalysisData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CsmServerlessCoverageAnalysisData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CsmServerlessCoverageAnalysisResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomConnection.ts b/packages/datadog-api-client-v2/models/CustomConnection.ts index 68ad14eab158..80e888074845 100644 --- a/packages/datadog-api-client-v2/models/CustomConnection.ts +++ b/packages/datadog-api-client-v2/models/CustomConnection.ts @@ -6,23 +6,28 @@ import { CustomConnectionAttributes } from "./CustomConnectionAttributes"; import { CustomConnectionType } from "./CustomConnectionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A custom connection used by an app. - */ +*/ export class CustomConnection { /** * The custom connection attributes. - */ + */ "attributes"?: CustomConnectionAttributes; /** * The ID of the custom connection. - */ + */ "id"?: string; /** * The custom connection type. - */ + */ "type"?: CustomConnectionType; /** @@ -41,31 +46,57 @@ export class CustomConnection { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CustomConnectionAttributes", - }, - id: { - baseName: "id", - type: "string", - format: "uuid", + "attributes": { + "baseName": "attributes", + "type": "CustomConnectionAttributes", }, - type: { - baseName: "type", - type: "CustomConnectionType", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomConnectionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomConnection.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomConnectionAttributes.ts b/packages/datadog-api-client-v2/models/CustomConnectionAttributes.ts index 1bb1e1c1cd7b..e9e73a5db942 100644 --- a/packages/datadog-api-client-v2/models/CustomConnectionAttributes.ts +++ b/packages/datadog-api-client-v2/models/CustomConnectionAttributes.ts @@ -5,19 +5,24 @@ */ import { CustomConnectionAttributesOnPremRunner } from "./CustomConnectionAttributesOnPremRunner"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The custom connection attributes. - */ +*/ export class CustomConnectionAttributes { /** * The name of the custom connection. - */ + */ "name"?: string; /** * Information about the Private Action Runner used by the custom connection, if the custom connection is associated with a Private Action Runner. - */ + */ "onPremRunner"?: CustomConnectionAttributesOnPremRunner; /** @@ -36,26 +41,52 @@ export class CustomConnectionAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - onPremRunner: { - baseName: "onPremRunner", - type: "CustomConnectionAttributesOnPremRunner", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "onPremRunner": { + "baseName": "onPremRunner", + "type": "CustomConnectionAttributesOnPremRunner", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomConnectionAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.ts b/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.ts index 826da43cdad9..9b1d19dcdfcb 100644 --- a/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.ts +++ b/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about the Private Action Runner used by the custom connection, if the custom connection is associated with a Private Action Runner. - */ +*/ export class CustomConnectionAttributesOnPremRunner { /** * The Private Action Runner ID. - */ + */ "id"?: string; /** * The URL of the Private Action Runner. - */ + */ "url"?: string; /** @@ -35,26 +40,52 @@ export class CustomConnectionAttributesOnPremRunner { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomConnectionAttributesOnPremRunner.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomConnectionType.ts b/packages/datadog-api-client-v2/models/CustomConnectionType.ts index 5d5e55c8abf6..10de89e127b6 100644 --- a/packages/datadog-api-client-v2/models/CustomConnectionType.ts +++ b/packages/datadog-api-client-v2/models/CustomConnectionType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The custom connection type. - */ +*/ export type CustomConnectionType = typeof CUSTOM_CONNECTIONS | UnparsedObject; -export const CUSTOM_CONNECTIONS = "custom_connections"; +export const CUSTOM_CONNECTIONS = 'custom_connections'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.ts b/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.ts index d8491dde8e2c..a4bec13ac282 100644 --- a/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta for the response from the Get Custom Costs endpoints. - */ +*/ export class CustomCostGetResponseMeta { /** * Version of Custom Costs file - */ + */ "version"?: string; /** @@ -31,22 +36,48 @@ export class CustomCostGetResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostGetResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.ts b/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.ts index ae14fa10a8eb..8ce6de582b1f 100644 --- a/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta for the response from the List Custom Costs endpoints. - */ +*/ export class CustomCostListResponseMeta { /** * Number of Custom Costs files returned by the List Custom Costs endpoint - */ + */ "totalFilteredCount"?: number; /** * Version of Custom Costs file - */ + */ "version"?: string; /** @@ -35,27 +40,53 @@ export class CustomCostListResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostListResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.ts b/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.ts index e3d6a2db6bc7..af032aa79740 100644 --- a/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta for the response from the Upload Custom Costs endpoints. - */ +*/ export class CustomCostUploadResponseMeta { /** * Version of Custom Costs file - */ + */ "version"?: string; /** @@ -31,22 +36,48 @@ export class CustomCostUploadResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostUploadResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.ts b/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.ts index eb87fedd32bb..50b87bc75962 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.ts @@ -6,19 +6,24 @@ import { CustomCostGetResponseMeta } from "./CustomCostGetResponseMeta"; import { CustomCostsFileMetadataWithContentHighLevel } from "./CustomCostsFileMetadataWithContentHighLevel"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for Get Custom Costs files. - */ +*/ export class CustomCostsFileGetResponse { /** * JSON API format of for a Custom Costs file with content. - */ + */ "data"?: CustomCostsFileMetadataWithContentHighLevel; /** * Meta for the response from the Get Custom Costs endpoints. - */ + */ "meta"?: CustomCostGetResponseMeta; /** @@ -37,26 +42,52 @@ export class CustomCostsFileGetResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CustomCostsFileMetadataWithContentHighLevel", + "data": { + "baseName": "data", + "type": "CustomCostsFileMetadataWithContentHighLevel", }, - meta: { - baseName: "meta", - type: "CustomCostGetResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CustomCostGetResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileGetResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.ts b/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.ts index 5b16217a7b25..5bb11130aecd 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.ts @@ -4,40 +4,45 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Line item details from a Custom Costs file. - */ +*/ export class CustomCostsFileLineItem { /** * Total cost in the cost file. - */ + */ "billedCost"?: number; /** * Currency used in the Custom Costs file. - */ + */ "billingCurrency"?: string; /** * Description for the line item cost. - */ + */ "chargeDescription"?: string; /** * End date of the usage charge. - */ + */ "chargePeriodEnd"?: string; /** * Start date of the usage charge. - */ + */ "chargePeriodStart"?: string; /** * Name of the provider for the line item. - */ + */ "providerName"?: string; /** * Additional tags for the line item. - */ - "tags"?: { [key: string]: string }; + */ + "tags"?: { [key: string]: string; }; /** * A container for additional, undeclared properties. @@ -55,47 +60,73 @@ export class CustomCostsFileLineItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - billedCost: { - baseName: "BilledCost", - type: "number", - format: "double", - }, - billingCurrency: { - baseName: "BillingCurrency", - type: "string", + "billedCost": { + "baseName": "BilledCost", + "type": "number", + "format": "double", }, - chargeDescription: { - baseName: "ChargeDescription", - type: "string", + "billingCurrency": { + "baseName": "BillingCurrency", + "type": "string", }, - chargePeriodEnd: { - baseName: "ChargePeriodEnd", - type: "string", + "chargeDescription": { + "baseName": "ChargeDescription", + "type": "string", }, - chargePeriodStart: { - baseName: "ChargePeriodStart", - type: "string", + "chargePeriodEnd": { + "baseName": "ChargePeriodEnd", + "type": "string", }, - providerName: { - baseName: "ProviderName", - type: "string", + "chargePeriodStart": { + "baseName": "ChargePeriodStart", + "type": "string", }, - tags: { - baseName: "Tags", - type: "{ [key: string]: string; }", + "providerName": { + "baseName": "ProviderName", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "Tags", + "type": "{ [key: string]: string; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileLineItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.ts b/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.ts index 4596481a8b61..81d438cc15ca 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.ts @@ -6,19 +6,24 @@ import { CustomCostListResponseMeta } from "./CustomCostListResponseMeta"; import { CustomCostsFileMetadataHighLevel } from "./CustomCostsFileMetadataHighLevel"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for List Custom Costs files. - */ +*/ export class CustomCostsFileListResponse { /** * List of Custom Costs files. - */ + */ "data"?: Array; /** * Meta for the response from the List Custom Costs endpoints. - */ + */ "meta"?: CustomCostListResponseMeta; /** @@ -37,26 +42,52 @@ export class CustomCostsFileListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "CustomCostListResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CustomCostListResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.ts b/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.ts index b50bb13b5445..8a4f036e840f 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.ts @@ -6,43 +6,48 @@ import { CustomCostsFileUsageChargePeriod } from "./CustomCostsFileUsageChargePeriod"; import { CustomCostsUser } from "./CustomCostsUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema of a Custom Costs metadata. - */ +*/ export class CustomCostsFileMetadata { /** * Total cost in the cost file. - */ + */ "billedCost"?: number; /** * Currency used in the Custom Costs file. - */ + */ "billingCurrency"?: string; /** * Usage charge period of a Custom Costs file. - */ + */ "chargePeriod"?: CustomCostsFileUsageChargePeriod; /** * Name of the Custom Costs file. - */ + */ "name"?: string; /** * Providers contained in the Custom Costs file. - */ + */ "providerNames"?: Array; /** * Status of the Custom Costs file. - */ + */ "status"?: string; /** * Timestamp, in millisecond, of the upload time of the Custom Costs file. - */ + */ "uploadedAt"?: number; /** * Metadata of the user that has uploaded the Custom Costs file. - */ + */ "uploadedBy"?: CustomCostsUser; /** @@ -61,52 +66,78 @@ export class CustomCostsFileMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - billedCost: { - baseName: "billed_cost", - type: "number", - format: "double", + "billedCost": { + "baseName": "billed_cost", + "type": "number", + "format": "double", }, - billingCurrency: { - baseName: "billing_currency", - type: "string", + "billingCurrency": { + "baseName": "billing_currency", + "type": "string", }, - chargePeriod: { - baseName: "charge_period", - type: "CustomCostsFileUsageChargePeriod", + "chargePeriod": { + "baseName": "charge_period", + "type": "CustomCostsFileUsageChargePeriod", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - providerNames: { - baseName: "provider_names", - type: "Array", + "providerNames": { + "baseName": "provider_names", + "type": "Array", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - uploadedAt: { - baseName: "uploaded_at", - type: "number", - format: "double", + "uploadedAt": { + "baseName": "uploaded_at", + "type": "number", + "format": "double", }, - uploadedBy: { - baseName: "uploaded_by", - type: "CustomCostsUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uploadedBy": { + "baseName": "uploaded_by", + "type": "CustomCostsUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.ts b/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.ts index 128876de638c..ded1b6756078 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.ts @@ -5,23 +5,28 @@ */ import { CustomCostsFileMetadata } from "./CustomCostsFileMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON API format for a Custom Costs file. - */ +*/ export class CustomCostsFileMetadataHighLevel { /** * Schema of a Custom Costs metadata. - */ + */ "attributes"?: CustomCostsFileMetadata; /** * ID of the Custom Costs metadata. - */ + */ "id"?: string; /** * Type of the Custom Costs file metadata. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class CustomCostsFileMetadataHighLevel { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CustomCostsFileMetadata", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CustomCostsFileMetadata", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileMetadataHighLevel.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.ts b/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.ts index 21946e78292e..0c284ae3fdee 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.ts @@ -7,47 +7,52 @@ import { CustomCostsFileLineItem } from "./CustomCostsFileLineItem"; import { CustomCostsFileUsageChargePeriod } from "./CustomCostsFileUsageChargePeriod"; import { CustomCostsUser } from "./CustomCostsUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema of a cost file's metadata. - */ +*/ export class CustomCostsFileMetadataWithContent { /** * Total cost in the cost file. - */ + */ "billedCost"?: number; /** * Currency used in the Custom Costs file. - */ + */ "billingCurrency"?: string; /** * Usage charge period of a Custom Costs file. - */ + */ "chargePeriod"?: CustomCostsFileUsageChargePeriod; /** * Detail of the line items from the Custom Costs file. - */ + */ "content"?: Array; /** * Name of the Custom Costs file. - */ + */ "name"?: string; /** * Providers contained in the Custom Costs file. - */ + */ "providerNames"?: Array; /** * Status of the Custom Costs file. - */ + */ "status"?: string; /** * Timestamp in millisecond of the upload time of the Custom Costs file. - */ + */ "uploadedAt"?: number; /** * Metadata of the user that has uploaded the Custom Costs file. - */ + */ "uploadedBy"?: CustomCostsUser; /** @@ -66,56 +71,82 @@ export class CustomCostsFileMetadataWithContent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - billedCost: { - baseName: "billed_cost", - type: "number", - format: "double", + "billedCost": { + "baseName": "billed_cost", + "type": "number", + "format": "double", }, - billingCurrency: { - baseName: "billing_currency", - type: "string", + "billingCurrency": { + "baseName": "billing_currency", + "type": "string", }, - chargePeriod: { - baseName: "charge_period", - type: "CustomCostsFileUsageChargePeriod", + "chargePeriod": { + "baseName": "charge_period", + "type": "CustomCostsFileUsageChargePeriod", }, - content: { - baseName: "content", - type: "Array", + "content": { + "baseName": "content", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - providerNames: { - baseName: "provider_names", - type: "Array", + "providerNames": { + "baseName": "provider_names", + "type": "Array", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - uploadedAt: { - baseName: "uploaded_at", - type: "number", - format: "double", + "uploadedAt": { + "baseName": "uploaded_at", + "type": "number", + "format": "double", }, - uploadedBy: { - baseName: "uploaded_by", - type: "CustomCostsUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uploadedBy": { + "baseName": "uploaded_by", + "type": "CustomCostsUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileMetadataWithContent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.ts b/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.ts index 58f14c425b0f..8c26d6bbf192 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.ts @@ -5,23 +5,28 @@ */ import { CustomCostsFileMetadataWithContent } from "./CustomCostsFileMetadataWithContent"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON API format of for a Custom Costs file with content. - */ +*/ export class CustomCostsFileMetadataWithContentHighLevel { /** * Schema of a cost file's metadata. - */ + */ "attributes"?: CustomCostsFileMetadataWithContent; /** * ID of the Custom Costs metadata. - */ + */ "id"?: string; /** * Type of the Custom Costs file metadata. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class CustomCostsFileMetadataWithContentHighLevel { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CustomCostsFileMetadataWithContent", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CustomCostsFileMetadataWithContent", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileMetadataWithContentHighLevel.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.ts b/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.ts index d28d862288dc..c94f2d39e9a1 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.ts @@ -6,19 +6,24 @@ import { CustomCostsFileMetadataHighLevel } from "./CustomCostsFileMetadataHighLevel"; import { CustomCostUploadResponseMeta } from "./CustomCostUploadResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for Uploaded Custom Costs files. - */ +*/ export class CustomCostsFileUploadResponse { /** * JSON API format for a Custom Costs file. - */ + */ "data"?: CustomCostsFileMetadataHighLevel; /** * Meta for the response from the Upload Custom Costs endpoints. - */ + */ "meta"?: CustomCostUploadResponseMeta; /** @@ -37,26 +42,52 @@ export class CustomCostsFileUploadResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CustomCostsFileMetadataHighLevel", + "data": { + "baseName": "data", + "type": "CustomCostsFileMetadataHighLevel", }, - meta: { - baseName: "meta", - type: "CustomCostUploadResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "CustomCostUploadResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileUploadResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.ts b/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.ts index 8bcdfb434a9b..1c6ba3251002 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Usage charge period of a Custom Costs file. - */ +*/ export class CustomCostsFileUsageChargePeriod { /** * End of the usage of the Custom Costs file. - */ + */ "end"?: number; /** * Start of the usage of the Custom Costs file. - */ + */ "start"?: number; /** @@ -35,28 +40,54 @@ export class CustomCostsFileUsageChargePeriod { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "number", - format: "double", + "end": { + "baseName": "end", + "type": "number", + "format": "double", }, - start: { - baseName: "start", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsFileUsageChargePeriod.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomCostsUser.ts b/packages/datadog-api-client-v2/models/CustomCostsUser.ts index 6f22610905d6..f40f0b493ea5 100644 --- a/packages/datadog-api-client-v2/models/CustomCostsUser.ts +++ b/packages/datadog-api-client-v2/models/CustomCostsUser.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata of the user that has uploaded the Custom Costs file. - */ +*/ export class CustomCostsUser { /** * The name of the Custom Costs file. - */ + */ "email"?: string; /** * The name of the Custom Costs file. - */ + */ "icon"?: string; /** * Name of the user. - */ + */ "name"?: string; /** @@ -39,30 +44,56 @@ export class CustomCostsUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - }, - icon: { - baseName: "icon", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "icon": { + "baseName": "icon", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomCostsUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationAttributeTagsRestrictionListType.ts b/packages/datadog-api-client-v2/models/CustomDestinationAttributeTagsRestrictionListType.ts index 0faf0885a86b..2a1a2e7c80f1 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationAttributeTagsRestrictionListType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationAttributeTagsRestrictionListType.ts @@ -4,19 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * How `forward_tags_restriction_list` parameter should be interpreted. * If `ALLOW_LIST`, then only tags whose keys on the forwarded logs match the ones on the restriction list * are forwarded. - * + * * `BLOCK_LIST` works the opposite way. It does not forward the tags matching the ones on the list. - */ +*/ -export type CustomDestinationAttributeTagsRestrictionListType = - | typeof ALLOW_LIST - | typeof BLOCK_LIST - | UnparsedObject; -export const ALLOW_LIST = "ALLOW_LIST"; -export const BLOCK_LIST = "BLOCK_LIST"; +export type CustomDestinationAttributeTagsRestrictionListType = typeof ALLOW_LIST| typeof BLOCK_LIST | UnparsedObject; +export const ALLOW_LIST = 'ALLOW_LIST'; +export const BLOCK_LIST = 'BLOCK_LIST'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationCreateRequest.ts b/packages/datadog-api-client-v2/models/CustomDestinationCreateRequest.ts index 12e2cdbd5e91..a90e93c4154b 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationCreateRequest.ts @@ -5,15 +5,20 @@ */ import { CustomDestinationCreateRequestDefinition } from "./CustomDestinationCreateRequestDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The custom destination. - */ +*/ export class CustomDestinationCreateRequest { /** * The definition of a custom destination. - */ + */ "data"?: CustomDestinationCreateRequestDefinition; /** @@ -32,22 +37,48 @@ export class CustomDestinationCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CustomDestinationCreateRequestDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CustomDestinationCreateRequestDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestAttributes.ts index da3cdc7ad26e..34701de50538 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestAttributes.ts @@ -6,46 +6,51 @@ import { CustomDestinationAttributeTagsRestrictionListType } from "./CustomDestinationAttributeTagsRestrictionListType"; import { CustomDestinationForwardDestination } from "./CustomDestinationForwardDestination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes associated with the custom destination. - */ +*/ export class CustomDestinationCreateRequestAttributes { /** * Whether logs matching this custom destination should be forwarded or not. - */ + */ "enabled"?: boolean; /** * Whether tags from the forwarded logs should be forwarded or not. - */ + */ "forwardTags"?: boolean; /** * List of [keys of tags](https://docs.datadoghq.com/getting_started/tagging/#define-tags) to be filtered. - * + * * An empty list represents no restriction is in place and either all or no tags will be * forwarded depending on `forward_tags_restriction_list_type` parameter. - */ + */ "forwardTagsRestrictionList"?: Array; /** * How `forward_tags_restriction_list` parameter should be interpreted. * If `ALLOW_LIST`, then only tags whose keys on the forwarded logs match the ones on the restriction list * are forwarded. - * + * * `BLOCK_LIST` works the opposite way. It does not forward the tags matching the ones on the list. - */ + */ "forwardTagsRestrictionListType"?: CustomDestinationAttributeTagsRestrictionListType; /** * A custom destination's location to forward logs. - */ + */ "forwarderDestination": CustomDestinationForwardDestination; /** * The custom destination name. - */ + */ "name": string; /** * The custom destination query and filter. Logs matching this query are forwarded to the destination. - */ + */ "query"?: string; /** @@ -64,48 +69,74 @@ export class CustomDestinationCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - forwardTags: { - baseName: "forward_tags", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - forwardTagsRestrictionList: { - baseName: "forward_tags_restriction_list", - type: "Array", + "forwardTags": { + "baseName": "forward_tags", + "type": "boolean", }, - forwardTagsRestrictionListType: { - baseName: "forward_tags_restriction_list_type", - type: "CustomDestinationAttributeTagsRestrictionListType", + "forwardTagsRestrictionList": { + "baseName": "forward_tags_restriction_list", + "type": "Array", }, - forwarderDestination: { - baseName: "forwarder_destination", - type: "CustomDestinationForwardDestination", - required: true, + "forwardTagsRestrictionListType": { + "baseName": "forward_tags_restriction_list_type", + "type": "CustomDestinationAttributeTagsRestrictionListType", }, - name: { - baseName: "name", - type: "string", - required: true, + "forwarderDestination": { + "baseName": "forwarder_destination", + "type": "CustomDestinationForwardDestination", + "required": true, }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestDefinition.ts b/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestDefinition.ts index d94adabf5ead..96b844b40e8b 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestDefinition.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationCreateRequestDefinition.ts @@ -6,19 +6,24 @@ import { CustomDestinationCreateRequestAttributes } from "./CustomDestinationCreateRequestAttributes"; import { CustomDestinationType } from "./CustomDestinationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of a custom destination. - */ +*/ export class CustomDestinationCreateRequestDefinition { /** * The attributes associated with the custom destination. - */ + */ "attributes": CustomDestinationCreateRequestAttributes; /** * The type of the resource. The value should always be `custom_destination`. - */ + */ "type": CustomDestinationType; /** @@ -37,28 +42,54 @@ export class CustomDestinationCreateRequestDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CustomDestinationCreateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CustomDestinationCreateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationCreateRequestDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationElasticsearchDestinationAuth.ts b/packages/datadog-api-client-v2/models/CustomDestinationElasticsearchDestinationAuth.ts index 5c91b752465c..d6c0c576d3ce 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationElasticsearchDestinationAuth.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationElasticsearchDestinationAuth.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Basic access authentication. - */ +*/ export class CustomDestinationElasticsearchDestinationAuth { /** * The password of the authentication. This field is not returned by the API. - */ + */ "password": string; /** * The username of the authentication. This field is not returned by the API. - */ + */ "username": string; /** @@ -35,28 +40,54 @@ export class CustomDestinationElasticsearchDestinationAuth { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - password: { - baseName: "password", - type: "string", - required: true, + "password": { + "baseName": "password", + "type": "string", + "required": true, }, - username: { - baseName: "username", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "username": { + "baseName": "username", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationElasticsearchDestinationAuth.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestination.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestination.ts index 6f6ec9147a30..86566a474cdf 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestination.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestination.ts @@ -7,14 +7,15 @@ import { CustomDestinationForwardDestinationElasticsearch } from "./CustomDestin import { CustomDestinationForwardDestinationHttp } from "./CustomDestinationForwardDestinationHttp"; import { CustomDestinationForwardDestinationSplunk } from "./CustomDestinationForwardDestinationSplunk"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A custom destination's location to forward logs. - */ +*/ -export type CustomDestinationForwardDestination = - | CustomDestinationForwardDestinationHttp - | CustomDestinationForwardDestinationSplunk - | CustomDestinationForwardDestinationElasticsearch - | UnparsedObject; +export type CustomDestinationForwardDestination = CustomDestinationForwardDestinationHttp | CustomDestinationForwardDestinationSplunk | CustomDestinationForwardDestinationElasticsearch | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearch.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearch.ts index 44ee6147e11c..30e4508e089a 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearch.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearch.ts @@ -6,24 +6,29 @@ import { CustomDestinationElasticsearchDestinationAuth } from "./CustomDestinationElasticsearchDestinationAuth"; import { CustomDestinationForwardDestinationElasticsearchType } from "./CustomDestinationForwardDestinationElasticsearchType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Elasticsearch destination. - */ +*/ export class CustomDestinationForwardDestinationElasticsearch { /** * Basic access authentication. - */ + */ "auth": CustomDestinationElasticsearchDestinationAuth; /** * The destination for which logs will be forwarded to. * Must have HTTPS scheme and forwarding back to Datadog is not allowed. - */ + */ "endpoint": string; /** * Name of the Elasticsearch index (must follow [Elasticsearch's criteria](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-create-index.html#indices-create-api-path-params)). - */ + */ "indexName": string; /** * Date pattern with US locale and UTC timezone to be appended to the index name after adding `-` @@ -33,14 +38,14 @@ export class CustomDestinationForwardDestinationElasticsearch { * - Daily: `yyyy-MM-dd` (as an example, it would render: `2022-10-19`) * - Weekly: `yyyy-'W'ww` (as an example, it would render: `2022-W42`) * - Monthly: `yyyy-MM` (as an example, it would render: `2022-10`) - * + * * If this field is missing or is blank, it means that the index name will always be the same * (that is, no rotation). - */ + */ "indexRotation"?: string; /** * Type of the Elasticsearch destination. - */ + */ "type": CustomDestinationForwardDestinationElasticsearchType; /** @@ -59,42 +64,68 @@ export class CustomDestinationForwardDestinationElasticsearch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - auth: { - baseName: "auth", - type: "CustomDestinationElasticsearchDestinationAuth", - required: true, + "auth": { + "baseName": "auth", + "type": "CustomDestinationElasticsearchDestinationAuth", + "required": true, }, - endpoint: { - baseName: "endpoint", - type: "string", - required: true, + "endpoint": { + "baseName": "endpoint", + "type": "string", + "required": true, }, - indexName: { - baseName: "index_name", - type: "string", - required: true, + "indexName": { + "baseName": "index_name", + "type": "string", + "required": true, }, - indexRotation: { - baseName: "index_rotation", - type: "string", + "indexRotation": { + "baseName": "index_rotation", + "type": "string", }, - type: { - baseName: "type", - type: "CustomDestinationForwardDestinationElasticsearchType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationForwardDestinationElasticsearchType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationForwardDestinationElasticsearch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearchType.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearchType.ts index 08a07274a571..191096712525 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearchType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationElasticsearchType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Elasticsearch destination. - */ +*/ -export type CustomDestinationForwardDestinationElasticsearchType = - | typeof ELASTICSEARCH - | UnparsedObject; -export const ELASTICSEARCH = "elasticsearch"; +export type CustomDestinationForwardDestinationElasticsearchType = typeof ELASTICSEARCH | UnparsedObject; +export const ELASTICSEARCH = 'elasticsearch'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttp.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttp.ts index 85272f3dfb90..af1e33b38820 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttp.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttp.ts @@ -6,24 +6,29 @@ import { CustomDestinationForwardDestinationHttpType } from "./CustomDestinationForwardDestinationHttpType"; import { CustomDestinationHttpDestinationAuth } from "./CustomDestinationHttpDestinationAuth"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The HTTP destination. - */ +*/ export class CustomDestinationForwardDestinationHttp { /** * Authentication method of the HTTP requests. - */ + */ "auth": CustomDestinationHttpDestinationAuth; /** * The destination for which logs will be forwarded to. * Must have HTTPS scheme and forwarding back to Datadog is not allowed. - */ + */ "endpoint": string; /** * Type of the HTTP destination. - */ + */ "type": CustomDestinationForwardDestinationHttpType; /** @@ -42,33 +47,59 @@ export class CustomDestinationForwardDestinationHttp { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - auth: { - baseName: "auth", - type: "CustomDestinationHttpDestinationAuth", - required: true, - }, - endpoint: { - baseName: "endpoint", - type: "string", - required: true, + "auth": { + "baseName": "auth", + "type": "CustomDestinationHttpDestinationAuth", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationForwardDestinationHttpType", - required: true, + "endpoint": { + "baseName": "endpoint", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationForwardDestinationHttpType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationForwardDestinationHttp.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttpType.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttpType.ts index 185344a49e3c..30917f510a3e 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttpType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationHttpType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the HTTP destination. - */ +*/ -export type CustomDestinationForwardDestinationHttpType = - | typeof HTTP - | UnparsedObject; -export const HTTP = "http"; +export type CustomDestinationForwardDestinationHttpType = typeof HTTP | UnparsedObject; +export const HTTP = 'http'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunk.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunk.ts index b69b1303b334..2247f8ea53a5 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunk.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunk.ts @@ -5,24 +5,29 @@ */ import { CustomDestinationForwardDestinationSplunkType } from "./CustomDestinationForwardDestinationSplunkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Splunk HTTP Event Collector (HEC) destination. - */ +*/ export class CustomDestinationForwardDestinationSplunk { /** * Access token of the Splunk HTTP Event Collector. This field is not returned by the API. - */ + */ "accessToken": string; /** * The destination for which logs will be forwarded to. * Must have HTTPS scheme and forwarding back to Datadog is not allowed. - */ + */ "endpoint": string; /** * Type of the Splunk HTTP Event Collector (HEC) destination. - */ + */ "type": CustomDestinationForwardDestinationSplunkType; /** @@ -41,33 +46,59 @@ export class CustomDestinationForwardDestinationSplunk { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessToken: { - baseName: "access_token", - type: "string", - required: true, - }, - endpoint: { - baseName: "endpoint", - type: "string", - required: true, + "accessToken": { + "baseName": "access_token", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationForwardDestinationSplunkType", - required: true, + "endpoint": { + "baseName": "endpoint", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationForwardDestinationSplunkType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationForwardDestinationSplunk.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunkType.ts b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunkType.ts index 5cd11b06ef16..d4af6419a991 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunkType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationForwardDestinationSplunkType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Splunk HTTP Event Collector (HEC) destination. - */ +*/ -export type CustomDestinationForwardDestinationSplunkType = - | typeof SPLUNK_HEC - | UnparsedObject; -export const SPLUNK_HEC = "splunk_hec"; +export type CustomDestinationForwardDestinationSplunkType = typeof SPLUNK_HEC | UnparsedObject; +export const SPLUNK_HEC = 'splunk_hec'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuth.ts b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuth.ts index c11b451efd97..8627171d1f42 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuth.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuth.ts @@ -6,13 +6,15 @@ import { CustomDestinationHttpDestinationAuthBasic } from "./CustomDestinationHttpDestinationAuthBasic"; import { CustomDestinationHttpDestinationAuthCustomHeader } from "./CustomDestinationHttpDestinationAuthCustomHeader"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Authentication method of the HTTP requests. - */ +*/ -export type CustomDestinationHttpDestinationAuth = - | CustomDestinationHttpDestinationAuthBasic - | CustomDestinationHttpDestinationAuthCustomHeader - | UnparsedObject; +export type CustomDestinationHttpDestinationAuth = CustomDestinationHttpDestinationAuthBasic | CustomDestinationHttpDestinationAuthCustomHeader | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasic.ts b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasic.ts index c8635faee0dc..915f801cb425 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasic.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasic.ts @@ -5,23 +5,28 @@ */ import { CustomDestinationHttpDestinationAuthBasicType } from "./CustomDestinationHttpDestinationAuthBasicType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Basic access authentication. - */ +*/ export class CustomDestinationHttpDestinationAuthBasic { /** * The password of the authentication. This field is not returned by the API. - */ + */ "password": string; /** * Type of the basic access authentication. - */ + */ "type": CustomDestinationHttpDestinationAuthBasicType; /** * The username of the authentication. This field is not returned by the API. - */ + */ "username": string; /** @@ -40,33 +45,59 @@ export class CustomDestinationHttpDestinationAuthBasic { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - password: { - baseName: "password", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "CustomDestinationHttpDestinationAuthBasicType", - required: true, + "password": { + "baseName": "password", + "type": "string", + "required": true, }, - username: { - baseName: "username", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "CustomDestinationHttpDestinationAuthBasicType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "username": { + "baseName": "username", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationHttpDestinationAuthBasic.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasicType.ts b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasicType.ts index 6575d2eb5c46..9f3a482d09dd 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasicType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthBasicType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the basic access authentication. - */ +*/ -export type CustomDestinationHttpDestinationAuthBasicType = - | typeof BASIC - | UnparsedObject; -export const BASIC = "basic"; +export type CustomDestinationHttpDestinationAuthBasicType = typeof BASIC | UnparsedObject; +export const BASIC = 'basic'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeader.ts b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeader.ts index 0009519aac53..2e5877279c78 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeader.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeader.ts @@ -5,23 +5,28 @@ */ import { CustomDestinationHttpDestinationAuthCustomHeaderType } from "./CustomDestinationHttpDestinationAuthCustomHeaderType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Custom header access authentication. - */ +*/ export class CustomDestinationHttpDestinationAuthCustomHeader { /** * The header name of the authentication. - */ + */ "headerName": string; /** * The header value of the authentication. This field is not returned by the API. - */ + */ "headerValue": string; /** * Type of the custom header access authentication. - */ + */ "type": CustomDestinationHttpDestinationAuthCustomHeaderType; /** @@ -40,33 +45,59 @@ export class CustomDestinationHttpDestinationAuthCustomHeader { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - headerName: { - baseName: "header_name", - type: "string", - required: true, - }, - headerValue: { - baseName: "header_value", - type: "string", - required: true, + "headerName": { + "baseName": "header_name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationHttpDestinationAuthCustomHeaderType", - required: true, + "headerValue": { + "baseName": "header_value", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationHttpDestinationAuthCustomHeaderType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationHttpDestinationAuthCustomHeader.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeaderType.ts b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeaderType.ts index 8b07fe420676..cf838f3a1ff1 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeaderType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationHttpDestinationAuthCustomHeaderType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the custom header access authentication. - */ +*/ -export type CustomDestinationHttpDestinationAuthCustomHeaderType = - | typeof CUSTOM_HEADER - | UnparsedObject; -export const CUSTOM_HEADER = "custom_header"; +export type CustomDestinationHttpDestinationAuthCustomHeaderType = typeof CUSTOM_HEADER | UnparsedObject; +export const CUSTOM_HEADER = 'custom_header'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponse.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponse.ts index 2d19b41c017d..b4555c6a931c 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponse.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponse.ts @@ -5,15 +5,20 @@ */ import { CustomDestinationResponseDefinition } from "./CustomDestinationResponseDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The custom destination. - */ +*/ export class CustomDestinationResponse { /** * The definition of a custom destination. - */ + */ "data"?: CustomDestinationResponseDefinition; /** @@ -32,22 +37,48 @@ export class CustomDestinationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CustomDestinationResponseDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CustomDestinationResponseDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseAttributes.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseAttributes.ts index 9c0d3b989111..78890ea1b2fb 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseAttributes.ts @@ -6,46 +6,51 @@ import { CustomDestinationAttributeTagsRestrictionListType } from "./CustomDestinationAttributeTagsRestrictionListType"; import { CustomDestinationResponseForwardDestination } from "./CustomDestinationResponseForwardDestination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes associated with the custom destination. - */ +*/ export class CustomDestinationResponseAttributes { /** * Whether logs matching this custom destination should be forwarded or not. - */ + */ "enabled"?: boolean; /** * Whether tags from the forwarded logs should be forwarded or not. - */ + */ "forwardTags"?: boolean; /** * List of [keys of tags](https://docs.datadoghq.com/getting_started/tagging/#define-tags) to be filtered. - * + * * An empty list represents no restriction is in place and either all or no tags will be * forwarded depending on `forward_tags_restriction_list_type` parameter. - */ + */ "forwardTagsRestrictionList"?: Array; /** * How `forward_tags_restriction_list` parameter should be interpreted. * If `ALLOW_LIST`, then only tags whose keys on the forwarded logs match the ones on the restriction list * are forwarded. - * + * * `BLOCK_LIST` works the opposite way. It does not forward the tags matching the ones on the list. - */ + */ "forwardTagsRestrictionListType"?: CustomDestinationAttributeTagsRestrictionListType; /** * A custom destination's location to forward logs. - */ + */ "forwarderDestination"?: CustomDestinationResponseForwardDestination; /** * The custom destination name. - */ + */ "name"?: string; /** * The custom destination query filter. Logs matching this query are forwarded to the destination. - */ + */ "query"?: string; /** @@ -64,46 +69,72 @@ export class CustomDestinationResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - forwardTags: { - baseName: "forward_tags", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - forwardTagsRestrictionList: { - baseName: "forward_tags_restriction_list", - type: "Array", + "forwardTags": { + "baseName": "forward_tags", + "type": "boolean", }, - forwardTagsRestrictionListType: { - baseName: "forward_tags_restriction_list_type", - type: "CustomDestinationAttributeTagsRestrictionListType", + "forwardTagsRestrictionList": { + "baseName": "forward_tags_restriction_list", + "type": "Array", }, - forwarderDestination: { - baseName: "forwarder_destination", - type: "CustomDestinationResponseForwardDestination", + "forwardTagsRestrictionListType": { + "baseName": "forward_tags_restriction_list_type", + "type": "CustomDestinationAttributeTagsRestrictionListType", }, - name: { - baseName: "name", - type: "string", + "forwarderDestination": { + "baseName": "forwarder_destination", + "type": "CustomDestinationResponseForwardDestination", }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseDefinition.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseDefinition.ts index 57a361202cb8..2a61f120efe3 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseDefinition.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseDefinition.ts @@ -6,23 +6,28 @@ import { CustomDestinationResponseAttributes } from "./CustomDestinationResponseAttributes"; import { CustomDestinationType } from "./CustomDestinationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of a custom destination. - */ +*/ export class CustomDestinationResponseDefinition { /** * The attributes associated with the custom destination. - */ + */ "attributes"?: CustomDestinationResponseAttributes; /** * The custom destination ID. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `custom_destination`. - */ + */ "type"?: CustomDestinationType; /** @@ -41,30 +46,56 @@ export class CustomDestinationResponseDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CustomDestinationResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "CustomDestinationResponseAttributes", }, - type: { - baseName: "type", - type: "CustomDestinationType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestination.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestination.ts index 49b386f304a9..7c1970658ae0 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestination.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestination.ts @@ -7,14 +7,15 @@ import { CustomDestinationResponseForwardDestinationElasticsearch } from "./Cust import { CustomDestinationResponseForwardDestinationHttp } from "./CustomDestinationResponseForwardDestinationHttp"; import { CustomDestinationResponseForwardDestinationSplunk } from "./CustomDestinationResponseForwardDestinationSplunk"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A custom destination's location to forward logs. - */ +*/ -export type CustomDestinationResponseForwardDestination = - | CustomDestinationResponseForwardDestinationHttp - | CustomDestinationResponseForwardDestinationSplunk - | CustomDestinationResponseForwardDestinationElasticsearch - | UnparsedObject; +export type CustomDestinationResponseForwardDestination = CustomDestinationResponseForwardDestinationHttp | CustomDestinationResponseForwardDestinationSplunk | CustomDestinationResponseForwardDestinationElasticsearch | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearch.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearch.ts index 70a82b092d8a..55688657c73e 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearch.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearch.ts @@ -5,24 +5,29 @@ */ import { CustomDestinationResponseForwardDestinationElasticsearchType } from "./CustomDestinationResponseForwardDestinationElasticsearchType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Elasticsearch destination. - */ +*/ export class CustomDestinationResponseForwardDestinationElasticsearch { /** * Basic access authentication. - */ - "auth": { [key: string]: any }; + */ + "auth": { [key: string]: any; }; /** * The destination for which logs will be forwarded to. * Must have HTTPS scheme and forwarding back to Datadog is not allowed. - */ + */ "endpoint": string; /** * Name of the Elasticsearch index (must follow [Elasticsearch's criteria](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-create-index.html#indices-create-api-path-params)). - */ + */ "indexName": string; /** * Date pattern with US locale and UTC timezone to be appended to the index name after adding `-` @@ -32,14 +37,14 @@ export class CustomDestinationResponseForwardDestinationElasticsearch { * - Daily: `yyyy-MM-dd` (as an example, it would render: `2022-10-19`) * - Weekly: `yyyy-'W'ww` (as an example, it would render: `2022-W42`) * - Monthly: `yyyy-MM` (as an example, it would render: `2022-10`) - * + * * If this field is missing or is blank, it means that the index name will always be the same * (that is, no rotation). - */ + */ "indexRotation"?: string; /** * Type of the Elasticsearch destination. - */ + */ "type": CustomDestinationResponseForwardDestinationElasticsearchType; /** @@ -58,42 +63,68 @@ export class CustomDestinationResponseForwardDestinationElasticsearch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - auth: { - baseName: "auth", - type: "{ [key: string]: any; }", - required: true, + "auth": { + "baseName": "auth", + "type": "{ [key: string]: any; }", + "required": true, }, - endpoint: { - baseName: "endpoint", - type: "string", - required: true, + "endpoint": { + "baseName": "endpoint", + "type": "string", + "required": true, }, - indexName: { - baseName: "index_name", - type: "string", - required: true, + "indexName": { + "baseName": "index_name", + "type": "string", + "required": true, }, - indexRotation: { - baseName: "index_rotation", - type: "string", + "indexRotation": { + "baseName": "index_rotation", + "type": "string", }, - type: { - baseName: "type", - type: "CustomDestinationResponseForwardDestinationElasticsearchType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationResponseForwardDestinationElasticsearchType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseForwardDestinationElasticsearch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearchType.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearchType.ts index acecc529b0f4..591467d7a4b0 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearchType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationElasticsearchType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Elasticsearch destination. - */ +*/ -export type CustomDestinationResponseForwardDestinationElasticsearchType = - | typeof ELASTICSEARCH - | UnparsedObject; -export const ELASTICSEARCH = "elasticsearch"; +export type CustomDestinationResponseForwardDestinationElasticsearchType = typeof ELASTICSEARCH | UnparsedObject; +export const ELASTICSEARCH = 'elasticsearch'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttp.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttp.ts index e0854da88534..f0a5c895e3f2 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttp.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttp.ts @@ -6,24 +6,29 @@ import { CustomDestinationResponseForwardDestinationHttpType } from "./CustomDestinationResponseForwardDestinationHttpType"; import { CustomDestinationResponseHttpDestinationAuth } from "./CustomDestinationResponseHttpDestinationAuth"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The HTTP destination. - */ +*/ export class CustomDestinationResponseForwardDestinationHttp { /** * Authentication method of the HTTP requests. - */ + */ "auth": CustomDestinationResponseHttpDestinationAuth; /** * The destination for which logs will be forwarded to. * Must have HTTPS scheme and forwarding back to Datadog is not allowed. - */ + */ "endpoint": string; /** * Type of the HTTP destination. - */ + */ "type": CustomDestinationResponseForwardDestinationHttpType; /** @@ -42,33 +47,59 @@ export class CustomDestinationResponseForwardDestinationHttp { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - auth: { - baseName: "auth", - type: "CustomDestinationResponseHttpDestinationAuth", - required: true, - }, - endpoint: { - baseName: "endpoint", - type: "string", - required: true, + "auth": { + "baseName": "auth", + "type": "CustomDestinationResponseHttpDestinationAuth", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationResponseForwardDestinationHttpType", - required: true, + "endpoint": { + "baseName": "endpoint", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationResponseForwardDestinationHttpType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseForwardDestinationHttp.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttpType.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttpType.ts index e348c14c1cff..607dd81f52c3 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttpType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationHttpType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the HTTP destination. - */ +*/ -export type CustomDestinationResponseForwardDestinationHttpType = - | typeof HTTP - | UnparsedObject; -export const HTTP = "http"; +export type CustomDestinationResponseForwardDestinationHttpType = typeof HTTP | UnparsedObject; +export const HTTP = 'http'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunk.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunk.ts index d4935edd5c27..e6f31c841a88 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunk.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunk.ts @@ -5,20 +5,25 @@ */ import { CustomDestinationResponseForwardDestinationSplunkType } from "./CustomDestinationResponseForwardDestinationSplunkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Splunk HTTP Event Collector (HEC) destination. - */ +*/ export class CustomDestinationResponseForwardDestinationSplunk { /** * The destination for which logs will be forwarded to. * Must have HTTPS scheme and forwarding back to Datadog is not allowed. - */ + */ "endpoint": string; /** * Type of the Splunk HTTP Event Collector (HEC) destination. - */ + */ "type": CustomDestinationResponseForwardDestinationSplunkType; /** @@ -37,28 +42,54 @@ export class CustomDestinationResponseForwardDestinationSplunk { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - endpoint: { - baseName: "endpoint", - type: "string", - required: true, + "endpoint": { + "baseName": "endpoint", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationResponseForwardDestinationSplunkType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationResponseForwardDestinationSplunkType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseForwardDestinationSplunk.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunkType.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunkType.ts index 6a7505c10033..504dd36ebd16 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunkType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseForwardDestinationSplunkType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Splunk HTTP Event Collector (HEC) destination. - */ +*/ -export type CustomDestinationResponseForwardDestinationSplunkType = - | typeof SPLUNK_HEC - | UnparsedObject; -export const SPLUNK_HEC = "splunk_hec"; +export type CustomDestinationResponseForwardDestinationSplunkType = typeof SPLUNK_HEC | UnparsedObject; +export const SPLUNK_HEC = 'splunk_hec'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuth.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuth.ts index 86fa355964d9..fe2e755e1952 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuth.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuth.ts @@ -6,13 +6,15 @@ import { CustomDestinationResponseHttpDestinationAuthBasic } from "./CustomDestinationResponseHttpDestinationAuthBasic"; import { CustomDestinationResponseHttpDestinationAuthCustomHeader } from "./CustomDestinationResponseHttpDestinationAuthCustomHeader"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Authentication method of the HTTP requests. - */ +*/ -export type CustomDestinationResponseHttpDestinationAuth = - | CustomDestinationResponseHttpDestinationAuthBasic - | CustomDestinationResponseHttpDestinationAuthCustomHeader - | UnparsedObject; +export type CustomDestinationResponseHttpDestinationAuth = CustomDestinationResponseHttpDestinationAuthBasic | CustomDestinationResponseHttpDestinationAuthCustomHeader | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasic.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasic.ts index 8a54f7b6a0f9..0fab3d56c949 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasic.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasic.ts @@ -5,15 +5,20 @@ */ import { CustomDestinationResponseHttpDestinationAuthBasicType } from "./CustomDestinationResponseHttpDestinationAuthBasicType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Basic access authentication. - */ +*/ export class CustomDestinationResponseHttpDestinationAuthBasic { /** * Type of the basic access authentication. - */ + */ "type": CustomDestinationResponseHttpDestinationAuthBasicType; /** @@ -32,23 +37,49 @@ export class CustomDestinationResponseHttpDestinationAuthBasic { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "CustomDestinationResponseHttpDestinationAuthBasicType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationResponseHttpDestinationAuthBasicType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseHttpDestinationAuthBasic.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasicType.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasicType.ts index db4981abffe3..087d9b56d0ba 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasicType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthBasicType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the basic access authentication. - */ +*/ -export type CustomDestinationResponseHttpDestinationAuthBasicType = - | typeof BASIC - | UnparsedObject; -export const BASIC = "basic"; +export type CustomDestinationResponseHttpDestinationAuthBasicType = typeof BASIC | UnparsedObject; +export const BASIC = 'basic'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeader.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeader.ts index 7f8192197ed7..e85cd8fdc4b2 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeader.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeader.ts @@ -5,19 +5,24 @@ */ import { CustomDestinationResponseHttpDestinationAuthCustomHeaderType } from "./CustomDestinationResponseHttpDestinationAuthCustomHeaderType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Custom header access authentication. - */ +*/ export class CustomDestinationResponseHttpDestinationAuthCustomHeader { /** * The header name of the authentication. - */ + */ "headerName": string; /** * Type of the custom header access authentication. - */ + */ "type": CustomDestinationResponseHttpDestinationAuthCustomHeaderType; /** @@ -36,28 +41,54 @@ export class CustomDestinationResponseHttpDestinationAuthCustomHeader { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - headerName: { - baseName: "header_name", - type: "string", - required: true, + "headerName": { + "baseName": "header_name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "CustomDestinationResponseHttpDestinationAuthCustomHeaderType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationResponseHttpDestinationAuthCustomHeaderType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationResponseHttpDestinationAuthCustomHeader.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeaderType.ts b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeaderType.ts index 2e0828ab22f8..01b4d3bb3781 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeaderType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationResponseHttpDestinationAuthCustomHeaderType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the custom header access authentication. - */ +*/ -export type CustomDestinationResponseHttpDestinationAuthCustomHeaderType = - | typeof CUSTOM_HEADER - | UnparsedObject; -export const CUSTOM_HEADER = "custom_header"; +export type CustomDestinationResponseHttpDestinationAuthCustomHeaderType = typeof CUSTOM_HEADER | UnparsedObject; +export const CUSTOM_HEADER = 'custom_header'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationType.ts b/packages/datadog-api-client-v2/models/CustomDestinationType.ts index 4ae58b227f6e..9e42f6549187 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationType.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `custom_destination`. - */ +*/ export type CustomDestinationType = typeof CUSTOM_DESTINATION | UnparsedObject; -export const CUSTOM_DESTINATION = "custom_destination"; +export const CUSTOM_DESTINATION = 'custom_destination'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequest.ts b/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequest.ts index 2d1b80b8ac07..3b508e0dca07 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { CustomDestinationUpdateRequestDefinition } from "./CustomDestinationUpdateRequestDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The custom destination. - */ +*/ export class CustomDestinationUpdateRequest { /** * The definition of a custom destination. - */ + */ "data"?: CustomDestinationUpdateRequestDefinition; /** @@ -32,22 +37,48 @@ export class CustomDestinationUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "CustomDestinationUpdateRequestDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "CustomDestinationUpdateRequestDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestAttributes.ts index a921d924503b..93efd0b16f0d 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestAttributes.ts @@ -6,44 +6,49 @@ import { CustomDestinationAttributeTagsRestrictionListType } from "./CustomDestinationAttributeTagsRestrictionListType"; import { CustomDestinationForwardDestination } from "./CustomDestinationForwardDestination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes associated with the custom destination. - */ +*/ export class CustomDestinationUpdateRequestAttributes { /** * Whether logs matching this custom destination should be forwarded or not. - */ + */ "enabled"?: boolean; /** * Whether tags from the forwarded logs should be forwarded or not. - */ + */ "forwardTags"?: boolean; /** * List of [keys of tags](https://docs.datadoghq.com/getting_started/tagging/#define-tags) to be restricted from being forwarded. * An empty list represents no restriction is in place and either all or no tags will be forwarded depending on `forward_tags_restriction_list_type` parameter. - */ + */ "forwardTagsRestrictionList"?: Array; /** * How `forward_tags_restriction_list` parameter should be interpreted. * If `ALLOW_LIST`, then only tags whose keys on the forwarded logs match the ones on the restriction list * are forwarded. - * + * * `BLOCK_LIST` works the opposite way. It does not forward the tags matching the ones on the list. - */ + */ "forwardTagsRestrictionListType"?: CustomDestinationAttributeTagsRestrictionListType; /** * A custom destination's location to forward logs. - */ + */ "forwarderDestination"?: CustomDestinationForwardDestination; /** * The custom destination name. - */ + */ "name"?: string; /** * The custom destination query and filter. Logs matching this query are forwarded to the destination. - */ + */ "query"?: string; /** @@ -62,46 +67,72 @@ export class CustomDestinationUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - forwardTags: { - baseName: "forward_tags", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - forwardTagsRestrictionList: { - baseName: "forward_tags_restriction_list", - type: "Array", + "forwardTags": { + "baseName": "forward_tags", + "type": "boolean", }, - forwardTagsRestrictionListType: { - baseName: "forward_tags_restriction_list_type", - type: "CustomDestinationAttributeTagsRestrictionListType", + "forwardTagsRestrictionList": { + "baseName": "forward_tags_restriction_list", + "type": "Array", }, - forwarderDestination: { - baseName: "forwarder_destination", - type: "CustomDestinationForwardDestination", + "forwardTagsRestrictionListType": { + "baseName": "forward_tags_restriction_list_type", + "type": "CustomDestinationAttributeTagsRestrictionListType", }, - name: { - baseName: "name", - type: "string", + "forwarderDestination": { + "baseName": "forwarder_destination", + "type": "CustomDestinationForwardDestination", }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestDefinition.ts b/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestDefinition.ts index de252409b71a..850a2532cf0f 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestDefinition.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationUpdateRequestDefinition.ts @@ -6,23 +6,28 @@ import { CustomDestinationType } from "./CustomDestinationType"; import { CustomDestinationUpdateRequestAttributes } from "./CustomDestinationUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of a custom destination. - */ +*/ export class CustomDestinationUpdateRequestDefinition { /** * The attributes associated with the custom destination. - */ + */ "attributes"?: CustomDestinationUpdateRequestAttributes; /** * The custom destination ID. - */ + */ "id": string; /** * The type of the resource. The value should always be `custom_destination`. - */ + */ "type": CustomDestinationType; /** @@ -41,32 +46,58 @@ export class CustomDestinationUpdateRequestDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "CustomDestinationUpdateRequestAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "CustomDestinationUpdateRequestAttributes", }, - type: { - baseName: "type", - type: "CustomDestinationType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CustomDestinationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationUpdateRequestDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/CustomDestinationsResponse.ts b/packages/datadog-api-client-v2/models/CustomDestinationsResponse.ts index cde6174392dd..5472da716e40 100644 --- a/packages/datadog-api-client-v2/models/CustomDestinationsResponse.ts +++ b/packages/datadog-api-client-v2/models/CustomDestinationsResponse.ts @@ -5,15 +5,20 @@ */ import { CustomDestinationResponseDefinition } from "./CustomDestinationResponseDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The available custom destinations. - */ +*/ export class CustomDestinationsResponse { /** * A list of custom destinations. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class CustomDestinationsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return CustomDestinationsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORADeploymentRequest.ts b/packages/datadog-api-client-v2/models/DORADeploymentRequest.ts index 1de04de47729..8f1cf0953d42 100644 --- a/packages/datadog-api-client-v2/models/DORADeploymentRequest.ts +++ b/packages/datadog-api-client-v2/models/DORADeploymentRequest.ts @@ -5,15 +5,20 @@ */ import { DORADeploymentRequestData } from "./DORADeploymentRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request to create a DORA deployment event. - */ +*/ export class DORADeploymentRequest { /** * The JSON:API data. - */ + */ "data": DORADeploymentRequestData; /** @@ -32,23 +37,49 @@ export class DORADeploymentRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DORADeploymentRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DORADeploymentRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORADeploymentRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.ts b/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.ts index 107e72a8c7ff..b2c5be31b90f 100644 --- a/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.ts @@ -5,43 +5,48 @@ */ import { DORAGitInfo } from "./DORAGitInfo"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes to create a DORA deployment event. - */ +*/ export class DORADeploymentRequestAttributes { /** * Environment name to where the service was deployed. - */ + */ "env"?: string; /** * Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour. - */ + */ "finishedAt": number; /** * Git info for DORA Metrics events. - */ + */ "git"?: DORAGitInfo; /** * Deployment ID. - */ + */ "id"?: string; /** * Service name. - */ + */ "service": string; /** * Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds. - */ + */ "startedAt": number; /** * Name of the team owning the deployed service. If not provided, this is automatically populated with the team associated with the service in the Service Catalog. - */ + */ "team"?: string; /** * Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/). - */ + */ "version"?: string; /** @@ -60,55 +65,81 @@ export class DORADeploymentRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - env: { - baseName: "env", - type: "string", + "env": { + "baseName": "env", + "type": "string", }, - finishedAt: { - baseName: "finished_at", - type: "number", - required: true, - format: "int64", + "finishedAt": { + "baseName": "finished_at", + "type": "number", + "required": true, + "format": "int64", }, - git: { - baseName: "git", - type: "DORAGitInfo", + "git": { + "baseName": "git", + "type": "DORAGitInfo", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - service: { - baseName: "service", - type: "string", - required: true, + "service": { + "baseName": "service", + "type": "string", + "required": true, }, - startedAt: { - baseName: "started_at", - type: "number", - required: true, - format: "int64", + "startedAt": { + "baseName": "started_at", + "type": "number", + "required": true, + "format": "int64", }, - team: { - baseName: "team", - type: "string", + "team": { + "baseName": "team", + "type": "string", }, - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORADeploymentRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORADeploymentRequestData.ts b/packages/datadog-api-client-v2/models/DORADeploymentRequestData.ts index c8f82b1a1eee..87858e2cfb4e 100644 --- a/packages/datadog-api-client-v2/models/DORADeploymentRequestData.ts +++ b/packages/datadog-api-client-v2/models/DORADeploymentRequestData.ts @@ -5,15 +5,20 @@ */ import { DORADeploymentRequestAttributes } from "./DORADeploymentRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API data. - */ +*/ export class DORADeploymentRequestData { /** * Attributes to create a DORA deployment event. - */ + */ "attributes": DORADeploymentRequestAttributes; /** @@ -32,23 +37,49 @@ export class DORADeploymentRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DORADeploymentRequestAttributes", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "DORADeploymentRequestAttributes", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORADeploymentRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORADeploymentResponse.ts b/packages/datadog-api-client-v2/models/DORADeploymentResponse.ts index fa604020d71f..e7445a76fcdf 100644 --- a/packages/datadog-api-client-v2/models/DORADeploymentResponse.ts +++ b/packages/datadog-api-client-v2/models/DORADeploymentResponse.ts @@ -5,15 +5,20 @@ */ import { DORADeploymentResponseData } from "./DORADeploymentResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response after receiving a DORA deployment event. - */ +*/ export class DORADeploymentResponse { /** * The JSON:API data. - */ + */ "data": DORADeploymentResponseData; /** @@ -32,23 +37,49 @@ export class DORADeploymentResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DORADeploymentResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DORADeploymentResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORADeploymentResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORADeploymentResponseData.ts b/packages/datadog-api-client-v2/models/DORADeploymentResponseData.ts index edf7e8077912..9d2478fbcd71 100644 --- a/packages/datadog-api-client-v2/models/DORADeploymentResponseData.ts +++ b/packages/datadog-api-client-v2/models/DORADeploymentResponseData.ts @@ -5,19 +5,24 @@ */ import { DORADeploymentType } from "./DORADeploymentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API data. - */ +*/ export class DORADeploymentResponseData { /** * The ID of the received DORA deployment event. - */ + */ "id": string; /** * JSON:API type for DORA deployment events. - */ + */ "type"?: DORADeploymentType; /** @@ -36,27 +41,53 @@ export class DORADeploymentResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "DORADeploymentType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DORADeploymentType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORADeploymentResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORADeploymentType.ts b/packages/datadog-api-client-v2/models/DORADeploymentType.ts index 11b9009ecb40..aa93041c38c4 100644 --- a/packages/datadog-api-client-v2/models/DORADeploymentType.ts +++ b/packages/datadog-api-client-v2/models/DORADeploymentType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * JSON:API type for DORA deployment events. - */ +*/ export type DORADeploymentType = typeof DORA_DEPLOYMENT | UnparsedObject; -export const DORA_DEPLOYMENT = "dora_deployment"; +export const DORA_DEPLOYMENT = 'dora_deployment'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DORAGitInfo.ts b/packages/datadog-api-client-v2/models/DORAGitInfo.ts index d9df5e92d6d1..b95b508e3f8a 100644 --- a/packages/datadog-api-client-v2/models/DORAGitInfo.ts +++ b/packages/datadog-api-client-v2/models/DORAGitInfo.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Git info for DORA Metrics events. - */ +*/ export class DORAGitInfo { /** * Git Commit SHA. - */ + */ "commitSha": string; /** * Git Repository URL - */ + */ "repositoryUrl": string; /** @@ -35,28 +40,54 @@ export class DORAGitInfo { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - commitSha: { - baseName: "commit_sha", - type: "string", - required: true, + "commitSha": { + "baseName": "commit_sha", + "type": "string", + "required": true, }, - repositoryUrl: { - baseName: "repository_url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "repositoryUrl": { + "baseName": "repository_url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORAGitInfo.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORAIncidentRequest.ts b/packages/datadog-api-client-v2/models/DORAIncidentRequest.ts index cddec1c6893e..e0a7115089d0 100644 --- a/packages/datadog-api-client-v2/models/DORAIncidentRequest.ts +++ b/packages/datadog-api-client-v2/models/DORAIncidentRequest.ts @@ -5,15 +5,20 @@ */ import { DORAIncidentRequestData } from "./DORAIncidentRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request to create a DORA incident event. - */ +*/ export class DORAIncidentRequest { /** * The JSON:API data. - */ + */ "data": DORAIncidentRequestData; /** @@ -32,23 +37,49 @@ export class DORAIncidentRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DORAIncidentRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DORAIncidentRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORAIncidentRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.ts b/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.ts index ea903e12b03f..4c2c6faa74b2 100644 --- a/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.ts @@ -5,51 +5,56 @@ */ import { DORAGitInfo } from "./DORAGitInfo"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes to create a DORA incident event. - */ +*/ export class DORAIncidentRequestAttributes { /** * Environment name that was impacted by the incident. - */ + */ "env"?: string; /** * Unix timestamp when the incident finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour. - */ + */ "finishedAt"?: number; /** * Git info for DORA Metrics events. - */ + */ "git"?: DORAGitInfo; /** * Incident ID. Required to update a previously sent incident. - */ + */ "id"?: string; /** * Incident name. - */ + */ "name"?: string; /** * Service names impacted by the incident. If possible, use names registered in the Service Catalog. Required when the team field is not provided. - */ + */ "services"?: Array; /** * Incident severity. - */ + */ "severity"?: string; /** * Unix timestamp when the incident started. It must be in nanoseconds, milliseconds, or seconds. - */ + */ "startedAt": number; /** * Name of the team owning the services impacted. If possible, use team handles registered in Datadog. Required when the services field is not provided. - */ + */ "team"?: string; /** * Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/). - */ + */ "version"?: string; /** @@ -68,61 +73,87 @@ export class DORAIncidentRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - env: { - baseName: "env", - type: "string", - }, - finishedAt: { - baseName: "finished_at", - type: "number", - format: "int64", + "env": { + "baseName": "env", + "type": "string", }, - git: { - baseName: "git", - type: "DORAGitInfo", + "finishedAt": { + "baseName": "finished_at", + "type": "number", + "format": "int64", }, - id: { - baseName: "id", - type: "string", + "git": { + "baseName": "git", + "type": "DORAGitInfo", }, - name: { - baseName: "name", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - services: { - baseName: "services", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - severity: { - baseName: "severity", - type: "string", + "services": { + "baseName": "services", + "type": "Array", }, - startedAt: { - baseName: "started_at", - type: "number", - required: true, - format: "int64", + "severity": { + "baseName": "severity", + "type": "string", }, - team: { - baseName: "team", - type: "string", + "startedAt": { + "baseName": "started_at", + "type": "number", + "required": true, + "format": "int64", }, - version: { - baseName: "version", - type: "string", + "team": { + "baseName": "team", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORAIncidentRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORAIncidentRequestData.ts b/packages/datadog-api-client-v2/models/DORAIncidentRequestData.ts index 1d4294497735..0d7dfaf2e948 100644 --- a/packages/datadog-api-client-v2/models/DORAIncidentRequestData.ts +++ b/packages/datadog-api-client-v2/models/DORAIncidentRequestData.ts @@ -5,15 +5,20 @@ */ import { DORAIncidentRequestAttributes } from "./DORAIncidentRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API data. - */ +*/ export class DORAIncidentRequestData { /** * Attributes to create a DORA incident event. - */ + */ "attributes": DORAIncidentRequestAttributes; /** @@ -32,23 +37,49 @@ export class DORAIncidentRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DORAIncidentRequestAttributes", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "DORAIncidentRequestAttributes", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORAIncidentRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORAIncidentResponse.ts b/packages/datadog-api-client-v2/models/DORAIncidentResponse.ts index d335fe9ce22a..8f3b6bee4885 100644 --- a/packages/datadog-api-client-v2/models/DORAIncidentResponse.ts +++ b/packages/datadog-api-client-v2/models/DORAIncidentResponse.ts @@ -5,15 +5,20 @@ */ import { DORAIncidentResponseData } from "./DORAIncidentResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response after receiving a DORA incident event. - */ +*/ export class DORAIncidentResponse { /** * Response after receiving a DORA incident event. - */ + */ "data": DORAIncidentResponseData; /** @@ -32,23 +37,49 @@ export class DORAIncidentResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DORAIncidentResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DORAIncidentResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORAIncidentResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORAIncidentResponseData.ts b/packages/datadog-api-client-v2/models/DORAIncidentResponseData.ts index 6a24d9b83092..806b2bfad2f6 100644 --- a/packages/datadog-api-client-v2/models/DORAIncidentResponseData.ts +++ b/packages/datadog-api-client-v2/models/DORAIncidentResponseData.ts @@ -5,19 +5,24 @@ */ import { DORAIncidentType } from "./DORAIncidentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response after receiving a DORA incident event. - */ +*/ export class DORAIncidentResponseData { /** * The ID of the received DORA incident event. - */ + */ "id": string; /** * JSON:API type for DORA incident events. - */ + */ "type"?: DORAIncidentType; /** @@ -36,27 +41,53 @@ export class DORAIncidentResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "DORAIncidentType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DORAIncidentType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DORAIncidentResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DORAIncidentType.ts b/packages/datadog-api-client-v2/models/DORAIncidentType.ts index 1a4cade2a28d..b37953d50c05 100644 --- a/packages/datadog-api-client-v2/models/DORAIncidentType.ts +++ b/packages/datadog-api-client-v2/models/DORAIncidentType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * JSON:API type for DORA incident events. - */ +*/ export type DORAIncidentType = typeof DORA_INCIDENT | UnparsedObject; -export const DORA_INCIDENT = "dora_incident"; +export const DORA_INCIDENT = 'dora_incident'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DashboardListAddItemsRequest.ts b/packages/datadog-api-client-v2/models/DashboardListAddItemsRequest.ts index 59f0a8feb736..cb7422e33256 100644 --- a/packages/datadog-api-client-v2/models/DashboardListAddItemsRequest.ts +++ b/packages/datadog-api-client-v2/models/DashboardListAddItemsRequest.ts @@ -5,15 +5,20 @@ */ import { DashboardListItemRequest } from "./DashboardListItemRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request containing a list of dashboards to add. - */ +*/ export class DashboardListAddItemsRequest { /** * List of dashboards to add the dashboard list. - */ + */ "dashboards"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListAddItemsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "dashboards": { + "baseName": "dashboards", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListAddItemsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListAddItemsResponse.ts b/packages/datadog-api-client-v2/models/DashboardListAddItemsResponse.ts index 996dc6ceb212..562a18c7ee7d 100644 --- a/packages/datadog-api-client-v2/models/DashboardListAddItemsResponse.ts +++ b/packages/datadog-api-client-v2/models/DashboardListAddItemsResponse.ts @@ -5,15 +5,20 @@ */ import { DashboardListItemResponse } from "./DashboardListItemResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing a list of added dashboards. - */ +*/ export class DashboardListAddItemsResponse { /** * List of dashboards added to the dashboard list. - */ + */ "addedDashboardsToList"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListAddItemsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - addedDashboardsToList: { - baseName: "added_dashboards_to_list", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "addedDashboardsToList": { + "baseName": "added_dashboards_to_list", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListAddItemsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListDeleteItemsRequest.ts b/packages/datadog-api-client-v2/models/DashboardListDeleteItemsRequest.ts index b2f9980fd9cb..34b7bfe24e69 100644 --- a/packages/datadog-api-client-v2/models/DashboardListDeleteItemsRequest.ts +++ b/packages/datadog-api-client-v2/models/DashboardListDeleteItemsRequest.ts @@ -5,15 +5,20 @@ */ import { DashboardListItemRequest } from "./DashboardListItemRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request containing a list of dashboards to delete. - */ +*/ export class DashboardListDeleteItemsRequest { /** * List of dashboards to delete from the dashboard list. - */ + */ "dashboards"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListDeleteItemsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "dashboards": { + "baseName": "dashboards", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListDeleteItemsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListDeleteItemsResponse.ts b/packages/datadog-api-client-v2/models/DashboardListDeleteItemsResponse.ts index 81ab18edd3a0..05697c4b7dba 100644 --- a/packages/datadog-api-client-v2/models/DashboardListDeleteItemsResponse.ts +++ b/packages/datadog-api-client-v2/models/DashboardListDeleteItemsResponse.ts @@ -5,15 +5,20 @@ */ import { DashboardListItemResponse } from "./DashboardListItemResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing a list of deleted dashboards. - */ +*/ export class DashboardListDeleteItemsResponse { /** * List of dashboards deleted from the dashboard list. - */ + */ "deletedDashboardsFromList"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListDeleteItemsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deletedDashboardsFromList: { - baseName: "deleted_dashboards_from_list", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deletedDashboardsFromList": { + "baseName": "deleted_dashboards_from_list", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListDeleteItemsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListItem.ts b/packages/datadog-api-client-v2/models/DashboardListItem.ts index 73ab790a4094..43abee580973 100644 --- a/packages/datadog-api-client-v2/models/DashboardListItem.ts +++ b/packages/datadog-api-client-v2/models/DashboardListItem.ts @@ -6,67 +6,72 @@ import { Creator } from "./Creator"; import { DashboardType } from "./DashboardType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A dashboard within a list. - */ +*/ export class DashboardListItem { /** * Creator of the object. - */ + */ "author"?: Creator; /** * Date of creation of the dashboard. - */ + */ "created"?: Date; /** * URL to the icon of the dashboard. - */ + */ "icon"?: string; /** * ID of the dashboard. - */ + */ "id": string; /** * The short name of the integration. - */ + */ "integrationId"?: string; /** * Whether or not the dashboard is in the favorites. - */ + */ "isFavorite"?: boolean; /** * Whether or not the dashboard is read only. - */ + */ "isReadOnly"?: boolean; /** * Whether the dashboard is publicly shared or not. - */ + */ "isShared"?: boolean; /** * Date of last edition of the dashboard. - */ + */ "modified"?: Date; /** * Popularity of the dashboard. - */ + */ "popularity"?: number; /** * List of team names representing ownership of a dashboard. - */ + */ "tags"?: Array; /** * Title of the dashboard. - */ + */ "title"?: string; /** * The type of the dashboard. - */ + */ "type": DashboardType; /** * URL path to the dashboard. - */ + */ "url"?: string; /** @@ -85,79 +90,105 @@ export class DashboardListItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "Creator", - }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "author": { + "baseName": "author", + "type": "Creator", }, - icon: { - baseName: "icon", - type: "string", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - id: { - baseName: "id", - type: "string", - required: true, + "icon": { + "baseName": "icon", + "type": "string", }, - integrationId: { - baseName: "integration_id", - type: "string", + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - isFavorite: { - baseName: "is_favorite", - type: "boolean", + "integrationId": { + "baseName": "integration_id", + "type": "string", }, - isReadOnly: { - baseName: "is_read_only", - type: "boolean", + "isFavorite": { + "baseName": "is_favorite", + "type": "boolean", }, - isShared: { - baseName: "is_shared", - type: "boolean", + "isReadOnly": { + "baseName": "is_read_only", + "type": "boolean", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "isShared": { + "baseName": "is_shared", + "type": "boolean", }, - popularity: { - baseName: "popularity", - type: "number", - format: "int32", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - tags: { - baseName: "tags", - type: "Array", + "popularity": { + "baseName": "popularity", + "type": "number", + "format": "int32", }, - title: { - baseName: "title", - type: "string", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "DashboardType", - required: true, + "title": { + "baseName": "title", + "type": "string", }, - url: { - baseName: "url", - type: "string", + "type": { + "baseName": "type", + "type": "DashboardType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListItemRequest.ts b/packages/datadog-api-client-v2/models/DashboardListItemRequest.ts index 0b014621ac1a..f2450b6a3ba4 100644 --- a/packages/datadog-api-client-v2/models/DashboardListItemRequest.ts +++ b/packages/datadog-api-client-v2/models/DashboardListItemRequest.ts @@ -5,19 +5,24 @@ */ import { DashboardType } from "./DashboardType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A dashboard within a list. - */ +*/ export class DashboardListItemRequest { /** * ID of the dashboard. - */ + */ "id": string; /** * The type of the dashboard. - */ + */ "type": DashboardType; /** @@ -36,28 +41,54 @@ export class DashboardListItemRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "DashboardType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DashboardType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListItemRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListItemResponse.ts b/packages/datadog-api-client-v2/models/DashboardListItemResponse.ts index a3713dcb305e..247fd44e057d 100644 --- a/packages/datadog-api-client-v2/models/DashboardListItemResponse.ts +++ b/packages/datadog-api-client-v2/models/DashboardListItemResponse.ts @@ -5,19 +5,24 @@ */ import { DashboardType } from "./DashboardType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A dashboard within a list. - */ +*/ export class DashboardListItemResponse { /** * ID of the dashboard. - */ + */ "id": string; /** * The type of the dashboard. - */ + */ "type": DashboardType; /** @@ -36,28 +41,54 @@ export class DashboardListItemResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "DashboardType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DashboardType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListItemResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListItems.ts b/packages/datadog-api-client-v2/models/DashboardListItems.ts index 479b6e9ee3d5..4f3a36042e34 100644 --- a/packages/datadog-api-client-v2/models/DashboardListItems.ts +++ b/packages/datadog-api-client-v2/models/DashboardListItems.ts @@ -5,19 +5,24 @@ */ import { DashboardListItem } from "./DashboardListItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Dashboards within a list. - */ +*/ export class DashboardListItems { /** * List of dashboards in the dashboard list. - */ + */ "dashboards": Array; /** * Number of dashboards in the dashboard list. - */ + */ "total"?: number; /** @@ -36,28 +41,54 @@ export class DashboardListItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "Array", - required: true, + "dashboards": { + "baseName": "dashboards", + "type": "Array", + "required": true, }, - total: { - baseName: "total", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListUpdateItemsRequest.ts b/packages/datadog-api-client-v2/models/DashboardListUpdateItemsRequest.ts index 69151445568b..a43073ab376b 100644 --- a/packages/datadog-api-client-v2/models/DashboardListUpdateItemsRequest.ts +++ b/packages/datadog-api-client-v2/models/DashboardListUpdateItemsRequest.ts @@ -5,15 +5,20 @@ */ import { DashboardListItemRequest } from "./DashboardListItemRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request containing the list of dashboards to update to. - */ +*/ export class DashboardListUpdateItemsRequest { /** * List of dashboards to update the dashboard list to. - */ + */ "dashboards"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListUpdateItemsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "dashboards": { + "baseName": "dashboards", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListUpdateItemsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardListUpdateItemsResponse.ts b/packages/datadog-api-client-v2/models/DashboardListUpdateItemsResponse.ts index 6687ef86db09..074b3fbc7471 100644 --- a/packages/datadog-api-client-v2/models/DashboardListUpdateItemsResponse.ts +++ b/packages/datadog-api-client-v2/models/DashboardListUpdateItemsResponse.ts @@ -5,15 +5,20 @@ */ import { DashboardListItemResponse } from "./DashboardListItemResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing a list of updated dashboards. - */ +*/ export class DashboardListUpdateItemsResponse { /** * List of dashboards in the dashboard list. - */ + */ "dashboards"?: Array; /** @@ -32,22 +37,48 @@ export class DashboardListUpdateItemsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "dashboards": { + "baseName": "dashboards", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardListUpdateItemsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardTriggerWrapper.ts b/packages/datadog-api-client-v2/models/DashboardTriggerWrapper.ts index 6f8a5904c342..d7a6d0a445de 100644 --- a/packages/datadog-api-client-v2/models/DashboardTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/DashboardTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Dashboard-based trigger. - */ +*/ export class DashboardTriggerWrapper { /** * Trigger a workflow from a Dashboard. - */ + */ "dashboardTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class DashboardTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboardTrigger: { - baseName: "dashboardTrigger", - type: "any", - required: true, + "dashboardTrigger": { + "baseName": "dashboardTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DashboardTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DashboardType.ts b/packages/datadog-api-client-v2/models/DashboardType.ts index ddfe458fa0d9..a0326e0d0336 100644 --- a/packages/datadog-api-client-v2/models/DashboardType.ts +++ b/packages/datadog-api-client-v2/models/DashboardType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the dashboard. - */ +*/ -export type DashboardType = - | typeof CUSTOM_TIMEBOARD - | typeof CUSTOM_SCREENBOARD - | typeof INTEGRATION_SCREENBOARD - | typeof INTEGRATION_TIMEBOARD - | typeof HOST_TIMEBOARD - | UnparsedObject; -export const CUSTOM_TIMEBOARD = "custom_timeboard"; -export const CUSTOM_SCREENBOARD = "custom_screenboard"; -export const INTEGRATION_SCREENBOARD = "integration_screenboard"; -export const INTEGRATION_TIMEBOARD = "integration_timeboard"; -export const HOST_TIMEBOARD = "host_timeboard"; +export type DashboardType = typeof CUSTOM_TIMEBOARD| typeof CUSTOM_SCREENBOARD| typeof INTEGRATION_SCREENBOARD| typeof INTEGRATION_TIMEBOARD| typeof HOST_TIMEBOARD | UnparsedObject; +export const CUSTOM_TIMEBOARD = 'custom_timeboard'; +export const CUSTOM_SCREENBOARD = 'custom_screenboard'; +export const INTEGRATION_SCREENBOARD = 'integration_screenboard'; +export const INTEGRATION_TIMEBOARD = 'integration_timeboard'; +export const HOST_TIMEBOARD = 'host_timeboard'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DataDeletionResponseItem.ts b/packages/datadog-api-client-v2/models/DataDeletionResponseItem.ts index 5a3865936d85..a75ad22b1717 100644 --- a/packages/datadog-api-client-v2/models/DataDeletionResponseItem.ts +++ b/packages/datadog-api-client-v2/models/DataDeletionResponseItem.ts @@ -5,23 +5,28 @@ */ import { DataDeletionResponseItemAttributes } from "./DataDeletionResponseItemAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The created data deletion request information. - */ +*/ export class DataDeletionResponseItem { /** * Deletion attribute for data deletion response. - */ + */ "attributes": DataDeletionResponseItemAttributes; /** * The ID of the created data deletion request. - */ + */ "id": string; /** * The type of the request created. - */ + */ "type": string; /** @@ -40,33 +45,59 @@ export class DataDeletionResponseItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DataDeletionResponseItemAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "DataDeletionResponseItemAttributes", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DataDeletionResponseItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.ts b/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.ts index c8d1a52a8613..d6b34e1ea85f 100644 --- a/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.ts +++ b/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.ts @@ -4,63 +4,68 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Deletion attribute for data deletion response. - */ +*/ export class DataDeletionResponseItemAttributes { /** * Creation time of the deletion request. - */ + */ "createdAt": string; /** * User who created the deletion request. - */ + */ "createdBy": string; /** * Start of requested time window, milliseconds since Unix epoch. - */ + */ "fromTime": number; /** * List of indexes for the search. If not provided, the search is performed in all indexes. - */ + */ "indexes"?: Array; /** * Whether the deletion request is fully created or not. It can take several minutes to fully create a deletion request depending on the target query and timeframe. - */ + */ "isCreated": boolean; /** * Organization ID. - */ + */ "orgId": number; /** * Product name. - */ + */ "product": string; /** * Query for creating a data deletion request. - */ + */ "query": string; /** * Starting time of the process to delete the requested data. - */ + */ "startingAt": string; /** * Status of the deletion request. - */ + */ "status": string; /** * End of requested time window, milliseconds since Unix epoch. - */ + */ "toTime": number; /** * Total number of elements to be deleted. Only the data accessible to the current user that matches the query and timeframe provided will be deleted. - */ + */ "totalUnrestricted": number; /** * Update time of the deletion request. - */ + */ "updatedAt": string; /** @@ -79,86 +84,112 @@ export class DataDeletionResponseItemAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "string", - required: true, + "createdAt": { + "baseName": "created_at", + "type": "string", + "required": true, }, - createdBy: { - baseName: "created_by", - type: "string", - required: true, + "createdBy": { + "baseName": "created_by", + "type": "string", + "required": true, }, - fromTime: { - baseName: "from_time", - type: "number", - required: true, - format: "int64", + "fromTime": { + "baseName": "from_time", + "type": "number", + "required": true, + "format": "int64", }, - indexes: { - baseName: "indexes", - type: "Array", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - isCreated: { - baseName: "is_created", - type: "boolean", - required: true, + "isCreated": { + "baseName": "is_created", + "type": "boolean", + "required": true, }, - orgId: { - baseName: "org_id", - type: "number", - required: true, - format: "int64", + "orgId": { + "baseName": "org_id", + "type": "number", + "required": true, + "format": "int64", }, - product: { - baseName: "product", - type: "string", - required: true, + "product": { + "baseName": "product", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - startingAt: { - baseName: "starting_at", - type: "string", - required: true, + "startingAt": { + "baseName": "starting_at", + "type": "string", + "required": true, }, - status: { - baseName: "status", - type: "string", - required: true, + "status": { + "baseName": "status", + "type": "string", + "required": true, }, - toTime: { - baseName: "to_time", - type: "number", - required: true, - format: "int64", + "toTime": { + "baseName": "to_time", + "type": "number", + "required": true, + "format": "int64", }, - totalUnrestricted: { - baseName: "total_unrestricted", - type: "number", - required: true, - format: "int64", + "totalUnrestricted": { + "baseName": "total_unrestricted", + "type": "number", + "required": true, + "format": "int64", }, - updatedAt: { - baseName: "updated_at", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "updatedAt": { + "baseName": "updated_at", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DataDeletionResponseItemAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.ts b/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.ts index ca9d2aad2df5..67193dad7b38 100644 --- a/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata of the data deletion response. - */ +*/ export class DataDeletionResponseMeta { /** * The total deletion requests created by product. - */ - "countProduct"?: { [key: string]: number }; + */ + "countProduct"?: { [key: string]: number; }; /** * The total deletion requests created by status. - */ - "countStatus"?: { [key: string]: number }; + */ + "countStatus"?: { [key: string]: number; }; /** * The next page when searching deletion requests created in the current organization. - */ + */ "nextPage"?: string; /** * The product of the deletion request. - */ + */ "product"?: string; /** * The status of the executed request. - */ + */ "requestStatus"?: string; /** @@ -47,38 +52,64 @@ export class DataDeletionResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - countProduct: { - baseName: "count_product", - type: "{ [key: string]: number; }", + "countProduct": { + "baseName": "count_product", + "type": "{ [key: string]: number; }", }, - countStatus: { - baseName: "count_status", - type: "{ [key: string]: number; }", + "countStatus": { + "baseName": "count_status", + "type": "{ [key: string]: number; }", }, - nextPage: { - baseName: "next_page", - type: "string", + "nextPage": { + "baseName": "next_page", + "type": "string", }, - product: { - baseName: "product", - type: "string", + "product": { + "baseName": "product", + "type": "string", }, - requestStatus: { - baseName: "request_status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "requestStatus": { + "baseName": "request_status", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DataDeletionResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DataScalarColumn.ts b/packages/datadog-api-client-v2/models/DataScalarColumn.ts index ce95dea44d58..c8085e5a12c7 100644 --- a/packages/datadog-api-client-v2/models/DataScalarColumn.ts +++ b/packages/datadog-api-client-v2/models/DataScalarColumn.ts @@ -6,27 +6,32 @@ import { ScalarColumnTypeNumber } from "./ScalarColumnTypeNumber"; import { ScalarMeta } from "./ScalarMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A column containing the numerical results for a formula or query. - */ +*/ export class DataScalarColumn { /** * Metadata for the resulting numerical values. - */ + */ "meta"?: ScalarMeta; /** * The name referencing the formula or query for this column. - */ + */ "name"?: string; /** * The type of column present for numbers. - */ + */ "type"?: ScalarColumnTypeNumber; /** * The array of numerical values for one formula or query. - */ + */ "values"?: Array; /** @@ -45,35 +50,61 @@ export class DataScalarColumn { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "ScalarMeta", + "meta": { + "baseName": "meta", + "type": "ScalarMeta", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - type: { - baseName: "type", - type: "ScalarColumnTypeNumber", + "type": { + "baseName": "type", + "type": "ScalarColumnTypeNumber", }, - values: { - baseName: "values", - type: "Array", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DataScalarColumn.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DataTransform.ts b/packages/datadog-api-client-v2/models/DataTransform.ts index 6026fca273b9..777c3a8b48ba 100644 --- a/packages/datadog-api-client-v2/models/DataTransform.ts +++ b/packages/datadog-api-client-v2/models/DataTransform.ts @@ -6,27 +6,32 @@ import { DataTransformProperties } from "./DataTransformProperties"; import { DataTransformType } from "./DataTransformType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A data transformer, which is custom JavaScript code that executes and transforms data when its inputs change. - */ +*/ export class DataTransform { /** * The ID of the data transformer. - */ + */ "id": string; /** * A unique identifier for this data transformer. This name is also used to access the transformer's result throughout the app. - */ + */ "name": string; /** * The properties of the data transformer. - */ + */ "properties": DataTransformProperties; /** * The data transform type. - */ + */ "type": DataTransformType; /** @@ -45,39 +50,65 @@ export class DataTransform { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - properties: { - baseName: "properties", - type: "DataTransformProperties", - required: true, + "properties": { + "baseName": "properties", + "type": "DataTransformProperties", + "required": true, }, - type: { - baseName: "type", - type: "DataTransformType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DataTransformType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DataTransform.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DataTransformProperties.ts b/packages/datadog-api-client-v2/models/DataTransformProperties.ts index 0e66f14d57d3..14a5993597c6 100644 --- a/packages/datadog-api-client-v2/models/DataTransformProperties.ts +++ b/packages/datadog-api-client-v2/models/DataTransformProperties.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The properties of the data transformer. - */ +*/ export class DataTransformProperties { /** * A JavaScript function that returns the transformed data. - */ + */ "outputs"?: string; /** @@ -31,22 +36,48 @@ export class DataTransformProperties { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - outputs: { - baseName: "outputs", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "outputs": { + "baseName": "outputs", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DataTransformProperties.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DataTransformType.ts b/packages/datadog-api-client-v2/models/DataTransformType.ts index 2bc5fe30dcf8..81c7ae6e0ceb 100644 --- a/packages/datadog-api-client-v2/models/DataTransformType.ts +++ b/packages/datadog-api-client-v2/models/DataTransformType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The data transform type. - */ +*/ export type DataTransformType = typeof DATATRANSFORM | UnparsedObject; -export const DATATRANSFORM = "dataTransform"; +export const DATATRANSFORM = 'dataTransform'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DatabaseMonitoringTriggerWrapper.ts b/packages/datadog-api-client-v2/models/DatabaseMonitoringTriggerWrapper.ts index 0aec539afb58..44a2116f5cbd 100644 --- a/packages/datadog-api-client-v2/models/DatabaseMonitoringTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/DatabaseMonitoringTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Database Monitoring-based trigger. - */ +*/ export class DatabaseMonitoringTriggerWrapper { /** * Trigger a workflow from Database Monitoring. - */ + */ "databaseMonitoringTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class DatabaseMonitoringTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - databaseMonitoringTrigger: { - baseName: "databaseMonitoringTrigger", - type: "any", - required: true, + "databaseMonitoringTrigger": { + "baseName": "databaseMonitoringTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DatabaseMonitoringTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeleteAppResponse.ts b/packages/datadog-api-client-v2/models/DeleteAppResponse.ts index 2a8e32b9cf63..07aa046e1e5c 100644 --- a/packages/datadog-api-client-v2/models/DeleteAppResponse.ts +++ b/packages/datadog-api-client-v2/models/DeleteAppResponse.ts @@ -5,15 +5,20 @@ */ import { DeleteAppResponseData } from "./DeleteAppResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after an app is successfully deleted. - */ +*/ export class DeleteAppResponse { /** * The definition of `DeleteAppResponseData` object. - */ + */ "data"?: DeleteAppResponseData; /** @@ -32,22 +37,48 @@ export class DeleteAppResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DeleteAppResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DeleteAppResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteAppResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeleteAppResponseData.ts b/packages/datadog-api-client-v2/models/DeleteAppResponseData.ts index 8c9907b6b667..c1d2bc8a990c 100644 --- a/packages/datadog-api-client-v2/models/DeleteAppResponseData.ts +++ b/packages/datadog-api-client-v2/models/DeleteAppResponseData.ts @@ -5,19 +5,24 @@ */ import { AppDefinitionType } from "./AppDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `DeleteAppResponseData` object. - */ +*/ export class DeleteAppResponseData { /** * The ID of the deleted app. - */ + */ "id": string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -36,29 +41,55 @@ export class DeleteAppResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteAppResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeleteAppsRequest.ts b/packages/datadog-api-client-v2/models/DeleteAppsRequest.ts index 9506deee8ac2..f39ccc1efc89 100644 --- a/packages/datadog-api-client-v2/models/DeleteAppsRequest.ts +++ b/packages/datadog-api-client-v2/models/DeleteAppsRequest.ts @@ -5,15 +5,20 @@ */ import { DeleteAppsRequestDataItems } from "./DeleteAppsRequestDataItems"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request object for deleting multiple apps by ID. - */ +*/ export class DeleteAppsRequest { /** * An array of objects containing the IDs of the apps to delete. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class DeleteAppsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteAppsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.ts b/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.ts index f829c5072cf7..2209783a446f 100644 --- a/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.ts +++ b/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.ts @@ -5,19 +5,24 @@ */ import { AppDefinitionType } from "./AppDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object containing the ID of an app to delete. - */ +*/ export class DeleteAppsRequestDataItems { /** * The ID of the app to delete. - */ + */ "id": string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -36,29 +41,55 @@ export class DeleteAppsRequestDataItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteAppsRequestDataItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeleteAppsResponse.ts b/packages/datadog-api-client-v2/models/DeleteAppsResponse.ts index ddd08b2fcad3..56dbee900950 100644 --- a/packages/datadog-api-client-v2/models/DeleteAppsResponse.ts +++ b/packages/datadog-api-client-v2/models/DeleteAppsResponse.ts @@ -5,15 +5,20 @@ */ import { DeleteAppsResponseDataItems } from "./DeleteAppsResponseDataItems"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after multiple apps are successfully deleted. - */ +*/ export class DeleteAppsResponse { /** * An array of objects containing the IDs of the deleted apps. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class DeleteAppsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteAppsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.ts b/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.ts index 37af466734a4..2448855d58ab 100644 --- a/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.ts +++ b/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.ts @@ -5,19 +5,24 @@ */ import { AppDefinitionType } from "./AppDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object containing the ID of a deleted app. - */ +*/ export class DeleteAppsResponseDataItems { /** * The ID of the deleted app. - */ + */ "id": string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -36,29 +41,55 @@ export class DeleteAppsResponseDataItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeleteAppsResponseDataItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DependencyLocation.ts b/packages/datadog-api-client-v2/models/DependencyLocation.ts index cebdc6ed06bd..b712b65939a8 100644 --- a/packages/datadog-api-client-v2/models/DependencyLocation.ts +++ b/packages/datadog-api-client-v2/models/DependencyLocation.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Static library vulnerability location. - */ +*/ export class DependencyLocation { /** * Location column end. - */ + */ "columnEnd": number; /** * Location column start. - */ + */ "columnStart": number; /** * Location file name. - */ + */ "fileName": string; /** * Location line end. - */ + */ "lineEnd": number; /** * Location line start. - */ + */ "lineStart": number; /** @@ -47,47 +52,73 @@ export class DependencyLocation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - columnEnd: { - baseName: "column_end", - type: "number", - required: true, - format: "int64", + "columnEnd": { + "baseName": "column_end", + "type": "number", + "required": true, + "format": "int64", }, - columnStart: { - baseName: "column_start", - type: "number", - required: true, - format: "int64", + "columnStart": { + "baseName": "column_start", + "type": "number", + "required": true, + "format": "int64", }, - fileName: { - baseName: "file_name", - type: "string", - required: true, + "fileName": { + "baseName": "file_name", + "type": "string", + "required": true, }, - lineEnd: { - baseName: "line_end", - type: "number", - required: true, - format: "int64", + "lineEnd": { + "baseName": "line_end", + "type": "number", + "required": true, + "format": "int64", }, - lineStart: { - baseName: "line_start", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lineStart": { + "baseName": "line_start", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DependencyLocation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Deployment.ts b/packages/datadog-api-client-v2/models/Deployment.ts index e285ec124657..39a4902b569e 100644 --- a/packages/datadog-api-client-v2/models/Deployment.ts +++ b/packages/datadog-api-client-v2/models/Deployment.ts @@ -7,27 +7,32 @@ import { AppDeploymentType } from "./AppDeploymentType"; import { DeploymentAttributes } from "./DeploymentAttributes"; import { DeploymentMetadata } from "./DeploymentMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The version of the app that was published. - */ +*/ export class Deployment { /** * The attributes object containing the version ID of the published app. - */ + */ "attributes"?: DeploymentAttributes; /** * The deployment ID. - */ + */ "id"?: string; /** * Metadata object containing the publication creation information. - */ + */ "meta"?: DeploymentMetadata; /** * The deployment type. - */ + */ "type"?: AppDeploymentType; /** @@ -46,35 +51,61 @@ export class Deployment { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DeploymentAttributes", + "attributes": { + "baseName": "attributes", + "type": "DeploymentAttributes", }, - id: { - baseName: "id", - type: "string", - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, - meta: { - baseName: "meta", - type: "DeploymentMetadata", + "meta": { + "baseName": "meta", + "type": "DeploymentMetadata", }, - type: { - baseName: "type", - type: "AppDeploymentType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDeploymentType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Deployment.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeploymentAttributes.ts b/packages/datadog-api-client-v2/models/DeploymentAttributes.ts index cc7bb4d908bc..66479f416a61 100644 --- a/packages/datadog-api-client-v2/models/DeploymentAttributes.ts +++ b/packages/datadog-api-client-v2/models/DeploymentAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes object containing the version ID of the published app. - */ +*/ export class DeploymentAttributes { /** * The version ID of the app that was published. For an unpublished app, this is always the nil UUID (`00000000-0000-0000-0000-000000000000`). - */ + */ "appVersionId"?: string; /** @@ -31,23 +36,49 @@ export class DeploymentAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - appVersionId: { - baseName: "app_version_id", - type: "string", - format: "uuid", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "appVersionId": { + "baseName": "app_version_id", + "type": "string", + "format": "uuid", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeploymentAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeploymentMetadata.ts b/packages/datadog-api-client-v2/models/DeploymentMetadata.ts index d8b32bf2a4cf..938a58f7f9af 100644 --- a/packages/datadog-api-client-v2/models/DeploymentMetadata.ts +++ b/packages/datadog-api-client-v2/models/DeploymentMetadata.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata object containing the publication creation information. - */ +*/ export class DeploymentMetadata { /** * Timestamp of when the app was published. - */ + */ "createdAt"?: Date; /** * The ID of the user who published the app. - */ + */ "userId"?: number; /** * The name (or email address) of the user who published the app. - */ + */ "userName"?: string; /** * The UUID of the user who published the app. - */ + */ "userUuid"?: string; /** @@ -43,37 +48,63 @@ export class DeploymentMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - userId: { - baseName: "user_id", - type: "number", - format: "int64", + "userId": { + "baseName": "user_id", + "type": "number", + "format": "int64", }, - userName: { - baseName: "user_name", - type: "string", + "userName": { + "baseName": "user_name", + "type": "string", }, - userUuid: { - baseName: "user_uuid", - type: "string", - format: "uuid", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userUuid": { + "baseName": "user_uuid", + "type": "string", + "format": "uuid", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeploymentMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeploymentRelationship.ts b/packages/datadog-api-client-v2/models/DeploymentRelationship.ts index 926bccf7ffeb..d5b94e1fbd8e 100644 --- a/packages/datadog-api-client-v2/models/DeploymentRelationship.ts +++ b/packages/datadog-api-client-v2/models/DeploymentRelationship.ts @@ -6,19 +6,24 @@ import { DeploymentMetadata } from "./DeploymentMetadata"; import { DeploymentRelationshipData } from "./DeploymentRelationshipData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information pointing to the app's publication status. - */ +*/ export class DeploymentRelationship { /** * Data object containing the deployment ID. - */ + */ "data"?: DeploymentRelationshipData; /** * Metadata object containing the publication creation information. - */ + */ "meta"?: DeploymentMetadata; /** @@ -37,26 +42,52 @@ export class DeploymentRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DeploymentRelationshipData", + "data": { + "baseName": "data", + "type": "DeploymentRelationshipData", }, - meta: { - baseName: "meta", - type: "DeploymentMetadata", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "DeploymentMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeploymentRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeploymentRelationshipData.ts b/packages/datadog-api-client-v2/models/DeploymentRelationshipData.ts index 4acd70771d81..29f597e2c011 100644 --- a/packages/datadog-api-client-v2/models/DeploymentRelationshipData.ts +++ b/packages/datadog-api-client-v2/models/DeploymentRelationshipData.ts @@ -5,19 +5,24 @@ */ import { AppDeploymentType } from "./AppDeploymentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object containing the deployment ID. - */ +*/ export class DeploymentRelationshipData { /** * The deployment ID. - */ + */ "id"?: string; /** * The deployment type. - */ + */ "type"?: AppDeploymentType; /** @@ -36,27 +41,53 @@ export class DeploymentRelationshipData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, - type: { - baseName: "type", - type: "AppDeploymentType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDeploymentType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeploymentRelationshipData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DetailedFinding.ts b/packages/datadog-api-client-v2/models/DetailedFinding.ts index 2dd37e84cbcb..e3052c2c5d35 100644 --- a/packages/datadog-api-client-v2/models/DetailedFinding.ts +++ b/packages/datadog-api-client-v2/models/DetailedFinding.ts @@ -6,23 +6,28 @@ import { DetailedFindingAttributes } from "./DetailedFindingAttributes"; import { DetailedFindingType } from "./DetailedFindingType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single finding with with message and resource configuration. - */ +*/ export class DetailedFinding { /** * The JSON:API attributes of the detailed finding. - */ + */ "attributes"?: DetailedFindingAttributes; /** * The unique ID for this finding. - */ + */ "id"?: string; /** * The JSON:API type for findings that have the message and resource configuration. - */ + */ "type"?: DetailedFindingType; /** @@ -41,30 +46,56 @@ export class DetailedFinding { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DetailedFindingAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "DetailedFindingAttributes", }, - type: { - baseName: "type", - type: "DetailedFindingType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DetailedFindingType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DetailedFinding.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DetailedFindingAttributes.ts b/packages/datadog-api-client-v2/models/DetailedFindingAttributes.ts index d9c242ab6101..be24b7096911 100644 --- a/packages/datadog-api-client-v2/models/DetailedFindingAttributes.ts +++ b/packages/datadog-api-client-v2/models/DetailedFindingAttributes.ts @@ -7,56 +7,62 @@ import { FindingEvaluation } from "./FindingEvaluation"; import { FindingMute } from "./FindingMute"; import { FindingRule } from "./FindingRule"; import { FindingStatus } from "./FindingStatus"; +import { FindingTagsItem } from "./FindingTagsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes of the detailed finding. - */ +*/ export class DetailedFindingAttributes { /** * The evaluation of the finding. - */ + */ "evaluation"?: FindingEvaluation; /** * The date on which the evaluation for this finding changed (Unix ms). - */ + */ "evaluationChangedAt"?: number; /** * The remediation message for this finding. - */ + */ "message"?: string; /** * Information about the mute status of this finding. - */ + */ "mute"?: FindingMute; /** * The resource name of this finding. - */ + */ "resource"?: string; /** * The resource configuration for this finding. - */ + */ "resourceConfiguration"?: any; /** * The date on which the resource was discovered (Unix ms). - */ + */ "resourceDiscoveryDate"?: number; /** * The resource type of this finding. - */ + */ "resourceType"?: string; /** * The rule that triggered this finding. - */ + */ "rule"?: FindingRule; /** * The status of the finding. - */ + */ "status"?: FindingStatus; /** * The tags associated with this finding. - */ + */ "tags"?: Array; /** @@ -75,64 +81,90 @@ export class DetailedFindingAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - evaluation: { - baseName: "evaluation", - type: "FindingEvaluation", - }, - evaluationChangedAt: { - baseName: "evaluation_changed_at", - type: "number", - format: "int64", + "evaluation": { + "baseName": "evaluation", + "type": "FindingEvaluation", }, - message: { - baseName: "message", - type: "string", + "evaluationChangedAt": { + "baseName": "evaluation_changed_at", + "type": "number", + "format": "int64", }, - mute: { - baseName: "mute", - type: "FindingMute", + "message": { + "baseName": "message", + "type": "string", }, - resource: { - baseName: "resource", - type: "string", + "mute": { + "baseName": "mute", + "type": "FindingMute", }, - resourceConfiguration: { - baseName: "resource_configuration", - type: "any", + "resource": { + "baseName": "resource", + "type": "string", }, - resourceDiscoveryDate: { - baseName: "resource_discovery_date", - type: "number", - format: "int64", + "resourceConfiguration": { + "baseName": "resource_configuration", + "type": "any", }, - resourceType: { - baseName: "resource_type", - type: "string", + "resourceDiscoveryDate": { + "baseName": "resource_discovery_date", + "type": "number", + "format": "int64", }, - rule: { - baseName: "rule", - type: "FindingRule", + "resourceType": { + "baseName": "resource_type", + "type": "string", }, - status: { - baseName: "status", - type: "FindingStatus", + "rule": { + "baseName": "rule", + "type": "FindingRule", }, - tags: { - baseName: "tags", - type: "Array", + "status": { + "baseName": "status", + "type": "FindingStatus", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DetailedFindingAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DetailedFindingType.ts b/packages/datadog-api-client-v2/models/DetailedFindingType.ts index 109bf345df36..bf6d5570b079 100644 --- a/packages/datadog-api-client-v2/models/DetailedFindingType.ts +++ b/packages/datadog-api-client-v2/models/DetailedFindingType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for findings that have the message and resource configuration. - */ +*/ export type DetailedFindingType = typeof DETAILED_FINDING | UnparsedObject; -export const DETAILED_FINDING = "detailed_finding"; +export const DETAILED_FINDING = 'detailed_finding'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DeviceAttributes.ts b/packages/datadog-api-client-v2/models/DeviceAttributes.ts index 5a603a93d183..a6608bf94d99 100644 --- a/packages/datadog-api-client-v2/models/DeviceAttributes.ts +++ b/packages/datadog-api-client-v2/models/DeviceAttributes.ts @@ -5,91 +5,96 @@ */ import { DeviceAttributesInterfaceStatuses } from "./DeviceAttributesInterfaceStatuses"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The device attributes - */ +*/ export class DeviceAttributes { /** * The device description - */ + */ "description"?: string; /** * The device type - */ + */ "deviceType"?: string; /** * The device integration - */ + */ "integration"?: string; /** * Count of the device interfaces by status - */ + */ "interfaceStatuses"?: DeviceAttributesInterfaceStatuses; /** * The device IP address - */ + */ "ipAddress"?: string; /** * The device location - */ + */ "location"?: string; /** * The device model - */ + */ "model"?: string; /** * The device name - */ + */ "name"?: string; /** * The device OS hostname - */ + */ "osHostname"?: string; /** * The device OS name - */ + */ "osName"?: string; /** * The device OS version - */ + */ "osVersion"?: string; /** * The device ping status - */ + */ "pingStatus"?: string; /** * The device product name - */ + */ "productName"?: string; /** * The device serial number - */ + */ "serialNumber"?: string; /** * The device SNMP status - */ + */ "status"?: string; /** * The device subnet - */ + */ "subnet"?: string; /** * The device `sys_object_id` - */ + */ "sysObjectId"?: string; /** * The list of device tags - */ + */ "tags"?: Array; /** * The device vendor - */ + */ "vendor"?: string; /** * The device version - */ + */ "version"?: string; /** @@ -108,98 +113,124 @@ export class DeviceAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - deviceType: { - baseName: "device_type", - type: "string", - }, - integration: { - baseName: "integration", - type: "string", - }, - interfaceStatuses: { - baseName: "interface_statuses", - type: "DeviceAttributesInterfaceStatuses", - }, - ipAddress: { - baseName: "ip_address", - type: "string", - }, - location: { - baseName: "location", - type: "string", - }, - model: { - baseName: "model", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - osHostname: { - baseName: "os_hostname", - type: "string", - }, - osName: { - baseName: "os_name", - type: "string", - }, - osVersion: { - baseName: "os_version", - type: "string", - }, - pingStatus: { - baseName: "ping_status", - type: "string", - }, - productName: { - baseName: "product_name", - type: "string", - }, - serialNumber: { - baseName: "serial_number", - type: "string", - }, - status: { - baseName: "status", - type: "string", - }, - subnet: { - baseName: "subnet", - type: "string", - }, - sysObjectId: { - baseName: "sys_object_id", - type: "string", - }, - tags: { - baseName: "tags", - type: "Array", - }, - vendor: { - baseName: "vendor", - type: "string", - }, - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "description": { + "baseName": "description", + "type": "string", + }, + "deviceType": { + "baseName": "device_type", + "type": "string", + }, + "integration": { + "baseName": "integration", + "type": "string", + }, + "interfaceStatuses": { + "baseName": "interface_statuses", + "type": "DeviceAttributesInterfaceStatuses", + }, + "ipAddress": { + "baseName": "ip_address", + "type": "string", + }, + "location": { + "baseName": "location", + "type": "string", + }, + "model": { + "baseName": "model", + "type": "string", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "osHostname": { + "baseName": "os_hostname", + "type": "string", + }, + "osName": { + "baseName": "os_name", + "type": "string", + }, + "osVersion": { + "baseName": "os_version", + "type": "string", + }, + "pingStatus": { + "baseName": "ping_status", + "type": "string", + }, + "productName": { + "baseName": "product_name", + "type": "string", + }, + "serialNumber": { + "baseName": "serial_number", + "type": "string", + }, + "status": { + "baseName": "status", + "type": "string", + }, + "subnet": { + "baseName": "subnet", + "type": "string", + }, + "sysObjectId": { + "baseName": "sys_object_id", + "type": "string", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "vendor": { + "baseName": "vendor", + "type": "string", + }, + "version": { + "baseName": "version", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeviceAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.ts b/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.ts index 221f8ca071e5..4888dd19f6f3 100644 --- a/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.ts +++ b/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Count of the device interfaces by status - */ +*/ export class DeviceAttributesInterfaceStatuses { /** * The number of interfaces that are down - */ + */ "down"?: number; /** * The number of interfaces that are off - */ + */ "off"?: number; /** * The number of interfaces that are up - */ + */ "up"?: number; /** * The number of interfaces that are in a warning state - */ + */ "warning"?: number; /** @@ -43,38 +48,64 @@ export class DeviceAttributesInterfaceStatuses { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - down: { - baseName: "down", - type: "number", - format: "int64", + "down": { + "baseName": "down", + "type": "number", + "format": "int64", }, - off: { - baseName: "off", - type: "number", - format: "int64", + "off": { + "baseName": "off", + "type": "number", + "format": "int64", }, - up: { - baseName: "up", - type: "number", - format: "int64", + "up": { + "baseName": "up", + "type": "number", + "format": "int64", }, - warning: { - baseName: "warning", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warning": { + "baseName": "warning", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DeviceAttributesInterfaceStatuses.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DevicesListData.ts b/packages/datadog-api-client-v2/models/DevicesListData.ts index 2d4e5ab0bdb8..edf2a8bd9e0b 100644 --- a/packages/datadog-api-client-v2/models/DevicesListData.ts +++ b/packages/datadog-api-client-v2/models/DevicesListData.ts @@ -5,23 +5,28 @@ */ import { DeviceAttributes } from "./DeviceAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The devices list data - */ +*/ export class DevicesListData { /** * The device attributes - */ + */ "attributes"?: DeviceAttributes; /** * The device ID - */ + */ "id"?: string; /** * The type of the resource. The value should always be device. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class DevicesListData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DeviceAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "DeviceAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DevicesListData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlist.ts b/packages/datadog-api-client-v2/models/DomainAllowlist.ts index 261381e3aaff..8d6a370185a1 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlist.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlist.ts @@ -6,23 +6,28 @@ import { DomainAllowlistAttributes } from "./DomainAllowlistAttributes"; import { DomainAllowlistType } from "./DomainAllowlistType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The email domain allowlist for an org. - */ +*/ export class DomainAllowlist { /** * The details of the email domain allowlist. - */ + */ "attributes"?: DomainAllowlistAttributes; /** * The unique identifier of the org. - */ + */ "id"?: string; /** * Email domain allowlist allowlist type. - */ + */ "type": DomainAllowlistType; /** @@ -41,31 +46,57 @@ export class DomainAllowlist { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DomainAllowlistAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "DomainAllowlistAttributes", }, - type: { - baseName: "type", - type: "DomainAllowlistType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DomainAllowlistType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DomainAllowlist.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlistAttributes.ts b/packages/datadog-api-client-v2/models/DomainAllowlistAttributes.ts index 162a3fd206fe..e7c209235115 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlistAttributes.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlistAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The details of the email domain allowlist. - */ +*/ export class DomainAllowlistAttributes { /** * The list of domains in the email domain allowlist. - */ + */ "domains"?: Array; /** * Whether the email domain allowlist is enabled for the org. - */ + */ "enabled"?: boolean; /** @@ -35,26 +40,52 @@ export class DomainAllowlistAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - domains: { - baseName: "domains", - type: "Array", + "domains": { + "baseName": "domains", + "type": "Array", }, - enabled: { - baseName: "enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DomainAllowlistAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlistRequest.ts b/packages/datadog-api-client-v2/models/DomainAllowlistRequest.ts index 11a0f7cc0836..e6a019405566 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlistRequest.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlistRequest.ts @@ -5,15 +5,20 @@ */ import { DomainAllowlist } from "./DomainAllowlist"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request containing the desired email domain allowlist configuration. - */ +*/ export class DomainAllowlistRequest { /** * The email domain allowlist for an org. - */ + */ "data": DomainAllowlist; /** @@ -32,23 +37,49 @@ export class DomainAllowlistRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DomainAllowlist", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DomainAllowlist", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DomainAllowlistRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlistResponse.ts b/packages/datadog-api-client-v2/models/DomainAllowlistResponse.ts index b34ea7aedc52..8fc08cb553dc 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlistResponse.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlistResponse.ts @@ -5,15 +5,20 @@ */ import { DomainAllowlistResponseData } from "./DomainAllowlistResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about the email domain allowlist. - */ +*/ export class DomainAllowlistResponse { /** * The email domain allowlist response for an org. - */ + */ "data"?: DomainAllowlistResponseData; /** @@ -32,22 +37,48 @@ export class DomainAllowlistResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DomainAllowlistResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DomainAllowlistResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DomainAllowlistResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlistResponseData.ts b/packages/datadog-api-client-v2/models/DomainAllowlistResponseData.ts index 34b90dada2e6..e8ff2fc85d0e 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlistResponseData.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlistResponseData.ts @@ -6,23 +6,28 @@ import { DomainAllowlistResponseDataAttributes } from "./DomainAllowlistResponseDataAttributes"; import { DomainAllowlistType } from "./DomainAllowlistType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The email domain allowlist response for an org. - */ +*/ export class DomainAllowlistResponseData { /** * The details of the email domain allowlist. - */ + */ "attributes"?: DomainAllowlistResponseDataAttributes; /** * The unique identifier of the org. - */ + */ "id"?: string; /** * Email domain allowlist allowlist type. - */ + */ "type": DomainAllowlistType; /** @@ -41,31 +46,57 @@ export class DomainAllowlistResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DomainAllowlistResponseDataAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "DomainAllowlistResponseDataAttributes", }, - type: { - baseName: "type", - type: "DomainAllowlistType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DomainAllowlistType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DomainAllowlistResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlistResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/DomainAllowlistResponseDataAttributes.ts index 436cc683df78..1f5eb791389d 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlistResponseDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlistResponseDataAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The details of the email domain allowlist. - */ +*/ export class DomainAllowlistResponseDataAttributes { /** * The list of domains in the email domain allowlist. - */ + */ "domains"?: Array; /** * Whether the email domain allowlist is enabled for the org. - */ + */ "enabled"?: boolean; /** @@ -35,26 +40,52 @@ export class DomainAllowlistResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - domains: { - baseName: "domains", - type: "Array", + "domains": { + "baseName": "domains", + "type": "Array", }, - enabled: { - baseName: "enabled", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DomainAllowlistResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DomainAllowlistType.ts b/packages/datadog-api-client-v2/models/DomainAllowlistType.ts index 01c3d54dc14e..f4d27282fbc6 100644 --- a/packages/datadog-api-client-v2/models/DomainAllowlistType.ts +++ b/packages/datadog-api-client-v2/models/DomainAllowlistType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Email domain allowlist allowlist type. - */ +*/ export type DomainAllowlistType = typeof DOMAIN_ALLOWLIST | UnparsedObject; -export const DOMAIN_ALLOWLIST = "domain_allowlist"; +export const DOMAIN_ALLOWLIST = 'domain_allowlist'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeCreateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeCreateRequest.ts index f12bfb181529..0cd1851c67cf 100644 --- a/packages/datadog-api-client-v2/models/DowntimeCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeCreateRequest.ts @@ -5,15 +5,20 @@ */ import { DowntimeCreateRequestData } from "./DowntimeCreateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request for creating a downtime. - */ +*/ export class DowntimeCreateRequest { /** * Object to create a downtime. - */ + */ "data": DowntimeCreateRequestData; /** @@ -32,23 +37,49 @@ export class DowntimeCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DowntimeCreateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DowntimeCreateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/DowntimeCreateRequestAttributes.ts index edab1fed19c8..4a701f48d17d 100644 --- a/packages/datadog-api-client-v2/models/DowntimeCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/DowntimeCreateRequestAttributes.ts @@ -8,45 +8,50 @@ import { DowntimeNotifyEndStateActions } from "./DowntimeNotifyEndStateActions"; import { DowntimeNotifyEndStateTypes } from "./DowntimeNotifyEndStateTypes"; import { DowntimeScheduleCreateRequest } from "./DowntimeScheduleCreateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Downtime details. - */ +*/ export class DowntimeCreateRequestAttributes { /** * The timezone in which to display the downtime's start and end times in Datadog applications. This is not used * as an offset for scheduling. - */ + */ "displayTimezone"?: string; /** * A message to include with notifications for this downtime. Email notifications can be sent to specific users * by using the same `@username` notation as events. - */ + */ "message"?: string; /** * Monitor identifier for the downtime. - */ + */ "monitorIdentifier": DowntimeMonitorIdentifier; /** * If the first recovery notification during a downtime should be muted. - */ + */ "muteFirstRecoveryNotification"?: boolean; /** * States that will trigger a monitor notification when the `notify_end_types` action occurs. - */ + */ "notifyEndStates"?: Array; /** * Actions that will trigger a monitor notification if the downtime is in the `notify_end_types` state. - */ + */ "notifyEndTypes"?: Array; /** * Schedule for the downtime. - */ + */ "schedule"?: DowntimeScheduleCreateRequest; /** * The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/). - */ + */ "scope": string; /** @@ -65,52 +70,78 @@ export class DowntimeCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - displayTimezone: { - baseName: "display_timezone", - type: "string", + "displayTimezone": { + "baseName": "display_timezone", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - monitorIdentifier: { - baseName: "monitor_identifier", - type: "DowntimeMonitorIdentifier", - required: true, + "monitorIdentifier": { + "baseName": "monitor_identifier", + "type": "DowntimeMonitorIdentifier", + "required": true, }, - muteFirstRecoveryNotification: { - baseName: "mute_first_recovery_notification", - type: "boolean", + "muteFirstRecoveryNotification": { + "baseName": "mute_first_recovery_notification", + "type": "boolean", }, - notifyEndStates: { - baseName: "notify_end_states", - type: "Array", + "notifyEndStates": { + "baseName": "notify_end_states", + "type": "Array", }, - notifyEndTypes: { - baseName: "notify_end_types", - type: "Array", + "notifyEndTypes": { + "baseName": "notify_end_types", + "type": "Array", }, - schedule: { - baseName: "schedule", - type: "DowntimeScheduleCreateRequest", + "schedule": { + "baseName": "schedule", + "type": "DowntimeScheduleCreateRequest", }, - scope: { - baseName: "scope", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scope": { + "baseName": "scope", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeCreateRequestData.ts b/packages/datadog-api-client-v2/models/DowntimeCreateRequestData.ts index 791458be552a..6d3e9fb0c4a4 100644 --- a/packages/datadog-api-client-v2/models/DowntimeCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/DowntimeCreateRequestData.ts @@ -6,19 +6,24 @@ import { DowntimeCreateRequestAttributes } from "./DowntimeCreateRequestAttributes"; import { DowntimeResourceType } from "./DowntimeResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to create a downtime. - */ +*/ export class DowntimeCreateRequestData { /** * Downtime details. - */ + */ "attributes": DowntimeCreateRequestAttributes; /** * Downtime resource type. - */ + */ "type": DowntimeResourceType; /** @@ -37,28 +42,54 @@ export class DowntimeCreateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DowntimeCreateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "DowntimeCreateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "DowntimeResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DowntimeResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeCreateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeIncludedMonitorType.ts b/packages/datadog-api-client-v2/models/DowntimeIncludedMonitorType.ts index 7feaab6c03e7..fdaa9050010d 100644 --- a/packages/datadog-api-client-v2/models/DowntimeIncludedMonitorType.ts +++ b/packages/datadog-api-client-v2/models/DowntimeIncludedMonitorType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Monitor resource type. - */ +*/ export type DowntimeIncludedMonitorType = typeof MONITORS | UnparsedObject; -export const MONITORS = "monitors"; +export const MONITORS = 'monitors'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeMeta.ts b/packages/datadog-api-client-v2/models/DowntimeMeta.ts index 5ede678ba655..e0ef4a12b3c0 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMeta.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMeta.ts @@ -5,15 +5,20 @@ */ import { DowntimeMetaPage } from "./DowntimeMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata returned by the API. - */ +*/ export class DowntimeMeta { /** * Object containing the total filtered count. - */ + */ "page"?: DowntimeMetaPage; /** @@ -32,22 +37,48 @@ export class DowntimeMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "DowntimeMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "DowntimeMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeMetaPage.ts b/packages/datadog-api-client-v2/models/DowntimeMetaPage.ts index a91e2035ae22..aa38f6c21f28 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMetaPage.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMetaPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the total filtered count. - */ +*/ export class DowntimeMetaPage { /** * Total count of elements matched by the filter. - */ + */ "totalFilteredCount"?: number; /** @@ -31,23 +36,49 @@ export class DowntimeMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifier.ts b/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifier.ts index 2d3cd521349a..afc2231e07f7 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifier.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifier.ts @@ -6,13 +6,15 @@ import { DowntimeMonitorIdentifierId } from "./DowntimeMonitorIdentifierId"; import { DowntimeMonitorIdentifierTags } from "./DowntimeMonitorIdentifierTags"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Monitor identifier for the downtime. - */ +*/ -export type DowntimeMonitorIdentifier = - | DowntimeMonitorIdentifierId - | DowntimeMonitorIdentifierTags - | UnparsedObject; +export type DowntimeMonitorIdentifier = DowntimeMonitorIdentifierId | DowntimeMonitorIdentifierTags | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierId.ts b/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierId.ts index c404eb01e506..0f12ecb621fd 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierId.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierId.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object of the monitor identifier. - */ +*/ export class DowntimeMonitorIdentifierId { /** * ID of the monitor to prevent notifications. - */ + */ "monitorId": number; /** @@ -31,24 +36,50 @@ export class DowntimeMonitorIdentifierId { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - monitorId: { - baseName: "monitor_id", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeMonitorIdentifierId.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierTags.ts b/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierTags.ts index 7a4f1f3389e6..c17f3add4651 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierTags.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMonitorIdentifierTags.ts @@ -4,18 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object of the monitor tags. - */ +*/ export class DowntimeMonitorIdentifierTags { /** * A list of monitor tags. For example, tags that are applied directly to monitors, * not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. * The resulting downtime applies to monitors that match **all** provided monitor tags. Setting `monitor_tags` * to `[*]` configures the downtime to mute all monitors for the given scope. - */ + */ "monitorTags": Array; /** @@ -34,23 +39,49 @@ export class DowntimeMonitorIdentifierTags { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - monitorTags: { - baseName: "monitor_tags", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "monitorTags": { + "baseName": "monitor_tags", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeMonitorIdentifierTags.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedAttributes.ts b/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedAttributes.ts index fdf030b322de..dfe9434b5119 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedAttributes.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the monitor identified by the downtime. - */ +*/ export class DowntimeMonitorIncludedAttributes { /** * The name of the monitor identified by the downtime. - */ + */ "name"?: string; /** @@ -31,22 +36,48 @@ export class DowntimeMonitorIncludedAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeMonitorIncludedAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedItem.ts b/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedItem.ts index 70972e8fddc1..b8a5a22858e2 100644 --- a/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/DowntimeMonitorIncludedItem.ts @@ -6,23 +6,28 @@ import { DowntimeIncludedMonitorType } from "./DowntimeIncludedMonitorType"; import { DowntimeMonitorIncludedAttributes } from "./DowntimeMonitorIncludedAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about the monitor identified by the downtime. - */ +*/ export class DowntimeMonitorIncludedItem { /** * Attributes of the monitor identified by the downtime. - */ + */ "attributes"?: DowntimeMonitorIncludedAttributes; /** * ID of the monitor identified by the downtime. - */ + */ "id"?: number; /** * Monitor resource type. - */ + */ "type"?: DowntimeIncludedMonitorType; /** @@ -41,31 +46,57 @@ export class DowntimeMonitorIncludedItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DowntimeMonitorIncludedAttributes", - }, - id: { - baseName: "id", - type: "number", - format: "int64", + "attributes": { + "baseName": "attributes", + "type": "DowntimeMonitorIncludedAttributes", }, - type: { - baseName: "type", - type: "DowntimeIncludedMonitorType", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DowntimeIncludedMonitorType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeMonitorIncludedItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateActions.ts b/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateActions.ts index 3e9dd61e3196..530ce5787c7b 100644 --- a/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateActions.ts +++ b/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateActions.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Action that will trigger a monitor notification if the downtime is in the `notify_end_types` state. - */ +*/ -export type DowntimeNotifyEndStateActions = - | typeof CANCELED - | typeof EXPIRED - | UnparsedObject; -export const CANCELED = "canceled"; -export const EXPIRED = "expired"; +export type DowntimeNotifyEndStateActions = typeof CANCELED| typeof EXPIRED | UnparsedObject; +export const CANCELED = 'canceled'; +export const EXPIRED = 'expired'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateTypes.ts b/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateTypes.ts index 48dc928cbf82..fd44adad8132 100644 --- a/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateTypes.ts +++ b/packages/datadog-api-client-v2/models/DowntimeNotifyEndStateTypes.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * State that will trigger a monitor notification when the `notify_end_types` action occurs. - */ +*/ -export type DowntimeNotifyEndStateTypes = - | typeof ALERT - | typeof NO_DATA - | typeof WARN - | UnparsedObject; -export const ALERT = "alert"; -export const NO_DATA = "no data"; -export const WARN = "warn"; +export type DowntimeNotifyEndStateTypes = typeof ALERT| typeof NO_DATA| typeof WARN | UnparsedObject; +export const ALERT = 'alert'; +export const NO_DATA = 'no data'; +export const WARN = 'warn'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeRelationships.ts b/packages/datadog-api-client-v2/models/DowntimeRelationships.ts index b1c546b4a2d1..49b4cf5df7b7 100644 --- a/packages/datadog-api-client-v2/models/DowntimeRelationships.ts +++ b/packages/datadog-api-client-v2/models/DowntimeRelationships.ts @@ -6,19 +6,24 @@ import { DowntimeRelationshipsCreatedBy } from "./DowntimeRelationshipsCreatedBy"; import { DowntimeRelationshipsMonitor } from "./DowntimeRelationshipsMonitor"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All relationships associated with downtime. - */ +*/ export class DowntimeRelationships { /** * The user who created the downtime. - */ + */ "createdBy"?: DowntimeRelationshipsCreatedBy; /** * The monitor identified by the downtime. - */ + */ "monitor"?: DowntimeRelationshipsMonitor; /** @@ -37,26 +42,52 @@ export class DowntimeRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdBy: { - baseName: "created_by", - type: "DowntimeRelationshipsCreatedBy", + "createdBy": { + "baseName": "created_by", + "type": "DowntimeRelationshipsCreatedBy", }, - monitor: { - baseName: "monitor", - type: "DowntimeRelationshipsMonitor", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "monitor": { + "baseName": "monitor", + "type": "DowntimeRelationshipsMonitor", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedBy.ts b/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedBy.ts index f4a1cb4253a2..de85ef5be281 100644 --- a/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedBy.ts +++ b/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedBy.ts @@ -5,15 +5,20 @@ */ import { DowntimeRelationshipsCreatedByData } from "./DowntimeRelationshipsCreatedByData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The user who created the downtime. - */ +*/ export class DowntimeRelationshipsCreatedBy { /** * Data for the user who created the downtime. - */ + */ "data"?: DowntimeRelationshipsCreatedByData; /** @@ -32,22 +37,48 @@ export class DowntimeRelationshipsCreatedBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DowntimeRelationshipsCreatedByData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DowntimeRelationshipsCreatedByData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeRelationshipsCreatedBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedByData.ts b/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedByData.ts index 6fe310859e13..1ed75c7a22f5 100644 --- a/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedByData.ts +++ b/packages/datadog-api-client-v2/models/DowntimeRelationshipsCreatedByData.ts @@ -5,19 +5,24 @@ */ import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for the user who created the downtime. - */ +*/ export class DowntimeRelationshipsCreatedByData { /** * User ID of the downtime creator. - */ + */ "id"?: string; /** * Users resource type. - */ + */ "type"?: UsersType; /** @@ -36,26 +41,52 @@ export class DowntimeRelationshipsCreatedByData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "UsersType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeRelationshipsCreatedByData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitor.ts b/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitor.ts index 05f57685015d..095992478f91 100644 --- a/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitor.ts +++ b/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitor.ts @@ -5,15 +5,20 @@ */ import { DowntimeRelationshipsMonitorData } from "./DowntimeRelationshipsMonitorData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The monitor identified by the downtime. - */ +*/ export class DowntimeRelationshipsMonitor { /** * Data for the monitor. - */ + */ "data"?: DowntimeRelationshipsMonitorData; /** @@ -32,22 +37,48 @@ export class DowntimeRelationshipsMonitor { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DowntimeRelationshipsMonitorData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DowntimeRelationshipsMonitorData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeRelationshipsMonitor.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.ts b/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.ts index d8bffaf20609..b4e2e8fc8178 100644 --- a/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.ts +++ b/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.ts @@ -5,19 +5,24 @@ */ import { DowntimeIncludedMonitorType } from "./DowntimeIncludedMonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for the monitor. - */ +*/ export class DowntimeRelationshipsMonitorData { /** * Monitor ID of the downtime. - */ + */ "id"?: string; /** * Monitor resource type. - */ + */ "type"?: DowntimeIncludedMonitorType; /** @@ -36,26 +41,52 @@ export class DowntimeRelationshipsMonitorData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "DowntimeIncludedMonitorType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DowntimeIncludedMonitorType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeRelationshipsMonitorData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeResourceType.ts b/packages/datadog-api-client-v2/models/DowntimeResourceType.ts index a6a07cfe97cd..ea60b6df05a1 100644 --- a/packages/datadog-api-client-v2/models/DowntimeResourceType.ts +++ b/packages/datadog-api-client-v2/models/DowntimeResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Downtime resource type. - */ +*/ export type DowntimeResourceType = typeof DOWNTIME | UnparsedObject; -export const DOWNTIME = "downtime"; +export const DOWNTIME = 'downtime'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeResponse.ts b/packages/datadog-api-client-v2/models/DowntimeResponse.ts index ad1e074e7710..d38c228b79da 100644 --- a/packages/datadog-api-client-v2/models/DowntimeResponse.ts +++ b/packages/datadog-api-client-v2/models/DowntimeResponse.ts @@ -6,22 +6,27 @@ import { DowntimeResponseData } from "./DowntimeResponseData"; import { DowntimeResponseIncludedItem } from "./DowntimeResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Downtiming gives you greater control over monitor notifications by * allowing you to globally exclude scopes from alerting. * Downtime settings, which can be scheduled with start and end times, * prevent all alerting related to specified Datadog tags. - */ +*/ export class DowntimeResponse { /** * Downtime data. - */ + */ "data"?: DowntimeResponseData; /** * Array of objects related to the downtime that the user requested. - */ + */ "included"?: Array; /** @@ -40,26 +45,52 @@ export class DowntimeResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DowntimeResponseData", + "data": { + "baseName": "data", + "type": "DowntimeResponseData", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeResponseAttributes.ts b/packages/datadog-api-client-v2/models/DowntimeResponseAttributes.ts index a28eeaa1fc21..2b27b90b7f8a 100644 --- a/packages/datadog-api-client-v2/models/DowntimeResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/DowntimeResponseAttributes.ts @@ -9,63 +9,68 @@ import { DowntimeNotifyEndStateTypes } from "./DowntimeNotifyEndStateTypes"; import { DowntimeScheduleResponse } from "./DowntimeScheduleResponse"; import { DowntimeStatus } from "./DowntimeStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Downtime details. - */ +*/ export class DowntimeResponseAttributes { /** * Time that the downtime was canceled. - */ + */ "canceled"?: Date; /** * Creation time of the downtime. - */ + */ "created"?: Date; /** * The timezone in which to display the downtime's start and end times in Datadog applications. This is not used * as an offset for scheduling. - */ + */ "displayTimezone"?: string; /** * A message to include with notifications for this downtime. Email notifications can be sent to specific users * by using the same `@username` notation as events. - */ + */ "message"?: string; /** * Time that the downtime was last modified. - */ + */ "modified"?: Date; /** * Monitor identifier for the downtime. - */ + */ "monitorIdentifier"?: DowntimeMonitorIdentifier; /** * If the first recovery notification during a downtime should be muted. - */ + */ "muteFirstRecoveryNotification"?: boolean; /** * States that will trigger a monitor notification when the `notify_end_types` action occurs. - */ + */ "notifyEndStates"?: Array; /** * Actions that will trigger a monitor notification if the downtime is in the `notify_end_types` state. - */ + */ "notifyEndTypes"?: Array; /** * The schedule that defines when the monitor starts, stops, and recurs. There are two types of schedules: * one-time and recurring. Recurring schedules may have up to five RRULE-based recurrences. If no schedules are * provided, the downtime will begin immediately and never end. - */ + */ "schedule"?: DowntimeScheduleResponse; /** * The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/). - */ + */ "scope"?: string; /** * The current status of the downtime. - */ + */ "status"?: DowntimeStatus; /** @@ -84,69 +89,95 @@ export class DowntimeResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - canceled: { - baseName: "canceled", - type: "Date", - format: "date-time", + "canceled": { + "baseName": "canceled", + "type": "Date", + "format": "date-time", }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - displayTimezone: { - baseName: "display_timezone", - type: "string", + "displayTimezone": { + "baseName": "display_timezone", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - monitorIdentifier: { - baseName: "monitor_identifier", - type: "DowntimeMonitorIdentifier", + "monitorIdentifier": { + "baseName": "monitor_identifier", + "type": "DowntimeMonitorIdentifier", }, - muteFirstRecoveryNotification: { - baseName: "mute_first_recovery_notification", - type: "boolean", + "muteFirstRecoveryNotification": { + "baseName": "mute_first_recovery_notification", + "type": "boolean", }, - notifyEndStates: { - baseName: "notify_end_states", - type: "Array", + "notifyEndStates": { + "baseName": "notify_end_states", + "type": "Array", }, - notifyEndTypes: { - baseName: "notify_end_types", - type: "Array", + "notifyEndTypes": { + "baseName": "notify_end_types", + "type": "Array", }, - schedule: { - baseName: "schedule", - type: "DowntimeScheduleResponse", + "schedule": { + "baseName": "schedule", + "type": "DowntimeScheduleResponse", }, - scope: { - baseName: "scope", - type: "string", + "scope": { + "baseName": "scope", + "type": "string", }, - status: { - baseName: "status", - type: "DowntimeStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "DowntimeStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeResponseData.ts b/packages/datadog-api-client-v2/models/DowntimeResponseData.ts index 6cec2d81992f..4b9ee5d5338e 100644 --- a/packages/datadog-api-client-v2/models/DowntimeResponseData.ts +++ b/packages/datadog-api-client-v2/models/DowntimeResponseData.ts @@ -7,27 +7,32 @@ import { DowntimeRelationships } from "./DowntimeRelationships"; import { DowntimeResourceType } from "./DowntimeResourceType"; import { DowntimeResponseAttributes } from "./DowntimeResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Downtime data. - */ +*/ export class DowntimeResponseData { /** * Downtime details. - */ + */ "attributes"?: DowntimeResponseAttributes; /** * The downtime ID. - */ + */ "id"?: string; /** * All relationships associated with downtime. - */ + */ "relationships"?: DowntimeRelationships; /** * Downtime resource type. - */ + */ "type"?: DowntimeResourceType; /** @@ -46,34 +51,60 @@ export class DowntimeResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DowntimeResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "DowntimeResponseAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "DowntimeRelationships", + "relationships": { + "baseName": "relationships", + "type": "DowntimeRelationships", }, - type: { - baseName: "type", - type: "DowntimeResourceType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DowntimeResourceType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/DowntimeResponseIncludedItem.ts index 762955b29647..70862c1a637e 100644 --- a/packages/datadog-api-client-v2/models/DowntimeResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/DowntimeResponseIncludedItem.ts @@ -6,13 +6,15 @@ import { DowntimeMonitorIncludedItem } from "./DowntimeMonitorIncludedItem"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to a downtime. - */ +*/ -export type DowntimeResponseIncludedItem = - | User - | DowntimeMonitorIncludedItem - | UnparsedObject; +export type DowntimeResponseIncludedItem = User | DowntimeMonitorIncludedItem | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleCreateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleCreateRequest.ts index 55c5afe150ff..f11232fc342d 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleCreateRequest.ts @@ -6,13 +6,15 @@ import { DowntimeScheduleOneTimeCreateUpdateRequest } from "./DowntimeScheduleOneTimeCreateUpdateRequest"; import { DowntimeScheduleRecurrencesCreateRequest } from "./DowntimeScheduleRecurrencesCreateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schedule for the downtime. - */ +*/ -export type DowntimeScheduleCreateRequest = - | DowntimeScheduleRecurrencesCreateRequest - | DowntimeScheduleOneTimeCreateUpdateRequest - | UnparsedObject; +export type DowntimeScheduleCreateRequest = DowntimeScheduleRecurrencesCreateRequest | DowntimeScheduleOneTimeCreateUpdateRequest | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleCurrentDowntimeResponse.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleCurrentDowntimeResponse.ts index 33aaf3aa3d09..85008a009cc5 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleCurrentDowntimeResponse.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleCurrentDowntimeResponse.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The most recent actual start and end dates for a recurring downtime. For a canceled downtime, * this is the previously occurring downtime. For active downtimes, this is the ongoing downtime, and for scheduled * downtimes it is the upcoming downtime. - */ +*/ export class DowntimeScheduleCurrentDowntimeResponse { /** * The end of the current downtime. - */ + */ "end"?: Date; /** * The start of the current downtime. - */ + */ "start"?: Date; /** @@ -37,28 +42,54 @@ export class DowntimeScheduleCurrentDowntimeResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - format: "date-time", + "end": { + "baseName": "end", + "type": "Date", + "format": "date-time", }, - start: { - baseName: "start", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleCurrentDowntimeResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeCreateUpdateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeCreateUpdateRequest.ts index 09b317310457..204842b8176e 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeCreateUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeCreateUpdateRequest.ts @@ -4,21 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A one-time downtime definition. - */ +*/ export class DowntimeScheduleOneTimeCreateUpdateRequest { /** * ISO-8601 Datetime to end the downtime. Must include a UTC offset of zero. If not provided, the * downtime continues forever. - */ + */ "end"?: Date; /** * ISO-8601 Datetime to start the downtime. Must include a UTC offset of zero. If not provided, the * downtime starts the moment it is created. - */ + */ "start"?: Date; /** @@ -30,24 +35,50 @@ export class DowntimeScheduleOneTimeCreateUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - format: "date-time", - }, - start: { - baseName: "start", - type: "Date", - format: "date-time", + "end": { + "baseName": "end", + "type": "Date", + "format": "date-time", }, + "start": { + "baseName": "start", + "type": "Date", + "format": "date-time", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleOneTimeCreateUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeResponse.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeResponse.ts index aa519b4dab44..e3b2ea7b6afd 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeResponse.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleOneTimeResponse.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A one-time downtime definition. - */ +*/ export class DowntimeScheduleOneTimeResponse { /** * ISO-8601 Datetime to end the downtime. - */ + */ "end"?: Date; /** * ISO-8601 Datetime to start the downtime. - */ + */ "start": Date; /** @@ -35,29 +40,55 @@ export class DowntimeScheduleOneTimeResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - format: "date-time", + "end": { + "baseName": "end", + "type": "Date", + "format": "date-time", }, - start: { - baseName: "start", - type: "Date", - required: true, - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "Date", + "required": true, + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleOneTimeResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceCreateUpdateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceCreateUpdateRequest.ts index ddc2000cf64d..df64fdd422a0 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceCreateUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceCreateUpdateRequest.ts @@ -4,29 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object defining the recurrence of the downtime. - */ +*/ export class DowntimeScheduleRecurrenceCreateUpdateRequest { /** * The length of the downtime. Must begin with an integer and end with one of 'm', 'h', d', or 'w'. - */ + */ "duration": string; /** * The `RRULE` standard for defining recurring events. * For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. * Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. - * + * * **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). * More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api). - */ + */ "rrule": string; /** * ISO-8601 Datetime to start the downtime. Must not include a UTC offset. If not provided, the * downtime starts the moment it is created. - */ + */ "start"?: string; /** @@ -45,32 +50,58 @@ export class DowntimeScheduleRecurrenceCreateUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - duration: { - baseName: "duration", - type: "string", - required: true, - }, - rrule: { - baseName: "rrule", - type: "string", - required: true, + "duration": { + "baseName": "duration", + "type": "string", + "required": true, }, - start: { - baseName: "start", - type: "string", + "rrule": { + "baseName": "rrule", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleRecurrenceCreateUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceResponse.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceResponse.ts index 179ba228d83a..99b3129b7aab 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceResponse.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrenceResponse.ts @@ -4,29 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An RRULE-based recurring downtime. - */ +*/ export class DowntimeScheduleRecurrenceResponse { /** * The length of the downtime. Must begin with an integer and end with one of 'm', 'h', d', or 'w'. - */ + */ "duration"?: string; /** * The `RRULE` standard for defining recurring events. * For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. * Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. - * + * * **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). * More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api). - */ + */ "rrule"?: string; /** * ISO-8601 Datetime to start the downtime. Must not include a UTC offset. If not provided, the * downtime starts the moment it is created. - */ + */ "start"?: string; /** @@ -45,30 +50,56 @@ export class DowntimeScheduleRecurrenceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - duration: { - baseName: "duration", - type: "string", - }, - rrule: { - baseName: "rrule", - type: "string", + "duration": { + "baseName": "duration", + "type": "string", }, - start: { - baseName: "start", - type: "string", + "rrule": { + "baseName": "rrule", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleRecurrenceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesCreateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesCreateRequest.ts index 535a558b0297..629d8728919e 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesCreateRequest.ts @@ -5,19 +5,24 @@ */ import { DowntimeScheduleRecurrenceCreateUpdateRequest } from "./DowntimeScheduleRecurrenceCreateUpdateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A recurring downtime schedule definition. - */ +*/ export class DowntimeScheduleRecurrencesCreateRequest { /** * A list of downtime recurrences. - */ + */ "recurrences": Array; /** * The timezone in which to schedule the downtime. - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class DowntimeScheduleRecurrencesCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - recurrences: { - baseName: "recurrences", - type: "Array", - required: true, + "recurrences": { + "baseName": "recurrences", + "type": "Array", + "required": true, }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleRecurrencesCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesResponse.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesResponse.ts index a71d539a8c40..77a4ec1cd33f 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesResponse.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesResponse.ts @@ -6,26 +6,31 @@ import { DowntimeScheduleCurrentDowntimeResponse } from "./DowntimeScheduleCurrentDowntimeResponse"; import { DowntimeScheduleRecurrenceResponse } from "./DowntimeScheduleRecurrenceResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A recurring downtime schedule definition. - */ +*/ export class DowntimeScheduleRecurrencesResponse { /** * The most recent actual start and end dates for a recurring downtime. For a canceled downtime, * this is the previously occurring downtime. For active downtimes, this is the ongoing downtime, and for scheduled * downtimes it is the upcoming downtime. - */ + */ "currentDowntime"?: DowntimeScheduleCurrentDowntimeResponse; /** * A list of downtime recurrences. - */ + */ "recurrences": Array; /** * The timezone in which to schedule the downtime. This affects recurring start and end dates. * Must match `display_timezone`. - */ + */ "timezone"?: string; /** @@ -44,31 +49,57 @@ export class DowntimeScheduleRecurrencesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - currentDowntime: { - baseName: "current_downtime", - type: "DowntimeScheduleCurrentDowntimeResponse", - }, - recurrences: { - baseName: "recurrences", - type: "Array", - required: true, + "currentDowntime": { + "baseName": "current_downtime", + "type": "DowntimeScheduleCurrentDowntimeResponse", }, - timezone: { - baseName: "timezone", - type: "string", + "recurrences": { + "baseName": "recurrences", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleRecurrencesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesUpdateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesUpdateRequest.ts index 008a6fe67e60..4809953548fe 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleRecurrencesUpdateRequest.ts @@ -5,19 +5,24 @@ */ import { DowntimeScheduleRecurrenceCreateUpdateRequest } from "./DowntimeScheduleRecurrenceCreateUpdateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A recurring downtime schedule definition. - */ +*/ export class DowntimeScheduleRecurrencesUpdateRequest { /** * A list of downtime recurrences. - */ + */ "recurrences"?: Array; /** * The timezone in which to schedule the downtime. - */ + */ "timezone"?: string; /** @@ -29,22 +34,48 @@ export class DowntimeScheduleRecurrencesUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - recurrences: { - baseName: "recurrences", - type: "Array", - }, - timezone: { - baseName: "timezone", - type: "string", + "recurrences": { + "baseName": "recurrences", + "type": "Array", }, + "timezone": { + "baseName": "timezone", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeScheduleRecurrencesUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleResponse.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleResponse.ts index 1eaa1d3daff0..ca6a6c58d282 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleResponse.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleResponse.ts @@ -6,15 +6,17 @@ import { DowntimeScheduleOneTimeResponse } from "./DowntimeScheduleOneTimeResponse"; import { DowntimeScheduleRecurrencesResponse } from "./DowntimeScheduleRecurrencesResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The schedule that defines when the monitor starts, stops, and recurs. There are two types of schedules: * one-time and recurring. Recurring schedules may have up to five RRULE-based recurrences. If no schedules are * provided, the downtime will begin immediately and never end. - */ +*/ -export type DowntimeScheduleResponse = - | DowntimeScheduleRecurrencesResponse - | DowntimeScheduleOneTimeResponse - | UnparsedObject; +export type DowntimeScheduleResponse = DowntimeScheduleRecurrencesResponse | DowntimeScheduleOneTimeResponse | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeScheduleUpdateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeScheduleUpdateRequest.ts index f24fbace96e3..c58a86620063 100644 --- a/packages/datadog-api-client-v2/models/DowntimeScheduleUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeScheduleUpdateRequest.ts @@ -6,13 +6,15 @@ import { DowntimeScheduleOneTimeCreateUpdateRequest } from "./DowntimeScheduleOneTimeCreateUpdateRequest"; import { DowntimeScheduleRecurrencesUpdateRequest } from "./DowntimeScheduleRecurrencesUpdateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schedule for the downtime. - */ +*/ -export type DowntimeScheduleUpdateRequest = - | DowntimeScheduleRecurrencesUpdateRequest - | DowntimeScheduleOneTimeCreateUpdateRequest - | UnparsedObject; +export type DowntimeScheduleUpdateRequest = DowntimeScheduleRecurrencesUpdateRequest | DowntimeScheduleOneTimeCreateUpdateRequest | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeStatus.ts b/packages/datadog-api-client-v2/models/DowntimeStatus.ts index 1de6125fd9f0..b0ed6bf7c154 100644 --- a/packages/datadog-api-client-v2/models/DowntimeStatus.ts +++ b/packages/datadog-api-client-v2/models/DowntimeStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The current status of the downtime. - */ +*/ -export type DowntimeStatus = - | typeof ACTIVE - | typeof CANCELED - | typeof ENDED - | typeof SCHEDULED - | UnparsedObject; -export const ACTIVE = "active"; -export const CANCELED = "canceled"; -export const ENDED = "ended"; -export const SCHEDULED = "scheduled"; +export type DowntimeStatus = typeof ACTIVE| typeof CANCELED| typeof ENDED| typeof SCHEDULED | UnparsedObject; +export const ACTIVE = 'active'; +export const CANCELED = 'canceled'; +export const ENDED = 'ended'; +export const SCHEDULED = 'scheduled'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/DowntimeUpdateRequest.ts b/packages/datadog-api-client-v2/models/DowntimeUpdateRequest.ts index 42e9e059a516..6ba41b67bd46 100644 --- a/packages/datadog-api-client-v2/models/DowntimeUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/DowntimeUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { DowntimeUpdateRequestData } from "./DowntimeUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request for editing a downtime. - */ +*/ export class DowntimeUpdateRequest { /** * Object to update a downtime. - */ + */ "data": DowntimeUpdateRequestData; /** @@ -32,23 +37,49 @@ export class DowntimeUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DowntimeUpdateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DowntimeUpdateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/DowntimeUpdateRequestAttributes.ts index d25c969738cf..78b843aaff3a 100644 --- a/packages/datadog-api-client-v2/models/DowntimeUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/DowntimeUpdateRequestAttributes.ts @@ -8,45 +8,50 @@ import { DowntimeNotifyEndStateActions } from "./DowntimeNotifyEndStateActions"; import { DowntimeNotifyEndStateTypes } from "./DowntimeNotifyEndStateTypes"; import { DowntimeScheduleUpdateRequest } from "./DowntimeScheduleUpdateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the downtime to update. - */ +*/ export class DowntimeUpdateRequestAttributes { /** * The timezone in which to display the downtime's start and end times in Datadog applications. This is not used * as an offset for scheduling. - */ + */ "displayTimezone"?: string; /** * A message to include with notifications for this downtime. Email notifications can be sent to specific users * by using the same `@username` notation as events. - */ + */ "message"?: string; /** * Monitor identifier for the downtime. - */ + */ "monitorIdentifier"?: DowntimeMonitorIdentifier; /** * If the first recovery notification during a downtime should be muted. - */ + */ "muteFirstRecoveryNotification"?: boolean; /** * States that will trigger a monitor notification when the `notify_end_types` action occurs. - */ + */ "notifyEndStates"?: Array; /** * Actions that will trigger a monitor notification if the downtime is in the `notify_end_types` state. - */ + */ "notifyEndTypes"?: Array; /** * Schedule for the downtime. - */ + */ "schedule"?: DowntimeScheduleUpdateRequest; /** * The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/). - */ + */ "scope"?: string; /** @@ -65,50 +70,76 @@ export class DowntimeUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - displayTimezone: { - baseName: "display_timezone", - type: "string", + "displayTimezone": { + "baseName": "display_timezone", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - monitorIdentifier: { - baseName: "monitor_identifier", - type: "DowntimeMonitorIdentifier", + "monitorIdentifier": { + "baseName": "monitor_identifier", + "type": "DowntimeMonitorIdentifier", }, - muteFirstRecoveryNotification: { - baseName: "mute_first_recovery_notification", - type: "boolean", + "muteFirstRecoveryNotification": { + "baseName": "mute_first_recovery_notification", + "type": "boolean", }, - notifyEndStates: { - baseName: "notify_end_states", - type: "Array", + "notifyEndStates": { + "baseName": "notify_end_states", + "type": "Array", }, - notifyEndTypes: { - baseName: "notify_end_types", - type: "Array", + "notifyEndTypes": { + "baseName": "notify_end_types", + "type": "Array", }, - schedule: { - baseName: "schedule", - type: "DowntimeScheduleUpdateRequest", + "schedule": { + "baseName": "schedule", + "type": "DowntimeScheduleUpdateRequest", }, - scope: { - baseName: "scope", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scope": { + "baseName": "scope", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/DowntimeUpdateRequestData.ts b/packages/datadog-api-client-v2/models/DowntimeUpdateRequestData.ts index fc9a665fbcec..23990314181f 100644 --- a/packages/datadog-api-client-v2/models/DowntimeUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/DowntimeUpdateRequestData.ts @@ -6,23 +6,28 @@ import { DowntimeResourceType } from "./DowntimeResourceType"; import { DowntimeUpdateRequestAttributes } from "./DowntimeUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to update a downtime. - */ +*/ export class DowntimeUpdateRequestData { /** * Attributes of the downtime to update. - */ + */ "attributes": DowntimeUpdateRequestAttributes; /** * ID of this downtime. - */ + */ "id": string; /** * Downtime resource type. - */ + */ "type": DowntimeResourceType; /** @@ -41,33 +46,59 @@ export class DowntimeUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "DowntimeUpdateRequestAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "DowntimeUpdateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "DowntimeResourceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "DowntimeResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return DowntimeUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EPSS.ts b/packages/datadog-api-client-v2/models/EPSS.ts index f2b2f8cc09dd..ee43f3e1a3f5 100644 --- a/packages/datadog-api-client-v2/models/EPSS.ts +++ b/packages/datadog-api-client-v2/models/EPSS.ts @@ -5,19 +5,24 @@ */ import { VulnerabilitySeverity } from "./VulnerabilitySeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability EPSS severity. - */ +*/ export class EPSS { /** * Vulnerability EPSS severity score. - */ + */ "score": number; /** * The vulnerability severity. - */ + */ "severity": VulnerabilitySeverity; /** @@ -36,29 +41,55 @@ export class EPSS { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - score: { - baseName: "score", - type: "number", - required: true, - format: "double", + "score": { + "baseName": "score", + "type": "number", + "required": true, + "format": "double", }, - severity: { - baseName: "severity", - type: "VulnerabilitySeverity", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "severity": { + "baseName": "severity", + "type": "VulnerabilitySeverity", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EPSS.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityAttributes.ts b/packages/datadog-api-client-v2/models/EntityAttributes.ts index 5ae10898c5bb..db3e4df55af8 100644 --- a/packages/datadog-api-client-v2/models/EntityAttributes.ts +++ b/packages/datadog-api-client-v2/models/EntityAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity attributes. - */ +*/ export class EntityAttributes { /** * The API version. - */ + */ "apiVersion"?: string; /** * The description. - */ + */ "description"?: string; /** * The display name. - */ + */ "displayName"?: string; /** * The kind. - */ + */ "kind"?: string; /** * The name. - */ + */ "name"?: string; /** * The namespace. - */ + */ "namespace"?: string; /** * The owner. - */ + */ "owner"?: string; /** * The tags. - */ + */ "tags"?: Array; /** @@ -59,50 +64,76 @@ export class EntityAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiVersion: { - baseName: "apiVersion", - type: "string", + "apiVersion": { + "baseName": "apiVersion", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - displayName: { - baseName: "displayName", - type: "string", + "displayName": { + "baseName": "displayName", + "type": "string", }, - kind: { - baseName: "kind", - type: "string", + "kind": { + "baseName": "kind", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - namespace: { - baseName: "namespace", - type: "string", + "namespace": { + "baseName": "namespace", + "type": "string", }, - owner: { - baseName: "owner", - type: "string", + "owner": { + "baseName": "owner", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityData.ts b/packages/datadog-api-client-v2/models/EntityData.ts index 290638df8471..04ff8db0954e 100644 --- a/packages/datadog-api-client-v2/models/EntityData.ts +++ b/packages/datadog-api-client-v2/models/EntityData.ts @@ -7,31 +7,36 @@ import { EntityAttributes } from "./EntityAttributes"; import { EntityMeta } from "./EntityMeta"; import { EntityRelationships } from "./EntityRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity data. - */ +*/ export class EntityData { /** * Entity attributes. - */ + */ "attributes"?: EntityAttributes; /** * Entity ID. - */ + */ "id"?: string; /** * Entity metadata. - */ + */ "meta"?: EntityMeta; /** * Entity relationships. - */ + */ "relationships"?: EntityRelationships; /** * Entity. - */ + */ "type"?: string; /** @@ -50,38 +55,64 @@ export class EntityData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EntityAttributes", + "attributes": { + "baseName": "attributes", + "type": "EntityAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - meta: { - baseName: "meta", - type: "EntityMeta", + "meta": { + "baseName": "meta", + "type": "EntityMeta", }, - relationships: { - baseName: "relationships", - type: "EntityRelationships", + "relationships": { + "baseName": "relationships", + "type": "EntityRelationships", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityMeta.ts b/packages/datadog-api-client-v2/models/EntityMeta.ts index 44810d6aac45..22d60fb8e6a9 100644 --- a/packages/datadog-api-client-v2/models/EntityMeta.ts +++ b/packages/datadog-api-client-v2/models/EntityMeta.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity metadata. - */ +*/ export class EntityMeta { /** * The creation time. - */ + */ "createdAt"?: string; /** * The ingestion source. - */ + */ "ingestionSource"?: string; /** * The modification time. - */ + */ "modifiedAt"?: string; /** * The origin. - */ + */ "origin"?: string; /** @@ -43,34 +48,60 @@ export class EntityMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "string", + "createdAt": { + "baseName": "createdAt", + "type": "string", }, - ingestionSource: { - baseName: "ingestionSource", - type: "string", + "ingestionSource": { + "baseName": "ingestionSource", + "type": "string", }, - modifiedAt: { - baseName: "modifiedAt", - type: "string", + "modifiedAt": { + "baseName": "modifiedAt", + "type": "string", }, - origin: { - baseName: "origin", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "origin": { + "baseName": "origin", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityRelationships.ts b/packages/datadog-api-client-v2/models/EntityRelationships.ts index 5992f2f67b60..3ac61b281f74 100644 --- a/packages/datadog-api-client-v2/models/EntityRelationships.ts +++ b/packages/datadog-api-client-v2/models/EntityRelationships.ts @@ -9,31 +9,36 @@ import { EntityToRawSchema } from "./EntityToRawSchema"; import { EntityToRelatedEntities } from "./EntityToRelatedEntities"; import { EntityToSchema } from "./EntityToSchema"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity relationships. - */ +*/ export class EntityRelationships { /** * Entity to incidents relationship. - */ + */ "incidents"?: EntityToIncidents; /** * Entity to oncalls relationship. - */ + */ "oncall"?: EntityToOncalls; /** * Entity to raw schema relationship. - */ + */ "rawSchema"?: EntityToRawSchema; /** * Entity to related entities relationship. - */ + */ "relatedEntities"?: EntityToRelatedEntities; /** * Entity to detail schema relationship. - */ + */ "schema"?: EntityToSchema; /** @@ -52,38 +57,64 @@ export class EntityRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - incidents: { - baseName: "incidents", - type: "EntityToIncidents", + "incidents": { + "baseName": "incidents", + "type": "EntityToIncidents", }, - oncall: { - baseName: "oncall", - type: "EntityToOncalls", + "oncall": { + "baseName": "oncall", + "type": "EntityToOncalls", }, - rawSchema: { - baseName: "rawSchema", - type: "EntityToRawSchema", + "rawSchema": { + "baseName": "rawSchema", + "type": "EntityToRawSchema", }, - relatedEntities: { - baseName: "relatedEntities", - type: "EntityToRelatedEntities", + "relatedEntities": { + "baseName": "relatedEntities", + "type": "EntityToRelatedEntities", }, - schema: { - baseName: "schema", - type: "EntityToSchema", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "schema": { + "baseName": "schema", + "type": "EntityToSchema", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedIncident.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedIncident.ts index a8a857601955..97928a17f42f 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedIncident.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedIncident.ts @@ -6,23 +6,28 @@ import { EntityResponseIncludedIncidentType } from "./EntityResponseIncludedIncidentType"; import { EntityResponseIncludedRelatedIncidentAttributes } from "./EntityResponseIncludedRelatedIncidentAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included incident. - */ +*/ export class EntityResponseIncludedIncident { /** * Incident attributes. - */ + */ "attributes"?: EntityResponseIncludedRelatedIncidentAttributes; /** * Incident ID. - */ + */ "id"?: string; /** * Incident description. - */ + */ "type"?: EntityResponseIncludedIncidentType; /** @@ -41,30 +46,56 @@ export class EntityResponseIncludedIncident { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EntityResponseIncludedRelatedIncidentAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "EntityResponseIncludedRelatedIncidentAttributes", }, - type: { - baseName: "type", - type: "EntityResponseIncludedIncidentType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EntityResponseIncludedIncidentType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedIncident.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedIncidentType.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedIncidentType.ts index f948ea2c25fa..2c48bd2d24fd 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedIncidentType.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedIncidentType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident description. - */ +*/ -export type EntityResponseIncludedIncidentType = - | typeof INCIDENT - | UnparsedObject; -export const INCIDENT = "incident"; +export type EntityResponseIncludedIncidentType = typeof INCIDENT | UnparsedObject; +export const INCIDENT = 'incident'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedOncall.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedOncall.ts index 94c36399072b..b6a01a7319b4 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedOncall.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedOncall.ts @@ -6,23 +6,28 @@ import { EntityResponseIncludedOncallType } from "./EntityResponseIncludedOncallType"; import { EntityResponseIncludedRelatedOncallAttributes } from "./EntityResponseIncludedRelatedOncallAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included oncall. - */ +*/ export class EntityResponseIncludedOncall { /** * Included related oncall attributes. - */ + */ "attributes"?: EntityResponseIncludedRelatedOncallAttributes; /** * Oncall ID. - */ + */ "id"?: string; /** * Oncall type. - */ + */ "type"?: EntityResponseIncludedOncallType; /** @@ -41,30 +46,56 @@ export class EntityResponseIncludedOncall { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EntityResponseIncludedRelatedOncallAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "EntityResponseIncludedRelatedOncallAttributes", }, - type: { - baseName: "type", - type: "EntityResponseIncludedOncallType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EntityResponseIncludedOncallType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedOncall.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedOncallType.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedOncallType.ts index 5835659f4a59..0a5a87ce98a5 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedOncallType.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedOncallType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Oncall type. - */ +*/ export type EntityResponseIncludedOncallType = typeof ONCALL | UnparsedObject; -export const ONCALL = "oncall"; +export const ONCALL = 'oncall'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchema.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchema.ts index 16c8ef48c790..7c5bfcc0b2ed 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchema.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchema.ts @@ -6,23 +6,28 @@ import { EntityResponseIncludedRawSchemaAttributes } from "./EntityResponseIncludedRawSchemaAttributes"; import { EntityResponseIncludedRawSchemaType } from "./EntityResponseIncludedRawSchemaType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included raw schema. - */ +*/ export class EntityResponseIncludedRawSchema { /** * Included raw schema attributes. - */ + */ "attributes"?: EntityResponseIncludedRawSchemaAttributes; /** * Raw schema ID. - */ + */ "id"?: string; /** * Raw schema type. - */ + */ "type"?: EntityResponseIncludedRawSchemaType; /** @@ -41,30 +46,56 @@ export class EntityResponseIncludedRawSchema { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EntityResponseIncludedRawSchemaAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "EntityResponseIncludedRawSchemaAttributes", }, - type: { - baseName: "type", - type: "EntityResponseIncludedRawSchemaType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EntityResponseIncludedRawSchemaType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRawSchema.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaAttributes.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaAttributes.ts index 25857f391ff8..e5de0bf73144 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaAttributes.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included raw schema attributes. - */ +*/ export class EntityResponseIncludedRawSchemaAttributes { /** * Schema from user input in base64 encoding. - */ + */ "rawSchema"?: string; /** @@ -31,22 +36,48 @@ export class EntityResponseIncludedRawSchemaAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rawSchema: { - baseName: "rawSchema", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rawSchema": { + "baseName": "rawSchema", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRawSchemaAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaType.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaType.ts index a1e365a55b10..a31b57548239 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaType.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchemaType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Raw schema type. - */ +*/ -export type EntityResponseIncludedRawSchemaType = - | typeof RAW_SCHEMA - | UnparsedObject; -export const RAW_SCHEMA = "rawSchema"; +export type EntityResponseIncludedRawSchemaType = typeof RAW_SCHEMA | UnparsedObject; +export const RAW_SCHEMA = 'rawSchema'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntity.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntity.ts index ab14684c00d8..484f8cbf50f3 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntity.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntity.ts @@ -7,27 +7,32 @@ import { EntityResponseIncludedRelatedEntityAttributes } from "./EntityResponseI import { EntityResponseIncludedRelatedEntityMeta } from "./EntityResponseIncludedRelatedEntityMeta"; import { EntityResponseIncludedRelatedEntityType } from "./EntityResponseIncludedRelatedEntityType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included related entity. - */ +*/ export class EntityResponseIncludedRelatedEntity { /** * Related entity attributes. - */ + */ "attributes"?: EntityResponseIncludedRelatedEntityAttributes; /** * Entity UUID. - */ + */ "id"?: string; /** * Included related entity meta. - */ + */ "meta"?: EntityResponseIncludedRelatedEntityMeta; /** * Related entity. - */ + */ "type"?: EntityResponseIncludedRelatedEntityType; /** @@ -46,34 +51,60 @@ export class EntityResponseIncludedRelatedEntity { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EntityResponseIncludedRelatedEntityAttributes", + "attributes": { + "baseName": "attributes", + "type": "EntityResponseIncludedRelatedEntityAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - meta: { - baseName: "meta", - type: "EntityResponseIncludedRelatedEntityMeta", + "meta": { + "baseName": "meta", + "type": "EntityResponseIncludedRelatedEntityMeta", }, - type: { - baseName: "type", - type: "EntityResponseIncludedRelatedEntityType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EntityResponseIncludedRelatedEntityType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRelatedEntity.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityAttributes.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityAttributes.ts index 92f638c9ca5b..c336ebf76f4b 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityAttributes.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Related entity attributes. - */ +*/ export class EntityResponseIncludedRelatedEntityAttributes { /** * Entity kind. - */ + */ "kind"?: string; /** * Entity name. - */ + */ "name"?: string; /** * Entity namespace. - */ + */ "namespace"?: string; /** * Entity relation type to the associated entity. - */ + */ "type"?: string; /** @@ -43,34 +48,60 @@ export class EntityResponseIncludedRelatedEntityAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - kind: { - baseName: "kind", - type: "string", + "kind": { + "baseName": "kind", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - namespace: { - baseName: "namespace", - type: "string", + "namespace": { + "baseName": "namespace", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRelatedEntityAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityMeta.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityMeta.ts index 2a6d91e782fb..e819cf19e480 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityMeta.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityMeta.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included related entity meta. - */ +*/ export class EntityResponseIncludedRelatedEntityMeta { /** * Entity creation time. - */ + */ "createdAt"?: Date; /** * Entity relation defined by. - */ + */ "definedBy"?: string; /** * Entity modification time. - */ + */ "modifiedAt"?: Date; /** * Entity relation source. - */ + */ "source"?: string; /** @@ -43,36 +48,62 @@ export class EntityResponseIncludedRelatedEntityMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "createdAt", + "type": "Date", + "format": "date-time", }, - definedBy: { - baseName: "defined_by", - type: "string", + "definedBy": { + "baseName": "defined_by", + "type": "string", }, - modifiedAt: { - baseName: "modifiedAt", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modifiedAt", + "type": "Date", + "format": "date-time", }, - source: { - baseName: "source", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "source": { + "baseName": "source", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRelatedEntityMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityType.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityType.ts index 83ccca5796f5..b1f4772f4556 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityType.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntityType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Related entity. - */ +*/ -export type EntityResponseIncludedRelatedEntityType = - | typeof RELATED_ENTITY - | UnparsedObject; -export const RELATED_ENTITY = "relatedEntity"; +export type EntityResponseIncludedRelatedEntityType = typeof RELATED_ENTITY | UnparsedObject; +export const RELATED_ENTITY = 'relatedEntity'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedIncidentAttributes.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedIncidentAttributes.ts index 7c882126279f..78950a40f129 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedIncidentAttributes.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedIncidentAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident attributes. - */ +*/ export class EntityResponseIncludedRelatedIncidentAttributes { /** * Incident creation time. - */ + */ "createdAt"?: Date; /** * Incident URL. - */ + */ "htmlUrl"?: string; /** * Incident provider. - */ + */ "provider"?: string; /** * Incident status. - */ + */ "status"?: string; /** * Incident title. - */ + */ "title"?: string; /** @@ -47,39 +52,65 @@ export class EntityResponseIncludedRelatedIncidentAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "createdAt", + "type": "Date", + "format": "date-time", }, - htmlUrl: { - baseName: "htmlURL", - type: "string", + "htmlUrl": { + "baseName": "htmlURL", + "type": "string", }, - provider: { - baseName: "provider", - type: "string", + "provider": { + "baseName": "provider", + "type": "string", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - title: { - baseName: "title", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRelatedIncidentAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallAttributes.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallAttributes.ts index eee44d683fb0..e20b5e742aca 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallAttributes.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallAttributes.ts @@ -5,19 +5,24 @@ */ import { EntityResponseIncludedRelatedOncallEscalationItem } from "./EntityResponseIncludedRelatedOncallEscalationItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included related oncall attributes. - */ +*/ export class EntityResponseIncludedRelatedOncallAttributes { /** * Oncall escalations. - */ + */ "escalations"?: Array; /** * Oncall provider. - */ + */ "provider"?: string; /** @@ -36,26 +41,52 @@ export class EntityResponseIncludedRelatedOncallAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - escalations: { - baseName: "escalations", - type: "Array", + "escalations": { + "baseName": "escalations", + "type": "Array", }, - provider: { - baseName: "provider", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "provider": { + "baseName": "provider", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRelatedOncallAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallEscalationItem.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallEscalationItem.ts index 1fc067a7b519..7f3bf0646c2e 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallEscalationItem.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedOncallEscalationItem.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Oncall escalation. - */ +*/ export class EntityResponseIncludedRelatedOncallEscalationItem { /** * Oncall email. - */ + */ "email"?: string; /** * Oncall level. - */ + */ "escalationLevel"?: number; /** * Oncall name. - */ + */ "name"?: string; /** @@ -39,31 +44,57 @@ export class EntityResponseIncludedRelatedOncallEscalationItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - }, - escalationLevel: { - baseName: "escalationLevel", - type: "number", - format: "int64", + "email": { + "baseName": "email", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "escalationLevel": { + "baseName": "escalationLevel", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedRelatedOncallEscalationItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedSchema.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedSchema.ts index a2d7e2b6f9a5..9eaa4ecd03bd 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedSchema.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedSchema.ts @@ -6,23 +6,28 @@ import { EntityResponseIncludedSchemaAttributes } from "./EntityResponseIncludedSchemaAttributes"; import { EntityResponseIncludedSchemaType } from "./EntityResponseIncludedSchemaType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included detail entity schema. - */ +*/ export class EntityResponseIncludedSchema { /** * Included schema. - */ + */ "attributes"?: EntityResponseIncludedSchemaAttributes; /** * Entity ID. - */ + */ "id"?: string; /** * Schema type. - */ + */ "type"?: EntityResponseIncludedSchemaType; /** @@ -41,30 +46,56 @@ export class EntityResponseIncludedSchema { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EntityResponseIncludedSchemaAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "EntityResponseIncludedSchemaAttributes", }, - type: { - baseName: "type", - type: "EntityResponseIncludedSchemaType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EntityResponseIncludedSchemaType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedSchema.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaAttributes.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaAttributes.ts index 3a7b0c81b303..a7f400634371 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaAttributes.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaAttributes.ts @@ -5,15 +5,20 @@ */ import { EntityV3 } from "./EntityV3"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Included schema. - */ +*/ export class EntityResponseIncludedSchemaAttributes { /** * Entity schema v3. - */ + */ "schema"?: EntityV3; /** @@ -32,22 +37,48 @@ export class EntityResponseIncludedSchemaAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - schema: { - baseName: "schema", - type: "EntityV3", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "schema": { + "baseName": "schema", + "type": "EntityV3", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseIncludedSchemaAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaType.ts b/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaType.ts index 31f4e34dcf3e..c90f57585bfb 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaType.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseIncludedSchemaType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schema type. - */ +*/ export type EntityResponseIncludedSchemaType = typeof SCHEMA | UnparsedObject; -export const SCHEMA = "schema"; +export const SCHEMA = 'schema'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityResponseMeta.ts b/packages/datadog-api-client-v2/models/EntityResponseMeta.ts index 4599ebebcee9..582f16738b2e 100644 --- a/packages/datadog-api-client-v2/models/EntityResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/EntityResponseMeta.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity metadata. - */ +*/ export class EntityResponseMeta { /** * Total entities count. - */ + */ "count"?: number; /** * Total included data count. - */ + */ "includeCount"?: number; /** @@ -35,28 +40,54 @@ export class EntityResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - includeCount: { - baseName: "includeCount", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includeCount": { + "baseName": "includeCount", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityToIncidents.ts b/packages/datadog-api-client-v2/models/EntityToIncidents.ts index 42a2587987b9..5470246e702c 100644 --- a/packages/datadog-api-client-v2/models/EntityToIncidents.ts +++ b/packages/datadog-api-client-v2/models/EntityToIncidents.ts @@ -5,15 +5,20 @@ */ import { RelationshipItem } from "./RelationshipItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity to incidents relationship. - */ +*/ export class EntityToIncidents { /** * Relationships. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class EntityToIncidents { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityToIncidents.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityToOncalls.ts b/packages/datadog-api-client-v2/models/EntityToOncalls.ts index aa828937995d..70c7efd884e7 100644 --- a/packages/datadog-api-client-v2/models/EntityToOncalls.ts +++ b/packages/datadog-api-client-v2/models/EntityToOncalls.ts @@ -5,15 +5,20 @@ */ import { RelationshipItem } from "./RelationshipItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity to oncalls relationship. - */ +*/ export class EntityToOncalls { /** * Relationships. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class EntityToOncalls { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityToOncalls.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityToRawSchema.ts b/packages/datadog-api-client-v2/models/EntityToRawSchema.ts index a736372cc62d..298c98a39929 100644 --- a/packages/datadog-api-client-v2/models/EntityToRawSchema.ts +++ b/packages/datadog-api-client-v2/models/EntityToRawSchema.ts @@ -5,15 +5,20 @@ */ import { RelationshipItem } from "./RelationshipItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity to raw schema relationship. - */ +*/ export class EntityToRawSchema { /** * Relationship entry. - */ + */ "data"?: RelationshipItem; /** @@ -32,22 +37,48 @@ export class EntityToRawSchema { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipItem", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipItem", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityToRawSchema.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityToRelatedEntities.ts b/packages/datadog-api-client-v2/models/EntityToRelatedEntities.ts index 3bcba691327f..3712c25438df 100644 --- a/packages/datadog-api-client-v2/models/EntityToRelatedEntities.ts +++ b/packages/datadog-api-client-v2/models/EntityToRelatedEntities.ts @@ -5,15 +5,20 @@ */ import { RelationshipItem } from "./RelationshipItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity to related entities relationship. - */ +*/ export class EntityToRelatedEntities { /** * Relationships. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class EntityToRelatedEntities { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityToRelatedEntities.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityToSchema.ts b/packages/datadog-api-client-v2/models/EntityToSchema.ts index 7d2e01a14f9f..d77f7c581d09 100644 --- a/packages/datadog-api-client-v2/models/EntityToSchema.ts +++ b/packages/datadog-api-client-v2/models/EntityToSchema.ts @@ -5,15 +5,20 @@ */ import { RelationshipItem } from "./RelationshipItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Entity to detail schema relationship. - */ +*/ export class EntityToSchema { /** * Relationship entry. - */ + */ "data"?: RelationshipItem; /** @@ -32,22 +37,48 @@ export class EntityToSchema { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipItem", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipItem", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityToSchema.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3.ts b/packages/datadog-api-client-v2/models/EntityV3.ts index 06d2d2f0133b..8076c568f3c4 100644 --- a/packages/datadog-api-client-v2/models/EntityV3.ts +++ b/packages/datadog-api-client-v2/models/EntityV3.ts @@ -9,16 +9,15 @@ import { EntityV3Queue } from "./EntityV3Queue"; import { EntityV3Service } from "./EntityV3Service"; import { EntityV3System } from "./EntityV3System"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Entity schema v3. - */ +*/ -export type EntityV3 = - | EntityV3Service - | EntityV3Datastore - | EntityV3Queue - | EntityV3System - | EntityV3API - | UnparsedObject; +export type EntityV3 = EntityV3Service | EntityV3Datastore | EntityV3Queue | EntityV3System | EntityV3API | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3API.ts b/packages/datadog-api-client-v2/models/EntityV3API.ts index 6866b0946cd7..3ac599514cb2 100644 --- a/packages/datadog-api-client-v2/models/EntityV3API.ts +++ b/packages/datadog-api-client-v2/models/EntityV3API.ts @@ -10,39 +10,44 @@ import { EntityV3APIVersion } from "./EntityV3APIVersion"; import { EntityV3Integrations } from "./EntityV3Integrations"; import { EntityV3Metadata } from "./EntityV3Metadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for API entities. - */ +*/ export class EntityV3API { /** * The schema version of entity type. The field is known as schema-version in the previous version. - */ + */ "apiVersion": EntityV3APIVersion; /** * Datadog product integrations for the API entity. - */ + */ "datadog"?: EntityV3APIDatadog; /** * Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * A base schema for defining third-party integrations. - */ + */ "integrations"?: EntityV3Integrations; /** * The definition of Entity V3 API Kind object. - */ + */ "kind": EntityV3APIKind; /** * The definition of Entity V3 Metadata object. - */ + */ "metadata": EntityV3Metadata; /** * The definition of Entity V3 API Spec object. - */ + */ "spec"?: EntityV3APISpec; /** @@ -54,45 +59,71 @@ export class EntityV3API { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiVersion: { - baseName: "apiVersion", - type: "EntityV3APIVersion", - required: true, - }, - datadog: { - baseName: "datadog", - type: "EntityV3APIDatadog", + "apiVersion": { + "baseName": "apiVersion", + "type": "EntityV3APIVersion", + "required": true, }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "datadog": { + "baseName": "datadog", + "type": "EntityV3APIDatadog", }, - integrations: { - baseName: "integrations", - type: "EntityV3Integrations", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - kind: { - baseName: "kind", - type: "EntityV3APIKind", - required: true, + "integrations": { + "baseName": "integrations", + "type": "EntityV3Integrations", }, - metadata: { - baseName: "metadata", - type: "EntityV3Metadata", - required: true, + "kind": { + "baseName": "kind", + "type": "EntityV3APIKind", + "required": true, }, - spec: { - baseName: "spec", - type: "EntityV3APISpec", + "metadata": { + "baseName": "metadata", + "type": "EntityV3Metadata", + "required": true, }, + "spec": { + "baseName": "spec", + "type": "EntityV3APISpec", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3API.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3APIDatadog.ts b/packages/datadog-api-client-v2/models/EntityV3APIDatadog.ts index ca505cdc9e45..ebb0ac2b2fba 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APIDatadog.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APIDatadog.ts @@ -9,31 +9,36 @@ import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem"; import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance"; import { EntityV3DatadogPipelines } from "./EntityV3DatadogPipelines"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog product integrations for the API entity. - */ +*/ export class EntityV3APIDatadog { /** * Schema for mapping source code locations to an entity. - */ + */ "codeLocations"?: Array; /** * Events associations. - */ + */ "events"?: Array; /** * Logs association. - */ + */ "logs"?: Array; /** * Performance stats association. - */ + */ "performanceData"?: EntityV3DatadogPerformance; /** * CI Pipelines association. - */ + */ "pipelines"?: EntityV3DatadogPipelines; /** @@ -45,34 +50,60 @@ export class EntityV3APIDatadog { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - codeLocations: { - baseName: "codeLocations", - type: "Array", + "codeLocations": { + "baseName": "codeLocations", + "type": "Array", }, - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - logs: { - baseName: "logs", - type: "Array", + "logs": { + "baseName": "logs", + "type": "Array", }, - performanceData: { - baseName: "performanceData", - type: "EntityV3DatadogPerformance", - }, - pipelines: { - baseName: "pipelines", - type: "EntityV3DatadogPipelines", + "performanceData": { + "baseName": "performanceData", + "type": "EntityV3DatadogPerformance", }, + "pipelines": { + "baseName": "pipelines", + "type": "EntityV3DatadogPipelines", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3APIDatadog.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3APIKind.ts b/packages/datadog-api-client-v2/models/EntityV3APIKind.ts index 79139ff5f456..8508c182ed9b 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APIKind.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APIKind.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of Entity V3 API Kind object. - */ +*/ export type EntityV3APIKind = typeof API | UnparsedObject; -export const API = "api"; +export const API = 'api'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3APISpec.ts b/packages/datadog-api-client-v2/models/EntityV3APISpec.ts index a2053b2ea23d..00d528279c91 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APISpec.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APISpec.ts @@ -5,31 +5,36 @@ */ import { EntityV3APISpecInterface } from "./EntityV3APISpecInterface"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 API Spec object. - */ +*/ export class EntityV3APISpec { /** * Services which implemented the API. - */ + */ "implementedBy"?: Array; /** * The API definition. - */ + */ "_interface"?: EntityV3APISpecInterface; /** * The lifecycle state of the component. - */ + */ "lifecycle"?: string; /** * The importance of the component. - */ + */ "tier"?: string; /** * The type of API. - */ + */ "type"?: string; /** @@ -41,34 +46,60 @@ export class EntityV3APISpec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - implementedBy: { - baseName: "implementedBy", - type: "Array", + "implementedBy": { + "baseName": "implementedBy", + "type": "Array", }, - _interface: { - baseName: "interface", - type: "EntityV3APISpecInterface", + "_interface": { + "baseName": "interface", + "type": "EntityV3APISpecInterface", }, - lifecycle: { - baseName: "lifecycle", - type: "string", + "lifecycle": { + "baseName": "lifecycle", + "type": "string", }, - tier: { - baseName: "tier", - type: "string", - }, - type: { - baseName: "type", - type: "string", + "tier": { + "baseName": "tier", + "type": "string", }, + "type": { + "baseName": "type", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3APISpec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.ts b/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.ts index 29d20e1c36e1..9f25dc41470b 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.ts @@ -6,13 +6,15 @@ import { EntityV3APISpecInterfaceDefinition } from "./EntityV3APISpecInterfaceDefinition"; import { EntityV3APISpecInterfaceFileRef } from "./EntityV3APISpecInterfaceFileRef"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The API definition. - */ +*/ -export type EntityV3APISpecInterface = - | EntityV3APISpecInterfaceFileRef - | EntityV3APISpecInterfaceDefinition - | UnparsedObject; +export type EntityV3APISpecInterface = EntityV3APISpecInterfaceFileRef | EntityV3APISpecInterfaceDefinition | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceDefinition.ts b/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceDefinition.ts index c25f2e8174db..a573255ef757 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceDefinition.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceDefinition.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `EntityV3APISpecInterfaceDefinition` object. - */ +*/ export class EntityV3APISpecInterfaceDefinition { /** * The API definition. - */ + */ "definition"?: any; /** @@ -24,18 +29,44 @@ export class EntityV3APISpecInterfaceDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "any", - }, + "definition": { + "baseName": "definition", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3APISpecInterfaceDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.ts b/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.ts index cc1e901c9f79..3de620fd8123 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `EntityV3APISpecInterfaceFileRef` object. - */ +*/ export class EntityV3APISpecInterfaceFileRef { /** * The reference to the API definition file. - */ + */ "fileRef"?: string; /** @@ -24,18 +29,44 @@ export class EntityV3APISpecInterfaceFileRef { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fileRef: { - baseName: "fileRef", - type: "string", - }, + "fileRef": { + "baseName": "fileRef", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3APISpecInterfaceFileRef.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3APIVersion.ts b/packages/datadog-api-client-v2/models/EntityV3APIVersion.ts index d9e6107638e6..e22d6b97b7f6 100644 --- a/packages/datadog-api-client-v2/models/EntityV3APIVersion.ts +++ b/packages/datadog-api-client-v2/models/EntityV3APIVersion.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The schema version of entity type. The field is known as schema-version in the previous version. - */ +*/ export type EntityV3APIVersion = typeof V3 | UnparsedObject; -export const V3 = "v3"; +export const V3 = 'v3'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogCodeLocationItem.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogCodeLocationItem.ts index 18aa10bf68c6..ffe486fbc835 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogCodeLocationItem.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogCodeLocationItem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Code location item. - */ +*/ export class EntityV3DatadogCodeLocationItem { /** * The paths (glob) to the source code of the service. - */ + */ "paths"?: Array; /** * The repository path of the source code of the entity. - */ + */ "repositoryUrl"?: string; /** @@ -28,22 +33,48 @@ export class EntityV3DatadogCodeLocationItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - paths: { - baseName: "paths", - type: "Array", - }, - repositoryUrl: { - baseName: "repositoryURL", - type: "string", + "paths": { + "baseName": "paths", + "type": "Array", }, + "repositoryUrl": { + "baseName": "repositoryURL", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogCodeLocationItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogEventItem.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogEventItem.ts index bec67c551e10..8789fdb23180 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogEventItem.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogEventItem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Events association item. - */ +*/ export class EntityV3DatadogEventItem { /** * The name of the query. - */ + */ "name"?: string; /** * The query to run. - */ + */ "query"?: string; /** @@ -28,22 +33,48 @@ export class EntityV3DatadogEventItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, + "query": { + "baseName": "query", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogEventItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationOpsgenie.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationOpsgenie.ts index e23768a72f5c..156fb9c4e648 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationOpsgenie.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationOpsgenie.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An Opsgenie integration schema. - */ +*/ export class EntityV3DatadogIntegrationOpsgenie { /** * The region for the Opsgenie integration. - */ + */ "region"?: string; /** * The service URL for the Opsgenie integration. - */ + */ "serviceUrl": string; /** @@ -28,23 +33,49 @@ export class EntityV3DatadogIntegrationOpsgenie { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - region: { - baseName: "region", - type: "string", - }, - serviceUrl: { - baseName: "serviceURL", - type: "string", - required: true, + "region": { + "baseName": "region", + "type": "string", }, + "serviceUrl": { + "baseName": "serviceURL", + "type": "string", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogIntegrationOpsgenie.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationPagerduty.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationPagerduty.ts index 6d2b319127af..be045ea42f7e 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationPagerduty.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogIntegrationPagerduty.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A PagerDuty integration schema. - */ +*/ export class EntityV3DatadogIntegrationPagerduty { /** * The service URL for the PagerDuty integration. - */ + */ "serviceUrl": string; /** @@ -24,19 +29,45 @@ export class EntityV3DatadogIntegrationPagerduty { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - serviceUrl: { - baseName: "serviceURL", - type: "string", - required: true, - }, + "serviceUrl": { + "baseName": "serviceURL", + "type": "string", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogIntegrationPagerduty.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogLogItem.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogLogItem.ts index 0295ee7f17ab..d754c35de46c 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogLogItem.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogLogItem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Log association item. - */ +*/ export class EntityV3DatadogLogItem { /** * The name of the query. - */ + */ "name"?: string; /** * The query to run. - */ + */ "query"?: string; /** @@ -28,22 +33,48 @@ export class EntityV3DatadogLogItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, + "query": { + "baseName": "query", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogLogItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogPerformance.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogPerformance.ts index de00e6388ef6..ebcdf2240ea9 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogPerformance.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogPerformance.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Performance stats association. - */ +*/ export class EntityV3DatadogPerformance { /** * A list of APM entity tags that associates the APM Stats data with the entity. - */ + */ "tags"?: Array; /** @@ -24,18 +29,44 @@ export class EntityV3DatadogPerformance { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tags: { - baseName: "tags", - type: "Array", - }, + "tags": { + "baseName": "tags", + "type": "Array", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogPerformance.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatadogPipelines.ts b/packages/datadog-api-client-v2/models/EntityV3DatadogPipelines.ts index ee92aac35b90..09ba33479c00 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatadogPipelines.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatadogPipelines.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * CI Pipelines association. - */ +*/ export class EntityV3DatadogPipelines { /** * A list of CI Fingerprints that associate CI Pipelines with the entity. - */ + */ "fingerprints"?: Array; /** @@ -24,18 +29,44 @@ export class EntityV3DatadogPipelines { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fingerprints: { - baseName: "fingerprints", - type: "Array", - }, + "fingerprints": { + "baseName": "fingerprints", + "type": "Array", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatadogPipelines.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3Datastore.ts b/packages/datadog-api-client-v2/models/EntityV3Datastore.ts index eb798158a6e7..ac01824a2b76 100644 --- a/packages/datadog-api-client-v2/models/EntityV3Datastore.ts +++ b/packages/datadog-api-client-v2/models/EntityV3Datastore.ts @@ -10,39 +10,44 @@ import { EntityV3DatastoreSpec } from "./EntityV3DatastoreSpec"; import { EntityV3Integrations } from "./EntityV3Integrations"; import { EntityV3Metadata } from "./EntityV3Metadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for datastore entities. - */ +*/ export class EntityV3Datastore { /** * The schema version of entity type. The field is known as schema-version in the previous version. - */ + */ "apiVersion": EntityV3APIVersion; /** * Datadog product integrations for the datastore entity. - */ + */ "datadog"?: EntityV3DatastoreDatadog; /** * Custom extensions. This is the free-formed field to send client side metadata. No Datadog features are affected by this field. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * A base schema for defining third-party integrations. - */ + */ "integrations"?: EntityV3Integrations; /** * The definition of Entity V3 Datastore Kind object. - */ + */ "kind": EntityV3DatastoreKind; /** * The definition of Entity V3 Metadata object. - */ + */ "metadata": EntityV3Metadata; /** * The definition of Entity V3 Datastore Spec object. - */ + */ "spec"?: EntityV3DatastoreSpec; /** @@ -54,45 +59,71 @@ export class EntityV3Datastore { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiVersion: { - baseName: "apiVersion", - type: "EntityV3APIVersion", - required: true, - }, - datadog: { - baseName: "datadog", - type: "EntityV3DatastoreDatadog", + "apiVersion": { + "baseName": "apiVersion", + "type": "EntityV3APIVersion", + "required": true, }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "datadog": { + "baseName": "datadog", + "type": "EntityV3DatastoreDatadog", }, - integrations: { - baseName: "integrations", - type: "EntityV3Integrations", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - kind: { - baseName: "kind", - type: "EntityV3DatastoreKind", - required: true, + "integrations": { + "baseName": "integrations", + "type": "EntityV3Integrations", }, - metadata: { - baseName: "metadata", - type: "EntityV3Metadata", - required: true, + "kind": { + "baseName": "kind", + "type": "EntityV3DatastoreKind", + "required": true, }, - spec: { - baseName: "spec", - type: "EntityV3DatastoreSpec", + "metadata": { + "baseName": "metadata", + "type": "EntityV3Metadata", + "required": true, }, + "spec": { + "baseName": "spec", + "type": "EntityV3DatastoreSpec", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3Datastore.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatastoreDatadog.ts b/packages/datadog-api-client-v2/models/EntityV3DatastoreDatadog.ts index 61fe49f69967..722c0d122756 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatastoreDatadog.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatastoreDatadog.ts @@ -7,23 +7,28 @@ import { EntityV3DatadogEventItem } from "./EntityV3DatadogEventItem"; import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem"; import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog product integrations for the datastore entity. - */ +*/ export class EntityV3DatastoreDatadog { /** * Events associations. - */ + */ "events"?: Array; /** * Logs association. - */ + */ "logs"?: Array; /** * Performance stats association. - */ + */ "performanceData"?: EntityV3DatadogPerformance; /** @@ -35,26 +40,52 @@ export class EntityV3DatastoreDatadog { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", - }, - logs: { - baseName: "logs", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - performanceData: { - baseName: "performanceData", - type: "EntityV3DatadogPerformance", + "logs": { + "baseName": "logs", + "type": "Array", }, + "performanceData": { + "baseName": "performanceData", + "type": "EntityV3DatadogPerformance", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatastoreDatadog.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3DatastoreKind.ts b/packages/datadog-api-client-v2/models/EntityV3DatastoreKind.ts index f48186072c2c..894b683e9377 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatastoreKind.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatastoreKind.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of Entity V3 Datastore Kind object. - */ +*/ export type EntityV3DatastoreKind = typeof DATASTORE | UnparsedObject; -export const DATASTORE = "datastore"; +export const DATASTORE = 'datastore'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3DatastoreSpec.ts b/packages/datadog-api-client-v2/models/EntityV3DatastoreSpec.ts index 2454b2d22dd4..e3e280be65cd 100644 --- a/packages/datadog-api-client-v2/models/EntityV3DatastoreSpec.ts +++ b/packages/datadog-api-client-v2/models/EntityV3DatastoreSpec.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Datastore Spec object. - */ +*/ export class EntityV3DatastoreSpec { /** * The lifecycle state of the datastore. - */ + */ "lifecycle"?: string; /** * The importance of the datastore. - */ + */ "tier"?: string; /** * The type of datastore. - */ + */ "type"?: string; /** @@ -32,26 +37,52 @@ export class EntityV3DatastoreSpec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lifecycle: { - baseName: "lifecycle", - type: "string", - }, - tier: { - baseName: "tier", - type: "string", + "lifecycle": { + "baseName": "lifecycle", + "type": "string", }, - type: { - baseName: "type", - type: "string", + "tier": { + "baseName": "tier", + "type": "string", }, + "type": { + "baseName": "type", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3DatastoreSpec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3Integrations.ts b/packages/datadog-api-client-v2/models/EntityV3Integrations.ts index 3446dabf3965..f3b311a10a5d 100644 --- a/packages/datadog-api-client-v2/models/EntityV3Integrations.ts +++ b/packages/datadog-api-client-v2/models/EntityV3Integrations.ts @@ -6,19 +6,24 @@ import { EntityV3DatadogIntegrationOpsgenie } from "./EntityV3DatadogIntegrationOpsgenie"; import { EntityV3DatadogIntegrationPagerduty } from "./EntityV3DatadogIntegrationPagerduty"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A base schema for defining third-party integrations. - */ +*/ export class EntityV3Integrations { /** * An Opsgenie integration schema. - */ + */ "opsgenie"?: EntityV3DatadogIntegrationOpsgenie; /** * A PagerDuty integration schema. - */ + */ "pagerduty"?: EntityV3DatadogIntegrationPagerduty; /** @@ -30,22 +35,48 @@ export class EntityV3Integrations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - opsgenie: { - baseName: "opsgenie", - type: "EntityV3DatadogIntegrationOpsgenie", - }, - pagerduty: { - baseName: "pagerduty", - type: "EntityV3DatadogIntegrationPagerduty", + "opsgenie": { + "baseName": "opsgenie", + "type": "EntityV3DatadogIntegrationOpsgenie", }, + "pagerduty": { + "baseName": "pagerduty", + "type": "EntityV3DatadogIntegrationPagerduty", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3Integrations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3Metadata.ts b/packages/datadog-api-client-v2/models/EntityV3Metadata.ts index da720df1ea8c..f7652d421101 100644 --- a/packages/datadog-api-client-v2/models/EntityV3Metadata.ts +++ b/packages/datadog-api-client-v2/models/EntityV3Metadata.ts @@ -7,59 +7,64 @@ import { EntityV3MetadataAdditionalOwnersItems } from "./EntityV3MetadataAdditio import { EntityV3MetadataContactsItems } from "./EntityV3MetadataContactsItems"; import { EntityV3MetadataLinksItems } from "./EntityV3MetadataLinksItems"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Metadata object. - */ +*/ export class EntityV3Metadata { /** * The additional owners of the entity, usually a team. - */ + */ "additionalOwners"?: Array; /** * A list of contacts for the entity. - */ + */ "contacts"?: Array; /** * Short description of the entity. The UI can leverage the description for display. - */ + */ "description"?: string; /** * User friendly name of the entity. The UI can leverage the display name for display. - */ + */ "displayName"?: string; /** * A read-only globally unique identifier for the entity generated by Datadog. User supplied values are ignored. - */ + */ "id"?: string; /** * The entity reference from which to inherit metadata - */ + */ "inheritFrom"?: string; /** * A list of links for the entity. - */ + */ "links"?: Array; /** * A read-only set of Datadog managed attributes generated by Datadog. User supplied values are ignored. - */ - "managed"?: { [key: string]: any }; + */ + "managed"?: { [key: string]: any; }; /** * Unique name given to an entity under the kind/namespace. - */ + */ "name": string; /** * Namespace is a part of unique identifier. It has a default value of 'default'. - */ + */ "namespace"?: string; /** * The owner of the entity, usually a team. - */ + */ "owner"?: string; /** * A set of custom tags. - */ + */ "tags"?: Array; /** @@ -71,63 +76,89 @@ export class EntityV3Metadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - additionalOwners: { - baseName: "additionalOwners", - type: "Array", + "additionalOwners": { + "baseName": "additionalOwners", + "type": "Array", }, - contacts: { - baseName: "contacts", - type: "Array", + "contacts": { + "baseName": "contacts", + "type": "Array", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - displayName: { - baseName: "displayName", - type: "string", + "displayName": { + "baseName": "displayName", + "type": "string", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - inheritFrom: { - baseName: "inheritFrom", - type: "string", + "inheritFrom": { + "baseName": "inheritFrom", + "type": "string", }, - links: { - baseName: "links", - type: "Array", + "links": { + "baseName": "links", + "type": "Array", }, - managed: { - baseName: "managed", - type: "{ [key: string]: any; }", + "managed": { + "baseName": "managed", + "type": "{ [key: string]: any; }", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - namespace: { - baseName: "namespace", - type: "string", + "namespace": { + "baseName": "namespace", + "type": "string", }, - owner: { - baseName: "owner", - type: "string", - }, - tags: { - baseName: "tags", - type: "Array", + "owner": { + "baseName": "owner", + "type": "string", }, + "tags": { + "baseName": "tags", + "type": "Array", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3Metadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3MetadataAdditionalOwnersItems.ts b/packages/datadog-api-client-v2/models/EntityV3MetadataAdditionalOwnersItems.ts index ff4ac0ba8301..6ea84bc0b283 100644 --- a/packages/datadog-api-client-v2/models/EntityV3MetadataAdditionalOwnersItems.ts +++ b/packages/datadog-api-client-v2/models/EntityV3MetadataAdditionalOwnersItems.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Metadata Additional Owners Items object. - */ +*/ export class EntityV3MetadataAdditionalOwnersItems { /** * Team name. - */ + */ "name": string; /** * Team type. - */ + */ "type"?: string; /** @@ -35,27 +40,53 @@ export class EntityV3MetadataAdditionalOwnersItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3MetadataAdditionalOwnersItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3MetadataContactsItems.ts b/packages/datadog-api-client-v2/models/EntityV3MetadataContactsItems.ts index cd3fcfc90186..6547dc5c0b2f 100644 --- a/packages/datadog-api-client-v2/models/EntityV3MetadataContactsItems.ts +++ b/packages/datadog-api-client-v2/models/EntityV3MetadataContactsItems.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Metadata Contacts Items object. - */ +*/ export class EntityV3MetadataContactsItems { /** * Contact value. - */ + */ "contact": string; /** * Contact name. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": string; /** @@ -32,28 +37,54 @@ export class EntityV3MetadataContactsItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, + "type": { + "baseName": "type", + "type": "string", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3MetadataContactsItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3MetadataLinksItems.ts b/packages/datadog-api-client-v2/models/EntityV3MetadataLinksItems.ts index d6c8984418e5..d84b5d851f6b 100644 --- a/packages/datadog-api-client-v2/models/EntityV3MetadataLinksItems.ts +++ b/packages/datadog-api-client-v2/models/EntityV3MetadataLinksItems.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Metadata Links Items object. - */ +*/ export class EntityV3MetadataLinksItems { /** * Link name. - */ + */ "name": string; /** * Link provider. - */ + */ "provider"?: string; /** * Link type. - */ + */ "type": string; /** * Link URL. - */ + */ "url": string; /** @@ -36,33 +41,59 @@ export class EntityV3MetadataLinksItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - provider: { - baseName: "provider", - type: "string", + "provider": { + "baseName": "provider", + "type": "string", }, - type: { - baseName: "type", - type: "string", - required: true, - }, - url: { - baseName: "url", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "url": { + "baseName": "url", + "type": "string", + "required": true, + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3MetadataLinksItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3Queue.ts b/packages/datadog-api-client-v2/models/EntityV3Queue.ts index 148b928a7505..43f4f54b7cf3 100644 --- a/packages/datadog-api-client-v2/models/EntityV3Queue.ts +++ b/packages/datadog-api-client-v2/models/EntityV3Queue.ts @@ -10,39 +10,44 @@ import { EntityV3QueueDatadog } from "./EntityV3QueueDatadog"; import { EntityV3QueueKind } from "./EntityV3QueueKind"; import { EntityV3QueueSpec } from "./EntityV3QueueSpec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for queue entities. - */ +*/ export class EntityV3Queue { /** * The schema version of entity type. The field is known as schema-version in the previous version. - */ + */ "apiVersion": EntityV3APIVersion; /** * Datadog product integrations for the datastore entity. - */ + */ "datadog"?: EntityV3QueueDatadog; /** * Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * A base schema for defining third-party integrations. - */ + */ "integrations"?: EntityV3Integrations; /** * The definition of Entity V3 Queue Kind object. - */ + */ "kind": EntityV3QueueKind; /** * The definition of Entity V3 Metadata object. - */ + */ "metadata": EntityV3Metadata; /** * The definition of Entity V3 Queue Spec object. - */ + */ "spec"?: EntityV3QueueSpec; /** @@ -54,45 +59,71 @@ export class EntityV3Queue { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiVersion: { - baseName: "apiVersion", - type: "EntityV3APIVersion", - required: true, - }, - datadog: { - baseName: "datadog", - type: "EntityV3QueueDatadog", + "apiVersion": { + "baseName": "apiVersion", + "type": "EntityV3APIVersion", + "required": true, }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "datadog": { + "baseName": "datadog", + "type": "EntityV3QueueDatadog", }, - integrations: { - baseName: "integrations", - type: "EntityV3Integrations", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - kind: { - baseName: "kind", - type: "EntityV3QueueKind", - required: true, + "integrations": { + "baseName": "integrations", + "type": "EntityV3Integrations", }, - metadata: { - baseName: "metadata", - type: "EntityV3Metadata", - required: true, + "kind": { + "baseName": "kind", + "type": "EntityV3QueueKind", + "required": true, }, - spec: { - baseName: "spec", - type: "EntityV3QueueSpec", + "metadata": { + "baseName": "metadata", + "type": "EntityV3Metadata", + "required": true, }, + "spec": { + "baseName": "spec", + "type": "EntityV3QueueSpec", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3Queue.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3QueueDatadog.ts b/packages/datadog-api-client-v2/models/EntityV3QueueDatadog.ts index 0daaa6b35412..14b2d517236c 100644 --- a/packages/datadog-api-client-v2/models/EntityV3QueueDatadog.ts +++ b/packages/datadog-api-client-v2/models/EntityV3QueueDatadog.ts @@ -7,23 +7,28 @@ import { EntityV3DatadogEventItem } from "./EntityV3DatadogEventItem"; import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem"; import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog product integrations for the datastore entity. - */ +*/ export class EntityV3QueueDatadog { /** * Events associations. - */ + */ "events"?: Array; /** * Logs association. - */ + */ "logs"?: Array; /** * Performance stats association. - */ + */ "performanceData"?: EntityV3DatadogPerformance; /** @@ -35,26 +40,52 @@ export class EntityV3QueueDatadog { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", - }, - logs: { - baseName: "logs", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - performanceData: { - baseName: "performanceData", - type: "EntityV3DatadogPerformance", + "logs": { + "baseName": "logs", + "type": "Array", }, + "performanceData": { + "baseName": "performanceData", + "type": "EntityV3DatadogPerformance", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3QueueDatadog.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3QueueKind.ts b/packages/datadog-api-client-v2/models/EntityV3QueueKind.ts index 84e7a8defd23..8bfded38d192 100644 --- a/packages/datadog-api-client-v2/models/EntityV3QueueKind.ts +++ b/packages/datadog-api-client-v2/models/EntityV3QueueKind.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of Entity V3 Queue Kind object. - */ +*/ export type EntityV3QueueKind = typeof QUEUE | UnparsedObject; -export const QUEUE = "queue"; +export const QUEUE = 'queue'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3QueueSpec.ts b/packages/datadog-api-client-v2/models/EntityV3QueueSpec.ts index 4227218e14e9..126c2446d993 100644 --- a/packages/datadog-api-client-v2/models/EntityV3QueueSpec.ts +++ b/packages/datadog-api-client-v2/models/EntityV3QueueSpec.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Queue Spec object. - */ +*/ export class EntityV3QueueSpec { /** * The lifecycle state of the queue. - */ + */ "lifecycle"?: string; /** * The importance of the queue. - */ + */ "tier"?: string; /** * The type of queue. - */ + */ "type"?: string; /** @@ -32,26 +37,52 @@ export class EntityV3QueueSpec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lifecycle: { - baseName: "lifecycle", - type: "string", - }, - tier: { - baseName: "tier", - type: "string", + "lifecycle": { + "baseName": "lifecycle", + "type": "string", }, - type: { - baseName: "type", - type: "string", + "tier": { + "baseName": "tier", + "type": "string", }, + "type": { + "baseName": "type", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3QueueSpec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3Service.ts b/packages/datadog-api-client-v2/models/EntityV3Service.ts index 42fc4aa5776e..a3f99feffc3d 100644 --- a/packages/datadog-api-client-v2/models/EntityV3Service.ts +++ b/packages/datadog-api-client-v2/models/EntityV3Service.ts @@ -10,39 +10,44 @@ import { EntityV3ServiceDatadog } from "./EntityV3ServiceDatadog"; import { EntityV3ServiceKind } from "./EntityV3ServiceKind"; import { EntityV3ServiceSpec } from "./EntityV3ServiceSpec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for service entities. - */ +*/ export class EntityV3Service { /** * The schema version of entity type. The field is known as schema-version in the previous version. - */ + */ "apiVersion": EntityV3APIVersion; /** * Datadog product integrations for the service entity. - */ + */ "datadog"?: EntityV3ServiceDatadog; /** * Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * A base schema for defining third-party integrations. - */ + */ "integrations"?: EntityV3Integrations; /** * The definition of Entity V3 Service Kind object. - */ + */ "kind": EntityV3ServiceKind; /** * The definition of Entity V3 Metadata object. - */ + */ "metadata": EntityV3Metadata; /** * The definition of Entity V3 Service Spec object. - */ + */ "spec"?: EntityV3ServiceSpec; /** @@ -54,45 +59,71 @@ export class EntityV3Service { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiVersion: { - baseName: "apiVersion", - type: "EntityV3APIVersion", - required: true, - }, - datadog: { - baseName: "datadog", - type: "EntityV3ServiceDatadog", + "apiVersion": { + "baseName": "apiVersion", + "type": "EntityV3APIVersion", + "required": true, }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "datadog": { + "baseName": "datadog", + "type": "EntityV3ServiceDatadog", }, - integrations: { - baseName: "integrations", - type: "EntityV3Integrations", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - kind: { - baseName: "kind", - type: "EntityV3ServiceKind", - required: true, + "integrations": { + "baseName": "integrations", + "type": "EntityV3Integrations", }, - metadata: { - baseName: "metadata", - type: "EntityV3Metadata", - required: true, + "kind": { + "baseName": "kind", + "type": "EntityV3ServiceKind", + "required": true, }, - spec: { - baseName: "spec", - type: "EntityV3ServiceSpec", + "metadata": { + "baseName": "metadata", + "type": "EntityV3Metadata", + "required": true, }, + "spec": { + "baseName": "spec", + "type": "EntityV3ServiceSpec", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3Service.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3ServiceDatadog.ts b/packages/datadog-api-client-v2/models/EntityV3ServiceDatadog.ts index 7d686a9f5110..3a5d31b5e828 100644 --- a/packages/datadog-api-client-v2/models/EntityV3ServiceDatadog.ts +++ b/packages/datadog-api-client-v2/models/EntityV3ServiceDatadog.ts @@ -9,31 +9,36 @@ import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem"; import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance"; import { EntityV3DatadogPipelines } from "./EntityV3DatadogPipelines"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog product integrations for the service entity. - */ +*/ export class EntityV3ServiceDatadog { /** * Schema for mapping source code locations to an entity. - */ + */ "codeLocations"?: Array; /** * Events associations. - */ + */ "events"?: Array; /** * Logs association. - */ + */ "logs"?: Array; /** * Performance stats association. - */ + */ "performanceData"?: EntityV3DatadogPerformance; /** * CI Pipelines association. - */ + */ "pipelines"?: EntityV3DatadogPipelines; /** @@ -45,34 +50,60 @@ export class EntityV3ServiceDatadog { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - codeLocations: { - baseName: "codeLocations", - type: "Array", + "codeLocations": { + "baseName": "codeLocations", + "type": "Array", }, - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - logs: { - baseName: "logs", - type: "Array", + "logs": { + "baseName": "logs", + "type": "Array", }, - performanceData: { - baseName: "performanceData", - type: "EntityV3DatadogPerformance", - }, - pipelines: { - baseName: "pipelines", - type: "EntityV3DatadogPipelines", + "performanceData": { + "baseName": "performanceData", + "type": "EntityV3DatadogPerformance", }, + "pipelines": { + "baseName": "pipelines", + "type": "EntityV3DatadogPipelines", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3ServiceDatadog.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3ServiceKind.ts b/packages/datadog-api-client-v2/models/EntityV3ServiceKind.ts index 2dfe6ccb20d3..731cafde47a3 100644 --- a/packages/datadog-api-client-v2/models/EntityV3ServiceKind.ts +++ b/packages/datadog-api-client-v2/models/EntityV3ServiceKind.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of Entity V3 Service Kind object. - */ +*/ export type EntityV3ServiceKind = typeof SERVICE | UnparsedObject; -export const SERVICE = "service"; +export const SERVICE = 'service'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3ServiceSpec.ts b/packages/datadog-api-client-v2/models/EntityV3ServiceSpec.ts index dd6599d73ce7..0f930edd2210 100644 --- a/packages/datadog-api-client-v2/models/EntityV3ServiceSpec.ts +++ b/packages/datadog-api-client-v2/models/EntityV3ServiceSpec.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 Service Spec object. - */ +*/ export class EntityV3ServiceSpec { /** * A list of components the service depends on. - */ + */ "dependsOn"?: Array; /** * The service's programming language. - */ + */ "languages"?: Array; /** * The lifecycle state of the component. - */ + */ "lifecycle"?: string; /** * The importance of the component. - */ + */ "tier"?: string; /** * The type of service. - */ + */ "type"?: string; /** @@ -40,34 +45,60 @@ export class EntityV3ServiceSpec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dependsOn: { - baseName: "dependsOn", - type: "Array", + "dependsOn": { + "baseName": "dependsOn", + "type": "Array", }, - languages: { - baseName: "languages", - type: "Array", + "languages": { + "baseName": "languages", + "type": "Array", }, - lifecycle: { - baseName: "lifecycle", - type: "string", + "lifecycle": { + "baseName": "lifecycle", + "type": "string", }, - tier: { - baseName: "tier", - type: "string", - }, - type: { - baseName: "type", - type: "string", + "tier": { + "baseName": "tier", + "type": "string", }, + "type": { + "baseName": "type", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3ServiceSpec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3System.ts b/packages/datadog-api-client-v2/models/EntityV3System.ts index 5a79ef28d30e..0afd579b3988 100644 --- a/packages/datadog-api-client-v2/models/EntityV3System.ts +++ b/packages/datadog-api-client-v2/models/EntityV3System.ts @@ -10,39 +10,44 @@ import { EntityV3SystemDatadog } from "./EntityV3SystemDatadog"; import { EntityV3SystemKind } from "./EntityV3SystemKind"; import { EntityV3SystemSpec } from "./EntityV3SystemSpec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for system entities. - */ +*/ export class EntityV3System { /** * The schema version of entity type. The field is known as schema-version in the previous version. - */ + */ "apiVersion": EntityV3APIVersion; /** * Datadog product integrations for the service entity. - */ + */ "datadog"?: EntityV3SystemDatadog; /** * Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * A base schema for defining third-party integrations. - */ + */ "integrations"?: EntityV3Integrations; /** * The definition of Entity V3 System Kind object. - */ + */ "kind": EntityV3SystemKind; /** * The definition of Entity V3 Metadata object. - */ + */ "metadata": EntityV3Metadata; /** * The definition of Entity V3 System Spec object. - */ + */ "spec"?: EntityV3SystemSpec; /** @@ -54,45 +59,71 @@ export class EntityV3System { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiVersion: { - baseName: "apiVersion", - type: "EntityV3APIVersion", - required: true, - }, - datadog: { - baseName: "datadog", - type: "EntityV3SystemDatadog", + "apiVersion": { + "baseName": "apiVersion", + "type": "EntityV3APIVersion", + "required": true, }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "datadog": { + "baseName": "datadog", + "type": "EntityV3SystemDatadog", }, - integrations: { - baseName: "integrations", - type: "EntityV3Integrations", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - kind: { - baseName: "kind", - type: "EntityV3SystemKind", - required: true, + "integrations": { + "baseName": "integrations", + "type": "EntityV3Integrations", }, - metadata: { - baseName: "metadata", - type: "EntityV3Metadata", - required: true, + "kind": { + "baseName": "kind", + "type": "EntityV3SystemKind", + "required": true, }, - spec: { - baseName: "spec", - type: "EntityV3SystemSpec", + "metadata": { + "baseName": "metadata", + "type": "EntityV3Metadata", + "required": true, }, + "spec": { + "baseName": "spec", + "type": "EntityV3SystemSpec", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3System.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3SystemDatadog.ts b/packages/datadog-api-client-v2/models/EntityV3SystemDatadog.ts index 0704f803d2cb..4256618717a9 100644 --- a/packages/datadog-api-client-v2/models/EntityV3SystemDatadog.ts +++ b/packages/datadog-api-client-v2/models/EntityV3SystemDatadog.ts @@ -8,27 +8,32 @@ import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem"; import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance"; import { EntityV3DatadogPipelines } from "./EntityV3DatadogPipelines"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog product integrations for the service entity. - */ +*/ export class EntityV3SystemDatadog { /** * Events associations. - */ + */ "events"?: Array; /** * Logs association. - */ + */ "logs"?: Array; /** * Performance stats association. - */ + */ "performanceData"?: EntityV3DatadogPerformance; /** * CI Pipelines association. - */ + */ "pipelines"?: EntityV3DatadogPipelines; /** @@ -40,30 +45,56 @@ export class EntityV3SystemDatadog { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - events: { - baseName: "events", - type: "Array", + "events": { + "baseName": "events", + "type": "Array", }, - logs: { - baseName: "logs", - type: "Array", + "logs": { + "baseName": "logs", + "type": "Array", }, - performanceData: { - baseName: "performanceData", - type: "EntityV3DatadogPerformance", - }, - pipelines: { - baseName: "pipelines", - type: "EntityV3DatadogPipelines", + "performanceData": { + "baseName": "performanceData", + "type": "EntityV3DatadogPerformance", }, + "pipelines": { + "baseName": "pipelines", + "type": "EntityV3DatadogPipelines", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3SystemDatadog.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EntityV3SystemKind.ts b/packages/datadog-api-client-v2/models/EntityV3SystemKind.ts index a730e57d9c38..c9e035449978 100644 --- a/packages/datadog-api-client-v2/models/EntityV3SystemKind.ts +++ b/packages/datadog-api-client-v2/models/EntityV3SystemKind.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of Entity V3 System Kind object. - */ +*/ export type EntityV3SystemKind = typeof SYSTEM | UnparsedObject; -export const SYSTEM = "system"; +export const SYSTEM = 'system'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EntityV3SystemSpec.ts b/packages/datadog-api-client-v2/models/EntityV3SystemSpec.ts index ddb6f6a779d5..89f7b5d560b4 100644 --- a/packages/datadog-api-client-v2/models/EntityV3SystemSpec.ts +++ b/packages/datadog-api-client-v2/models/EntityV3SystemSpec.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of Entity V3 System Spec object. - */ +*/ export class EntityV3SystemSpec { /** * A list of components belongs to the system. - */ + */ "components"?: Array; /** * The lifecycle state of the component. - */ + */ "lifecycle"?: string; /** * An entity reference to the owner of the component. - */ + */ "tier"?: string; /** @@ -32,26 +37,52 @@ export class EntityV3SystemSpec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - components: { - baseName: "components", - type: "Array", - }, - lifecycle: { - baseName: "lifecycle", - type: "string", + "components": { + "baseName": "components", + "type": "Array", }, - tier: { - baseName: "tier", - type: "string", + "lifecycle": { + "baseName": "lifecycle", + "type": "string", }, + "tier": { + "baseName": "tier", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EntityV3SystemSpec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ErrorHandler.ts b/packages/datadog-api-client-v2/models/ErrorHandler.ts index f1f0763f62c3..5ccc63550359 100644 --- a/packages/datadog-api-client-v2/models/ErrorHandler.ts +++ b/packages/datadog-api-client-v2/models/ErrorHandler.ts @@ -5,19 +5,24 @@ */ import { RetryStrategy } from "./RetryStrategy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to handle errors in an action. - */ +*/ export class ErrorHandler { /** * The `ErrorHandler` `fallbackStepName`. - */ + */ "fallbackStepName": string; /** * The definition of `RetryStrategy` object. - */ + */ "retryStrategy": RetryStrategy; /** @@ -36,28 +41,54 @@ export class ErrorHandler { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fallbackStepName: { - baseName: "fallbackStepName", - type: "string", - required: true, + "fallbackStepName": { + "baseName": "fallbackStepName", + "type": "string", + "required": true, }, - retryStrategy: { - baseName: "retryStrategy", - type: "RetryStrategy", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "retryStrategy": { + "baseName": "retryStrategy", + "type": "RetryStrategy", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ErrorHandler.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Event.ts b/packages/datadog-api-client-v2/models/Event.ts index e9aeac9eae51..9d878d9467ef 100644 --- a/packages/datadog-api-client-v2/models/Event.ts +++ b/packages/datadog-api-client-v2/models/Event.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class Event { /** * Event ID. - */ + */ "id"?: string; /** * The event name. - */ + */ "name"?: string; /** * Event source ID. - */ + */ "sourceId"?: number; /** * Event type. - */ + */ "type"?: string; /** @@ -43,35 +48,61 @@ export class Event { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - sourceId: { - baseName: "source_id", - type: "number", - format: "int64", + "sourceId": { + "baseName": "source_id", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Event.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventAttributes.ts b/packages/datadog-api-client-v2/models/EventAttributes.ts index dacbb8358f9b..c9d3c340c810 100644 --- a/packages/datadog-api-client-v2/models/EventAttributes.ts +++ b/packages/datadog-api-client-v2/models/EventAttributes.ts @@ -8,93 +8,98 @@ import { EventPriority } from "./EventPriority"; import { EventStatusType } from "./EventStatusType"; import { MonitorType } from "./MonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of attributes from your event. - */ +*/ export class EventAttributes { /** * Aggregation key of the event. - */ + */ "aggregationKey"?: string; /** * POSIX timestamp of the event. Must be sent as an integer (no quotation marks). * Limited to events no older than 18 hours. - */ + */ "dateHappened"?: number; /** * A device name. - */ + */ "deviceName"?: string; /** * The duration between the triggering of the event and its recovery in nanoseconds. - */ + */ "duration"?: number; /** * The event title. - */ + */ "eventObject"?: string; /** * The metadata associated with a request. - */ + */ "evt"?: Event; /** * Host name to associate with the event. * Any tags associated with the host are also applied to this event. - */ + */ "hostname"?: string; /** * Attributes from the monitor that triggered the event. - */ + */ "monitor"?: MonitorType; /** * List of groups referred to in the event. - */ + */ "monitorGroups"?: Array; /** * ID of the monitor that triggered the event. When an event isn't related to a monitor, this field is empty. - */ + */ "monitorId"?: number; /** * The priority of the event's monitor. For example, `normal` or `low`. - */ + */ "priority"?: EventPriority; /** * Related event ID. - */ + */ "relatedEventId"?: number; /** * Service that triggered the event. - */ + */ "service"?: string; /** * The type of event being posted. * For example, `nagios`, `hudson`, `jenkins`, `my_apps`, `chef`, `puppet`, `git` or `bitbucket`. * The list of standard source attribute values is [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). - */ + */ "sourceTypeName"?: string; /** * Identifier for the source of the event, such as a monitor alert, an externally-submitted event, or an integration. - */ + */ "sourcecategory"?: string; /** * If an alert event is enabled, its status is one of the following: * `failure`, `error`, `warning`, `info`, `success`, `user_update`, * `recommendation`, or `snapshot`. - */ + */ "status"?: EventStatusType; /** * A list of tags to apply to the event. - */ + */ "tags"?: Array; /** * POSIX timestamp of your event in milliseconds. - */ + */ "timestamp"?: number; /** * The event title. - */ + */ "title"?: string; /** @@ -113,99 +118,125 @@ export class EventAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationKey: { - baseName: "aggregation_key", - type: "string", - }, - dateHappened: { - baseName: "date_happened", - type: "number", - format: "int64", - }, - deviceName: { - baseName: "device_name", - type: "string", - }, - duration: { - baseName: "duration", - type: "number", - format: "int64", - }, - eventObject: { - baseName: "event_object", - type: "string", - }, - evt: { - baseName: "evt", - type: "Event", - }, - hostname: { - baseName: "hostname", - type: "string", - }, - monitor: { - baseName: "monitor", - type: "MonitorType", - }, - monitorGroups: { - baseName: "monitor_groups", - type: "Array", - }, - monitorId: { - baseName: "monitor_id", - type: "number", - format: "int64", - }, - priority: { - baseName: "priority", - type: "EventPriority", - }, - relatedEventId: { - baseName: "related_event_id", - type: "number", - format: "int64", - }, - service: { - baseName: "service", - type: "string", - }, - sourceTypeName: { - baseName: "source_type_name", - type: "string", - }, - sourcecategory: { - baseName: "sourcecategory", - type: "string", - }, - status: { - baseName: "status", - type: "EventStatusType", - }, - tags: { - baseName: "tags", - type: "Array", - }, - timestamp: { - baseName: "timestamp", - type: "number", - format: "int64", - }, - title: { - baseName: "title", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "aggregationKey": { + "baseName": "aggregation_key", + "type": "string", + }, + "dateHappened": { + "baseName": "date_happened", + "type": "number", + "format": "int64", + }, + "deviceName": { + "baseName": "device_name", + "type": "string", + }, + "duration": { + "baseName": "duration", + "type": "number", + "format": "int64", + }, + "eventObject": { + "baseName": "event_object", + "type": "string", + }, + "evt": { + "baseName": "evt", + "type": "Event", + }, + "hostname": { + "baseName": "hostname", + "type": "string", + }, + "monitor": { + "baseName": "monitor", + "type": "MonitorType", + }, + "monitorGroups": { + "baseName": "monitor_groups", + "type": "Array", + }, + "monitorId": { + "baseName": "monitor_id", + "type": "number", + "format": "int64", + }, + "priority": { + "baseName": "priority", + "type": "EventPriority", + }, + "relatedEventId": { + "baseName": "related_event_id", + "type": "number", + "format": "int64", + }, + "service": { + "baseName": "service", + "type": "string", + }, + "sourceTypeName": { + "baseName": "source_type_name", + "type": "string", + }, + "sourcecategory": { + "baseName": "sourcecategory", + "type": "string", + }, + "status": { + "baseName": "status", + "type": "EventStatusType", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "timestamp": { + "baseName": "timestamp", + "type": "number", + "format": "int64", + }, + "title": { + "baseName": "title", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCategory.ts b/packages/datadog-api-client-v2/models/EventCategory.ts index 2b1796fd87d6..b7d182b3fed4 100644 --- a/packages/datadog-api-client-v2/models/EventCategory.ts +++ b/packages/datadog-api-client-v2/models/EventCategory.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Event category to identify the type of event. Only the value `change` is supported. Support for other categories are coming. please reach out to datadog support if you're interested. - */ +*/ export type EventCategory = typeof CHANGE | UnparsedObject; -export const CHANGE = "change"; +export const CHANGE = 'change'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventCreateRequest.ts b/packages/datadog-api-client-v2/models/EventCreateRequest.ts index 45945e5315ae..38997d7c8161 100644 --- a/packages/datadog-api-client-v2/models/EventCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/EventCreateRequest.ts @@ -6,19 +6,24 @@ import { EventCreateRequestType } from "./EventCreateRequestType"; import { EventPayload } from "./EventPayload"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing an event creation request. - */ +*/ export class EventCreateRequest { /** * Event attributes. - */ + */ "attributes"?: EventPayload; /** * Entity type. - */ + */ "type"?: EventCreateRequestType; /** @@ -37,26 +42,52 @@ export class EventCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EventPayload", + "attributes": { + "baseName": "attributes", + "type": "EventPayload", }, - type: { - baseName: "type", - type: "EventCreateRequestType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EventCreateRequestType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCreateRequestPayload.ts b/packages/datadog-api-client-v2/models/EventCreateRequestPayload.ts index 74d64c448c88..671573c71525 100644 --- a/packages/datadog-api-client-v2/models/EventCreateRequestPayload.ts +++ b/packages/datadog-api-client-v2/models/EventCreateRequestPayload.ts @@ -5,15 +5,20 @@ */ import { EventCreateRequest } from "./EventCreateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload for creating an event. - */ +*/ export class EventCreateRequestPayload { /** * Object representing an event creation request. - */ + */ "data"?: EventCreateRequest; /** @@ -32,22 +37,48 @@ export class EventCreateRequestPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "EventCreateRequest", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "EventCreateRequest", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateRequestPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCreateRequestType.ts b/packages/datadog-api-client-v2/models/EventCreateRequestType.ts index f008c1d4c3f7..6c0b702c0961 100644 --- a/packages/datadog-api-client-v2/models/EventCreateRequestType.ts +++ b/packages/datadog-api-client-v2/models/EventCreateRequestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Entity type. - */ +*/ export type EventCreateRequestType = typeof EVENT | UnparsedObject; -export const EVENT = "event"; +export const EVENT = 'event'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventCreateResponse.ts b/packages/datadog-api-client-v2/models/EventCreateResponse.ts index dbbb3269c241..713d78cd8c11 100644 --- a/packages/datadog-api-client-v2/models/EventCreateResponse.ts +++ b/packages/datadog-api-client-v2/models/EventCreateResponse.ts @@ -5,19 +5,24 @@ */ import { EventCreateResponseAttributes } from "./EventCreateResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing an event response. - */ +*/ export class EventCreateResponse { /** * JSON object containing all events attributes and their associated values. - */ + */ "attributes"?: EventCreateResponseAttributes; /** * Event type - */ + */ "type"?: string; /** @@ -36,26 +41,52 @@ export class EventCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EventCreateResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "EventCreateResponseAttributes", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.ts b/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.ts index 006f666f9ddb..bd9a1227baf7 100644 --- a/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.ts @@ -5,15 +5,20 @@ */ import { EventCreateResponseAttributesAttributes } from "./EventCreateResponseAttributesAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all events attributes and their associated values. - */ +*/ export class EventCreateResponseAttributes { /** * JSON object of attributes from your events. - */ + */ "attributes"?: EventCreateResponseAttributesAttributes; /** @@ -32,22 +37,48 @@ export class EventCreateResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EventCreateResponseAttributesAttributes", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "EventCreateResponseAttributesAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.ts b/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.ts index 28c79493e773..4ae30063176b 100644 --- a/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.ts +++ b/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.ts @@ -5,15 +5,20 @@ */ import { EventCreateResponseAttributesAttributesEvt } from "./EventCreateResponseAttributesAttributesEvt"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object of attributes from your events. - */ +*/ export class EventCreateResponseAttributesAttributes { /** * JSON object of event system attributes. - */ + */ "evt"?: EventCreateResponseAttributesAttributesEvt; /** @@ -32,22 +37,48 @@ export class EventCreateResponseAttributesAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - evt: { - baseName: "evt", - type: "EventCreateResponseAttributesAttributesEvt", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "evt": { + "baseName": "evt", + "type": "EventCreateResponseAttributesAttributesEvt", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateResponseAttributesAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.ts b/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.ts index c21556081522..fafd18c4bc27 100644 --- a/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.ts +++ b/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object of event system attributes. - */ +*/ export class EventCreateResponseAttributesAttributesEvt { /** * Event id - */ + */ "id"?: string; /** @@ -31,22 +36,48 @@ export class EventCreateResponseAttributesAttributesEvt { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateResponseAttributesAttributesEvt.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventCreateResponsePayload.ts b/packages/datadog-api-client-v2/models/EventCreateResponsePayload.ts index b0a1da3130c1..c58e3d1ceb4b 100644 --- a/packages/datadog-api-client-v2/models/EventCreateResponsePayload.ts +++ b/packages/datadog-api-client-v2/models/EventCreateResponsePayload.ts @@ -5,15 +5,20 @@ */ import { EventCreateResponse } from "./EventCreateResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about created event. - */ +*/ export class EventCreateResponsePayload { /** * Object containing an event response. - */ + */ "data"?: EventCreateResponse; /** @@ -32,22 +37,48 @@ export class EventCreateResponsePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "EventCreateResponse", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "EventCreateResponse", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventCreateResponsePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventPayload.ts b/packages/datadog-api-client-v2/models/EventPayload.ts index ce55fadebb51..90b7658f13d6 100644 --- a/packages/datadog-api-client-v2/models/EventPayload.ts +++ b/packages/datadog-api-client-v2/models/EventPayload.ts @@ -6,42 +6,47 @@ import { EventCategory } from "./EventCategory"; import { EventPayloadAttributes } from "./EventPayloadAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Event attributes. - */ +*/ export class EventPayload { /** * An arbitrary string to use for aggregation when correlating events. Limited to 100 characters. - */ + */ "aggregationKey"?: string; /** * JSON object for custom attributes. Schema are different per each event category. - */ + */ "attributes": EventPayloadAttributes; /** * Event category to identify the type of event. Only the value `change` is supported. Support for other categories are coming. please reach out to datadog support if you're interested. - */ + */ "category": EventCategory; /** * The body of the event. Limited to 4000 characters. - */ + */ "message"?: string; /** * A list of tags to apply to the event. * Refer to [Tags docs](https://docs.datadoghq.com/getting_started/tagging/). - */ + */ "tags"?: Array; /** * Timestamp when the event occurred. Must follow [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * For example `"2017-01-15T01:30:15.010000Z"`. * Defaults to the timestamp of receipt. Limited to values no older than 18 hours. - */ + */ "timestamp"?: string; /** * The event title. Limited to 500 characters. - */ + */ "title": string; /** @@ -60,49 +65,75 @@ export class EventPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationKey: { - baseName: "aggregation_key", - type: "string", - }, - attributes: { - baseName: "attributes", - type: "EventPayloadAttributes", - required: true, + "aggregationKey": { + "baseName": "aggregation_key", + "type": "string", }, - category: { - baseName: "category", - type: "EventCategory", - required: true, + "attributes": { + "baseName": "attributes", + "type": "EventPayloadAttributes", + "required": true, }, - message: { - baseName: "message", - type: "string", + "category": { + "baseName": "category", + "type": "EventCategory", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "message": { + "baseName": "message", + "type": "string", }, - timestamp: { - baseName: "timestamp", - type: "string", + "tags": { + "baseName": "tags", + "type": "Array", }, - title: { - baseName: "title", - type: "string", - required: true, + "timestamp": { + "baseName": "timestamp", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventPayloadAttributes.ts b/packages/datadog-api-client-v2/models/EventPayloadAttributes.ts index 5bdf3f3dd14f..dd68f06df181 100644 --- a/packages/datadog-api-client-v2/models/EventPayloadAttributes.ts +++ b/packages/datadog-api-client-v2/models/EventPayloadAttributes.ts @@ -5,12 +5,15 @@ */ import { ChangeEventCustomAttributes } from "./ChangeEventCustomAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * JSON object for custom attributes. Schema are different per each event category. - */ +*/ -export type EventPayloadAttributes = - | ChangeEventCustomAttributes - | UnparsedObject; +export type EventPayloadAttributes = ChangeEventCustomAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventPriority.ts b/packages/datadog-api-client-v2/models/EventPriority.ts index 38b46487c718..dbe0ad74ada3 100644 --- a/packages/datadog-api-client-v2/models/EventPriority.ts +++ b/packages/datadog-api-client-v2/models/EventPriority.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The priority of the event's monitor. For example, `normal` or `low`. - */ +*/ -export type EventPriority = typeof NORMAL | typeof LOW | UnparsedObject; -export const NORMAL = "normal"; -export const LOW = "low"; +export type EventPriority = typeof NORMAL| typeof LOW | UnparsedObject; +export const NORMAL = 'normal'; +export const LOW = 'low'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventResponse.ts b/packages/datadog-api-client-v2/models/EventResponse.ts index d0df30ad1e43..ce0c5fb354f1 100644 --- a/packages/datadog-api-client-v2/models/EventResponse.ts +++ b/packages/datadog-api-client-v2/models/EventResponse.ts @@ -6,23 +6,28 @@ import { EventResponseAttributes } from "./EventResponseAttributes"; import { EventType } from "./EventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object description of an event after being processed and stored by Datadog. - */ +*/ export class EventResponse { /** * The object description of an event response attribute. - */ + */ "attributes"?: EventResponseAttributes; /** * the unique ID of the event. - */ + */ "id"?: string; /** * Type of the event. - */ + */ "type"?: EventType; /** @@ -41,30 +46,56 @@ export class EventResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EventResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "EventResponseAttributes", }, - type: { - baseName: "type", - type: "EventType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EventType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventResponseAttributes.ts b/packages/datadog-api-client-v2/models/EventResponseAttributes.ts index 7ca397a36d8f..02d419307049 100644 --- a/packages/datadog-api-client-v2/models/EventResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/EventResponseAttributes.ts @@ -5,27 +5,32 @@ */ import { EventAttributes } from "./EventAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object description of an event response attribute. - */ +*/ export class EventResponseAttributes { /** * Object description of attributes from your event. - */ + */ "attributes"?: EventAttributes; /** * The message of the event. - */ + */ "message"?: string; /** * An array of tags associated with the event. - */ + */ "tags"?: Array; /** * The timestamp of the event. - */ + */ "timestamp"?: Date; /** @@ -44,35 +49,61 @@ export class EventResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "EventAttributes", + "attributes": { + "baseName": "attributes", + "type": "EventAttributes", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventStatusType.ts b/packages/datadog-api-client-v2/models/EventStatusType.ts index c93c7af3a3a3..62a742bae407 100644 --- a/packages/datadog-api-client-v2/models/EventStatusType.ts +++ b/packages/datadog-api-client-v2/models/EventStatusType.ts @@ -4,29 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * If an alert event is enabled, its status is one of the following: * `failure`, `error`, `warning`, `info`, `success`, `user_update`, * `recommendation`, or `snapshot`. - */ +*/ -export type EventStatusType = - | typeof FAILURE - | typeof ERROR - | typeof WARNING - | typeof INFO - | typeof SUCCESS - | typeof USER_UPDATE - | typeof RECOMMENDATION - | typeof SNAPSHOT - | UnparsedObject; -export const FAILURE = "failure"; -export const ERROR = "error"; -export const WARNING = "warning"; -export const INFO = "info"; -export const SUCCESS = "success"; -export const USER_UPDATE = "user_update"; -export const RECOMMENDATION = "recommendation"; -export const SNAPSHOT = "snapshot"; +export type EventStatusType = typeof FAILURE| typeof ERROR| typeof WARNING| typeof INFO| typeof SUCCESS| typeof USER_UPDATE| typeof RECOMMENDATION| typeof SNAPSHOT | UnparsedObject; +export const FAILURE = 'failure'; +export const ERROR = 'error'; +export const WARNING = 'warning'; +export const INFO = 'info'; +export const SUCCESS = 'success'; +export const USER_UPDATE = 'user_update'; +export const RECOMMENDATION = 'recommendation'; +export const SNAPSHOT = 'snapshot'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventType.ts b/packages/datadog-api-client-v2/models/EventType.ts index 3a4fd5c6bdfc..a42e6367fad0 100644 --- a/packages/datadog-api-client-v2/models/EventType.ts +++ b/packages/datadog-api-client-v2/models/EventType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ export type EventType = typeof EVENT | UnparsedObject; -export const EVENT = "event"; +export const EVENT = 'event'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventsAggregation.ts b/packages/datadog-api-client-v2/models/EventsAggregation.ts index 34fbf65cc339..d6c9c0d956f4 100644 --- a/packages/datadog-api-client-v2/models/EventsAggregation.ts +++ b/packages/datadog-api-client-v2/models/EventsAggregation.ts @@ -4,33 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of aggregation that can be performed on events-based queries. - */ +*/ -export type EventsAggregation = - | typeof COUNT - | typeof CARDINALITY - | typeof PC75 - | typeof PC90 - | typeof PC95 - | typeof PC98 - | typeof PC99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const PC75 = "pc75"; -export const PC90 = "pc90"; -export const PC95 = "pc95"; -export const PC98 = "pc98"; -export const PC99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; +export type EventsAggregation = typeof COUNT| typeof CARDINALITY| typeof PC75| typeof PC90| typeof PC95| typeof PC98| typeof PC99| typeof SUM| typeof MIN| typeof MAX| typeof AVG | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const PC75 = 'pc75'; +export const PC90 = 'pc90'; +export const PC95 = 'pc95'; +export const PC98 = 'pc98'; +export const PC99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventsCompute.ts b/packages/datadog-api-client-v2/models/EventsCompute.ts index a5abe99727c0..92aab348b011 100644 --- a/packages/datadog-api-client-v2/models/EventsCompute.ts +++ b/packages/datadog-api-client-v2/models/EventsCompute.ts @@ -5,23 +5,28 @@ */ import { EventsAggregation } from "./EventsAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The instructions for what to compute for this query. - */ +*/ export class EventsCompute { /** * The type of aggregation that can be performed on events-based queries. - */ + */ "aggregation": EventsAggregation; /** * Interval for compute in milliseconds. - */ + */ "interval"?: number; /** * The "measure" attribute on which to perform the computation. - */ + */ "metric"?: string; /** @@ -40,32 +45,58 @@ export class EventsCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "EventsAggregation", - required: true, - }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "aggregation": { + "baseName": "aggregation", + "type": "EventsAggregation", + "required": true, }, - metric: { - baseName: "metric", - type: "string", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "metric": { + "baseName": "metric", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsDataSource.ts b/packages/datadog-api-client-v2/models/EventsDataSource.ts index 517ad8754660..e9ecaf9fd410 100644 --- a/packages/datadog-api-client-v2/models/EventsDataSource.ts +++ b/packages/datadog-api-client-v2/models/EventsDataSource.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A data source that is powered by the Events Platform. - */ +*/ -export type EventsDataSource = typeof LOGS | typeof RUM | UnparsedObject; -export const LOGS = "logs"; -export const RUM = "rum"; +export type EventsDataSource = typeof LOGS| typeof RUM | UnparsedObject; +export const LOGS = 'logs'; +export const RUM = 'rum'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventsGroupBy.ts b/packages/datadog-api-client-v2/models/EventsGroupBy.ts index 3b79a3459943..448ab43d7ad8 100644 --- a/packages/datadog-api-client-v2/models/EventsGroupBy.ts +++ b/packages/datadog-api-client-v2/models/EventsGroupBy.ts @@ -5,24 +5,29 @@ */ import { EventsGroupBySort } from "./EventsGroupBySort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A dimension on which to split a query's results. - */ +*/ export class EventsGroupBy { /** * The facet by which to split groups. - */ + */ "facet": string; /** * The maximum buckets to return for this group by. Note: at most 10000 buckets are allowed. * If grouping by multiple facets, the product of limits must not exceed 10000. - */ + */ "limit"?: number; /** * The dimension by which to sort a query's results. - */ + */ "sort"?: EventsGroupBySort; /** @@ -41,32 +46,58 @@ export class EventsGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - limit: { - baseName: "limit", - type: "number", - format: "int32", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - sort: { - baseName: "sort", - type: "EventsGroupBySort", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "EventsGroupBySort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsGroupBySort.ts b/packages/datadog-api-client-v2/models/EventsGroupBySort.ts index df7fa7aa2386..728bf64bc496 100644 --- a/packages/datadog-api-client-v2/models/EventsGroupBySort.ts +++ b/packages/datadog-api-client-v2/models/EventsGroupBySort.ts @@ -7,27 +7,32 @@ import { EventsAggregation } from "./EventsAggregation"; import { EventsSortType } from "./EventsSortType"; import { QuerySortOrder } from "./QuerySortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The dimension by which to sort a query's results. - */ +*/ export class EventsGroupBySort { /** * The type of aggregation that can be performed on events-based queries. - */ + */ "aggregation": EventsAggregation; /** * The metric's calculated value which should be used to define the sort order of a query's results. - */ + */ "metric"?: string; /** * Direction of sort. - */ + */ "order"?: QuerySortOrder; /** * The type of sort to use on the calculated value. - */ + */ "type"?: EventsSortType; /** @@ -46,35 +51,61 @@ export class EventsGroupBySort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "EventsAggregation", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "EventsAggregation", + "required": true, }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - order: { - baseName: "order", - type: "QuerySortOrder", + "order": { + "baseName": "order", + "type": "QuerySortOrder", }, - type: { - baseName: "type", - type: "EventsSortType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "EventsSortType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsGroupBySort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsListRequest.ts b/packages/datadog-api-client-v2/models/EventsListRequest.ts index fe1a0b09a80e..890ca2678cdd 100644 --- a/packages/datadog-api-client-v2/models/EventsListRequest.ts +++ b/packages/datadog-api-client-v2/models/EventsListRequest.ts @@ -8,28 +8,33 @@ import { EventsQueryOptions } from "./EventsQueryOptions"; import { EventsRequestPage } from "./EventsRequestPage"; import { EventsSort } from "./EventsSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object sent with the request to retrieve a list of events from your organization. - */ +*/ export class EventsListRequest { /** * The search and filter query settings. - */ + */ "filter"?: EventsQueryFilter; /** * The global query options that are used. Either provide a timezone or a time offset but not both, * otherwise the query fails. - */ + */ "options"?: EventsQueryOptions; /** * Pagination settings. - */ + */ "page"?: EventsRequestPage; /** * The sort parameters when querying events. - */ + */ "sort"?: EventsSort; /** @@ -48,34 +53,60 @@ export class EventsListRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "EventsQueryFilter", + "filter": { + "baseName": "filter", + "type": "EventsQueryFilter", }, - options: { - baseName: "options", - type: "EventsQueryOptions", + "options": { + "baseName": "options", + "type": "EventsQueryOptions", }, - page: { - baseName: "page", - type: "EventsRequestPage", + "page": { + "baseName": "page", + "type": "EventsRequestPage", }, - sort: { - baseName: "sort", - type: "EventsSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "EventsSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsListRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsListResponse.ts b/packages/datadog-api-client-v2/models/EventsListResponse.ts index 983629c4fa02..f741687b9145 100644 --- a/packages/datadog-api-client-v2/models/EventsListResponse.ts +++ b/packages/datadog-api-client-v2/models/EventsListResponse.ts @@ -7,23 +7,28 @@ import { EventResponse } from "./EventResponse"; import { EventsListResponseLinks } from "./EventsListResponseLinks"; import { EventsResponseMetadata } from "./EventsResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object with all events matching the request and pagination information. - */ +*/ export class EventsListResponse { /** * An array of events matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: EventsListResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: EventsResponseMetadata; /** @@ -42,30 +47,56 @@ export class EventsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "EventsListResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "EventsResponseMetadata", + "links": { + "baseName": "links", + "type": "EventsListResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "EventsResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsListResponseLinks.ts b/packages/datadog-api-client-v2/models/EventsListResponseLinks.ts index 670d18bd2d05..c54196826e55 100644 --- a/packages/datadog-api-client-v2/models/EventsListResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/EventsListResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class EventsListResponseLinks { /** * Link for the next set of results. Note that the request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class EventsListResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsListResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsQueryFilter.ts b/packages/datadog-api-client-v2/models/EventsQueryFilter.ts index b979db6bd115..3a4cbd8f7fc2 100644 --- a/packages/datadog-api-client-v2/models/EventsQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/EventsQueryFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The search and filter query settings. - */ +*/ export class EventsQueryFilter { /** * The minimum time for the requested events. Supports date math and regular timestamps in milliseconds. - */ + */ "from"?: string; /** * The search query following the event search syntax. - */ + */ "query"?: string; /** * The maximum time for the requested events. Supports date math and regular timestamps in milliseconds. - */ + */ "to"?: string; /** @@ -39,30 +44,56 @@ export class EventsQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - to: { - baseName: "to", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsQueryOptions.ts b/packages/datadog-api-client-v2/models/EventsQueryOptions.ts index d15fd01931fe..b286911e61fb 100644 --- a/packages/datadog-api-client-v2/models/EventsQueryOptions.ts +++ b/packages/datadog-api-client-v2/models/EventsQueryOptions.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The global query options that are used. Either provide a timezone or a time offset but not both, * otherwise the query fails. - */ +*/ export class EventsQueryOptions { /** * The time offset to apply to the query in seconds. - */ + */ "timeOffset"?: number; /** * The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class EventsQueryOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeOffset: { - baseName: "timeOffset", - type: "number", - format: "int64", + "timeOffset": { + "baseName": "timeOffset", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsQueryOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsRequestPage.ts b/packages/datadog-api-client-v2/models/EventsRequestPage.ts index bc451b7d94bd..f864b340694b 100644 --- a/packages/datadog-api-client-v2/models/EventsRequestPage.ts +++ b/packages/datadog-api-client-v2/models/EventsRequestPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination settings. - */ +*/ export class EventsRequestPage { /** * The returned paging point to use to get the next results. - */ + */ "cursor"?: string; /** * The maximum number of logs in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class EventsRequestPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsRequestPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsResponseMetadata.ts b/packages/datadog-api-client-v2/models/EventsResponseMetadata.ts index dedeffc87bba..68aacd6d4dec 100644 --- a/packages/datadog-api-client-v2/models/EventsResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/EventsResponseMetadata.ts @@ -6,32 +6,37 @@ import { EventsResponseMetadataPage } from "./EventsResponseMetadataPage"; import { EventsWarning } from "./EventsWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class EventsResponseMetadata { /** * The time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * Pagination attributes. - */ + */ "page"?: EventsResponseMetadataPage; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The request status. - */ + */ "status"?: string; /** * A list of warnings (non-fatal errors) encountered. Partial results might be returned if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -50,39 +55,65 @@ export class EventsResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "EventsResponseMetadataPage", + "page": { + "baseName": "page", + "type": "EventsResponseMetadataPage", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.ts b/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.ts index 3824986a5141..73c44a30810b 100644 --- a/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.ts +++ b/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination attributes. - */ +*/ export class EventsResponseMetadataPage { /** * The cursor to use to get the next results, if any. To make the next request, use the same * parameters with the addition of the `page[cursor]`. - */ + */ "after"?: string; /** @@ -32,22 +37,48 @@ export class EventsResponseMetadataPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsResponseMetadataPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsScalarQuery.ts b/packages/datadog-api-client-v2/models/EventsScalarQuery.ts index 7da5b8c8cd6c..6d5136bb1890 100644 --- a/packages/datadog-api-client-v2/models/EventsScalarQuery.ts +++ b/packages/datadog-api-client-v2/models/EventsScalarQuery.ts @@ -8,35 +8,40 @@ import { EventsDataSource } from "./EventsDataSource"; import { EventsGroupBy } from "./EventsGroupBy"; import { EventsSearch } from "./EventsSearch"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An individual scalar events query. - */ +*/ export class EventsScalarQuery { /** * The instructions for what to compute for this query. - */ + */ "compute": EventsCompute; /** * A data source that is powered by the Events Platform. - */ + */ "dataSource": EventsDataSource; /** * The list of facets on which to split results. - */ + */ "groupBy"?: Array; /** * The indexes in which to search. - */ + */ "indexes"?: Array; /** * The variable name for use in formulas. - */ + */ "name"?: string; /** * Configuration of the search/filter for an events query. - */ + */ "search"?: EventsSearch; /** @@ -55,44 +60,70 @@ export class EventsScalarQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "EventsCompute", - required: true, - }, - dataSource: { - baseName: "data_source", - type: "EventsDataSource", - required: true, + "compute": { + "baseName": "compute", + "type": "EventsCompute", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "dataSource": { + "baseName": "data_source", + "type": "EventsDataSource", + "required": true, }, - indexes: { - baseName: "indexes", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - search: { - baseName: "search", - type: "EventsSearch", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "search": { + "baseName": "search", + "type": "EventsSearch", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsScalarQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsSearch.ts b/packages/datadog-api-client-v2/models/EventsSearch.ts index b0d3f2b5096e..c19fb5f16b2b 100644 --- a/packages/datadog-api-client-v2/models/EventsSearch.ts +++ b/packages/datadog-api-client-v2/models/EventsSearch.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration of the search/filter for an events query. - */ +*/ export class EventsSearch { /** * The search/filter string for an events query. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class EventsSearch { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsSearch.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsSort.ts b/packages/datadog-api-client-v2/models/EventsSort.ts index 616d665cac3b..34ad1723fcf7 100644 --- a/packages/datadog-api-client-v2/models/EventsSort.ts +++ b/packages/datadog-api-client-v2/models/EventsSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The sort parameters when querying events. - */ +*/ -export type EventsSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type EventsSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventsSortType.ts b/packages/datadog-api-client-v2/models/EventsSortType.ts index 095c2afd4106..6d168dbe2ebc 100644 --- a/packages/datadog-api-client-v2/models/EventsSortType.ts +++ b/packages/datadog-api-client-v2/models/EventsSortType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of sort to use on the calculated value. - */ +*/ -export type EventsSortType = - | typeof ALPHABETICAL - | typeof MEASURE - | UnparsedObject; -export const ALPHABETICAL = "alphabetical"; -export const MEASURE = "measure"; +export type EventsSortType = typeof ALPHABETICAL| typeof MEASURE | UnparsedObject; +export const ALPHABETICAL = 'alphabetical'; +export const MEASURE = 'measure'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/EventsTimeseriesQuery.ts b/packages/datadog-api-client-v2/models/EventsTimeseriesQuery.ts index 9bc730ce26c2..c9f21ff43207 100644 --- a/packages/datadog-api-client-v2/models/EventsTimeseriesQuery.ts +++ b/packages/datadog-api-client-v2/models/EventsTimeseriesQuery.ts @@ -8,35 +8,40 @@ import { EventsDataSource } from "./EventsDataSource"; import { EventsGroupBy } from "./EventsGroupBy"; import { EventsSearch } from "./EventsSearch"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An individual timeseries events query. - */ +*/ export class EventsTimeseriesQuery { /** * The instructions for what to compute for this query. - */ + */ "compute": EventsCompute; /** * A data source that is powered by the Events Platform. - */ + */ "dataSource": EventsDataSource; /** * The list of facets on which to split results. - */ + */ "groupBy"?: Array; /** * The indexes in which to search. - */ + */ "indexes"?: Array; /** * The variable name for use in formulas. - */ + */ "name"?: string; /** * Configuration of the search/filter for an events query. - */ + */ "search"?: EventsSearch; /** @@ -55,44 +60,70 @@ export class EventsTimeseriesQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "EventsCompute", - required: true, - }, - dataSource: { - baseName: "data_source", - type: "EventsDataSource", - required: true, + "compute": { + "baseName": "compute", + "type": "EventsCompute", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "dataSource": { + "baseName": "data_source", + "type": "EventsDataSource", + "required": true, }, - indexes: { - baseName: "indexes", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - search: { - baseName: "search", - type: "EventsSearch", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "search": { + "baseName": "search", + "type": "EventsSearch", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsTimeseriesQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/EventsWarning.ts b/packages/datadog-api-client-v2/models/EventsWarning.ts index 5b1c5c27cf4f..d7331cc780ff 100644 --- a/packages/datadog-api-client-v2/models/EventsWarning.ts +++ b/packages/datadog-api-client-v2/models/EventsWarning.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A warning message indicating something is wrong with the query. - */ +*/ export class EventsWarning { /** * A unique code for this type of warning. - */ + */ "code"?: string; /** * A detailed explanation of this specific warning. - */ + */ "detail"?: string; /** * A short human-readable summary of the warning. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class EventsWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - detail: { - baseName: "detail", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return EventsWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.ts b/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.ts index 1a0e537079a1..4cd617ada289 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.ts @@ -5,19 +5,24 @@ */ import { FastlyService } from "./FastlyService"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object of a Fastly account. - */ +*/ export class FastlyAccounResponseAttributes { /** * The name of the Fastly account. - */ + */ "name": string; /** * A list of services belonging to the parent account. - */ + */ "services"?: Array; /** @@ -36,27 +41,53 @@ export class FastlyAccounResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - services: { - baseName: "services", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "services": { + "baseName": "services", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccounResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.ts b/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.ts index f150ecb5c683..8df9d9759d54 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.ts @@ -5,15 +5,20 @@ */ import { FastlyAccountCreateRequestData } from "./FastlyAccountCreateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema when adding a Fastly account. - */ +*/ export class FastlyAccountCreateRequest { /** * Data object for creating a Fastly account. - */ + */ "data": FastlyAccountCreateRequestData; /** @@ -32,23 +37,49 @@ export class FastlyAccountCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FastlyAccountCreateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "FastlyAccountCreateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.ts index d745d75fb0f6..59c685e71161 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.ts @@ -5,23 +5,28 @@ */ import { FastlyService } from "./FastlyService"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for creating a Fastly account. - */ +*/ export class FastlyAccountCreateRequestAttributes { /** * The API key for the Fastly account. - */ + */ "apiKey": string; /** * The name of the Fastly account. - */ + */ "name": string; /** * A list of services belonging to the parent account. - */ + */ "services"?: Array; /** @@ -40,32 +45,58 @@ export class FastlyAccountCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", - required: true, + "apiKey": { + "baseName": "api_key", + "type": "string", + "required": true, }, - services: { - baseName: "services", - type: "Array", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "services": { + "baseName": "services", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.ts b/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.ts index 90e107e75a75..c5431739617f 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.ts @@ -6,19 +6,24 @@ import { FastlyAccountCreateRequestAttributes } from "./FastlyAccountCreateRequestAttributes"; import { FastlyAccountType } from "./FastlyAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for creating a Fastly account. - */ +*/ export class FastlyAccountCreateRequestData { /** * Attributes object for creating a Fastly account. - */ + */ "attributes": FastlyAccountCreateRequestAttributes; /** * The JSON:API type for this API. Should always be `fastly-accounts`. - */ + */ "type": FastlyAccountType; /** @@ -37,28 +42,54 @@ export class FastlyAccountCreateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FastlyAccountCreateRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "FastlyAccountCreateRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "FastlyAccountType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FastlyAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountCreateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountResponse.ts b/packages/datadog-api-client-v2/models/FastlyAccountResponse.ts index 39a8afc8c6e2..e82b70f24549 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountResponse.ts @@ -5,15 +5,20 @@ */ import { FastlyAccountResponseData } from "./FastlyAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting a Fastly account. - */ +*/ export class FastlyAccountResponse { /** * Data object of a Fastly account. - */ + */ "data"?: FastlyAccountResponseData; /** @@ -32,22 +37,48 @@ export class FastlyAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FastlyAccountResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "FastlyAccountResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountResponseData.ts b/packages/datadog-api-client-v2/models/FastlyAccountResponseData.ts index 67971ea693ca..01a52c11ce3c 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountResponseData.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountResponseData.ts @@ -6,23 +6,28 @@ import { FastlyAccounResponseAttributes } from "./FastlyAccounResponseAttributes"; import { FastlyAccountType } from "./FastlyAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object of a Fastly account. - */ +*/ export class FastlyAccountResponseData { /** * Attributes object of a Fastly account. - */ + */ "attributes": FastlyAccounResponseAttributes; /** * The ID of the Fastly account, a hash of the account name. - */ + */ "id": string; /** * The JSON:API type for this API. Should always be `fastly-accounts`. - */ + */ "type": FastlyAccountType; /** @@ -41,33 +46,59 @@ export class FastlyAccountResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FastlyAccounResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "FastlyAccounResponseAttributes", + "required": true, }, - type: { - baseName: "type", - type: "FastlyAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FastlyAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountType.ts b/packages/datadog-api-client-v2/models/FastlyAccountType.ts index 2b4c7c79d0e7..46826aaf443e 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountType.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for this API. Should always be `fastly-accounts`. - */ +*/ export type FastlyAccountType = typeof FASTLY_ACCOUNTS | UnparsedObject; -export const FASTLY_ACCOUNTS = "fastly-accounts"; +export const FASTLY_ACCOUNTS = 'fastly-accounts'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.ts b/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.ts index f7cba75e7c20..73b20cad451a 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { FastlyAccountUpdateRequestData } from "./FastlyAccountUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema when updating a Fastly account. - */ +*/ export class FastlyAccountUpdateRequest { /** * Data object for updating a Fastly account. - */ + */ "data": FastlyAccountUpdateRequestData; /** @@ -32,23 +37,49 @@ export class FastlyAccountUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FastlyAccountUpdateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "FastlyAccountUpdateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.ts index 3b94f35a1791..58478b2c06e6 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for updating a Fastly account. - */ +*/ export class FastlyAccountUpdateRequestAttributes { /** * The API key of the Fastly account. - */ + */ "apiKey"?: string; /** * The name of the Fastly account. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class FastlyAccountUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", + "apiKey": { + "baseName": "api_key", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.ts index 35b706b65601..509f98ad5108 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.ts @@ -6,19 +6,24 @@ import { FastlyAccountType } from "./FastlyAccountType"; import { FastlyAccountUpdateRequestAttributes } from "./FastlyAccountUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for updating a Fastly account. - */ +*/ export class FastlyAccountUpdateRequestData { /** * Attributes object for updating a Fastly account. - */ + */ "attributes"?: FastlyAccountUpdateRequestAttributes; /** * The JSON:API type for this API. Should always be `fastly-accounts`. - */ + */ "type"?: FastlyAccountType; /** @@ -37,26 +42,52 @@ export class FastlyAccountUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FastlyAccountUpdateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "FastlyAccountUpdateRequestAttributes", }, - type: { - baseName: "type", - type: "FastlyAccountType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FastlyAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyAccountsResponse.ts b/packages/datadog-api-client-v2/models/FastlyAccountsResponse.ts index 1d21796b78fa..83c45b62f548 100644 --- a/packages/datadog-api-client-v2/models/FastlyAccountsResponse.ts +++ b/packages/datadog-api-client-v2/models/FastlyAccountsResponse.ts @@ -5,15 +5,20 @@ */ import { FastlyAccountResponseData } from "./FastlyAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting Fastly accounts. - */ +*/ export class FastlyAccountsResponse { /** * The JSON:API data schema. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class FastlyAccountsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyAccountsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyService.ts b/packages/datadog-api-client-v2/models/FastlyService.ts index cd87e2e349d9..d395253462ac 100644 --- a/packages/datadog-api-client-v2/models/FastlyService.ts +++ b/packages/datadog-api-client-v2/models/FastlyService.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The schema representation of a Fastly service. - */ +*/ export class FastlyService { /** * The ID of the Fastly service - */ + */ "id": string; /** * A list of tags for the Fastly service. - */ + */ "tags"?: Array; /** @@ -35,27 +40,53 @@ export class FastlyService { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyService.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyServiceAttributes.ts b/packages/datadog-api-client-v2/models/FastlyServiceAttributes.ts index 32c3159a465c..103b846699c7 100644 --- a/packages/datadog-api-client-v2/models/FastlyServiceAttributes.ts +++ b/packages/datadog-api-client-v2/models/FastlyServiceAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for Fastly service requests. - */ +*/ export class FastlyServiceAttributes { /** * A list of tags for the Fastly service. - */ + */ "tags"?: Array; /** @@ -31,22 +36,48 @@ export class FastlyServiceAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyServiceAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyServiceData.ts b/packages/datadog-api-client-v2/models/FastlyServiceData.ts index cbca00b80531..8dbb3672fefa 100644 --- a/packages/datadog-api-client-v2/models/FastlyServiceData.ts +++ b/packages/datadog-api-client-v2/models/FastlyServiceData.ts @@ -6,23 +6,28 @@ import { FastlyServiceAttributes } from "./FastlyServiceAttributes"; import { FastlyServiceType } from "./FastlyServiceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for Fastly service requests. - */ +*/ export class FastlyServiceData { /** * Attributes object for Fastly service requests. - */ + */ "attributes"?: FastlyServiceAttributes; /** * The ID of the Fastly service. - */ + */ "id": string; /** * The JSON:API type for this API. Should always be `fastly-services`. - */ + */ "type": FastlyServiceType; /** @@ -41,32 +46,58 @@ export class FastlyServiceData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FastlyServiceAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "FastlyServiceAttributes", }, - type: { - baseName: "type", - type: "FastlyServiceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FastlyServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyServiceData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyServiceRequest.ts b/packages/datadog-api-client-v2/models/FastlyServiceRequest.ts index 671d8ffa0974..6d72e4c8c864 100644 --- a/packages/datadog-api-client-v2/models/FastlyServiceRequest.ts +++ b/packages/datadog-api-client-v2/models/FastlyServiceRequest.ts @@ -5,15 +5,20 @@ */ import { FastlyServiceData } from "./FastlyServiceData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema for Fastly service requests. - */ +*/ export class FastlyServiceRequest { /** * Data object for Fastly service requests. - */ + */ "data": FastlyServiceData; /** @@ -32,23 +37,49 @@ export class FastlyServiceRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FastlyServiceData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "FastlyServiceData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyServiceRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyServiceResponse.ts b/packages/datadog-api-client-v2/models/FastlyServiceResponse.ts index 6abf7e893605..6eb90da8156f 100644 --- a/packages/datadog-api-client-v2/models/FastlyServiceResponse.ts +++ b/packages/datadog-api-client-v2/models/FastlyServiceResponse.ts @@ -5,15 +5,20 @@ */ import { FastlyServiceData } from "./FastlyServiceData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting a Fastly service. - */ +*/ export class FastlyServiceResponse { /** * Data object for Fastly service requests. - */ + */ "data"?: FastlyServiceData; /** @@ -32,22 +37,48 @@ export class FastlyServiceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "FastlyServiceData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "FastlyServiceData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyServiceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FastlyServiceType.ts b/packages/datadog-api-client-v2/models/FastlyServiceType.ts index 196be566e453..1b4c51d1b92d 100644 --- a/packages/datadog-api-client-v2/models/FastlyServiceType.ts +++ b/packages/datadog-api-client-v2/models/FastlyServiceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for this API. Should always be `fastly-services`. - */ +*/ export type FastlyServiceType = typeof FASTLY_SERVICES | UnparsedObject; -export const FASTLY_SERVICES = "fastly-services"; +export const FASTLY_SERVICES = 'fastly-services'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FastlyServicesResponse.ts b/packages/datadog-api-client-v2/models/FastlyServicesResponse.ts index ecfa740be146..da3a46d043b8 100644 --- a/packages/datadog-api-client-v2/models/FastlyServicesResponse.ts +++ b/packages/datadog-api-client-v2/models/FastlyServicesResponse.ts @@ -5,15 +5,20 @@ */ import { FastlyServiceData } from "./FastlyServiceData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting Fastly services. - */ +*/ export class FastlyServicesResponse { /** * The JSON:API data schema. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class FastlyServicesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FastlyServicesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Finding.ts b/packages/datadog-api-client-v2/models/Finding.ts index 1dc256506917..b903424e780b 100644 --- a/packages/datadog-api-client-v2/models/Finding.ts +++ b/packages/datadog-api-client-v2/models/Finding.ts @@ -6,23 +6,28 @@ import { FindingAttributes } from "./FindingAttributes"; import { FindingType } from "./FindingType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single finding without the message and resource configuration. - */ +*/ export class Finding { /** * The JSON:API attributes of the finding. - */ + */ "attributes"?: FindingAttributes; /** * The unique ID for this finding. - */ + */ "id"?: string; /** * The JSON:API type for findings. - */ + */ "type"?: FindingType; /** @@ -41,30 +46,56 @@ export class Finding { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FindingAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "FindingAttributes", }, - type: { - baseName: "type", - type: "FindingType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "FindingType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Finding.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FindingAttributes.ts b/packages/datadog-api-client-v2/models/FindingAttributes.ts index f194a3b790b2..f837eaee623b 100644 --- a/packages/datadog-api-client-v2/models/FindingAttributes.ts +++ b/packages/datadog-api-client-v2/models/FindingAttributes.ts @@ -7,53 +7,59 @@ import { FindingEvaluation } from "./FindingEvaluation"; import { FindingMute } from "./FindingMute"; import { FindingRule } from "./FindingRule"; import { FindingStatus } from "./FindingStatus"; +import { FindingTagsItem } from "./FindingTagsItem"; import { FindingVulnerabilityType } from "./FindingVulnerabilityType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes of the finding. - */ +*/ export class FindingAttributes { /** * The evaluation of the finding. - */ + */ "evaluation"?: FindingEvaluation; /** * The date on which the evaluation for this finding changed (Unix ms). - */ + */ "evaluationChangedAt"?: number; /** * Information about the mute status of this finding. - */ + */ "mute"?: FindingMute; /** * The resource name of this finding. - */ + */ "resource"?: string; /** * The date on which the resource was discovered (Unix ms). - */ + */ "resourceDiscoveryDate"?: number; /** * The resource type of this finding. - */ + */ "resourceType"?: string; /** * The rule that triggered this finding. - */ + */ "rule"?: FindingRule; /** * The status of the finding. - */ + */ "status"?: FindingStatus; /** * The tags associated with this finding. - */ + */ "tags"?: Array; /** * The vulnerability type of the finding. - */ + */ "vulnerabilityType"?: FindingVulnerabilityType; /** @@ -72,60 +78,86 @@ export class FindingAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - evaluation: { - baseName: "evaluation", - type: "FindingEvaluation", - }, - evaluationChangedAt: { - baseName: "evaluation_changed_at", - type: "number", - format: "int64", + "evaluation": { + "baseName": "evaluation", + "type": "FindingEvaluation", }, - mute: { - baseName: "mute", - type: "FindingMute", + "evaluationChangedAt": { + "baseName": "evaluation_changed_at", + "type": "number", + "format": "int64", }, - resource: { - baseName: "resource", - type: "string", + "mute": { + "baseName": "mute", + "type": "FindingMute", }, - resourceDiscoveryDate: { - baseName: "resource_discovery_date", - type: "number", - format: "int64", + "resource": { + "baseName": "resource", + "type": "string", }, - resourceType: { - baseName: "resource_type", - type: "string", + "resourceDiscoveryDate": { + "baseName": "resource_discovery_date", + "type": "number", + "format": "int64", }, - rule: { - baseName: "rule", - type: "FindingRule", + "resourceType": { + "baseName": "resource_type", + "type": "string", }, - status: { - baseName: "status", - type: "FindingStatus", + "rule": { + "baseName": "rule", + "type": "FindingRule", }, - tags: { - baseName: "tags", - type: "Array", + "status": { + "baseName": "status", + "type": "FindingStatus", }, - vulnerabilityType: { - baseName: "vulnerability_type", - type: "FindingVulnerabilityType", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "vulnerabilityType": { + "baseName": "vulnerability_type", + "type": "FindingVulnerabilityType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FindingAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FindingEvaluation.ts b/packages/datadog-api-client-v2/models/FindingEvaluation.ts index 394203f4ffa5..ad056f6b747b 100644 --- a/packages/datadog-api-client-v2/models/FindingEvaluation.ts +++ b/packages/datadog-api-client-v2/models/FindingEvaluation.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The evaluation of the finding. - */ +*/ -export type FindingEvaluation = typeof PASS | typeof FAIL | UnparsedObject; -export const PASS = "pass"; -export const FAIL = "fail"; +export type FindingEvaluation = typeof PASS| typeof FAIL | UnparsedObject; +export const PASS = 'pass'; +export const FAIL = 'fail'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FindingMute.ts b/packages/datadog-api-client-v2/models/FindingMute.ts index 24a5a011605f..fdcd3c5cc858 100644 --- a/packages/datadog-api-client-v2/models/FindingMute.ts +++ b/packages/datadog-api-client-v2/models/FindingMute.ts @@ -5,35 +5,40 @@ */ import { FindingMuteReason } from "./FindingMuteReason"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about the mute status of this finding. - */ +*/ export class FindingMute { /** * Additional information about the reason why this finding is muted or unmuted. - */ + */ "description"?: string; /** * The expiration date of the mute or unmute action (Unix ms). - */ + */ "expirationDate"?: number; /** * Whether this finding is muted or unmuted. - */ + */ "muted"?: boolean; /** * The reason why this finding is muted or unmuted. - */ + */ "reason"?: FindingMuteReason; /** * The start of the mute period. - */ + */ "startDate"?: number; /** * The ID of the user who muted or unmuted this finding. - */ + */ "uuid"?: string; /** @@ -45,40 +50,66 @@ export class FindingMute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - expirationDate: { - baseName: "expiration_date", - type: "number", - format: "int64", + "description": { + "baseName": "description", + "type": "string", }, - muted: { - baseName: "muted", - type: "boolean", + "expirationDate": { + "baseName": "expiration_date", + "type": "number", + "format": "int64", }, - reason: { - baseName: "reason", - type: "FindingMuteReason", + "muted": { + "baseName": "muted", + "type": "boolean", }, - startDate: { - baseName: "start_date", - type: "number", - format: "int64", + "reason": { + "baseName": "reason", + "type": "FindingMuteReason", }, - uuid: { - baseName: "uuid", - type: "string", + "startDate": { + "baseName": "start_date", + "type": "number", + "format": "int64", }, + "uuid": { + "baseName": "uuid", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FindingMute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FindingMuteReason.ts b/packages/datadog-api-client-v2/models/FindingMuteReason.ts index f8a1274947c7..8fb5c4c19e77 100644 --- a/packages/datadog-api-client-v2/models/FindingMuteReason.ts +++ b/packages/datadog-api-client-v2/models/FindingMuteReason.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The reason why this finding is muted or unmuted. - */ +*/ -export type FindingMuteReason = - | typeof PENDING_FIX - | typeof FALSE_POSITIVE - | typeof ACCEPTED_RISK - | typeof NO_PENDING_FIX - | typeof HUMAN_ERROR - | typeof NO_LONGER_ACCEPTED_RISK - | typeof OTHER - | UnparsedObject; -export const PENDING_FIX = "PENDING_FIX"; -export const FALSE_POSITIVE = "FALSE_POSITIVE"; -export const ACCEPTED_RISK = "ACCEPTED_RISK"; -export const NO_PENDING_FIX = "NO_PENDING_FIX"; -export const HUMAN_ERROR = "HUMAN_ERROR"; -export const NO_LONGER_ACCEPTED_RISK = "NO_LONGER_ACCEPTED_RISK"; -export const OTHER = "OTHER"; +export type FindingMuteReason = typeof PENDING_FIX| typeof FALSE_POSITIVE| typeof ACCEPTED_RISK| typeof NO_PENDING_FIX| typeof HUMAN_ERROR| typeof NO_LONGER_ACCEPTED_RISK| typeof OTHER | UnparsedObject; +export const PENDING_FIX = 'PENDING_FIX'; +export const FALSE_POSITIVE = 'FALSE_POSITIVE'; +export const ACCEPTED_RISK = 'ACCEPTED_RISK'; +export const NO_PENDING_FIX = 'NO_PENDING_FIX'; +export const HUMAN_ERROR = 'HUMAN_ERROR'; +export const NO_LONGER_ACCEPTED_RISK = 'NO_LONGER_ACCEPTED_RISK'; +export const OTHER = 'OTHER'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FindingRule.ts b/packages/datadog-api-client-v2/models/FindingRule.ts index 7d37c8f6fac0..8ab7562e845e 100644 --- a/packages/datadog-api-client-v2/models/FindingRule.ts +++ b/packages/datadog-api-client-v2/models/FindingRule.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rule that triggered this finding. - */ +*/ export class FindingRule { /** * The ID of the rule that triggered this finding. - */ + */ "id"?: string; /** * The name of the rule that triggered this finding. - */ + */ "name"?: string; /** @@ -28,22 +33,48 @@ export class FindingRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - name: { - baseName: "name", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, + "name": { + "baseName": "name", + "type": "string", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FindingRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FindingStatus.ts b/packages/datadog-api-client-v2/models/FindingStatus.ts index 39bda942c59c..fd2030355bb5 100644 --- a/packages/datadog-api-client-v2/models/FindingStatus.ts +++ b/packages/datadog-api-client-v2/models/FindingStatus.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the finding. - */ +*/ -export type FindingStatus = - | typeof CRITICAL - | typeof HIGH - | typeof MEDIUM - | typeof LOW - | typeof INFO - | UnparsedObject; -export const CRITICAL = "critical"; -export const HIGH = "high"; -export const MEDIUM = "medium"; -export const LOW = "low"; -export const INFO = "info"; +export type FindingStatus = typeof CRITICAL| typeof HIGH| typeof MEDIUM| typeof LOW| typeof INFO | UnparsedObject; +export const CRITICAL = 'critical'; +export const HIGH = 'high'; +export const MEDIUM = 'medium'; +export const LOW = 'low'; +export const INFO = 'info'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FindingType.ts b/packages/datadog-api-client-v2/models/FindingType.ts index 9687691d5169..bdaacceb30ed 100644 --- a/packages/datadog-api-client-v2/models/FindingType.ts +++ b/packages/datadog-api-client-v2/models/FindingType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for findings. - */ +*/ export type FindingType = typeof FINDING | UnparsedObject; -export const FINDING = "finding"; +export const FINDING = 'finding'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FindingVulnerabilityType.ts b/packages/datadog-api-client-v2/models/FindingVulnerabilityType.ts index 05144dc8c5f5..0a0d948c98d9 100644 --- a/packages/datadog-api-client-v2/models/FindingVulnerabilityType.ts +++ b/packages/datadog-api-client-v2/models/FindingVulnerabilityType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The vulnerability type of the finding. - */ +*/ -export type FindingVulnerabilityType = - | typeof MISCONFIGURATION - | typeof ATTACK_PATH - | typeof IDENTITY_RISK - | typeof API_SECURITY - | UnparsedObject; -export const MISCONFIGURATION = "misconfiguration"; -export const ATTACK_PATH = "attack_path"; -export const IDENTITY_RISK = "identity_risk"; -export const API_SECURITY = "api_security"; +export type FindingVulnerabilityType = typeof MISCONFIGURATION| typeof ATTACK_PATH| typeof IDENTITY_RISK| typeof API_SECURITY | UnparsedObject; +export const MISCONFIGURATION = 'misconfiguration'; +export const ATTACK_PATH = 'attack_path'; +export const IDENTITY_RISK = 'identity_risk'; +export const API_SECURITY = 'api_security'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/FormulaLimit.ts b/packages/datadog-api-client-v2/models/FormulaLimit.ts index 49f2914a7dfc..422d5f9ee4e1 100644 --- a/packages/datadog-api-client-v2/models/FormulaLimit.ts +++ b/packages/datadog-api-client-v2/models/FormulaLimit.ts @@ -5,20 +5,25 @@ */ import { QuerySortOrder } from "./QuerySortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Message for specifying limits to the number of values returned by a query. * This limit is only for scalar queries and has no effect on timeseries queries. - */ +*/ export class FormulaLimit { /** * The number of results to which to limit. - */ + */ "count"?: number; /** * Direction of sort. - */ + */ "order"?: QuerySortOrder; /** @@ -37,27 +42,53 @@ export class FormulaLimit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int32", + "count": { + "baseName": "count", + "type": "number", + "format": "int32", }, - order: { - baseName: "order", - type: "QuerySortOrder", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "order": { + "baseName": "order", + "type": "QuerySortOrder", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FormulaLimit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FullAPIKey.ts b/packages/datadog-api-client-v2/models/FullAPIKey.ts index 7a1557dd667e..41117ca2c327 100644 --- a/packages/datadog-api-client-v2/models/FullAPIKey.ts +++ b/packages/datadog-api-client-v2/models/FullAPIKey.ts @@ -7,27 +7,32 @@ import { APIKeyRelationships } from "./APIKeyRelationships"; import { APIKeysType } from "./APIKeysType"; import { FullAPIKeyAttributes } from "./FullAPIKeyAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog API key. - */ +*/ export class FullAPIKey { /** * Attributes of a full API key. - */ + */ "attributes"?: FullAPIKeyAttributes; /** * ID of the API key. - */ + */ "id"?: string; /** * Resources related to the API key. - */ + */ "relationships"?: APIKeyRelationships; /** * API Keys resource type. - */ + */ "type"?: APIKeysType; /** @@ -46,34 +51,60 @@ export class FullAPIKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FullAPIKeyAttributes", + "attributes": { + "baseName": "attributes", + "type": "FullAPIKeyAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "APIKeyRelationships", + "relationships": { + "baseName": "relationships", + "type": "APIKeyRelationships", }, - type: { - baseName: "type", - type: "APIKeysType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "APIKeysType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FullAPIKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.ts b/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.ts index 113fc14eab55..785cfc5df665 100644 --- a/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.ts +++ b/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of a full API key. - */ +*/ export class FullAPIKeyAttributes { /** * The category of the API key. - */ + */ "category"?: string; /** * Creation date of the API key. - */ + */ "createdAt"?: Date; /** * The API key. - */ + */ "key"?: string; /** * The last four characters of the API key. - */ + */ "last4"?: string; /** * Date the API key was last modified. - */ + */ "modifiedAt"?: Date; /** * Name of the API key. - */ + */ "name"?: string; /** * The remote config read enabled status. - */ + */ "remoteConfigReadEnabled"?: boolean; /** @@ -55,48 +60,74 @@ export class FullAPIKeyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "string", - }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "category": { + "baseName": "category", + "type": "string", }, - key: { - baseName: "key", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - last4: { - baseName: "last4", - type: "string", + "key": { + "baseName": "key", + "type": "string", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "last4": { + "baseName": "last4", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - remoteConfigReadEnabled: { - baseName: "remote_config_read_enabled", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "remoteConfigReadEnabled": { + "baseName": "remote_config_read_enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FullAPIKeyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FullApplicationKey.ts b/packages/datadog-api-client-v2/models/FullApplicationKey.ts index 2c89ffd0b7af..1a9334581e01 100644 --- a/packages/datadog-api-client-v2/models/FullApplicationKey.ts +++ b/packages/datadog-api-client-v2/models/FullApplicationKey.ts @@ -7,27 +7,32 @@ import { ApplicationKeyRelationships } from "./ApplicationKeyRelationships"; import { ApplicationKeysType } from "./ApplicationKeysType"; import { FullApplicationKeyAttributes } from "./FullApplicationKeyAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog application key. - */ +*/ export class FullApplicationKey { /** * Attributes of a full application key. - */ + */ "attributes"?: FullApplicationKeyAttributes; /** * ID of the application key. - */ + */ "id"?: string; /** * Resources related to the application key. - */ + */ "relationships"?: ApplicationKeyRelationships; /** * Application Keys resource type. - */ + */ "type"?: ApplicationKeysType; /** @@ -46,34 +51,60 @@ export class FullApplicationKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "FullApplicationKeyAttributes", + "attributes": { + "baseName": "attributes", + "type": "FullApplicationKeyAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "ApplicationKeyRelationships", + "relationships": { + "baseName": "relationships", + "type": "ApplicationKeyRelationships", }, - type: { - baseName: "type", - type: "ApplicationKeysType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationKeysType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FullApplicationKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.ts b/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.ts index 04d57ef19ce6..de78e6033b7c 100644 --- a/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.ts +++ b/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of a full application key. - */ +*/ export class FullApplicationKeyAttributes { /** * Creation date of the application key. - */ + */ "createdAt"?: Date; /** * The application key. - */ + */ "key"?: string; /** * The last four characters of the application key. - */ + */ "last4"?: string; /** * Name of the application key. - */ + */ "name"?: string; /** * Array of scopes to grant the application key. - */ + */ "scopes"?: Array; /** @@ -47,39 +52,65 @@ export class FullApplicationKeyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - key: { - baseName: "key", - type: "string", + "key": { + "baseName": "key", + "type": "string", }, - last4: { - baseName: "last4", - type: "string", + "last4": { + "baseName": "last4", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - scopes: { - baseName: "scopes", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scopes": { + "baseName": "scopes", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return FullApplicationKeyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPMetricNamespaceConfig.ts b/packages/datadog-api-client-v2/models/GCPMetricNamespaceConfig.ts index 1788ea239b69..36a88845119a 100644 --- a/packages/datadog-api-client-v2/models/GCPMetricNamespaceConfig.ts +++ b/packages/datadog-api-client-v2/models/GCPMetricNamespaceConfig.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Configuration for a GCP metric namespace. - */ +*/ export class GCPMetricNamespaceConfig { /** * When disabled, Datadog does not collect metrics that are related to this GCP metric namespace. - */ + */ "disabled"?: boolean; /** * The id of the GCP metric namespace. - */ + */ "id"?: string; /** @@ -35,26 +40,52 @@ export class GCPMetricNamespaceConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - disabled: { - baseName: "disabled", - type: "boolean", + "disabled": { + "baseName": "disabled", + "type": "boolean", }, - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPMetricNamespaceConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.ts b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.ts index 67f1ef612b0d..358d6871c627 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.ts @@ -6,23 +6,28 @@ import { GCPSTSDelegateAccountAttributes } from "./GCPSTSDelegateAccountAttributes"; import { GCPSTSDelegateAccountType } from "./GCPSTSDelegateAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Datadog principal service account info. - */ +*/ export class GCPSTSDelegateAccount { /** * Your delegate account attributes. - */ + */ "attributes"?: GCPSTSDelegateAccountAttributes; /** * The ID of the delegate service account. - */ + */ "id"?: string; /** * The type of account. - */ + */ "type"?: GCPSTSDelegateAccountType; /** @@ -41,30 +46,56 @@ export class GCPSTSDelegateAccount { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "GCPSTSDelegateAccountAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "GCPSTSDelegateAccountAttributes", }, - type: { - baseName: "type", - type: "GCPSTSDelegateAccountType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "GCPSTSDelegateAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSDelegateAccount.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.ts b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.ts index a821bb2e34f3..f28cc7bf4250 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Your delegate account attributes. - */ +*/ export class GCPSTSDelegateAccountAttributes { /** * Your organization's Datadog principal email address. - */ + */ "delegateAccountEmail"?: string; /** @@ -31,22 +36,48 @@ export class GCPSTSDelegateAccountAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - delegateAccountEmail: { - baseName: "delegate_account_email", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "delegateAccountEmail": { + "baseName": "delegate_account_email", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSDelegateAccountAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.ts b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.ts index dada532f002b..7ae0b2af3bae 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.ts @@ -5,15 +5,20 @@ */ import { GCPSTSDelegateAccount } from "./GCPSTSDelegateAccount"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Your delegate service account response data. - */ +*/ export class GCPSTSDelegateAccountResponse { /** * Datadog principal service account info. - */ + */ "data"?: GCPSTSDelegateAccount; /** @@ -32,22 +37,48 @@ export class GCPSTSDelegateAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GCPSTSDelegateAccount", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "GCPSTSDelegateAccount", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSDelegateAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.ts b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.ts index 006210752565..f8f74695e93c 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of account. - */ +*/ -export type GCPSTSDelegateAccountType = - | typeof GCP_STS_DELEGATE - | UnparsedObject; -export const GCP_STS_DELEGATE = "gcp_sts_delegate"; +export type GCPSTSDelegateAccountType = typeof GCP_STS_DELEGATE | UnparsedObject; +export const GCP_STS_DELEGATE = 'gcp_sts_delegate'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.ts index 329fe8155361..5baf53675988 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.ts @@ -7,27 +7,32 @@ import { GCPServiceAccountMeta } from "./GCPServiceAccountMeta"; import { GCPServiceAccountType } from "./GCPServiceAccountType"; import { GCPSTSServiceAccountAttributes } from "./GCPSTSServiceAccountAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Info on your service account. - */ +*/ export class GCPSTSServiceAccount { /** * Attributes associated with your service account. - */ + */ "attributes"?: GCPSTSServiceAccountAttributes; /** * Your service account's unique ID. - */ + */ "id"?: string; /** * Additional information related to your service account. - */ + */ "meta"?: GCPServiceAccountMeta; /** * The type of account. - */ + */ "type"?: GCPServiceAccountType; /** @@ -46,34 +51,60 @@ export class GCPSTSServiceAccount { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "GCPSTSServiceAccountAttributes", + "attributes": { + "baseName": "attributes", + "type": "GCPSTSServiceAccountAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - meta: { - baseName: "meta", - type: "GCPServiceAccountMeta", + "meta": { + "baseName": "meta", + "type": "GCPServiceAccountMeta", }, - type: { - baseName: "type", - type: "GCPServiceAccountType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "GCPServiceAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccount.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.ts index f16dcc46a527..aab6e3993d3e 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.ts @@ -5,52 +5,57 @@ */ import { GCPMetricNamespaceConfig } from "./GCPMetricNamespaceConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes associated with your service account. - */ +*/ export class GCPSTSServiceAccountAttributes { /** * Tags to be associated with GCP metrics and service checks from your account. - */ + */ "accountTags"?: Array; /** * Silence monitors for expected GCE instance shutdowns. - */ + */ "automute"?: boolean; /** * Your service account email address. - */ + */ "clientEmail"?: string; /** * List of filters to limit the Cloud Run revisions that are pulled into Datadog by using tags. * Only Cloud Run revision resources that apply to specified filters are imported into Datadog. - */ + */ "cloudRunRevisionFilters"?: Array; /** * Your Host Filters. - */ + */ "hostFilters"?: Array; /** * When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true. - */ + */ "isCspmEnabled"?: boolean; /** * When enabled, Datadog scans for all resource change data in your Google Cloud environment. - */ + */ "isResourceChangeCollectionEnabled"?: boolean; /** * When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account. - */ + */ "isSecurityCommandCenterEnabled"?: boolean; /** * Configurations for GCP metric namespaces. - */ + */ "metricNamespaceConfigs"?: Array; /** * When enabled, Datadog scans for all resources in your GCP environment. - */ + */ "resourceCollectionEnabled"?: boolean; /** @@ -69,58 +74,84 @@ export class GCPSTSServiceAccountAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountTags: { - baseName: "account_tags", - type: "Array", - }, - automute: { - baseName: "automute", - type: "boolean", + "accountTags": { + "baseName": "account_tags", + "type": "Array", }, - clientEmail: { - baseName: "client_email", - type: "string", + "automute": { + "baseName": "automute", + "type": "boolean", }, - cloudRunRevisionFilters: { - baseName: "cloud_run_revision_filters", - type: "Array", + "clientEmail": { + "baseName": "client_email", + "type": "string", }, - hostFilters: { - baseName: "host_filters", - type: "Array", + "cloudRunRevisionFilters": { + "baseName": "cloud_run_revision_filters", + "type": "Array", }, - isCspmEnabled: { - baseName: "is_cspm_enabled", - type: "boolean", + "hostFilters": { + "baseName": "host_filters", + "type": "Array", }, - isResourceChangeCollectionEnabled: { - baseName: "is_resource_change_collection_enabled", - type: "boolean", + "isCspmEnabled": { + "baseName": "is_cspm_enabled", + "type": "boolean", }, - isSecurityCommandCenterEnabled: { - baseName: "is_security_command_center_enabled", - type: "boolean", + "isResourceChangeCollectionEnabled": { + "baseName": "is_resource_change_collection_enabled", + "type": "boolean", }, - metricNamespaceConfigs: { - baseName: "metric_namespace_configs", - type: "Array", + "isSecurityCommandCenterEnabled": { + "baseName": "is_security_command_center_enabled", + "type": "boolean", }, - resourceCollectionEnabled: { - baseName: "resource_collection_enabled", - type: "boolean", + "metricNamespaceConfigs": { + "baseName": "metric_namespace_configs", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "resourceCollectionEnabled": { + "baseName": "resource_collection_enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.ts index 4caa6bd0bb87..64b96abb1c2f 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.ts @@ -5,15 +5,20 @@ */ import { GCPSTSServiceAccountData } from "./GCPSTSServiceAccountData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data on your newly generated service account. - */ +*/ export class GCPSTSServiceAccountCreateRequest { /** * Additional metadata on your generated service account. - */ + */ "data"?: GCPSTSServiceAccountData; /** @@ -32,22 +37,48 @@ export class GCPSTSServiceAccountCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GCPSTSServiceAccountData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "GCPSTSServiceAccountData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.ts index 3a49127dbdd8..890ed795c438 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.ts @@ -6,19 +6,24 @@ import { GCPServiceAccountType } from "./GCPServiceAccountType"; import { GCPSTSServiceAccountAttributes } from "./GCPSTSServiceAccountAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional metadata on your generated service account. - */ +*/ export class GCPSTSServiceAccountData { /** * Attributes associated with your service account. - */ + */ "attributes"?: GCPSTSServiceAccountAttributes; /** * The type of account. - */ + */ "type"?: GCPServiceAccountType; /** @@ -37,26 +42,52 @@ export class GCPSTSServiceAccountData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "GCPSTSServiceAccountAttributes", + "attributes": { + "baseName": "attributes", + "type": "GCPSTSServiceAccountAttributes", }, - type: { - baseName: "type", - type: "GCPServiceAccountType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "GCPServiceAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.ts index c197bdd758ba..753b1a536c04 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.ts @@ -5,15 +5,20 @@ */ import { GCPSTSServiceAccount } from "./GCPSTSServiceAccount"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The account creation response. - */ +*/ export class GCPSTSServiceAccountResponse { /** * Info on your service account. - */ + */ "data"?: GCPSTSServiceAccount; /** @@ -32,22 +37,48 @@ export class GCPSTSServiceAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GCPSTSServiceAccount", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "GCPSTSServiceAccount", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.ts index 761945690a73..d2e8fd3f061f 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { GCPSTSServiceAccountUpdateRequestData } from "./GCPSTSServiceAccountUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service account info. - */ +*/ export class GCPSTSServiceAccountUpdateRequest { /** * Data on your service account. - */ + */ "data"?: GCPSTSServiceAccountUpdateRequestData; /** @@ -32,22 +37,48 @@ export class GCPSTSServiceAccountUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GCPSTSServiceAccountUpdateRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "GCPSTSServiceAccountUpdateRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.ts index 9eb21ee8850b..7ecafecd1383 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.ts @@ -6,23 +6,28 @@ import { GCPServiceAccountType } from "./GCPServiceAccountType"; import { GCPSTSServiceAccountAttributes } from "./GCPSTSServiceAccountAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data on your service account. - */ +*/ export class GCPSTSServiceAccountUpdateRequestData { /** * Attributes associated with your service account. - */ + */ "attributes"?: GCPSTSServiceAccountAttributes; /** * Your service account's unique ID. - */ + */ "id"?: string; /** * The type of account. - */ + */ "type"?: GCPServiceAccountType; /** @@ -41,30 +46,56 @@ export class GCPSTSServiceAccountUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "GCPSTSServiceAccountAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "GCPSTSServiceAccountAttributes", }, - type: { - baseName: "type", - type: "GCPServiceAccountType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "GCPServiceAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.ts b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.ts index 06f2e52cc839..9467422c1378 100644 --- a/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.ts +++ b/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.ts @@ -5,15 +5,20 @@ */ import { GCPSTSServiceAccount } from "./GCPSTSServiceAccount"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing all your STS enabled accounts. - */ +*/ export class GCPSTSServiceAccountsResponse { /** * Array of GCP STS enabled service accounts. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class GCPSTSServiceAccountsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPSTSServiceAccountsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.ts b/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.ts index 582bef043ee7..3d09fb70c5dd 100644 --- a/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.ts +++ b/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional information related to your service account. - */ +*/ export class GCPServiceAccountMeta { /** * The current list of projects accessible from your service account. - */ + */ "accessibleProjects"?: Array; /** @@ -31,22 +36,48 @@ export class GCPServiceAccountMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accessibleProjects: { - baseName: "accessible_projects", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "accessibleProjects": { + "baseName": "accessible_projects", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GCPServiceAccountMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GCPServiceAccountType.ts b/packages/datadog-api-client-v2/models/GCPServiceAccountType.ts index 82bcbe705308..2e63c0b5cab6 100644 --- a/packages/datadog-api-client-v2/models/GCPServiceAccountType.ts +++ b/packages/datadog-api-client-v2/models/GCPServiceAccountType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of account. - */ +*/ export type GCPServiceAccountType = typeof GCP_SERVICE_ACCOUNT | UnparsedObject; -export const GCP_SERVICE_ACCOUNT = "gcp_service_account"; +export const GCP_SERVICE_ACCOUNT = 'gcp_service_account'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/GetActionConnectionResponse.ts b/packages/datadog-api-client-v2/models/GetActionConnectionResponse.ts index cdc5eb146445..913aa687a2c4 100644 --- a/packages/datadog-api-client-v2/models/GetActionConnectionResponse.ts +++ b/packages/datadog-api-client-v2/models/GetActionConnectionResponse.ts @@ -5,15 +5,20 @@ */ import { ActionConnectionData } from "./ActionConnectionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response for found connection - */ +*/ export class GetActionConnectionResponse { /** * Data related to the connection. - */ + */ "data"?: ActionConnectionData; /** @@ -32,22 +37,48 @@ export class GetActionConnectionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ActionConnectionData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ActionConnectionData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetActionConnectionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetAppResponse.ts b/packages/datadog-api-client-v2/models/GetAppResponse.ts index bd078d2ad7de..ccb4015899db 100644 --- a/packages/datadog-api-client-v2/models/GetAppResponse.ts +++ b/packages/datadog-api-client-v2/models/GetAppResponse.ts @@ -8,27 +8,32 @@ import { AppRelationship } from "./AppRelationship"; import { Deployment } from "./Deployment"; import { GetAppResponseData } from "./GetAppResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The full app definition response object. - */ +*/ export class GetAppResponse { /** * The data object containing the app definition. - */ + */ "data"?: GetAppResponseData; /** * Data on the version of the app that was published. - */ + */ "included"?: Array; /** * Metadata of an app. - */ + */ "meta"?: AppMeta; /** * The app's publication relationship and custom connections. - */ + */ "relationship"?: AppRelationship; /** @@ -47,34 +52,60 @@ export class GetAppResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GetAppResponseData", + "data": { + "baseName": "data", + "type": "GetAppResponseData", }, - included: { - baseName: "included", - type: "Array", + "included": { + "baseName": "included", + "type": "Array", }, - meta: { - baseName: "meta", - type: "AppMeta", + "meta": { + "baseName": "meta", + "type": "AppMeta", }, - relationship: { - baseName: "relationship", - type: "AppRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "relationship": { + "baseName": "relationship", + "type": "AppRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetAppResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetAppResponseData.ts b/packages/datadog-api-client-v2/models/GetAppResponseData.ts index 1103e1e5eba9..2c081b6d0647 100644 --- a/packages/datadog-api-client-v2/models/GetAppResponseData.ts +++ b/packages/datadog-api-client-v2/models/GetAppResponseData.ts @@ -6,23 +6,28 @@ import { AppDefinitionType } from "./AppDefinitionType"; import { GetAppResponseDataAttributes } from "./GetAppResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object containing the app definition. - */ +*/ export class GetAppResponseData { /** * The app definition attributes, such as name, description, and components. - */ + */ "attributes": GetAppResponseDataAttributes; /** * The ID of the app. - */ + */ "id": string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -41,34 +46,60 @@ export class GetAppResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "GetAppResponseDataAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "attributes": { + "baseName": "attributes", + "type": "GetAppResponseDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetAppResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.ts index 704e4f10201d..b2ad4c8c2d52 100644 --- a/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.ts @@ -6,39 +6,44 @@ import { ComponentGrid } from "./ComponentGrid"; import { Query } from "./Query"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The app definition attributes, such as name, description, and components. - */ +*/ export class GetAppResponseDataAttributes { /** * The UI components that make up the app. - */ + */ "components"?: Array; /** * A human-readable description for the app. - */ + */ "description"?: string; /** * Whether the app is marked as a favorite by the current user. - */ + */ "favorite"?: boolean; /** * The name of the app. - */ + */ "name"?: string; /** * An array of queries, such as external actions and state variables, that the app uses. - */ + */ "queries"?: Array; /** * The name of the root component of the app. This must be a `grid` component that contains all other components. - */ + */ "rootInstanceName"?: string; /** * A list of tags for the app, which can be used to filter apps. - */ + */ "tags"?: Array; /** @@ -57,46 +62,72 @@ export class GetAppResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - components: { - baseName: "components", - type: "Array", - }, - description: { - baseName: "description", - type: "string", + "components": { + "baseName": "components", + "type": "Array", }, - favorite: { - baseName: "favorite", - type: "boolean", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "favorite": { + "baseName": "favorite", + "type": "boolean", }, - queries: { - baseName: "queries", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - rootInstanceName: { - baseName: "rootInstanceName", - type: "string", + "queries": { + "baseName": "queries", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "rootInstanceName": { + "baseName": "rootInstanceName", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetAppResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetDataDeletionsResponseBody.ts b/packages/datadog-api-client-v2/models/GetDataDeletionsResponseBody.ts index 818533d20c89..7c44bd33656d 100644 --- a/packages/datadog-api-client-v2/models/GetDataDeletionsResponseBody.ts +++ b/packages/datadog-api-client-v2/models/GetDataDeletionsResponseBody.ts @@ -6,19 +6,24 @@ import { DataDeletionResponseItem } from "./DataDeletionResponseItem"; import { DataDeletionResponseMeta } from "./DataDeletionResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response from the get data deletion requests endpoint. - */ +*/ export class GetDataDeletionsResponseBody { /** * The list of data deletion requests that matches the query. - */ + */ "data"?: Array; /** * The metadata of the data deletion response. - */ + */ "meta"?: DataDeletionResponseMeta; /** @@ -37,26 +42,52 @@ export class GetDataDeletionsResponseBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "DataDeletionResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "DataDeletionResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetDataDeletionsResponseBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetDeviceAttributes.ts b/packages/datadog-api-client-v2/models/GetDeviceAttributes.ts index d3e8494d02be..10029de19048 100644 --- a/packages/datadog-api-client-v2/models/GetDeviceAttributes.ts +++ b/packages/datadog-api-client-v2/models/GetDeviceAttributes.ts @@ -4,87 +4,92 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The device attributes - */ +*/ export class GetDeviceAttributes { /** * A description of the device. - */ + */ "description"?: string; /** * The type of the device. - */ + */ "deviceType"?: string; /** * The integration of the device. - */ + */ "integration"?: string; /** * The IP address of the device. - */ + */ "ipAddress"?: string; /** * The location of the device. - */ + */ "location"?: string; /** * The model of the device. - */ + */ "model"?: string; /** * The name of the device. - */ + */ "name"?: string; /** * The operating system hostname of the device. - */ + */ "osHostname"?: string; /** * The operating system name of the device. - */ + */ "osName"?: string; /** * The operating system version of the device. - */ + */ "osVersion"?: string; /** * The ping status of the device. - */ + */ "pingStatus"?: string; /** * The product name of the device. - */ + */ "productName"?: string; /** * The serial number of the device. - */ + */ "serialNumber"?: string; /** * The status of the device. - */ + */ "status"?: string; /** * The subnet of the device. - */ + */ "subnet"?: string; /** * The device `sys_object_id`. - */ + */ "sysObjectId"?: string; /** * A list of tags associated with the device. - */ + */ "tags"?: Array; /** * The vendor of the device. - */ + */ "vendor"?: string; /** * The version of the device. - */ + */ "version"?: string; /** @@ -103,94 +108,120 @@ export class GetDeviceAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - deviceType: { - baseName: "device_type", - type: "string", - }, - integration: { - baseName: "integration", - type: "string", - }, - ipAddress: { - baseName: "ip_address", - type: "string", - }, - location: { - baseName: "location", - type: "string", - }, - model: { - baseName: "model", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - osHostname: { - baseName: "os_hostname", - type: "string", - }, - osName: { - baseName: "os_name", - type: "string", - }, - osVersion: { - baseName: "os_version", - type: "string", - }, - pingStatus: { - baseName: "ping_status", - type: "string", - }, - productName: { - baseName: "product_name", - type: "string", - }, - serialNumber: { - baseName: "serial_number", - type: "string", - }, - status: { - baseName: "status", - type: "string", - }, - subnet: { - baseName: "subnet", - type: "string", - }, - sysObjectId: { - baseName: "sys_object_id", - type: "string", - }, - tags: { - baseName: "tags", - type: "Array", - }, - vendor: { - baseName: "vendor", - type: "string", - }, - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "description": { + "baseName": "description", + "type": "string", + }, + "deviceType": { + "baseName": "device_type", + "type": "string", + }, + "integration": { + "baseName": "integration", + "type": "string", + }, + "ipAddress": { + "baseName": "ip_address", + "type": "string", + }, + "location": { + "baseName": "location", + "type": "string", + }, + "model": { + "baseName": "model", + "type": "string", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "osHostname": { + "baseName": "os_hostname", + "type": "string", + }, + "osName": { + "baseName": "os_name", + "type": "string", + }, + "osVersion": { + "baseName": "os_version", + "type": "string", + }, + "pingStatus": { + "baseName": "ping_status", + "type": "string", + }, + "productName": { + "baseName": "product_name", + "type": "string", + }, + "serialNumber": { + "baseName": "serial_number", + "type": "string", + }, + "status": { + "baseName": "status", + "type": "string", + }, + "subnet": { + "baseName": "subnet", + "type": "string", + }, + "sysObjectId": { + "baseName": "sys_object_id", + "type": "string", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "vendor": { + "baseName": "vendor", + "type": "string", + }, + "version": { + "baseName": "version", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetDeviceAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetDeviceData.ts b/packages/datadog-api-client-v2/models/GetDeviceData.ts index ed50d9e2fd37..c25d95e20b4c 100644 --- a/packages/datadog-api-client-v2/models/GetDeviceData.ts +++ b/packages/datadog-api-client-v2/models/GetDeviceData.ts @@ -5,23 +5,28 @@ */ import { GetDeviceAttributes } from "./GetDeviceAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Get device response data. - */ +*/ export class GetDeviceData { /** * The device attributes - */ + */ "attributes"?: GetDeviceAttributes; /** * The device ID - */ + */ "id"?: string; /** * The type of the resource. The value should always be device. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class GetDeviceData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "GetDeviceAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "GetDeviceAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetDeviceData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetDeviceResponse.ts b/packages/datadog-api-client-v2/models/GetDeviceResponse.ts index 6b84b69e302a..737278d76577 100644 --- a/packages/datadog-api-client-v2/models/GetDeviceResponse.ts +++ b/packages/datadog-api-client-v2/models/GetDeviceResponse.ts @@ -5,15 +5,20 @@ */ import { GetDeviceData } from "./GetDeviceData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The `GetDevice` operation's response. - */ +*/ export class GetDeviceResponse { /** * Get device response data. - */ + */ "data"?: GetDeviceData; /** @@ -32,22 +37,48 @@ export class GetDeviceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GetDeviceData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "GetDeviceData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetDeviceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetFindingResponse.ts b/packages/datadog-api-client-v2/models/GetFindingResponse.ts index 2b33241abf4e..f3e70153b7e1 100644 --- a/packages/datadog-api-client-v2/models/GetFindingResponse.ts +++ b/packages/datadog-api-client-v2/models/GetFindingResponse.ts @@ -5,15 +5,20 @@ */ import { DetailedFinding } from "./DetailedFinding"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting a finding. - */ +*/ export class GetFindingResponse { /** * A single finding with with message and resource configuration. - */ + */ "data": DetailedFinding; /** @@ -32,23 +37,49 @@ export class GetFindingResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "DetailedFinding", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "DetailedFinding", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetFindingResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetInterfacesData.ts b/packages/datadog-api-client-v2/models/GetInterfacesData.ts index 70c0422ad77b..454fe8b69bdc 100644 --- a/packages/datadog-api-client-v2/models/GetInterfacesData.ts +++ b/packages/datadog-api-client-v2/models/GetInterfacesData.ts @@ -5,23 +5,28 @@ */ import { InterfaceAttributes } from "./InterfaceAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The interfaces list data - */ +*/ export class GetInterfacesData { /** * The interface attributes - */ + */ "attributes"?: InterfaceAttributes; /** * The interface ID - */ + */ "id"?: string; /** * The type of the resource. The value should always be interface. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class GetInterfacesData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "InterfaceAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "InterfaceAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetInterfacesData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetInterfacesResponse.ts b/packages/datadog-api-client-v2/models/GetInterfacesResponse.ts index 6d85dfc3669c..30a9257978ac 100644 --- a/packages/datadog-api-client-v2/models/GetInterfacesResponse.ts +++ b/packages/datadog-api-client-v2/models/GetInterfacesResponse.ts @@ -5,15 +5,20 @@ */ import { GetInterfacesData } from "./GetInterfacesData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The `GetInterfaces` operation's response. - */ +*/ export class GetInterfacesResponse { /** * Get Interfaces response - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class GetInterfacesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetInterfacesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetRuleVersionHistoryData.ts b/packages/datadog-api-client-v2/models/GetRuleVersionHistoryData.ts index 140c9ddf9865..7d74297f52d4 100644 --- a/packages/datadog-api-client-v2/models/GetRuleVersionHistoryData.ts +++ b/packages/datadog-api-client-v2/models/GetRuleVersionHistoryData.ts @@ -6,23 +6,28 @@ import { GetRuleVersionHistoryDataType } from "./GetRuleVersionHistoryDataType"; import { RuleVersionHistory } from "./RuleVersionHistory"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for the rule version history. - */ +*/ export class GetRuleVersionHistoryData { /** * Response object containing the version history of a rule. - */ + */ "attributes"?: RuleVersionHistory; /** * ID of the rule. - */ + */ "id"?: string; /** * Type of data. - */ + */ "type"?: GetRuleVersionHistoryDataType; /** @@ -41,30 +46,56 @@ export class GetRuleVersionHistoryData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RuleVersionHistory", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "RuleVersionHistory", }, - type: { - baseName: "type", - type: "GetRuleVersionHistoryDataType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "GetRuleVersionHistoryDataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetRuleVersionHistoryData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetRuleVersionHistoryDataType.ts b/packages/datadog-api-client-v2/models/GetRuleVersionHistoryDataType.ts index 69b548936833..35577a0290e5 100644 --- a/packages/datadog-api-client-v2/models/GetRuleVersionHistoryDataType.ts +++ b/packages/datadog-api-client-v2/models/GetRuleVersionHistoryDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of data. - */ +*/ -export type GetRuleVersionHistoryDataType = - | typeof GETRULEVERSIONHISTORYRESPONSE - | UnparsedObject; -export const GETRULEVERSIONHISTORYRESPONSE = "GetRuleVersionHistoryResponse"; +export type GetRuleVersionHistoryDataType = typeof GETRULEVERSIONHISTORYRESPONSE | UnparsedObject; +export const GETRULEVERSIONHISTORYRESPONSE = 'GetRuleVersionHistoryResponse'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/GetRuleVersionHistoryResponse.ts b/packages/datadog-api-client-v2/models/GetRuleVersionHistoryResponse.ts index 7910ba9a43b4..56c068f73435 100644 --- a/packages/datadog-api-client-v2/models/GetRuleVersionHistoryResponse.ts +++ b/packages/datadog-api-client-v2/models/GetRuleVersionHistoryResponse.ts @@ -5,15 +5,20 @@ */ import { GetRuleVersionHistoryData } from "./GetRuleVersionHistoryData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for getting the rule version history. - */ +*/ export class GetRuleVersionHistoryResponse { /** * Data for the rule version history. - */ + */ "data"?: GetRuleVersionHistoryData; /** @@ -32,22 +37,48 @@ export class GetRuleVersionHistoryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "GetRuleVersionHistoryData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "GetRuleVersionHistoryData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetRuleVersionHistoryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetSBOMResponse.ts b/packages/datadog-api-client-v2/models/GetSBOMResponse.ts index ef953d4cbe0a..fb762fcd47b3 100644 --- a/packages/datadog-api-client-v2/models/GetSBOMResponse.ts +++ b/packages/datadog-api-client-v2/models/GetSBOMResponse.ts @@ -5,15 +5,20 @@ */ import { SBOM } from "./SBOM"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting an SBOM. - */ +*/ export class GetSBOMResponse { /** * A single SBOM - */ + */ "data": SBOM; /** @@ -32,23 +37,49 @@ export class GetSBOMResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SBOM", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SBOM", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetSBOMResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.ts b/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.ts index cb0eb266ea55..c6d35f82d149 100644 --- a/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.ts +++ b/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Specifies the order of returned team memberships - */ +*/ -export type GetTeamMembershipsSort = - | typeof MANAGER_NAME - | typeof _MANAGER_NAME - | typeof NAME - | typeof _NAME - | typeof HANDLE - | typeof _HANDLE - | typeof EMAIL - | typeof _EMAIL - | UnparsedObject; -export const MANAGER_NAME = "manager_name"; -export const _MANAGER_NAME = "-manager_name"; -export const NAME = "name"; -export const _NAME = "-name"; -export const HANDLE = "handle"; -export const _HANDLE = "-handle"; -export const EMAIL = "email"; -export const _EMAIL = "-email"; +export type GetTeamMembershipsSort = typeof MANAGER_NAME| typeof _MANAGER_NAME| typeof NAME| typeof _NAME| typeof HANDLE| typeof _HANDLE| typeof EMAIL| typeof _EMAIL | UnparsedObject; +export const MANAGER_NAME = 'manager_name'; +export const _MANAGER_NAME = '-manager_name'; +export const NAME = 'name'; +export const _NAME = '-name'; +export const HANDLE = 'handle'; +export const _HANDLE = '-handle'; +export const EMAIL = 'email'; +export const _EMAIL = '-email'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/GetWorkflowResponse.ts b/packages/datadog-api-client-v2/models/GetWorkflowResponse.ts index 00d56765140c..646c56c4e5a0 100644 --- a/packages/datadog-api-client-v2/models/GetWorkflowResponse.ts +++ b/packages/datadog-api-client-v2/models/GetWorkflowResponse.ts @@ -5,15 +5,20 @@ */ import { WorkflowData } from "./WorkflowData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after getting a workflow. - */ +*/ export class GetWorkflowResponse { /** * Data related to the workflow. - */ + */ "data"?: WorkflowData; /** @@ -32,22 +37,48 @@ export class GetWorkflowResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GetWorkflowResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GithubWebhookTrigger.ts b/packages/datadog-api-client-v2/models/GithubWebhookTrigger.ts index d5c41fb7ac73..f5a24173e021 100644 --- a/packages/datadog-api-client-v2/models/GithubWebhookTrigger.ts +++ b/packages/datadog-api-client-v2/models/GithubWebhookTrigger.ts @@ -5,15 +5,20 @@ */ import { TriggerRateLimit } from "./TriggerRateLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from a GitHub webhook. To trigger a workflow from GitHub, you must set a `webhookSecret`. In your GitHub Webhook Settings, set the Payload URL to "base_url"/api/v2/workflows/"workflow_id"/webhook?orgId="org_id", select application/json for the content type, and be highly recommend enabling SSL verification for security. The workflow must be published. - */ +*/ export class GithubWebhookTrigger { /** * Defines a rate limit for a trigger. - */ + */ "rateLimit"?: TriggerRateLimit; /** @@ -32,22 +37,48 @@ export class GithubWebhookTrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rateLimit: { - baseName: "rateLimit", - type: "TriggerRateLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rateLimit": { + "baseName": "rateLimit", + "type": "TriggerRateLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GithubWebhookTrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GithubWebhookTriggerWrapper.ts b/packages/datadog-api-client-v2/models/GithubWebhookTriggerWrapper.ts index 6892a8be9af2..a870e7cc1350 100644 --- a/packages/datadog-api-client-v2/models/GithubWebhookTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/GithubWebhookTriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { GithubWebhookTrigger } from "./GithubWebhookTrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a GitHub webhook-based trigger. - */ +*/ export class GithubWebhookTriggerWrapper { /** * Trigger a workflow from a GitHub webhook. To trigger a workflow from GitHub, you must set a `webhookSecret`. In your GitHub Webhook Settings, set the Payload URL to "base_url"/api/v2/workflows/"workflow_id"/webhook?orgId="org_id", select application/json for the content type, and be highly recommend enabling SSL verification for security. The workflow must be published. - */ + */ "githubWebhookTrigger": GithubWebhookTrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class GithubWebhookTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - githubWebhookTrigger: { - baseName: "githubWebhookTrigger", - type: "GithubWebhookTrigger", - required: true, + "githubWebhookTrigger": { + "baseName": "githubWebhookTrigger", + "type": "GithubWebhookTrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GithubWebhookTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/GroupScalarColumn.ts b/packages/datadog-api-client-v2/models/GroupScalarColumn.ts index 55cf41cfe70e..d3921f393abf 100644 --- a/packages/datadog-api-client-v2/models/GroupScalarColumn.ts +++ b/packages/datadog-api-client-v2/models/GroupScalarColumn.ts @@ -5,23 +5,28 @@ */ import { ScalarColumnTypeGroup } from "./ScalarColumnTypeGroup"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A column containing the tag keys and values in a group. - */ +*/ export class GroupScalarColumn { /** * The name of the tag key or group. - */ + */ "name"?: string; /** * The type of column present for groups. - */ + */ "type"?: ScalarColumnTypeGroup; /** * The array of tag values for each group found for the results of the formulas or queries. - */ + */ "values"?: Array>; /** @@ -40,30 +45,56 @@ export class GroupScalarColumn { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - type: { - baseName: "type", - type: "ScalarColumnTypeGroup", + "name": { + "baseName": "name", + "type": "string", }, - values: { - baseName: "values", - type: "Array>", + "type": { + "baseName": "type", + "type": "ScalarColumnTypeGroup", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array>", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return GroupScalarColumn.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPBody.ts b/packages/datadog-api-client-v2/models/HTTPBody.ts index 6f52c29fc018..0605167f51b4 100644 --- a/packages/datadog-api-client-v2/models/HTTPBody.ts +++ b/packages/datadog-api-client-v2/models/HTTPBody.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPBody` object. - */ +*/ export class HTTPBody { /** * Serialized body content - */ + */ "content"?: string; /** * Content type of the body - */ + */ "contentType"?: string; /** @@ -35,26 +40,52 @@ export class HTTPBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - content: { - baseName: "content", - type: "string", + "content": { + "baseName": "content", + "type": "string", }, - contentType: { - baseName: "content_type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "contentType": { + "baseName": "content_type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPCIAppError.ts b/packages/datadog-api-client-v2/models/HTTPCIAppError.ts index f8a0166137b9..8d99835dd1c8 100644 --- a/packages/datadog-api-client-v2/models/HTTPCIAppError.ts +++ b/packages/datadog-api-client-v2/models/HTTPCIAppError.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of errors. - */ +*/ export class HTTPCIAppError { /** * Error message. - */ + */ "detail"?: string; /** * Error code. - */ + */ "status"?: string; /** * Error title. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class HTTPCIAppError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - detail: { - baseName: "detail", - type: "string", - }, - status: { - baseName: "status", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPCIAppError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPCIAppErrors.ts b/packages/datadog-api-client-v2/models/HTTPCIAppErrors.ts index 9bc19bc1a5ff..f85b708da14a 100644 --- a/packages/datadog-api-client-v2/models/HTTPCIAppErrors.ts +++ b/packages/datadog-api-client-v2/models/HTTPCIAppErrors.ts @@ -5,15 +5,20 @@ */ import { HTTPCIAppError } from "./HTTPCIAppError"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Errors occurred. - */ +*/ export class HTTPCIAppErrors { /** * Structured errors. - */ + */ "errors"?: Array; /** @@ -32,22 +37,48 @@ export class HTTPCIAppErrors { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPCIAppErrors.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPCredentials.ts b/packages/datadog-api-client-v2/models/HTTPCredentials.ts index 3b2bfdd7e82a..23d006b83ce5 100644 --- a/packages/datadog-api-client-v2/models/HTTPCredentials.ts +++ b/packages/datadog-api-client-v2/models/HTTPCredentials.ts @@ -5,10 +5,15 @@ */ import { HTTPTokenAuth } from "./HTTPTokenAuth"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `HTTPCredentials` object. - */ +*/ -export type HTTPCredentials = HTTPTokenAuth | UnparsedObject; +export type HTTPCredentials = HTTPTokenAuth | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.ts b/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.ts index 6714f74715b5..90d68d72460b 100644 --- a/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.ts +++ b/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.ts @@ -5,10 +5,15 @@ */ import { HTTPTokenAuthUpdate } from "./HTTPTokenAuthUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `HTTPCredentialsUpdate` object. - */ +*/ -export type HTTPCredentialsUpdate = HTTPTokenAuthUpdate | UnparsedObject; +export type HTTPCredentialsUpdate = HTTPTokenAuthUpdate | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/HTTPHeader.ts b/packages/datadog-api-client-v2/models/HTTPHeader.ts index c19fc848ea49..65f91c9e5dec 100644 --- a/packages/datadog-api-client-v2/models/HTTPHeader.ts +++ b/packages/datadog-api-client-v2/models/HTTPHeader.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPHeader` object. - */ +*/ export class HTTPHeader { /** * The `HTTPHeader` `name`. - */ + */ "name": string; /** * The `HTTPHeader` `value`. - */ + */ "value": string; /** @@ -35,28 +40,54 @@ export class HTTPHeader { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPHeader.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.ts b/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.ts index e81a0076937e..3489d85abfc4 100644 --- a/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.ts +++ b/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPHeaderUpdate` object. - */ +*/ export class HTTPHeaderUpdate { /** * Should the header be deleted. - */ + */ "deleted"?: boolean; /** * The `HTTPHeaderUpdate` `name`. - */ + */ "name": string; /** * The `HTTPHeaderUpdate` `value`. - */ + */ "value"?: string; /** @@ -39,31 +44,57 @@ export class HTTPHeaderUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deleted: { - baseName: "deleted", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", - required: true, + "deleted": { + "baseName": "deleted", + "type": "boolean", }, - value: { - baseName: "value", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPHeaderUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPIntegration.ts b/packages/datadog-api-client-v2/models/HTTPIntegration.ts index 38cdcdd324dc..88749c6e5352 100644 --- a/packages/datadog-api-client-v2/models/HTTPIntegration.ts +++ b/packages/datadog-api-client-v2/models/HTTPIntegration.ts @@ -6,23 +6,28 @@ import { HTTPCredentials } from "./HTTPCredentials"; import { HTTPIntegrationType } from "./HTTPIntegrationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPIntegration` object. - */ +*/ export class HTTPIntegration { /** * Base HTTP url for the integration - */ + */ "baseUrl": string; /** * The definition of `HTTPCredentials` object. - */ + */ "credentials": HTTPCredentials; /** * The definition of `HTTPIntegrationType` object. - */ + */ "type": HTTPIntegrationType; /** @@ -41,33 +46,59 @@ export class HTTPIntegration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - baseUrl: { - baseName: "base_url", - type: "string", - required: true, - }, - credentials: { - baseName: "credentials", - type: "HTTPCredentials", - required: true, + "baseUrl": { + "baseName": "base_url", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "HTTPIntegrationType", - required: true, + "credentials": { + "baseName": "credentials", + "type": "HTTPCredentials", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "HTTPIntegrationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPIntegration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPIntegrationType.ts b/packages/datadog-api-client-v2/models/HTTPIntegrationType.ts index 55a147ca6235..585f9d64745e 100644 --- a/packages/datadog-api-client-v2/models/HTTPIntegrationType.ts +++ b/packages/datadog-api-client-v2/models/HTTPIntegrationType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `HTTPIntegrationType` object. - */ +*/ export type HTTPIntegrationType = typeof HTTP | UnparsedObject; -export const HTTP = "HTTP"; +export const HTTP = 'HTTP'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.ts b/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.ts index 093177ac0776..46188535cdf9 100644 --- a/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.ts +++ b/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.ts @@ -6,23 +6,28 @@ import { HTTPCredentialsUpdate } from "./HTTPCredentialsUpdate"; import { HTTPIntegrationType } from "./HTTPIntegrationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPIntegrationUpdate` object. - */ +*/ export class HTTPIntegrationUpdate { /** * Base HTTP url for the integration - */ + */ "baseUrl"?: string; /** * The definition of `HTTPCredentialsUpdate` object. - */ + */ "credentials"?: HTTPCredentialsUpdate; /** * The definition of `HTTPIntegrationType` object. - */ + */ "type": HTTPIntegrationType; /** @@ -41,31 +46,57 @@ export class HTTPIntegrationUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - baseUrl: { - baseName: "base_url", - type: "string", - }, - credentials: { - baseName: "credentials", - type: "HTTPCredentialsUpdate", + "baseUrl": { + "baseName": "base_url", + "type": "string", }, - type: { - baseName: "type", - type: "HTTPIntegrationType", - required: true, + "credentials": { + "baseName": "credentials", + "type": "HTTPCredentialsUpdate", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "HTTPIntegrationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPIntegrationUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPLogError.ts b/packages/datadog-api-client-v2/models/HTTPLogError.ts index 334839bf9e93..141833daf0ef 100644 --- a/packages/datadog-api-client-v2/models/HTTPLogError.ts +++ b/packages/datadog-api-client-v2/models/HTTPLogError.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of errors. - */ +*/ export class HTTPLogError { /** * Error message. - */ + */ "detail"?: string; /** * Error code. - */ + */ "status"?: string; /** * Error title. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class HTTPLogError { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - detail: { - baseName: "detail", - type: "string", - }, - status: { - baseName: "status", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPLogError.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPLogErrors.ts b/packages/datadog-api-client-v2/models/HTTPLogErrors.ts index 2936937bd361..cd8f00d94f63 100644 --- a/packages/datadog-api-client-v2/models/HTTPLogErrors.ts +++ b/packages/datadog-api-client-v2/models/HTTPLogErrors.ts @@ -5,15 +5,20 @@ */ import { HTTPLogError } from "./HTTPLogError"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Invalid query performed. - */ +*/ export class HTTPLogErrors { /** * Structured errors. - */ + */ "errors"?: Array; /** @@ -32,22 +37,48 @@ export class HTTPLogErrors { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPLogErrors.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPLogItem.ts b/packages/datadog-api-client-v2/models/HTTPLogItem.ts index b496711dfd45..4866bfa1f976 100644 --- a/packages/datadog-api-client-v2/models/HTTPLogItem.ts +++ b/packages/datadog-api-client-v2/models/HTTPLogItem.ts @@ -4,37 +4,42 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Logs that are sent over HTTP. - */ +*/ export class HTTPLogItem { /** * The integration name associated with your log: the technology from which the log originated. * When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. * See [reserved attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes). - */ + */ "ddsource"?: string; /** * Tags associated with your logs. - */ + */ "ddtags"?: string; /** * The name of the originating host of the log. - */ + */ "hostname"?: string; /** * The message [reserved attribute](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes) * of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. * That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. - */ + */ "message": string; /** * The name of the application or service generating the log events. * It is used to switch from Logs to APM, so make sure you define the same value when you use both products. * See [reserved attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes). - */ + */ "service"?: string; /** @@ -53,39 +58,65 @@ export class HTTPLogItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ddsource: { - baseName: "ddsource", - type: "string", + "ddsource": { + "baseName": "ddsource", + "type": "string", }, - ddtags: { - baseName: "ddtags", - type: "string", + "ddtags": { + "baseName": "ddtags", + "type": "string", }, - hostname: { - baseName: "hostname", - type: "string", + "hostname": { + "baseName": "hostname", + "type": "string", }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - service: { - baseName: "service", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPLogItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPToken.ts b/packages/datadog-api-client-v2/models/HTTPToken.ts index ae48410d2f65..102e3984fe8e 100644 --- a/packages/datadog-api-client-v2/models/HTTPToken.ts +++ b/packages/datadog-api-client-v2/models/HTTPToken.ts @@ -5,23 +5,28 @@ */ import { TokenType } from "./TokenType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPToken` object. - */ +*/ export class HTTPToken { /** * The `HTTPToken` `name`. - */ + */ "name": string; /** * The definition of `TokenType` object. - */ + */ "type": TokenType; /** * The `HTTPToken` `value`. - */ + */ "value": string; /** @@ -40,33 +45,59 @@ export class HTTPToken { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "TokenType", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "TokenType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPToken.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPTokenAuth.ts b/packages/datadog-api-client-v2/models/HTTPTokenAuth.ts index f9c857b5ac86..356468796380 100644 --- a/packages/datadog-api-client-v2/models/HTTPTokenAuth.ts +++ b/packages/datadog-api-client-v2/models/HTTPTokenAuth.ts @@ -9,31 +9,36 @@ import { HTTPToken } from "./HTTPToken"; import { HTTPTokenAuthType } from "./HTTPTokenAuthType"; import { UrlParam } from "./UrlParam"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPTokenAuth` object. - */ +*/ export class HTTPTokenAuth { /** * The definition of `HTTPBody` object. - */ + */ "body"?: HTTPBody; /** * The `HTTPTokenAuth` `headers`. - */ + */ "headers"?: Array; /** * The `HTTPTokenAuth` `tokens`. - */ + */ "tokens"?: Array; /** * The definition of `HTTPTokenAuthType` object. - */ + */ "type": HTTPTokenAuthType; /** * The `HTTPTokenAuth` `url_parameters`. - */ + */ "urlParameters"?: Array; /** @@ -52,39 +57,65 @@ export class HTTPTokenAuth { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - body: { - baseName: "body", - type: "HTTPBody", + "body": { + "baseName": "body", + "type": "HTTPBody", }, - headers: { - baseName: "headers", - type: "Array", + "headers": { + "baseName": "headers", + "type": "Array", }, - tokens: { - baseName: "tokens", - type: "Array", + "tokens": { + "baseName": "tokens", + "type": "Array", }, - type: { - baseName: "type", - type: "HTTPTokenAuthType", - required: true, + "type": { + "baseName": "type", + "type": "HTTPTokenAuthType", + "required": true, }, - urlParameters: { - baseName: "url_parameters", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "urlParameters": { + "baseName": "url_parameters", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPTokenAuth.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPTokenAuthType.ts b/packages/datadog-api-client-v2/models/HTTPTokenAuthType.ts index c4c23cfa0682..454341a0fdfe 100644 --- a/packages/datadog-api-client-v2/models/HTTPTokenAuthType.ts +++ b/packages/datadog-api-client-v2/models/HTTPTokenAuthType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `HTTPTokenAuthType` object. - */ +*/ export type HTTPTokenAuthType = typeof HTTPTOKENAUTH | UnparsedObject; -export const HTTPTOKENAUTH = "HTTPTokenAuth"; +export const HTTPTOKENAUTH = 'HTTPTokenAuth'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.ts b/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.ts index 2e3222c2da72..43c4267bf67c 100644 --- a/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.ts +++ b/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.ts @@ -9,31 +9,36 @@ import { HTTPTokenAuthType } from "./HTTPTokenAuthType"; import { HTTPTokenUpdate } from "./HTTPTokenUpdate"; import { UrlParamUpdate } from "./UrlParamUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPTokenAuthUpdate` object. - */ +*/ export class HTTPTokenAuthUpdate { /** * The definition of `HTTPBody` object. - */ + */ "body"?: HTTPBody; /** * The `HTTPTokenAuthUpdate` `headers`. - */ + */ "headers"?: Array; /** * The `HTTPTokenAuthUpdate` `tokens`. - */ + */ "tokens"?: Array; /** * The definition of `HTTPTokenAuthType` object. - */ + */ "type": HTTPTokenAuthType; /** * The `HTTPTokenAuthUpdate` `url_parameters`. - */ + */ "urlParameters"?: Array; /** @@ -52,39 +57,65 @@ export class HTTPTokenAuthUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - body: { - baseName: "body", - type: "HTTPBody", + "body": { + "baseName": "body", + "type": "HTTPBody", }, - headers: { - baseName: "headers", - type: "Array", + "headers": { + "baseName": "headers", + "type": "Array", }, - tokens: { - baseName: "tokens", - type: "Array", + "tokens": { + "baseName": "tokens", + "type": "Array", }, - type: { - baseName: "type", - type: "HTTPTokenAuthType", - required: true, + "type": { + "baseName": "type", + "type": "HTTPTokenAuthType", + "required": true, }, - urlParameters: { - baseName: "url_parameters", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "urlParameters": { + "baseName": "url_parameters", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPTokenAuthUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HTTPTokenUpdate.ts b/packages/datadog-api-client-v2/models/HTTPTokenUpdate.ts index 436dc4b8e0e6..db30e662c4a4 100644 --- a/packages/datadog-api-client-v2/models/HTTPTokenUpdate.ts +++ b/packages/datadog-api-client-v2/models/HTTPTokenUpdate.ts @@ -5,27 +5,32 @@ */ import { TokenType } from "./TokenType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `HTTPTokenUpdate` object. - */ +*/ export class HTTPTokenUpdate { /** * Should the header be deleted. - */ + */ "deleted"?: boolean; /** * The `HTTPToken` `name`. - */ + */ "name": string; /** * The definition of `TokenType` object. - */ + */ "type": TokenType; /** * The `HTTPToken` `value`. - */ + */ "value": string; /** @@ -44,37 +49,63 @@ export class HTTPTokenUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deleted: { - baseName: "deleted", - type: "boolean", + "deleted": { + "baseName": "deleted", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "TokenType", - required: true, + "type": { + "baseName": "type", + "type": "TokenType", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HTTPTokenUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HistoricalJobDataType.ts b/packages/datadog-api-client-v2/models/HistoricalJobDataType.ts index 398cd3294ceb..0e5b9ec336ef 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobDataType.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of payload. - */ +*/ -export type HistoricalJobDataType = - | typeof HISTORICALDETECTIONSJOB - | UnparsedObject; -export const HISTORICALDETECTIONSJOB = "historicalDetectionsJob"; +export type HistoricalJobDataType = typeof HISTORICALDETECTIONSJOB | UnparsedObject; +export const HISTORICALDETECTIONSJOB = 'historicalDetectionsJob'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/HistoricalJobListMeta.ts b/packages/datadog-api-client-v2/models/HistoricalJobListMeta.ts index 6ec7f0bf7000..84a0a6e4d619 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobListMeta.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobListMeta.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata about the list of jobs. - */ +*/ export class HistoricalJobListMeta { /** * Number of jobs in the list. - */ + */ "totalCount"?: number; /** @@ -31,23 +36,49 @@ export class HistoricalJobListMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "totalCount", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "totalCount", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HistoricalJobListMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HistoricalJobOptions.ts b/packages/datadog-api-client-v2/models/HistoricalJobOptions.ts index b4f35991c954..52ecba6a9722 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobOptions.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobOptions.ts @@ -11,42 +11,47 @@ import { SecurityMonitoringRuleMaxSignalDuration } from "./SecurityMonitoringRul import { SecurityMonitoringRuleNewValueOptions } from "./SecurityMonitoringRuleNewValueOptions"; import { SecurityMonitoringRuleThirdPartyOptions } from "./SecurityMonitoringRuleThirdPartyOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Job options. - */ +*/ export class HistoricalJobOptions { /** * The detection method. - */ + */ "detectionMethod"?: SecurityMonitoringRuleDetectionMethod; /** * A time window is specified to match when at least one of the cases matches true. This is a sliding window * and evaluates in real time. For third party detection method, this field is not used. - */ + */ "evaluationWindow"?: SecurityMonitoringRuleEvaluationWindow; /** * Options on impossible travel detection method. - */ + */ "impossibleTravelOptions"?: SecurityMonitoringRuleImpossibleTravelOptions; /** * Once a signal is generated, the signal will remain “open” if a case is matched at least once within * this keep alive window. For third party detection method, this field is not used. - */ + */ "keepAlive"?: SecurityMonitoringRuleKeepAlive; /** * A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. * This time is calculated from the first seen timestamp. - */ + */ "maxSignalDuration"?: SecurityMonitoringRuleMaxSignalDuration; /** * Options on new value detection method. - */ + */ "newValueOptions"?: SecurityMonitoringRuleNewValueOptions; /** * Options on third party detection method. - */ + */ "thirdPartyRuleOptions"?: SecurityMonitoringRuleThirdPartyOptions; /** @@ -65,49 +70,75 @@ export class HistoricalJobOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - detectionMethod: { - baseName: "detectionMethod", - type: "SecurityMonitoringRuleDetectionMethod", - }, - evaluationWindow: { - baseName: "evaluationWindow", - type: "SecurityMonitoringRuleEvaluationWindow", - format: "int32", + "detectionMethod": { + "baseName": "detectionMethod", + "type": "SecurityMonitoringRuleDetectionMethod", }, - impossibleTravelOptions: { - baseName: "impossibleTravelOptions", - type: "SecurityMonitoringRuleImpossibleTravelOptions", + "evaluationWindow": { + "baseName": "evaluationWindow", + "type": "SecurityMonitoringRuleEvaluationWindow", + "format": "int32", }, - keepAlive: { - baseName: "keepAlive", - type: "SecurityMonitoringRuleKeepAlive", - format: "int32", + "impossibleTravelOptions": { + "baseName": "impossibleTravelOptions", + "type": "SecurityMonitoringRuleImpossibleTravelOptions", }, - maxSignalDuration: { - baseName: "maxSignalDuration", - type: "SecurityMonitoringRuleMaxSignalDuration", - format: "int32", + "keepAlive": { + "baseName": "keepAlive", + "type": "SecurityMonitoringRuleKeepAlive", + "format": "int32", }, - newValueOptions: { - baseName: "newValueOptions", - type: "SecurityMonitoringRuleNewValueOptions", + "maxSignalDuration": { + "baseName": "maxSignalDuration", + "type": "SecurityMonitoringRuleMaxSignalDuration", + "format": "int32", }, - thirdPartyRuleOptions: { - baseName: "thirdPartyRuleOptions", - type: "SecurityMonitoringRuleThirdPartyOptions", + "newValueOptions": { + "baseName": "newValueOptions", + "type": "SecurityMonitoringRuleNewValueOptions", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "thirdPartyRuleOptions": { + "baseName": "thirdPartyRuleOptions", + "type": "SecurityMonitoringRuleThirdPartyOptions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HistoricalJobOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HistoricalJobQuery.ts b/packages/datadog-api-client-v2/models/HistoricalJobQuery.ts index a88b8d5f7332..0b6984cf5b6b 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobQuery.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobQuery.ts @@ -6,43 +6,48 @@ import { SecurityMonitoringRuleQueryAggregation } from "./SecurityMonitoringRuleQueryAggregation"; import { SecurityMonitoringStandardDataSource } from "./SecurityMonitoringStandardDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query for selecting logs analyzed by the historical job. - */ +*/ export class HistoricalJobQuery { /** * The aggregation type. - */ + */ "aggregation"?: SecurityMonitoringRuleQueryAggregation; /** * Source of events, either logs or audit trail. - */ + */ "dataSource"?: SecurityMonitoringStandardDataSource; /** * Field for which the cardinality is measured. Sent as an array. - */ + */ "distinctFields"?: Array; /** * Fields to group by. - */ + */ "groupByFields"?: Array; /** * When false, events without a group-by value are ignored by the query. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values. - */ + */ "hasOptionalGroupByFields"?: boolean; /** * Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values. - */ + */ "metrics"?: Array; /** * Name of the query. - */ + */ "name"?: string; /** * Query to run on logs. - */ + */ "query"?: string; /** @@ -61,50 +66,76 @@ export class HistoricalJobQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "SecurityMonitoringRuleQueryAggregation", + "aggregation": { + "baseName": "aggregation", + "type": "SecurityMonitoringRuleQueryAggregation", }, - dataSource: { - baseName: "dataSource", - type: "SecurityMonitoringStandardDataSource", + "dataSource": { + "baseName": "dataSource", + "type": "SecurityMonitoringStandardDataSource", }, - distinctFields: { - baseName: "distinctFields", - type: "Array", + "distinctFields": { + "baseName": "distinctFields", + "type": "Array", }, - groupByFields: { - baseName: "groupByFields", - type: "Array", + "groupByFields": { + "baseName": "groupByFields", + "type": "Array", }, - hasOptionalGroupByFields: { - baseName: "hasOptionalGroupByFields", - type: "boolean", + "hasOptionalGroupByFields": { + "baseName": "hasOptionalGroupByFields", + "type": "boolean", }, - metrics: { - baseName: "metrics", - type: "Array", + "metrics": { + "baseName": "metrics", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HistoricalJobQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HistoricalJobResponse.ts b/packages/datadog-api-client-v2/models/HistoricalJobResponse.ts index 3efc0b603a73..95443767e5ce 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobResponse.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobResponse.ts @@ -5,15 +5,20 @@ */ import { HistoricalJobResponseData } from "./HistoricalJobResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Historical job response. - */ +*/ export class HistoricalJobResponse { /** * Historical job response data. - */ + */ "data"?: HistoricalJobResponseData; /** @@ -32,22 +37,48 @@ export class HistoricalJobResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "HistoricalJobResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "HistoricalJobResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HistoricalJobResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.ts b/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.ts index 82ddf63df8dd..59374e7448ab 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.ts @@ -5,43 +5,48 @@ */ import { JobDefinition } from "./JobDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Historical job attributes. - */ +*/ export class HistoricalJobResponseAttributes { /** * Time when the job was created. - */ + */ "createdAt"?: string; /** * The handle of the user who created the job. - */ + */ "createdByHandle"?: string; /** * The name of the user who created the job. - */ + */ "createdByName"?: string; /** * ID of the rule used to create the job (if it is created from a rule). - */ + */ "createdFromRuleId"?: string; /** * Definition of a historical job. - */ + */ "jobDefinition"?: JobDefinition; /** * Job name. - */ + */ "jobName"?: string; /** * Job status. - */ + */ "jobStatus"?: string; /** * Last modification time of the job. - */ + */ "modifiedAt"?: string; /** @@ -60,50 +65,76 @@ export class HistoricalJobResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "string", + "createdAt": { + "baseName": "createdAt", + "type": "string", }, - createdByHandle: { - baseName: "createdByHandle", - type: "string", + "createdByHandle": { + "baseName": "createdByHandle", + "type": "string", }, - createdByName: { - baseName: "createdByName", - type: "string", + "createdByName": { + "baseName": "createdByName", + "type": "string", }, - createdFromRuleId: { - baseName: "createdFromRuleId", - type: "string", + "createdFromRuleId": { + "baseName": "createdFromRuleId", + "type": "string", }, - jobDefinition: { - baseName: "jobDefinition", - type: "JobDefinition", + "jobDefinition": { + "baseName": "jobDefinition", + "type": "JobDefinition", }, - jobName: { - baseName: "jobName", - type: "string", + "jobName": { + "baseName": "jobName", + "type": "string", }, - jobStatus: { - baseName: "jobStatus", - type: "string", + "jobStatus": { + "baseName": "jobStatus", + "type": "string", }, - modifiedAt: { - baseName: "modifiedAt", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "modifiedAt": { + "baseName": "modifiedAt", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HistoricalJobResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HistoricalJobResponseData.ts b/packages/datadog-api-client-v2/models/HistoricalJobResponseData.ts index 7a2bc9f749ad..1d52841d6cc0 100644 --- a/packages/datadog-api-client-v2/models/HistoricalJobResponseData.ts +++ b/packages/datadog-api-client-v2/models/HistoricalJobResponseData.ts @@ -6,23 +6,28 @@ import { HistoricalJobDataType } from "./HistoricalJobDataType"; import { HistoricalJobResponseAttributes } from "./HistoricalJobResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Historical job response data. - */ +*/ export class HistoricalJobResponseData { /** * Historical job attributes. - */ + */ "attributes"?: HistoricalJobResponseAttributes; /** * ID of the job. - */ + */ "id"?: string; /** * Type of payload. - */ + */ "type"?: HistoricalJobDataType; /** @@ -41,30 +46,56 @@ export class HistoricalJobResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "HistoricalJobResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "HistoricalJobResponseAttributes", }, - type: { - baseName: "type", - type: "HistoricalJobDataType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "HistoricalJobDataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HistoricalJobResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsage.ts b/packages/datadog-api-client-v2/models/HourlyUsage.ts index 0abc34769b1b..4ce4b33ede81 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsage.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsage.ts @@ -6,23 +6,28 @@ import { HourlyUsageAttributes } from "./HourlyUsageAttributes"; import { UsageTimeSeriesType } from "./UsageTimeSeriesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Hourly usage for a product family for an org. - */ +*/ export class HourlyUsage { /** * Attributes of hourly usage for a product family for an org for a time period. - */ + */ "attributes"?: HourlyUsageAttributes; /** * Unique ID of the response. - */ + */ "id"?: string; /** * Type of usage data. - */ + */ "type"?: UsageTimeSeriesType; /** @@ -41,30 +46,56 @@ export class HourlyUsage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "HourlyUsageAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "HourlyUsageAttributes", }, - type: { - baseName: "type", - type: "UsageTimeSeriesType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsageTimeSeriesType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsageAttributes.ts b/packages/datadog-api-client-v2/models/HourlyUsageAttributes.ts index 6e3165ea2bbf..d7c9b75788a7 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsageAttributes.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsageAttributes.ts @@ -5,43 +5,48 @@ */ import { HourlyUsageMeasurement } from "./HourlyUsageMeasurement"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of hourly usage for a product family for an org for a time period. - */ +*/ export class HourlyUsageAttributes { /** * The account name. - */ + */ "accountName"?: string; /** * The account public ID. - */ + */ "accountPublicId"?: string; /** * List of the measured usage values for the product family for the org for the time period. - */ + */ "measurements"?: Array; /** * The organization name. - */ + */ "orgName"?: string; /** * The product for which usage is being reported. - */ + */ "productFamily"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The region of the Datadog instance that the organization belongs to. - */ + */ "region"?: string; /** * Datetime in ISO-8601 format, UTC. The hour for the usage. - */ + */ "timestamp"?: Date; /** @@ -60,51 +65,77 @@ export class HourlyUsageAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountName: { - baseName: "account_name", - type: "string", + "accountName": { + "baseName": "account_name", + "type": "string", }, - accountPublicId: { - baseName: "account_public_id", - type: "string", + "accountPublicId": { + "baseName": "account_public_id", + "type": "string", }, - measurements: { - baseName: "measurements", - type: "Array", + "measurements": { + "baseName": "measurements", + "type": "Array", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - productFamily: { - baseName: "product_family", - type: "string", + "productFamily": { + "baseName": "product_family", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "region": { + "baseName": "region", + "type": "string", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.ts b/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.ts index 219b66b7da62..655a5bf1566a 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Usage amount for a given usage type. - */ +*/ export class HourlyUsageMeasurement { /** * Type of usage. - */ + */ "usageType"?: string; /** * Contains the number measured for the given usage_type during the hour. - */ + */ "value"?: number; /** @@ -35,27 +40,53 @@ export class HourlyUsageMeasurement { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - usageType: { - baseName: "usage_type", - type: "string", + "usageType": { + "baseName": "usage_type", + "type": "string", }, - value: { - baseName: "value", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageMeasurement.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsageMetadata.ts b/packages/datadog-api-client-v2/models/HourlyUsageMetadata.ts index 340121d29c91..cea9a3bd4faa 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsageMetadata.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsageMetadata.ts @@ -5,15 +5,20 @@ */ import { HourlyUsagePagination } from "./HourlyUsagePagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class HourlyUsageMetadata { /** * The metadata for the current pagination. - */ + */ "pagination"?: HourlyUsagePagination; /** @@ -32,22 +37,48 @@ export class HourlyUsageMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "HourlyUsagePagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "HourlyUsagePagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsagePagination.ts b/packages/datadog-api-client-v2/models/HourlyUsagePagination.ts index ebb9cf5ad803..5da24814bc24 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsagePagination.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsagePagination.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata for the current pagination. - */ +*/ export class HourlyUsagePagination { /** * The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. - */ + */ "nextRecordId"?: string; /** @@ -31,22 +36,48 @@ export class HourlyUsagePagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - nextRecordId: { - baseName: "next_record_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "nextRecordId": { + "baseName": "next_record_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsagePagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsageResponse.ts b/packages/datadog-api-client-v2/models/HourlyUsageResponse.ts index cf6493d8ed06..aa7944c50a05 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsageResponse.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsageResponse.ts @@ -6,19 +6,24 @@ import { HourlyUsage } from "./HourlyUsage"; import { HourlyUsageMetadata } from "./HourlyUsageMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Hourly usage response. - */ +*/ export class HourlyUsageResponse { /** * Response containing hourly usage. - */ + */ "data"?: Array; /** * The object containing document metadata. - */ + */ "meta"?: HourlyUsageMetadata; /** @@ -37,26 +42,52 @@ export class HourlyUsageResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "HourlyUsageMetadata", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "HourlyUsageMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return HourlyUsageResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/HourlyUsageType.ts b/packages/datadog-api-client-v2/models/HourlyUsageType.ts index be2ff4a9cc47..35ee1350906a 100644 --- a/packages/datadog-api-client-v2/models/HourlyUsageType.ts +++ b/packages/datadog-api-client-v2/models/HourlyUsageType.ts @@ -4,19 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Usage type that is being measured. - */ +*/ -export type HourlyUsageType = - | typeof APP_SEC_HOST_COUNT - | typeof OBSERVABILITY_PIPELINES_BYTES_PROCESSSED - | typeof LAMBDA_TRACED_INVOCATIONS_COUNT - | UnparsedObject; -export const APP_SEC_HOST_COUNT = "app_sec_host_count"; -export const OBSERVABILITY_PIPELINES_BYTES_PROCESSSED = - "observability_pipelines_bytes_processed"; -export const LAMBDA_TRACED_INVOCATIONS_COUNT = - "lambda_traced_invocations_count"; +export type HourlyUsageType = typeof APP_SEC_HOST_COUNT| typeof OBSERVABILITY_PIPELINES_BYTES_PROCESSSED| typeof LAMBDA_TRACED_INVOCATIONS_COUNT | UnparsedObject; +export const APP_SEC_HOST_COUNT = 'app_sec_host_count'; +export const OBSERVABILITY_PIPELINES_BYTES_PROCESSSED = 'observability_pipelines_bytes_processed'; +export const LAMBDA_TRACED_INVOCATIONS_COUNT = 'lambda_traced_invocations_count'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IPAllowlistAttributes.ts b/packages/datadog-api-client-v2/models/IPAllowlistAttributes.ts index 3181faf2ee9e..deee66716e9c 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistAttributes.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistAttributes.ts @@ -5,19 +5,24 @@ */ import { IPAllowlistEntry } from "./IPAllowlistEntry"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the IP allowlist. - */ +*/ export class IPAllowlistAttributes { /** * Whether the IP allowlist logic is enabled or not. - */ + */ "enabled"?: boolean; /** * Array of entries in the IP allowlist. - */ + */ "entries"?: Array; /** @@ -36,26 +41,52 @@ export class IPAllowlistAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - entries: { - baseName: "entries", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "entries": { + "baseName": "entries", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IPAllowlistData.ts b/packages/datadog-api-client-v2/models/IPAllowlistData.ts index c06a780d7df9..50de5f1ed67b 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistData.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistData.ts @@ -6,23 +6,28 @@ import { IPAllowlistAttributes } from "./IPAllowlistAttributes"; import { IPAllowlistType } from "./IPAllowlistType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * IP allowlist data. - */ +*/ export class IPAllowlistData { /** * Attributes of the IP allowlist. - */ + */ "attributes"?: IPAllowlistAttributes; /** * The unique identifier of the org. - */ + */ "id"?: string; /** * IP allowlist type. - */ + */ "type": IPAllowlistType; /** @@ -41,31 +46,57 @@ export class IPAllowlistData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IPAllowlistAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "IPAllowlistAttributes", }, - type: { - baseName: "type", - type: "IPAllowlistType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IPAllowlistType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IPAllowlistEntry.ts b/packages/datadog-api-client-v2/models/IPAllowlistEntry.ts index f453bee9ba9d..9868f8498207 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistEntry.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistEntry.ts @@ -5,15 +5,20 @@ */ import { IPAllowlistEntryData } from "./IPAllowlistEntryData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * IP allowlist entry object. - */ +*/ export class IPAllowlistEntry { /** * Data of the IP allowlist entry object. - */ + */ "data": IPAllowlistEntryData; /** @@ -32,23 +37,49 @@ export class IPAllowlistEntry { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IPAllowlistEntryData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IPAllowlistEntryData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistEntry.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.ts b/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.ts index 1f53ac4a1431..7641c8aceb9d 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the IP allowlist entry. - */ +*/ export class IPAllowlistEntryAttributes { /** * The CIDR block describing the IP range of the entry. - */ + */ "cidrBlock"?: string; /** * Creation time of the entry. - */ + */ "createdAt"?: Date; /** * Time of last entry modification. - */ + */ "modifiedAt"?: Date; /** * A note describing the IP allowlist entry. - */ + */ "note"?: string; /** @@ -43,36 +48,62 @@ export class IPAllowlistEntryAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cidrBlock: { - baseName: "cidr_block", - type: "string", + "cidrBlock": { + "baseName": "cidr_block", + "type": "string", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - note: { - baseName: "note", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "note": { + "baseName": "note", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistEntryAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IPAllowlistEntryData.ts b/packages/datadog-api-client-v2/models/IPAllowlistEntryData.ts index 15640d4d7198..5d3d814217ac 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistEntryData.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistEntryData.ts @@ -6,23 +6,28 @@ import { IPAllowlistEntryAttributes } from "./IPAllowlistEntryAttributes"; import { IPAllowlistEntryType } from "./IPAllowlistEntryType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data of the IP allowlist entry object. - */ +*/ export class IPAllowlistEntryData { /** * Attributes of the IP allowlist entry. - */ + */ "attributes"?: IPAllowlistEntryAttributes; /** * The unique identifier of the IP allowlist entry. - */ + */ "id"?: string; /** * IP allowlist Entry type. - */ + */ "type": IPAllowlistEntryType; /** @@ -41,31 +46,57 @@ export class IPAllowlistEntryData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IPAllowlistEntryAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "IPAllowlistEntryAttributes", }, - type: { - baseName: "type", - type: "IPAllowlistEntryType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IPAllowlistEntryType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistEntryData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IPAllowlistEntryType.ts b/packages/datadog-api-client-v2/models/IPAllowlistEntryType.ts index 62c69eb405bc..74d764479c2c 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistEntryType.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistEntryType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * IP allowlist Entry type. - */ +*/ export type IPAllowlistEntryType = typeof IP_ALLOWLIST_ENTRY | UnparsedObject; -export const IP_ALLOWLIST_ENTRY = "ip_allowlist_entry"; +export const IP_ALLOWLIST_ENTRY = 'ip_allowlist_entry'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IPAllowlistResponse.ts b/packages/datadog-api-client-v2/models/IPAllowlistResponse.ts index 68a02dc0e43b..b1775bf40630 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistResponse.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistResponse.ts @@ -5,15 +5,20 @@ */ import { IPAllowlistData } from "./IPAllowlistData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about the IP allowlist. - */ +*/ export class IPAllowlistResponse { /** * IP allowlist data. - */ + */ "data"?: IPAllowlistData; /** @@ -32,22 +37,48 @@ export class IPAllowlistResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IPAllowlistData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IPAllowlistData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IPAllowlistType.ts b/packages/datadog-api-client-v2/models/IPAllowlistType.ts index 3a5d3d66ac88..602fa8cf8369 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistType.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * IP allowlist type. - */ +*/ export type IPAllowlistType = typeof IP_ALLOWLIST | UnparsedObject; -export const IP_ALLOWLIST = "ip_allowlist"; +export const IP_ALLOWLIST = 'ip_allowlist'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.ts b/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.ts index a19216a9fe3f..13dccd5a14ac 100644 --- a/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { IPAllowlistData } from "./IPAllowlistData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update the IP allowlist. - */ +*/ export class IPAllowlistUpdateRequest { /** * IP allowlist data. - */ + */ "data": IPAllowlistData; /** @@ -32,23 +37,49 @@ export class IPAllowlistUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IPAllowlistData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IPAllowlistData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IPAllowlistUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IdPMetadataFormData.ts b/packages/datadog-api-client-v2/models/IdPMetadataFormData.ts index 26482e06544e..55cc8060f03e 100644 --- a/packages/datadog-api-client-v2/models/IdPMetadataFormData.ts +++ b/packages/datadog-api-client-v2/models/IdPMetadataFormData.ts @@ -8,13 +8,16 @@ import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The form data submitted to upload IdP metadata - */ +*/ export class IdPMetadataFormData { /** * The IdP metadata XML file - */ + */ "idpFile"?: HttpFile; /** @@ -33,23 +36,49 @@ export class IdPMetadataFormData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - idpFile: { - baseName: "idp_file", - type: "HttpFile", - format: "binary", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "idpFile": { + "baseName": "idp_file", + "type": "HttpFile", + "format": "binary", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IdPMetadataFormData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.ts index 9a9ad0530e91..906bcf96a5fa 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the incident attachment attributes. - */ +*/ -export type IncidentAttachmentAttachmentType = - | typeof LINK - | typeof POSTMORTEM - | UnparsedObject; -export const LINK = "link"; -export const POSTMORTEM = "postmortem"; +export type IncidentAttachmentAttachmentType = typeof LINK| typeof POSTMORTEM | UnparsedObject; +export const LINK = 'link'; +export const POSTMORTEM = 'postmortem'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.ts index 8895c620e2fc..4dd46cead0d1 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.ts @@ -6,13 +6,15 @@ import { IncidentAttachmentLinkAttributes } from "./IncidentAttachmentLinkAttributes"; import { IncidentAttachmentPostmortemAttributes } from "./IncidentAttachmentPostmortemAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The attributes object for an attachment. - */ +*/ -export type IncidentAttachmentAttributes = - | IncidentAttachmentPostmortemAttributes - | IncidentAttachmentLinkAttributes - | UnparsedObject; +export type IncidentAttachmentAttributes = IncidentAttachmentPostmortemAttributes | IncidentAttachmentLinkAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentData.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentData.ts index 514813ac26f5..b4caea36e2a1 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentData.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentData.ts @@ -7,27 +7,32 @@ import { IncidentAttachmentAttributes } from "./IncidentAttachmentAttributes"; import { IncidentAttachmentRelationships } from "./IncidentAttachmentRelationships"; import { IncidentAttachmentType } from "./IncidentAttachmentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single incident attachment. - */ +*/ export class IncidentAttachmentData { /** * The attributes object for an attachment. - */ + */ "attributes": IncidentAttachmentAttributes; /** * A unique identifier that represents the incident attachment. - */ + */ "id": string; /** * The incident attachment's relationships. - */ + */ "relationships": IncidentAttachmentRelationships; /** * The incident attachment resource type. - */ + */ "type": IncidentAttachmentType; /** @@ -46,38 +51,64 @@ export class IncidentAttachmentData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentAttachmentAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentAttachmentAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "IncidentAttachmentRelationships", - required: true, + "relationships": { + "baseName": "relationships", + "type": "IncidentAttachmentRelationships", + "required": true, }, - type: { - baseName: "type", - type: "IncidentAttachmentType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentAttachmentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.ts index 5fd37839315b..935e2c706143 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of link attachment attributes. - */ +*/ export type IncidentAttachmentLinkAttachmentType = typeof LINK | UnparsedObject; -export const LINK = "link"; +export const LINK = 'link'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.ts index d3859dd83ec5..00f9ebbef982 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.ts @@ -6,23 +6,28 @@ import { IncidentAttachmentLinkAttachmentType } from "./IncidentAttachmentLinkAttachmentType"; import { IncidentAttachmentLinkAttributesAttachmentObject } from "./IncidentAttachmentLinkAttributesAttachmentObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes object for a link attachment. - */ +*/ export class IncidentAttachmentLinkAttributes { /** * The link attachment. - */ + */ "attachment": IncidentAttachmentLinkAttributesAttachmentObject; /** * The type of link attachment attributes. - */ + */ "attachmentType": IncidentAttachmentLinkAttachmentType; /** * Timestamp when the incident attachment link was last modified. - */ + */ "modified"?: Date; /** @@ -41,33 +46,59 @@ export class IncidentAttachmentLinkAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attachment: { - baseName: "attachment", - type: "IncidentAttachmentLinkAttributesAttachmentObject", - required: true, - }, - attachmentType: { - baseName: "attachment_type", - type: "IncidentAttachmentLinkAttachmentType", - required: true, + "attachment": { + "baseName": "attachment", + "type": "IncidentAttachmentLinkAttributesAttachmentObject", + "required": true, }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "attachmentType": { + "baseName": "attachment_type", + "type": "IncidentAttachmentLinkAttachmentType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentLinkAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.ts index 53bd4642049b..ab064d27be55 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The link attachment. - */ +*/ export class IncidentAttachmentLinkAttributesAttachmentObject { /** * The URL of this link attachment. - */ + */ "documentUrl": string; /** * The title of this link attachment. - */ + */ "title": string; /** @@ -35,28 +40,54 @@ export class IncidentAttachmentLinkAttributesAttachmentObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - documentUrl: { - baseName: "documentUrl", - type: "string", - required: true, + "documentUrl": { + "baseName": "documentUrl", + "type": "string", + "required": true, }, - title: { - baseName: "title", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentLinkAttributesAttachmentObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.ts index e3c2452d31af..e10574a05c11 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of postmortem attachment attributes. - */ +*/ -export type IncidentAttachmentPostmortemAttachmentType = - | typeof POSTMORTEM - | UnparsedObject; -export const POSTMORTEM = "postmortem"; +export type IncidentAttachmentPostmortemAttachmentType = typeof POSTMORTEM | UnparsedObject; +export const POSTMORTEM = 'postmortem'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.ts index 4302a3dad37f..f6413a166192 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.ts @@ -6,19 +6,24 @@ import { IncidentAttachmentPostmortemAttachmentType } from "./IncidentAttachmentPostmortemAttachmentType"; import { IncidentAttachmentsPostmortemAttributesAttachmentObject } from "./IncidentAttachmentsPostmortemAttributesAttachmentObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes object for a postmortem attachment. - */ +*/ export class IncidentAttachmentPostmortemAttributes { /** * The postmortem attachment. - */ + */ "attachment": IncidentAttachmentsPostmortemAttributesAttachmentObject; /** * The type of postmortem attachment attributes. - */ + */ "attachmentType": IncidentAttachmentPostmortemAttachmentType; /** @@ -37,28 +42,54 @@ export class IncidentAttachmentPostmortemAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attachment: { - baseName: "attachment", - type: "IncidentAttachmentsPostmortemAttributesAttachmentObject", - required: true, + "attachment": { + "baseName": "attachment", + "type": "IncidentAttachmentsPostmortemAttributesAttachmentObject", + "required": true, }, - attachmentType: { - baseName: "attachment_type", - type: "IncidentAttachmentPostmortemAttachmentType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attachmentType": { + "baseName": "attachment_type", + "type": "IncidentAttachmentPostmortemAttachmentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentPostmortemAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.ts index f2dc786feafa..224dbbf1d01f 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The object related to an incident attachment. - */ +*/ export type IncidentAttachmentRelatedObject = typeof USERS | UnparsedObject; -export const USERS = "users"; +export const USERS = 'users'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.ts index 15d454d248fa..bf81bc8232fe 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident attachment's relationships. - */ +*/ export class IncidentAttachmentRelationships { /** * Relationship to user. - */ + */ "lastModifiedByUser"?: RelationshipToUser; /** @@ -32,22 +37,48 @@ export class IncidentAttachmentRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - lastModifiedByUser: { - baseName: "last_modified_by_user", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lastModifiedByUser": { + "baseName": "last_modified_by_user", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentType.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentType.ts index 4fd1d136fc96..659a671ef268 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentType.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The incident attachment resource type. - */ +*/ -export type IncidentAttachmentType = - | typeof INCIDENT_ATTACHMENTS - | UnparsedObject; -export const INCIDENT_ATTACHMENTS = "incident_attachments"; +export type IncidentAttachmentType = typeof INCIDENT_ATTACHMENTS | UnparsedObject; +export const INCIDENT_ATTACHMENTS = 'incident_attachments'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.ts index 1792ea143f52..6fe84fb28b64 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.ts @@ -6,13 +6,15 @@ import { IncidentAttachmentLinkAttributes } from "./IncidentAttachmentLinkAttributes"; import { IncidentAttachmentPostmortemAttributes } from "./IncidentAttachmentPostmortemAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident attachment attributes. - */ +*/ -export type IncidentAttachmentUpdateAttributes = - | IncidentAttachmentPostmortemAttributes - | IncidentAttachmentLinkAttributes - | UnparsedObject; +export type IncidentAttachmentUpdateAttributes = IncidentAttachmentPostmortemAttributes | IncidentAttachmentLinkAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.ts index 4197e57ebf72..6d3b094e6c5a 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.ts @@ -6,23 +6,28 @@ import { IncidentAttachmentType } from "./IncidentAttachmentType"; import { IncidentAttachmentUpdateAttributes } from "./IncidentAttachmentUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single incident attachment. - */ +*/ export class IncidentAttachmentUpdateData { /** * Incident attachment attributes. - */ + */ "attributes"?: IncidentAttachmentUpdateAttributes; /** * A unique identifier that represents the incident attachment. - */ + */ "id"?: string; /** * The incident attachment resource type. - */ + */ "type": IncidentAttachmentType; /** @@ -41,31 +46,57 @@ export class IncidentAttachmentUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentAttachmentUpdateAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "IncidentAttachmentUpdateAttributes", }, - type: { - baseName: "type", - type: "IncidentAttachmentType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentAttachmentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.ts index 162984293e33..9874b9b364ab 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.ts @@ -5,18 +5,23 @@ */ import { IncidentAttachmentUpdateData } from "./IncidentAttachmentUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The update request for an incident's attachments. - */ +*/ export class IncidentAttachmentUpdateRequest { /** * An array of incident attachments. An attachment object without an "id" key indicates that you want to * create that attachment. An attachment object without an "attributes" key indicates that you want to * delete that attachment. An attachment object with both the "id" key and a populated "attributes" object * indicates that you want to update that attachment. - */ + */ "data": Array; /** @@ -35,23 +40,49 @@ export class IncidentAttachmentUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.ts index 3f0103d68860..9fa1a29dfee8 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.ts @@ -6,20 +6,25 @@ import { IncidentAttachmentData } from "./IncidentAttachmentData"; import { IncidentAttachmentsResponseIncludedItem } from "./IncidentAttachmentsResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object containing the created or updated incident attachments. - */ +*/ export class IncidentAttachmentUpdateResponse { /** * An array of incident attachments. Only the attachments that were created or updated by the request are * returned. - */ + */ "data": Array; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** @@ -38,27 +43,53 @@ export class IncidentAttachmentUpdateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentUpdateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.ts index 62a800939585..80ddf8532322 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The postmortem attachment. - */ +*/ export class IncidentAttachmentsPostmortemAttributesAttachmentObject { /** * The URL of this notebook attachment. - */ + */ "documentUrl": string; /** * The title of this postmortem attachment. - */ + */ "title": string; /** @@ -35,28 +40,54 @@ export class IncidentAttachmentsPostmortemAttributesAttachmentObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - documentUrl: { - baseName: "documentUrl", - type: "string", - required: true, + "documentUrl": { + "baseName": "documentUrl", + "type": "string", + "required": true, }, - title: { - baseName: "title", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentsPostmortemAttributesAttachmentObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.ts index 874099a8ebad..b536edbbcaab 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.ts @@ -6,19 +6,24 @@ import { IncidentAttachmentData } from "./IncidentAttachmentData"; import { IncidentAttachmentsResponseIncludedItem } from "./IncidentAttachmentsResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object containing an incident's attachments. - */ +*/ export class IncidentAttachmentsResponse { /** * An array of incident attachments. - */ + */ "data": Array; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** @@ -37,27 +42,53 @@ export class IncidentAttachmentsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentAttachmentsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.ts index a6969b091126..024b9c143502 100644 --- a/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.ts @@ -5,10 +5,15 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an attachment that is included in the response. - */ +*/ -export type IncidentAttachmentsResponseIncludedItem = User | UnparsedObject; +export type IncidentAttachmentsResponseIncludedItem = User | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentCreateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentCreateAttributes.ts index 75ddae91f9d1..2d2bcdc11582 100644 --- a/packages/datadog-api-client-v2/models/IncidentCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentCreateAttributes.ts @@ -7,39 +7,44 @@ import { IncidentFieldAttributes } from "./IncidentFieldAttributes"; import { IncidentNotificationHandle } from "./IncidentNotificationHandle"; import { IncidentTimelineCellCreateAttributes } from "./IncidentTimelineCellCreateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's attributes for a create request. - */ +*/ export class IncidentCreateAttributes { /** * Required if `customer_impacted:"true"`. A summary of the impact customers experienced during the incident. - */ + */ "customerImpactScope"?: string; /** * A flag indicating whether the incident caused customer impact. - */ + */ "customerImpacted": boolean; /** * A condensed view of the user-defined fields for which to create initial selections. - */ - "fields"?: { [key: string]: IncidentFieldAttributes }; + */ + "fields"?: { [key: string]: IncidentFieldAttributes; }; /** * A unique identifier that represents an incident type. The default incident type will be used if this property is not provided. - */ + */ "incidentTypeUuid"?: string; /** * An array of initial timeline cells to be placed at the beginning of the incident timeline. - */ + */ "initialCells"?: Array; /** * Notification handles that will be notified of the incident at creation. - */ + */ "notificationHandles"?: Array; /** * The title of the incident, which summarizes what happened. - */ + */ "title": string; /** @@ -58,48 +63,74 @@ export class IncidentCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customerImpactScope: { - baseName: "customer_impact_scope", - type: "string", - }, - customerImpacted: { - baseName: "customer_impacted", - type: "boolean", - required: true, + "customerImpactScope": { + "baseName": "customer_impact_scope", + "type": "string", }, - fields: { - baseName: "fields", - type: "{ [key: string]: IncidentFieldAttributes; }", + "customerImpacted": { + "baseName": "customer_impacted", + "type": "boolean", + "required": true, }, - incidentTypeUuid: { - baseName: "incident_type_uuid", - type: "string", + "fields": { + "baseName": "fields", + "type": "{ [key: string]: IncidentFieldAttributes; }", }, - initialCells: { - baseName: "initial_cells", - type: "Array", + "incidentTypeUuid": { + "baseName": "incident_type_uuid", + "type": "string", }, - notificationHandles: { - baseName: "notification_handles", - type: "Array", + "initialCells": { + "baseName": "initial_cells", + "type": "Array", }, - title: { - baseName: "title", - type: "string", - required: true, + "notificationHandles": { + "baseName": "notification_handles", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentCreateData.ts b/packages/datadog-api-client-v2/models/IncidentCreateData.ts index d81d9c7d8018..69af2e8adeb5 100644 --- a/packages/datadog-api-client-v2/models/IncidentCreateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentCreateData.ts @@ -7,23 +7,28 @@ import { IncidentCreateAttributes } from "./IncidentCreateAttributes"; import { IncidentCreateRelationships } from "./IncidentCreateRelationships"; import { IncidentType } from "./IncidentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident data for a create request. - */ +*/ export class IncidentCreateData { /** * The incident's attributes for a create request. - */ + */ "attributes": IncidentCreateAttributes; /** * The relationships the incident will have with other resources once created. - */ + */ "relationships"?: IncidentCreateRelationships; /** * Incident resource type. - */ + */ "type": IncidentType; /** @@ -42,32 +47,58 @@ export class IncidentCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentCreateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "IncidentCreateRelationships", + "attributes": { + "baseName": "attributes", + "type": "IncidentCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "IncidentCreateRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentCreateRelationships.ts b/packages/datadog-api-client-v2/models/IncidentCreateRelationships.ts index 2752b0462d45..ecfbaec02587 100644 --- a/packages/datadog-api-client-v2/models/IncidentCreateRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentCreateRelationships.ts @@ -5,16 +5,21 @@ */ import { NullableRelationshipToUser } from "./NullableRelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The relationships the incident will have with other resources once created. - */ +*/ export class IncidentCreateRelationships { /** * Relationship to user. - */ - "commanderUser": NullableRelationshipToUser | null; + */ + "commanderUser": NullableRelationshipToUser|null; /** * A container for additional, undeclared properties. @@ -32,23 +37,49 @@ export class IncidentCreateRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - commanderUser: { - baseName: "commander_user", - type: "NullableRelationshipToUser", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "commanderUser": { + "baseName": "commander_user", + "type": "NullableRelationshipToUser", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentCreateRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentCreateRequest.ts b/packages/datadog-api-client-v2/models/IncidentCreateRequest.ts index ade6782ed9c6..a5f51ebb8f2d 100644 --- a/packages/datadog-api-client-v2/models/IncidentCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentCreateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentCreateData } from "./IncidentCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request for an incident. - */ +*/ export class IncidentCreateRequest { /** * Incident data for a create request. - */ + */ "data": IncidentCreateData; /** @@ -32,23 +37,49 @@ export class IncidentCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentFieldAttributes.ts b/packages/datadog-api-client-v2/models/IncidentFieldAttributes.ts index e9478454f942..fbcc81b008c5 100644 --- a/packages/datadog-api-client-v2/models/IncidentFieldAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentFieldAttributes.ts @@ -6,13 +6,15 @@ import { IncidentFieldAttributesMultipleValue } from "./IncidentFieldAttributesMultipleValue"; import { IncidentFieldAttributesSingleValue } from "./IncidentFieldAttributesSingleValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Dynamic fields for which selections can be made, with field names as keys. - */ +*/ -export type IncidentFieldAttributes = - | IncidentFieldAttributesSingleValue - | IncidentFieldAttributesMultipleValue - | UnparsedObject; +export type IncidentFieldAttributes = IncidentFieldAttributesSingleValue | IncidentFieldAttributesMultipleValue | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentFieldAttributesMultipleValue.ts b/packages/datadog-api-client-v2/models/IncidentFieldAttributesMultipleValue.ts index 632d55bc16d6..cb54bb6006e9 100644 --- a/packages/datadog-api-client-v2/models/IncidentFieldAttributesMultipleValue.ts +++ b/packages/datadog-api-client-v2/models/IncidentFieldAttributesMultipleValue.ts @@ -5,19 +5,24 @@ */ import { IncidentFieldAttributesValueType } from "./IncidentFieldAttributesValueType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A field with potentially multiple values selected. - */ +*/ export class IncidentFieldAttributesMultipleValue { /** * Type of the multiple value field definitions. - */ + */ "type"?: IncidentFieldAttributesValueType; /** * The multiple values selected for this field. - */ + */ "value"?: Array; /** @@ -36,26 +41,52 @@ export class IncidentFieldAttributesMultipleValue { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "IncidentFieldAttributesValueType", + "type": { + "baseName": "type", + "type": "IncidentFieldAttributesValueType", }, - value: { - baseName: "value", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentFieldAttributesMultipleValue.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValue.ts b/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValue.ts index 1e2513126504..3a028a3392f8 100644 --- a/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValue.ts +++ b/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValue.ts @@ -5,19 +5,24 @@ */ import { IncidentFieldAttributesSingleValueType } from "./IncidentFieldAttributesSingleValueType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A field with a single value selected. - */ +*/ export class IncidentFieldAttributesSingleValue { /** * Type of the single value field definitions. - */ + */ "type"?: IncidentFieldAttributesSingleValueType; /** * The single value selected for this field. - */ + */ "value"?: string; /** @@ -36,26 +41,52 @@ export class IncidentFieldAttributesSingleValue { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "IncidentFieldAttributesSingleValueType", + "type": { + "baseName": "type", + "type": "IncidentFieldAttributesSingleValueType", }, - value: { - baseName: "value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentFieldAttributesSingleValue.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValueType.ts b/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValueType.ts index c19c9350fc85..fc78d37432b5 100644 --- a/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValueType.ts +++ b/packages/datadog-api-client-v2/models/IncidentFieldAttributesSingleValueType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the single value field definitions. - */ +*/ -export type IncidentFieldAttributesSingleValueType = - | typeof DROPDOWN - | typeof TEXTBOX - | UnparsedObject; -export const DROPDOWN = "dropdown"; -export const TEXTBOX = "textbox"; +export type IncidentFieldAttributesSingleValueType = typeof DROPDOWN| typeof TEXTBOX | UnparsedObject; +export const DROPDOWN = 'dropdown'; +export const TEXTBOX = 'textbox'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentFieldAttributesValueType.ts b/packages/datadog-api-client-v2/models/IncidentFieldAttributesValueType.ts index 82b8ade1c769..36f2b1e9136f 100644 --- a/packages/datadog-api-client-v2/models/IncidentFieldAttributesValueType.ts +++ b/packages/datadog-api-client-v2/models/IncidentFieldAttributesValueType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the multiple value field definitions. - */ +*/ -export type IncidentFieldAttributesValueType = - | typeof MULTISELECT - | typeof TEXTARRAY - | typeof METRICTAG - | typeof AUTOCOMPLETE - | UnparsedObject; -export const MULTISELECT = "multiselect"; -export const TEXTARRAY = "textarray"; -export const METRICTAG = "metrictag"; -export const AUTOCOMPLETE = "autocomplete"; +export type IncidentFieldAttributesValueType = typeof MULTISELECT| typeof TEXTARRAY| typeof METRICTAG| typeof AUTOCOMPLETE | UnparsedObject; +export const MULTISELECT = 'multiselect'; +export const TEXTARRAY = 'textarray'; +export const METRICTAG = 'metrictag'; +export const AUTOCOMPLETE = 'autocomplete'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentImpactsType.ts b/packages/datadog-api-client-v2/models/IncidentImpactsType.ts index 16d9e47f46c1..53c24c161135 100644 --- a/packages/datadog-api-client-v2/models/IncidentImpactsType.ts +++ b/packages/datadog-api-client-v2/models/IncidentImpactsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The incident impacts type. - */ +*/ export type IncidentImpactsType = typeof INCIDENT_IMPACTS | UnparsedObject; -export const INCIDENT_IMPACTS = "incident_impacts"; +export const INCIDENT_IMPACTS = 'incident_impacts'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.ts index 5b09d3c20558..289bb335f6a2 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.ts @@ -5,38 +5,43 @@ */ import { IncidentIntegrationMetadataMetadata } from "./IncidentIntegrationMetadataMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata's attributes for a create request. - */ +*/ export class IncidentIntegrationMetadataAttributes { /** * Timestamp when the incident todo was created. - */ + */ "created"?: Date; /** * UUID of the incident this integration metadata is connected to. - */ + */ "incidentId"?: string; /** * A number indicating the type of integration this metadata is for. 1 indicates Slack; * 8 indicates Jira. - */ + */ "integrationType": number; /** * Incident integration metadata's metadata attribute. - */ + */ "metadata": IncidentIntegrationMetadataMetadata; /** * Timestamp when the incident todo was last modified. - */ + */ "modified"?: Date; /** * A number indicating the status of this integration metadata. 0 indicates unknown; * 1 indicates pending; 2 indicates complete; 3 indicates manually created; * 4 indicates manually updated; 5 indicates failed. - */ + */ "status"?: number; /** @@ -55,48 +60,74 @@ export class IncidentIntegrationMetadataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - incidentId: { - baseName: "incident_id", - type: "string", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - integrationType: { - baseName: "integration_type", - type: "number", - required: true, - format: "int32", + "incidentId": { + "baseName": "incident_id", + "type": "string", }, - metadata: { - baseName: "metadata", - type: "IncidentIntegrationMetadataMetadata", - required: true, + "integrationType": { + "baseName": "integration_type", + "type": "number", + "required": true, + "format": "int32", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "metadata": { + "baseName": "metadata", + "type": "IncidentIntegrationMetadataMetadata", + "required": true, }, - status: { - baseName: "status", - type: "number", - format: "int32", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.ts index fa578e86d546..ffbd1baa08aa 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.ts @@ -6,19 +6,24 @@ import { IncidentIntegrationMetadataAttributes } from "./IncidentIntegrationMetadataAttributes"; import { IncidentIntegrationMetadataType } from "./IncidentIntegrationMetadataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata data for a create request. - */ +*/ export class IncidentIntegrationMetadataCreateData { /** * Incident integration metadata's attributes for a create request. - */ + */ "attributes": IncidentIntegrationMetadataAttributes; /** * Integration metadata resource type. - */ + */ "type": IncidentIntegrationMetadataType; /** @@ -37,28 +42,54 @@ export class IncidentIntegrationMetadataCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentIntegrationMetadataAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentIntegrationMetadataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentIntegrationMetadataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentIntegrationMetadataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.ts index 1bd082311163..8c4e109db0e3 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentIntegrationMetadataCreateData } from "./IncidentIntegrationMetadataCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request for an incident integration metadata. - */ +*/ export class IncidentIntegrationMetadataCreateRequest { /** * Incident integration metadata data for a create request. - */ + */ "data": IncidentIntegrationMetadataCreateData; /** @@ -32,23 +37,49 @@ export class IncidentIntegrationMetadataCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentIntegrationMetadataCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentIntegrationMetadataCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.ts index 756d9e536e3b..1533bfe41b5d 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.ts @@ -7,23 +7,28 @@ import { IncidentIntegrationMetadataResponseData } from "./IncidentIntegrationMe import { IncidentIntegrationMetadataResponseIncludedItem } from "./IncidentIntegrationMetadataResponseIncludedItem"; import { IncidentResponseMeta } from "./IncidentResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of incident integration metadata. - */ +*/ export class IncidentIntegrationMetadataListResponse { /** * An array of incident integration metadata. - */ + */ "data": Array; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** * The metadata object containing pagination metadata. - */ + */ "meta"?: IncidentResponseMeta; /** @@ -42,31 +47,57 @@ export class IncidentIntegrationMetadataListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "IncidentResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "IncidentResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.ts index f6fb9037c225..584679f9acde 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.ts @@ -7,14 +7,15 @@ import { JiraIntegrationMetadata } from "./JiraIntegrationMetadata"; import { MSTeamsIntegrationMetadata } from "./MSTeamsIntegrationMetadata"; import { SlackIntegrationMetadata } from "./SlackIntegrationMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident integration metadata's metadata attribute. - */ +*/ -export type IncidentIntegrationMetadataMetadata = - | SlackIntegrationMetadata - | JiraIntegrationMetadata - | MSTeamsIntegrationMetadata - | UnparsedObject; +export type IncidentIntegrationMetadataMetadata = SlackIntegrationMetadata | JiraIntegrationMetadata | MSTeamsIntegrationMetadata | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.ts index 97c63a10693b..30f7486da2dc 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.ts @@ -6,19 +6,24 @@ import { IncidentIntegrationMetadataAttributes } from "./IncidentIntegrationMetadataAttributes"; import { IncidentIntegrationMetadataType } from "./IncidentIntegrationMetadataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata data for a patch request. - */ +*/ export class IncidentIntegrationMetadataPatchData { /** * Incident integration metadata's attributes for a create request. - */ + */ "attributes": IncidentIntegrationMetadataAttributes; /** * Integration metadata resource type. - */ + */ "type": IncidentIntegrationMetadataType; /** @@ -37,28 +42,54 @@ export class IncidentIntegrationMetadataPatchData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentIntegrationMetadataAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentIntegrationMetadataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentIntegrationMetadataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentIntegrationMetadataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataPatchData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.ts index 84396f05889b..e7f071995bb3 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentIntegrationMetadataPatchData } from "./IncidentIntegrationMetadataPatchData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Patch request for an incident integration metadata. - */ +*/ export class IncidentIntegrationMetadataPatchRequest { /** * Incident integration metadata data for a patch request. - */ + */ "data": IncidentIntegrationMetadataPatchData; /** @@ -32,23 +37,49 @@ export class IncidentIntegrationMetadataPatchRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentIntegrationMetadataPatchData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentIntegrationMetadataPatchData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataPatchRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.ts index f57ab4382cab..5cdd441d151c 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.ts @@ -6,19 +6,24 @@ import { IncidentIntegrationMetadataResponseData } from "./IncidentIntegrationMetadataResponseData"; import { IncidentIntegrationMetadataResponseIncludedItem } from "./IncidentIntegrationMetadataResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with an incident integration metadata. - */ +*/ export class IncidentIntegrationMetadataResponse { /** * Incident integration metadata from a response. - */ + */ "data": IncidentIntegrationMetadataResponseData; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** @@ -37,27 +42,53 @@ export class IncidentIntegrationMetadataResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentIntegrationMetadataResponseData", - required: true, + "data": { + "baseName": "data", + "type": "IncidentIntegrationMetadataResponseData", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.ts index bb5120c6010c..3c7c0d0c70dd 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.ts @@ -7,27 +7,32 @@ import { IncidentIntegrationMetadataAttributes } from "./IncidentIntegrationMeta import { IncidentIntegrationMetadataType } from "./IncidentIntegrationMetadataType"; import { IncidentIntegrationRelationships } from "./IncidentIntegrationRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata from a response. - */ +*/ export class IncidentIntegrationMetadataResponseData { /** * Incident integration metadata's attributes for a create request. - */ + */ "attributes"?: IncidentIntegrationMetadataAttributes; /** * The incident integration metadata's ID. - */ + */ "id": string; /** * The incident's integration relationships from a response. - */ + */ "relationships"?: IncidentIntegrationRelationships; /** * Integration metadata resource type. - */ + */ "type": IncidentIntegrationMetadataType; /** @@ -46,36 +51,62 @@ export class IncidentIntegrationMetadataResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentIntegrationMetadataAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentIntegrationMetadataAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "IncidentIntegrationRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentIntegrationRelationships", }, - type: { - baseName: "type", - type: "IncidentIntegrationMetadataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentIntegrationMetadataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationMetadataResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.ts index 514a8b5acdfb..bac79088a4af 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.ts @@ -5,12 +5,15 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an incident integration metadata that is included in the response. - */ +*/ -export type IncidentIntegrationMetadataResponseIncludedItem = - | User - | UnparsedObject; +export type IncidentIntegrationMetadataResponseIncludedItem = User | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataType.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataType.ts index caaf18f22e43..0dcc8aecc072 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataType.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Integration metadata resource type. - */ +*/ -export type IncidentIntegrationMetadataType = - | typeof INCIDENT_INTEGRATIONS - | UnparsedObject; -export const INCIDENT_INTEGRATIONS = "incident_integrations"; +export type IncidentIntegrationMetadataType = typeof INCIDENT_INTEGRATIONS | UnparsedObject; +export const INCIDENT_INTEGRATIONS = 'incident_integrations'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.ts b/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.ts index a2a3878ca4e8..95871cf6ac6e 100644 --- a/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.ts @@ -5,19 +5,24 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's integration relationships from a response. - */ +*/ export class IncidentIntegrationRelationships { /** * Relationship to user. - */ + */ "createdByUser"?: RelationshipToUser; /** * Relationship to user. - */ + */ "lastModifiedByUser"?: RelationshipToUser; /** @@ -36,26 +41,52 @@ export class IncidentIntegrationRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdByUser: { - baseName: "created_by_user", - type: "RelationshipToUser", + "createdByUser": { + "baseName": "created_by_user", + "type": "RelationshipToUser", }, - lastModifiedByUser: { - baseName: "last_modified_by_user", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lastModifiedByUser": { + "baseName": "last_modified_by_user", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentIntegrationRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.ts b/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.ts index a04e09d7cdc1..47b32d446212 100644 --- a/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.ts +++ b/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident's non Datadog creator. - */ +*/ export class IncidentNonDatadogCreator { /** * Non Datadog creator `48px` image. - */ + */ "image48Px"?: string; /** * Non Datadog creator name. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class IncidentNonDatadogCreator { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - image48Px: { - baseName: "image_48_px", - type: "string", + "image48Px": { + "baseName": "image_48_px", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentNonDatadogCreator.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentNotificationHandle.ts b/packages/datadog-api-client-v2/models/IncidentNotificationHandle.ts index 23bcc19591ab..e983ff5f1a7f 100644 --- a/packages/datadog-api-client-v2/models/IncidentNotificationHandle.ts +++ b/packages/datadog-api-client-v2/models/IncidentNotificationHandle.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A notification handle that will be notified at incident creation. - */ +*/ export class IncidentNotificationHandle { /** * The name of the notified handle. - */ + */ "displayName"?: string; /** * The handle used for the notification. This includes an email address, Slack channel, or workflow. - */ + */ "handle"?: string; /** @@ -35,26 +40,52 @@ export class IncidentNotificationHandle { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - displayName: { - baseName: "display_name", - type: "string", + "displayName": { + "baseName": "display_name", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "handle": { + "baseName": "handle", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentNotificationHandle.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentPostmortemType.ts b/packages/datadog-api-client-v2/models/IncidentPostmortemType.ts index 0233e856a8d7..9accbf9c943a 100644 --- a/packages/datadog-api-client-v2/models/IncidentPostmortemType.ts +++ b/packages/datadog-api-client-v2/models/IncidentPostmortemType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident postmortem resource type. - */ +*/ -export type IncidentPostmortemType = - | typeof INCIDENT_POSTMORTEMS - | UnparsedObject; -export const INCIDENT_POSTMORTEMS = "incident_postmortems"; +export type IncidentPostmortemType = typeof INCIDENT_POSTMORTEMS | UnparsedObject; +export const INCIDENT_POSTMORTEMS = 'incident_postmortems'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentRelatedObject.ts b/packages/datadog-api-client-v2/models/IncidentRelatedObject.ts index c06a05401bac..d52a11d84ba5 100644 --- a/packages/datadog-api-client-v2/models/IncidentRelatedObject.ts +++ b/packages/datadog-api-client-v2/models/IncidentRelatedObject.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Object related to an incident. - */ +*/ -export type IncidentRelatedObject = - | typeof USERS - | typeof ATTACHMENTS - | UnparsedObject; -export const USERS = "users"; -export const ATTACHMENTS = "attachments"; +export type IncidentRelatedObject = typeof USERS| typeof ATTACHMENTS | UnparsedObject; +export const USERS = 'users'; +export const ATTACHMENTS = 'attachments'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentRespondersType.ts b/packages/datadog-api-client-v2/models/IncidentRespondersType.ts index 4c714d0bb658..5507202fb7e0 100644 --- a/packages/datadog-api-client-v2/models/IncidentRespondersType.ts +++ b/packages/datadog-api-client-v2/models/IncidentRespondersType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The incident responders type. - */ +*/ -export type IncidentRespondersType = - | typeof INCIDENT_RESPONDERS - | UnparsedObject; -export const INCIDENT_RESPONDERS = "incident_responders"; +export type IncidentRespondersType = typeof INCIDENT_RESPONDERS | UnparsedObject; +export const INCIDENT_RESPONDERS = 'incident_responders'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentResponse.ts b/packages/datadog-api-client-v2/models/IncidentResponse.ts index fcdd7f90d094..68282636df18 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponse.ts @@ -6,19 +6,24 @@ import { IncidentResponseData } from "./IncidentResponseData"; import { IncidentResponseIncludedItem } from "./IncidentResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with an incident. - */ +*/ export class IncidentResponse { /** * Incident data from a response. - */ + */ "data": IncidentResponseData; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** @@ -37,27 +42,53 @@ export class IncidentResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentResponseData", - required: true, + "data": { + "baseName": "data", + "type": "IncidentResponseData", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentResponseAttributes.ts b/packages/datadog-api-client-v2/models/IncidentResponseAttributes.ts index 6be76747aa2b..1be394a41665 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponseAttributes.ts @@ -8,109 +8,114 @@ import { IncidentNonDatadogCreator } from "./IncidentNonDatadogCreator"; import { IncidentNotificationHandle } from "./IncidentNotificationHandle"; import { IncidentSeverity } from "./IncidentSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's attributes from a response. - */ +*/ export class IncidentResponseAttributes { /** * Timestamp of when the incident was archived. - */ + */ "archived"?: Date; /** * The incident case id. - */ + */ "caseId"?: number; /** * Timestamp when the incident was created. - */ + */ "created"?: Date; /** * Length of the incident's customer impact in seconds. * Equals the difference between `customer_impact_start` and `customer_impact_end`. - */ + */ "customerImpactDuration"?: number; /** * Timestamp when customers were no longer impacted by the incident. - */ + */ "customerImpactEnd"?: Date; /** * A summary of the impact customers experienced during the incident. - */ + */ "customerImpactScope"?: string; /** * Timestamp when customers began being impacted by the incident. - */ + */ "customerImpactStart"?: Date; /** * A flag indicating whether the incident caused customer impact. - */ + */ "customerImpacted"?: boolean; /** * Timestamp when the incident was detected. - */ + */ "detected"?: Date; /** * A condensed view of the user-defined fields attached to incidents. - */ - "fields"?: { [key: string]: IncidentFieldAttributes }; + */ + "fields"?: { [key: string]: IncidentFieldAttributes; }; /** * A unique identifier that represents an incident type. - */ + */ "incidentTypeUuid"?: string; /** * Timestamp when the incident was last modified. - */ + */ "modified"?: Date; /** * Incident's non Datadog creator. - */ + */ "nonDatadogCreator"?: IncidentNonDatadogCreator; /** * Notification handles that will be notified of the incident during update. - */ + */ "notificationHandles"?: Array; /** * The monotonically increasing integer ID for the incident. - */ + */ "publicId"?: number; /** * Timestamp when the incident's state was last changed from active or stable to resolved or completed. - */ + */ "resolved"?: Date; /** * The incident severity. - */ + */ "severity"?: IncidentSeverity; /** * The state incident. - */ + */ "state"?: string; /** * The amount of time in seconds to detect the incident. * Equals the difference between `customer_impact_start` and `detected`. - */ + */ "timeToDetect"?: number; /** * The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`. - */ + */ "timeToInternalResponse"?: number; /** * The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`. - */ + */ "timeToRepair"?: number; /** * The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`. - */ + */ "timeToResolve"?: number; /** * The title of the incident, which summarizes what happened. - */ + */ "title": string; /** * The incident visibility status. - */ + */ "visibility"?: string; /** @@ -129,129 +134,155 @@ export class IncidentResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - archived: { - baseName: "archived", - type: "Date", - format: "date-time", - }, - caseId: { - baseName: "case_id", - type: "number", - format: "int64", + "archived": { + "baseName": "archived", + "type": "Date", + "format": "date-time", }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "caseId": { + "baseName": "case_id", + "type": "number", + "format": "int64", }, - customerImpactDuration: { - baseName: "customer_impact_duration", - type: "number", - format: "int64", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - customerImpactEnd: { - baseName: "customer_impact_end", - type: "Date", - format: "date-time", + "customerImpactDuration": { + "baseName": "customer_impact_duration", + "type": "number", + "format": "int64", }, - customerImpactScope: { - baseName: "customer_impact_scope", - type: "string", + "customerImpactEnd": { + "baseName": "customer_impact_end", + "type": "Date", + "format": "date-time", }, - customerImpactStart: { - baseName: "customer_impact_start", - type: "Date", - format: "date-time", + "customerImpactScope": { + "baseName": "customer_impact_scope", + "type": "string", }, - customerImpacted: { - baseName: "customer_impacted", - type: "boolean", + "customerImpactStart": { + "baseName": "customer_impact_start", + "type": "Date", + "format": "date-time", }, - detected: { - baseName: "detected", - type: "Date", - format: "date-time", + "customerImpacted": { + "baseName": "customer_impacted", + "type": "boolean", }, - fields: { - baseName: "fields", - type: "{ [key: string]: IncidentFieldAttributes; }", + "detected": { + "baseName": "detected", + "type": "Date", + "format": "date-time", }, - incidentTypeUuid: { - baseName: "incident_type_uuid", - type: "string", + "fields": { + "baseName": "fields", + "type": "{ [key: string]: IncidentFieldAttributes; }", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "incidentTypeUuid": { + "baseName": "incident_type_uuid", + "type": "string", }, - nonDatadogCreator: { - baseName: "non_datadog_creator", - type: "IncidentNonDatadogCreator", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - notificationHandles: { - baseName: "notification_handles", - type: "Array", + "nonDatadogCreator": { + "baseName": "non_datadog_creator", + "type": "IncidentNonDatadogCreator", }, - publicId: { - baseName: "public_id", - type: "number", - format: "int64", + "notificationHandles": { + "baseName": "notification_handles", + "type": "Array", }, - resolved: { - baseName: "resolved", - type: "Date", - format: "date-time", + "publicId": { + "baseName": "public_id", + "type": "number", + "format": "int64", }, - severity: { - baseName: "severity", - type: "IncidentSeverity", + "resolved": { + "baseName": "resolved", + "type": "Date", + "format": "date-time", }, - state: { - baseName: "state", - type: "string", + "severity": { + "baseName": "severity", + "type": "IncidentSeverity", }, - timeToDetect: { - baseName: "time_to_detect", - type: "number", - format: "int64", + "state": { + "baseName": "state", + "type": "string", }, - timeToInternalResponse: { - baseName: "time_to_internal_response", - type: "number", - format: "int64", + "timeToDetect": { + "baseName": "time_to_detect", + "type": "number", + "format": "int64", }, - timeToRepair: { - baseName: "time_to_repair", - type: "number", - format: "int64", + "timeToInternalResponse": { + "baseName": "time_to_internal_response", + "type": "number", + "format": "int64", }, - timeToResolve: { - baseName: "time_to_resolve", - type: "number", - format: "int64", + "timeToRepair": { + "baseName": "time_to_repair", + "type": "number", + "format": "int64", }, - title: { - baseName: "title", - type: "string", - required: true, + "timeToResolve": { + "baseName": "time_to_resolve", + "type": "number", + "format": "int64", }, - visibility: { - baseName: "visibility", - type: "string", + "title": { + "baseName": "title", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "visibility": { + "baseName": "visibility", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentResponseData.ts b/packages/datadog-api-client-v2/models/IncidentResponseData.ts index c33bd60dbd50..931af4d5a9c9 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponseData.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponseData.ts @@ -7,27 +7,32 @@ import { IncidentResponseAttributes } from "./IncidentResponseAttributes"; import { IncidentResponseRelationships } from "./IncidentResponseRelationships"; import { IncidentType } from "./IncidentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident data from a response. - */ +*/ export class IncidentResponseData { /** * The incident's attributes from a response. - */ + */ "attributes"?: IncidentResponseAttributes; /** * The incident's ID. - */ + */ "id": string; /** * The incident's relationships from a response. - */ + */ "relationships"?: IncidentResponseRelationships; /** * Incident resource type. - */ + */ "type": IncidentType; /** @@ -46,36 +51,62 @@ export class IncidentResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentResponseAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "IncidentResponseRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentResponseRelationships", }, - type: { - baseName: "type", - type: "IncidentType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.ts index 3dc4cef9615a..8ddf927bb66a 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.ts @@ -6,13 +6,15 @@ import { IncidentAttachmentData } from "./IncidentAttachmentData"; import { IncidentUserData } from "./IncidentUserData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an incident that is included in the response. - */ +*/ -export type IncidentResponseIncludedItem = - | IncidentUserData - | IncidentAttachmentData - | UnparsedObject; +export type IncidentResponseIncludedItem = IncidentUserData | IncidentAttachmentData | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentResponseMeta.ts b/packages/datadog-api-client-v2/models/IncidentResponseMeta.ts index b35c6e38a01a..bc96a1e3ef21 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponseMeta.ts @@ -5,15 +5,20 @@ */ import { IncidentResponseMetaPagination } from "./IncidentResponseMetaPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata object containing pagination metadata. - */ +*/ export class IncidentResponseMeta { /** * Pagination properties. - */ + */ "pagination"?: IncidentResponseMetaPagination; /** @@ -32,22 +37,48 @@ export class IncidentResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "IncidentResponseMetaPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "IncidentResponseMetaPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentResponseMetaPagination.ts b/packages/datadog-api-client-v2/models/IncidentResponseMetaPagination.ts index 9ed38110ad26..947fc7913d39 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponseMetaPagination.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponseMetaPagination.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination properties. - */ +*/ export class IncidentResponseMetaPagination { /** * The index of the first element in the next page of results. Equal to page size added to the current offset. - */ + */ "nextOffset"?: number; /** * The index of the first element in the results. - */ + */ "offset"?: number; /** * Maximum size of pages to return. - */ + */ "size"?: number; /** @@ -39,33 +44,59 @@ export class IncidentResponseMetaPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - nextOffset: { - baseName: "next_offset", - type: "number", - format: "int64", - }, - offset: { - baseName: "offset", - type: "number", - format: "int64", + "nextOffset": { + "baseName": "next_offset", + "type": "number", + "format": "int64", }, - size: { - baseName: "size", - type: "number", - format: "int64", + "offset": { + "baseName": "offset", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "size": { + "baseName": "size", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentResponseMetaPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentResponseRelationships.ts b/packages/datadog-api-client-v2/models/IncidentResponseRelationships.ts index a95b08c71a71..f0c54cb8b647 100644 --- a/packages/datadog-api-client-v2/models/IncidentResponseRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentResponseRelationships.ts @@ -11,43 +11,48 @@ import { RelationshipToIncidentResponders } from "./RelationshipToIncidentRespon import { RelationshipToIncidentUserDefinedFields } from "./RelationshipToIncidentUserDefinedFields"; import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's relationships from a response. - */ +*/ export class IncidentResponseRelationships { /** * A relationship reference for attachments. - */ + */ "attachments"?: RelationshipToIncidentAttachment; /** * Relationship to user. - */ + */ "commanderUser"?: NullableRelationshipToUser; /** * Relationship to user. - */ + */ "createdByUser"?: RelationshipToUser; /** * Relationship to impacts. - */ + */ "impacts"?: RelationshipToIncidentImpacts; /** * A relationship reference for multiple integration metadata objects. - */ + */ "integrations"?: RelationshipToIncidentIntegrationMetadatas; /** * Relationship to user. - */ + */ "lastModifiedByUser"?: RelationshipToUser; /** * Relationship to incident responders. - */ + */ "responders"?: RelationshipToIncidentResponders; /** * Relationship to incident user defined fields. - */ + */ "userDefinedFields"?: RelationshipToIncidentUserDefinedFields; /** @@ -66,50 +71,76 @@ export class IncidentResponseRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attachments: { - baseName: "attachments", - type: "RelationshipToIncidentAttachment", + "attachments": { + "baseName": "attachments", + "type": "RelationshipToIncidentAttachment", }, - commanderUser: { - baseName: "commander_user", - type: "NullableRelationshipToUser", + "commanderUser": { + "baseName": "commander_user", + "type": "NullableRelationshipToUser", }, - createdByUser: { - baseName: "created_by_user", - type: "RelationshipToUser", + "createdByUser": { + "baseName": "created_by_user", + "type": "RelationshipToUser", }, - impacts: { - baseName: "impacts", - type: "RelationshipToIncidentImpacts", + "impacts": { + "baseName": "impacts", + "type": "RelationshipToIncidentImpacts", }, - integrations: { - baseName: "integrations", - type: "RelationshipToIncidentIntegrationMetadatas", + "integrations": { + "baseName": "integrations", + "type": "RelationshipToIncidentIntegrationMetadatas", }, - lastModifiedByUser: { - baseName: "last_modified_by_user", - type: "RelationshipToUser", + "lastModifiedByUser": { + "baseName": "last_modified_by_user", + "type": "RelationshipToUser", }, - responders: { - baseName: "responders", - type: "RelationshipToIncidentResponders", + "responders": { + "baseName": "responders", + "type": "RelationshipToIncidentResponders", }, - userDefinedFields: { - baseName: "user_defined_fields", - type: "RelationshipToIncidentUserDefinedFields", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userDefinedFields": { + "baseName": "user_defined_fields", + "type": "RelationshipToIncidentUserDefinedFields", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentResponseRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponse.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponse.ts index f06ba8fc8523..723a69e09573 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponse.ts @@ -7,23 +7,28 @@ import { IncidentResponseIncludedItem } from "./IncidentResponseIncludedItem"; import { IncidentSearchResponseData } from "./IncidentSearchResponseData"; import { IncidentSearchResponseMeta } from "./IncidentSearchResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with incidents and facets. - */ +*/ export class IncidentSearchResponse { /** * Data returned by an incident search. - */ + */ "data": IncidentSearchResponseData; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** * The metadata object containing pagination metadata. - */ + */ "meta"?: IncidentSearchResponseMeta; /** @@ -42,31 +47,57 @@ export class IncidentSearchResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentSearchResponseData", - required: true, - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "IncidentSearchResponseData", + "required": true, }, - meta: { - baseName: "meta", - type: "IncidentSearchResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "IncidentSearchResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseAttributes.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseAttributes.ts index 179107c887d7..947c5a6fb277 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseAttributes.ts @@ -6,23 +6,28 @@ import { IncidentSearchResponseFacetsData } from "./IncidentSearchResponseFacetsData"; import { IncidentSearchResponseIncidentsData } from "./IncidentSearchResponseIncidentsData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes returned by an incident search. - */ +*/ export class IncidentSearchResponseAttributes { /** * Facet data for incidents returned by a search query. - */ + */ "facets": IncidentSearchResponseFacetsData; /** * Incidents returned by the search. - */ + */ "incidents": Array; /** * Number of incidents returned by the search. - */ + */ "total": number; /** @@ -41,34 +46,60 @@ export class IncidentSearchResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facets: { - baseName: "facets", - type: "IncidentSearchResponseFacetsData", - required: true, - }, - incidents: { - baseName: "incidents", - type: "Array", - required: true, + "facets": { + "baseName": "facets", + "type": "IncidentSearchResponseFacetsData", + "required": true, }, - total: { - baseName: "total", - type: "number", - required: true, - format: "int32", + "incidents": { + "baseName": "incidents", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "number", + "required": true, + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseData.ts index 9bab3c40daac..9f362c532584 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseData.ts @@ -6,19 +6,24 @@ import { IncidentSearchResponseAttributes } from "./IncidentSearchResponseAttributes"; import { IncidentSearchResultsType } from "./IncidentSearchResultsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data returned by an incident search. - */ +*/ export class IncidentSearchResponseData { /** * Attributes returned by an incident search. - */ + */ "attributes"?: IncidentSearchResponseAttributes; /** * Incident search result type. - */ + */ "type"?: IncidentSearchResultsType; /** @@ -37,26 +42,52 @@ export class IncidentSearchResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentSearchResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentSearchResponseAttributes", }, - type: { - baseName: "type", - type: "IncidentSearchResultsType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentSearchResultsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseFacetsData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseFacetsData.ts index 7649746f206c..64bbd66f43fd 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseFacetsData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseFacetsData.ts @@ -8,55 +8,60 @@ import { IncidentSearchResponseNumericFacetData } from "./IncidentSearchResponse import { IncidentSearchResponsePropertyFieldFacetData } from "./IncidentSearchResponsePropertyFieldFacetData"; import { IncidentSearchResponseUserFacetData } from "./IncidentSearchResponseUserFacetData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet data for incidents returned by a search query. - */ +*/ export class IncidentSearchResponseFacetsData { /** * Facet data for incident commander users. - */ + */ "commander"?: Array; /** * Facet data for incident creator users. - */ + */ "createdBy"?: Array; /** * Facet data for incident property fields. - */ + */ "fields"?: Array; /** * Facet data for incident impact attributes. - */ + */ "impact"?: Array; /** * Facet data for incident last modified by users. - */ + */ "lastModifiedBy"?: Array; /** * Facet data for incident postmortem existence. - */ + */ "postmortem"?: Array; /** * Facet data for incident responder users. - */ + */ "responder"?: Array; /** * Facet data for incident severity attributes. - */ + */ "severity"?: Array; /** * Facet data for incident state attributes. - */ + */ "state"?: Array; /** * Facet data for incident time to repair metrics. - */ + */ "timeToRepair"?: Array; /** * Facet data for incident time to resolve metrics. - */ + */ "timeToResolve"?: Array; /** @@ -75,62 +80,88 @@ export class IncidentSearchResponseFacetsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - commander: { - baseName: "commander", - type: "Array", - }, - createdBy: { - baseName: "created_by", - type: "Array", + "commander": { + "baseName": "commander", + "type": "Array", }, - fields: { - baseName: "fields", - type: "Array", + "createdBy": { + "baseName": "created_by", + "type": "Array", }, - impact: { - baseName: "impact", - type: "Array", + "fields": { + "baseName": "fields", + "type": "Array", }, - lastModifiedBy: { - baseName: "last_modified_by", - type: "Array", + "impact": { + "baseName": "impact", + "type": "Array", }, - postmortem: { - baseName: "postmortem", - type: "Array", + "lastModifiedBy": { + "baseName": "last_modified_by", + "type": "Array", }, - responder: { - baseName: "responder", - type: "Array", + "postmortem": { + "baseName": "postmortem", + "type": "Array", }, - severity: { - baseName: "severity", - type: "Array", + "responder": { + "baseName": "responder", + "type": "Array", }, - state: { - baseName: "state", - type: "Array", + "severity": { + "baseName": "severity", + "type": "Array", }, - timeToRepair: { - baseName: "time_to_repair", - type: "Array", + "state": { + "baseName": "state", + "type": "Array", }, - timeToResolve: { - baseName: "time_to_resolve", - type: "Array", + "timeToRepair": { + "baseName": "time_to_repair", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timeToResolve": { + "baseName": "time_to_resolve", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseFacetsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseFieldFacetData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseFieldFacetData.ts index d5326c90b175..9622e533f9c1 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseFieldFacetData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseFieldFacetData.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet value and number of occurrences for a property field of an incident. - */ +*/ export class IncidentSearchResponseFieldFacetData { /** * Count of the facet value appearing in search results. - */ + */ "count"?: number; /** * The facet value appearing in search results. - */ + */ "name"?: string; /** @@ -35,27 +40,53 @@ export class IncidentSearchResponseFieldFacetData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int32", + "count": { + "baseName": "count", + "type": "number", + "format": "int32", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseFieldFacetData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseIncidentsData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseIncidentsData.ts index 399373d7d6da..c7828874a273 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseIncidentsData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseIncidentsData.ts @@ -5,15 +5,20 @@ */ import { IncidentResponseData } from "./IncidentResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident returned by the search. - */ +*/ export class IncidentSearchResponseIncidentsData { /** * Incident data from a response. - */ + */ "data": IncidentResponseData; /** @@ -32,23 +37,49 @@ export class IncidentSearchResponseIncidentsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseIncidentsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.ts index a5ea1126f627..dd3543ff58ee 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.ts @@ -5,15 +5,20 @@ */ import { IncidentResponseMetaPagination } from "./IncidentResponseMetaPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata object containing pagination metadata. - */ +*/ export class IncidentSearchResponseMeta { /** * Pagination properties. - */ + */ "pagination"?: IncidentResponseMetaPagination; /** @@ -32,22 +37,48 @@ export class IncidentSearchResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "IncidentResponseMetaPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "IncidentResponseMetaPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetData.ts index b9499f49ce40..ad851927d8bd 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetData.ts @@ -5,19 +5,24 @@ */ import { IncidentSearchResponseNumericFacetDataAggregates } from "./IncidentSearchResponseNumericFacetDataAggregates"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet data numeric attributes of an incident. - */ +*/ export class IncidentSearchResponseNumericFacetData { /** * Aggregate information for numeric incident data. - */ + */ "aggregates": IncidentSearchResponseNumericFacetDataAggregates; /** * Name of the incident property field. - */ + */ "name": string; /** @@ -36,28 +41,54 @@ export class IncidentSearchResponseNumericFacetData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregates: { - baseName: "aggregates", - type: "IncidentSearchResponseNumericFacetDataAggregates", - required: true, + "aggregates": { + "baseName": "aggregates", + "type": "IncidentSearchResponseNumericFacetDataAggregates", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseNumericFacetData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetDataAggregates.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetDataAggregates.ts index 0016add304c0..91d38db9dfbf 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetDataAggregates.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseNumericFacetDataAggregates.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Aggregate information for numeric incident data. - */ +*/ export class IncidentSearchResponseNumericFacetDataAggregates { /** * Maximum value of the numeric aggregates. - */ + */ "max"?: number; /** * Minimum value of the numeric aggregates. - */ + */ "min"?: number; /** @@ -35,28 +40,54 @@ export class IncidentSearchResponseNumericFacetDataAggregates { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - max: { - baseName: "max", - type: "number", - format: "double", + "max": { + "baseName": "max", + "type": "number", + "format": "double", }, - min: { - baseName: "min", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "min": { + "baseName": "min", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseNumericFacetDataAggregates.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponsePropertyFieldFacetData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponsePropertyFieldFacetData.ts index 22cb85565f11..8366fe4a2b2f 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponsePropertyFieldFacetData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponsePropertyFieldFacetData.ts @@ -6,23 +6,28 @@ import { IncidentSearchResponseFieldFacetData } from "./IncidentSearchResponseFieldFacetData"; import { IncidentSearchResponseNumericFacetDataAggregates } from "./IncidentSearchResponseNumericFacetDataAggregates"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet data for the incident property fields. - */ +*/ export class IncidentSearchResponsePropertyFieldFacetData { /** * Aggregate information for numeric incident data. - */ + */ "aggregates"?: IncidentSearchResponseNumericFacetDataAggregates; /** * Facet data for the property field of an incident. - */ + */ "facets": Array; /** * Name of the incident property field. - */ + */ "name": string; /** @@ -41,32 +46,58 @@ export class IncidentSearchResponsePropertyFieldFacetData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregates: { - baseName: "aggregates", - type: "IncidentSearchResponseNumericFacetDataAggregates", - }, - facets: { - baseName: "facets", - type: "Array", - required: true, + "aggregates": { + "baseName": "aggregates", + "type": "IncidentSearchResponseNumericFacetDataAggregates", }, - name: { - baseName: "name", - type: "string", - required: true, + "facets": { + "baseName": "facets", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponsePropertyFieldFacetData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResponseUserFacetData.ts b/packages/datadog-api-client-v2/models/IncidentSearchResponseUserFacetData.ts index c86a22c86cf9..b6883f42a490 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResponseUserFacetData.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResponseUserFacetData.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Facet data for user attributes of an incident. - */ +*/ export class IncidentSearchResponseUserFacetData { /** * Count of the facet value appearing in search results. - */ + */ "count"?: number; /** * Email of the user. - */ + */ "email"?: string; /** * Handle of the user. - */ + */ "handle"?: string; /** * Name of the user. - */ + */ "name"?: string; /** * ID of the user. - */ + */ "uuid"?: string; /** @@ -47,39 +52,65 @@ export class IncidentSearchResponseUserFacetData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int32", + "count": { + "baseName": "count", + "type": "number", + "format": "int32", }, - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - uuid: { - baseName: "uuid", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uuid": { + "baseName": "uuid", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentSearchResponseUserFacetData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSearchResultsType.ts b/packages/datadog-api-client-v2/models/IncidentSearchResultsType.ts index da8b98fc7b6f..b39f411c977f 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchResultsType.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchResultsType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident search result type. - */ +*/ -export type IncidentSearchResultsType = - | typeof INCIDENTS_SEARCH_RESULTS - | UnparsedObject; -export const INCIDENTS_SEARCH_RESULTS = "incidents_search_results"; +export type IncidentSearchResultsType = typeof INCIDENTS_SEARCH_RESULTS | UnparsedObject; +export const INCIDENTS_SEARCH_RESULTS = 'incidents_search_results'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentSearchSortOrder.ts b/packages/datadog-api-client-v2/models/IncidentSearchSortOrder.ts index 6188d3d5c2f2..6ac1b88e37b6 100644 --- a/packages/datadog-api-client-v2/models/IncidentSearchSortOrder.ts +++ b/packages/datadog-api-client-v2/models/IncidentSearchSortOrder.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The ways searched incidents can be sorted. - */ +*/ -export type IncidentSearchSortOrder = - | typeof CREATED_ASCENDING - | typeof CREATED_DESCENDING - | UnparsedObject; -export const CREATED_ASCENDING = "created"; -export const CREATED_DESCENDING = "-created"; +export type IncidentSearchSortOrder = typeof CREATED_ASCENDING| typeof CREATED_DESCENDING | UnparsedObject; +export const CREATED_ASCENDING = 'created'; +export const CREATED_DESCENDING = '-created'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentServiceCreateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentServiceCreateAttributes.ts index 01eee45e1c37..2192f486413c 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceCreateAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident service's attributes for a create request. - */ +*/ export class IncidentServiceCreateAttributes { /** * Name of the incident service. - */ + */ "name": string; /** @@ -31,23 +36,49 @@ export class IncidentServiceCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceCreateData.ts b/packages/datadog-api-client-v2/models/IncidentServiceCreateData.ts index 8af90c585a74..9700a935e8d7 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceCreateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceCreateData.ts @@ -7,23 +7,28 @@ import { IncidentServiceCreateAttributes } from "./IncidentServiceCreateAttribut import { IncidentServiceRelationships } from "./IncidentServiceRelationships"; import { IncidentServiceType } from "./IncidentServiceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident Service payload for create requests. - */ +*/ export class IncidentServiceCreateData { /** * The incident service's attributes for a create request. - */ + */ "attributes"?: IncidentServiceCreateAttributes; /** * The incident service's relationships. - */ + */ "relationships"?: IncidentServiceRelationships; /** * Incident service resource type. - */ + */ "type": IncidentServiceType; /** @@ -42,31 +47,57 @@ export class IncidentServiceCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentServiceCreateAttributes", - }, - relationships: { - baseName: "relationships", - type: "IncidentServiceRelationships", + "attributes": { + "baseName": "attributes", + "type": "IncidentServiceCreateAttributes", }, - type: { - baseName: "type", - type: "IncidentServiceType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "IncidentServiceRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceCreateRequest.ts b/packages/datadog-api-client-v2/models/IncidentServiceCreateRequest.ts index ae145acd9ef1..5339dc0394f3 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceCreateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentServiceCreateData } from "./IncidentServiceCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request with an incident service payload. - */ +*/ export class IncidentServiceCreateRequest { /** * Incident Service payload for create requests. - */ + */ "data": IncidentServiceCreateData; /** @@ -32,23 +37,49 @@ export class IncidentServiceCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentServiceCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentServiceCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceIncludedItems.ts b/packages/datadog-api-client-v2/models/IncidentServiceIncludedItems.ts index e6ffe09c55c4..f1515d36e39b 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceIncludedItems.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceIncludedItems.ts @@ -5,10 +5,15 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an incident service which is present in the included payload. - */ +*/ -export type IncidentServiceIncludedItems = User | UnparsedObject; +export type IncidentServiceIncludedItems = User | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentServiceRelationships.ts b/packages/datadog-api-client-v2/models/IncidentServiceRelationships.ts index 904c8450aadd..1852685b13b3 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceRelationships.ts @@ -5,19 +5,24 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident service's relationships. - */ +*/ export class IncidentServiceRelationships { /** * Relationship to user. - */ + */ "createdBy"?: RelationshipToUser; /** * Relationship to user. - */ + */ "lastModifiedBy"?: RelationshipToUser; /** @@ -36,26 +41,52 @@ export class IncidentServiceRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdBy: { - baseName: "created_by", - type: "RelationshipToUser", + "createdBy": { + "baseName": "created_by", + "type": "RelationshipToUser", }, - lastModifiedBy: { - baseName: "last_modified_by", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lastModifiedBy": { + "baseName": "last_modified_by", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceResponse.ts b/packages/datadog-api-client-v2/models/IncidentServiceResponse.ts index 2ffd8647fe7c..b8f2ec0a2541 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceResponse.ts @@ -6,19 +6,24 @@ import { IncidentServiceIncludedItems } from "./IncidentServiceIncludedItems"; import { IncidentServiceResponseData } from "./IncidentServiceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with an incident service payload. - */ +*/ export class IncidentServiceResponse { /** * Incident Service data from responses. - */ + */ "data": IncidentServiceResponseData; /** * Included objects from relationships. - */ + */ "included"?: Array; /** @@ -37,27 +42,53 @@ export class IncidentServiceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentServiceResponseData", - required: true, + "data": { + "baseName": "data", + "type": "IncidentServiceResponseData", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceResponseAttributes.ts b/packages/datadog-api-client-v2/models/IncidentServiceResponseAttributes.ts index 7d0b97fedff4..1871ccd89c74 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceResponseAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident service's attributes from a response. - */ +*/ export class IncidentServiceResponseAttributes { /** * Timestamp of when the incident service was created. - */ + */ "created"?: Date; /** * Timestamp of when the incident service was modified. - */ + */ "modified"?: Date; /** * Name of the incident service. - */ + */ "name"?: string; /** @@ -39,32 +44,58 @@ export class IncidentServiceResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceResponseData.ts b/packages/datadog-api-client-v2/models/IncidentServiceResponseData.ts index fcb8c14bce1c..5506160d1691 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceResponseData.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceResponseData.ts @@ -7,27 +7,32 @@ import { IncidentServiceRelationships } from "./IncidentServiceRelationships"; import { IncidentServiceResponseAttributes } from "./IncidentServiceResponseAttributes"; import { IncidentServiceType } from "./IncidentServiceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident Service data from responses. - */ +*/ export class IncidentServiceResponseData { /** * The incident service's attributes from a response. - */ + */ "attributes"?: IncidentServiceResponseAttributes; /** * The incident service's ID. - */ + */ "id": string; /** * The incident service's relationships. - */ + */ "relationships"?: IncidentServiceRelationships; /** * Incident service resource type. - */ + */ "type": IncidentServiceType; /** @@ -46,36 +51,62 @@ export class IncidentServiceResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentServiceResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentServiceResponseAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "IncidentServiceRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentServiceRelationships", }, - type: { - baseName: "type", - type: "IncidentServiceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceType.ts b/packages/datadog-api-client-v2/models/IncidentServiceType.ts index 974d043feff8..61b8b3173e52 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceType.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident service resource type. - */ +*/ export type IncidentServiceType = typeof SERVICES | UnparsedObject; -export const SERVICES = "services"; +export const SERVICES = 'services'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentServiceUpdateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentServiceUpdateAttributes.ts index 16a55998274a..abd3c83c8124 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceUpdateAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident service's attributes for an update request. - */ +*/ export class IncidentServiceUpdateAttributes { /** * Name of the incident service. - */ + */ "name": string; /** @@ -31,23 +36,49 @@ export class IncidentServiceUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceUpdateData.ts b/packages/datadog-api-client-v2/models/IncidentServiceUpdateData.ts index 8da6cdc1f500..3d738cc673e2 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceUpdateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceUpdateData.ts @@ -7,27 +7,32 @@ import { IncidentServiceRelationships } from "./IncidentServiceRelationships"; import { IncidentServiceType } from "./IncidentServiceType"; import { IncidentServiceUpdateAttributes } from "./IncidentServiceUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident Service payload for update requests. - */ +*/ export class IncidentServiceUpdateData { /** * The incident service's attributes for an update request. - */ + */ "attributes"?: IncidentServiceUpdateAttributes; /** * The incident service's ID. - */ + */ "id"?: string; /** * The incident service's relationships. - */ + */ "relationships"?: IncidentServiceRelationships; /** * Incident service resource type. - */ + */ "type": IncidentServiceType; /** @@ -46,35 +51,61 @@ export class IncidentServiceUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentServiceUpdateAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentServiceUpdateAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "IncidentServiceRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentServiceRelationships", }, - type: { - baseName: "type", - type: "IncidentServiceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServiceUpdateRequest.ts b/packages/datadog-api-client-v2/models/IncidentServiceUpdateRequest.ts index c2618d8b4e93..95dd6612677f 100644 --- a/packages/datadog-api-client-v2/models/IncidentServiceUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentServiceUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentServiceUpdateData } from "./IncidentServiceUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request with an incident service payload. - */ +*/ export class IncidentServiceUpdateRequest { /** * Incident Service payload for update requests. - */ + */ "data": IncidentServiceUpdateData; /** @@ -32,23 +37,49 @@ export class IncidentServiceUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentServiceUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentServiceUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServiceUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentServicesResponse.ts b/packages/datadog-api-client-v2/models/IncidentServicesResponse.ts index 0b6b175fa6e8..e680df4a1509 100644 --- a/packages/datadog-api-client-v2/models/IncidentServicesResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentServicesResponse.ts @@ -7,23 +7,28 @@ import { IncidentResponseMeta } from "./IncidentResponseMeta"; import { IncidentServiceIncludedItems } from "./IncidentServiceIncludedItems"; import { IncidentServiceResponseData } from "./IncidentServiceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of incident service payloads. - */ +*/ export class IncidentServicesResponse { /** * An array of incident services. - */ + */ "data": Array; /** * Included related resources which the user requested. - */ + */ "included"?: Array; /** * The metadata object containing pagination metadata. - */ + */ "meta"?: IncidentResponseMeta; /** @@ -42,31 +47,57 @@ export class IncidentServicesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "IncidentResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "IncidentResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentServicesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentSeverity.ts b/packages/datadog-api-client-v2/models/IncidentSeverity.ts index 8cd9537773ca..7d02237d2a86 100644 --- a/packages/datadog-api-client-v2/models/IncidentSeverity.ts +++ b/packages/datadog-api-client-v2/models/IncidentSeverity.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The incident severity. - */ +*/ -export type IncidentSeverity = - | typeof UNKNOWN - | typeof SEV_1 - | typeof SEV_2 - | typeof SEV_3 - | typeof SEV_4 - | typeof SEV_5 - | UnparsedObject; -export const UNKNOWN = "UNKNOWN"; -export const SEV_1 = "SEV-1"; -export const SEV_2 = "SEV-2"; -export const SEV_3 = "SEV-3"; -export const SEV_4 = "SEV-4"; -export const SEV_5 = "SEV-5"; +export type IncidentSeverity = typeof UNKNOWN| typeof SEV_1| typeof SEV_2| typeof SEV_3| typeof SEV_4| typeof SEV_5 | UnparsedObject; +export const UNKNOWN = 'UNKNOWN'; +export const SEV_1 = 'SEV-1'; +export const SEV_2 = 'SEV-2'; +export const SEV_3 = 'SEV-3'; +export const SEV_4 = 'SEV-4'; +export const SEV_5 = 'SEV-5'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTeamCreateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTeamCreateAttributes.ts index fd8cb509a4be..eaa9cfa33c62 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamCreateAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident team's attributes for a create request. - */ +*/ export class IncidentTeamCreateAttributes { /** * Name of the incident team. - */ + */ "name": string; /** @@ -31,23 +36,49 @@ export class IncidentTeamCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamCreateData.ts b/packages/datadog-api-client-v2/models/IncidentTeamCreateData.ts index a7ec9a676e11..71fc717a26b5 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamCreateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamCreateData.ts @@ -7,23 +7,28 @@ import { IncidentTeamCreateAttributes } from "./IncidentTeamCreateAttributes"; import { IncidentTeamRelationships } from "./IncidentTeamRelationships"; import { IncidentTeamType } from "./IncidentTeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident Team data for a create request. - */ +*/ export class IncidentTeamCreateData { /** * The incident team's attributes for a create request. - */ + */ "attributes"?: IncidentTeamCreateAttributes; /** * The incident team's relationships. - */ + */ "relationships"?: IncidentTeamRelationships; /** * Incident Team resource type. - */ + */ "type": IncidentTeamType; /** @@ -42,31 +47,57 @@ export class IncidentTeamCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTeamCreateAttributes", - }, - relationships: { - baseName: "relationships", - type: "IncidentTeamRelationships", + "attributes": { + "baseName": "attributes", + "type": "IncidentTeamCreateAttributes", }, - type: { - baseName: "type", - type: "IncidentTeamType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "IncidentTeamRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamCreateRequest.ts b/packages/datadog-api-client-v2/models/IncidentTeamCreateRequest.ts index bf3c0b3669e7..4de46159ca89 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamCreateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentTeamCreateData } from "./IncidentTeamCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request with an incident team payload. - */ +*/ export class IncidentTeamCreateRequest { /** * Incident Team data for a create request. - */ + */ "data": IncidentTeamCreateData; /** @@ -32,23 +37,49 @@ export class IncidentTeamCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTeamCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTeamCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamIncludedItems.ts b/packages/datadog-api-client-v2/models/IncidentTeamIncludedItems.ts index 20c29c1bd73b..381f014ec8f8 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamIncludedItems.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamIncludedItems.ts @@ -5,10 +5,15 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an incident team which is present in the included payload. - */ +*/ -export type IncidentTeamIncludedItems = User | UnparsedObject; +export type IncidentTeamIncludedItems = User | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTeamRelationships.ts b/packages/datadog-api-client-v2/models/IncidentTeamRelationships.ts index 7f5994fd6261..1a1c3bd658af 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamRelationships.ts @@ -5,19 +5,24 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident team's relationships. - */ +*/ export class IncidentTeamRelationships { /** * Relationship to user. - */ + */ "createdBy"?: RelationshipToUser; /** * Relationship to user. - */ + */ "lastModifiedBy"?: RelationshipToUser; /** @@ -36,26 +41,52 @@ export class IncidentTeamRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdBy: { - baseName: "created_by", - type: "RelationshipToUser", + "createdBy": { + "baseName": "created_by", + "type": "RelationshipToUser", }, - lastModifiedBy: { - baseName: "last_modified_by", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lastModifiedBy": { + "baseName": "last_modified_by", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamResponse.ts b/packages/datadog-api-client-v2/models/IncidentTeamResponse.ts index 8238a176ad6d..842cbc20d557 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamResponse.ts @@ -6,19 +6,24 @@ import { IncidentTeamIncludedItems } from "./IncidentTeamIncludedItems"; import { IncidentTeamResponseData } from "./IncidentTeamResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with an incident team payload. - */ +*/ export class IncidentTeamResponse { /** * Incident Team data from a response. - */ + */ "data": IncidentTeamResponseData; /** * Included objects from relationships. - */ + */ "included"?: Array; /** @@ -37,27 +42,53 @@ export class IncidentTeamResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTeamResponseData", - required: true, + "data": { + "baseName": "data", + "type": "IncidentTeamResponseData", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamResponseAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTeamResponseAttributes.ts index 39e54b3c2c6a..5efb05eabe3d 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamResponseAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident team's attributes from a response. - */ +*/ export class IncidentTeamResponseAttributes { /** * Timestamp of when the incident team was created. - */ + */ "created"?: Date; /** * Timestamp of when the incident team was modified. - */ + */ "modified"?: Date; /** * Name of the incident team. - */ + */ "name"?: string; /** @@ -39,32 +44,58 @@ export class IncidentTeamResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamResponseData.ts b/packages/datadog-api-client-v2/models/IncidentTeamResponseData.ts index 40561df6327d..75887ab8873f 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamResponseData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamResponseData.ts @@ -7,27 +7,32 @@ import { IncidentTeamRelationships } from "./IncidentTeamRelationships"; import { IncidentTeamResponseAttributes } from "./IncidentTeamResponseAttributes"; import { IncidentTeamType } from "./IncidentTeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident Team data from a response. - */ +*/ export class IncidentTeamResponseData { /** * The incident team's attributes from a response. - */ + */ "attributes"?: IncidentTeamResponseAttributes; /** * The incident team's ID. - */ + */ "id"?: string; /** * The incident team's relationships. - */ + */ "relationships"?: IncidentTeamRelationships; /** * Incident Team resource type. - */ + */ "type"?: IncidentTeamType; /** @@ -46,34 +51,60 @@ export class IncidentTeamResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTeamResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentTeamResponseAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "IncidentTeamRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentTeamRelationships", }, - type: { - baseName: "type", - type: "IncidentTeamType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTeamType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamType.ts b/packages/datadog-api-client-v2/models/IncidentTeamType.ts index 79da3b75c3c7..84000cb15018 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamType.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident Team resource type. - */ +*/ export type IncidentTeamType = typeof TEAMS | UnparsedObject; -export const TEAMS = "teams"; +export const TEAMS = 'teams'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTeamUpdateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTeamUpdateAttributes.ts index 21f0e683bc42..46be72c6dd80 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamUpdateAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident team's attributes for an update request. - */ +*/ export class IncidentTeamUpdateAttributes { /** * Name of the incident team. - */ + */ "name": string; /** @@ -31,23 +36,49 @@ export class IncidentTeamUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamUpdateData.ts b/packages/datadog-api-client-v2/models/IncidentTeamUpdateData.ts index 321ca8b5a052..3ce049ad1420 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamUpdateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamUpdateData.ts @@ -7,27 +7,32 @@ import { IncidentTeamRelationships } from "./IncidentTeamRelationships"; import { IncidentTeamType } from "./IncidentTeamType"; import { IncidentTeamUpdateAttributes } from "./IncidentTeamUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident Team data for an update request. - */ +*/ export class IncidentTeamUpdateData { /** * The incident team's attributes for an update request. - */ + */ "attributes"?: IncidentTeamUpdateAttributes; /** * The incident team's ID. - */ + */ "id"?: string; /** * The incident team's relationships. - */ + */ "relationships"?: IncidentTeamRelationships; /** * Incident Team resource type. - */ + */ "type": IncidentTeamType; /** @@ -46,35 +51,61 @@ export class IncidentTeamUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTeamUpdateAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentTeamUpdateAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "IncidentTeamRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentTeamRelationships", }, - type: { - baseName: "type", - type: "IncidentTeamType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamUpdateRequest.ts b/packages/datadog-api-client-v2/models/IncidentTeamUpdateRequest.ts index df52aee0c3a5..250e99af3322 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentTeamUpdateData } from "./IncidentTeamUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request with an incident team payload. - */ +*/ export class IncidentTeamUpdateRequest { /** * Incident Team data for an update request. - */ + */ "data": IncidentTeamUpdateData; /** @@ -32,23 +37,49 @@ export class IncidentTeamUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTeamUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTeamUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTeamsResponse.ts b/packages/datadog-api-client-v2/models/IncidentTeamsResponse.ts index 67bab505be5f..6f872601aff5 100644 --- a/packages/datadog-api-client-v2/models/IncidentTeamsResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentTeamsResponse.ts @@ -7,23 +7,28 @@ import { IncidentResponseMeta } from "./IncidentResponseMeta"; import { IncidentTeamIncludedItems } from "./IncidentTeamIncludedItems"; import { IncidentTeamResponseData } from "./IncidentTeamResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of incident team payloads. - */ +*/ export class IncidentTeamsResponse { /** * An array of incident teams. - */ + */ "data": Array; /** * Included related resources which the user requested. - */ + */ "included"?: Array; /** * The metadata object containing pagination metadata. - */ + */ "meta"?: IncidentResponseMeta; /** @@ -42,31 +47,57 @@ export class IncidentTeamsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "IncidentResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "IncidentResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTeamsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTimelineCellCreateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTimelineCellCreateAttributes.ts index 2c29ff649f6d..ab2966911a12 100644 --- a/packages/datadog-api-client-v2/models/IncidentTimelineCellCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTimelineCellCreateAttributes.ts @@ -5,12 +5,15 @@ */ import { IncidentTimelineCellMarkdownCreateAttributes } from "./IncidentTimelineCellMarkdownCreateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The timeline cell's attributes for a create request. - */ +*/ -export type IncidentTimelineCellCreateAttributes = - | IncidentTimelineCellMarkdownCreateAttributes - | UnparsedObject; +export type IncidentTimelineCellCreateAttributes = IncidentTimelineCellMarkdownCreateAttributes | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownContentType.ts b/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownContentType.ts index fd0ae46db5fc..979f466498ab 100644 --- a/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownContentType.ts +++ b/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownContentType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Markdown timeline cell. - */ +*/ -export type IncidentTimelineCellMarkdownContentType = - | typeof MARKDOWN - | UnparsedObject; -export const MARKDOWN = "markdown"; +export type IncidentTimelineCellMarkdownContentType = typeof MARKDOWN | UnparsedObject; +export const MARKDOWN = 'markdown'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributes.ts index 1076a2014b2c..f57bd4bad57f 100644 --- a/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributes.ts @@ -6,23 +6,28 @@ import { IncidentTimelineCellMarkdownContentType } from "./IncidentTimelineCellMarkdownContentType"; import { IncidentTimelineCellMarkdownCreateAttributesContent } from "./IncidentTimelineCellMarkdownCreateAttributesContent"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Timeline cell data for Markdown timeline cells for a create request. - */ +*/ export class IncidentTimelineCellMarkdownCreateAttributes { /** * Type of the Markdown timeline cell. - */ + */ "cellType": IncidentTimelineCellMarkdownContentType; /** * The Markdown timeline cell contents. - */ + */ "content": IncidentTimelineCellMarkdownCreateAttributesContent; /** * A flag indicating whether the timeline cell is important and should be highlighted. - */ + */ "important"?: boolean; /** @@ -41,32 +46,58 @@ export class IncidentTimelineCellMarkdownCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cellType: { - baseName: "cell_type", - type: "IncidentTimelineCellMarkdownContentType", - required: true, - }, - content: { - baseName: "content", - type: "IncidentTimelineCellMarkdownCreateAttributesContent", - required: true, + "cellType": { + "baseName": "cell_type", + "type": "IncidentTimelineCellMarkdownContentType", + "required": true, }, - important: { - baseName: "important", - type: "boolean", + "content": { + "baseName": "content", + "type": "IncidentTimelineCellMarkdownCreateAttributesContent", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "important": { + "baseName": "important", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTimelineCellMarkdownCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributesContent.ts b/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributesContent.ts index 1d21fc427135..5568deff1f36 100644 --- a/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributesContent.ts +++ b/packages/datadog-api-client-v2/models/IncidentTimelineCellMarkdownCreateAttributesContent.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Markdown timeline cell contents. - */ +*/ export class IncidentTimelineCellMarkdownCreateAttributesContent { /** * The Markdown content of the cell. - */ + */ "content"?: string; /** @@ -31,22 +36,48 @@ export class IncidentTimelineCellMarkdownCreateAttributesContent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - content: { - baseName: "content", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "content": { + "baseName": "content", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTimelineCellMarkdownCreateAttributesContent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.ts b/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.ts index f48d96d6287b..9bc53407773b 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.ts @@ -5,27 +5,32 @@ */ import { IncidentTodoAnonymousAssigneeSource } from "./IncidentTodoAnonymousAssigneeSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Anonymous assignee entity. - */ +*/ export class IncidentTodoAnonymousAssignee { /** * URL for assignee's icon. - */ + */ "icon": string; /** * Anonymous assignee's ID. - */ + */ "id": string; /** * Assignee's name. - */ + */ "name": string; /** * The source of the anonymous assignee. - */ + */ "source": IncidentTodoAnonymousAssigneeSource; /** @@ -44,38 +49,64 @@ export class IncidentTodoAnonymousAssignee { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - icon: { - baseName: "icon", - type: "string", - required: true, + "icon": { + "baseName": "icon", + "type": "string", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - source: { - baseName: "source", - type: "IncidentTodoAnonymousAssigneeSource", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "source": { + "baseName": "source", + "type": "IncidentTodoAnonymousAssigneeSource", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoAnonymousAssignee.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.ts b/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.ts index 86d63c97eb96..34ec2727b3d3 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The source of the anonymous assignee. - */ +*/ -export type IncidentTodoAnonymousAssigneeSource = - | typeof SLACK - | typeof MICROSOFT_TEAMS - | UnparsedObject; -export const SLACK = "slack"; -export const MICROSOFT_TEAMS = "microsoft_teams"; +export type IncidentTodoAnonymousAssigneeSource = typeof SLACK| typeof MICROSOFT_TEAMS | UnparsedObject; +export const SLACK = 'slack'; +export const MICROSOFT_TEAMS = 'microsoft_teams'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTodoAssignee.ts b/packages/datadog-api-client-v2/models/IncidentTodoAssignee.ts index 282753d64096..8d62f4de0e90 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoAssignee.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoAssignee.ts @@ -5,13 +5,15 @@ */ import { IncidentTodoAnonymousAssignee } from "./IncidentTodoAnonymousAssignee"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A todo assignee. - */ +*/ -export type IncidentTodoAssignee = - | string - | IncidentTodoAnonymousAssignee - | UnparsedObject; +export type IncidentTodoAssignee = string | IncidentTodoAnonymousAssignee | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTodoAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTodoAttributes.ts index fc8cf5196e75..e0fc5e69eb39 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoAttributes.ts @@ -5,39 +5,44 @@ */ import { IncidentTodoAssignee } from "./IncidentTodoAssignee"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident todo's attributes. - */ +*/ export class IncidentTodoAttributes { /** * Array of todo assignees. - */ + */ "assignees": Array; /** * Timestamp when the todo was completed. - */ + */ "completed"?: string; /** * The follow-up task's content. - */ + */ "content": string; /** * Timestamp when the incident todo was created. - */ + */ "created"?: Date; /** * Timestamp when the todo should be completed by. - */ + */ "dueDate"?: string; /** * UUID of the incident this todo is connected to. - */ + */ "incidentId"?: string; /** * Timestamp when the incident todo was last modified. - */ + */ "modified"?: Date; /** @@ -56,50 +61,76 @@ export class IncidentTodoAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assignees: { - baseName: "assignees", - type: "Array", - required: true, - }, - completed: { - baseName: "completed", - type: "string", + "assignees": { + "baseName": "assignees", + "type": "Array", + "required": true, }, - content: { - baseName: "content", - type: "string", - required: true, + "completed": { + "baseName": "completed", + "type": "string", }, - created: { - baseName: "created", - type: "Date", - format: "date-time", + "content": { + "baseName": "content", + "type": "string", + "required": true, }, - dueDate: { - baseName: "due_date", - type: "string", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - incidentId: { - baseName: "incident_id", - type: "string", + "dueDate": { + "baseName": "due_date", + "type": "string", }, - modified: { - baseName: "modified", - type: "Date", - format: "date-time", + "incidentId": { + "baseName": "incident_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "modified": { + "baseName": "modified", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoCreateData.ts b/packages/datadog-api-client-v2/models/IncidentTodoCreateData.ts index 5fb5d0e003d0..69c5f6079148 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoCreateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoCreateData.ts @@ -6,19 +6,24 @@ import { IncidentTodoAttributes } from "./IncidentTodoAttributes"; import { IncidentTodoType } from "./IncidentTodoType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident todo data for a create request. - */ +*/ export class IncidentTodoCreateData { /** * Incident todo's attributes. - */ + */ "attributes": IncidentTodoAttributes; /** * Todo resource type. - */ + */ "type": IncidentTodoType; /** @@ -37,28 +42,54 @@ export class IncidentTodoCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTodoAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentTodoAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentTodoType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTodoType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.ts b/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.ts index 7f7e6604bb75..e444caf7b299 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentTodoCreateData } from "./IncidentTodoCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request for an incident todo. - */ +*/ export class IncidentTodoCreateRequest { /** * Incident todo data for a create request. - */ + */ "data": IncidentTodoCreateData; /** @@ -32,23 +37,49 @@ export class IncidentTodoCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTodoCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTodoCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoListResponse.ts b/packages/datadog-api-client-v2/models/IncidentTodoListResponse.ts index ff74cfd7c1d4..257e14f7333f 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoListResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoListResponse.ts @@ -7,23 +7,28 @@ import { IncidentResponseMeta } from "./IncidentResponseMeta"; import { IncidentTodoResponseData } from "./IncidentTodoResponseData"; import { IncidentTodoResponseIncludedItem } from "./IncidentTodoResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of incident todos. - */ +*/ export class IncidentTodoListResponse { /** * An array of incident todos. - */ + */ "data": Array; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** * The metadata object containing pagination metadata. - */ + */ "meta"?: IncidentResponseMeta; /** @@ -42,31 +47,57 @@ export class IncidentTodoListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "IncidentResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "IncidentResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoPatchData.ts b/packages/datadog-api-client-v2/models/IncidentTodoPatchData.ts index 7d0ec3506693..5e0424dbc7c2 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoPatchData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoPatchData.ts @@ -6,19 +6,24 @@ import { IncidentTodoAttributes } from "./IncidentTodoAttributes"; import { IncidentTodoType } from "./IncidentTodoType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident todo data for a patch request. - */ +*/ export class IncidentTodoPatchData { /** * Incident todo's attributes. - */ + */ "attributes": IncidentTodoAttributes; /** * Todo resource type. - */ + */ "type": IncidentTodoType; /** @@ -37,28 +42,54 @@ export class IncidentTodoPatchData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTodoAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentTodoAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentTodoType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTodoType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoPatchData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.ts b/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.ts index ef78dadf39b2..f2f21f873ed2 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentTodoPatchData } from "./IncidentTodoPatchData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Patch request for an incident todo. - */ +*/ export class IncidentTodoPatchRequest { /** * Incident todo data for a patch request. - */ + */ "data": IncidentTodoPatchData; /** @@ -32,23 +37,49 @@ export class IncidentTodoPatchRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTodoPatchData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTodoPatchData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoPatchRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoRelationships.ts b/packages/datadog-api-client-v2/models/IncidentTodoRelationships.ts index f3e299fe60b0..edaf76e78704 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoRelationships.ts @@ -5,19 +5,24 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's relationships from a response. - */ +*/ export class IncidentTodoRelationships { /** * Relationship to user. - */ + */ "createdByUser"?: RelationshipToUser; /** * Relationship to user. - */ + */ "lastModifiedByUser"?: RelationshipToUser; /** @@ -36,26 +41,52 @@ export class IncidentTodoRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdByUser: { - baseName: "created_by_user", - type: "RelationshipToUser", + "createdByUser": { + "baseName": "created_by_user", + "type": "RelationshipToUser", }, - lastModifiedByUser: { - baseName: "last_modified_by_user", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "lastModifiedByUser": { + "baseName": "last_modified_by_user", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoResponse.ts b/packages/datadog-api-client-v2/models/IncidentTodoResponse.ts index 6ade83f2ee7a..33aae297caf0 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoResponse.ts @@ -6,19 +6,24 @@ import { IncidentTodoResponseData } from "./IncidentTodoResponseData"; import { IncidentTodoResponseIncludedItem } from "./IncidentTodoResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with an incident todo. - */ +*/ export class IncidentTodoResponse { /** * Incident todo response data. - */ + */ "data": IncidentTodoResponseData; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** @@ -37,27 +42,53 @@ export class IncidentTodoResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTodoResponseData", - required: true, + "data": { + "baseName": "data", + "type": "IncidentTodoResponseData", + "required": true, }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoResponseData.ts b/packages/datadog-api-client-v2/models/IncidentTodoResponseData.ts index 1eb13ef98aef..2affae86dee5 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoResponseData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoResponseData.ts @@ -7,27 +7,32 @@ import { IncidentTodoAttributes } from "./IncidentTodoAttributes"; import { IncidentTodoRelationships } from "./IncidentTodoRelationships"; import { IncidentTodoType } from "./IncidentTodoType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident todo response data. - */ +*/ export class IncidentTodoResponseData { /** * Incident todo's attributes. - */ + */ "attributes"?: IncidentTodoAttributes; /** * The incident todo's ID. - */ + */ "id": string; /** * The incident's relationships from a response. - */ + */ "relationships"?: IncidentTodoRelationships; /** * Todo resource type. - */ + */ "type": IncidentTodoType; /** @@ -46,36 +51,62 @@ export class IncidentTodoResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTodoAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentTodoAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "IncidentTodoRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentTodoRelationships", }, - type: { - baseName: "type", - type: "IncidentTodoType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTodoType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTodoResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.ts index 1fe112f51706..19d2b713695e 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.ts @@ -5,10 +5,15 @@ */ import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to an incident todo that is included in the response. - */ +*/ -export type IncidentTodoResponseIncludedItem = User | UnparsedObject; +export type IncidentTodoResponseIncludedItem = User | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTodoType.ts b/packages/datadog-api-client-v2/models/IncidentTodoType.ts index 464f4500e928..be488cc6578f 100644 --- a/packages/datadog-api-client-v2/models/IncidentTodoType.ts +++ b/packages/datadog-api-client-v2/models/IncidentTodoType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Todo resource type. - */ +*/ export type IncidentTodoType = typeof INCIDENT_TODOS | UnparsedObject; -export const INCIDENT_TODOS = "incident_todos"; +export const INCIDENT_TODOS = 'incident_todos'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTrigger.ts b/packages/datadog-api-client-v2/models/IncidentTrigger.ts index 6b5f90f9efa1..2268203bc4a6 100644 --- a/packages/datadog-api-client-v2/models/IncidentTrigger.ts +++ b/packages/datadog-api-client-v2/models/IncidentTrigger.ts @@ -5,15 +5,20 @@ */ import { TriggerRateLimit } from "./TriggerRateLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the workflow must be published. - */ +*/ export class IncidentTrigger { /** * Defines a rate limit for a trigger. - */ + */ "rateLimit"?: TriggerRateLimit; /** @@ -32,22 +37,48 @@ export class IncidentTrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rateLimit: { - baseName: "rateLimit", - type: "TriggerRateLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rateLimit": { + "baseName": "rateLimit", + "type": "TriggerRateLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTriggerWrapper.ts b/packages/datadog-api-client-v2/models/IncidentTriggerWrapper.ts index 7335b1515714..8eadb5444508 100644 --- a/packages/datadog-api-client-v2/models/IncidentTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/IncidentTriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { IncidentTrigger } from "./IncidentTrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for an Incident-based trigger. - */ +*/ export class IncidentTriggerWrapper { /** * Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the workflow must be published. - */ + */ "incidentTrigger": IncidentTrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class IncidentTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - incidentTrigger: { - baseName: "incidentTrigger", - type: "IncidentTrigger", - required: true, + "incidentTrigger": { + "baseName": "incidentTrigger", + "type": "IncidentTrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentType.ts b/packages/datadog-api-client-v2/models/IncidentType.ts index 6f761ecbeaff..633f8661c721 100644 --- a/packages/datadog-api-client-v2/models/IncidentType.ts +++ b/packages/datadog-api-client-v2/models/IncidentType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident resource type. - */ +*/ export type IncidentType = typeof INCIDENTS | UnparsedObject; -export const INCIDENTS = "incidents"; +export const INCIDENTS = 'incidents'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTypeAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTypeAttributes.ts index 9efb8657a178..daba5f67bb49 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident type's attributes. - */ +*/ export class IncidentTypeAttributes { /** * Timestamp when the incident type was created. - */ + */ "createdAt"?: Date; /** * A unique identifier that represents the user that created the incident type. - */ + */ "createdBy"?: string; /** * Text that describes the incident type. - */ + */ "description"?: string; /** * If true, this incident type will be used as the default incident type if a type is not specified during the creation of incident resources. - */ + */ "isDefault"?: boolean; /** * A unique identifier that represents the user that last modified the incident type. - */ + */ "lastModifiedBy"?: string; /** * Timestamp when the incident type was last modified. - */ + */ "modifiedAt"?: Date; /** * The name of the incident type. - */ + */ "name": string; /** * The string that will be prepended to the incident title across the Datadog app. - */ + */ "prefix"?: string; /** @@ -59,53 +64,79 @@ export class IncidentTypeAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "createdAt", + "type": "Date", + "format": "date-time", }, - createdBy: { - baseName: "createdBy", - type: "string", + "createdBy": { + "baseName": "createdBy", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - isDefault: { - baseName: "is_default", - type: "boolean", + "isDefault": { + "baseName": "is_default", + "type": "boolean", }, - lastModifiedBy: { - baseName: "lastModifiedBy", - type: "string", + "lastModifiedBy": { + "baseName": "lastModifiedBy", + "type": "string", }, - modifiedAt: { - baseName: "modifiedAt", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modifiedAt", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - prefix: { - baseName: "prefix", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefix": { + "baseName": "prefix", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypeCreateData.ts b/packages/datadog-api-client-v2/models/IncidentTypeCreateData.ts index bf891e74e8c9..dcf0b8cdedfb 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeCreateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeCreateData.ts @@ -6,19 +6,24 @@ import { IncidentTypeAttributes } from "./IncidentTypeAttributes"; import { IncidentTypeType } from "./IncidentTypeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident type data for a create request. - */ +*/ export class IncidentTypeCreateData { /** * Incident type's attributes. - */ + */ "attributes": IncidentTypeAttributes; /** * Incident type resource type. - */ + */ "type": IncidentTypeType; /** @@ -37,28 +42,54 @@ export class IncidentTypeCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTypeAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentTypeAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentTypeType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTypeType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypeCreateRequest.ts b/packages/datadog-api-client-v2/models/IncidentTypeCreateRequest.ts index 276cd708556f..fd03ed8dacf3 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeCreateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentTypeCreateData } from "./IncidentTypeCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request for an incident type. - */ +*/ export class IncidentTypeCreateRequest { /** * Incident type data for a create request. - */ + */ "data": IncidentTypeCreateData; /** @@ -32,23 +37,49 @@ export class IncidentTypeCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTypeCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTypeCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypeListResponse.ts b/packages/datadog-api-client-v2/models/IncidentTypeListResponse.ts index 6e83842b06c5..60c267444b27 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeListResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeListResponse.ts @@ -5,15 +5,20 @@ */ import { IncidentTypeObject } from "./IncidentTypeObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of incident types. - */ +*/ export class IncidentTypeListResponse { /** * An array of incident type objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class IncidentTypeListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypeObject.ts b/packages/datadog-api-client-v2/models/IncidentTypeObject.ts index 574703cb8fab..df333ac83cee 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeObject.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeObject.ts @@ -6,23 +6,28 @@ import { IncidentTypeAttributes } from "./IncidentTypeAttributes"; import { IncidentTypeType } from "./IncidentTypeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident type response data. - */ +*/ export class IncidentTypeObject { /** * Incident type's attributes. - */ + */ "attributes"?: IncidentTypeAttributes; /** * The incident type's ID. - */ + */ "id": string; /** * Incident type resource type. - */ + */ "type": IncidentTypeType; /** @@ -41,32 +46,58 @@ export class IncidentTypeObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTypeAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentTypeAttributes", }, - type: { - baseName: "type", - type: "IncidentTypeType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTypeType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypePatchData.ts b/packages/datadog-api-client-v2/models/IncidentTypePatchData.ts index dd9bf3c45e8c..e71b04c9f29f 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypePatchData.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypePatchData.ts @@ -6,23 +6,28 @@ import { IncidentTypeType } from "./IncidentTypeType"; import { IncidentTypeUpdateAttributes } from "./IncidentTypeUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident type data for a patch request. - */ +*/ export class IncidentTypePatchData { /** * Incident type's attributes for updates. - */ + */ "attributes": IncidentTypeUpdateAttributes; /** * The incident type's ID. - */ + */ "id": string; /** * Incident type resource type. - */ + */ "type": IncidentTypeType; /** @@ -41,33 +46,59 @@ export class IncidentTypePatchData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentTypeUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "IncidentTypeUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "IncidentTypeType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentTypeType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypePatchData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypePatchRequest.ts b/packages/datadog-api-client-v2/models/IncidentTypePatchRequest.ts index f19571757d15..6fcbd205603c 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypePatchRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypePatchRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentTypePatchData } from "./IncidentTypePatchData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Patch request for an incident type. - */ +*/ export class IncidentTypePatchRequest { /** * Incident type data for a patch request. - */ + */ "data": IncidentTypePatchData; /** @@ -32,23 +37,49 @@ export class IncidentTypePatchRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTypePatchData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTypePatchData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypePatchRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypeResponse.ts b/packages/datadog-api-client-v2/models/IncidentTypeResponse.ts index f8d168988c54..507897efdab7 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeResponse.ts @@ -5,15 +5,20 @@ */ import { IncidentTypeObject } from "./IncidentTypeObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident type response data. - */ +*/ export class IncidentTypeResponse { /** * Incident type response data. - */ + */ "data": IncidentTypeObject; /** @@ -32,23 +37,49 @@ export class IncidentTypeResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentTypeObject", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentTypeObject", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentTypeType.ts b/packages/datadog-api-client-v2/models/IncidentTypeType.ts index 2f7673c1a3a8..43fb577a4f71 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeType.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Incident type resource type. - */ +*/ export type IncidentTypeType = typeof INCIDENT_TYPES | UnparsedObject; -export const INCIDENT_TYPES = "incident_types"; +export const INCIDENT_TYPES = 'incident_types'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentTypeUpdateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentTypeUpdateAttributes.ts index 37fb316ce599..946699045844 100644 --- a/packages/datadog-api-client-v2/models/IncidentTypeUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentTypeUpdateAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident type's attributes for updates. - */ +*/ export class IncidentTypeUpdateAttributes { /** * Timestamp when the incident type was created. - */ + */ "createdAt"?: Date; /** * A unique identifier that represents the user that created the incident type. - */ + */ "createdBy"?: string; /** * Text that describes the incident type. - */ + */ "description"?: string; /** * When true, this incident type will be used as the default type when an incident type is not specified. - */ + */ "isDefault"?: boolean; /** * A unique identifier that represents the user that last modified the incident type. - */ + */ "lastModifiedBy"?: string; /** * Timestamp when the incident type was last modified. - */ + */ "modifiedAt"?: Date; /** * The name of the incident type. - */ + */ "name"?: string; /** * The string that will be prepended to the incident title across the Datadog app. - */ + */ "prefix"?: string; /** @@ -59,52 +64,78 @@ export class IncidentTypeUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "createdAt", + "type": "Date", + "format": "date-time", }, - createdBy: { - baseName: "createdBy", - type: "string", + "createdBy": { + "baseName": "createdBy", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - isDefault: { - baseName: "is_default", - type: "boolean", + "isDefault": { + "baseName": "is_default", + "type": "boolean", }, - lastModifiedBy: { - baseName: "lastModifiedBy", - type: "string", + "lastModifiedBy": { + "baseName": "lastModifiedBy", + "type": "string", }, - modifiedAt: { - baseName: "modifiedAt", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modifiedAt", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - prefix: { - baseName: "prefix", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefix": { + "baseName": "prefix", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentTypeUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.ts b/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.ts index 42a694761f62..779637f269fd 100644 --- a/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.ts @@ -6,43 +6,48 @@ import { IncidentFieldAttributes } from "./IncidentFieldAttributes"; import { IncidentNotificationHandle } from "./IncidentNotificationHandle"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's attributes for an update request. - */ +*/ export class IncidentUpdateAttributes { /** * Timestamp when customers were no longer impacted by the incident. - */ + */ "customerImpactEnd"?: Date; /** * A summary of the impact customers experienced during the incident. - */ + */ "customerImpactScope"?: string; /** * Timestamp when customers began being impacted by the incident. - */ + */ "customerImpactStart"?: Date; /** * A flag indicating whether the incident caused customer impact. - */ + */ "customerImpacted"?: boolean; /** * Timestamp when the incident was detected. - */ + */ "detected"?: Date; /** * A condensed view of the user-defined fields for which to update selections. - */ - "fields"?: { [key: string]: IncidentFieldAttributes }; + */ + "fields"?: { [key: string]: IncidentFieldAttributes; }; /** * Notification handles that will be notified of the incident during update. - */ + */ "notificationHandles"?: Array; /** * The title of the incident, which summarizes what happened. - */ + */ "title"?: string; /** @@ -61,53 +66,79 @@ export class IncidentUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customerImpactEnd: { - baseName: "customer_impact_end", - type: "Date", - format: "date-time", + "customerImpactEnd": { + "baseName": "customer_impact_end", + "type": "Date", + "format": "date-time", }, - customerImpactScope: { - baseName: "customer_impact_scope", - type: "string", + "customerImpactScope": { + "baseName": "customer_impact_scope", + "type": "string", }, - customerImpactStart: { - baseName: "customer_impact_start", - type: "Date", - format: "date-time", + "customerImpactStart": { + "baseName": "customer_impact_start", + "type": "Date", + "format": "date-time", }, - customerImpacted: { - baseName: "customer_impacted", - type: "boolean", + "customerImpacted": { + "baseName": "customer_impacted", + "type": "boolean", }, - detected: { - baseName: "detected", - type: "Date", - format: "date-time", + "detected": { + "baseName": "detected", + "type": "Date", + "format": "date-time", }, - fields: { - baseName: "fields", - type: "{ [key: string]: IncidentFieldAttributes; }", + "fields": { + "baseName": "fields", + "type": "{ [key: string]: IncidentFieldAttributes; }", }, - notificationHandles: { - baseName: "notification_handles", - type: "Array", + "notificationHandles": { + "baseName": "notification_handles", + "type": "Array", }, - title: { - baseName: "title", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUpdateData.ts b/packages/datadog-api-client-v2/models/IncidentUpdateData.ts index abd06e8be59e..20db204d56d5 100644 --- a/packages/datadog-api-client-v2/models/IncidentUpdateData.ts +++ b/packages/datadog-api-client-v2/models/IncidentUpdateData.ts @@ -7,27 +7,32 @@ import { IncidentType } from "./IncidentType"; import { IncidentUpdateAttributes } from "./IncidentUpdateAttributes"; import { IncidentUpdateRelationships } from "./IncidentUpdateRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident data for an update request. - */ +*/ export class IncidentUpdateData { /** * The incident's attributes for an update request. - */ + */ "attributes"?: IncidentUpdateAttributes; /** * The incident's ID. - */ + */ "id": string; /** * The incident's relationships for an update request. - */ + */ "relationships"?: IncidentUpdateRelationships; /** * Incident resource type. - */ + */ "type": IncidentType; /** @@ -46,36 +51,62 @@ export class IncidentUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentUpdateAttributes", + "attributes": { + "baseName": "attributes", + "type": "IncidentUpdateAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "IncidentUpdateRelationships", + "relationships": { + "baseName": "relationships", + "type": "IncidentUpdateRelationships", }, - type: { - baseName: "type", - type: "IncidentType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUpdateRelationships.ts b/packages/datadog-api-client-v2/models/IncidentUpdateRelationships.ts index b5ff6e0df3c6..499a9bdd3d45 100644 --- a/packages/datadog-api-client-v2/models/IncidentUpdateRelationships.ts +++ b/packages/datadog-api-client-v2/models/IncidentUpdateRelationships.ts @@ -7,23 +7,28 @@ import { NullableRelationshipToUser } from "./NullableRelationshipToUser"; import { RelationshipToIncidentIntegrationMetadatas } from "./RelationshipToIncidentIntegrationMetadatas"; import { RelationshipToIncidentPostmortem } from "./RelationshipToIncidentPostmortem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The incident's relationships for an update request. - */ +*/ export class IncidentUpdateRelationships { /** * Relationship to user. - */ + */ "commanderUser"?: NullableRelationshipToUser; /** * A relationship reference for multiple integration metadata objects. - */ + */ "integrations"?: RelationshipToIncidentIntegrationMetadatas; /** * A relationship reference for postmortems. - */ + */ "postmortem"?: RelationshipToIncidentPostmortem; /** @@ -42,30 +47,56 @@ export class IncidentUpdateRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - commanderUser: { - baseName: "commander_user", - type: "NullableRelationshipToUser", - }, - integrations: { - baseName: "integrations", - type: "RelationshipToIncidentIntegrationMetadatas", + "commanderUser": { + "baseName": "commander_user", + "type": "NullableRelationshipToUser", }, - postmortem: { - baseName: "postmortem", - type: "RelationshipToIncidentPostmortem", + "integrations": { + "baseName": "integrations", + "type": "RelationshipToIncidentIntegrationMetadatas", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "postmortem": { + "baseName": "postmortem", + "type": "RelationshipToIncidentPostmortem", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentUpdateRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUpdateRequest.ts b/packages/datadog-api-client-v2/models/IncidentUpdateRequest.ts index 6f99a45669f0..b6edfb01e6f9 100644 --- a/packages/datadog-api-client-v2/models/IncidentUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/IncidentUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { IncidentUpdateData } from "./IncidentUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request for an incident. - */ +*/ export class IncidentUpdateRequest { /** * Incident data for an update request. - */ + */ "data": IncidentUpdateData; /** @@ -32,23 +37,49 @@ export class IncidentUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "IncidentUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "IncidentUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUserAttributes.ts b/packages/datadog-api-client-v2/models/IncidentUserAttributes.ts index a1262864c532..b57983fccf72 100644 --- a/packages/datadog-api-client-v2/models/IncidentUserAttributes.ts +++ b/packages/datadog-api-client-v2/models/IncidentUserAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of user object returned by the API. - */ +*/ export class IncidentUserAttributes { /** * Email of the user. - */ + */ "email"?: string; /** * Handle of the user. - */ + */ "handle"?: string; /** * URL of the user's icon. - */ + */ "icon"?: string; /** * Name of the user. - */ + */ "name"?: string; /** * UUID of the user. - */ + */ "uuid"?: string; /** @@ -47,38 +52,64 @@ export class IncidentUserAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - icon: { - baseName: "icon", - type: "string", + "icon": { + "baseName": "icon", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - uuid: { - baseName: "uuid", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uuid": { + "baseName": "uuid", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentUserAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUserData.ts b/packages/datadog-api-client-v2/models/IncidentUserData.ts index 2f30691e0ee5..7ad639ae3787 100644 --- a/packages/datadog-api-client-v2/models/IncidentUserData.ts +++ b/packages/datadog-api-client-v2/models/IncidentUserData.ts @@ -6,23 +6,28 @@ import { IncidentUserAttributes } from "./IncidentUserAttributes"; import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User object returned by the API. - */ +*/ export class IncidentUserData { /** * Attributes of user object returned by the API. - */ + */ "attributes"?: IncidentUserAttributes; /** * ID of the user. - */ + */ "id"?: string; /** * Users resource type. - */ + */ "type"?: UsersType; /** @@ -41,30 +46,56 @@ export class IncidentUserData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "IncidentUserAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "IncidentUserAttributes", }, - type: { - baseName: "type", - type: "UsersType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentUserData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.ts b/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.ts index 3064e81e442a..9d5ecfed2938 100644 --- a/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.ts +++ b/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The incident user defined fields type. - */ +*/ -export type IncidentUserDefinedFieldType = - | typeof USER_DEFINED_FIELD - | UnparsedObject; -export const USER_DEFINED_FIELD = "user_defined_field"; +export type IncidentUserDefinedFieldType = typeof USER_DEFINED_FIELD | UnparsedObject; +export const USER_DEFINED_FIELD = 'user_defined_field'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IncidentsResponse.ts b/packages/datadog-api-client-v2/models/IncidentsResponse.ts index cf59951a6a3c..4aba49dc7e49 100644 --- a/packages/datadog-api-client-v2/models/IncidentsResponse.ts +++ b/packages/datadog-api-client-v2/models/IncidentsResponse.ts @@ -7,23 +7,28 @@ import { IncidentResponseData } from "./IncidentResponseData"; import { IncidentResponseIncludedItem } from "./IncidentResponseIncludedItem"; import { IncidentResponseMeta } from "./IncidentResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of incidents. - */ +*/ export class IncidentsResponse { /** * An array of incidents. - */ + */ "data": Array; /** * Included related resources that the user requested. - */ + */ "included"?: Array; /** * The metadata object containing pagination metadata. - */ + */ "meta"?: IncidentResponseMeta; /** @@ -42,31 +47,57 @@ export class IncidentsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "IncidentResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "IncidentResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IncidentsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/IncludeType.ts b/packages/datadog-api-client-v2/models/IncludeType.ts index 79356ec249f6..49bb2b9e7fb2 100644 --- a/packages/datadog-api-client-v2/models/IncludeType.ts +++ b/packages/datadog-api-client-v2/models/IncludeType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Supported include types. - */ +*/ -export type IncludeType = - | typeof SCHEMA - | typeof RAW_SCHEMA - | typeof ONCALL - | typeof INCIDENT - | typeof RELATION - | UnparsedObject; -export const SCHEMA = "schema"; -export const RAW_SCHEMA = "raw_schema"; -export const ONCALL = "oncall"; -export const INCIDENT = "incident"; -export const RELATION = "relation"; +export type IncludeType = typeof SCHEMA| typeof RAW_SCHEMA| typeof ONCALL| typeof INCIDENT| typeof RELATION | UnparsedObject; +export const SCHEMA = 'schema'; +export const RAW_SCHEMA = 'raw_schema'; +export const ONCALL = 'oncall'; +export const INCIDENT = 'incident'; +export const RELATION = 'relation'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/InputSchema.ts b/packages/datadog-api-client-v2/models/InputSchema.ts index 2cb7492c9420..c299cee9d194 100644 --- a/packages/datadog-api-client-v2/models/InputSchema.ts +++ b/packages/datadog-api-client-v2/models/InputSchema.ts @@ -5,15 +5,20 @@ */ import { InputSchemaParameters } from "./InputSchemaParameters"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of input parameters for the workflow. These can be used as dynamic runtime values in your workflow. - */ +*/ export class InputSchema { /** * The `InputSchema` `parameters`. - */ + */ "parameters"?: Array; /** @@ -32,22 +37,48 @@ export class InputSchema { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - parameters: { - baseName: "parameters", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "parameters": { + "baseName": "parameters", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return InputSchema.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/InputSchemaParameters.ts b/packages/datadog-api-client-v2/models/InputSchemaParameters.ts index 662d47edbc3c..653f79a3d6d5 100644 --- a/packages/datadog-api-client-v2/models/InputSchemaParameters.ts +++ b/packages/datadog-api-client-v2/models/InputSchemaParameters.ts @@ -5,31 +5,36 @@ */ import { InputSchemaParametersType } from "./InputSchemaParametersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `InputSchemaParameters` object. - */ +*/ export class InputSchemaParameters { /** * The `InputSchemaParameters` `defaultValue`. - */ + */ "defaultValue"?: any; /** * The `InputSchemaParameters` `description`. - */ + */ "description"?: string; /** * The `InputSchemaParameters` `label`. - */ + */ "label"?: string; /** * The `InputSchemaParameters` `name`. - */ + */ "name": string; /** * The definition of `InputSchemaParametersType` object. - */ + */ "type": InputSchemaParametersType; /** @@ -48,40 +53,66 @@ export class InputSchemaParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultValue: { - baseName: "defaultValue", - type: "any", + "defaultValue": { + "baseName": "defaultValue", + "type": "any", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - label: { - baseName: "label", - type: "string", + "label": { + "baseName": "label", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "InputSchemaParametersType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "InputSchemaParametersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return InputSchemaParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/InputSchemaParametersType.ts b/packages/datadog-api-client-v2/models/InputSchemaParametersType.ts index 319c247deac8..85966556c16b 100644 --- a/packages/datadog-api-client-v2/models/InputSchemaParametersType.ts +++ b/packages/datadog-api-client-v2/models/InputSchemaParametersType.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `InputSchemaParametersType` object. - */ +*/ -export type InputSchemaParametersType = - | typeof STRING - | typeof NUMBER - | typeof BOOLEAN - | typeof OBJECT - | typeof ARRAY_STRING - | typeof ARRAY_NUMBER - | typeof ARRAY_BOOLEAN - | typeof ARRAY_OBJECT - | UnparsedObject; -export const STRING = "STRING"; -export const NUMBER = "NUMBER"; -export const BOOLEAN = "BOOLEAN"; -export const OBJECT = "OBJECT"; -export const ARRAY_STRING = "ARRAY_STRING"; -export const ARRAY_NUMBER = "ARRAY_NUMBER"; -export const ARRAY_BOOLEAN = "ARRAY_BOOLEAN"; -export const ARRAY_OBJECT = "ARRAY_OBJECT"; +export type InputSchemaParametersType = typeof STRING| typeof NUMBER| typeof BOOLEAN| typeof OBJECT| typeof ARRAY_STRING| typeof ARRAY_NUMBER| typeof ARRAY_BOOLEAN| typeof ARRAY_OBJECT | UnparsedObject; +export const STRING = 'STRING'; +export const NUMBER = 'NUMBER'; +export const BOOLEAN = 'BOOLEAN'; +export const OBJECT = 'OBJECT'; +export const ARRAY_STRING = 'ARRAY_STRING'; +export const ARRAY_NUMBER = 'ARRAY_NUMBER'; +export const ARRAY_BOOLEAN = 'ARRAY_BOOLEAN'; +export const ARRAY_OBJECT = 'ARRAY_OBJECT'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/IntakePayloadAccepted.ts b/packages/datadog-api-client-v2/models/IntakePayloadAccepted.ts index c4ee7912bfdf..fd565bf48345 100644 --- a/packages/datadog-api-client-v2/models/IntakePayloadAccepted.ts +++ b/packages/datadog-api-client-v2/models/IntakePayloadAccepted.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The payload accepted for intake. - */ +*/ export class IntakePayloadAccepted { /** * A list of errors. - */ + */ "errors"?: Array; /** @@ -31,22 +36,48 @@ export class IntakePayloadAccepted { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return IntakePayloadAccepted.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/InterfaceAttributes.ts b/packages/datadog-api-client-v2/models/InterfaceAttributes.ts index e8fc876f0581..365e7def8880 100644 --- a/packages/datadog-api-client-v2/models/InterfaceAttributes.ts +++ b/packages/datadog-api-client-v2/models/InterfaceAttributes.ts @@ -5,35 +5,40 @@ */ import { InterfaceAttributesStatus } from "./InterfaceAttributesStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The interface attributes - */ +*/ export class InterfaceAttributes { /** * The interface alias - */ + */ "alias"?: string; /** * The interface description - */ + */ "description"?: string; /** * The interface index - */ + */ "index"?: number; /** * The interface MAC address - */ + */ "macAddress"?: string; /** * The interface name - */ + */ "name"?: string; /** * The interface status - */ + */ "status"?: InterfaceAttributesStatus; /** @@ -52,43 +57,69 @@ export class InterfaceAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - alias: { - baseName: "alias", - type: "string", - }, - description: { - baseName: "description", - type: "string", + "alias": { + "baseName": "alias", + "type": "string", }, - index: { - baseName: "index", - type: "number", - format: "int64", + "description": { + "baseName": "description", + "type": "string", }, - macAddress: { - baseName: "mac_address", - type: "string", + "index": { + "baseName": "index", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "macAddress": { + "baseName": "mac_address", + "type": "string", }, - status: { - baseName: "status", - type: "InterfaceAttributesStatus", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "InterfaceAttributesStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return InterfaceAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.ts b/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.ts index e138e299960e..86d4df237227 100644 --- a/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.ts +++ b/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The interface status - */ +*/ -export type InterfaceAttributesStatus = - | typeof UP - | typeof DOWN - | typeof WARNING - | typeof OFF - | UnparsedObject; -export const UP = "up"; -export const DOWN = "down"; -export const WARNING = "warning"; -export const OFF = "off"; +export type InterfaceAttributesStatus = typeof UP| typeof DOWN| typeof WARNING| typeof OFF | UnparsedObject; +export const UP = 'up'; +export const DOWN = 'down'; +export const WARNING = 'warning'; +export const OFF = 'off'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/JSONAPIErrorItem.ts b/packages/datadog-api-client-v2/models/JSONAPIErrorItem.ts index 0eb84f9d59ca..a8d4ef7ad97e 100644 --- a/packages/datadog-api-client-v2/models/JSONAPIErrorItem.ts +++ b/packages/datadog-api-client-v2/models/JSONAPIErrorItem.ts @@ -5,31 +5,36 @@ */ import { JSONAPIErrorItemSource } from "./JSONAPIErrorItemSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * API error response body - */ +*/ export class JSONAPIErrorItem { /** * A human-readable explanation specific to this occurrence of the error. - */ + */ "detail"?: string; /** * Non-standard meta-information about the error - */ - "meta"?: { [key: string]: any }; + */ + "meta"?: { [key: string]: any; }; /** * References to the source of the error. - */ + */ "source"?: JSONAPIErrorItemSource; /** * Status code of the response. - */ + */ "status"?: string; /** * Short human-readable summary of the error. - */ + */ "title"?: string; /** @@ -48,38 +53,64 @@ export class JSONAPIErrorItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - detail: { - baseName: "detail", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - meta: { - baseName: "meta", - type: "{ [key: string]: any; }", + "meta": { + "baseName": "meta", + "type": "{ [key: string]: any; }", }, - source: { - baseName: "source", - type: "JSONAPIErrorItemSource", + "source": { + "baseName": "source", + "type": "JSONAPIErrorItemSource", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - title: { - baseName: "title", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JSONAPIErrorItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.ts b/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.ts index 327d1ded40db..26ddc0cc45c5 100644 --- a/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.ts +++ b/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * References to the source of the error. - */ +*/ export class JSONAPIErrorItemSource { /** * A string indicating the name of a single request header which caused the error. - */ + */ "header"?: string; /** * A string indicating which URI query parameter caused the error. - */ + */ "parameter"?: string; /** * A JSON pointer to the value in the request document that caused the error. - */ + */ "pointer"?: string; /** @@ -39,30 +44,56 @@ export class JSONAPIErrorItemSource { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - header: { - baseName: "header", - type: "string", - }, - parameter: { - baseName: "parameter", - type: "string", + "header": { + "baseName": "header", + "type": "string", }, - pointer: { - baseName: "pointer", - type: "string", + "parameter": { + "baseName": "parameter", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pointer": { + "baseName": "pointer", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JSONAPIErrorItemSource.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JSONAPIErrorResponse.ts b/packages/datadog-api-client-v2/models/JSONAPIErrorResponse.ts index f6b64a658124..d232e83fac33 100644 --- a/packages/datadog-api-client-v2/models/JSONAPIErrorResponse.ts +++ b/packages/datadog-api-client-v2/models/JSONAPIErrorResponse.ts @@ -5,15 +5,20 @@ */ import { JSONAPIErrorItem } from "./JSONAPIErrorItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * API error response. - */ +*/ export class JSONAPIErrorResponse { /** * A list of errors. - */ + */ "errors": Array; /** @@ -32,23 +37,49 @@ export class JSONAPIErrorResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - errors: { - baseName: "errors", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JSONAPIErrorResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.ts b/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.ts index 3b9a333deb2e..5d9ffaea5d7d 100644 --- a/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.ts +++ b/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.ts @@ -5,15 +5,20 @@ */ import { JiraIntegrationMetadataIssuesItem } from "./JiraIntegrationMetadataIssuesItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata for the Jira integration. - */ +*/ export class JiraIntegrationMetadata { /** * Array of Jira issues in this integration metadata. - */ + */ "issues": Array; /** @@ -32,23 +37,49 @@ export class JiraIntegrationMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - issues: { - baseName: "issues", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "issues": { + "baseName": "issues", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JiraIntegrationMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.ts b/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.ts index 9222a905db72..cfe2a1482b49 100644 --- a/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.ts +++ b/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Item in the Jira integration metadata issue array. - */ +*/ export class JiraIntegrationMetadataIssuesItem { /** * URL of issue's Jira account. - */ + */ "account": string; /** * Jira issue's issue key. - */ + */ "issueKey"?: string; /** * Jira issue's issue type. - */ + */ "issuetypeId"?: string; /** * Jira issue's project keys. - */ + */ "projectKey": string; /** * URL redirecting to the Jira issue. - */ + */ "redirectUrl"?: string; /** @@ -47,40 +52,66 @@ export class JiraIntegrationMetadataIssuesItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - account: { - baseName: "account", - type: "string", - required: true, + "account": { + "baseName": "account", + "type": "string", + "required": true, }, - issueKey: { - baseName: "issue_key", - type: "string", + "issueKey": { + "baseName": "issue_key", + "type": "string", }, - issuetypeId: { - baseName: "issuetype_id", - type: "string", + "issuetypeId": { + "baseName": "issuetype_id", + "type": "string", }, - projectKey: { - baseName: "project_key", - type: "string", - required: true, + "projectKey": { + "baseName": "project_key", + "type": "string", + "required": true, }, - redirectUrl: { - baseName: "redirect_url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "redirectUrl": { + "baseName": "redirect_url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JiraIntegrationMetadataIssuesItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JiraIssue.ts b/packages/datadog-api-client-v2/models/JiraIssue.ts index f2488df65fcd..6ed655eb6aab 100644 --- a/packages/datadog-api-client-v2/models/JiraIssue.ts +++ b/packages/datadog-api-client-v2/models/JiraIssue.ts @@ -6,19 +6,24 @@ import { Case3rdPartyTicketStatus } from "./Case3rdPartyTicketStatus"; import { JiraIssueResult } from "./JiraIssueResult"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Jira issue attached to case - */ +*/ export class JiraIssue { /** * Jira issue information - */ + */ "result"?: JiraIssueResult; /** * Case status - */ + */ "status"?: Case3rdPartyTicketStatus; /** @@ -37,26 +42,52 @@ export class JiraIssue { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - result: { - baseName: "result", - type: "JiraIssueResult", + "result": { + "baseName": "result", + "type": "JiraIssueResult", }, - status: { - baseName: "status", - type: "Case3rdPartyTicketStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "Case3rdPartyTicketStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JiraIssue.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JiraIssueResult.ts b/packages/datadog-api-client-v2/models/JiraIssueResult.ts index dd2fa1a74e17..79e4b80a5874 100644 --- a/packages/datadog-api-client-v2/models/JiraIssueResult.ts +++ b/packages/datadog-api-client-v2/models/JiraIssueResult.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Jira issue information - */ +*/ export class JiraIssueResult { /** * Jira issue ID - */ + */ "issueId"?: string; /** * Jira issue key - */ + */ "issueKey"?: string; /** * Jira issue URL - */ + */ "issueUrl"?: string; /** * Jira project key - */ + */ "projectKey"?: string; /** @@ -43,34 +48,60 @@ export class JiraIssueResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - issueId: { - baseName: "issue_id", - type: "string", + "issueId": { + "baseName": "issue_id", + "type": "string", }, - issueKey: { - baseName: "issue_key", - type: "string", + "issueKey": { + "baseName": "issue_key", + "type": "string", }, - issueUrl: { - baseName: "issue_url", - type: "string", + "issueUrl": { + "baseName": "issue_url", + "type": "string", }, - projectKey: { - baseName: "project_key", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "projectKey": { + "baseName": "project_key", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JiraIssueResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JobCreateResponse.ts b/packages/datadog-api-client-v2/models/JobCreateResponse.ts index e3a8bf374c2a..ebb35f0a4a99 100644 --- a/packages/datadog-api-client-v2/models/JobCreateResponse.ts +++ b/packages/datadog-api-client-v2/models/JobCreateResponse.ts @@ -5,15 +5,20 @@ */ import { JobCreateResponseData } from "./JobCreateResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Run a historical job response. - */ +*/ export class JobCreateResponse { /** * The definition of `JobCreateResponseData` object. - */ + */ "data"?: JobCreateResponseData; /** @@ -32,22 +37,48 @@ export class JobCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "JobCreateResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "JobCreateResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JobCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JobCreateResponseData.ts b/packages/datadog-api-client-v2/models/JobCreateResponseData.ts index b83b0f7f7bcd..749b38b685fb 100644 --- a/packages/datadog-api-client-v2/models/JobCreateResponseData.ts +++ b/packages/datadog-api-client-v2/models/JobCreateResponseData.ts @@ -5,19 +5,24 @@ */ import { HistoricalJobDataType } from "./HistoricalJobDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `JobCreateResponseData` object. - */ +*/ export class JobCreateResponseData { /** * ID of the created job. - */ + */ "id"?: string; /** * Type of payload. - */ + */ "type"?: HistoricalJobDataType; /** @@ -36,26 +41,52 @@ export class JobCreateResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "HistoricalJobDataType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "HistoricalJobDataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JobCreateResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JobDefinition.ts b/packages/datadog-api-client-v2/models/JobDefinition.ts index a44da3985986..308aca8a4eb9 100644 --- a/packages/datadog-api-client-v2/models/JobDefinition.ts +++ b/packages/datadog-api-client-v2/models/JobDefinition.ts @@ -10,67 +10,72 @@ import { SecurityMonitoringReferenceTable } from "./SecurityMonitoringReferenceT import { SecurityMonitoringRuleCaseCreate } from "./SecurityMonitoringRuleCaseCreate"; import { SecurityMonitoringThirdPartyRuleCaseCreate } from "./SecurityMonitoringThirdPartyRuleCaseCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Definition of a historical job. - */ +*/ export class JobDefinition { /** * Calculated fields. - */ + */ "calculatedFields"?: Array; /** * Cases used for generating job results. - */ + */ "cases": Array; /** * Starting time of data analyzed by the job. - */ + */ "from": number; /** * Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups. - */ + */ "groupSignalsBy"?: Array; /** * Index used to load the data. - */ + */ "index": string; /** * Message for generated results. - */ + */ "message": string; /** * Job name. - */ + */ "name": string; /** * Job options. - */ + */ "options"?: HistoricalJobOptions; /** * Queries for selecting logs analyzed by the job. - */ + */ "queries": Array; /** * Reference tables used in the queries. - */ + */ "referenceTables"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * Cases for generating results from third-party detection method. Only available for third-party detection method. - */ + */ "thirdPartyCases"?: Array; /** * Ending time of data analyzed by the job. - */ + */ "to": number; /** * Job type. - */ + */ "type"?: string; /** @@ -89,83 +94,109 @@ export class JobDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - calculatedFields: { - baseName: "calculatedFields", - type: "Array", - }, - cases: { - baseName: "cases", - type: "Array", - required: true, + "calculatedFields": { + "baseName": "calculatedFields", + "type": "Array", }, - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - groupSignalsBy: { - baseName: "groupSignalsBy", - type: "Array", + "from": { + "baseName": "from", + "type": "number", + "required": true, + "format": "int64", }, - index: { - baseName: "index", - type: "string", - required: true, + "groupSignalsBy": { + "baseName": "groupSignalsBy", + "type": "Array", }, - message: { - baseName: "message", - type: "string", - required: true, + "index": { + "baseName": "index", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "HistoricalJobOptions", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "options": { + "baseName": "options", + "type": "HistoricalJobOptions", }, - referenceTables: { - baseName: "referenceTables", - type: "Array", + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "referenceTables": { + "baseName": "referenceTables", + "type": "Array", }, - thirdPartyCases: { - baseName: "thirdPartyCases", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", + "thirdPartyCases": { + "baseName": "thirdPartyCases", + "type": "Array", }, - type: { - baseName: "type", - type: "string", + "to": { + "baseName": "to", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JobDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/JobDefinitionFromRule.ts b/packages/datadog-api-client-v2/models/JobDefinitionFromRule.ts index 2943e14b265d..a93287a5f94b 100644 --- a/packages/datadog-api-client-v2/models/JobDefinitionFromRule.ts +++ b/packages/datadog-api-client-v2/models/JobDefinitionFromRule.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Definition of a historical job based on a security monitoring rule. - */ +*/ export class JobDefinitionFromRule { /** * Index of the rule case applied by the job. - */ + */ "caseIndex": number; /** * Starting time of data analyzed by the job. - */ + */ "from": number; /** * ID of the detection rule used to create the job. - */ + */ "id": string; /** * Index used to load the data. - */ + */ "index": string; /** * Notifications sent when the job is completed. - */ + */ "notifications"?: Array; /** * Ending time of data analyzed by the job. - */ + */ "to": number; /** @@ -51,50 +56,76 @@ export class JobDefinitionFromRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - caseIndex: { - baseName: "caseIndex", - type: "number", - required: true, - format: "int32", - }, - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", + "caseIndex": { + "baseName": "caseIndex", + "type": "number", + "required": true, + "format": "int32", }, - id: { - baseName: "id", - type: "string", - required: true, + "from": { + "baseName": "from", + "type": "number", + "required": true, + "format": "int64", }, - index: { - baseName: "index", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - notifications: { - baseName: "notifications", - type: "Array", + "index": { + "baseName": "index", + "type": "string", + "required": true, }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return JobDefinitionFromRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LeakedKey.ts b/packages/datadog-api-client-v2/models/LeakedKey.ts index a4822259b307..90d37b0270c8 100644 --- a/packages/datadog-api-client-v2/models/LeakedKey.ts +++ b/packages/datadog-api-client-v2/models/LeakedKey.ts @@ -6,23 +6,28 @@ import { LeakedKeyAttributes } from "./LeakedKeyAttributes"; import { LeakedKeyType } from "./LeakedKeyType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of LeakedKey object. - */ +*/ export class LeakedKey { /** * The definition of LeakedKeyAttributes object. - */ + */ "attributes": LeakedKeyAttributes; /** * The LeakedKey id. - */ + */ "id": string; /** * The definition of LeakedKeyType object. - */ + */ "type": LeakedKeyType; /** @@ -41,33 +46,59 @@ export class LeakedKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LeakedKeyAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "LeakedKeyAttributes", + "required": true, }, - type: { - baseName: "type", - type: "LeakedKeyType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LeakedKeyType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LeakedKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LeakedKeyAttributes.ts b/packages/datadog-api-client-v2/models/LeakedKeyAttributes.ts index 619e90889fa7..808b36b24e61 100644 --- a/packages/datadog-api-client-v2/models/LeakedKeyAttributes.ts +++ b/packages/datadog-api-client-v2/models/LeakedKeyAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of LeakedKeyAttributes object. - */ +*/ export class LeakedKeyAttributes { /** * The LeakedKeyAttributes date. - */ + */ "date": Date; /** * The LeakedKeyAttributes leak_source. - */ + */ "leakSource"?: string; /** @@ -35,28 +40,54 @@ export class LeakedKeyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - date: { - baseName: "date", - type: "Date", - required: true, - format: "date-time", + "date": { + "baseName": "date", + "type": "Date", + "required": true, + "format": "date-time", }, - leakSource: { - baseName: "leak_source", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "leakSource": { + "baseName": "leak_source", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LeakedKeyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LeakedKeyType.ts b/packages/datadog-api-client-v2/models/LeakedKeyType.ts index 606a3daf432f..7ea73a87946f 100644 --- a/packages/datadog-api-client-v2/models/LeakedKeyType.ts +++ b/packages/datadog-api-client-v2/models/LeakedKeyType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of LeakedKeyType object. - */ +*/ export type LeakedKeyType = typeof LEAKED_KEYS | UnparsedObject; -export const LEAKED_KEYS = "leaked_keys"; +export const LEAKED_KEYS = 'leaked_keys'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Library.ts b/packages/datadog-api-client-v2/models/Library.ts index 1f633174b777..7846693fea44 100644 --- a/packages/datadog-api-client-v2/models/Library.ts +++ b/packages/datadog-api-client-v2/models/Library.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability library. - */ +*/ export class Library { /** * Vulnerability library name. - */ + */ "name": string; /** * Vulnerability library version. - */ + */ "version"?: string; /** @@ -35,27 +40,53 @@ export class Library { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Library.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Links.ts b/packages/datadog-api-client-v2/models/Links.ts index 654ba9074844..3e7df12af3a8 100644 --- a/packages/datadog-api-client-v2/models/Links.ts +++ b/packages/datadog-api-client-v2/models/Links.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API links related to pagination. - */ +*/ export class Links { /** * First page link. - */ + */ "first": string; /** * Last page link. - */ + */ "last": string; /** * Next page link. - */ + */ "next"?: string; /** * Previous page link. - */ + */ "previous"?: string; /** * Request link. - */ + */ "self": string; /** @@ -47,41 +52,67 @@ export class Links { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", - required: true, + "first": { + "baseName": "first", + "type": "string", + "required": true, }, - last: { - baseName: "last", - type: "string", - required: true, + "last": { + "baseName": "last", + "type": "string", + "required": true, }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - previous: { - baseName: "previous", - type: "string", + "previous": { + "baseName": "previous", + "type": "string", }, - self: { - baseName: "self", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Links.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAPIsResponse.ts b/packages/datadog-api-client-v2/models/ListAPIsResponse.ts index 3e211a86668c..89ab1ce247b6 100644 --- a/packages/datadog-api-client-v2/models/ListAPIsResponse.ts +++ b/packages/datadog-api-client-v2/models/ListAPIsResponse.ts @@ -6,19 +6,24 @@ import { ListAPIsResponseData } from "./ListAPIsResponseData"; import { ListAPIsResponseMeta } from "./ListAPIsResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for `ListAPIs`. - */ +*/ export class ListAPIsResponse { /** * List of API items. - */ + */ "data"?: Array; /** * Metadata for `ListAPIsResponse`. - */ + */ "meta"?: ListAPIsResponseMeta; /** @@ -37,26 +42,52 @@ export class ListAPIsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ListAPIsResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ListAPIsResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAPIsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAPIsResponseData.ts b/packages/datadog-api-client-v2/models/ListAPIsResponseData.ts index 8a24590e105d..81104c475d14 100644 --- a/packages/datadog-api-client-v2/models/ListAPIsResponseData.ts +++ b/packages/datadog-api-client-v2/models/ListAPIsResponseData.ts @@ -5,19 +5,24 @@ */ import { ListAPIsResponseDataAttributes } from "./ListAPIsResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data envelope for `ListAPIsResponse`. - */ +*/ export class ListAPIsResponseData { /** * Attributes for `ListAPIsResponseData`. - */ + */ "attributes"?: ListAPIsResponseDataAttributes; /** * API identifier. - */ + */ "id"?: string; /** @@ -36,27 +41,53 @@ export class ListAPIsResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ListAPIsResponseDataAttributes", + "attributes": { + "baseName": "attributes", + "type": "ListAPIsResponseDataAttributes", }, - id: { - baseName: "id", - type: "string", - format: "uuid", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAPIsResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAPIsResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/ListAPIsResponseDataAttributes.ts index a1738c8e1b03..11ab501dcb09 100644 --- a/packages/datadog-api-client-v2/models/ListAPIsResponseDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/ListAPIsResponseDataAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for `ListAPIsResponseData`. - */ +*/ export class ListAPIsResponseDataAttributes { /** * API name. - */ + */ "name"?: string; /** @@ -31,22 +36,48 @@ export class ListAPIsResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAPIsResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAPIsResponseMeta.ts b/packages/datadog-api-client-v2/models/ListAPIsResponseMeta.ts index 1b4a4a9d57b9..c2d493a2ff51 100644 --- a/packages/datadog-api-client-v2/models/ListAPIsResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/ListAPIsResponseMeta.ts @@ -5,15 +5,20 @@ */ import { ListAPIsResponseMetaPagination } from "./ListAPIsResponseMetaPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata for `ListAPIsResponse`. - */ +*/ export class ListAPIsResponseMeta { /** * Pagination metadata information for `ListAPIsResponse`. - */ + */ "pagination"?: ListAPIsResponseMetaPagination; /** @@ -32,22 +37,48 @@ export class ListAPIsResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "ListAPIsResponseMetaPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "ListAPIsResponseMetaPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAPIsResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAPIsResponseMetaPagination.ts b/packages/datadog-api-client-v2/models/ListAPIsResponseMetaPagination.ts index c84eb43bc8ad..4e594d2ef15d 100644 --- a/packages/datadog-api-client-v2/models/ListAPIsResponseMetaPagination.ts +++ b/packages/datadog-api-client-v2/models/ListAPIsResponseMetaPagination.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata information for `ListAPIsResponse`. - */ +*/ export class ListAPIsResponseMetaPagination { /** * Number of items in the current page. - */ + */ "limit"?: number; /** * Offset for pagination. - */ + */ "offset"?: number; /** * Total number of items. - */ + */ "totalCount"?: number; /** @@ -39,33 +44,59 @@ export class ListAPIsResponseMetaPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - limit: { - baseName: "limit", - type: "number", - format: "int64", - }, - offset: { - baseName: "offset", - type: "number", - format: "int64", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", + "offset": { + "baseName": "offset", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAPIsResponseMetaPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.ts b/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.ts index c64427871886..e8c7dfa7f531 100644 --- a/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.ts +++ b/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.ts @@ -7,23 +7,28 @@ import { ApplicationKeyResponseIncludedItem } from "./ApplicationKeyResponseIncl import { ApplicationKeyResponseMeta } from "./ApplicationKeyResponseMeta"; import { PartialApplicationKey } from "./PartialApplicationKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for a list of application keys. - */ +*/ export class ListApplicationKeysResponse { /** * Array of application keys. - */ + */ "data"?: Array; /** * Array of objects related to the application key. - */ + */ "included"?: Array; /** * Additional information related to the application key response. - */ + */ "meta"?: ApplicationKeyResponseMeta; /** @@ -42,30 +47,56 @@ export class ListApplicationKeysResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ApplicationKeyResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ApplicationKeyResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListApplicationKeysResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAppsResponse.ts b/packages/datadog-api-client-v2/models/ListAppsResponse.ts index bef004f697ca..6963bde59bd2 100644 --- a/packages/datadog-api-client-v2/models/ListAppsResponse.ts +++ b/packages/datadog-api-client-v2/models/ListAppsResponse.ts @@ -7,23 +7,28 @@ import { Deployment } from "./Deployment"; import { ListAppsResponseDataItems } from "./ListAppsResponseDataItems"; import { ListAppsResponseMeta } from "./ListAppsResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A paginated list of apps matching the specified filters and sorting. - */ +*/ export class ListAppsResponse { /** * An array of app definitions. - */ + */ "data"?: Array; /** * Data on the version of the app that was published. - */ + */ "included"?: Array; /** * Pagination metadata. - */ + */ "meta"?: ListAppsResponseMeta; /** @@ -42,30 +47,56 @@ export class ListAppsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ListAppsResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ListAppsResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAppsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.ts b/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.ts index f550abd3a602..fd0cf00582e5 100644 --- a/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.ts +++ b/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.ts @@ -8,31 +8,36 @@ import { AppMeta } from "./AppMeta"; import { ListAppsResponseDataItemsAttributes } from "./ListAppsResponseDataItemsAttributes"; import { ListAppsResponseDataItemsRelationships } from "./ListAppsResponseDataItemsRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An app definition object. This contains only basic information about the app such as ID, name, and tags. - */ +*/ export class ListAppsResponseDataItems { /** * Basic information about the app such as name, description, and tags. - */ + */ "attributes": ListAppsResponseDataItemsAttributes; /** * The ID of the app. - */ + */ "id": string; /** * Metadata of an app. - */ + */ "meta"?: AppMeta; /** * The app's publication information. - */ + */ "relationships"?: ListAppsResponseDataItemsRelationships; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -51,42 +56,68 @@ export class ListAppsResponseDataItems { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ListAppsResponseDataItemsAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ListAppsResponseDataItemsAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - meta: { - baseName: "meta", - type: "AppMeta", + "meta": { + "baseName": "meta", + "type": "AppMeta", }, - relationships: { - baseName: "relationships", - type: "ListAppsResponseDataItemsRelationships", + "relationships": { + "baseName": "relationships", + "type": "ListAppsResponseDataItemsRelationships", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAppsResponseDataItems.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.ts b/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.ts index 2b6bf8648aef..b874e0e5e9b4 100644 --- a/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.ts +++ b/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Basic information about the app such as name, description, and tags. - */ +*/ export class ListAppsResponseDataItemsAttributes { /** * A human-readable description for the app. - */ + */ "description"?: string; /** * Whether the app is marked as a favorite by the current user. - */ + */ "favorite"?: boolean; /** * The name of the app. - */ + */ "name"?: string; /** * Whether the app is enabled for use in the Datadog self-service hub. - */ + */ "selfService"?: boolean; /** * A list of tags for the app, which can be used to filter apps. - */ + */ "tags"?: Array; /** @@ -47,38 +52,64 @@ export class ListAppsResponseDataItemsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - favorite: { - baseName: "favorite", - type: "boolean", + "favorite": { + "baseName": "favorite", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - selfService: { - baseName: "selfService", - type: "boolean", + "selfService": { + "baseName": "selfService", + "type": "boolean", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAppsResponseDataItemsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.ts b/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.ts index 3be62c841181..ff21a44b4342 100644 --- a/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.ts +++ b/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.ts @@ -5,15 +5,20 @@ */ import { DeploymentRelationship } from "./DeploymentRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The app's publication information. - */ +*/ export class ListAppsResponseDataItemsRelationships { /** * Information pointing to the app's publication status. - */ + */ "deployment"?: DeploymentRelationship; /** @@ -32,22 +37,48 @@ export class ListAppsResponseDataItemsRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deployment: { - baseName: "deployment", - type: "DeploymentRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "deployment": { + "baseName": "deployment", + "type": "DeploymentRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAppsResponseDataItemsRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAppsResponseMeta.ts b/packages/datadog-api-client-v2/models/ListAppsResponseMeta.ts index f396d0eaa9da..8a7a21215435 100644 --- a/packages/datadog-api-client-v2/models/ListAppsResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/ListAppsResponseMeta.ts @@ -5,15 +5,20 @@ */ import { ListAppsResponseMetaPage } from "./ListAppsResponseMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination metadata. - */ +*/ export class ListAppsResponseMeta { /** * Information on the total number of apps, to be used for pagination. - */ + */ "page"?: ListAppsResponseMetaPage; /** @@ -32,22 +37,48 @@ export class ListAppsResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "ListAppsResponseMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "ListAppsResponseMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAppsResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.ts b/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.ts index cdd5411ee0b2..fa1abaf20c8d 100644 --- a/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.ts +++ b/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information on the total number of apps, to be used for pagination. - */ +*/ export class ListAppsResponseMetaPage { /** * The total number of apps under the Datadog organization, disregarding any filters applied. - */ + */ "totalCount"?: number; /** * The total number of apps that match the specified filters. - */ + */ "totalFilteredCount"?: number; /** @@ -35,28 +40,54 @@ export class ListAppsResponseMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "totalCount", - type: "number", - format: "int64", + "totalCount": { + "baseName": "totalCount", + "type": "number", + "format": "int64", }, - totalFilteredCount: { - baseName: "totalFilteredCount", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "totalFilteredCount", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListAppsResponseMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListDevicesResponse.ts b/packages/datadog-api-client-v2/models/ListDevicesResponse.ts index 86ee7e344e75..b0e32ca26266 100644 --- a/packages/datadog-api-client-v2/models/ListDevicesResponse.ts +++ b/packages/datadog-api-client-v2/models/ListDevicesResponse.ts @@ -6,19 +6,24 @@ import { DevicesListData } from "./DevicesListData"; import { ListDevicesResponseMetadata } from "./ListDevicesResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List devices response. - */ +*/ export class ListDevicesResponse { /** * The list devices response data. - */ + */ "data"?: Array; /** * Object describing meta attributes of response. - */ + */ "meta"?: ListDevicesResponseMetadata; /** @@ -37,26 +42,52 @@ export class ListDevicesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ListDevicesResponseMetadata", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ListDevicesResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListDevicesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.ts b/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.ts index c6765463c71e..14e633f83151 100644 --- a/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.ts @@ -5,15 +5,20 @@ */ import { ListDevicesResponseMetadataPage } from "./ListDevicesResponseMetadataPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing meta attributes of response. - */ +*/ export class ListDevicesResponseMetadata { /** * Pagination object. - */ + */ "page"?: ListDevicesResponseMetadataPage; /** @@ -32,22 +37,48 @@ export class ListDevicesResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "ListDevicesResponseMetadataPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "ListDevicesResponseMetadataPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListDevicesResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.ts b/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.ts index c23a917ba742..63a33fd8ad60 100644 --- a/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.ts +++ b/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination object. - */ +*/ export class ListDevicesResponseMetadataPage { /** * Total count of devices matched by the filter. - */ + */ "totalFilteredCount"?: number; /** @@ -31,23 +36,49 @@ export class ListDevicesResponseMetadataPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListDevicesResponseMetadataPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListDowntimesResponse.ts b/packages/datadog-api-client-v2/models/ListDowntimesResponse.ts index 0818f05a6828..4542c6ec99a6 100644 --- a/packages/datadog-api-client-v2/models/ListDowntimesResponse.ts +++ b/packages/datadog-api-client-v2/models/ListDowntimesResponse.ts @@ -7,23 +7,28 @@ import { DowntimeMeta } from "./DowntimeMeta"; import { DowntimeResponseData } from "./DowntimeResponseData"; import { DowntimeResponseIncludedItem } from "./DowntimeResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving all downtimes. - */ +*/ export class ListDowntimesResponse { /** * An array of downtimes. - */ + */ "data"?: Array; /** * Array of objects related to the downtimes. - */ + */ "included"?: Array; /** * Pagination metadata returned by the API. - */ + */ "meta"?: DowntimeMeta; /** @@ -42,30 +47,56 @@ export class ListDowntimesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "DowntimeMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "DowntimeMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListDowntimesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListEntityCatalogResponse.ts b/packages/datadog-api-client-v2/models/ListEntityCatalogResponse.ts index c5a3e59a12b1..b24ed551ee54 100644 --- a/packages/datadog-api-client-v2/models/ListEntityCatalogResponse.ts +++ b/packages/datadog-api-client-v2/models/ListEntityCatalogResponse.ts @@ -8,27 +8,32 @@ import { EntityResponseMeta } from "./EntityResponseMeta"; import { ListEntityCatalogResponseIncludedItem } from "./ListEntityCatalogResponseIncludedItem"; import { ListEntityCatalogResponseLinks } from "./ListEntityCatalogResponseLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List entity response. - */ +*/ export class ListEntityCatalogResponse { /** * List of entity data. - */ + */ "data"?: Array; /** * List entity response included. - */ + */ "included"?: Array; /** * List entity response links. - */ + */ "links"?: ListEntityCatalogResponseLinks; /** * Entity metadata. - */ + */ "meta"?: EntityResponseMeta; /** @@ -47,34 +52,60 @@ export class ListEntityCatalogResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - included: { - baseName: "included", - type: "Array", + "included": { + "baseName": "included", + "type": "Array", }, - links: { - baseName: "links", - type: "ListEntityCatalogResponseLinks", + "links": { + "baseName": "links", + "type": "ListEntityCatalogResponseLinks", }, - meta: { - baseName: "meta", - type: "EntityResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "EntityResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListEntityCatalogResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListEntityCatalogResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/ListEntityCatalogResponseIncludedItem.ts index ea783557ad3f..c0ad02866556 100644 --- a/packages/datadog-api-client-v2/models/ListEntityCatalogResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/ListEntityCatalogResponseIncludedItem.ts @@ -9,16 +9,15 @@ import { EntityResponseIncludedRawSchema } from "./EntityResponseIncludedRawSche import { EntityResponseIncludedRelatedEntity } from "./EntityResponseIncludedRelatedEntity"; import { EntityResponseIncludedSchema } from "./EntityResponseIncludedSchema"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * List entity response included item. - */ +*/ -export type ListEntityCatalogResponseIncludedItem = - | EntityResponseIncludedSchema - | EntityResponseIncludedRawSchema - | EntityResponseIncludedRelatedEntity - | EntityResponseIncludedOncall - | EntityResponseIncludedIncident - | UnparsedObject; +export type ListEntityCatalogResponseIncludedItem = EntityResponseIncludedSchema | EntityResponseIncludedRawSchema | EntityResponseIncludedRelatedEntity | EntityResponseIncludedOncall | EntityResponseIncludedIncident | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ListEntityCatalogResponseLinks.ts b/packages/datadog-api-client-v2/models/ListEntityCatalogResponseLinks.ts index 94c82d186827..10977c802e2c 100644 --- a/packages/datadog-api-client-v2/models/ListEntityCatalogResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/ListEntityCatalogResponseLinks.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List entity response links. - */ +*/ export class ListEntityCatalogResponseLinks { /** * Next link. - */ + */ "next"?: string; /** * Previous link. - */ + */ "previous"?: string; /** * Current link. - */ + */ "self"?: string; /** @@ -39,30 +44,56 @@ export class ListEntityCatalogResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - previous: { - baseName: "previous", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - self: { - baseName: "self", - type: "string", + "previous": { + "baseName": "previous", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListEntityCatalogResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListFindingsMeta.ts b/packages/datadog-api-client-v2/models/ListFindingsMeta.ts index 516dd8821af0..a5cba908d43e 100644 --- a/packages/datadog-api-client-v2/models/ListFindingsMeta.ts +++ b/packages/datadog-api-client-v2/models/ListFindingsMeta.ts @@ -5,19 +5,24 @@ */ import { ListFindingsPage } from "./ListFindingsPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata for pagination. - */ +*/ export class ListFindingsMeta { /** * Pagination and findings count information. - */ + */ "page"?: ListFindingsPage; /** * The point in time corresponding to the listed findings. - */ + */ "snapshotTimestamp"?: number; /** @@ -29,23 +34,49 @@ export class ListFindingsMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "ListFindingsPage", - }, - snapshotTimestamp: { - baseName: "snapshot_timestamp", - type: "number", - format: "int64", + "page": { + "baseName": "page", + "type": "ListFindingsPage", }, + "snapshotTimestamp": { + "baseName": "snapshot_timestamp", + "type": "number", + "format": "int64", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListFindingsMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListFindingsPage.ts b/packages/datadog-api-client-v2/models/ListFindingsPage.ts index 636aba83e8d9..60f665e03083 100644 --- a/packages/datadog-api-client-v2/models/ListFindingsPage.ts +++ b/packages/datadog-api-client-v2/models/ListFindingsPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination and findings count information. - */ +*/ export class ListFindingsPage { /** * The cursor used to paginate requests. - */ + */ "cursor"?: string; /** * The total count of findings after the filter has been applied. - */ + */ "totalFilteredCount"?: number; /** @@ -28,23 +33,49 @@ export class ListFindingsPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", - }, - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", + "cursor": { + "baseName": "cursor", + "type": "string", }, + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListFindingsPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListFindingsResponse.ts b/packages/datadog-api-client-v2/models/ListFindingsResponse.ts index 4df6be87b289..96f3629d9adf 100644 --- a/packages/datadog-api-client-v2/models/ListFindingsResponse.ts +++ b/packages/datadog-api-client-v2/models/ListFindingsResponse.ts @@ -6,19 +6,24 @@ import { Finding } from "./Finding"; import { ListFindingsMeta } from "./ListFindingsMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when listing findings. - */ +*/ export class ListFindingsResponse { /** * Array of findings. - */ + */ "data": Array; /** * Metadata for pagination. - */ + */ "meta": ListFindingsMeta; /** @@ -37,28 +42,54 @@ export class ListFindingsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "ListFindingsMeta", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ListFindingsMeta", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListFindingsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.ts b/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.ts index 6ec10c8436aa..296e64841e24 100644 --- a/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.ts +++ b/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.ts @@ -6,19 +6,24 @@ import { HistoricalJobListMeta } from "./HistoricalJobListMeta"; import { HistoricalJobResponseData } from "./HistoricalJobResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of historical jobs. - */ +*/ export class ListHistoricalJobsResponse { /** * Array containing the list of historical jobs. - */ + */ "data"?: Array; /** * Metadata about the list of jobs. - */ + */ "meta"?: HistoricalJobListMeta; /** @@ -37,26 +42,52 @@ export class ListHistoricalJobsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "HistoricalJobListMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "HistoricalJobListMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListHistoricalJobsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListPowerpacksResponse.ts b/packages/datadog-api-client-v2/models/ListPowerpacksResponse.ts index 8cc42d29e89e..dfd8631039f9 100644 --- a/packages/datadog-api-client-v2/models/ListPowerpacksResponse.ts +++ b/packages/datadog-api-client-v2/models/ListPowerpacksResponse.ts @@ -8,27 +8,32 @@ import { PowerpackResponseLinks } from "./PowerpackResponseLinks"; import { PowerpacksResponseMeta } from "./PowerpacksResponseMeta"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object which includes all powerpack configurations. - */ +*/ export class ListPowerpacksResponse { /** * List of powerpack definitions. - */ + */ "data"?: Array; /** * Array of objects related to the users. - */ + */ "included"?: Array; /** * Links attributes. - */ + */ "links"?: PowerpackResponseLinks; /** * Powerpack response metadata. - */ + */ "meta"?: PowerpacksResponseMeta; /** @@ -47,34 +52,60 @@ export class ListPowerpacksResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - included: { - baseName: "included", - type: "Array", + "included": { + "baseName": "included", + "type": "Array", }, - links: { - baseName: "links", - type: "PowerpackResponseLinks", + "links": { + "baseName": "links", + "type": "PowerpackResponseLinks", }, - meta: { - baseName: "meta", - type: "PowerpacksResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "PowerpacksResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListPowerpacksResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListRulesResponse.ts b/packages/datadog-api-client-v2/models/ListRulesResponse.ts index 1a47a806df87..818a93306959 100644 --- a/packages/datadog-api-client-v2/models/ListRulesResponse.ts +++ b/packages/datadog-api-client-v2/models/ListRulesResponse.ts @@ -6,19 +6,24 @@ import { ListRulesResponseDataItem } from "./ListRulesResponseDataItem"; import { ListRulesResponseLinks } from "./ListRulesResponseLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard rules response. - */ +*/ export class ListRulesResponse { /** * Array of rule details. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: ListRulesResponseLinks; /** @@ -37,26 +42,52 @@ export class ListRulesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - links: { - baseName: "links", - type: "ListRulesResponseLinks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "links": { + "baseName": "links", + "type": "ListRulesResponseLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListRulesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListRulesResponseDataItem.ts b/packages/datadog-api-client-v2/models/ListRulesResponseDataItem.ts index 8a3c70059d47..81f5bcd8c025 100644 --- a/packages/datadog-api-client-v2/models/ListRulesResponseDataItem.ts +++ b/packages/datadog-api-client-v2/models/ListRulesResponseDataItem.ts @@ -7,27 +7,32 @@ import { RelationshipToRule } from "./RelationshipToRule"; import { RuleAttributes } from "./RuleAttributes"; import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rule details. - */ +*/ export class ListRulesResponseDataItem { /** * Details of a rule. - */ + */ "attributes"?: RuleAttributes; /** * The unique ID for a scorecard rule. - */ + */ "id"?: string; /** * Scorecard create rule response relationship. - */ + */ "relationships"?: RelationshipToRule; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -46,34 +51,60 @@ export class ListRulesResponseDataItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "RuleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RelationshipToRule", + "relationships": { + "baseName": "relationships", + "type": "RelationshipToRule", }, - type: { - baseName: "type", - type: "RuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListRulesResponseDataItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListRulesResponseLinks.ts b/packages/datadog-api-client-v2/models/ListRulesResponseLinks.ts index e6d27fcdcef9..54a6243b1af8 100644 --- a/packages/datadog-api-client-v2/models/ListRulesResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/ListRulesResponseLinks.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class ListRulesResponseLinks { /** * Link for the next set of rules. - */ + */ "next"?: string; /** @@ -31,22 +36,48 @@ export class ListRulesResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListRulesResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListTagsResponse.ts b/packages/datadog-api-client-v2/models/ListTagsResponse.ts index 6b733ec563f2..9c4edc0144d1 100644 --- a/packages/datadog-api-client-v2/models/ListTagsResponse.ts +++ b/packages/datadog-api-client-v2/models/ListTagsResponse.ts @@ -5,15 +5,20 @@ */ import { ListTagsResponseData } from "./ListTagsResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List tags response. - */ +*/ export class ListTagsResponse { /** * The list tags response data. - */ + */ "data"?: ListTagsResponseData; /** @@ -32,22 +37,48 @@ export class ListTagsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ListTagsResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ListTagsResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListTagsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListTagsResponseData.ts b/packages/datadog-api-client-v2/models/ListTagsResponseData.ts index a33b24126ac3..e0d3381ac9ef 100644 --- a/packages/datadog-api-client-v2/models/ListTagsResponseData.ts +++ b/packages/datadog-api-client-v2/models/ListTagsResponseData.ts @@ -5,23 +5,28 @@ */ import { ListTagsResponseDataAttributes } from "./ListTagsResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The list tags response data. - */ +*/ export class ListTagsResponseData { /** * The definition of ListTagsResponseDataAttributes object. - */ + */ "attributes"?: ListTagsResponseDataAttributes; /** * The device ID - */ + */ "id"?: string; /** * The type of the resource. The value should always be tags. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class ListTagsResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ListTagsResponseDataAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ListTagsResponseDataAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListTagsResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.ts index 3c9ce310a2dc..9021cf9a6d5b 100644 --- a/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of ListTagsResponseDataAttributes object. - */ +*/ export class ListTagsResponseDataAttributes { /** * The list of tags - */ + */ "tags"?: Array; /** @@ -31,22 +36,48 @@ export class ListTagsResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListTagsResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListTeamsInclude.ts b/packages/datadog-api-client-v2/models/ListTeamsInclude.ts index 3352f1888da4..8e1cad71d51a 100644 --- a/packages/datadog-api-client-v2/models/ListTeamsInclude.ts +++ b/packages/datadog-api-client-v2/models/ListTeamsInclude.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Included related resources optionally requested. - */ +*/ -export type ListTeamsInclude = - | typeof TEAM_LINKS - | typeof USER_TEAM_PERMISSIONS - | UnparsedObject; -export const TEAM_LINKS = "team_links"; -export const USER_TEAM_PERMISSIONS = "user_team_permissions"; +export type ListTeamsInclude = typeof TEAM_LINKS| typeof USER_TEAM_PERMISSIONS | UnparsedObject; +export const TEAM_LINKS = 'team_links'; +export const USER_TEAM_PERMISSIONS = 'user_team_permissions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ListTeamsSort.ts b/packages/datadog-api-client-v2/models/ListTeamsSort.ts index bf6f8bd3d140..243e8baef2d4 100644 --- a/packages/datadog-api-client-v2/models/ListTeamsSort.ts +++ b/packages/datadog-api-client-v2/models/ListTeamsSort.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Specifies the order of the returned teams - */ +*/ -export type ListTeamsSort = - | typeof NAME - | typeof _NAME - | typeof USER_COUNT - | typeof _USER_COUNT - | UnparsedObject; -export const NAME = "name"; -export const _NAME = "-name"; -export const USER_COUNT = "user_count"; -export const _USER_COUNT = "-user_count"; +export type ListTeamsSort = typeof NAME| typeof _NAME| typeof USER_COUNT| typeof _USER_COUNT | UnparsedObject; +export const NAME = 'name'; +export const _NAME = '-name'; +export const USER_COUNT = 'user_count'; +export const _USER_COUNT = '-user_count'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.ts b/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.ts index a532c528f258..613db134166a 100644 --- a/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.ts +++ b/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.ts @@ -7,23 +7,28 @@ import { Links } from "./Links"; import { Metadata } from "./Metadata"; import { Vulnerability } from "./Vulnerability"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when listing vulnerabilities. - */ +*/ export class ListVulnerabilitiesResponse { /** * List of vulnerabilities. - */ + */ "data": Array; /** * The JSON:API links related to pagination. - */ + */ "links"?: Links; /** * The metadata related to this request. - */ + */ "meta"?: Metadata; /** @@ -42,31 +47,57 @@ export class ListVulnerabilitiesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - links: { - baseName: "links", - type: "Links", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "Metadata", + "links": { + "baseName": "links", + "type": "Links", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "Metadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListVulnerabilitiesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.ts b/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.ts index 8e9fcf6340ce..ed848d6d47c7 100644 --- a/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.ts +++ b/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.ts @@ -7,23 +7,28 @@ import { Asset } from "./Asset"; import { Links } from "./Links"; import { Metadata } from "./Metadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when listing vulnerable assets. - */ +*/ export class ListVulnerableAssetsResponse { /** * List of vulnerable assets. - */ + */ "data": Array; /** * The JSON:API links related to pagination. - */ + */ "links"?: Links; /** * The metadata related to this request. - */ + */ "meta"?: Metadata; /** @@ -42,31 +47,57 @@ export class ListVulnerableAssetsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - links: { - baseName: "links", - type: "Links", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "Metadata", + "links": { + "baseName": "links", + "type": "Links", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "Metadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ListVulnerableAssetsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Log.ts b/packages/datadog-api-client-v2/models/Log.ts index f743b6361252..ede59b51b7bf 100644 --- a/packages/datadog-api-client-v2/models/Log.ts +++ b/packages/datadog-api-client-v2/models/Log.ts @@ -6,23 +6,28 @@ import { LogAttributes } from "./LogAttributes"; import { LogType } from "./LogType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of a log after being processed and stored by Datadog. - */ +*/ export class Log { /** * JSON object containing all log attributes and their associated values. - */ + */ "attributes"?: LogAttributes; /** * Unique ID of the Log. - */ + */ "id"?: string; /** * Type of the event. - */ + */ "type"?: LogType; /** @@ -41,30 +46,56 @@ export class Log { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "LogAttributes", }, - type: { - baseName: "type", - type: "LogType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Log.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogAttributes.ts b/packages/datadog-api-client-v2/models/LogAttributes.ts index 4392518d1c84..d5d4bc6d6604 100644 --- a/packages/datadog-api-client-v2/models/LogAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all log attributes and their associated values. - */ +*/ export class LogAttributes { /** * JSON object of attributes from your log. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * Name of the machine from where the logs are being sent. - */ + */ "host"?: string; /** * The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) * of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. * That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. - */ + */ "message"?: string; /** * The name of the application or service generating the log events. * It is used to switch from Logs to APM, so make sure you define the same * value when you use both products. - */ + */ "service"?: string; /** * Status of the message associated with your log. - */ + */ "status"?: string; /** * Array of tags associated with your log. - */ + */ "tags"?: Array; /** * Timestamp of your log. - */ + */ "timestamp"?: Date; /** @@ -59,47 +64,73 @@ export class LogAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", - }, - host: { - baseName: "host", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - message: { - baseName: "message", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - service: { - baseName: "service", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - status: { - baseName: "status", - type: "string", + "service": { + "baseName": "service", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "status": { + "baseName": "status", + "type": "string", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogType.ts b/packages/datadog-api-client-v2/models/LogType.ts index 40345a2a5ba5..5b60a9ae8c91 100644 --- a/packages/datadog-api-client-v2/models/LogType.ts +++ b/packages/datadog-api-client-v2/models/LogType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ export type LogType = typeof LOG | UnparsedObject; -export const LOG = "log"; +export const LOG = 'log'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsAggregateBucket.ts b/packages/datadog-api-client-v2/models/LogsAggregateBucket.ts index ca1634a39bd9..447dec5390fa 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateBucket.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateBucket.ts @@ -5,20 +5,25 @@ */ import { LogsAggregateBucketValue } from "./LogsAggregateBucketValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A bucket values - */ +*/ export class LogsAggregateBucket { /** * The key, value pairs for each group by - */ - "by"?: { [key: string]: any }; + */ + "by"?: { [key: string]: any; }; /** * A map of the metric name -> value for regular compute or list of values for a timeseries - */ - "computes"?: { [key: string]: LogsAggregateBucketValue }; + */ + "computes"?: { [key: string]: LogsAggregateBucketValue; }; /** * A container for additional, undeclared properties. @@ -36,26 +41,52 @@ export class LogsAggregateBucket { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - by: { - baseName: "by", - type: "{ [key: string]: any; }", + "by": { + "baseName": "by", + "type": "{ [key: string]: any; }", }, - computes: { - baseName: "computes", - type: "{ [key: string]: LogsAggregateBucketValue; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "computes": { + "baseName": "computes", + "type": "{ [key: string]: LogsAggregateBucketValue; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateBucket.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateBucketValue.ts b/packages/datadog-api-client-v2/models/LogsAggregateBucketValue.ts index d24b6d974902..7b61c5049d03 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateBucketValue.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateBucketValue.ts @@ -5,14 +5,15 @@ */ import { LogsAggregateBucketValueTimeseriesPoint } from "./LogsAggregateBucketValueTimeseriesPoint"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A bucket value, can be either a timeseries or a single value - */ +*/ -export type LogsAggregateBucketValue = - | string - | number - | Array - | UnparsedObject; +export type LogsAggregateBucketValue = string | number | Array | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsAggregateBucketValueTimeseriesPoint.ts b/packages/datadog-api-client-v2/models/LogsAggregateBucketValueTimeseriesPoint.ts index 4132f5047a2e..bc15865f3b66 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateBucketValueTimeseriesPoint.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateBucketValueTimeseriesPoint.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A timeseries point - */ +*/ export class LogsAggregateBucketValueTimeseriesPoint { /** * The time value for this point - */ + */ "time"?: string; /** * The value for this point - */ + */ "value"?: number; /** @@ -35,27 +40,53 @@ export class LogsAggregateBucketValueTimeseriesPoint { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - time: { - baseName: "time", - type: "string", + "time": { + "baseName": "time", + "type": "string", }, - value: { - baseName: "value", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateBucketValueTimeseriesPoint.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateRequest.ts b/packages/datadog-api-client-v2/models/LogsAggregateRequest.ts index 802cff8cc503..1f6d37efffb7 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateRequest.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateRequest.ts @@ -9,32 +9,37 @@ import { LogsGroupBy } from "./LogsGroupBy"; import { LogsQueryFilter } from "./LogsQueryFilter"; import { LogsQueryOptions } from "./LogsQueryOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object sent with the request to retrieve a list of logs from your organization. - */ +*/ export class LogsAggregateRequest { /** * The list of metrics or timeseries to compute for the retrieved buckets. - */ + */ "compute"?: Array; /** * The search and filter query settings - */ + */ "filter"?: LogsQueryFilter; /** * The rules for the group by - */ + */ "groupBy"?: Array; /** * Global query options that are used during the query. * Note: These fields are currently deprecated and do not affect the query results. - */ + */ "options"?: LogsQueryOptions; /** * Paging settings - */ + */ "page"?: LogsAggregateRequestPage; /** @@ -53,38 +58,64 @@ export class LogsAggregateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "Array", + "compute": { + "baseName": "compute", + "type": "Array", }, - filter: { - baseName: "filter", - type: "LogsQueryFilter", + "filter": { + "baseName": "filter", + "type": "LogsQueryFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - options: { - baseName: "options", - type: "LogsQueryOptions", + "options": { + "baseName": "options", + "type": "LogsQueryOptions", }, - page: { - baseName: "page", - type: "LogsAggregateRequestPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "LogsAggregateRequestPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateRequestPage.ts b/packages/datadog-api-client-v2/models/LogsAggregateRequestPage.ts index 699ef746616a..7a3d8deb4cbe 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateRequestPage.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateRequestPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging settings - */ +*/ export class LogsAggregateRequestPage { /** * The returned paging point to use to get the next results. Note: at most 1000 results can be paged. - */ + */ "cursor"?: string; /** @@ -31,22 +36,48 @@ export class LogsAggregateRequestPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "cursor": { + "baseName": "cursor", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateRequestPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateResponse.ts b/packages/datadog-api-client-v2/models/LogsAggregateResponse.ts index c9c0b26d2cfa..5ac709aa397c 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateResponse.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateResponse.ts @@ -6,19 +6,24 @@ import { LogsAggregateResponseData } from "./LogsAggregateResponseData"; import { LogsResponseMetadata } from "./LogsResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object for the logs aggregate API endpoint - */ +*/ export class LogsAggregateResponse { /** * The query results - */ + */ "data"?: LogsAggregateResponseData; /** * The metadata associated with a request - */ + */ "meta"?: LogsResponseMetadata; /** @@ -37,26 +42,52 @@ export class LogsAggregateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsAggregateResponseData", + "data": { + "baseName": "data", + "type": "LogsAggregateResponseData", }, - meta: { - baseName: "meta", - type: "LogsResponseMetadata", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "LogsResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateResponseData.ts b/packages/datadog-api-client-v2/models/LogsAggregateResponseData.ts index c2bcdaa69c91..0ba5fec07e06 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateResponseData.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateResponseData.ts @@ -5,15 +5,20 @@ */ import { LogsAggregateBucket } from "./LogsAggregateBucket"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The query results - */ +*/ export class LogsAggregateResponseData { /** * The list of matching buckets, one item per bucket - */ + */ "buckets"?: Array; /** @@ -32,22 +37,48 @@ export class LogsAggregateResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - buckets: { - baseName: "buckets", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "buckets": { + "baseName": "buckets", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateResponseStatus.ts b/packages/datadog-api-client-v2/models/LogsAggregateResponseStatus.ts index 14e4236b1646..7b3544111a4d 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateResponseStatus.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateResponseStatus.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the response - */ +*/ -export type LogsAggregateResponseStatus = - | typeof DONE - | typeof TIMEOUT - | UnparsedObject; -export const DONE = "done"; -export const TIMEOUT = "timeout"; +export type LogsAggregateResponseStatus = typeof DONE| typeof TIMEOUT | UnparsedObject; +export const DONE = 'done'; +export const TIMEOUT = 'timeout'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsAggregateSort.ts b/packages/datadog-api-client-v2/models/LogsAggregateSort.ts index 60ae4da3cbc6..58d07da09220 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateSort.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateSort.ts @@ -7,27 +7,32 @@ import { LogsAggregateSortType } from "./LogsAggregateSortType"; import { LogsAggregationFunction } from "./LogsAggregationFunction"; import { LogsSortOrder } from "./LogsSortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A sort rule - */ +*/ export class LogsAggregateSort { /** * An aggregation function - */ + */ "aggregation"?: LogsAggregationFunction; /** * The metric to sort by (only used for `type=measure`) - */ + */ "metric"?: string; /** * The order to use, ascending or descending - */ + */ "order"?: LogsSortOrder; /** * The type of sorting algorithm - */ + */ "type"?: LogsAggregateSortType; /** @@ -46,34 +51,60 @@ export class LogsAggregateSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "LogsAggregationFunction", + "aggregation": { + "baseName": "aggregation", + "type": "LogsAggregationFunction", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - order: { - baseName: "order", - type: "LogsSortOrder", + "order": { + "baseName": "order", + "type": "LogsSortOrder", }, - type: { - baseName: "type", - type: "LogsAggregateSortType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsAggregateSortType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsAggregateSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsAggregateSortType.ts b/packages/datadog-api-client-v2/models/LogsAggregateSortType.ts index c1e179c1cf75..b2b6cab31c1d 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregateSortType.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregateSortType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of sorting algorithm - */ +*/ -export type LogsAggregateSortType = - | typeof ALPHABETICAL - | typeof MEASURE - | UnparsedObject; -export const ALPHABETICAL = "alphabetical"; -export const MEASURE = "measure"; +export type LogsAggregateSortType = typeof ALPHABETICAL| typeof MEASURE | UnparsedObject; +export const ALPHABETICAL = 'alphabetical'; +export const MEASURE = 'measure'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsAggregationFunction.ts b/packages/datadog-api-client-v2/models/LogsAggregationFunction.ts index d48282a2596b..ab65e2a00c7c 100644 --- a/packages/datadog-api-client-v2/models/LogsAggregationFunction.ts +++ b/packages/datadog-api-client-v2/models/LogsAggregationFunction.ts @@ -4,35 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An aggregation function - */ +*/ -export type LogsAggregationFunction = - | typeof COUNT - | typeof CARDINALITY - | typeof PERCENTILE_75 - | typeof PERCENTILE_90 - | typeof PERCENTILE_95 - | typeof PERCENTILE_98 - | typeof PERCENTILE_99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | typeof MEDIAN - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const PERCENTILE_75 = "pc75"; -export const PERCENTILE_90 = "pc90"; -export const PERCENTILE_95 = "pc95"; -export const PERCENTILE_98 = "pc98"; -export const PERCENTILE_99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; -export const MEDIAN = "median"; +export type LogsAggregationFunction = typeof COUNT| typeof CARDINALITY| typeof PERCENTILE_75| typeof PERCENTILE_90| typeof PERCENTILE_95| typeof PERCENTILE_98| typeof PERCENTILE_99| typeof SUM| typeof MIN| typeof MAX| typeof AVG| typeof MEDIAN | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const PERCENTILE_75 = 'pc75'; +export const PERCENTILE_90 = 'pc90'; +export const PERCENTILE_95 = 'pc95'; +export const PERCENTILE_98 = 'pc98'; +export const PERCENTILE_99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; +export const MEDIAN = 'median'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchive.ts b/packages/datadog-api-client-v2/models/LogsArchive.ts index 38be4229539d..06edae0fcbfe 100644 --- a/packages/datadog-api-client-v2/models/LogsArchive.ts +++ b/packages/datadog-api-client-v2/models/LogsArchive.ts @@ -5,15 +5,20 @@ */ import { LogsArchiveDefinition } from "./LogsArchiveDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The logs archive. - */ +*/ export class LogsArchive { /** * The definition of an archive. - */ + */ "data"?: LogsArchiveDefinition; /** @@ -32,22 +37,48 @@ export class LogsArchive { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsArchiveDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "LogsArchiveDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchive.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveAttributes.ts b/packages/datadog-api-client-v2/models/LogsArchiveAttributes.ts index 1dbc80084cee..3930acbea1e1 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveAttributes.ts @@ -6,40 +6,45 @@ import { LogsArchiveDestination } from "./LogsArchiveDestination"; import { LogsArchiveState } from "./LogsArchiveState"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes associated with the archive. - */ +*/ export class LogsArchiveAttributes { /** * An archive's destination. - */ - "destination": LogsArchiveDestination | null; + */ + "destination": LogsArchiveDestination|null; /** * To store the tags in the archive, set the value "true". * If it is set to "false", the tags will be deleted when the logs are sent to the archive. - */ + */ "includeTags"?: boolean; /** * The archive name. - */ + */ "name": string; /** * The archive query/filter. Logs matching this query are included in the archive. - */ + */ "query": string; /** * Maximum scan size for rehydration from this archive. - */ + */ "rehydrationMaxScanSizeInGb"?: number; /** * An array of tags to add to rehydrated logs from an archive. - */ + */ "rehydrationTags"?: Array; /** * The state of the archive. - */ + */ "state"?: LogsArchiveState; /** @@ -58,50 +63,76 @@ export class LogsArchiveAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - destination: { - baseName: "destination", - type: "LogsArchiveDestination", - required: true, - }, - includeTags: { - baseName: "include_tags", - type: "boolean", + "destination": { + "baseName": "destination", + "type": "LogsArchiveDestination", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "includeTags": { + "baseName": "include_tags", + "type": "boolean", }, - query: { - baseName: "query", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - rehydrationMaxScanSizeInGb: { - baseName: "rehydration_max_scan_size_in_gb", - type: "number", - format: "int64", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - rehydrationTags: { - baseName: "rehydration_tags", - type: "Array", + "rehydrationMaxScanSizeInGb": { + "baseName": "rehydration_max_scan_size_in_gb", + "type": "number", + "format": "int64", }, - state: { - baseName: "state", - type: "LogsArchiveState", + "rehydrationTags": { + "baseName": "rehydration_tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "state": { + "baseName": "state", + "type": "LogsArchiveState", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequest.ts b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequest.ts index 7bc7be91c146..18fda8faa1a1 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequest.ts @@ -5,15 +5,20 @@ */ import { LogsArchiveCreateRequestDefinition } from "./LogsArchiveCreateRequestDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The logs archive. - */ +*/ export class LogsArchiveCreateRequest { /** * The definition of an archive. - */ + */ "data"?: LogsArchiveCreateRequestDefinition; /** @@ -32,22 +37,48 @@ export class LogsArchiveCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsArchiveCreateRequestDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "LogsArchiveCreateRequestDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestAttributes.ts index 9660c15c71ec..f0363796e879 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestAttributes.ts @@ -5,36 +5,41 @@ */ import { LogsArchiveCreateRequestDestination } from "./LogsArchiveCreateRequestDestination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes associated with the archive. - */ +*/ export class LogsArchiveCreateRequestAttributes { /** * An archive's destination. - */ + */ "destination": LogsArchiveCreateRequestDestination; /** * To store the tags in the archive, set the value "true". * If it is set to "false", the tags will be deleted when the logs are sent to the archive. - */ + */ "includeTags"?: boolean; /** * The archive name. - */ + */ "name": string; /** * The archive query/filter. Logs matching this query are included in the archive. - */ + */ "query": string; /** * Maximum scan size for rehydration from this archive. - */ + */ "rehydrationMaxScanSizeInGb"?: number; /** * An array of tags to add to rehydrated logs from an archive. - */ + */ "rehydrationTags"?: Array; /** @@ -53,46 +58,72 @@ export class LogsArchiveCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - destination: { - baseName: "destination", - type: "LogsArchiveCreateRequestDestination", - required: true, - }, - includeTags: { - baseName: "include_tags", - type: "boolean", + "destination": { + "baseName": "destination", + "type": "LogsArchiveCreateRequestDestination", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "includeTags": { + "baseName": "include_tags", + "type": "boolean", }, - query: { - baseName: "query", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - rehydrationMaxScanSizeInGb: { - baseName: "rehydration_max_scan_size_in_gb", - type: "number", - format: "int64", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - rehydrationTags: { - baseName: "rehydration_tags", - type: "Array", + "rehydrationMaxScanSizeInGb": { + "baseName": "rehydration_max_scan_size_in_gb", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rehydrationTags": { + "baseName": "rehydration_tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDefinition.ts b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDefinition.ts index 9a1c2264823a..de9102a218ac 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDefinition.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDefinition.ts @@ -5,19 +5,24 @@ */ import { LogsArchiveCreateRequestAttributes } from "./LogsArchiveCreateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of an archive. - */ +*/ export class LogsArchiveCreateRequestDefinition { /** * The attributes associated with the archive. - */ + */ "attributes"?: LogsArchiveCreateRequestAttributes; /** * The type of the resource. The value should always be archives. - */ + */ "type": string; /** @@ -36,27 +41,53 @@ export class LogsArchiveCreateRequestDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogsArchiveCreateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "LogsArchiveCreateRequestAttributes", }, - type: { - baseName: "type", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveCreateRequestDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDestination.ts b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDestination.ts index 5801767c0dbc..3c7e64aa4957 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDestination.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveCreateRequestDestination.ts @@ -7,14 +7,15 @@ import { LogsArchiveDestinationAzure } from "./LogsArchiveDestinationAzure"; import { LogsArchiveDestinationGCS } from "./LogsArchiveDestinationGCS"; import { LogsArchiveDestinationS3 } from "./LogsArchiveDestinationS3"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An archive's destination. - */ +*/ -export type LogsArchiveCreateRequestDestination = - | LogsArchiveDestinationAzure - | LogsArchiveDestinationGCS - | LogsArchiveDestinationS3 - | UnparsedObject; +export type LogsArchiveCreateRequestDestination = LogsArchiveDestinationAzure | LogsArchiveDestinationGCS | LogsArchiveDestinationS3 | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDefinition.ts b/packages/datadog-api-client-v2/models/LogsArchiveDefinition.ts index 290d4019c987..ee0b0bdd54cf 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDefinition.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDefinition.ts @@ -5,23 +5,28 @@ */ import { LogsArchiveAttributes } from "./LogsArchiveAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of an archive. - */ +*/ export class LogsArchiveDefinition { /** * The attributes associated with the archive. - */ + */ "attributes"?: LogsArchiveAttributes; /** * The archive ID. - */ + */ "id"?: string; /** * The type of the resource. The value should always be archives. - */ + */ "type": string; /** @@ -40,31 +45,57 @@ export class LogsArchiveDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogsArchiveAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "LogsArchiveAttributes", }, - type: { - baseName: "type", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestination.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestination.ts index d21d1fc1df7c..a2954cde8b68 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestination.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestination.ts @@ -7,14 +7,15 @@ import { LogsArchiveDestinationAzure } from "./LogsArchiveDestinationAzure"; import { LogsArchiveDestinationGCS } from "./LogsArchiveDestinationGCS"; import { LogsArchiveDestinationS3 } from "./LogsArchiveDestinationS3"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An archive's destination. - */ +*/ -export type LogsArchiveDestination = - | LogsArchiveDestinationAzure - | LogsArchiveDestinationGCS - | LogsArchiveDestinationS3 - | UnparsedObject; +export type LogsArchiveDestination = LogsArchiveDestinationAzure | LogsArchiveDestinationGCS | LogsArchiveDestinationS3 | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzure.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzure.ts index efc66a569b9a..a29579267c30 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzure.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzure.ts @@ -6,35 +6,40 @@ import { LogsArchiveDestinationAzureType } from "./LogsArchiveDestinationAzureType"; import { LogsArchiveIntegrationAzure } from "./LogsArchiveIntegrationAzure"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Azure archive destination. - */ +*/ export class LogsArchiveDestinationAzure { /** * The container where the archive will be stored. - */ + */ "container": string; /** * The Azure archive's integration destination. - */ + */ "integration": LogsArchiveIntegrationAzure; /** * The archive path. - */ + */ "path"?: string; /** * The region where the archive will be stored. - */ + */ "region"?: string; /** * The associated storage account. - */ + */ "storageAccount": string; /** * Type of the Azure archive destination. - */ + */ "type": LogsArchiveDestinationAzureType; /** @@ -53,46 +58,72 @@ export class LogsArchiveDestinationAzure { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - container: { - baseName: "container", - type: "string", - required: true, - }, - integration: { - baseName: "integration", - type: "LogsArchiveIntegrationAzure", - required: true, + "container": { + "baseName": "container", + "type": "string", + "required": true, }, - path: { - baseName: "path", - type: "string", + "integration": { + "baseName": "integration", + "type": "LogsArchiveIntegrationAzure", + "required": true, }, - region: { - baseName: "region", - type: "string", + "path": { + "baseName": "path", + "type": "string", }, - storageAccount: { - baseName: "storage_account", - type: "string", - required: true, + "region": { + "baseName": "region", + "type": "string", }, - type: { - baseName: "type", - type: "LogsArchiveDestinationAzureType", - required: true, + "storageAccount": { + "baseName": "storage_account", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsArchiveDestinationAzureType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveDestinationAzure.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzureType.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzureType.ts index e308a077e2b4..353754b0e796 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzureType.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationAzureType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the Azure archive destination. - */ +*/ export type LogsArchiveDestinationAzureType = typeof AZURE | UnparsedObject; -export const AZURE = "azure"; +export const AZURE = 'azure'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCS.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCS.ts index 205c9d297647..a412aaaddb7f 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCS.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCS.ts @@ -6,27 +6,32 @@ import { LogsArchiveDestinationGCSType } from "./LogsArchiveDestinationGCSType"; import { LogsArchiveIntegrationGCS } from "./LogsArchiveIntegrationGCS"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The GCS archive destination. - */ +*/ export class LogsArchiveDestinationGCS { /** * The bucket where the archive will be stored. - */ + */ "bucket": string; /** * The GCS archive's integration destination. - */ + */ "integration": LogsArchiveIntegrationGCS; /** * The archive path. - */ + */ "path"?: string; /** * Type of the GCS archive destination. - */ + */ "type": LogsArchiveDestinationGCSType; /** @@ -45,37 +50,63 @@ export class LogsArchiveDestinationGCS { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bucket: { - baseName: "bucket", - type: "string", - required: true, + "bucket": { + "baseName": "bucket", + "type": "string", + "required": true, }, - integration: { - baseName: "integration", - type: "LogsArchiveIntegrationGCS", - required: true, + "integration": { + "baseName": "integration", + "type": "LogsArchiveIntegrationGCS", + "required": true, }, - path: { - baseName: "path", - type: "string", + "path": { + "baseName": "path", + "type": "string", }, - type: { - baseName: "type", - type: "LogsArchiveDestinationGCSType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsArchiveDestinationGCSType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveDestinationGCS.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCSType.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCSType.ts index a695a057681f..26e008ef2eef 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCSType.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationGCSType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the GCS archive destination. - */ +*/ export type LogsArchiveDestinationGCSType = typeof GCS | UnparsedObject; -export const GCS = "gcs"; +export const GCS = 'gcs'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts index d3f26a228563..5ccd6462b4e5 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts @@ -8,35 +8,40 @@ import { LogsArchiveEncryptionS3 } from "./LogsArchiveEncryptionS3"; import { LogsArchiveIntegrationS3 } from "./LogsArchiveIntegrationS3"; import { LogsArchiveStorageClassS3Type } from "./LogsArchiveStorageClassS3Type"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The S3 archive destination. - */ +*/ export class LogsArchiveDestinationS3 { /** * The bucket where the archive will be stored. - */ + */ "bucket": string; /** * The S3 encryption settings. - */ + */ "encryption"?: LogsArchiveEncryptionS3; /** * The S3 Archive's integration destination. - */ + */ "integration": LogsArchiveIntegrationS3; /** * The archive path. - */ + */ "path"?: string; /** * The storage class where the archive will be stored. - */ + */ "storageClass"?: LogsArchiveStorageClassS3Type; /** * Type of the S3 archive destination. - */ + */ "type": LogsArchiveDestinationS3Type; /** @@ -55,45 +60,71 @@ export class LogsArchiveDestinationS3 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bucket: { - baseName: "bucket", - type: "string", - required: true, - }, - encryption: { - baseName: "encryption", - type: "LogsArchiveEncryptionS3", + "bucket": { + "baseName": "bucket", + "type": "string", + "required": true, }, - integration: { - baseName: "integration", - type: "LogsArchiveIntegrationS3", - required: true, + "encryption": { + "baseName": "encryption", + "type": "LogsArchiveEncryptionS3", }, - path: { - baseName: "path", - type: "string", + "integration": { + "baseName": "integration", + "type": "LogsArchiveIntegrationS3", + "required": true, }, - storageClass: { - baseName: "storage_class", - type: "LogsArchiveStorageClassS3Type", + "path": { + "baseName": "path", + "type": "string", }, - type: { - baseName: "type", - type: "LogsArchiveDestinationS3Type", - required: true, + "storageClass": { + "baseName": "storage_class", + "type": "LogsArchiveStorageClassS3Type", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsArchiveDestinationS3Type", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveDestinationS3.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3Type.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3Type.ts index 84dc4e4accd2..133a8125a272 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3Type.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3Type.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the S3 archive destination. - */ +*/ export type LogsArchiveDestinationS3Type = typeof S3 | UnparsedObject; -export const S3 = "s3"; +export const S3 = 's3'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts index ada55f290416..ae7b0bf306ac 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts @@ -5,19 +5,24 @@ */ import { LogsArchiveEncryptionS3Type } from "./LogsArchiveEncryptionS3Type"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The S3 encryption settings. - */ +*/ export class LogsArchiveEncryptionS3 { /** * An Amazon Resource Name (ARN) used to identify an AWS KMS key. - */ + */ "key"?: string; /** * Type of S3 encryption for a destination. - */ + */ "type": LogsArchiveEncryptionS3Type; /** @@ -36,27 +41,53 @@ export class LogsArchiveEncryptionS3 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - key: { - baseName: "key", - type: "string", + "key": { + "baseName": "key", + "type": "string", }, - type: { - baseName: "type", - type: "LogsArchiveEncryptionS3Type", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsArchiveEncryptionS3Type", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveEncryptionS3.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts index f2d05f812993..993beafc3509 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of S3 encryption for a destination. - */ +*/ -export type LogsArchiveEncryptionS3Type = - | typeof NO_OVERRIDE - | typeof SSE_S3 - | typeof SSE_KMS - | UnparsedObject; -export const NO_OVERRIDE = "NO_OVERRIDE"; -export const SSE_S3 = "SSE_S3"; -export const SSE_KMS = "SSE_KMS"; +export type LogsArchiveEncryptionS3Type = typeof NO_OVERRIDE| typeof SSE_S3| typeof SSE_KMS | UnparsedObject; +export const NO_OVERRIDE = 'NO_OVERRIDE'; +export const SSE_S3 = 'SSE_S3'; +export const SSE_KMS = 'SSE_KMS'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationAzure.ts b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationAzure.ts index 24b5838eb80b..df79b899a39a 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationAzure.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationAzure.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Azure archive's integration destination. - */ +*/ export class LogsArchiveIntegrationAzure { /** * A client ID. - */ + */ "clientId": string; /** * A tenant ID. - */ + */ "tenantId": string; /** @@ -35,28 +40,54 @@ export class LogsArchiveIntegrationAzure { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - clientId: { - baseName: "client_id", - type: "string", - required: true, + "clientId": { + "baseName": "client_id", + "type": "string", + "required": true, }, - tenantId: { - baseName: "tenant_id", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tenantId": { + "baseName": "tenant_id", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveIntegrationAzure.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationGCS.ts b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationGCS.ts index eea16ad5afd9..17d2543960a3 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationGCS.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationGCS.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The GCS archive's integration destination. - */ +*/ export class LogsArchiveIntegrationGCS { /** * A client email. - */ + */ "clientEmail": string; /** * A project ID. - */ + */ "projectId"?: string; /** @@ -35,27 +40,53 @@ export class LogsArchiveIntegrationGCS { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - clientEmail: { - baseName: "client_email", - type: "string", - required: true, + "clientEmail": { + "baseName": "client_email", + "type": "string", + "required": true, }, - projectId: { - baseName: "project_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "projectId": { + "baseName": "project_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveIntegrationGCS.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts index 146f649557e2..f04a0c9c4bf5 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The S3 Archive's integration destination. - */ +*/ export class LogsArchiveIntegrationS3 { /** * The account ID for the integration. - */ + */ "accountId": string; /** * The path of the integration. - */ + */ "roleName": string; /** @@ -35,28 +40,54 @@ export class LogsArchiveIntegrationS3 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, + "accountId": { + "baseName": "account_id", + "type": "string", + "required": true, }, - roleName: { - baseName: "role_name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "roleName": { + "baseName": "role_name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveIntegrationS3.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveOrder.ts b/packages/datadog-api-client-v2/models/LogsArchiveOrder.ts index d993e6d26133..b6807fd7f66f 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveOrder.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveOrder.ts @@ -5,15 +5,20 @@ */ import { LogsArchiveOrderDefinition } from "./LogsArchiveOrderDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A ordered list of archive IDs. - */ +*/ export class LogsArchiveOrder { /** * The definition of an archive order. - */ + */ "data"?: LogsArchiveOrderDefinition; /** @@ -32,22 +37,48 @@ export class LogsArchiveOrder { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsArchiveOrderDefinition", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "LogsArchiveOrderDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveOrder.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveOrderAttributes.ts b/packages/datadog-api-client-v2/models/LogsArchiveOrderAttributes.ts index 2036ba672189..eb76e5fe201d 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveOrderAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveOrderAttributes.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes associated with the archive order. - */ +*/ export class LogsArchiveOrderAttributes { /** * An ordered array of `` strings, the order of archive IDs in the array * define the overall archives order for Datadog. - */ + */ "archiveIds": Array; /** @@ -32,23 +37,49 @@ export class LogsArchiveOrderAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - archiveIds: { - baseName: "archive_ids", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "archiveIds": { + "baseName": "archive_ids", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveOrderAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinition.ts b/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinition.ts index 447c0ef98344..8d5e0f86111e 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinition.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinition.ts @@ -6,19 +6,24 @@ import { LogsArchiveOrderAttributes } from "./LogsArchiveOrderAttributes"; import { LogsArchiveOrderDefinitionType } from "./LogsArchiveOrderDefinitionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of an archive order. - */ +*/ export class LogsArchiveOrderDefinition { /** * The attributes associated with the archive order. - */ + */ "attributes": LogsArchiveOrderAttributes; /** * Type of the archive order definition. - */ + */ "type": LogsArchiveOrderDefinitionType; /** @@ -37,28 +42,54 @@ export class LogsArchiveOrderDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogsArchiveOrderAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "LogsArchiveOrderAttributes", + "required": true, }, - type: { - baseName: "type", - type: "LogsArchiveOrderDefinitionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsArchiveOrderDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchiveOrderDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinitionType.ts b/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinitionType.ts index d780eab247cb..6d273fc5e730 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinitionType.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveOrderDefinitionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the archive order definition. - */ +*/ -export type LogsArchiveOrderDefinitionType = - | typeof ARCHIVE_ORDER - | UnparsedObject; -export const ARCHIVE_ORDER = "archive_order"; +export type LogsArchiveOrderDefinitionType = typeof ARCHIVE_ORDER | UnparsedObject; +export const ARCHIVE_ORDER = 'archive_order'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveState.ts b/packages/datadog-api-client-v2/models/LogsArchiveState.ts index bb07eb3490d0..0e68204b027b 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveState.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveState.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The state of the archive. - */ +*/ -export type LogsArchiveState = - | typeof UNKNOWN - | typeof WORKING - | typeof FAILING - | typeof WORKING_AUTH_LEGACY - | UnparsedObject; -export const UNKNOWN = "UNKNOWN"; -export const WORKING = "WORKING"; -export const FAILING = "FAILING"; -export const WORKING_AUTH_LEGACY = "WORKING_AUTH_LEGACY"; +export type LogsArchiveState = typeof UNKNOWN| typeof WORKING| typeof FAILING| typeof WORKING_AUTH_LEGACY | UnparsedObject; +export const UNKNOWN = 'UNKNOWN'; +export const WORKING = 'WORKING'; +export const FAILING = 'FAILING'; +export const WORKING_AUTH_LEGACY = 'WORKING_AUTH_LEGACY'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchiveStorageClassS3Type.ts b/packages/datadog-api-client-v2/models/LogsArchiveStorageClassS3Type.ts index 5329ea2a9e30..7b2436fc88fb 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveStorageClassS3Type.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveStorageClassS3Type.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The storage class where the archive will be stored. - */ +*/ -export type LogsArchiveStorageClassS3Type = - | typeof STANDARD - | typeof STANDARD_IA - | typeof ONEZONE_IA - | typeof INTELLIGENT_TIERING - | typeof GLACIER_IR - | UnparsedObject; -export const STANDARD = "STANDARD"; -export const STANDARD_IA = "STANDARD_IA"; -export const ONEZONE_IA = "ONEZONE_IA"; -export const INTELLIGENT_TIERING = "INTELLIGENT_TIERING"; -export const GLACIER_IR = "GLACIER_IR"; +export type LogsArchiveStorageClassS3Type = typeof STANDARD| typeof STANDARD_IA| typeof ONEZONE_IA| typeof INTELLIGENT_TIERING| typeof GLACIER_IR | UnparsedObject; +export const STANDARD = 'STANDARD'; +export const STANDARD_IA = 'STANDARD_IA'; +export const ONEZONE_IA = 'ONEZONE_IA'; +export const INTELLIGENT_TIERING = 'INTELLIGENT_TIERING'; +export const GLACIER_IR = 'GLACIER_IR'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsArchives.ts b/packages/datadog-api-client-v2/models/LogsArchives.ts index edfb01389e35..20ed4ff616f2 100644 --- a/packages/datadog-api-client-v2/models/LogsArchives.ts +++ b/packages/datadog-api-client-v2/models/LogsArchives.ts @@ -5,15 +5,20 @@ */ import { LogsArchiveDefinition } from "./LogsArchiveDefinition"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The available archives. - */ +*/ export class LogsArchives { /** * A list of archives. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class LogsArchives { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsArchives.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsCompute.ts b/packages/datadog-api-client-v2/models/LogsCompute.ts index 48e2256d6faf..6c68637dbc2b 100644 --- a/packages/datadog-api-client-v2/models/LogsCompute.ts +++ b/packages/datadog-api-client-v2/models/LogsCompute.ts @@ -6,28 +6,33 @@ import { LogsAggregationFunction } from "./LogsAggregationFunction"; import { LogsComputeType } from "./LogsComputeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A compute rule to compute metrics or timeseries - */ +*/ export class LogsCompute { /** * An aggregation function - */ + */ "aggregation": LogsAggregationFunction; /** * The time buckets' size (only used for type=timeseries) * Defaults to a resolution of 150 points - */ + */ "interval"?: string; /** * The metric to use - */ + */ "metric"?: string; /** * The type of compute - */ + */ "type"?: LogsComputeType; /** @@ -46,35 +51,61 @@ export class LogsCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "LogsAggregationFunction", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "LogsAggregationFunction", + "required": true, }, - interval: { - baseName: "interval", - type: "string", + "interval": { + "baseName": "interval", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - type: { - baseName: "type", - type: "LogsComputeType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsComputeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsComputeType.ts b/packages/datadog-api-client-v2/models/LogsComputeType.ts index 5aea8202300f..4b3512f53694 100644 --- a/packages/datadog-api-client-v2/models/LogsComputeType.ts +++ b/packages/datadog-api-client-v2/models/LogsComputeType.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of compute - */ +*/ -export type LogsComputeType = typeof TIMESERIES | typeof TOTAL | UnparsedObject; -export const TIMESERIES = "timeseries"; -export const TOTAL = "total"; +export type LogsComputeType = typeof TIMESERIES| typeof TOTAL | UnparsedObject; +export const TIMESERIES = 'timeseries'; +export const TOTAL = 'total'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsGroupBy.ts b/packages/datadog-api-client-v2/models/LogsGroupBy.ts index 37758265c70a..e48fc0f00d93 100644 --- a/packages/datadog-api-client-v2/models/LogsGroupBy.ts +++ b/packages/datadog-api-client-v2/models/LogsGroupBy.ts @@ -8,37 +8,42 @@ import { LogsGroupByHistogram } from "./LogsGroupByHistogram"; import { LogsGroupByMissing } from "./LogsGroupByMissing"; import { LogsGroupByTotal } from "./LogsGroupByTotal"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule - */ +*/ export class LogsGroupBy { /** * The name of the facet to use (required) - */ + */ "facet": string; /** * Used to perform a histogram computation (only for measure facets). * Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval. - */ + */ "histogram"?: LogsGroupByHistogram; /** * The maximum buckets to return for this group by. Note: at most 10000 buckets are allowed. * If grouping by multiple facets, the product of limits must not exceed 10000. - */ + */ "limit"?: number; /** * The value to use for logs that don't have the facet used to group by - */ + */ "missing"?: LogsGroupByMissing; /** * A sort rule - */ + */ "sort"?: LogsAggregateSort; /** * A resulting object to put the given computes in over all the matching records. - */ + */ "total"?: LogsGroupByTotal; /** @@ -57,44 +62,70 @@ export class LogsGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - histogram: { - baseName: "histogram", - type: "LogsGroupByHistogram", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "histogram": { + "baseName": "histogram", + "type": "LogsGroupByHistogram", }, - missing: { - baseName: "missing", - type: "LogsGroupByMissing", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - sort: { - baseName: "sort", - type: "LogsAggregateSort", + "missing": { + "baseName": "missing", + "type": "LogsGroupByMissing", }, - total: { - baseName: "total", - type: "LogsGroupByTotal", + "sort": { + "baseName": "sort", + "type": "LogsAggregateSort", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "LogsGroupByTotal", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsGroupByHistogram.ts b/packages/datadog-api-client-v2/models/LogsGroupByHistogram.ts index 06461fedefe8..c9f6153457e3 100644 --- a/packages/datadog-api-client-v2/models/LogsGroupByHistogram.ts +++ b/packages/datadog-api-client-v2/models/LogsGroupByHistogram.ts @@ -4,26 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to perform a histogram computation (only for measure facets). * Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval. - */ +*/ export class LogsGroupByHistogram { /** * The bin size of the histogram buckets - */ + */ "interval": number; /** * The maximum value for the measure used in the histogram * (values greater than this one are filtered out) - */ + */ "max": number; /** * The minimum value for the measure used in the histogram * (values smaller than this one are filtered out) - */ + */ "min": number; /** @@ -42,36 +47,62 @@ export class LogsGroupByHistogram { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - interval: { - baseName: "interval", - type: "number", - required: true, - format: "double", - }, - max: { - baseName: "max", - type: "number", - required: true, - format: "double", + "interval": { + "baseName": "interval", + "type": "number", + "required": true, + "format": "double", }, - min: { - baseName: "min", - type: "number", - required: true, - format: "double", + "max": { + "baseName": "max", + "type": "number", + "required": true, + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "min": { + "baseName": "min", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsGroupByHistogram.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsGroupByMissing.ts b/packages/datadog-api-client-v2/models/LogsGroupByMissing.ts index 65fc95838c3d..9af0b06799cd 100644 --- a/packages/datadog-api-client-v2/models/LogsGroupByMissing.ts +++ b/packages/datadog-api-client-v2/models/LogsGroupByMissing.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The value to use for logs that don't have the facet used to group by - */ +*/ -export type LogsGroupByMissing = string | number | UnparsedObject; +export type LogsGroupByMissing = string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsGroupByTotal.ts b/packages/datadog-api-client-v2/models/LogsGroupByTotal.ts index be8f45744440..35337dab5346 100644 --- a/packages/datadog-api-client-v2/models/LogsGroupByTotal.ts +++ b/packages/datadog-api-client-v2/models/LogsGroupByTotal.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A resulting object to put the given computes in over all the matching records. - */ +*/ -export type LogsGroupByTotal = boolean | string | number | UnparsedObject; +export type LogsGroupByTotal = boolean | string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsListRequest.ts b/packages/datadog-api-client-v2/models/LogsListRequest.ts index 22f3022dd25c..a528df167a8a 100644 --- a/packages/datadog-api-client-v2/models/LogsListRequest.ts +++ b/packages/datadog-api-client-v2/models/LogsListRequest.ts @@ -8,28 +8,33 @@ import { LogsQueryFilter } from "./LogsQueryFilter"; import { LogsQueryOptions } from "./LogsQueryOptions"; import { LogsSort } from "./LogsSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a logs list. - */ +*/ export class LogsListRequest { /** * The search and filter query settings - */ + */ "filter"?: LogsQueryFilter; /** * Global query options that are used during the query. * Note: These fields are currently deprecated and do not affect the query results. - */ + */ "options"?: LogsQueryOptions; /** * Paging attributes for listing logs. - */ + */ "page"?: LogsListRequestPage; /** * Sort parameters when querying logs. - */ + */ "sort"?: LogsSort; /** @@ -48,34 +53,60 @@ export class LogsListRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "LogsQueryFilter", + "filter": { + "baseName": "filter", + "type": "LogsQueryFilter", }, - options: { - baseName: "options", - type: "LogsQueryOptions", + "options": { + "baseName": "options", + "type": "LogsQueryOptions", }, - page: { - baseName: "page", - type: "LogsListRequestPage", + "page": { + "baseName": "page", + "type": "LogsListRequestPage", }, - sort: { - baseName: "sort", - type: "LogsSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "LogsSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsListRequestPage.ts b/packages/datadog-api-client-v2/models/LogsListRequestPage.ts index 576599cbdffa..cdafffb50d2a 100644 --- a/packages/datadog-api-client-v2/models/LogsListRequestPage.ts +++ b/packages/datadog-api-client-v2/models/LogsListRequestPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes for listing logs. - */ +*/ export class LogsListRequestPage { /** * List following results with a cursor provided in the previous query. - */ + */ "cursor"?: string; /** * Maximum number of logs in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class LogsListRequestPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListRequestPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsListResponse.ts b/packages/datadog-api-client-v2/models/LogsListResponse.ts index cfff9a603b33..39f23ca87d03 100644 --- a/packages/datadog-api-client-v2/models/LogsListResponse.ts +++ b/packages/datadog-api-client-v2/models/LogsListResponse.ts @@ -7,23 +7,28 @@ import { Log } from "./Log"; import { LogsListResponseLinks } from "./LogsListResponseLinks"; import { LogsResponseMetadata } from "./LogsResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all logs matching the request and pagination information. - */ +*/ export class LogsListResponse { /** * Array of logs matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: LogsListResponseLinks; /** * The metadata associated with a request - */ + */ "meta"?: LogsResponseMetadata; /** @@ -42,30 +47,56 @@ export class LogsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "LogsListResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "LogsResponseMetadata", + "links": { + "baseName": "links", + "type": "LogsListResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "LogsResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsListResponseLinks.ts b/packages/datadog-api-client-v2/models/LogsListResponseLinks.ts index 1fcf8efc31ac..d9f068b2cc32 100644 --- a/packages/datadog-api-client-v2/models/LogsListResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/LogsListResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class LogsListResponseLinks { /** * Link for the next set of results. Note that the request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class LogsListResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsListResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricCompute.ts b/packages/datadog-api-client-v2/models/LogsMetricCompute.ts index 8494413c46a3..40ff317912a2 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricCompute.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricCompute.ts @@ -5,24 +5,29 @@ */ import { LogsMetricComputeAggregationType } from "./LogsMetricComputeAggregationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the log-based metric. - */ +*/ export class LogsMetricCompute { /** * The type of aggregation to use. - */ + */ "aggregationType": LogsMetricComputeAggregationType; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). - */ + */ "path"?: string; /** @@ -41,31 +46,57 @@ export class LogsMetricCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationType: { - baseName: "aggregation_type", - type: "LogsMetricComputeAggregationType", - required: true, - }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "aggregationType": { + "baseName": "aggregation_type", + "type": "LogsMetricComputeAggregationType", + "required": true, }, - path: { - baseName: "path", - type: "string", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricComputeAggregationType.ts b/packages/datadog-api-client-v2/models/LogsMetricComputeAggregationType.ts index 548dc6451236..9fc1f11ea73a 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricComputeAggregationType.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricComputeAggregationType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of aggregation to use. - */ +*/ -export type LogsMetricComputeAggregationType = - | typeof COUNT - | typeof DISTRIBUTION - | UnparsedObject; -export const COUNT = "count"; -export const DISTRIBUTION = "distribution"; +export type LogsMetricComputeAggregationType = typeof COUNT| typeof DISTRIBUTION | UnparsedObject; +export const COUNT = 'count'; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsMetricCreateAttributes.ts b/packages/datadog-api-client-v2/models/LogsMetricCreateAttributes.ts index bee0fc7cb020..469210856bcf 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricCreateAttributes.ts @@ -7,23 +7,28 @@ import { LogsMetricCompute } from "./LogsMetricCompute"; import { LogsMetricFilter } from "./LogsMetricFilter"; import { LogsMetricGroupBy } from "./LogsMetricGroupBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing the Datadog log-based metric to create. - */ +*/ export class LogsMetricCreateAttributes { /** * The compute rule to compute the log-based metric. - */ + */ "compute": LogsMetricCompute; /** * The log-based metric filter. Logs matching this filter will be aggregated in this metric. - */ + */ "filter"?: LogsMetricFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,31 +47,57 @@ export class LogsMetricCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "LogsMetricCompute", - required: true, - }, - filter: { - baseName: "filter", - type: "LogsMetricFilter", + "compute": { + "baseName": "compute", + "type": "LogsMetricCompute", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "LogsMetricFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricCreateData.ts b/packages/datadog-api-client-v2/models/LogsMetricCreateData.ts index 9833e8069311..1670bc3b9231 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricCreateData.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricCreateData.ts @@ -6,23 +6,28 @@ import { LogsMetricCreateAttributes } from "./LogsMetricCreateAttributes"; import { LogsMetricType } from "./LogsMetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new log-based metric properties. - */ +*/ export class LogsMetricCreateData { /** * The object describing the Datadog log-based metric to create. - */ + */ "attributes": LogsMetricCreateAttributes; /** * The name of the log-based metric. - */ + */ "id": string; /** * The type of the resource. The value should always be logs_metrics. - */ + */ "type": LogsMetricType; /** @@ -41,33 +46,59 @@ export class LogsMetricCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogsMetricCreateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "LogsMetricCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "LogsMetricType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsMetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricCreateRequest.ts b/packages/datadog-api-client-v2/models/LogsMetricCreateRequest.ts index 0620fcbc7658..722d14168010 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricCreateRequest.ts @@ -5,15 +5,20 @@ */ import { LogsMetricCreateData } from "./LogsMetricCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new log-based metric body. - */ +*/ export class LogsMetricCreateRequest { /** * The new log-based metric properties. - */ + */ "data": LogsMetricCreateData; /** @@ -32,23 +37,49 @@ export class LogsMetricCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsMetricCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "LogsMetricCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricFilter.ts b/packages/datadog-api-client-v2/models/LogsMetricFilter.ts index 22cf9727ae44..abd335ed6b6b 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricFilter.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The log-based metric filter. Logs matching this filter will be aggregated in this metric. - */ +*/ export class LogsMetricFilter { /** * The search query - following the log search syntax. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class LogsMetricFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricGroupBy.ts b/packages/datadog-api-client-v2/models/LogsMetricGroupBy.ts index a47365bd66ec..c8d52d3c5816 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricGroupBy.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricGroupBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class LogsMetricGroupBy { /** * The path to the value the log-based metric will be aggregated over. - */ + */ "path": string; /** * Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. - */ + */ "tagName"?: string; /** @@ -35,27 +40,53 @@ export class LogsMetricGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - path: { - baseName: "path", - type: "string", - required: true, + "path": { + "baseName": "path", + "type": "string", + "required": true, }, - tagName: { - baseName: "tag_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagName": { + "baseName": "tag_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponse.ts b/packages/datadog-api-client-v2/models/LogsMetricResponse.ts index 7175d0a347df..589e04cc0286 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponse.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponse.ts @@ -5,15 +5,20 @@ */ import { LogsMetricResponseData } from "./LogsMetricResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The log-based metric object. - */ +*/ export class LogsMetricResponse { /** * The log-based metric properties. - */ + */ "data"?: LogsMetricResponseData; /** @@ -32,22 +37,48 @@ export class LogsMetricResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsMetricResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "LogsMetricResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseAttributes.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseAttributes.ts index 93d1daaea435..0b2955373106 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseAttributes.ts @@ -7,23 +7,28 @@ import { LogsMetricResponseCompute } from "./LogsMetricResponseCompute"; import { LogsMetricResponseFilter } from "./LogsMetricResponseFilter"; import { LogsMetricResponseGroupBy } from "./LogsMetricResponseGroupBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a Datadog log-based metric. - */ +*/ export class LogsMetricResponseAttributes { /** * The compute rule to compute the log-based metric. - */ + */ "compute"?: LogsMetricResponseCompute; /** * The log-based metric filter. Logs matching this filter will be aggregated in this metric. - */ + */ "filter"?: LogsMetricResponseFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,30 +47,56 @@ export class LogsMetricResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "LogsMetricResponseCompute", - }, - filter: { - baseName: "filter", - type: "LogsMetricResponseFilter", + "compute": { + "baseName": "compute", + "type": "LogsMetricResponseCompute", }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "LogsMetricResponseFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts index 00717e002bfb..6edd47ba9134 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts @@ -5,24 +5,29 @@ */ import { LogsMetricResponseComputeAggregationType } from "./LogsMetricResponseComputeAggregationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the log-based metric. - */ +*/ export class LogsMetricResponseCompute { /** * The type of aggregation to use. - */ + */ "aggregationType"?: LogsMetricResponseComputeAggregationType; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). - */ + */ "path"?: string; /** @@ -41,30 +46,56 @@ export class LogsMetricResponseCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationType: { - baseName: "aggregation_type", - type: "LogsMetricResponseComputeAggregationType", - }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "aggregationType": { + "baseName": "aggregation_type", + "type": "LogsMetricResponseComputeAggregationType", }, - path: { - baseName: "path", - type: "string", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricResponseCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseComputeAggregationType.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseComputeAggregationType.ts index 765644a6428b..739a5477c95c 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseComputeAggregationType.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseComputeAggregationType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of aggregation to use. - */ +*/ -export type LogsMetricResponseComputeAggregationType = - | typeof COUNT - | typeof DISTRIBUTION - | UnparsedObject; -export const COUNT = "count"; -export const DISTRIBUTION = "distribution"; +export type LogsMetricResponseComputeAggregationType = typeof COUNT| typeof DISTRIBUTION | UnparsedObject; +export const COUNT = 'count'; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseData.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseData.ts index 45efe0074076..a9f218ce2328 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseData.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseData.ts @@ -6,23 +6,28 @@ import { LogsMetricResponseAttributes } from "./LogsMetricResponseAttributes"; import { LogsMetricType } from "./LogsMetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The log-based metric properties. - */ +*/ export class LogsMetricResponseData { /** * The object describing a Datadog log-based metric. - */ + */ "attributes"?: LogsMetricResponseAttributes; /** * The name of the log-based metric. - */ + */ "id"?: string; /** * The type of the resource. The value should always be logs_metrics. - */ + */ "type"?: LogsMetricType; /** @@ -41,30 +46,56 @@ export class LogsMetricResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogsMetricResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "LogsMetricResponseAttributes", }, - type: { - baseName: "type", - type: "LogsMetricType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsMetricType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseFilter.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseFilter.ts index e3350e7d9c47..97f07fc8e6bb 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseFilter.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The log-based metric filter. Logs matching this filter will be aggregated in this metric. - */ +*/ export class LogsMetricResponseFilter { /** * The search query - following the log search syntax. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class LogsMetricResponseFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricResponseFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseGroupBy.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseGroupBy.ts index 883990af0106..e1721bc0f85c 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseGroupBy.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseGroupBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class LogsMetricResponseGroupBy { /** * The path to the value the log-based metric will be aggregated over. - */ + */ "path"?: string; /** * Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. - */ + */ "tagName"?: string; /** @@ -35,26 +40,52 @@ export class LogsMetricResponseGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - path: { - baseName: "path", - type: "string", + "path": { + "baseName": "path", + "type": "string", }, - tagName: { - baseName: "tag_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagName": { + "baseName": "tag_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricResponseGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricType.ts b/packages/datadog-api-client-v2/models/LogsMetricType.ts index cf9bf0992d86..e46f0af00156 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricType.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be logs_metrics. - */ +*/ export type LogsMetricType = typeof LOGS_METRICS | UnparsedObject; -export const LOGS_METRICS = "logs_metrics"; +export const LOGS_METRICS = 'logs_metrics'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts b/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts index d48d3e0e34b0..c8f42bd0c524 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts @@ -7,23 +7,28 @@ import { LogsMetricFilter } from "./LogsMetricFilter"; import { LogsMetricGroupBy } from "./LogsMetricGroupBy"; import { LogsMetricUpdateCompute } from "./LogsMetricUpdateCompute"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The log-based metric properties that will be updated. - */ +*/ export class LogsMetricUpdateAttributes { /** * The compute rule to compute the log-based metric. - */ + */ "compute"?: LogsMetricUpdateCompute; /** * The log-based metric filter. Logs matching this filter will be aggregated in this metric. - */ + */ "filter"?: LogsMetricFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,30 +47,56 @@ export class LogsMetricUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "LogsMetricUpdateCompute", - }, - filter: { - baseName: "filter", - type: "LogsMetricFilter", + "compute": { + "baseName": "compute", + "type": "LogsMetricUpdateCompute", }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "LogsMetricFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts b/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts index 08326a3e0546..4a63660ff49e 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the log-based metric. - */ +*/ export class LogsMetricUpdateCompute { /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** @@ -32,22 +37,48 @@ export class LogsMetricUpdateCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricUpdateCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricUpdateData.ts b/packages/datadog-api-client-v2/models/LogsMetricUpdateData.ts index 06bde96d0340..d63877a807e0 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricUpdateData.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricUpdateData.ts @@ -6,19 +6,24 @@ import { LogsMetricType } from "./LogsMetricType"; import { LogsMetricUpdateAttributes } from "./LogsMetricUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new log-based metric properties. - */ +*/ export class LogsMetricUpdateData { /** * The log-based metric properties that will be updated. - */ + */ "attributes": LogsMetricUpdateAttributes; /** * The type of the resource. The value should always be logs_metrics. - */ + */ "type": LogsMetricType; /** @@ -37,28 +42,54 @@ export class LogsMetricUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "LogsMetricUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "LogsMetricUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "LogsMetricType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "LogsMetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricUpdateRequest.ts b/packages/datadog-api-client-v2/models/LogsMetricUpdateRequest.ts index d4a975299f25..73da1c8c1dec 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { LogsMetricUpdateData } from "./LogsMetricUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new log-based metric body. - */ +*/ export class LogsMetricUpdateRequest { /** * The new log-based metric properties. - */ + */ "data": LogsMetricUpdateData; /** @@ -32,23 +37,49 @@ export class LogsMetricUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "LogsMetricUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "LogsMetricUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsMetricsResponse.ts b/packages/datadog-api-client-v2/models/LogsMetricsResponse.ts index d6fad9842a18..3717c039700d 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricsResponse.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricsResponse.ts @@ -5,15 +5,20 @@ */ import { LogsMetricResponseData } from "./LogsMetricResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All the available log-based metric objects. - */ +*/ export class LogsMetricsResponse { /** * A list of log-based metric objects. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class LogsMetricsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsMetricsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsQueryFilter.ts b/packages/datadog-api-client-v2/models/LogsQueryFilter.ts index 44d9c331e703..ca17ea1a0e2d 100644 --- a/packages/datadog-api-client-v2/models/LogsQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/LogsQueryFilter.ts @@ -5,31 +5,36 @@ */ import { LogsStorageTier } from "./LogsStorageTier"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The search and filter query settings - */ +*/ export class LogsQueryFilter { /** * The minimum time for the requested logs, supports date math and regular timestamps (milliseconds). - */ + */ "from"?: string; /** * For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes. - */ + */ "indexes"?: Array; /** * The search query - following the log search syntax. - */ + */ "query"?: string; /** * Specifies storage type as indexes, online-archives or flex - */ + */ "storageTier"?: LogsStorageTier; /** * The maximum time for the requested logs, supports date math and regular timestamps (milliseconds). - */ + */ "to"?: string; /** @@ -48,38 +53,64 @@ export class LogsQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - indexes: { - baseName: "indexes", - type: "Array", + "indexes": { + "baseName": "indexes", + "type": "Array", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - storageTier: { - baseName: "storage_tier", - type: "LogsStorageTier", + "storageTier": { + "baseName": "storage_tier", + "type": "LogsStorageTier", }, - to: { - baseName: "to", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsQueryOptions.ts b/packages/datadog-api-client-v2/models/LogsQueryOptions.ts index 5c6e6d2b0b17..1ffc811235f7 100644 --- a/packages/datadog-api-client-v2/models/LogsQueryOptions.ts +++ b/packages/datadog-api-client-v2/models/LogsQueryOptions.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Global query options that are used during the query. * Note: These fields are currently deprecated and do not affect the query results. - */ +*/ export class LogsQueryOptions { /** * The time offset (in seconds) to apply to the query. - */ + */ "timeOffset"?: number; /** * The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class LogsQueryOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeOffset: { - baseName: "timeOffset", - type: "number", - format: "int64", + "timeOffset": { + "baseName": "timeOffset", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsQueryOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsResponseMetadata.ts b/packages/datadog-api-client-v2/models/LogsResponseMetadata.ts index b8f91762622f..c199fa8b2692 100644 --- a/packages/datadog-api-client-v2/models/LogsResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/LogsResponseMetadata.ts @@ -7,32 +7,37 @@ import { LogsAggregateResponseStatus } from "./LogsAggregateResponseStatus"; import { LogsResponseMetadataPage } from "./LogsResponseMetadataPage"; import { LogsWarning } from "./LogsWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request - */ +*/ export class LogsResponseMetadata { /** * The time elapsed in milliseconds - */ + */ "elapsed"?: number; /** * Paging attributes. - */ + */ "page"?: LogsResponseMetadataPage; /** * The identifier of the request - */ + */ "requestId"?: string; /** * The status of the response - */ + */ "status"?: LogsAggregateResponseStatus; /** * A list of warnings (non fatal errors) encountered, partial results might be returned if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -51,39 +56,65 @@ export class LogsResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "LogsResponseMetadataPage", + "page": { + "baseName": "page", + "type": "LogsResponseMetadataPage", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "LogsAggregateResponseStatus", + "status": { + "baseName": "status", + "type": "LogsAggregateResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsResponseMetadataPage.ts b/packages/datadog-api-client-v2/models/LogsResponseMetadataPage.ts index dbf96680a46b..b805fcd1908a 100644 --- a/packages/datadog-api-client-v2/models/LogsResponseMetadataPage.ts +++ b/packages/datadog-api-client-v2/models/LogsResponseMetadataPage.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class LogsResponseMetadataPage { /** * The cursor to use to get the next results, if any. To make the next request, use the same * parameters with the addition of the `page[cursor]`. - */ + */ "after"?: string; /** @@ -32,22 +37,48 @@ export class LogsResponseMetadataPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsResponseMetadataPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/LogsSort.ts b/packages/datadog-api-client-v2/models/LogsSort.ts index 398d4f1fd246..f3e11f41fcc2 100644 --- a/packages/datadog-api-client-v2/models/LogsSort.ts +++ b/packages/datadog-api-client-v2/models/LogsSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sort parameters when querying logs. - */ +*/ -export type LogsSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type LogsSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsSortOrder.ts b/packages/datadog-api-client-v2/models/LogsSortOrder.ts index b689323cb3b1..bfd8d7b4e290 100644 --- a/packages/datadog-api-client-v2/models/LogsSortOrder.ts +++ b/packages/datadog-api-client-v2/models/LogsSortOrder.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The order to use, ascending or descending - */ +*/ -export type LogsSortOrder = - | typeof ASCENDING - | typeof DESCENDING - | UnparsedObject; -export const ASCENDING = "asc"; -export const DESCENDING = "desc"; +export type LogsSortOrder = typeof ASCENDING| typeof DESCENDING | UnparsedObject; +export const ASCENDING = 'asc'; +export const DESCENDING = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsStorageTier.ts b/packages/datadog-api-client-v2/models/LogsStorageTier.ts index 3b44c42211c3..cd1e0e1fc75a 100644 --- a/packages/datadog-api-client-v2/models/LogsStorageTier.ts +++ b/packages/datadog-api-client-v2/models/LogsStorageTier.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Specifies storage type as indexes, online-archives or flex - */ +*/ -export type LogsStorageTier = - | typeof INDEXES - | typeof ONLINE_ARCHIVES - | typeof FLEX - | UnparsedObject; -export const INDEXES = "indexes"; -export const ONLINE_ARCHIVES = "online-archives"; -export const FLEX = "flex"; +export type LogsStorageTier = typeof INDEXES| typeof ONLINE_ARCHIVES| typeof FLEX | UnparsedObject; +export const INDEXES = 'indexes'; +export const ONLINE_ARCHIVES = 'online-archives'; +export const FLEX = 'flex'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/LogsWarning.ts b/packages/datadog-api-client-v2/models/LogsWarning.ts index 0de38ad9a2dc..271a313b7ab4 100644 --- a/packages/datadog-api-client-v2/models/LogsWarning.ts +++ b/packages/datadog-api-client-v2/models/LogsWarning.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A warning message indicating something that went wrong with the query - */ +*/ export class LogsWarning { /** * A unique code for this type of warning - */ + */ "code"?: string; /** * A detailed explanation of this specific warning - */ + */ "detail"?: string; /** * A short human-readable summary of the warning - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class LogsWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - detail: { - baseName: "detail", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return LogsWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadata.ts b/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadata.ts index 9dab91216afc..a1772375a8d0 100644 --- a/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadata.ts +++ b/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadata.ts @@ -5,15 +5,20 @@ */ import { MSTeamsIntegrationMetadataTeamsItem } from "./MSTeamsIntegrationMetadataTeamsItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata for the Microsoft Teams integration. - */ +*/ export class MSTeamsIntegrationMetadata { /** * Array of Microsoft Teams in this integration metadata. - */ + */ "teams": Array; /** @@ -32,23 +37,49 @@ export class MSTeamsIntegrationMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - teams: { - baseName: "teams", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "teams": { + "baseName": "teams", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MSTeamsIntegrationMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadataTeamsItem.ts b/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadataTeamsItem.ts index 4bcfa20b99af..505ee49436f7 100644 --- a/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadataTeamsItem.ts +++ b/packages/datadog-api-client-v2/models/MSTeamsIntegrationMetadataTeamsItem.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Item in the Microsoft Teams integration metadata teams array. - */ +*/ export class MSTeamsIntegrationMetadataTeamsItem { /** * Microsoft Teams channel ID. - */ + */ "msChannelId": string; /** * Microsoft Teams channel name. - */ + */ "msChannelName": string; /** * Microsoft Teams tenant ID. - */ + */ "msTenantId": string; /** * URL redirecting to the Microsoft Teams channel. - */ + */ "redirectUrl": string; /** @@ -43,38 +48,64 @@ export class MSTeamsIntegrationMetadataTeamsItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - msChannelId: { - baseName: "ms_channel_id", - type: "string", - required: true, + "msChannelId": { + "baseName": "ms_channel_id", + "type": "string", + "required": true, }, - msChannelName: { - baseName: "ms_channel_name", - type: "string", - required: true, + "msChannelName": { + "baseName": "ms_channel_name", + "type": "string", + "required": true, }, - msTenantId: { - baseName: "ms_tenant_id", - type: "string", - required: true, + "msTenantId": { + "baseName": "ms_tenant_id", + "type": "string", + "required": true, }, - redirectUrl: { - baseName: "redirect_url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "redirectUrl": { + "baseName": "redirect_url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MSTeamsIntegrationMetadataTeamsItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Metadata.ts b/packages/datadog-api-client-v2/models/Metadata.ts index fdfd6b414398..af0dc788e59c 100644 --- a/packages/datadog-api-client-v2/models/Metadata.ts +++ b/packages/datadog-api-client-v2/models/Metadata.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata related to this request. - */ +*/ export class Metadata { /** * Number of entities included in the response. - */ + */ "count": number; /** * The token that identifies the request. - */ + */ "token": string; /** * Total number of entities across all pages. - */ + */ "total": number; /** @@ -39,35 +44,61 @@ export class Metadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - required: true, - format: "int64", - }, - token: { - baseName: "token", - type: "string", - required: true, + "count": { + "baseName": "count", + "type": "number", + "required": true, + "format": "int64", }, - total: { - baseName: "total", - type: "number", - required: true, - format: "int64", + "token": { + "baseName": "token", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Metadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Metric.ts b/packages/datadog-api-client-v2/models/Metric.ts index 572cc22c4073..a1ff993f5c1b 100644 --- a/packages/datadog-api-client-v2/models/Metric.ts +++ b/packages/datadog-api-client-v2/models/Metric.ts @@ -5,19 +5,24 @@ */ import { MetricType } from "./MetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric tag configuration. - */ +*/ export class Metric { /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric resource type. - */ + */ "type"?: MetricType; /** @@ -36,26 +41,52 @@ export class Metric { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "MetricType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Metric.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.ts b/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.ts index b8215f5c19d7..af3bbeab70a2 100644 --- a/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.ts +++ b/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.ts @@ -4,14 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric actively queried configuration resource type. - */ +*/ -export type MetricActiveConfigurationType = - | typeof ACTIVELY_QUERIED_CONFIGURATIONS - | UnparsedObject; -export const ACTIVELY_QUERIED_CONFIGURATIONS = - "actively_queried_configurations"; +export type MetricActiveConfigurationType = typeof ACTIVELY_QUERIED_CONFIGURATIONS | UnparsedObject; +export const ACTIVELY_QUERIED_CONFIGURATIONS = 'actively_queried_configurations'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricAllTags.ts b/packages/datadog-api-client-v2/models/MetricAllTags.ts index 15f4a0cd4271..4711432df83a 100644 --- a/packages/datadog-api-client-v2/models/MetricAllTags.ts +++ b/packages/datadog-api-client-v2/models/MetricAllTags.ts @@ -6,23 +6,28 @@ import { MetricAllTagsAttributes } from "./MetricAllTagsAttributes"; import { MetricType } from "./MetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric's indexed tags. - */ +*/ export class MetricAllTags { /** * Object containing the definition of a metric's tags. - */ + */ "attributes"?: MetricAllTagsAttributes; /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric resource type. - */ + */ "type"?: MetricType; /** @@ -41,30 +46,56 @@ export class MetricAllTags { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricAllTagsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MetricAllTagsAttributes", }, - type: { - baseName: "type", - type: "MetricType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAllTags.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAllTagsAttributes.ts b/packages/datadog-api-client-v2/models/MetricAllTagsAttributes.ts index 6ead3115c030..60969efc1fc6 100644 --- a/packages/datadog-api-client-v2/models/MetricAllTagsAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricAllTagsAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric's tags. - */ +*/ export class MetricAllTagsAttributes { /** * List of indexed tag value pairs. - */ + */ "tags"?: Array; /** @@ -31,22 +36,48 @@ export class MetricAllTagsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAllTagsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAllTagsResponse.ts b/packages/datadog-api-client-v2/models/MetricAllTagsResponse.ts index 58d796997a93..b81d8a718f8e 100644 --- a/packages/datadog-api-client-v2/models/MetricAllTagsResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricAllTagsResponse.ts @@ -5,15 +5,20 @@ */ import { MetricAllTags } from "./MetricAllTags"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a single metric's indexed tags. - */ +*/ export class MetricAllTagsResponse { /** * Object for a single metric's indexed tags. - */ + */ "data"?: MetricAllTags; /** @@ -32,22 +37,48 @@ export class MetricAllTagsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricAllTags", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricAllTags", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAllTagsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetAttributes.ts b/packages/datadog-api-client-v2/models/MetricAssetAttributes.ts index f2384b3f591a..ad603f731e75 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Assets related to the object, including title and url. - */ +*/ export class MetricAssetAttributes { /** * Title of the asset. - */ + */ "title"?: string; /** * URL path of the asset. - */ + */ "url"?: string; /** @@ -35,26 +40,52 @@ export class MetricAssetAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationship.ts b/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationship.ts index 82482290c6a3..2c686e606274 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationship.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationship.ts @@ -5,19 +5,24 @@ */ import { MetricDashboardType } from "./MetricDashboardType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object of type `dashboard` that can be referenced in the `included` data. - */ +*/ export class MetricAssetDashboardRelationship { /** * The related dashboard's ID. - */ + */ "id"?: string; /** * Dashboard resource type. - */ + */ "type"?: MetricDashboardType; /** @@ -36,26 +41,52 @@ export class MetricAssetDashboardRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "MetricDashboardType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricDashboardType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetDashboardRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationships.ts b/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationships.ts index ba245593ef29..d3efca5cd13d 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationships.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetDashboardRelationships.ts @@ -5,15 +5,20 @@ */ import { MetricAssetDashboardRelationship } from "./MetricAssetDashboardRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object containing the list of dashboards that can be referenced in the `included` data. - */ +*/ export class MetricAssetDashboardRelationships { /** * A list of dashboards that can be referenced in the `included` data. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class MetricAssetDashboardRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetDashboardRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationship.ts b/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationship.ts index 0a2111522b8a..b64d0498432c 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationship.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationship.ts @@ -5,19 +5,24 @@ */ import { MetricMonitorType } from "./MetricMonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object of type `monitor` that can be referenced in the `included` data. - */ +*/ export class MetricAssetMonitorRelationship { /** * The related monitor's ID. - */ + */ "id"?: string; /** * Monitor resource type. - */ + */ "type"?: MetricMonitorType; /** @@ -36,26 +41,52 @@ export class MetricAssetMonitorRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "MetricMonitorType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricMonitorType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetMonitorRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationships.ts b/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationships.ts index b08d3c44dd0b..e1072aafb488 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationships.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetMonitorRelationships.ts @@ -5,15 +5,20 @@ */ import { MetricAssetMonitorRelationship } from "./MetricAssetMonitorRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A object containing the list of monitors that can be referenced in the `included` data. - */ +*/ export class MetricAssetMonitorRelationships { /** * A list of monitors that can be referenced in the `included` data. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class MetricAssetMonitorRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetMonitorRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationship.ts b/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationship.ts index 93c8c8e77baa..98d2943a5856 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationship.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationship.ts @@ -5,19 +5,24 @@ */ import { MetricNotebookType } from "./MetricNotebookType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object of type `notebook` that can be referenced in the `included` data. - */ +*/ export class MetricAssetNotebookRelationship { /** * The related notebook's ID. - */ + */ "id"?: string; /** * Notebook resource type. - */ + */ "type"?: MetricNotebookType; /** @@ -36,26 +41,52 @@ export class MetricAssetNotebookRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "MetricNotebookType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricNotebookType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetNotebookRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationships.ts b/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationships.ts index e85bca6bc46b..db22caab2808 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationships.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetNotebookRelationships.ts @@ -5,15 +5,20 @@ */ import { MetricAssetNotebookRelationship } from "./MetricAssetNotebookRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object containing the list of notebooks that can be referenced in the `included` data. - */ +*/ export class MetricAssetNotebookRelationships { /** * A list of notebooks that can be referenced in the `included` data. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class MetricAssetNotebookRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetNotebookRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetResponseData.ts b/packages/datadog-api-client-v2/models/MetricAssetResponseData.ts index 5bf492ece414..348f6b08f935 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetResponseData.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetResponseData.ts @@ -6,23 +6,28 @@ import { MetricAssetResponseRelationships } from "./MetricAssetResponseRelationships"; import { MetricType } from "./MetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metric assets response data. - */ +*/ export class MetricAssetResponseData { /** * The metric name for this resource. - */ + */ "id": string; /** * Relationships to assets related to the metric. - */ + */ "relationships"?: MetricAssetResponseRelationships; /** * The metric resource type. - */ + */ "type": MetricType; /** @@ -41,32 +46,58 @@ export class MetricAssetResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - }, - relationships: { - baseName: "relationships", - type: "MetricAssetResponseRelationships", + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "MetricType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "MetricAssetResponseRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetResponseIncluded.ts b/packages/datadog-api-client-v2/models/MetricAssetResponseIncluded.ts index d16a8d4707df..47e4507bcbe6 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetResponseIncluded.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetResponseIncluded.ts @@ -8,15 +8,15 @@ import { MetricMonitorAsset } from "./MetricMonitorAsset"; import { MetricNotebookAsset } from "./MetricNotebookAsset"; import { MetricSLOAsset } from "./MetricSLOAsset"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * List of included assets with full set of attributes. - */ +*/ -export type MetricAssetResponseIncluded = - | MetricDashboardAsset - | MetricMonitorAsset - | MetricNotebookAsset - | MetricSLOAsset - | UnparsedObject; +export type MetricAssetResponseIncluded = MetricDashboardAsset | MetricMonitorAsset | MetricNotebookAsset | MetricSLOAsset | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricAssetResponseRelationships.ts b/packages/datadog-api-client-v2/models/MetricAssetResponseRelationships.ts index 450ccb21877b..58464bafdd66 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetResponseRelationships.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetResponseRelationships.ts @@ -8,27 +8,32 @@ import { MetricAssetMonitorRelationships } from "./MetricAssetMonitorRelationshi import { MetricAssetNotebookRelationships } from "./MetricAssetNotebookRelationships"; import { MetricAssetSLORelationships } from "./MetricAssetSLORelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships to assets related to the metric. - */ +*/ export class MetricAssetResponseRelationships { /** * An object containing the list of dashboards that can be referenced in the `included` data. - */ + */ "dashboards"?: MetricAssetDashboardRelationships; /** * A object containing the list of monitors that can be referenced in the `included` data. - */ + */ "monitors"?: MetricAssetMonitorRelationships; /** * An object containing the list of notebooks that can be referenced in the `included` data. - */ + */ "notebooks"?: MetricAssetNotebookRelationships; /** * An object containing a list of SLOs that can be referenced in the `included` data. - */ + */ "slos"?: MetricAssetSLORelationships; /** @@ -47,34 +52,60 @@ export class MetricAssetResponseRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dashboards: { - baseName: "dashboards", - type: "MetricAssetDashboardRelationships", + "dashboards": { + "baseName": "dashboards", + "type": "MetricAssetDashboardRelationships", }, - monitors: { - baseName: "monitors", - type: "MetricAssetMonitorRelationships", + "monitors": { + "baseName": "monitors", + "type": "MetricAssetMonitorRelationships", }, - notebooks: { - baseName: "notebooks", - type: "MetricAssetNotebookRelationships", + "notebooks": { + "baseName": "notebooks", + "type": "MetricAssetNotebookRelationships", }, - slos: { - baseName: "slos", - type: "MetricAssetSLORelationships", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "slos": { + "baseName": "slos", + "type": "MetricAssetSLORelationships", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetResponseRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetSLORelationship.ts b/packages/datadog-api-client-v2/models/MetricAssetSLORelationship.ts index 6844c67f19dd..db611e11d566 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetSLORelationship.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetSLORelationship.ts @@ -5,19 +5,24 @@ */ import { MetricSLOType } from "./MetricSLOType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object of type `slos` that can be referenced in the `included` data. - */ +*/ export class MetricAssetSLORelationship { /** * The SLO ID. - */ + */ "id"?: string; /** * SLO resource type. - */ + */ "type"?: MetricSLOType; /** @@ -36,26 +41,52 @@ export class MetricAssetSLORelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "MetricSLOType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricSLOType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetSLORelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetSLORelationships.ts b/packages/datadog-api-client-v2/models/MetricAssetSLORelationships.ts index f47ea1786b43..3b6efd8ea15b 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetSLORelationships.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetSLORelationships.ts @@ -5,15 +5,20 @@ */ import { MetricAssetSLORelationship } from "./MetricAssetSLORelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An object containing a list of SLOs that can be referenced in the `included` data. - */ +*/ export class MetricAssetSLORelationships { /** * A list of SLOs that can be referenced in the `included` data. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class MetricAssetSLORelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetSLORelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricAssetsResponse.ts b/packages/datadog-api-client-v2/models/MetricAssetsResponse.ts index 0d90afbb8262..e18a6f3bd45b 100644 --- a/packages/datadog-api-client-v2/models/MetricAssetsResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricAssetsResponse.ts @@ -6,19 +6,24 @@ import { MetricAssetResponseData } from "./MetricAssetResponseData"; import { MetricAssetResponseIncluded } from "./MetricAssetResponseIncluded"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes related dashboards, monitors, notebooks, and SLOs. - */ +*/ export class MetricAssetsResponse { /** * Metric assets response data. - */ + */ "data"?: MetricAssetResponseData; /** * Array of objects related to the metric assets. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class MetricAssetsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricAssetResponseData", + "data": { + "baseName": "data", + "type": "MetricAssetResponseData", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricAssetsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkConfigureTagsType.ts b/packages/datadog-api-client-v2/models/MetricBulkConfigureTagsType.ts index f3a7bcaee0d8..36a3599c75d1 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkConfigureTagsType.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkConfigureTagsType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric bulk configure tags resource. - */ +*/ -export type MetricBulkConfigureTagsType = - | typeof BULK_MANAGE_TAGS - | UnparsedObject; -export const BULK_MANAGE_TAGS = "metric_bulk_configure_tags"; +export type MetricBulkConfigureTagsType = typeof BULK_MANAGE_TAGS | UnparsedObject; +export const BULK_MANAGE_TAGS = 'metric_bulk_configure_tags'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreate.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreate.ts index 9a173a95a54b..17c249d267d0 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreate.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreate.ts @@ -6,23 +6,28 @@ import { MetricBulkConfigureTagsType } from "./MetricBulkConfigureTagsType"; import { MetricBulkTagConfigCreateAttributes } from "./MetricBulkTagConfigCreateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object to bulk configure tags for metrics matching the given prefix. - */ +*/ export class MetricBulkTagConfigCreate { /** * Optional parameters for bulk creating metric tag configurations. - */ + */ "attributes"?: MetricBulkTagConfigCreateAttributes; /** * A text prefix to match against metric names. - */ + */ "id": string; /** * The metric bulk configure tags resource. - */ + */ "type": MetricBulkConfigureTagsType; /** @@ -41,32 +46,58 @@ export class MetricBulkTagConfigCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricBulkTagConfigCreateAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricBulkTagConfigCreateAttributes", }, - type: { - baseName: "type", - type: "MetricBulkConfigureTagsType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricBulkConfigureTagsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateAttributes.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateAttributes.ts index 04feec30aff2..5b7c74783cdc 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateAttributes.ts @@ -3,29 +3,36 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { MetricBulkTagConfigEmailListItem } from "./MetricBulkTagConfigEmailListItem"; +import { MetricBulkTagConfigTagNameListItem } from "./MetricBulkTagConfigTagNameListItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Optional parameters for bulk creating metric tag configurations. - */ +*/ export class MetricBulkTagConfigCreateAttributes { /** * A list of account emails to notify when the configuration is applied. - */ + */ "emails"?: Array; /** * When set to true, the configuration will exclude the configured tags and include any other submitted tags. * When set to false, the configuration will include the configured tags and exclude any other submitted tags. * Defaults to false. - */ + */ "excludeTagsMode"?: boolean; /** * When provided, all tags that have been actively queried are * configured (and, therefore, remain queryable) for each metric that * matches the given prefix. Minimum value is 1 second, and maximum * value is 7,776,000 seconds (90 days). - */ + */ "includeActivelyQueriedTagsWindow"?: number; /** * When set to true, the configuration overrides any existing @@ -33,11 +40,11 @@ export class MetricBulkTagConfigCreateAttributes { * configuration request. If false, old configurations are kept and * are merged with the set of tags in this configuration request. * Defaults to true. - */ + */ "overrideExistingConfigurations"?: boolean; /** * A list of tag names to apply to the configuration. - */ + */ "tags"?: Array; /** @@ -56,39 +63,65 @@ export class MetricBulkTagConfigCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - emails: { - baseName: "emails", - type: "Array", + "emails": { + "baseName": "emails", + "type": "Array", }, - excludeTagsMode: { - baseName: "exclude_tags_mode", - type: "boolean", + "excludeTagsMode": { + "baseName": "exclude_tags_mode", + "type": "boolean", }, - includeActivelyQueriedTagsWindow: { - baseName: "include_actively_queried_tags_window", - type: "number", - format: "double", + "includeActivelyQueriedTagsWindow": { + "baseName": "include_actively_queried_tags_window", + "type": "number", + "format": "double", }, - overrideExistingConfigurations: { - baseName: "override_existing_configurations", - type: "boolean", + "overrideExistingConfigurations": { + "baseName": "override_existing_configurations", + "type": "boolean", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateRequest.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateRequest.ts index 1033e0b065b3..6debaa7a038b 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigCreateRequest.ts @@ -5,15 +5,20 @@ */ import { MetricBulkTagConfigCreate } from "./MetricBulkTagConfigCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper object for a single bulk tag configuration request. - */ +*/ export class MetricBulkTagConfigCreateRequest { /** * Request object to bulk configure tags for metrics matching the given prefix. - */ + */ "data": MetricBulkTagConfigCreate; /** @@ -32,23 +37,49 @@ export class MetricBulkTagConfigCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricBulkTagConfigCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricBulkTagConfigCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigDelete.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigDelete.ts index 93ba198e6682..c17a61ce888a 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigDelete.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigDelete.ts @@ -6,23 +6,28 @@ import { MetricBulkConfigureTagsType } from "./MetricBulkConfigureTagsType"; import { MetricBulkTagConfigDeleteAttributes } from "./MetricBulkTagConfigDeleteAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object to bulk delete all tag configurations for metrics matching the given prefix. - */ +*/ export class MetricBulkTagConfigDelete { /** * Optional parameters for bulk deleting metric tag configurations. - */ + */ "attributes"?: MetricBulkTagConfigDeleteAttributes; /** * A text prefix to match against metric names. - */ + */ "id": string; /** * The metric bulk configure tags resource. - */ + */ "type": MetricBulkConfigureTagsType; /** @@ -41,32 +46,58 @@ export class MetricBulkTagConfigDelete { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricBulkTagConfigDeleteAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricBulkTagConfigDeleteAttributes", }, - type: { - baseName: "type", - type: "MetricBulkConfigureTagsType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricBulkConfigureTagsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigDelete.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteAttributes.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteAttributes.ts index 37f06eb5f655..bb72f2d52376 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteAttributes.ts @@ -3,16 +3,22 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { MetricBulkTagConfigEmailListItem } from "./MetricBulkTagConfigEmailListItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Optional parameters for bulk deleting metric tag configurations. - */ +*/ export class MetricBulkTagConfigDeleteAttributes { /** * A list of account emails to notify when the configuration is applied. - */ + */ "emails"?: Array; /** @@ -31,22 +37,48 @@ export class MetricBulkTagConfigDeleteAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - emails: { - baseName: "emails", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "emails": { + "baseName": "emails", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigDeleteAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteRequest.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteRequest.ts index 0de000b9259f..09d3a444c545 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteRequest.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigDeleteRequest.ts @@ -5,15 +5,20 @@ */ import { MetricBulkTagConfigDelete } from "./MetricBulkTagConfigDelete"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper object for a single bulk tag deletion request. - */ +*/ export class MetricBulkTagConfigDeleteRequest { /** * Request object to bulk delete all tag configurations for metrics matching the given prefix. - */ + */ "data": MetricBulkTagConfigDelete; /** @@ -32,23 +37,49 @@ export class MetricBulkTagConfigDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricBulkTagConfigDelete", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricBulkTagConfigDelete", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigResponse.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigResponse.ts index 2138024e7f2e..af864ce3d4e4 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigResponse.ts @@ -5,16 +5,21 @@ */ import { MetricBulkTagConfigStatus } from "./MetricBulkTagConfigStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Wrapper for a single bulk tag configuration status response. - */ +*/ export class MetricBulkTagConfigResponse { /** * The status of a request to bulk configure metric tags. * It contains the fields from the original request for reference. - */ + */ "data"?: MetricBulkTagConfigStatus; /** @@ -33,22 +38,48 @@ export class MetricBulkTagConfigResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricBulkTagConfigStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricBulkTagConfigStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatus.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatus.ts index f0140aa45c11..b2898042b509 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatus.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatus.ts @@ -6,24 +6,29 @@ import { MetricBulkConfigureTagsType } from "./MetricBulkConfigureTagsType"; import { MetricBulkTagConfigStatusAttributes } from "./MetricBulkTagConfigStatusAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The status of a request to bulk configure metric tags. * It contains the fields from the original request for reference. - */ +*/ export class MetricBulkTagConfigStatus { /** * Optional attributes for the status of a bulk tag configuration request. - */ + */ "attributes"?: MetricBulkTagConfigStatusAttributes; /** * A text prefix to match against metric names. - */ + */ "id": string; /** * The metric bulk configure tags resource. - */ + */ "type": MetricBulkConfigureTagsType; /** @@ -42,32 +47,58 @@ export class MetricBulkTagConfigStatus { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricBulkTagConfigStatusAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricBulkTagConfigStatusAttributes", }, - type: { - baseName: "type", - type: "MetricBulkConfigureTagsType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricBulkConfigureTagsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigStatus.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatusAttributes.ts b/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatusAttributes.ts index db1ce7218909..0d9bc681c6ce 100644 --- a/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatusAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricBulkTagConfigStatusAttributes.ts @@ -3,29 +3,36 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { MetricBulkTagConfigEmailListItem } from "./MetricBulkTagConfigEmailListItem"; +import { MetricBulkTagConfigTagNameListItem } from "./MetricBulkTagConfigTagNameListItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Optional attributes for the status of a bulk tag configuration request. - */ +*/ export class MetricBulkTagConfigStatusAttributes { /** * A list of account emails to notify when the configuration is applied. - */ + */ "emails"?: Array; /** * When set to true, the configuration will exclude the configured tags and include any other submitted tags. * When set to false, the configuration will include the configured tags and exclude any other submitted tags. - */ + */ "excludeTagsMode"?: boolean; /** * The status of the request. - */ + */ "status"?: string; /** * A list of tag names to apply to the configuration. - */ + */ "tags"?: Array; /** @@ -44,34 +51,60 @@ export class MetricBulkTagConfigStatusAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - emails: { - baseName: "emails", - type: "Array", + "emails": { + "baseName": "emails", + "type": "Array", }, - excludeTagsMode: { - baseName: "exclude_tags_mode", - type: "boolean", + "excludeTagsMode": { + "baseName": "exclude_tags_mode", + "type": "boolean", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricBulkTagConfigStatusAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricContentEncoding.ts b/packages/datadog-api-client-v2/models/MetricContentEncoding.ts index 1b564ffaf69e..a97553e8a019 100644 --- a/packages/datadog-api-client-v2/models/MetricContentEncoding.ts +++ b/packages/datadog-api-client-v2/models/MetricContentEncoding.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * HTTP header used to compress the media-type. - */ +*/ -export type MetricContentEncoding = - | typeof DEFLATE - | typeof ZSTD1 - | typeof GZIP - | UnparsedObject; -export const DEFLATE = "deflate"; -export const ZSTD1 = "zstd1"; -export const GZIP = "gzip"; +export type MetricContentEncoding = typeof DEFLATE| typeof ZSTD1| typeof GZIP | UnparsedObject; +export const DEFLATE = 'deflate'; +export const ZSTD1 = 'zstd1'; +export const GZIP = 'gzip'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricCustomAggregation.ts b/packages/datadog-api-client-v2/models/MetricCustomAggregation.ts index 71858c5db04c..5640a7ec1026 100644 --- a/packages/datadog-api-client-v2/models/MetricCustomAggregation.ts +++ b/packages/datadog-api-client-v2/models/MetricCustomAggregation.ts @@ -6,19 +6,24 @@ import { MetricCustomSpaceAggregation } from "./MetricCustomSpaceAggregation"; import { MetricCustomTimeAggregation } from "./MetricCustomTimeAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A time and space aggregation combination for use in query. - */ +*/ export class MetricCustomAggregation { /** * A space aggregation for use in query. - */ + */ "space": MetricCustomSpaceAggregation; /** * A time aggregation for use in query. - */ + */ "time": MetricCustomTimeAggregation; /** @@ -37,28 +42,54 @@ export class MetricCustomAggregation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - space: { - baseName: "space", - type: "MetricCustomSpaceAggregation", - required: true, + "space": { + "baseName": "space", + "type": "MetricCustomSpaceAggregation", + "required": true, }, - time: { - baseName: "time", - type: "MetricCustomTimeAggregation", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "time": { + "baseName": "time", + "type": "MetricCustomTimeAggregation", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricCustomAggregation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricCustomSpaceAggregation.ts b/packages/datadog-api-client-v2/models/MetricCustomSpaceAggregation.ts index 439d23caa779..688c8804e486 100644 --- a/packages/datadog-api-client-v2/models/MetricCustomSpaceAggregation.ts +++ b/packages/datadog-api-client-v2/models/MetricCustomSpaceAggregation.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A space aggregation for use in query. - */ +*/ -export type MetricCustomSpaceAggregation = - | typeof AVG - | typeof MAX - | typeof MIN - | typeof SUM - | UnparsedObject; -export const AVG = "avg"; -export const MAX = "max"; -export const MIN = "min"; -export const SUM = "sum"; +export type MetricCustomSpaceAggregation = typeof AVG| typeof MAX| typeof MIN| typeof SUM | UnparsedObject; +export const AVG = 'avg'; +export const MAX = 'max'; +export const MIN = 'min'; +export const SUM = 'sum'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricCustomTimeAggregation.ts b/packages/datadog-api-client-v2/models/MetricCustomTimeAggregation.ts index 31c8e59ba8fe..814364cbb731 100644 --- a/packages/datadog-api-client-v2/models/MetricCustomTimeAggregation.ts +++ b/packages/datadog-api-client-v2/models/MetricCustomTimeAggregation.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A time aggregation for use in query. - */ +*/ -export type MetricCustomTimeAggregation = - | typeof AVG - | typeof COUNT - | typeof MAX - | typeof MIN - | typeof SUM - | UnparsedObject; -export const AVG = "avg"; -export const COUNT = "count"; -export const MAX = "max"; -export const MIN = "min"; -export const SUM = "sum"; +export type MetricCustomTimeAggregation = typeof AVG| typeof COUNT| typeof MAX| typeof MIN| typeof SUM | UnparsedObject; +export const AVG = 'avg'; +export const COUNT = 'count'; +export const MAX = 'max'; +export const MIN = 'min'; +export const SUM = 'sum'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricDashboardAsset.ts b/packages/datadog-api-client-v2/models/MetricDashboardAsset.ts index ed73a12dbaa3..c62cb75d793e 100644 --- a/packages/datadog-api-client-v2/models/MetricDashboardAsset.ts +++ b/packages/datadog-api-client-v2/models/MetricDashboardAsset.ts @@ -6,23 +6,28 @@ import { MetricDashboardAttributes } from "./MetricDashboardAttributes"; import { MetricDashboardType } from "./MetricDashboardType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A dashboard object with title and popularity. - */ +*/ export class MetricDashboardAsset { /** * Attributes related to the dashboard, including title, popularity, and url. - */ + */ "attributes"?: MetricDashboardAttributes; /** * The related dashboard's ID. - */ + */ "id": string; /** * Dashboard resource type. - */ + */ "type": MetricDashboardType; /** @@ -41,32 +46,58 @@ export class MetricDashboardAsset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricDashboardAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricDashboardAttributes", }, - type: { - baseName: "type", - type: "MetricDashboardType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricDashboardType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricDashboardAsset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricDashboardAttributes.ts b/packages/datadog-api-client-v2/models/MetricDashboardAttributes.ts index 19141492a4a4..db243cb19b47 100644 --- a/packages/datadog-api-client-v2/models/MetricDashboardAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricDashboardAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes related to the dashboard, including title, popularity, and url. - */ +*/ export class MetricDashboardAttributes { /** * Value from 0 to 5 that ranks popularity of the dashboard. - */ + */ "popularity"?: number; /** * Title of the asset. - */ + */ "title"?: string; /** * URL path of the asset. - */ + */ "url"?: string; /** @@ -39,31 +44,57 @@ export class MetricDashboardAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - popularity: { - baseName: "popularity", - type: "number", - format: "double", - }, - title: { - baseName: "title", - type: "string", + "popularity": { + "baseName": "popularity", + "type": "number", + "format": "double", }, - url: { - baseName: "url", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricDashboardAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricDashboardType.ts b/packages/datadog-api-client-v2/models/MetricDashboardType.ts index 161f9bf9b6dc..b5b503d40c64 100644 --- a/packages/datadog-api-client-v2/models/MetricDashboardType.ts +++ b/packages/datadog-api-client-v2/models/MetricDashboardType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Dashboard resource type. - */ +*/ export type MetricDashboardType = typeof DASHBOARDS | UnparsedObject; -export const DASHBOARDS = "dashboards"; +export const DASHBOARDS = 'dashboards'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricDistinctVolume.ts b/packages/datadog-api-client-v2/models/MetricDistinctVolume.ts index 53fb9cdd1b39..f9c6a1c9f4bc 100644 --- a/packages/datadog-api-client-v2/models/MetricDistinctVolume.ts +++ b/packages/datadog-api-client-v2/models/MetricDistinctVolume.ts @@ -6,23 +6,28 @@ import { MetricDistinctVolumeAttributes } from "./MetricDistinctVolumeAttributes"; import { MetricDistinctVolumeType } from "./MetricDistinctVolumeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric's distinct volume. - */ +*/ export class MetricDistinctVolume { /** * Object containing the definition of a metric's distinct volume. - */ + */ "attributes"?: MetricDistinctVolumeAttributes; /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric distinct volume type. - */ + */ "type"?: MetricDistinctVolumeType; /** @@ -41,30 +46,56 @@ export class MetricDistinctVolume { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricDistinctVolumeAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MetricDistinctVolumeAttributes", }, - type: { - baseName: "type", - type: "MetricDistinctVolumeType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricDistinctVolumeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricDistinctVolume.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricDistinctVolumeAttributes.ts b/packages/datadog-api-client-v2/models/MetricDistinctVolumeAttributes.ts index a1790e7f048c..e6991abe3592 100644 --- a/packages/datadog-api-client-v2/models/MetricDistinctVolumeAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricDistinctVolumeAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric's distinct volume. - */ +*/ export class MetricDistinctVolumeAttributes { /** * Distinct volume for the given metric. - */ + */ "distinctVolume"?: number; /** @@ -31,23 +36,49 @@ export class MetricDistinctVolumeAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - distinctVolume: { - baseName: "distinct_volume", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "distinctVolume": { + "baseName": "distinct_volume", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricDistinctVolumeAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricDistinctVolumeType.ts b/packages/datadog-api-client-v2/models/MetricDistinctVolumeType.ts index 8ee1f5618b22..7533e189cc56 100644 --- a/packages/datadog-api-client-v2/models/MetricDistinctVolumeType.ts +++ b/packages/datadog-api-client-v2/models/MetricDistinctVolumeType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric distinct volume type. - */ +*/ -export type MetricDistinctVolumeType = - | typeof DISTINCT_METRIC_VOLUMES - | UnparsedObject; -export const DISTINCT_METRIC_VOLUMES = "distinct_metric_volumes"; +export type MetricDistinctVolumeType = typeof DISTINCT_METRIC_VOLUMES | UnparsedObject; +export const DISTINCT_METRIC_VOLUMES = 'distinct_metric_volumes'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricEstimate.ts b/packages/datadog-api-client-v2/models/MetricEstimate.ts index 0b8aacf439eb..e9d3ea4f9cb2 100644 --- a/packages/datadog-api-client-v2/models/MetricEstimate.ts +++ b/packages/datadog-api-client-v2/models/MetricEstimate.ts @@ -6,23 +6,28 @@ import { MetricEstimateAttributes } from "./MetricEstimateAttributes"; import { MetricEstimateResourceType } from "./MetricEstimateResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a metric cardinality estimate. - */ +*/ export class MetricEstimate { /** * Object containing the definition of a metric estimate attribute. - */ + */ "attributes"?: MetricEstimateAttributes; /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric estimate resource type. - */ + */ "type"?: MetricEstimateResourceType; /** @@ -41,30 +46,56 @@ export class MetricEstimate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricEstimateAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MetricEstimateAttributes", }, - type: { - baseName: "type", - type: "MetricEstimateResourceType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricEstimateResourceType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricEstimate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricEstimateAttributes.ts b/packages/datadog-api-client-v2/models/MetricEstimateAttributes.ts index a7028ed2c9a1..b43708cd53fa 100644 --- a/packages/datadog-api-client-v2/models/MetricEstimateAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricEstimateAttributes.ts @@ -5,23 +5,28 @@ */ import { MetricEstimateType } from "./MetricEstimateType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric estimate attribute. - */ +*/ export class MetricEstimateAttributes { /** * Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric. - */ + */ "estimateType"?: MetricEstimateType; /** * Timestamp when the cardinality estimate was requested. - */ + */ "estimatedAt"?: Date; /** * Estimated cardinality of the metric based on the queried configuration. - */ + */ "estimatedOutputSeries"?: number; /** @@ -40,32 +45,58 @@ export class MetricEstimateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - estimateType: { - baseName: "estimate_type", - type: "MetricEstimateType", - }, - estimatedAt: { - baseName: "estimated_at", - type: "Date", - format: "date-time", + "estimateType": { + "baseName": "estimate_type", + "type": "MetricEstimateType", }, - estimatedOutputSeries: { - baseName: "estimated_output_series", - type: "number", - format: "int64", + "estimatedAt": { + "baseName": "estimated_at", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "estimatedOutputSeries": { + "baseName": "estimated_output_series", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricEstimateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricEstimateResourceType.ts b/packages/datadog-api-client-v2/models/MetricEstimateResourceType.ts index f64d90ea5172..b3382eab90ac 100644 --- a/packages/datadog-api-client-v2/models/MetricEstimateResourceType.ts +++ b/packages/datadog-api-client-v2/models/MetricEstimateResourceType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric estimate resource type. - */ +*/ -export type MetricEstimateResourceType = - | typeof METRIC_CARDINALITY_ESTIMATE - | UnparsedObject; -export const METRIC_CARDINALITY_ESTIMATE = "metric_cardinality_estimate"; +export type MetricEstimateResourceType = typeof METRIC_CARDINALITY_ESTIMATE | UnparsedObject; +export const METRIC_CARDINALITY_ESTIMATE = 'metric_cardinality_estimate'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricEstimateResponse.ts b/packages/datadog-api-client-v2/models/MetricEstimateResponse.ts index f1b4134be16c..93439e72af68 100644 --- a/packages/datadog-api-client-v2/models/MetricEstimateResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricEstimateResponse.ts @@ -5,15 +5,20 @@ */ import { MetricEstimate } from "./MetricEstimate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes metric cardinality estimates. - */ +*/ export class MetricEstimateResponse { /** * Object for a metric cardinality estimate. - */ + */ "data"?: MetricEstimate; /** @@ -32,22 +37,48 @@ export class MetricEstimateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricEstimate", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricEstimate", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricEstimateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricEstimateType.ts b/packages/datadog-api-client-v2/models/MetricEstimateType.ts index 684113a03ffb..0d192f38cd9e 100644 --- a/packages/datadog-api-client-v2/models/MetricEstimateType.ts +++ b/packages/datadog-api-client-v2/models/MetricEstimateType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric. - */ +*/ -export type MetricEstimateType = - | typeof COUNT_OR_GAUGE - | typeof DISTRIBUTION - | typeof PERCENTILE - | UnparsedObject; -export const COUNT_OR_GAUGE = "count_or_gauge"; -export const DISTRIBUTION = "distribution"; -export const PERCENTILE = "percentile"; +export type MetricEstimateType = typeof COUNT_OR_GAUGE| typeof DISTRIBUTION| typeof PERCENTILE | UnparsedObject; +export const COUNT_OR_GAUGE = 'count_or_gauge'; +export const DISTRIBUTION = 'distribution'; +export const PERCENTILE = 'percentile'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolume.ts b/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolume.ts index 05093a8cbb47..d40f1abb83d6 100644 --- a/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolume.ts +++ b/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolume.ts @@ -6,23 +6,28 @@ import { MetricIngestedIndexedVolumeAttributes } from "./MetricIngestedIndexedVolumeAttributes"; import { MetricIngestedIndexedVolumeType } from "./MetricIngestedIndexedVolumeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric's ingested and indexed volume. - */ +*/ export class MetricIngestedIndexedVolume { /** * Object containing the definition of a metric's ingested and indexed volume. - */ + */ "attributes"?: MetricIngestedIndexedVolumeAttributes; /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric ingested and indexed volume type. - */ + */ "type"?: MetricIngestedIndexedVolumeType; /** @@ -41,30 +46,56 @@ export class MetricIngestedIndexedVolume { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricIngestedIndexedVolumeAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MetricIngestedIndexedVolumeAttributes", }, - type: { - baseName: "type", - type: "MetricIngestedIndexedVolumeType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricIngestedIndexedVolumeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricIngestedIndexedVolume.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeAttributes.ts b/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeAttributes.ts index baf2ebbbf02c..e695a06191ec 100644 --- a/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric's ingested and indexed volume. - */ +*/ export class MetricIngestedIndexedVolumeAttributes { /** * Indexed volume for the given metric. - */ + */ "indexedVolume"?: number; /** * Ingested volume for the given metric. - */ + */ "ingestedVolume"?: number; /** @@ -35,28 +40,54 @@ export class MetricIngestedIndexedVolumeAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - indexedVolume: { - baseName: "indexed_volume", - type: "number", - format: "int64", + "indexedVolume": { + "baseName": "indexed_volume", + "type": "number", + "format": "int64", }, - ingestedVolume: { - baseName: "ingested_volume", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ingestedVolume": { + "baseName": "ingested_volume", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricIngestedIndexedVolumeAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeType.ts b/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeType.ts index 5857c6ff5725..be41b3288698 100644 --- a/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeType.ts +++ b/packages/datadog-api-client-v2/models/MetricIngestedIndexedVolumeType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric ingested and indexed volume type. - */ +*/ -export type MetricIngestedIndexedVolumeType = - | typeof METRIC_VOLUMES - | UnparsedObject; -export const METRIC_VOLUMES = "metric_volumes"; +export type MetricIngestedIndexedVolumeType = typeof METRIC_VOLUMES | UnparsedObject; +export const METRIC_VOLUMES = 'metric_volumes'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricIntakeType.ts b/packages/datadog-api-client-v2/models/MetricIntakeType.ts index 0a7ac81c6915..703385cd030a 100644 --- a/packages/datadog-api-client-v2/models/MetricIntakeType.ts +++ b/packages/datadog-api-client-v2/models/MetricIntakeType.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of metric. The available types are `0` (unspecified), `1` (count), `2` (rate), and `3` (gauge). - */ +*/ -export type MetricIntakeType = - | typeof UNSPECIFIED - | typeof COUNT - | typeof RATE - | typeof GAUGE - | UnparsedObject; +export type MetricIntakeType = typeof UNSPECIFIED| typeof COUNT| typeof RATE| typeof GAUGE | UnparsedObject; export const UNSPECIFIED = 0; export const COUNT = 1; export const RATE = 2; -export const GAUGE = 3; +export const GAUGE = 3; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricMetaPage.ts b/packages/datadog-api-client-v2/models/MetricMetaPage.ts index 795327ee10b7..fe41e691d8d4 100644 --- a/packages/datadog-api-client-v2/models/MetricMetaPage.ts +++ b/packages/datadog-api-client-v2/models/MetricMetaPage.ts @@ -5,27 +5,32 @@ */ import { MetricMetaPageType } from "./MetricMetaPageType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. Only present if pagination query parameters were provided. - */ +*/ export class MetricMetaPage { /** * The cursor used to get the current results, if any. - */ + */ "cursor"?: string; /** * Number of results returned - */ + */ "limit"?: number; /** * The cursor used to get the next results, if any. - */ + */ "nextCursor"?: string; /** * Type of metric pagination. - */ + */ "type"?: MetricMetaPageType; /** @@ -44,35 +49,61 @@ export class MetricMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, - nextCursor: { - baseName: "next_cursor", - type: "string", + "nextCursor": { + "baseName": "next_cursor", + "type": "string", }, - type: { - baseName: "type", - type: "MetricMetaPageType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricMetaPageType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricMetaPageType.ts b/packages/datadog-api-client-v2/models/MetricMetaPageType.ts index 1b25a7b00bcc..5a400762cf2a 100644 --- a/packages/datadog-api-client-v2/models/MetricMetaPageType.ts +++ b/packages/datadog-api-client-v2/models/MetricMetaPageType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of metric pagination. - */ +*/ export type MetricMetaPageType = typeof CURSOR_LIMIT | UnparsedObject; -export const CURSOR_LIMIT = "cursor_limit"; +export const CURSOR_LIMIT = 'cursor_limit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricMetadata.ts b/packages/datadog-api-client-v2/models/MetricMetadata.ts index a623f050c062..c3c91175aee0 100644 --- a/packages/datadog-api-client-v2/models/MetricMetadata.ts +++ b/packages/datadog-api-client-v2/models/MetricMetadata.ts @@ -5,15 +5,20 @@ */ import { MetricOrigin } from "./MetricOrigin"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata for the metric. - */ +*/ export class MetricMetadata { /** * Metric origin information. - */ + */ "origin"?: MetricOrigin; /** @@ -32,22 +37,48 @@ export class MetricMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - origin: { - baseName: "origin", - type: "MetricOrigin", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "origin": { + "baseName": "origin", + "type": "MetricOrigin", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricMonitorAsset.ts b/packages/datadog-api-client-v2/models/MetricMonitorAsset.ts index 3934d0296e82..440e1464c31e 100644 --- a/packages/datadog-api-client-v2/models/MetricMonitorAsset.ts +++ b/packages/datadog-api-client-v2/models/MetricMonitorAsset.ts @@ -6,23 +6,28 @@ import { MetricAssetAttributes } from "./MetricAssetAttributes"; import { MetricMonitorType } from "./MetricMonitorType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A monitor object with title. - */ +*/ export class MetricMonitorAsset { /** * Assets related to the object, including title and url. - */ + */ "attributes"?: MetricAssetAttributes; /** * The related monitor's ID. - */ + */ "id": string; /** * Monitor resource type. - */ + */ "type": MetricMonitorType; /** @@ -41,32 +46,58 @@ export class MetricMonitorAsset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricAssetAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricAssetAttributes", }, - type: { - baseName: "type", - type: "MetricMonitorType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricMonitorType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricMonitorAsset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricMonitorType.ts b/packages/datadog-api-client-v2/models/MetricMonitorType.ts index b390f02391e8..04e2ec7bfa45 100644 --- a/packages/datadog-api-client-v2/models/MetricMonitorType.ts +++ b/packages/datadog-api-client-v2/models/MetricMonitorType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Monitor resource type. - */ +*/ export type MetricMonitorType = typeof MONITORS | UnparsedObject; -export const MONITORS = "monitors"; +export const MONITORS = 'monitors'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricNotebookAsset.ts b/packages/datadog-api-client-v2/models/MetricNotebookAsset.ts index 4adc6dc874db..136c4501d83c 100644 --- a/packages/datadog-api-client-v2/models/MetricNotebookAsset.ts +++ b/packages/datadog-api-client-v2/models/MetricNotebookAsset.ts @@ -6,23 +6,28 @@ import { MetricAssetAttributes } from "./MetricAssetAttributes"; import { MetricNotebookType } from "./MetricNotebookType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A notebook object with title. - */ +*/ export class MetricNotebookAsset { /** * Assets related to the object, including title and url. - */ + */ "attributes"?: MetricAssetAttributes; /** * The related notebook's ID. - */ + */ "id": string; /** * Notebook resource type. - */ + */ "type": MetricNotebookType; /** @@ -41,32 +46,58 @@ export class MetricNotebookAsset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricAssetAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricAssetAttributes", }, - type: { - baseName: "type", - type: "MetricNotebookType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricNotebookType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricNotebookAsset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricNotebookType.ts b/packages/datadog-api-client-v2/models/MetricNotebookType.ts index 4c27603890aa..52036ee85013 100644 --- a/packages/datadog-api-client-v2/models/MetricNotebookType.ts +++ b/packages/datadog-api-client-v2/models/MetricNotebookType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Notebook resource type. - */ +*/ export type MetricNotebookType = typeof NOTEBOOKS | UnparsedObject; -export const NOTEBOOKS = "notebooks"; +export const NOTEBOOKS = 'notebooks'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricOrigin.ts b/packages/datadog-api-client-v2/models/MetricOrigin.ts index f5b13c9d44bc..9118d314f5c9 100644 --- a/packages/datadog-api-client-v2/models/MetricOrigin.ts +++ b/packages/datadog-api-client-v2/models/MetricOrigin.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metric origin information. - */ +*/ export class MetricOrigin { /** * The origin metric type code - */ + */ "metricType"?: number; /** * The origin product code - */ + */ "product"?: number; /** * The origin service code - */ + */ "service"?: number; /** @@ -39,33 +44,59 @@ export class MetricOrigin { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - metricType: { - baseName: "metric_type", - type: "number", - format: "int32", - }, - product: { - baseName: "product", - type: "number", - format: "int32", + "metricType": { + "baseName": "metric_type", + "type": "number", + "format": "int32", }, - service: { - baseName: "service", - type: "number", - format: "int32", + "product": { + "baseName": "product", + "type": "number", + "format": "int32", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricOrigin.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricPaginationMeta.ts b/packages/datadog-api-client-v2/models/MetricPaginationMeta.ts index ec6502d82a83..0d1906c43bfb 100644 --- a/packages/datadog-api-client-v2/models/MetricPaginationMeta.ts +++ b/packages/datadog-api-client-v2/models/MetricPaginationMeta.ts @@ -5,15 +5,20 @@ */ import { MetricMetaPage } from "./MetricMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response metadata object. - */ +*/ export class MetricPaginationMeta { /** * Paging attributes. Only present if pagination query parameters were provided. - */ + */ "pagination"?: MetricMetaPage; /** @@ -32,22 +37,48 @@ export class MetricPaginationMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "MetricMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "MetricMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricPaginationMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricPayload.ts b/packages/datadog-api-client-v2/models/MetricPayload.ts index 27018e560cf7..8ff718b96e0c 100644 --- a/packages/datadog-api-client-v2/models/MetricPayload.ts +++ b/packages/datadog-api-client-v2/models/MetricPayload.ts @@ -5,15 +5,20 @@ */ import { MetricSeries } from "./MetricSeries"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metrics' payload. - */ +*/ export class MetricPayload { /** * A list of timeseries to submit to Datadog. - */ + */ "series": Array; /** @@ -32,23 +37,49 @@ export class MetricPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - series: { - baseName: "series", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "series": { + "baseName": "series", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricPoint.ts b/packages/datadog-api-client-v2/models/MetricPoint.ts index dfe0bcdd91c7..40da091a118f 100644 --- a/packages/datadog-api-client-v2/models/MetricPoint.ts +++ b/packages/datadog-api-client-v2/models/MetricPoint.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A point object is of the form `{POSIX_timestamp, numeric_value}`. - */ +*/ export class MetricPoint { /** * The timestamp should be in seconds and current. * Current is defined as not more than 10 minutes in the future or more than 1 hour in the past. - */ + */ "timestamp"?: number; /** * The numeric value format should be a 64bit float gauge-type value. - */ + */ "value"?: number; /** @@ -36,28 +41,54 @@ export class MetricPoint { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timestamp: { - baseName: "timestamp", - type: "number", - format: "int64", + "timestamp": { + "baseName": "timestamp", + "type": "number", + "format": "int64", }, - value: { - baseName: "value", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricPoint.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricResource.ts b/packages/datadog-api-client-v2/models/MetricResource.ts index 329b6b5d4b37..db1cdd05d062 100644 --- a/packages/datadog-api-client-v2/models/MetricResource.ts +++ b/packages/datadog-api-client-v2/models/MetricResource.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metric resource. - */ +*/ export class MetricResource { /** * The name of the resource. - */ + */ "name"?: string; /** * The type of the resource. - */ + */ "type"?: string; /** @@ -35,26 +40,52 @@ export class MetricResource { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricResource.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricSLOAsset.ts b/packages/datadog-api-client-v2/models/MetricSLOAsset.ts index b80d0822ba55..a0e9c626d43e 100644 --- a/packages/datadog-api-client-v2/models/MetricSLOAsset.ts +++ b/packages/datadog-api-client-v2/models/MetricSLOAsset.ts @@ -6,23 +6,28 @@ import { MetricAssetAttributes } from "./MetricAssetAttributes"; import { MetricSLOType } from "./MetricSLOType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A SLO object with title. - */ +*/ export class MetricSLOAsset { /** * Assets related to the object, including title and url. - */ + */ "attributes"?: MetricAssetAttributes; /** * The SLO ID. - */ + */ "id": string; /** * SLO resource type. - */ + */ "type": MetricSLOType; /** @@ -41,32 +46,58 @@ export class MetricSLOAsset { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricAssetAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricAssetAttributes", }, - type: { - baseName: "type", - type: "MetricSLOType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricSLOType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSLOAsset.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricSLOType.ts b/packages/datadog-api-client-v2/models/MetricSLOType.ts index bb3868686a7e..7019294d4775 100644 --- a/packages/datadog-api-client-v2/models/MetricSLOType.ts +++ b/packages/datadog-api-client-v2/models/MetricSLOType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * SLO resource type. - */ +*/ export type MetricSLOType = typeof SLOS | UnparsedObject; -export const SLOS = "slos"; +export const SLOS = 'slos'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricSeries.ts b/packages/datadog-api-client-v2/models/MetricSeries.ts index e2f4100fb66a..6abd5b92bb75 100644 --- a/packages/datadog-api-client-v2/models/MetricSeries.ts +++ b/packages/datadog-api-client-v2/models/MetricSeries.ts @@ -8,48 +8,53 @@ import { MetricMetadata } from "./MetricMetadata"; import { MetricPoint } from "./MetricPoint"; import { MetricResource } from "./MetricResource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A metric to submit to Datadog. * See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). - */ +*/ export class MetricSeries { /** * If the type of the metric is rate or count, define the corresponding interval in seconds. - */ + */ "interval"?: number; /** * Metadata for the metric. - */ + */ "metadata"?: MetricMetadata; /** * The name of the timeseries. - */ + */ "metric": string; /** * Points relating to a metric. All points must be objects with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past. - */ + */ "points": Array; /** * A list of resources to associate with this metric. - */ + */ "resources"?: Array; /** * The source type name. - */ + */ "sourceTypeName"?: string; /** * A list of tags associated with the metric. - */ + */ "tags"?: Array; /** * The type of metric. The available types are `0` (unspecified), `1` (count), `2` (rate), and `3` (gauge). - */ + */ "type"?: MetricIntakeType; /** * The unit of point value. - */ + */ "unit"?: string; /** @@ -68,58 +73,84 @@ export class MetricSeries { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - interval: { - baseName: "interval", - type: "number", - format: "int64", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - metadata: { - baseName: "metadata", - type: "MetricMetadata", + "metadata": { + "baseName": "metadata", + "type": "MetricMetadata", }, - metric: { - baseName: "metric", - type: "string", - required: true, + "metric": { + "baseName": "metric", + "type": "string", + "required": true, }, - points: { - baseName: "points", - type: "Array", - required: true, + "points": { + "baseName": "points", + "type": "Array", + "required": true, }, - resources: { - baseName: "resources", - type: "Array", + "resources": { + "baseName": "resources", + "type": "Array", }, - sourceTypeName: { - baseName: "source_type_name", - type: "string", + "sourceTypeName": { + "baseName": "source_type_name", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "MetricIntakeType", - format: "int32", + "type": { + "baseName": "type", + "type": "MetricIntakeType", + "format": "int32", }, - unit: { - baseName: "unit", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSeries.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.ts b/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.ts index 322d0c3036f6..3f5c3340d313 100644 --- a/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.ts +++ b/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.ts @@ -6,23 +6,28 @@ import { MetricActiveConfigurationType } from "./MetricActiveConfigurationType"; import { MetricSuggestedTagsAttributes } from "./MetricSuggestedTagsAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric's actively queried tags and aggregations. - */ +*/ export class MetricSuggestedTagsAndAggregations { /** * Object containing the definition of a metric's actively queried tags and aggregations. - */ + */ "attributes"?: MetricSuggestedTagsAttributes; /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric actively queried configuration resource type. - */ + */ "type"?: MetricActiveConfigurationType; /** @@ -41,30 +46,56 @@ export class MetricSuggestedTagsAndAggregations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricSuggestedTagsAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MetricSuggestedTagsAttributes", }, - type: { - baseName: "type", - type: "MetricActiveConfigurationType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricActiveConfigurationType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSuggestedTagsAndAggregations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.ts b/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.ts index d022b3f047f8..49804ddbe575 100644 --- a/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.ts @@ -5,15 +5,20 @@ */ import { MetricSuggestedTagsAndAggregations } from "./MetricSuggestedTagsAndAggregations"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes a single metric's actively queried tags and aggregations. - */ +*/ export class MetricSuggestedTagsAndAggregationsResponse { /** * Object for a single metric's actively queried tags and aggregations. - */ + */ "data"?: MetricSuggestedTagsAndAggregations; /** @@ -32,22 +37,48 @@ export class MetricSuggestedTagsAndAggregationsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricSuggestedTagsAndAggregations", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricSuggestedTagsAndAggregations", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSuggestedTagsAndAggregationsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.ts b/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.ts index 3ae56b4bc1ae..c7983ce94f9d 100644 --- a/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.ts @@ -5,19 +5,24 @@ */ import { MetricCustomAggregation } from "./MetricCustomAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric's actively queried tags and aggregations. - */ +*/ export class MetricSuggestedTagsAttributes { /** * List of aggregation combinations that have been actively queried. - */ + */ "activeAggregations"?: Array; /** * List of tag keys that have been actively queried. - */ + */ "activeTags"?: Array; /** @@ -36,26 +41,52 @@ export class MetricSuggestedTagsAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - activeAggregations: { - baseName: "active_aggregations", - type: "Array", + "activeAggregations": { + "baseName": "active_aggregations", + "type": "Array", }, - activeTags: { - baseName: "active_tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "activeTags": { + "baseName": "active_tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricSuggestedTagsAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfiguration.ts b/packages/datadog-api-client-v2/models/MetricTagConfiguration.ts index 75b5aaea1fe0..cbb5d570a76b 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfiguration.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfiguration.ts @@ -6,23 +6,28 @@ import { MetricTagConfigurationAttributes } from "./MetricTagConfigurationAttributes"; import { MetricTagConfigurationType } from "./MetricTagConfigurationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric tag configuration. - */ +*/ export class MetricTagConfiguration { /** * Object containing the definition of a metric tag configuration attributes. - */ + */ "attributes"?: MetricTagConfigurationAttributes; /** * The metric name for this resource. - */ + */ "id"?: string; /** * The metric tag configuration resource type. - */ + */ "type"?: MetricTagConfigurationType; /** @@ -41,30 +46,56 @@ export class MetricTagConfiguration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricTagConfigurationAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MetricTagConfigurationAttributes", }, - type: { - baseName: "type", - type: "MetricTagConfigurationType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricTagConfigurationType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfiguration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts index bf93102d84fb..e2695ae3917d 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts @@ -6,18 +6,23 @@ import { MetricCustomAggregation } from "./MetricCustomAggregation"; import { MetricTagConfigurationMetricTypes } from "./MetricTagConfigurationMetricTypes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric tag configuration attributes. - */ +*/ export class MetricTagConfigurationAttributes { /** * A list of queryable aggregation combinations for a count, rate, or gauge metric. * By default, count and rate metrics require the (time: sum, space: sum) aggregation and * Gauge metrics require the (time: avg, space: avg) aggregation. * Additional time & space combinations are also available: - * + * * - time: avg, space: avg * - time: avg, space: max * - time: avg, space: min @@ -27,36 +32,36 @@ export class MetricTagConfigurationAttributes { * - time: min, space: min * - time: sum, space: avg * - time: sum, space: sum - * + * * Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`. - */ + */ "aggregations"?: Array; /** * Timestamp when the tag configuration was created. - */ + */ "createdAt"?: Date; /** * When set to true, the configuration will exclude the configured tags and include any other submitted tags. * When set to false, the configuration will include the configured tags and exclude any other submitted tags. * Defaults to false. Requires `tags` property. - */ + */ "excludeTagsMode"?: boolean; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `metric_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The metric's type. - */ + */ "metricType"?: MetricTagConfigurationMetricTypes; /** * Timestamp when the tag configuration was last modified. - */ + */ "modifiedAt"?: Date; /** * List of tag keys on which to group. - */ + */ "tags"?: Array; /** @@ -75,48 +80,74 @@ export class MetricTagConfigurationAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregations: { - baseName: "aggregations", - type: "Array", - }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "aggregations": { + "baseName": "aggregations", + "type": "Array", }, - excludeTagsMode: { - baseName: "exclude_tags_mode", - type: "boolean", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "excludeTagsMode": { + "baseName": "exclude_tags_mode", + "type": "boolean", }, - metricType: { - baseName: "metric_type", - type: "MetricTagConfigurationMetricTypes", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "metricType": { + "baseName": "metric_type", + "type": "MetricTagConfigurationMetricTypes", }, - tags: { - baseName: "tags", - type: "Array", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateAttributes.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateAttributes.ts index f206d34183b1..7e59ea4911cd 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateAttributes.ts @@ -6,18 +6,23 @@ import { MetricCustomAggregation } from "./MetricCustomAggregation"; import { MetricTagConfigurationMetricTypes } from "./MetricTagConfigurationMetricTypes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric tag configuration to be created. - */ +*/ export class MetricTagConfigurationCreateAttributes { /** * A list of queryable aggregation combinations for a count, rate, or gauge metric. * By default, count and rate metrics require the (time: sum, space: sum) aggregation and * Gauge metrics require the (time: avg, space: avg) aggregation. * Additional time & space combinations are also available: - * + * * - time: avg, space: avg * - time: avg, space: max * - time: avg, space: min @@ -27,28 +32,28 @@ export class MetricTagConfigurationCreateAttributes { * - time: min, space: min * - time: sum, space: avg * - time: sum, space: sum - * + * * Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`. - */ + */ "aggregations"?: Array; /** * When set to true, the configuration will exclude the configured tags and include any other submitted tags. * When set to false, the configuration will include the configured tags and exclude any other submitted tags. * Defaults to false. Requires `tags` property. - */ + */ "excludeTagsMode"?: boolean; /** * Toggle to include/exclude percentiles for a distribution metric. * Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The metric's type. - */ + */ "metricType": MetricTagConfigurationMetricTypes; /** * A list of tag keys that will be queryable for your metric. - */ + */ "tags": Array; /** @@ -67,40 +72,66 @@ export class MetricTagConfigurationCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregations: { - baseName: "aggregations", - type: "Array", + "aggregations": { + "baseName": "aggregations", + "type": "Array", }, - excludeTagsMode: { - baseName: "exclude_tags_mode", - type: "boolean", + "excludeTagsMode": { + "baseName": "exclude_tags_mode", + "type": "boolean", }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - metricType: { - baseName: "metric_type", - type: "MetricTagConfigurationMetricTypes", - required: true, + "metricType": { + "baseName": "metric_type", + "type": "MetricTagConfigurationMetricTypes", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateData.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateData.ts index 5f82f1176df2..206e10551a56 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateData.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateData.ts @@ -6,23 +6,28 @@ import { MetricTagConfigurationCreateAttributes } from "./MetricTagConfigurationCreateAttributes"; import { MetricTagConfigurationType } from "./MetricTagConfigurationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single metric to be configure tags on. - */ +*/ export class MetricTagConfigurationCreateData { /** * Object containing the definition of a metric tag configuration to be created. - */ + */ "attributes"?: MetricTagConfigurationCreateAttributes; /** * The metric name for this resource. - */ + */ "id": string; /** * The metric tag configuration resource type. - */ + */ "type": MetricTagConfigurationType; /** @@ -41,32 +46,58 @@ export class MetricTagConfigurationCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricTagConfigurationCreateAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricTagConfigurationCreateAttributes", }, - type: { - baseName: "type", - type: "MetricTagConfigurationType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricTagConfigurationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateRequest.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateRequest.ts index 8ec0008ba5a1..6fa1e7b85c1a 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationCreateRequest.ts @@ -5,15 +5,20 @@ */ import { MetricTagConfigurationCreateData } from "./MetricTagConfigurationCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the metric that you would like to configure tags for. - */ +*/ export class MetricTagConfigurationCreateRequest { /** * Object for a single metric to be configure tags on. - */ + */ "data": MetricTagConfigurationCreateData; /** @@ -32,23 +37,49 @@ export class MetricTagConfigurationCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricTagConfigurationCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricTagConfigurationCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypeCategory.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypeCategory.ts index f100d5afef91..9ba99638bfb9 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypeCategory.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypeCategory.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric's type category. - */ +*/ -export type MetricTagConfigurationMetricTypeCategory = - | typeof NON_DISTRIBUTION - | typeof DISTRIBUTION - | UnparsedObject; -export const NON_DISTRIBUTION = "non_distribution"; -export const DISTRIBUTION = "distribution"; +export type MetricTagConfigurationMetricTypeCategory = typeof NON_DISTRIBUTION| typeof DISTRIBUTION | UnparsedObject; +export const NON_DISTRIBUTION = 'non_distribution'; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypes.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypes.ts index b93707e7cb89..7eae0276e49f 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypes.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypes.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric's type. - */ +*/ -export type MetricTagConfigurationMetricTypes = - | typeof GAUGE - | typeof COUNT - | typeof RATE - | typeof DISTRIBUTION - | UnparsedObject; -export const GAUGE = "gauge"; -export const COUNT = "count"; -export const RATE = "rate"; -export const DISTRIBUTION = "distribution"; +export type MetricTagConfigurationMetricTypes = typeof GAUGE| typeof COUNT| typeof RATE| typeof DISTRIBUTION | UnparsedObject; +export const GAUGE = 'gauge'; +export const COUNT = 'count'; +export const RATE = 'rate'; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationResponse.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationResponse.ts index c4b074494d05..65abf462ee2d 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationResponse.ts @@ -5,15 +5,20 @@ */ import { MetricTagConfiguration } from "./MetricTagConfiguration"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object which includes a single metric's tag configuration. - */ +*/ export class MetricTagConfigurationResponse { /** * Object for a single metric tag configuration. - */ + */ "data"?: MetricTagConfiguration; /** @@ -32,22 +37,48 @@ export class MetricTagConfigurationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricTagConfiguration", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricTagConfiguration", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationType.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationType.ts index cc7464aa9c17..6b3755b53e0c 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationType.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric tag configuration resource type. - */ +*/ export type MetricTagConfigurationType = typeof MANAGE_TAGS | UnparsedObject; -export const MANAGE_TAGS = "manage_tags"; +export const MANAGE_TAGS = 'manage_tags'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateAttributes.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateAttributes.ts index 59b441f94b22..99389e31a41e 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateAttributes.ts @@ -5,18 +5,23 @@ */ import { MetricCustomAggregation } from "./MetricCustomAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the definition of a metric tag configuration to be updated. - */ +*/ export class MetricTagConfigurationUpdateAttributes { /** * A list of queryable aggregation combinations for a count, rate, or gauge metric. * By default, count and rate metrics require the (time: sum, space: sum) aggregation and * Gauge metrics require the (time: avg, space: avg) aggregation. * Additional time & space combinations are also available: - * + * * - time: avg, space: avg * - time: avg, space: max * - time: avg, space: min @@ -26,24 +31,24 @@ export class MetricTagConfigurationUpdateAttributes { * - time: min, space: min * - time: sum, space: avg * - time: sum, space: sum - * + * * Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`. - */ + */ "aggregations"?: Array; /** * When set to true, the configuration will exclude the configured tags and include any other submitted tags. * When set to false, the configuration will include the configured tags and exclude any other submitted tags. * Defaults to false. Requires `tags` property. - */ + */ "excludeTagsMode"?: boolean; /** * Toggle to include/exclude percentiles for a distribution metric. * Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. - */ + */ "includePercentiles"?: boolean; /** * A list of tag keys that will be queryable for your metric. - */ + */ "tags"?: Array; /** @@ -62,34 +67,60 @@ export class MetricTagConfigurationUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregations: { - baseName: "aggregations", - type: "Array", + "aggregations": { + "baseName": "aggregations", + "type": "Array", }, - excludeTagsMode: { - baseName: "exclude_tags_mode", - type: "boolean", + "excludeTagsMode": { + "baseName": "exclude_tags_mode", + "type": "boolean", }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateData.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateData.ts index 112b6820f7ce..fa72239098b6 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateData.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateData.ts @@ -6,23 +6,28 @@ import { MetricTagConfigurationType } from "./MetricTagConfigurationType"; import { MetricTagConfigurationUpdateAttributes } from "./MetricTagConfigurationUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single tag configuration to be edited. - */ +*/ export class MetricTagConfigurationUpdateData { /** * Object containing the definition of a metric tag configuration to be updated. - */ + */ "attributes"?: MetricTagConfigurationUpdateAttributes; /** * The metric name for this resource. - */ + */ "id": string; /** * The metric tag configuration resource type. - */ + */ "type": MetricTagConfigurationType; /** @@ -41,32 +46,58 @@ export class MetricTagConfigurationUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MetricTagConfigurationUpdateAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MetricTagConfigurationUpdateAttributes", }, - type: { - baseName: "type", - type: "MetricTagConfigurationType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MetricTagConfigurationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateRequest.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateRequest.ts index afc8bf27c2a3..09b9243f2d3d 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { MetricTagConfigurationUpdateData } from "./MetricTagConfigurationUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the metric that you would like to edit the tag configuration on. - */ +*/ export class MetricTagConfigurationUpdateRequest { /** * Object for a single tag configuration to be edited. - */ + */ "data": MetricTagConfigurationUpdateData; /** @@ -32,23 +37,49 @@ export class MetricTagConfigurationUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricTagConfigurationUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricTagConfigurationUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricTagConfigurationUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricType.ts b/packages/datadog-api-client-v2/models/MetricType.ts index acf7ce361f91..de3f959db9ef 100644 --- a/packages/datadog-api-client-v2/models/MetricType.ts +++ b/packages/datadog-api-client-v2/models/MetricType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The metric resource type. - */ +*/ export type MetricType = typeof METRICS | UnparsedObject; -export const METRICS = "metrics"; +export const METRICS = 'metrics'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricVolumes.ts b/packages/datadog-api-client-v2/models/MetricVolumes.ts index 0422f29cda97..716f84714f0b 100644 --- a/packages/datadog-api-client-v2/models/MetricVolumes.ts +++ b/packages/datadog-api-client-v2/models/MetricVolumes.ts @@ -6,13 +6,15 @@ import { MetricDistinctVolume } from "./MetricDistinctVolume"; import { MetricIngestedIndexedVolume } from "./MetricIngestedIndexedVolume"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Possible response objects for a metric's volume. - */ +*/ -export type MetricVolumes = - | MetricDistinctVolume - | MetricIngestedIndexedVolume - | UnparsedObject; +export type MetricVolumes = MetricDistinctVolume | MetricIngestedIndexedVolume | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricVolumesResponse.ts b/packages/datadog-api-client-v2/models/MetricVolumesResponse.ts index 99639e9d0ac3..dc251f14ba75 100644 --- a/packages/datadog-api-client-v2/models/MetricVolumesResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricVolumesResponse.ts @@ -5,15 +5,20 @@ */ import { MetricVolumes } from "./MetricVolumes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object which includes a single metric's volume. - */ +*/ export class MetricVolumesResponse { /** * Possible response objects for a metric's volume. - */ + */ "data"?: MetricVolumes; /** @@ -32,22 +37,48 @@ export class MetricVolumesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MetricVolumes", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MetricVolumes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricVolumesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricsAggregator.ts b/packages/datadog-api-client-v2/models/MetricsAggregator.ts index 0a32cee16d94..1011d407bf20 100644 --- a/packages/datadog-api-client-v2/models/MetricsAggregator.ts +++ b/packages/datadog-api-client-v2/models/MetricsAggregator.ts @@ -4,29 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of aggregation that can be performed on metrics-based queries. - */ +*/ -export type MetricsAggregator = - | typeof AVG - | typeof MIN - | typeof MAX - | typeof SUM - | typeof LAST - | typeof PERCENTILE - | typeof MEAN - | typeof L2NORM - | typeof AREA - | UnparsedObject; -export const AVG = "avg"; -export const MIN = "min"; -export const MAX = "max"; -export const SUM = "sum"; -export const LAST = "last"; -export const PERCENTILE = "percentile"; -export const MEAN = "mean"; -export const L2NORM = "l2norm"; -export const AREA = "area"; +export type MetricsAggregator = typeof AVG| typeof MIN| typeof MAX| typeof SUM| typeof LAST| typeof PERCENTILE| typeof MEAN| typeof L2NORM| typeof AREA | UnparsedObject; +export const AVG = 'avg'; +export const MIN = 'min'; +export const MAX = 'max'; +export const SUM = 'sum'; +export const LAST = 'last'; +export const PERCENTILE = 'percentile'; +export const MEAN = 'mean'; +export const L2NORM = 'l2norm'; +export const AREA = 'area'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurations.ts b/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurations.ts index 2a25e7ea8e1d..73437cdc6dd1 100644 --- a/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurations.ts +++ b/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurations.ts @@ -6,13 +6,15 @@ import { Metric } from "./Metric"; import { MetricTagConfiguration } from "./MetricTagConfiguration"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Object for a metrics and metric tag configurations. - */ +*/ -export type MetricsAndMetricTagConfigurations = - | Metric - | MetricTagConfiguration - | UnparsedObject; +export type MetricsAndMetricTagConfigurations = Metric | MetricTagConfiguration | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.ts b/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.ts index 51626feda0ae..2b6fe49f9d9f 100644 --- a/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.ts +++ b/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.ts @@ -7,23 +7,28 @@ import { MetricPaginationMeta } from "./MetricPaginationMeta"; import { MetricsAndMetricTagConfigurations } from "./MetricsAndMetricTagConfigurations"; import { MetricsListResponseLinks } from "./MetricsListResponseLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object that includes metrics and metric tag configurations. - */ +*/ export class MetricsAndMetricTagConfigurationsResponse { /** * Array of metrics and metric tag configurations. - */ + */ "data"?: Array; /** * Pagination links. Only present if pagination query parameters were provided. - */ + */ "links"?: MetricsListResponseLinks; /** * Response metadata object. - */ + */ "meta"?: MetricPaginationMeta; /** @@ -42,30 +47,56 @@ export class MetricsAndMetricTagConfigurationsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "MetricsListResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "MetricPaginationMeta", + "links": { + "baseName": "links", + "type": "MetricsListResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "MetricPaginationMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsAndMetricTagConfigurationsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricsDataSource.ts b/packages/datadog-api-client-v2/models/MetricsDataSource.ts index cf598ec0ca50..0cd1b54ee4f5 100644 --- a/packages/datadog-api-client-v2/models/MetricsDataSource.ts +++ b/packages/datadog-api-client-v2/models/MetricsDataSource.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A data source that is powered by the Metrics platform. - */ +*/ -export type MetricsDataSource = - | typeof METRICS - | typeof CLOUD_COST - | UnparsedObject; -export const METRICS = "metrics"; -export const CLOUD_COST = "cloud_cost"; +export type MetricsDataSource = typeof METRICS| typeof CLOUD_COST | UnparsedObject; +export const METRICS = 'metrics'; +export const CLOUD_COST = 'cloud_cost'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MetricsListResponseLinks.ts b/packages/datadog-api-client-v2/models/MetricsListResponseLinks.ts index d52709886e57..4482990d6576 100644 --- a/packages/datadog-api-client-v2/models/MetricsListResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/MetricsListResponseLinks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination links. Only present if pagination query parameters were provided. - */ +*/ export class MetricsListResponseLinks { /** * Link to the first page. - */ + */ "first"?: string; /** * Link to the last page. - */ + */ "last"?: string; /** * Link to the next page. - */ + */ "next"?: string; /** * Link to previous page. - */ + */ "prev"?: string; /** * Link to current page. - */ + */ "self"?: string; /** @@ -47,38 +52,64 @@ export class MetricsListResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", + "last": { + "baseName": "last", + "type": "string", }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - prev: { - baseName: "prev", - type: "string", + "prev": { + "baseName": "prev", + "type": "string", }, - self: { - baseName: "self", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsListResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricsScalarQuery.ts b/packages/datadog-api-client-v2/models/MetricsScalarQuery.ts index 89cdb66f2191..4ba86aa87eca 100644 --- a/packages/datadog-api-client-v2/models/MetricsScalarQuery.ts +++ b/packages/datadog-api-client-v2/models/MetricsScalarQuery.ts @@ -6,27 +6,32 @@ import { MetricsAggregator } from "./MetricsAggregator"; import { MetricsDataSource } from "./MetricsDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An individual scalar metrics query. - */ +*/ export class MetricsScalarQuery { /** * The type of aggregation that can be performed on metrics-based queries. - */ + */ "aggregator": MetricsAggregator; /** * A data source that is powered by the Metrics platform. - */ + */ "dataSource": MetricsDataSource; /** * The variable name for use in formulas. - */ + */ "name"?: string; /** * A classic metrics query string. - */ + */ "query": string; /** @@ -45,37 +50,63 @@ export class MetricsScalarQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregator: { - baseName: "aggregator", - type: "MetricsAggregator", - required: true, + "aggregator": { + "baseName": "aggregator", + "type": "MetricsAggregator", + "required": true, }, - dataSource: { - baseName: "data_source", - type: "MetricsDataSource", - required: true, + "dataSource": { + "baseName": "data_source", + "type": "MetricsDataSource", + "required": true, }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsScalarQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.ts b/packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.ts index 10f68f7c5859..77f6c801e59c 100644 --- a/packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.ts +++ b/packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.ts @@ -5,23 +5,28 @@ */ import { MetricsDataSource } from "./MetricsDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An individual timeseries metrics query. - */ +*/ export class MetricsTimeseriesQuery { /** * A data source that is powered by the Metrics platform. - */ + */ "dataSource": MetricsDataSource; /** * The variable name for use in formulas. - */ + */ "name"?: string; /** * A classic metrics query string. - */ + */ "query": string; /** @@ -40,32 +45,58 @@ export class MetricsTimeseriesQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dataSource: { - baseName: "data_source", - type: "MetricsDataSource", - required: true, - }, - name: { - baseName: "name", - type: "string", + "dataSource": { + "baseName": "data_source", + "type": "MetricsDataSource", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MetricsTimeseriesQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseAttributes.ts index 35f2bb482906..4af1f69dd252 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Channel attributes. - */ +*/ export class MicrosoftTeamsChannelInfoResponseAttributes { /** * Indicates if this is the primary channel. - */ + */ "isPrimary"?: boolean; /** * Team id. - */ + */ "teamId"?: string; /** * Tenant id. - */ + */ "tenantId"?: string; /** @@ -39,30 +44,56 @@ export class MicrosoftTeamsChannelInfoResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - isPrimary: { - baseName: "is_primary", - type: "boolean", - }, - teamId: { - baseName: "team_id", - type: "string", + "isPrimary": { + "baseName": "is_primary", + "type": "boolean", }, - tenantId: { - baseName: "tenant_id", - type: "string", + "teamId": { + "baseName": "team_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tenantId": { + "baseName": "tenant_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsChannelInfoResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseData.ts index 5468293f46ca..aa57b3a3e8b5 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoResponseData.ts @@ -6,23 +6,28 @@ import { MicrosoftTeamsChannelInfoResponseAttributes } from "./MicrosoftTeamsChannelInfoResponseAttributes"; import { MicrosoftTeamsChannelInfoType } from "./MicrosoftTeamsChannelInfoType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Channel data from a response. - */ +*/ export class MicrosoftTeamsChannelInfoResponseData { /** * Channel attributes. - */ + */ "attributes"?: MicrosoftTeamsChannelInfoResponseAttributes; /** * The ID of the channel. - */ + */ "id"?: string; /** * Channel info resource type. - */ + */ "type"?: MicrosoftTeamsChannelInfoType; /** @@ -41,30 +46,56 @@ export class MicrosoftTeamsChannelInfoResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsChannelInfoResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsChannelInfoResponseAttributes", }, - type: { - baseName: "type", - type: "MicrosoftTeamsChannelInfoType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsChannelInfoType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsChannelInfoResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoType.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoType.ts index 5c25606e456b..af2ba32ad0d2 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoType.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsChannelInfoType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Channel info resource type. - */ +*/ -export type MicrosoftTeamsChannelInfoType = - | typeof MS_TEAMS_CHANNEL_INFO - | UnparsedObject; -export const MS_TEAMS_CHANNEL_INFO = "ms-teams-channel-info"; +export type MicrosoftTeamsChannelInfoType = typeof MS_TEAMS_CHANNEL_INFO | UnparsedObject; +export const MS_TEAMS_CHANNEL_INFO = 'ms-teams-channel-info'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateTenantBasedHandleRequest.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateTenantBasedHandleRequest.ts index b78b59733fb0..2ea27e82acd9 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateTenantBasedHandleRequest.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateTenantBasedHandleRequest.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsTenantBasedHandleRequestData } from "./MicrosoftTeamsTenantBasedHandleRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create tenant-based handle request. - */ +*/ export class MicrosoftTeamsCreateTenantBasedHandleRequest { /** * Tenant-based handle data from a response. - */ + */ "data": MicrosoftTeamsTenantBasedHandleRequestData; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsCreateTenantBasedHandleRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsTenantBasedHandleRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsTenantBasedHandleRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsCreateTenantBasedHandleRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.ts index c3d9b2e7c239..fb07ac21814e 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsWorkflowsWebhookHandleRequestData } from "./MicrosoftTeamsWorkflowsWebhookHandleRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create Workflows webhook handle request. - */ +*/ export class MicrosoftTeamsCreateWorkflowsWebhookHandleRequest { /** * Workflows Webhook handle data from a response. - */ + */ "data": MicrosoftTeamsWorkflowsWebhookHandleRequestData; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsCreateWorkflowsWebhookHandleRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsWorkflowsWebhookHandleRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsWorkflowsWebhookHandleRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsGetChannelByNameResponse.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsGetChannelByNameResponse.ts index 0350b35bcc63..d7e7d478bf06 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsGetChannelByNameResponse.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsGetChannelByNameResponse.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsChannelInfoResponseData } from "./MicrosoftTeamsChannelInfoResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with channel, team, and tenant ID information. - */ +*/ export class MicrosoftTeamsGetChannelByNameResponse { /** * Channel data from a response. - */ + */ "data"?: MicrosoftTeamsChannelInfoResponseData; /** @@ -32,22 +37,48 @@ export class MicrosoftTeamsGetChannelByNameResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsChannelInfoResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsChannelInfoResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsGetChannelByNameResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleAttributes.ts index 420e92c1c0a5..71d0879563fe 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle attributes. - */ +*/ export class MicrosoftTeamsTenantBasedHandleAttributes { /** * Channel id. - */ + */ "channelId"?: string; /** * Tenant-based handle name. - */ + */ "name"?: string; /** * Team id. - */ + */ "teamId"?: string; /** * Tenant id. - */ + */ "tenantId"?: string; /** @@ -43,34 +48,60 @@ export class MicrosoftTeamsTenantBasedHandleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - channelId: { - baseName: "channel_id", - type: "string", + "channelId": { + "baseName": "channel_id", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - teamId: { - baseName: "team_id", - type: "string", + "teamId": { + "baseName": "team_id", + "type": "string", }, - tenantId: { - baseName: "tenant_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tenantId": { + "baseName": "tenant_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.ts index 5102f419635e..88b8b9ea59c2 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle attributes. - */ +*/ export class MicrosoftTeamsTenantBasedHandleInfoResponseAttributes { /** * Channel id. - */ + */ "channelId"?: string; /** * Channel name. - */ + */ "channelName"?: string; /** * Tenant-based handle name. - */ + */ "name"?: string; /** * Team id. - */ + */ "teamId"?: string; /** * Team name. - */ + */ "teamName"?: string; /** * Tenant id. - */ + */ "tenantId"?: string; /** * Tenant name. - */ + */ "tenantName"?: string; /** @@ -55,46 +60,72 @@ export class MicrosoftTeamsTenantBasedHandleInfoResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - channelId: { - baseName: "channel_id", - type: "string", - }, - channelName: { - baseName: "channel_name", - type: "string", + "channelId": { + "baseName": "channel_id", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "channelName": { + "baseName": "channel_name", + "type": "string", }, - teamId: { - baseName: "team_id", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - teamName: { - baseName: "team_name", - type: "string", + "teamId": { + "baseName": "team_id", + "type": "string", }, - tenantId: { - baseName: "tenant_id", - type: "string", + "teamName": { + "baseName": "team_name", + "type": "string", }, - tenantName: { - baseName: "tenant_name", - type: "string", + "tenantId": { + "baseName": "tenant_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tenantName": { + "baseName": "tenant_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseData.ts index 660c91a0a2c9..13e7800b5588 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoResponseData.ts @@ -6,23 +6,28 @@ import { MicrosoftTeamsTenantBasedHandleInfoResponseAttributes } from "./MicrosoftTeamsTenantBasedHandleInfoResponseAttributes"; import { MicrosoftTeamsTenantBasedHandleInfoType } from "./MicrosoftTeamsTenantBasedHandleInfoType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle data from a response. - */ +*/ export class MicrosoftTeamsTenantBasedHandleInfoResponseData { /** * Tenant-based handle attributes. - */ + */ "attributes"?: MicrosoftTeamsTenantBasedHandleInfoResponseAttributes; /** * The ID of the tenant-based handle. - */ + */ "id"?: string; /** * Tenant-based handle resource type. - */ + */ "type"?: MicrosoftTeamsTenantBasedHandleInfoType; /** @@ -41,30 +46,56 @@ export class MicrosoftTeamsTenantBasedHandleInfoResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsTenantBasedHandleInfoResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsTenantBasedHandleInfoResponseAttributes", }, - type: { - baseName: "type", - type: "MicrosoftTeamsTenantBasedHandleInfoType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsTenantBasedHandleInfoType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleInfoResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoType.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoType.ts index 2ca500aa0177..3693cefb63d1 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoType.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleInfoType.ts @@ -4,14 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Tenant-based handle resource type. - */ +*/ -export type MicrosoftTeamsTenantBasedHandleInfoType = - | typeof MS_TEAMS_TENANT_BASED_HANDLE_INFO - | UnparsedObject; -export const MS_TEAMS_TENANT_BASED_HANDLE_INFO = - "ms-teams-tenant-based-handle-info"; +export type MicrosoftTeamsTenantBasedHandleInfoType = typeof MS_TEAMS_TENANT_BASED_HANDLE_INFO | UnparsedObject; +export const MS_TEAMS_TENANT_BASED_HANDLE_INFO = 'ms-teams-tenant-based-handle-info'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestAttributes.ts index 99298513e6e7..04b43df16437 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle attributes. - */ +*/ export class MicrosoftTeamsTenantBasedHandleRequestAttributes { /** * Channel id. - */ + */ "channelId": string; /** * Tenant-based handle name. - */ + */ "name": string; /** * Team id. - */ + */ "teamId": string; /** * Tenant id. - */ + */ "tenantId": string; /** @@ -43,38 +48,64 @@ export class MicrosoftTeamsTenantBasedHandleRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - channelId: { - baseName: "channel_id", - type: "string", - required: true, + "channelId": { + "baseName": "channel_id", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - teamId: { - baseName: "team_id", - type: "string", - required: true, + "teamId": { + "baseName": "team_id", + "type": "string", + "required": true, }, - tenantId: { - baseName: "tenant_id", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tenantId": { + "baseName": "tenant_id", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestData.ts index 1eaffd1ec44a..ab7f42ce9678 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleRequestData.ts @@ -6,19 +6,24 @@ import { MicrosoftTeamsTenantBasedHandleRequestAttributes } from "./MicrosoftTeamsTenantBasedHandleRequestAttributes"; import { MicrosoftTeamsTenantBasedHandleType } from "./MicrosoftTeamsTenantBasedHandleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle data from a response. - */ +*/ export class MicrosoftTeamsTenantBasedHandleRequestData { /** * Tenant-based handle attributes. - */ + */ "attributes": MicrosoftTeamsTenantBasedHandleRequestAttributes; /** * Specifies the tenant-based handle resource type. - */ + */ "type": MicrosoftTeamsTenantBasedHandleType; /** @@ -37,28 +42,54 @@ export class MicrosoftTeamsTenantBasedHandleRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsTenantBasedHandleRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsTenantBasedHandleRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "MicrosoftTeamsTenantBasedHandleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsTenantBasedHandleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponse.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponse.ts index 6bcb618b5141..48904016e628 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponse.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponse.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsTenantBasedHandleResponseData } from "./MicrosoftTeamsTenantBasedHandleResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response of a tenant-based handle. - */ +*/ export class MicrosoftTeamsTenantBasedHandleResponse { /** * Tenant-based handle data from a response. - */ + */ "data": MicrosoftTeamsTenantBasedHandleResponseData; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsTenantBasedHandleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsTenantBasedHandleResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsTenantBasedHandleResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponseData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponseData.ts index 1167051e81d6..efd91c49e2bb 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponseData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleResponseData.ts @@ -6,23 +6,28 @@ import { MicrosoftTeamsTenantBasedHandleAttributes } from "./MicrosoftTeamsTenantBasedHandleAttributes"; import { MicrosoftTeamsTenantBasedHandleType } from "./MicrosoftTeamsTenantBasedHandleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle data from a response. - */ +*/ export class MicrosoftTeamsTenantBasedHandleResponseData { /** * Tenant-based handle attributes. - */ + */ "attributes"?: MicrosoftTeamsTenantBasedHandleAttributes; /** * The ID of the tenant-based handle. - */ + */ "id"?: string; /** * Specifies the tenant-based handle resource type. - */ + */ "type"?: MicrosoftTeamsTenantBasedHandleType; /** @@ -41,30 +46,56 @@ export class MicrosoftTeamsTenantBasedHandleResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsTenantBasedHandleAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsTenantBasedHandleAttributes", }, - type: { - baseName: "type", - type: "MicrosoftTeamsTenantBasedHandleType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsTenantBasedHandleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandleResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleType.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleType.ts index cb773de6d01c..ffb57cc5eaac 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleType.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Specifies the tenant-based handle resource type. - */ +*/ -export type MicrosoftTeamsTenantBasedHandleType = - | typeof TENANT_BASED_HANDLE - | UnparsedObject; -export const TENANT_BASED_HANDLE = "tenant-based-handle"; +export type MicrosoftTeamsTenantBasedHandleType = typeof TENANT_BASED_HANDLE | UnparsedObject; +export const TENANT_BASED_HANDLE = 'tenant-based-handle'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandlesResponse.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandlesResponse.ts index 96e958d2ec46..4a32616b65d6 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandlesResponse.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsTenantBasedHandlesResponse.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsTenantBasedHandleInfoResponseData } from "./MicrosoftTeamsTenantBasedHandleInfoResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of tenant-based handles. - */ +*/ export class MicrosoftTeamsTenantBasedHandlesResponse { /** * An array of tenant-based handles. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsTenantBasedHandlesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsTenantBasedHandlesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequest.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequest.ts index a89f7ce1fb1f..d4a6db10017a 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequest.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequest.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsUpdateTenantBasedHandleRequestData } from "./MicrosoftTeamsUpdateTenantBasedHandleRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update tenant-based handle request. - */ +*/ export class MicrosoftTeamsUpdateTenantBasedHandleRequest { /** * Tenant-based handle data from a response. - */ + */ "data": MicrosoftTeamsUpdateTenantBasedHandleRequestData; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsUpdateTenantBasedHandleRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsUpdateTenantBasedHandleRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsUpdateTenantBasedHandleRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsUpdateTenantBasedHandleRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequestData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequestData.ts index cf76397af423..705a6d7e9ba8 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequestData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateTenantBasedHandleRequestData.ts @@ -6,19 +6,24 @@ import { MicrosoftTeamsTenantBasedHandleAttributes } from "./MicrosoftTeamsTenantBasedHandleAttributes"; import { MicrosoftTeamsTenantBasedHandleType } from "./MicrosoftTeamsTenantBasedHandleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tenant-based handle data from a response. - */ +*/ export class MicrosoftTeamsUpdateTenantBasedHandleRequestData { /** * Tenant-based handle attributes. - */ + */ "attributes": MicrosoftTeamsTenantBasedHandleAttributes; /** * Specifies the tenant-based handle resource type. - */ + */ "type": MicrosoftTeamsTenantBasedHandleType; /** @@ -37,28 +42,54 @@ export class MicrosoftTeamsUpdateTenantBasedHandleRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsTenantBasedHandleAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsTenantBasedHandleAttributes", + "required": true, }, - type: { - baseName: "type", - type: "MicrosoftTeamsTenantBasedHandleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsTenantBasedHandleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsUpdateTenantBasedHandleRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.ts index d40a58500e40..e51ebc99c77f 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData } from "./MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update Workflows webhook handle request. - */ +*/ export class MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest { /** * Workflows Webhook handle data from a response. - */ + */ "data": MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.ts index 8e45cbfa8519..affe93b236f1 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.ts @@ -6,19 +6,24 @@ import { MicrosoftTeamsWorkflowsWebhookHandleAttributes } from "./MicrosoftTeamsWorkflowsWebhookHandleAttributes"; import { MicrosoftTeamsWorkflowsWebhookHandleType } from "./MicrosoftTeamsWorkflowsWebhookHandleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Workflows Webhook handle data from a response. - */ +*/ export class MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData { /** * Workflows Webhook handle attributes. - */ + */ "attributes": MicrosoftTeamsWorkflowsWebhookHandleAttributes; /** * Specifies the Workflows webhook handle resource type. - */ + */ "type": MicrosoftTeamsWorkflowsWebhookHandleType; /** @@ -37,28 +42,54 @@ export class MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsWorkflowsWebhookHandleAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsWorkflowsWebhookHandleAttributes", + "required": true, }, - type: { - baseName: "type", - type: "MicrosoftTeamsWorkflowsWebhookHandleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsWorkflowsWebhookHandleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.ts index 9e9f858a900f..4d70b8b126f4 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Workflows Webhook handle attributes. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookHandleAttributes { /** * Workflows Webhook handle name. - */ + */ "name"?: string; /** * Workflows Webhook URL. - */ + */ "url"?: string; /** @@ -35,26 +40,52 @@ export class MicrosoftTeamsWorkflowsWebhookHandleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookHandleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.ts index dc9b09866d2c..336d2d95b45b 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Workflows Webhook handle attributes. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes { /** * Workflows Webhook handle name. - */ + */ "name": string; /** * Workflows Webhook URL. - */ + */ "url": string; /** @@ -35,28 +40,54 @@ export class MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.ts index 530a9ed0c182..a08ede19a661 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.ts @@ -6,19 +6,24 @@ import { MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes } from "./MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes"; import { MicrosoftTeamsWorkflowsWebhookHandleType } from "./MicrosoftTeamsWorkflowsWebhookHandleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Workflows Webhook handle data from a response. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookHandleRequestData { /** * Workflows Webhook handle attributes. - */ + */ "attributes": MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes; /** * Specifies the Workflows webhook handle resource type. - */ + */ "type": MicrosoftTeamsWorkflowsWebhookHandleType; /** @@ -37,28 +42,54 @@ export class MicrosoftTeamsWorkflowsWebhookHandleRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "MicrosoftTeamsWorkflowsWebhookHandleType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsWorkflowsWebhookHandleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookHandleRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.ts index 2b7ba8916482..a98f6ab24c64 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsWorkflowsWebhookHandleResponseData } from "./MicrosoftTeamsWorkflowsWebhookHandleResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response of a Workflows webhook handle. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookHandleResponse { /** * Workflows Webhook handle data from a response. - */ + */ "data": MicrosoftTeamsWorkflowsWebhookHandleResponseData; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsWorkflowsWebhookHandleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MicrosoftTeamsWorkflowsWebhookHandleResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MicrosoftTeamsWorkflowsWebhookHandleResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookHandleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.ts index 2bc875c68a6c..a7285253f68f 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.ts @@ -6,23 +6,28 @@ import { MicrosoftTeamsWorkflowsWebhookHandleType } from "./MicrosoftTeamsWorkflowsWebhookHandleType"; import { MicrosoftTeamsWorkflowsWebhookResponseAttributes } from "./MicrosoftTeamsWorkflowsWebhookResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Workflows Webhook handle data from a response. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookHandleResponseData { /** * Workflows Webhook handle attributes. - */ + */ "attributes"?: MicrosoftTeamsWorkflowsWebhookResponseAttributes; /** * The ID of the Workflows webhook handle. - */ + */ "id"?: string; /** * Specifies the Workflows webhook handle resource type. - */ + */ "type"?: MicrosoftTeamsWorkflowsWebhookHandleType; /** @@ -41,30 +46,56 @@ export class MicrosoftTeamsWorkflowsWebhookHandleResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MicrosoftTeamsWorkflowsWebhookResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MicrosoftTeamsWorkflowsWebhookResponseAttributes", }, - type: { - baseName: "type", - type: "MicrosoftTeamsWorkflowsWebhookHandleType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MicrosoftTeamsWorkflowsWebhookHandleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookHandleResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.ts index 8ba61bd2c3a4..1eadb5f6a4ac 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Specifies the Workflows webhook handle resource type. - */ +*/ -export type MicrosoftTeamsWorkflowsWebhookHandleType = - | typeof WORKFLOWS_WEBHOOK_HANDLE - | UnparsedObject; -export const WORKFLOWS_WEBHOOK_HANDLE = "workflows-webhook-handle"; +export type MicrosoftTeamsWorkflowsWebhookHandleType = typeof WORKFLOWS_WEBHOOK_HANDLE | UnparsedObject; +export const WORKFLOWS_WEBHOOK_HANDLE = 'workflows-webhook-handle'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.ts index 07608d2af881..0f25f251f445 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.ts @@ -5,15 +5,20 @@ */ import { MicrosoftTeamsWorkflowsWebhookHandleResponseData } from "./MicrosoftTeamsWorkflowsWebhookHandleResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of Workflows webhook handles. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookHandlesResponse { /** * An array of Workflows webhook handles. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class MicrosoftTeamsWorkflowsWebhookHandlesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookHandlesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.ts b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.ts index b20d1c67e9e1..9d77749a3874 100644 --- a/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Workflows Webhook handle attributes. - */ +*/ export class MicrosoftTeamsWorkflowsWebhookResponseAttributes { /** * Workflows Webhook handle name. - */ + */ "name"?: string; /** @@ -31,22 +36,48 @@ export class MicrosoftTeamsWorkflowsWebhookResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MicrosoftTeamsWorkflowsWebhookResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.ts index 04371550d554..ff1965c025ed 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.ts @@ -6,19 +6,24 @@ import { MonitorConfigPolicyPolicyCreateRequest } from "./MonitorConfigPolicyPolicyCreateRequest"; import { MonitorConfigPolicyType } from "./MonitorConfigPolicyType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Policy and policy type for a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyAttributeCreateRequest { /** * Configuration for the policy. - */ + */ "policy": MonitorConfigPolicyPolicyCreateRequest; /** * The monitor configuration policy type. - */ + */ "policyType": MonitorConfigPolicyType; /** @@ -37,28 +42,54 @@ export class MonitorConfigPolicyAttributeCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - policy: { - baseName: "policy", - type: "MonitorConfigPolicyPolicyCreateRequest", - required: true, + "policy": { + "baseName": "policy", + "type": "MonitorConfigPolicyPolicyCreateRequest", + "required": true, }, - policyType: { - baseName: "policy_type", - type: "MonitorConfigPolicyType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "policyType": { + "baseName": "policy_type", + "type": "MonitorConfigPolicyType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyAttributeCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.ts index 699fd4b39261..d9ff97d03bcb 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.ts @@ -6,19 +6,24 @@ import { MonitorConfigPolicyPolicy } from "./MonitorConfigPolicyPolicy"; import { MonitorConfigPolicyType } from "./MonitorConfigPolicyType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Policy and policy type for a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyAttributeEditRequest { /** * Configuration for the policy. - */ + */ "policy": MonitorConfigPolicyPolicy; /** * The monitor configuration policy type. - */ + */ "policyType": MonitorConfigPolicyType; /** @@ -37,28 +42,54 @@ export class MonitorConfigPolicyAttributeEditRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - policy: { - baseName: "policy", - type: "MonitorConfigPolicyPolicy", - required: true, + "policy": { + "baseName": "policy", + "type": "MonitorConfigPolicyPolicy", + "required": true, }, - policyType: { - baseName: "policy_type", - type: "MonitorConfigPolicyType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "policyType": { + "baseName": "policy_type", + "type": "MonitorConfigPolicyType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyAttributeEditRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.ts index be91cced6d89..ba42ba8ab7b7 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.ts @@ -6,19 +6,24 @@ import { MonitorConfigPolicyPolicy } from "./MonitorConfigPolicyPolicy"; import { MonitorConfigPolicyType } from "./MonitorConfigPolicyType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Policy and policy type for a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyAttributeResponse { /** * Configuration for the policy. - */ + */ "policy"?: MonitorConfigPolicyPolicy; /** * The monitor configuration policy type. - */ + */ "policyType"?: MonitorConfigPolicyType; /** @@ -37,26 +42,52 @@ export class MonitorConfigPolicyAttributeResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - policy: { - baseName: "policy", - type: "MonitorConfigPolicyPolicy", + "policy": { + "baseName": "policy", + "type": "MonitorConfigPolicyPolicy", }, - policyType: { - baseName: "policy_type", - type: "MonitorConfigPolicyType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "policyType": { + "baseName": "policy_type", + "type": "MonitorConfigPolicyType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyAttributeResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.ts index 8cd55c4ea33a..20ecc26ca0a5 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.ts @@ -6,19 +6,24 @@ import { MonitorConfigPolicyAttributeCreateRequest } from "./MonitorConfigPolicyAttributeCreateRequest"; import { MonitorConfigPolicyResourceType } from "./MonitorConfigPolicyResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A monitor configuration policy data. - */ +*/ export class MonitorConfigPolicyCreateData { /** * Policy and policy type for a monitor configuration policy. - */ + */ "attributes": MonitorConfigPolicyAttributeCreateRequest; /** * Monitor configuration policy resource type. - */ + */ "type": MonitorConfigPolicyResourceType; /** @@ -37,28 +42,54 @@ export class MonitorConfigPolicyCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MonitorConfigPolicyAttributeCreateRequest", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MonitorConfigPolicyAttributeCreateRequest", + "required": true, }, - type: { - baseName: "type", - type: "MonitorConfigPolicyResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MonitorConfigPolicyResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.ts index bd7dc6b115c8..d77804658717 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.ts @@ -5,15 +5,20 @@ */ import { MonitorConfigPolicyCreateData } from "./MonitorConfigPolicyCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request for creating a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyCreateRequest { /** * A monitor configuration policy data. - */ + */ "data": MonitorConfigPolicyCreateData; /** @@ -32,23 +37,49 @@ export class MonitorConfigPolicyCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MonitorConfigPolicyCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MonitorConfigPolicyCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.ts index 4637865184cb..1b5f2e81025b 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.ts @@ -6,23 +6,28 @@ import { MonitorConfigPolicyAttributeEditRequest } from "./MonitorConfigPolicyAttributeEditRequest"; import { MonitorConfigPolicyResourceType } from "./MonitorConfigPolicyResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A monitor configuration policy data. - */ +*/ export class MonitorConfigPolicyEditData { /** * Policy and policy type for a monitor configuration policy. - */ + */ "attributes": MonitorConfigPolicyAttributeEditRequest; /** * ID of this monitor configuration policy. - */ + */ "id": string; /** * Monitor configuration policy resource type. - */ + */ "type": MonitorConfigPolicyResourceType; /** @@ -41,33 +46,59 @@ export class MonitorConfigPolicyEditData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MonitorConfigPolicyAttributeEditRequest", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "MonitorConfigPolicyAttributeEditRequest", + "required": true, }, - type: { - baseName: "type", - type: "MonitorConfigPolicyResourceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MonitorConfigPolicyResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyEditData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.ts index daaa25e9e569..37611ab1e4f6 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.ts @@ -5,15 +5,20 @@ */ import { MonitorConfigPolicyEditData } from "./MonitorConfigPolicyEditData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request for editing a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyEditRequest { /** * A monitor configuration policy data. - */ + */ "data": MonitorConfigPolicyEditData; /** @@ -32,23 +37,49 @@ export class MonitorConfigPolicyEditRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MonitorConfigPolicyEditData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MonitorConfigPolicyEditData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyEditRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.ts index 5fc14f658b65..aabe73cf082d 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.ts @@ -5,15 +5,20 @@ */ import { MonitorConfigPolicyResponseData } from "./MonitorConfigPolicyResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving all monitor configuration policies. - */ +*/ export class MonitorConfigPolicyListResponse { /** * An array of monitor configuration policies. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class MonitorConfigPolicyListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.ts index 2d4e7163a9e5..c9212ae228fb 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.ts @@ -5,12 +5,15 @@ */ import { MonitorConfigPolicyTagPolicy } from "./MonitorConfigPolicyTagPolicy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Configuration for the policy. - */ +*/ -export type MonitorConfigPolicyPolicy = - | MonitorConfigPolicyTagPolicy - | UnparsedObject; +export type MonitorConfigPolicyPolicy = MonitorConfigPolicyTagPolicy | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.ts index 0866325c64bd..4c12c8a08879 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.ts @@ -5,12 +5,15 @@ */ import { MonitorConfigPolicyTagPolicyCreateRequest } from "./MonitorConfigPolicyTagPolicyCreateRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Configuration for the policy. - */ +*/ -export type MonitorConfigPolicyPolicyCreateRequest = - | MonitorConfigPolicyTagPolicyCreateRequest - | UnparsedObject; +export type MonitorConfigPolicyPolicyCreateRequest = MonitorConfigPolicyTagPolicyCreateRequest | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.ts index 736474bed046..dfde54e78841 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Monitor configuration policy resource type. - */ +*/ -export type MonitorConfigPolicyResourceType = - | typeof MONITOR_CONFIG_POLICY - | UnparsedObject; -export const MONITOR_CONFIG_POLICY = "monitor-config-policy"; +export type MonitorConfigPolicyResourceType = typeof MONITOR_CONFIG_POLICY | UnparsedObject; +export const MONITOR_CONFIG_POLICY = 'monitor-config-policy'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.ts index c5a434b372f9..9282c6c5d38e 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.ts @@ -5,15 +5,20 @@ */ import { MonitorConfigPolicyResponseData } from "./MonitorConfigPolicyResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyResponse { /** * A monitor configuration policy data. - */ + */ "data"?: MonitorConfigPolicyResponseData; /** @@ -32,22 +37,48 @@ export class MonitorConfigPolicyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "MonitorConfigPolicyResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "MonitorConfigPolicyResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.ts index 94379a9860d2..35c2064e049a 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.ts @@ -6,23 +6,28 @@ import { MonitorConfigPolicyAttributeResponse } from "./MonitorConfigPolicyAttributeResponse"; import { MonitorConfigPolicyResourceType } from "./MonitorConfigPolicyResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A monitor configuration policy data. - */ +*/ export class MonitorConfigPolicyResponseData { /** * Policy and policy type for a monitor configuration policy. - */ + */ "attributes"?: MonitorConfigPolicyAttributeResponse; /** * ID of this monitor configuration policy. - */ + */ "id"?: string; /** * Monitor configuration policy resource type. - */ + */ "type"?: MonitorConfigPolicyResourceType; /** @@ -41,30 +46,56 @@ export class MonitorConfigPolicyResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MonitorConfigPolicyAttributeResponse", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MonitorConfigPolicyAttributeResponse", }, - type: { - baseName: "type", - type: "MonitorConfigPolicyResourceType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MonitorConfigPolicyResourceType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.ts index 638f4ebdaea3..d0b72b5b1cc6 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tag attributes of a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyTagPolicy { /** * The key of the tag. - */ + */ "tagKey"?: string; /** * If a tag key is required for monitor creation. - */ + */ "tagKeyRequired"?: boolean; /** * Valid values for the tag. - */ + */ "validTagValues"?: Array; /** @@ -39,30 +44,56 @@ export class MonitorConfigPolicyTagPolicy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tagKey: { - baseName: "tag_key", - type: "string", - }, - tagKeyRequired: { - baseName: "tag_key_required", - type: "boolean", + "tagKey": { + "baseName": "tag_key", + "type": "string", }, - validTagValues: { - baseName: "valid_tag_values", - type: "Array", + "tagKeyRequired": { + "baseName": "tag_key_required", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "validTagValues": { + "baseName": "valid_tag_values", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyTagPolicy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.ts index 52e2f7220fbf..680ae19d6559 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Tag attributes of a monitor configuration policy. - */ +*/ export class MonitorConfigPolicyTagPolicyCreateRequest { /** * The key of the tag. - */ + */ "tagKey": string; /** * If a tag key is required for monitor creation. - */ + */ "tagKeyRequired": boolean; /** * Valid values for the tag. - */ + */ "validTagValues": Array; /** @@ -39,33 +44,59 @@ export class MonitorConfigPolicyTagPolicyCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - tagKey: { - baseName: "tag_key", - type: "string", - required: true, - }, - tagKeyRequired: { - baseName: "tag_key_required", - type: "boolean", - required: true, + "tagKey": { + "baseName": "tag_key", + "type": "string", + "required": true, }, - validTagValues: { - baseName: "valid_tag_values", - type: "Array", - required: true, + "tagKeyRequired": { + "baseName": "tag_key_required", + "type": "boolean", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "validTagValues": { + "baseName": "valid_tag_values", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorConfigPolicyTagPolicyCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.ts b/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.ts index 098903e16a1d..26076ddbcf4f 100644 --- a/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.ts +++ b/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The monitor configuration policy type. - */ +*/ export type MonitorConfigPolicyType = typeof TAG | UnparsedObject; -export const TAG = "tag"; +export const TAG = 'tag'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResourceType.ts b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResourceType.ts index 9c7ae3056566..715dd16cc219 100644 --- a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResourceType.ts +++ b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResourceType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Monitor Downtime Match resource type. - */ +*/ -export type MonitorDowntimeMatchResourceType = - | typeof DOWNTIME_MATCH - | UnparsedObject; -export const DOWNTIME_MATCH = "downtime_match"; +export type MonitorDowntimeMatchResourceType = typeof DOWNTIME_MATCH | UnparsedObject; +export const DOWNTIME_MATCH = 'downtime_match'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponse.ts b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponse.ts index f2b94ec92f95..14715364bd5e 100644 --- a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponse.ts +++ b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponse.ts @@ -6,19 +6,24 @@ import { DowntimeMeta } from "./DowntimeMeta"; import { MonitorDowntimeMatchResponseData } from "./MonitorDowntimeMatchResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving all downtime matches for a monitor. - */ +*/ export class MonitorDowntimeMatchResponse { /** * An array of downtime matches. - */ + */ "data"?: Array; /** * Pagination metadata returned by the API. - */ + */ "meta"?: DowntimeMeta; /** @@ -37,26 +42,52 @@ export class MonitorDowntimeMatchResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "DowntimeMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "DowntimeMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorDowntimeMatchResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseAttributes.ts b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseAttributes.ts index 7e75de2f2a30..5f32dd27c8cc 100644 --- a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Downtime match details. - */ +*/ export class MonitorDowntimeMatchResponseAttributes { /** * The end of the downtime. - */ + */ "end"?: Date; /** * An array of groups associated with the downtime. - */ + */ "groups"?: Array; /** * The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/). - */ + */ "scope"?: string; /** * The start of the downtime. - */ + */ "start"?: Date; /** @@ -43,36 +48,62 @@ export class MonitorDowntimeMatchResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - end: { - baseName: "end", - type: "Date", - format: "date-time", + "end": { + "baseName": "end", + "type": "Date", + "format": "date-time", }, - groups: { - baseName: "groups", - type: "Array", + "groups": { + "baseName": "groups", + "type": "Array", }, - scope: { - baseName: "scope", - type: "string", + "scope": { + "baseName": "scope", + "type": "string", }, - start: { - baseName: "start", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "start": { + "baseName": "start", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorDowntimeMatchResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseData.ts b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseData.ts index 1a5c09f54a4f..cda52d6cbf9a 100644 --- a/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseData.ts +++ b/packages/datadog-api-client-v2/models/MonitorDowntimeMatchResponseData.ts @@ -6,23 +6,28 @@ import { MonitorDowntimeMatchResourceType } from "./MonitorDowntimeMatchResourceType"; import { MonitorDowntimeMatchResponseAttributes } from "./MonitorDowntimeMatchResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A downtime match. - */ +*/ export class MonitorDowntimeMatchResponseData { /** * Downtime match details. - */ + */ "attributes"?: MonitorDowntimeMatchResponseAttributes; /** * The downtime ID. - */ + */ "id"?: string; /** * Monitor Downtime Match resource type. - */ + */ "type"?: MonitorDowntimeMatchResourceType; /** @@ -41,30 +46,56 @@ export class MonitorDowntimeMatchResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MonitorDowntimeMatchResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MonitorDowntimeMatchResponseAttributes", }, - type: { - baseName: "type", - type: "MonitorDowntimeMatchResourceType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "MonitorDowntimeMatchResourceType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorDowntimeMatchResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorTrigger.ts b/packages/datadog-api-client-v2/models/MonitorTrigger.ts index 1bcdcf7079c7..3be701e700a5 100644 --- a/packages/datadog-api-client-v2/models/MonitorTrigger.ts +++ b/packages/datadog-api-client-v2/models/MonitorTrigger.ts @@ -5,15 +5,20 @@ */ import { TriggerRateLimit } from "./TriggerRateLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from a Monitor. For automatic triggering a handle must be configured and the workflow must be published. - */ +*/ export class MonitorTrigger { /** * Defines a rate limit for a trigger. - */ + */ "rateLimit"?: TriggerRateLimit; /** @@ -32,22 +37,48 @@ export class MonitorTrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rateLimit: { - baseName: "rateLimit", - type: "TriggerRateLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rateLimit": { + "baseName": "rateLimit", + "type": "TriggerRateLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorTrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorTriggerWrapper.ts b/packages/datadog-api-client-v2/models/MonitorTriggerWrapper.ts index f731a5d1e068..b2c6abb65f6a 100644 --- a/packages/datadog-api-client-v2/models/MonitorTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/MonitorTriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { MonitorTrigger } from "./MonitorTrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Monitor-based trigger. - */ +*/ export class MonitorTriggerWrapper { /** * Trigger a workflow from a Monitor. For automatic triggering a handle must be configured and the workflow must be published. - */ + */ "monitorTrigger": MonitorTrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class MonitorTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - monitorTrigger: { - baseName: "monitorTrigger", - type: "MonitorTrigger", - required: true, + "monitorTrigger": { + "baseName": "monitorTrigger", + "type": "MonitorTrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonitorType.ts b/packages/datadog-api-client-v2/models/MonitorType.ts index 35daf36891ae..23f391bf330b 100644 --- a/packages/datadog-api-client-v2/models/MonitorType.ts +++ b/packages/datadog-api-client-v2/models/MonitorType.ts @@ -4,55 +4,60 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes from the monitor that triggered the event. - */ +*/ export class MonitorType { /** * The POSIX timestamp of the monitor's creation in nanoseconds. - */ + */ "createdAt"?: number; /** * Monitor group status used when there is no `result_groups`. - */ + */ "groupStatus"?: number; /** * Groups to which the monitor belongs. - */ + */ "groups"?: Array; /** * The monitor ID. - */ + */ "id"?: number; /** * The monitor message. - */ + */ "message"?: string; /** * The monitor's last-modified timestamp. - */ + */ "modified"?: number; /** * The monitor name. - */ + */ "name"?: string; /** * The query that triggers the alert. - */ + */ "query"?: string; /** * A list of tags attached to the monitor. - */ + */ "tags"?: Array; /** * The templated name of the monitor before resolving any template variables. - */ + */ "templatedName"?: string; /** * The monitor type. - */ + */ "type"?: string; /** @@ -71,66 +76,92 @@ export class MonitorType { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", - }, - groupStatus: { - baseName: "group_status", - type: "number", - format: "int32", + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", }, - groups: { - baseName: "groups", - type: "Array", + "groupStatus": { + "baseName": "group_status", + "type": "number", + "format": "int32", }, - id: { - baseName: "id", - type: "number", - format: "int64", + "groups": { + "baseName": "groups", + "type": "Array", }, - message: { - baseName: "message", - type: "string", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - modified: { - baseName: "modified", - type: "number", - format: "int64", + "message": { + "baseName": "message", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "modified": { + "baseName": "modified", + "type": "number", + "format": "int64", }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "query": { + "baseName": "query", + "type": "string", }, - templatedName: { - baseName: "templated_name", - type: "string", + "tags": { + "baseName": "tags", + "type": "Array", }, - type: { - baseName: "type", - type: "string", + "templatedName": { + "baseName": "templated_name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonitorType.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.ts b/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.ts index 0424e25b621d..2dd80b17a307 100644 --- a/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.ts +++ b/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.ts @@ -4,42 +4,47 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cost Attribution by Tag for a given organization. - */ +*/ export class MonthlyCostAttributionAttributes { /** * Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`. - */ + */ "month"?: Date; /** * The name of the organization. - */ + */ "orgName"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The source of the cost attribution tag configuration and the selected tags in the format `::://////`. - */ + */ "tagConfigSource"?: string; /** * Tag keys and values. * A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags * configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started). * In this scenario the API returns the total cost, not broken down by tags. - */ - "tags"?: { [key: string]: Array }; + */ + "tags"?: { [key: string]: Array; }; /** * Shows the most recent hour in the current months for all organizations for which all costs were calculated. - */ + */ "updatedAt"?: string; /** * Fields in Cost Attribution by tag(s). Example: `infra_host_on_demand_cost`, `infra_host_committed_cost`, `infra_host_total_cost`, `infra_host_percentage_in_org`, `infra_host_percentage_in_account`. - */ + */ "values"?: any; /** @@ -58,47 +63,73 @@ export class MonthlyCostAttributionAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - month: { - baseName: "month", - type: "Date", - format: "date-time", - }, - orgName: { - baseName: "org_name", - type: "string", + "month": { + "baseName": "month", + "type": "Date", + "format": "date-time", }, - publicId: { - baseName: "public_id", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - tagConfigSource: { - baseName: "tag_config_source", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - tags: { - baseName: "tags", - type: "{ [key: string]: Array; }", + "tagConfigSource": { + "baseName": "tag_config_source", + "type": "string", }, - updatedAt: { - baseName: "updated_at", - type: "string", + "tags": { + "baseName": "tags", + "type": "{ [key: string]: Array; }", }, - values: { - baseName: "values", - type: "any", + "updatedAt": { + "baseName": "updated_at", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyCostAttributionAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.ts b/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.ts index 5400d48a627e..a78367739507 100644 --- a/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.ts +++ b/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.ts @@ -6,23 +6,28 @@ import { CostAttributionType } from "./CostAttributionType"; import { MonthlyCostAttributionAttributes } from "./MonthlyCostAttributionAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Cost data. - */ +*/ export class MonthlyCostAttributionBody { /** * Cost Attribution by Tag for a given organization. - */ + */ "attributes"?: MonthlyCostAttributionAttributes; /** * Unique ID of the response. - */ + */ "id"?: string; /** * Type of cost attribution data. - */ + */ "type"?: CostAttributionType; /** @@ -41,30 +46,56 @@ export class MonthlyCostAttributionBody { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "MonthlyCostAttributionAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "MonthlyCostAttributionAttributes", }, - type: { - baseName: "type", - type: "CostAttributionType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "CostAttributionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyCostAttributionBody.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.ts b/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.ts index c4ef27afc056..c7e42a85a886 100644 --- a/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.ts +++ b/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.ts @@ -6,19 +6,24 @@ import { CostAttributionAggregatesBody } from "./CostAttributionAggregatesBody"; import { MonthlyCostAttributionPagination } from "./MonthlyCostAttributionPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing document metadata. - */ +*/ export class MonthlyCostAttributionMeta { /** * An array of available aggregates. - */ + */ "aggregates"?: Array; /** * The metadata for the current pagination. - */ + */ "pagination"?: MonthlyCostAttributionPagination; /** @@ -37,26 +42,52 @@ export class MonthlyCostAttributionMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregates: { - baseName: "aggregates", - type: "Array", + "aggregates": { + "baseName": "aggregates", + "type": "Array", }, - pagination: { - baseName: "pagination", - type: "MonthlyCostAttributionPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "MonthlyCostAttributionPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyCostAttributionMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.ts b/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.ts index 4980d6682512..ce8bfc4fab8c 100644 --- a/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.ts +++ b/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata for the current pagination. - */ +*/ export class MonthlyCostAttributionPagination { /** * The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of the `next_record_id`. - */ + */ "nextRecordId"?: string; /** @@ -31,22 +36,48 @@ export class MonthlyCostAttributionPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - nextRecordId: { - baseName: "next_record_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "nextRecordId": { + "baseName": "next_record_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyCostAttributionPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.ts b/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.ts index b16e083ef064..ab0aae7f5c69 100644 --- a/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.ts +++ b/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.ts @@ -6,19 +6,24 @@ import { MonthlyCostAttributionBody } from "./MonthlyCostAttributionBody"; import { MonthlyCostAttributionMeta } from "./MonthlyCostAttributionMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing the monthly cost attribution by tag(s). - */ +*/ export class MonthlyCostAttributionResponse { /** * Response containing cost attribution. - */ + */ "data"?: Array; /** * The object containing document metadata. - */ + */ "meta"?: MonthlyCostAttributionMeta; /** @@ -37,26 +42,52 @@ export class MonthlyCostAttributionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "MonthlyCostAttributionMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "MonthlyCostAttributionMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return MonthlyCostAttributionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NotebookTriggerWrapper.ts b/packages/datadog-api-client-v2/models/NotebookTriggerWrapper.ts index a81328149a4b..fe29382bb175 100644 --- a/packages/datadog-api-client-v2/models/NotebookTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/NotebookTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Notebook-based trigger. - */ +*/ export class NotebookTriggerWrapper { /** * Trigger a workflow from a Notebook. - */ + */ "notebookTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class NotebookTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - notebookTrigger: { - baseName: "notebookTrigger", - type: "any", - required: true, + "notebookTrigger": { + "baseName": "notebookTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotebookTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NotificationRule.ts b/packages/datadog-api-client-v2/models/NotificationRule.ts index 4a90cf34e1e7..ce38502bf500 100644 --- a/packages/datadog-api-client-v2/models/NotificationRule.ts +++ b/packages/datadog-api-client-v2/models/NotificationRule.ts @@ -6,26 +6,31 @@ import { NotificationRuleAttributes } from "./NotificationRuleAttributes"; import { NotificationRulesType } from "./NotificationRulesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Notification rules allow full control over notifications generated by the various Datadog security products. * They allow users to define the conditions under which a notification should be generated (based on rule severities, * rule types, rule tags, and so on), and the targets to notify. * A notification rule is composed of a rule ID, a rule type, and the rule attributes. All fields are required. - */ +*/ export class NotificationRule { /** * Attributes of the notification rule. - */ + */ "attributes": NotificationRuleAttributes; /** * The ID of a notification rule. - */ + */ "id": string; /** * The rule type associated to notification rules. - */ + */ "type": NotificationRulesType; /** @@ -44,33 +49,59 @@ export class NotificationRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "NotificationRuleAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "NotificationRuleAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotificationRulesType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotificationRulesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotificationRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NotificationRuleAttributes.ts b/packages/datadog-api-client-v2/models/NotificationRuleAttributes.ts index f76c333c9b08..e9cb74ec0dfa 100644 --- a/packages/datadog-api-client-v2/models/NotificationRuleAttributes.ts +++ b/packages/datadog-api-client-v2/models/NotificationRuleAttributes.ts @@ -5,48 +5,54 @@ */ import { RuleUser } from "./RuleUser"; import { Selectors } from "./Selectors"; +import { TargetsItem } from "./TargetsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the notification rule. - */ +*/ export class NotificationRuleAttributes { /** * Date as Unix timestamp in milliseconds. - */ + */ "createdAt": number; /** * User creating or modifying a rule. - */ + */ "createdBy": RuleUser; /** * Field used to enable or disable the rule. - */ + */ "enabled": boolean; /** * Date as Unix timestamp in milliseconds. - */ + */ "modifiedAt": number; /** * User creating or modifying a rule. - */ + */ "modifiedBy": RuleUser; /** * Name of the notification rule. - */ + */ "name": string; /** * Selectors are used to filter security issues for which notifications should be generated. * Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. * Only the trigger_source field is required. - */ + */ "selectors": Selectors; /** * List of recipients to notify when a notification rule is triggered. Many different target types are supported, * such as email addresses, Slack channels, and PagerDuty services. * The appropriate integrations need to be properly configured to send notifications to the specified targets. - */ + */ "targets": Array; /** * Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation. @@ -54,11 +60,11 @@ export class NotificationRuleAttributes { * Notifications are only sent for new issues discovered during the window. * Time aggregation is only available for vulnerability-based notification rules. When omitted or set to 0, no aggregation * is done. - */ + */ "timeAggregation"?: number; /** * Version of the notification rule. It is updated when the rule is modified. - */ + */ "version": number; /** @@ -77,71 +83,97 @@ export class NotificationRuleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "number", - required: true, - format: "int64", - }, - createdBy: { - baseName: "created_by", - type: "RuleUser", - required: true, + "createdAt": { + "baseName": "created_at", + "type": "number", + "required": true, + "format": "int64", }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "createdBy": { + "baseName": "created_by", + "type": "RuleUser", + "required": true, }, - modifiedAt: { - baseName: "modified_at", - type: "number", - required: true, - format: "int64", + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - modifiedBy: { - baseName: "modified_by", - type: "RuleUser", - required: true, + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "required": true, + "format": "int64", }, - name: { - baseName: "name", - type: "string", - required: true, + "modifiedBy": { + "baseName": "modified_by", + "type": "RuleUser", + "required": true, }, - selectors: { - baseName: "selectors", - type: "Selectors", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - targets: { - baseName: "targets", - type: "Array", - required: true, + "selectors": { + "baseName": "selectors", + "type": "Selectors", + "required": true, }, - timeAggregation: { - baseName: "time_aggregation", - type: "number", - format: "int64", + "targets": { + "baseName": "targets", + "type": "Array", + "required": true, }, - version: { - baseName: "version", - type: "number", - required: true, - format: "int64", + "timeAggregation": { + "baseName": "time_aggregation", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotificationRuleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NotificationRuleResponse.ts b/packages/datadog-api-client-v2/models/NotificationRuleResponse.ts index f71e3af168c0..99eeb46f1e22 100644 --- a/packages/datadog-api-client-v2/models/NotificationRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/NotificationRuleResponse.ts @@ -5,18 +5,23 @@ */ import { NotificationRule } from "./NotificationRule"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object which includes a notification rule. - */ +*/ export class NotificationRuleResponse { /** * Notification rules allow full control over notifications generated by the various Datadog security products. * They allow users to define the conditions under which a notification should be generated (based on rule severities, * rule types, rule tags, and so on), and the targets to notify. * A notification rule is composed of a rule ID, a rule type, and the rule attributes. All fields are required. - */ + */ "data"?: NotificationRule; /** @@ -35,22 +40,48 @@ export class NotificationRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "NotificationRule", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "NotificationRule", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NotificationRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NotificationRulesType.ts b/packages/datadog-api-client-v2/models/NotificationRulesType.ts index 15cb5d43425d..ee6511bbcd0f 100644 --- a/packages/datadog-api-client-v2/models/NotificationRulesType.ts +++ b/packages/datadog-api-client-v2/models/NotificationRulesType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The rule type associated to notification rules. - */ +*/ export type NotificationRulesType = typeof NOTIFICATION_RULES | UnparsedObject; -export const NOTIFICATION_RULES = "notification_rules"; +export const NOTIFICATION_RULES = 'notification_rules'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/NullableRelationshipToUser.ts b/packages/datadog-api-client-v2/models/NullableRelationshipToUser.ts index 8312b77bcef2..80fd5e56f47e 100644 --- a/packages/datadog-api-client-v2/models/NullableRelationshipToUser.ts +++ b/packages/datadog-api-client-v2/models/NullableRelationshipToUser.ts @@ -5,16 +5,21 @@ */ import { NullableRelationshipToUserData } from "./NullableRelationshipToUserData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user. - */ +*/ export class NullableRelationshipToUser { /** * Relationship to user object. - */ - "data": NullableRelationshipToUserData | null; + */ + "data": NullableRelationshipToUserData|null; /** * A container for additional, undeclared properties. @@ -32,23 +37,49 @@ export class NullableRelationshipToUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "NullableRelationshipToUserData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "NullableRelationshipToUserData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NullableRelationshipToUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NullableRelationshipToUserData.ts b/packages/datadog-api-client-v2/models/NullableRelationshipToUserData.ts index 121c1c6ce373..c946bd8a665b 100644 --- a/packages/datadog-api-client-v2/models/NullableRelationshipToUserData.ts +++ b/packages/datadog-api-client-v2/models/NullableRelationshipToUserData.ts @@ -5,19 +5,24 @@ */ import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user object. - */ +*/ export class NullableRelationshipToUserData { /** * A unique identifier that represents the user. - */ + */ "id": string; /** * Users resource type. - */ + */ "type": UsersType; /** @@ -36,28 +41,54 @@ export class NullableRelationshipToUserData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UsersType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NullableRelationshipToUserData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NullableUserRelationship.ts b/packages/datadog-api-client-v2/models/NullableUserRelationship.ts index 8bdbff55cc71..2586f134758d 100644 --- a/packages/datadog-api-client-v2/models/NullableUserRelationship.ts +++ b/packages/datadog-api-client-v2/models/NullableUserRelationship.ts @@ -5,16 +5,21 @@ */ import { NullableUserRelationshipData } from "./NullableUserRelationshipData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user. - */ +*/ export class NullableUserRelationship { /** * Relationship to user object. - */ - "data": NullableUserRelationshipData | null; + */ + "data": NullableUserRelationshipData|null; /** * A container for additional, undeclared properties. @@ -32,23 +37,49 @@ export class NullableUserRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "NullableUserRelationshipData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "NullableUserRelationshipData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NullableUserRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/NullableUserRelationshipData.ts b/packages/datadog-api-client-v2/models/NullableUserRelationshipData.ts index cb27021b2529..8041d6a21705 100644 --- a/packages/datadog-api-client-v2/models/NullableUserRelationshipData.ts +++ b/packages/datadog-api-client-v2/models/NullableUserRelationshipData.ts @@ -5,19 +5,24 @@ */ import { UserResourceType } from "./UserResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user object. - */ +*/ export class NullableUserRelationshipData { /** * A unique identifier that represents the user. - */ + */ "id": string; /** * User resource type. - */ + */ "type": UserResourceType; /** @@ -36,28 +41,54 @@ export class NullableUserRelationshipData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UserResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return NullableUserRelationshipData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 5b261bdb027b..1b01814d183b 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -1,3 +1,4 @@ + import { APIErrorResponse } from "./APIErrorResponse"; import { APIKeyCreateAttributes } from "./APIKeyCreateAttributes"; import { APIKeyCreateData } from "./APIKeyCreateData"; @@ -1639,11 +1640,7 @@ import { WorklflowGetInstanceResponseData } from "./WorklflowGetInstanceResponse import { WorklflowGetInstanceResponseDataAttributes } from "./WorklflowGetInstanceResponseDataAttributes"; import { XRayServicesIncludeAll } from "./XRayServicesIncludeAll"; import { XRayServicesIncludeOnly } from "./XRayServicesIncludeOnly"; -import { - dateFromRFC3339String, - dateToRFC3339String, - UnparsedObject, -} from "../../datadog-api-client-common/util"; +import { dateFromRFC3339String, dateToRFC3339String, UnparsedObject } from "../../datadog-api-client-common/util"; import { logger } from "../../../logger"; const primitives = [ @@ -1653,7 +1650,7 @@ const primitives = [ "integer", "long", "float", - "number", + "number" ]; const ARRAY_PREFIX = "Array<"; @@ -1663,3062 +1660,2133 @@ const TUPLE_PREFIX = "["; const supportedMediaTypes: { [mediaType: string]: number } = { "application/json": Infinity, "text/json": 100, - "application/octet-stream": 0, -}; + "application/octet-stream": 0 +} -const enumsMap: { [key: string]: any[] } = { - APIKeysSort: [ - "created_at", - "-created_at", - "last4", - "-last4", - "modified_at", - "-modified_at", - "name", - "-name", - ], - APIKeysType: ["api_keys"], - AWSAccountPartition: ["aws", "aws-cn", "aws-us-gov"], - AWSAccountType: ["account"], - AWSAssumeRoleType: ["AWSAssumeRole"], - AWSIntegrationType: ["AWS"], - AWSLogsServicesResponseDataType: ["logs_services"], - AWSNamespacesResponseDataType: ["namespaces"], - AWSNewExternalIDResponseDataType: ["external_id"], - ActionConnectionDataType: ["action_connection"], - ActionQueryType: ["action"], - ActiveBillingDimensionsType: ["billing_dimensions"], - ApmRetentionFilterType: ["apm_retention_filter"], - AppBuilderEventName: [ - "pageChange", - "tableRowClick", - "_tableRowButtonClick", - "change", - "submit", - "click", - "toggleOpen", - "close", - "open", - "executionFinished", - ], - AppBuilderEventType: [ - "custom", - "setComponentState", - "triggerQuery", - "openModal", - "closeModal", - "openUrl", - "downloadFile", - "setStateVariableValue", - ], - AppDefinitionType: ["appDefinitions"], - AppDeploymentType: ["deployment"], - ApplicationKeysSort: [ - "created_at", - "-created_at", - "last4", - "-last4", - "name", - "-name", - ], - ApplicationKeysType: ["application_keys"], - ApplicationSecurityWafCustomRuleActionAction: [ - "redirect_request", - "block_request", - ], - ApplicationSecurityWafCustomRuleConditionInputAddress: [ - "server.db.statement", - "server.io.fs.file", - "server.io.net.url", - "server.sys.shell.cmd", - "server.request.method", - "server.request.uri.raw", - "server.request.path_params", - "server.request.query", - "server.request.headers.no_cookies", - "server.request.cookies", - "server.request.trailers", - "server.request.body", - "server.response.status", - "server.response.headers.no_cookies", - "server.response.trailers", - "grpc.server.request.metadata", - "grpc.server.request.message", - "grpc.server.method", - "graphql.server.all_resolvers", - "usr.id", - "http.client_ip", - ], - ApplicationSecurityWafCustomRuleConditionOperator: [ - "match_regex", - "!match_regex", - "phrase_match", - "!phrase_match", - "is_xss", - "is_sqli", - "exact_match", - "!exact_match", - "ip_match", - "!ip_match", - "capture_data", - ], - ApplicationSecurityWafCustomRuleTagsCategory: [ - "attack_attempt", - "business_logic", - "security_responses", - ], - ApplicationSecurityWafCustomRuleType: ["custom_rule"], - ApplicationSecurityWafExclusionFilterOnMatch: ["monitor"], - ApplicationSecurityWafExclusionFilterType: ["exclusion_filter"], - AppsSortField: [ - "name", - "created_at", - "updated_at", - "user_name", - "-name", - "-created_at", - "-updated_at", - "-user_name", - ], - AssetEntityType: ["assets"], - AssetType: ["Repository", "Service", "Host", "HostImage", "Image"], - AuditLogsEventType: ["audit"], - AuditLogsResponseStatus: ["done", "timeout"], - AuditLogsSort: ["timestamp", "-timestamp"], - AuthNMappingResourceType: ["role", "team"], - AuthNMappingsSort: [ - "created_at", - "-created_at", - "role_id", - "-role_id", - "saml_assertion_attribute_id", - "-saml_assertion_attribute_id", - "role.name", - "-role.name", - "saml_assertion_attribute.attribute_key", - "-saml_assertion_attribute.attribute_key", - "saml_assertion_attribute.attribute_value", - "-saml_assertion_attribute.attribute_value", - ], - AuthNMappingsType: ["authn_mappings"], - AwsCURConfigPatchRequestType: ["aws_cur_config_patch_request"], - AwsCURConfigPostRequestType: ["aws_cur_config_post_request"], - AwsCURConfigType: ["aws_cur_config"], - AwsOnDemandType: ["aws_resource"], - AwsScanOptionsType: ["aws_scan_options"], - AzureUCConfigPairType: ["azure_uc_configs"], - AzureUCConfigPatchRequestType: ["azure_uc_config_patch_request"], - AzureUCConfigPostRequestType: ["azure_uc_config_post_request"], - BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus: [ - "OK", - "NOT_FOUND", - ], - CIAppAggregateSortType: ["alphabetical", "measure"], - CIAppAggregationFunction: [ - "count", - "cardinality", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - "median", - "latest", - "earliest", - "most_frequent", - "delta", - ], - CIAppCIErrorDomain: ["provider", "user", "unknown"], - CIAppComputeType: ["timeseries", "total"], - CIAppCreatePipelineEventRequestDataType: ["cipipeline_resource_request"], - CIAppPipelineEventJobLevel: ["job"], - CIAppPipelineEventJobStatus: ["success", "error", "canceled", "skipped"], - CIAppPipelineEventPipelineInProgressStatus: ["running"], - CIAppPipelineEventPipelineLevel: ["pipeline"], - CIAppPipelineEventPipelineStatus: [ - "success", - "error", - "canceled", - "skipped", - "blocked", - ], - CIAppPipelineEventStageLevel: ["stage"], - CIAppPipelineEventStageStatus: ["success", "error", "canceled", "skipped"], - CIAppPipelineEventStepLevel: ["step"], - CIAppPipelineEventStepStatus: ["success", "error"], - CIAppPipelineEventTypeName: ["cipipeline"], - CIAppPipelineLevel: ["pipeline", "stage", "job", "step", "custom"], - CIAppResponseStatus: ["done", "timeout"], - CIAppSort: ["timestamp", "-timestamp"], - CIAppSortOrder: ["asc", "desc"], - CIAppTestEventTypeName: ["citest"], - CIAppTestLevel: ["session", "module", "suite", "test"], - CSMAgentsType: ["datadog_agent"], - Case3rdPartyTicketStatus: ["IN_PROGRESS", "COMPLETED", "FAILED"], - CasePriority: ["NOT_DEFINED", "P1", "P2", "P3", "P4", "P5"], - CaseResourceType: ["case"], - CaseSortableField: ["created_at", "priority", "status"], - CaseStatus: ["OPEN", "IN_PROGRESS", "CLOSED"], - CaseType: ["STANDARD"], - ChangeEventCustomAttributesAuthorType: ["user", "system"], - ChangeEventCustomAttributesChangedResourceType: [ - "feature_flag", - "configuration", - ], - ChangeEventCustomAttributesImpactedResourcesItemsType: ["service"], - CloudConfigurationRuleType: ["cloud_configuration"], - CloudWorkloadSecurityAgentRuleType: ["agent_rule"], - CloudflareAccountType: ["cloudflare-accounts"], - CompletionConditionOperator: [ - "OPERATOR_EQUAL", - "OPERATOR_NOT_EQUAL", - "OPERATOR_GREATER_THAN", - "OPERATOR_LESS_THAN", - "OPERATOR_GREATER_THAN_OR_EQUAL_TO", - "OPERATOR_LESS_THAN_OR_EQUAL_TO", - "OPERATOR_CONTAINS", - "OPERATOR_DOES_NOT_CONTAIN", - "OPERATOR_IS_NULL", - "OPERATOR_IS_NOT_NULL", - "OPERATOR_IS_EMPTY", - "OPERATOR_IS_NOT_EMPTY", - ], - ComponentGridType: ["grid"], - ComponentType: [ - "table", - "textInput", - "textArea", - "button", - "text", - "select", - "modal", - "schemaForm", - "checkbox", - "tabs", - "vegaChart", - "radioButtons", - "numberInput", - "fileInput", - "jsonInput", - "gridCell", - "dateRangePicker", - "search", - "container", - "calloutValue", - ], - ConfluentAccountType: ["confluent-cloud-accounts"], - ConfluentResourceType: ["confluent-cloud-resources"], - ConnectionEnvEnv: ["default"], - ContainerGroupType: ["container_group"], - ContainerImageGroupType: ["container_image_group"], - ContainerImageMetaPageType: ["cursor_limit"], - ContainerImageType: ["container_image"], - ContainerMetaPageType: ["cursor_limit"], - ContainerType: ["container"], - ContentEncoding: ["identity", "gzip", "deflate"], - ConvertJobResultsToSignalsDataType: [ - "historicalDetectionsJobResultSignalConversion", - ], - CostAttributionType: ["cost_by_tag"], - CostByOrgType: ["cost_by_org"], - CreateDataDeletionRequestBodyDataType: ["create_deletion_req"], - CustomConnectionType: ["custom_connections"], - CustomDestinationAttributeTagsRestrictionListType: [ - "ALLOW_LIST", - "BLOCK_LIST", - ], - CustomDestinationForwardDestinationElasticsearchType: ["elasticsearch"], - CustomDestinationForwardDestinationHttpType: ["http"], - CustomDestinationForwardDestinationSplunkType: ["splunk_hec"], - CustomDestinationHttpDestinationAuthBasicType: ["basic"], - CustomDestinationHttpDestinationAuthCustomHeaderType: ["custom_header"], - CustomDestinationResponseForwardDestinationElasticsearchType: [ - "elasticsearch", - ], - CustomDestinationResponseForwardDestinationHttpType: ["http"], - CustomDestinationResponseForwardDestinationSplunkType: ["splunk_hec"], - CustomDestinationResponseHttpDestinationAuthBasicType: ["basic"], - CustomDestinationResponseHttpDestinationAuthCustomHeaderType: [ - "custom_header", - ], - CustomDestinationType: ["custom_destination"], - DORADeploymentType: ["dora_deployment"], - DORAIncidentType: ["dora_incident"], - DashboardType: [ - "custom_timeboard", - "custom_screenboard", - "integration_screenboard", - "integration_timeboard", - "host_timeboard", - ], - DataTransformType: ["dataTransform"], - DetailedFindingType: ["detailed_finding"], - DomainAllowlistType: ["domain_allowlist"], - DowntimeIncludedMonitorType: ["monitors"], - DowntimeNotifyEndStateActions: ["canceled", "expired"], - DowntimeNotifyEndStateTypes: ["alert", "no data", "warn"], - DowntimeResourceType: ["downtime"], - DowntimeStatus: ["active", "canceled", "ended", "scheduled"], - EntityResponseIncludedIncidentType: ["incident"], - EntityResponseIncludedOncallType: ["oncall"], - EntityResponseIncludedRawSchemaType: ["rawSchema"], - EntityResponseIncludedRelatedEntityType: ["relatedEntity"], - EntityResponseIncludedSchemaType: ["schema"], - EntityV3APIKind: ["api"], - EntityV3APIVersion: ["v3"], - EntityV3DatastoreKind: ["datastore"], - EntityV3QueueKind: ["queue"], - EntityV3ServiceKind: ["service"], - EntityV3SystemKind: ["system"], - EventCategory: ["change"], - EventCreateRequestType: ["event"], - EventPriority: ["normal", "low"], - EventStatusType: [ - "failure", - "error", - "warning", - "info", - "success", - "user_update", - "recommendation", - "snapshot", - ], - EventType: ["event"], - EventsAggregation: [ - "count", - "cardinality", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - ], - EventsDataSource: ["logs", "rum"], - EventsSort: ["timestamp", "-timestamp"], - EventsSortType: ["alphabetical", "measure"], - FastlyAccountType: ["fastly-accounts"], - FastlyServiceType: ["fastly-services"], - FindingEvaluation: ["pass", "fail"], - FindingMuteReason: [ - "PENDING_FIX", - "FALSE_POSITIVE", - "ACCEPTED_RISK", - "NO_PENDING_FIX", - "HUMAN_ERROR", - "NO_LONGER_ACCEPTED_RISK", - "OTHER", - ], - FindingStatus: ["critical", "high", "medium", "low", "info"], - FindingType: ["finding"], - FindingVulnerabilityType: [ - "misconfiguration", - "attack_path", - "identity_risk", - "api_security", - ], - GCPSTSDelegateAccountType: ["gcp_sts_delegate"], - GCPServiceAccountType: ["gcp_service_account"], - GetRuleVersionHistoryDataType: ["GetRuleVersionHistoryResponse"], - GetTeamMembershipsSort: [ - "manager_name", - "-manager_name", - "name", - "-name", - "handle", - "-handle", - "email", - "-email", - ], - HTTPIntegrationType: ["HTTP"], - HTTPTokenAuthType: ["HTTPTokenAuth"], - HistoricalJobDataType: ["historicalDetectionsJob"], - HourlyUsageType: [ - "app_sec_host_count", - "observability_pipelines_bytes_processed", - "lambda_traced_invocations_count", - ], - IPAllowlistEntryType: ["ip_allowlist_entry"], - IPAllowlistType: ["ip_allowlist"], - IncidentAttachmentAttachmentType: ["link", "postmortem"], - IncidentAttachmentLinkAttachmentType: ["link"], - IncidentAttachmentPostmortemAttachmentType: ["postmortem"], - IncidentAttachmentRelatedObject: ["users"], - IncidentAttachmentType: ["incident_attachments"], - IncidentFieldAttributesSingleValueType: ["dropdown", "textbox"], - IncidentFieldAttributesValueType: [ - "multiselect", - "textarray", - "metrictag", - "autocomplete", - ], - IncidentImpactsType: ["incident_impacts"], - IncidentIntegrationMetadataType: ["incident_integrations"], - IncidentPostmortemType: ["incident_postmortems"], - IncidentRelatedObject: ["users", "attachments"], - IncidentRespondersType: ["incident_responders"], - IncidentSearchResultsType: ["incidents_search_results"], - IncidentSearchSortOrder: ["created", "-created"], - IncidentServiceType: ["services"], - IncidentSeverity: ["UNKNOWN", "SEV-1", "SEV-2", "SEV-3", "SEV-4", "SEV-5"], - IncidentTeamType: ["teams"], - IncidentTimelineCellMarkdownContentType: ["markdown"], - IncidentTodoAnonymousAssigneeSource: ["slack", "microsoft_teams"], - IncidentTodoType: ["incident_todos"], - IncidentType: ["incidents"], - IncidentTypeType: ["incident_types"], - IncidentUserDefinedFieldType: ["user_defined_field"], - IncludeType: ["schema", "raw_schema", "oncall", "incident", "relation"], - InputSchemaParametersType: [ - "STRING", - "NUMBER", - "BOOLEAN", - "OBJECT", - "ARRAY_STRING", - "ARRAY_NUMBER", - "ARRAY_BOOLEAN", - "ARRAY_OBJECT", - ], - InterfaceAttributesStatus: ["up", "down", "warning", "off"], - LeakedKeyType: ["leaked_keys"], - ListTeamsInclude: ["team_links", "user_team_permissions"], - ListTeamsSort: ["name", "-name", "user_count", "-user_count"], - LogType: ["log"], - LogsAggregateResponseStatus: ["done", "timeout"], - LogsAggregateSortType: ["alphabetical", "measure"], - LogsAggregationFunction: [ - "count", - "cardinality", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - "median", - ], - LogsArchiveDestinationAzureType: ["azure"], - LogsArchiveDestinationGCSType: ["gcs"], - LogsArchiveDestinationS3Type: ["s3"], - LogsArchiveEncryptionS3Type: ["NO_OVERRIDE", "SSE_S3", "SSE_KMS"], - LogsArchiveOrderDefinitionType: ["archive_order"], - LogsArchiveState: ["UNKNOWN", "WORKING", "FAILING", "WORKING_AUTH_LEGACY"], - LogsArchiveStorageClassS3Type: [ - "STANDARD", - "STANDARD_IA", - "ONEZONE_IA", - "INTELLIGENT_TIERING", - "GLACIER_IR", - ], - LogsComputeType: ["timeseries", "total"], - LogsMetricComputeAggregationType: ["count", "distribution"], - LogsMetricResponseComputeAggregationType: ["count", "distribution"], - LogsMetricType: ["logs_metrics"], - LogsSort: ["timestamp", "-timestamp"], - LogsSortOrder: ["asc", "desc"], - LogsStorageTier: ["indexes", "online-archives", "flex"], - MetricActiveConfigurationType: ["actively_queried_configurations"], - MetricBulkConfigureTagsType: ["metric_bulk_configure_tags"], - MetricContentEncoding: ["deflate", "zstd1", "gzip"], - MetricCustomSpaceAggregation: ["avg", "max", "min", "sum"], - MetricCustomTimeAggregation: ["avg", "count", "max", "min", "sum"], - MetricDashboardType: ["dashboards"], - MetricDistinctVolumeType: ["distinct_metric_volumes"], - MetricEstimateResourceType: ["metric_cardinality_estimate"], - MetricEstimateType: ["count_or_gauge", "distribution", "percentile"], - MetricIngestedIndexedVolumeType: ["metric_volumes"], - MetricIntakeType: [0, 1, 2, 3], - MetricMetaPageType: ["cursor_limit"], - MetricMonitorType: ["monitors"], - MetricNotebookType: ["notebooks"], - MetricSLOType: ["slos"], - MetricTagConfigurationMetricTypeCategory: [ - "non_distribution", - "distribution", - ], - MetricTagConfigurationMetricTypes: ["gauge", "count", "rate", "distribution"], - MetricTagConfigurationType: ["manage_tags"], - MetricType: ["metrics"], - MetricsAggregator: [ - "avg", - "min", - "max", - "sum", - "last", - "percentile", - "mean", - "l2norm", - "area", - ], - MetricsDataSource: ["metrics", "cloud_cost"], - MicrosoftTeamsChannelInfoType: ["ms-teams-channel-info"], - MicrosoftTeamsTenantBasedHandleInfoType: [ - "ms-teams-tenant-based-handle-info", - ], - MicrosoftTeamsTenantBasedHandleType: ["tenant-based-handle"], - MicrosoftTeamsWorkflowsWebhookHandleType: ["workflows-webhook-handle"], - MonitorConfigPolicyResourceType: ["monitor-config-policy"], - MonitorConfigPolicyType: ["tag"], - MonitorDowntimeMatchResourceType: ["downtime_match"], - NotificationRulesType: ["notification_rules"], - OktaAccountType: ["okta-accounts"], - OnDemandConcurrencyCapType: ["on_demand_concurrency_cap"], - OpsgenieServiceRegionType: ["us", "eu", "custom"], - OpsgenieServiceType: ["opsgenie-service"], - OrderDirection: ["asc", "desc"], - OrgConfigType: ["org_configs"], - OrganizationsType: ["orgs"], - OutcomeType: ["outcome"], - OutcomesBatchType: ["batched-outcome"], - OutputSchemaParametersType: [ - "STRING", - "NUMBER", - "BOOLEAN", - "OBJECT", - "ARRAY_STRING", - "ARRAY_NUMBER", - "ARRAY_BOOLEAN", - "ARRAY_OBJECT", - ], - PermissionsType: ["permissions"], - ProcessSummaryType: ["process"], - ProjectResourceType: ["project"], - ProjectedCostType: ["projected_cost"], - QuerySortOrder: ["asc", "desc"], - RUMAggregateSortType: ["alphabetical", "measure"], - RUMAggregationFunction: [ - "count", - "cardinality", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - "median", - ], - RUMApplicationCreateType: ["rum_application_create"], - RUMApplicationListType: ["rum_application"], - RUMApplicationType: ["rum_application"], - RUMApplicationUpdateType: ["rum_application_update"], - RUMComputeType: ["timeseries", "total"], - RUMEventType: ["rum"], - RUMResponseStatus: ["done", "timeout"], - RUMSort: ["timestamp", "-timestamp"], - RUMSortOrder: ["asc", "desc"], - ReadinessGateThresholdType: ["ANY", "ALL"], - RelationType: [ - "RelationTypeOwns", - "RelationTypeOwnedBy", - "RelationTypeDependsOn", - "RelationTypeDependencyOf", - "RelationTypePartsOf", - "RelationTypeHasPart", - "RelationTypeOtherOwns", - "RelationTypeOtherOwnedBy", - "RelationTypeImplementedBy", - "RelationTypeImplements", - ], - RestrictionPolicyType: ["restriction_policy"], - RetentionFilterAllType: [ - "spans-sampling-processor", - "spans-errors-sampling-processor", - "spans-appsec-sampling-processor", - ], - RetentionFilterType: ["spans-sampling-processor"], - RetryStrategyKind: ["RETRY_STRATEGY_LINEAR"], - RolesSort: [ - "name", - "-name", - "modified_at", - "-modified_at", - "user_count", - "-user_count", - ], - RolesType: ["roles"], - RuleSeverity: ["critical", "high", "medium", "low", "unknown", "info"], - RuleType: ["rule"], - RuleTypesItems: [ - "application_security", - "log_detection", - "workload_security", - "signal_correlation", - "cloud_configuration", - "infrastructure_configuration", - "application_code_vulnerability", - "application_library_vulnerability", - "attack_path", - "container_image_vulnerability", - "identity_risk", - "misconfiguration", - "api_security", - ], - RuleVersionUpdateType: ["create", "update", "delete"], - RumMetricComputeAggregationType: ["count", "distribution"], - RumMetricEventType: [ - "session", - "view", - "action", - "error", - "resource", - "long_task", - "vital", - ], - RumMetricType: ["rum_metrics"], - RumMetricUniquenessWhen: ["match", "end"], - RumRetentionFilterEventType: [ - "session", - "view", - "action", - "error", - "resource", - "long_task", - "vital", - ], - RumRetentionFilterType: ["retention_filters"], - RunHistoricalJobRequestDataType: ["historicalDetectionsJobCreate"], - SAMLAssertionAttributesType: ["saml_assertion_attributes"], - SBOMComponentType: [ - "application", - "container", - "data", - "device", - "device-driver", - "file", - "firmware", - "framework", - "library", - "machine-learning-model", - "operating-system", - "platform", - ], - SBOMType: ["sboms"], - SLOReportInterval: ["daily", "weekly", "monthly"], - SLOReportStatus: [ - "in_progress", - "completed", - "completed_with_errors", - "failed", - ], - ScalarColumnTypeGroup: ["group"], - ScalarColumnTypeNumber: ["number"], - ScalarFormulaRequestType: ["scalar_request"], - ScalarFormulaResponseType: ["scalar_response"], - ScorecardType: ["scorecard"], - SecurityFilterFilteredDataType: ["logs"], - SecurityFilterType: ["security_filters"], - SecurityMonitoringFilterAction: ["require", "suppress"], - SecurityMonitoringRuleCaseActionType: ["block_ip", "block_user"], - SecurityMonitoringRuleDetectionMethod: [ - "threshold", - "new_value", - "anomaly_detection", - "impossible_travel", - "hardcoded", - "third_party", - "anomaly_threshold", - ], - SecurityMonitoringRuleEvaluationWindow: [ - 0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400, - ], - SecurityMonitoringRuleHardcodedEvaluatorType: ["log4shell"], - SecurityMonitoringRuleKeepAlive: [ - 0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400, - ], - SecurityMonitoringRuleMaxSignalDuration: [ - 0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400, - ], - SecurityMonitoringRuleNewValueOptionsForgetAfter: [1, 2, 7, 14, 21, 28], - SecurityMonitoringRuleNewValueOptionsLearningDuration: [0, 1, 7], - SecurityMonitoringRuleNewValueOptionsLearningMethod: [ - "duration", - "threshold", - ], - SecurityMonitoringRuleNewValueOptionsLearningThreshold: [0, 1], - SecurityMonitoringRuleQueryAggregation: [ - "count", - "cardinality", - "sum", - "max", - "new_value", - "geo_data", - "event_count", - "none", - ], - SecurityMonitoringRuleSeverity: ["info", "low", "medium", "high", "critical"], - SecurityMonitoringRuleTypeCreate: [ - "application_security", - "log_detection", - "workload_security", - ], - SecurityMonitoringRuleTypeRead: [ - "log_detection", - "infrastructure_configuration", - "workload_security", - "cloud_configuration", - "application_security", - ], - SecurityMonitoringRuleTypeTest: ["log_detection"], - SecurityMonitoringSignalArchiveReason: [ - "none", - "false_positive", - "testing_or_maintenance", - "investigated_case_opened", - "other", - ], - SecurityMonitoringSignalMetadataType: ["signal_metadata"], - SecurityMonitoringSignalRuleType: ["signal_correlation"], - SecurityMonitoringSignalState: ["open", "archived", "under_review"], - SecurityMonitoringSignalType: ["signal"], - SecurityMonitoringSignalsSort: ["timestamp", "-timestamp"], - SecurityMonitoringStandardDataSource: ["logs", "audit"], - SecurityMonitoringSuppressionType: ["suppressions"], - SensitiveDataScannerConfigurationType: [ - "sensitive_data_scanner_configuration", - ], - SensitiveDataScannerGroupType: ["sensitive_data_scanner_group"], - SensitiveDataScannerProduct: ["logs", "rum", "events", "apm"], - SensitiveDataScannerRuleType: ["sensitive_data_scanner_rule"], - SensitiveDataScannerStandardPatternType: [ - "sensitive_data_scanner_standard_pattern", - ], - SensitiveDataScannerTextReplacementType: [ - "none", - "hash", - "replacement_string", - "partial_replacement_from_beginning", - "partial_replacement_from_end", - ], - ServiceDefinitionSchemaVersions: ["v1", "v2", "v2.1", "v2.2"], - ServiceDefinitionV1ResourceType: [ - "doc", - "wiki", - "runbook", - "url", - "repo", - "dashboard", - "oncall", - "code", - "link", - ], - ServiceDefinitionV1Version: ["v1"], - ServiceDefinitionV2Dot1EmailType: ["email"], - ServiceDefinitionV2Dot1LinkType: [ - "doc", - "repo", - "runbook", - "dashboard", - "other", - ], - ServiceDefinitionV2Dot1MSTeamsType: ["microsoft-teams"], - ServiceDefinitionV2Dot1OpsgenieRegion: ["US", "EU"], - ServiceDefinitionV2Dot1SlackType: ["slack"], - ServiceDefinitionV2Dot1Version: ["v2.1"], - ServiceDefinitionV2Dot2OpsgenieRegion: ["US", "EU"], - ServiceDefinitionV2Dot2Version: ["v2.2"], - ServiceDefinitionV2EmailType: ["email"], - ServiceDefinitionV2LinkType: [ - "doc", - "wiki", - "runbook", - "url", - "repo", - "dashboard", - "oncall", - "code", - "link", - ], - ServiceDefinitionV2MSTeamsType: ["microsoft-teams"], - ServiceDefinitionV2OpsgenieRegion: ["US", "EU"], - ServiceDefinitionV2SlackType: ["slack"], - ServiceDefinitionV2Version: ["v2"], - SortDirection: ["desc", "asc"], - SpansAggregateBucketType: ["bucket"], - SpansAggregateRequestType: ["aggregate_request"], - SpansAggregateResponseStatus: ["done", "timeout"], - SpansAggregateSortType: ["alphabetical", "measure"], - SpansAggregationFunction: [ - "count", - "cardinality", - "pc75", - "pc90", - "pc95", - "pc98", - "pc99", - "sum", - "min", - "max", - "avg", - "median", - ], - SpansComputeType: ["timeseries", "total"], - SpansListRequestType: ["search_request"], - SpansMetricComputeAggregationType: ["count", "distribution"], - SpansMetricType: ["spans_metrics"], - SpansSort: ["timestamp", "-timestamp"], - SpansSortOrder: ["asc", "desc"], - SpansType: ["spans"], - SpecVersion: ["1.0", "1.1", "1.2", "1.3", "1.4", "1.5"], - State: ["pass", "fail", "skip"], - StateVariableType: ["stateVariable"], - TeamLinkType: ["team_links"], - TeamPermissionSettingSerializerAction: ["manage_membership", "edit"], - TeamPermissionSettingType: ["team_permission_settings"], - TeamPermissionSettingValue: [ - "admins", - "members", - "organization", - "user_access_manage", - "teams_manage", - ], - TeamType: ["team"], - TeamsField: [ - "id", - "name", - "handle", - "summary", - "description", - "avatar", - "banner", - "visible_modules", - "hidden_modules", - "created_at", - "modified_at", - "user_count", - "link_count", - "team_links", - "user_team_permissions", - ], - TimeseriesFormulaRequestType: ["timeseries_request"], - TimeseriesFormulaResponseType: ["timeseries_response"], - TokenType: ["SECRET"], - TriggerSource: ["security_findings", "security_signals"], - UsageTimeSeriesType: ["usage_timeseries"], - UserInvitationsType: ["user_invitations"], - UserResourceType: ["user"], - UserTeamPermissionType: ["user_team_permissions"], - UserTeamRole: ["admin"], - UserTeamTeamType: ["team"], - UserTeamType: ["team_memberships"], - UserTeamUserType: ["users"], - UsersType: ["users"], - VulnerabilitiesType: ["vulnerabilities"], - VulnerabilityEcosystem: [ - "PyPI", - "Maven", - "NuGet", - "Npm", - "RubyGems", - "Go", - "Packagist", - "Ddeb", - "Rpm", - "Apk", - "Windows", - ], - VulnerabilitySeverity: [ - "Unknown", - "None", - "Low", - "Medium", - "High", - "Critical", - ], - VulnerabilityStatus: [ - "Open", - "Muted", - "Remediated", - "InProgress", - "AutoClosed", - ], - VulnerabilityTool: ["IAST", "SCA", "Infra"], - VulnerabilityType: [ - "AdminConsoleActive", - "CodeInjection", - "CommandInjection", - "ComponentWithKnownVulnerability", - "DangerousWorkflows", - "DefaultAppDeployed", - "DefaultHtmlEscapeInvalid", - "DirectoryListingLeak", - "EmailHtmlInjection", - "EndOfLife", - "HardcodedPassword", - "HardcodedSecret", - "HeaderInjection", - "HstsHeaderMissing", - "InsecureAuthProtocol", - "InsecureCookie", - "InsecureJspLayout", - "LdapInjection", - "MaliciousPackage", - "MandatoryRemediation", - "NoHttpOnlyCookie", - "NoSameSiteCookie", - "NoSqlMongoDbInjection", - "PathTraversal", - "ReflectionInjection", - "RiskyLicense", - "SessionRewriting", - "SessionTimeout", - "SqlInjection", - "Ssrf", - "StackTraceLeak", - "TrustBoundaryViolation", - "Unmaintained", - "UntrustedDeserialization", - "UnvalidatedRedirect", - "VerbTampering", - "WeakCipher", - "WeakHash", - "WeakRandomness", - "XContentTypeHeaderMissing", - "XPathInjection", - "Xss", - ], - WidgetLiveSpan: [ - "1m", - "5m", - "10m", - "15m", - "30m", - "1h", - "4h", - "1d", - "2d", - "1w", - "1mo", - "3mo", - "6mo", - "1y", - "alert", - ], - WorkflowDataType: ["workflows"], - WorkflowUserRelationshipType: ["users"], +const enumsMap: {[key: string]: any[]} = { + "APIKeysSort": ['created_at', '-created_at', 'last4', '-last4', 'modified_at', '-modified_at', 'name', '-name'], + "APIKeysType": ['api_keys'], + "AWSAccountPartition": ['aws', 'aws-cn', 'aws-us-gov'], + "AWSAccountType": ['account'], + "AWSAssumeRoleType": ['AWSAssumeRole'], + "AWSIntegrationType": ['AWS'], + "AWSLogsServicesResponseDataType": ['logs_services'], + "AWSNamespacesResponseDataType": ['namespaces'], + "AWSNewExternalIDResponseDataType": ['external_id'], + "ActionConnectionDataType": ['action_connection'], + "ActionQueryType": ['action'], + "ActiveBillingDimensionsType": ['billing_dimensions'], + "ApmRetentionFilterType": ['apm_retention_filter'], + "AppBuilderEventName": ['pageChange', 'tableRowClick', '_tableRowButtonClick', 'change', 'submit', 'click', 'toggleOpen', 'close', 'open', 'executionFinished'], + "AppBuilderEventType": ['custom', 'setComponentState', 'triggerQuery', 'openModal', 'closeModal', 'openUrl', 'downloadFile', 'setStateVariableValue'], + "AppDefinitionType": ['appDefinitions'], + "AppDeploymentType": ['deployment'], + "ApplicationKeysSort": ['created_at', '-created_at', 'last4', '-last4', 'name', '-name'], + "ApplicationKeysType": ['application_keys'], + "ApplicationSecurityWafCustomRuleActionAction": ['redirect_request', 'block_request'], + "ApplicationSecurityWafCustomRuleConditionInputAddress": ['server.db.statement', 'server.io.fs.file', 'server.io.net.url', 'server.sys.shell.cmd', 'server.request.method', 'server.request.uri.raw', 'server.request.path_params', 'server.request.query', 'server.request.headers.no_cookies', 'server.request.cookies', 'server.request.trailers', 'server.request.body', 'server.response.status', 'server.response.headers.no_cookies', 'server.response.trailers', 'grpc.server.request.metadata', 'grpc.server.request.message', 'grpc.server.method', 'graphql.server.all_resolvers', 'usr.id', 'http.client_ip'], + "ApplicationSecurityWafCustomRuleConditionOperator": ['match_regex', '!match_regex', 'phrase_match', '!phrase_match', 'is_xss', 'is_sqli', 'exact_match', '!exact_match', 'ip_match', '!ip_match', 'capture_data'], + "ApplicationSecurityWafCustomRuleTagsCategory": ['attack_attempt', 'business_logic', 'security_responses'], + "ApplicationSecurityWafCustomRuleType": ['custom_rule'], + "ApplicationSecurityWafExclusionFilterOnMatch": ['monitor'], + "ApplicationSecurityWafExclusionFilterType": ['exclusion_filter'], + "AppsSortField": ['name', 'created_at', 'updated_at', 'user_name', '-name', '-created_at', '-updated_at', '-user_name'], + "AssetEntityType": ['assets'], + "AssetType": ['Repository', 'Service', 'Host', 'HostImage', 'Image'], + "AuditLogsEventType": ['audit'], + "AuditLogsResponseStatus": ['done', 'timeout'], + "AuditLogsSort": ['timestamp', '-timestamp'], + "AuthNMappingResourceType": ['role', 'team'], + "AuthNMappingsSort": ['created_at', '-created_at', 'role_id', '-role_id', 'saml_assertion_attribute_id', '-saml_assertion_attribute_id', 'role.name', '-role.name', 'saml_assertion_attribute.attribute_key', '-saml_assertion_attribute.attribute_key', 'saml_assertion_attribute.attribute_value', '-saml_assertion_attribute.attribute_value'], + "AuthNMappingsType": ['authn_mappings'], + "AwsCURConfigPatchRequestType": ['aws_cur_config_patch_request'], + "AwsCURConfigPostRequestType": ['aws_cur_config_post_request'], + "AwsCURConfigType": ['aws_cur_config'], + "AwsOnDemandType": ['aws_resource'], + "AwsScanOptionsType": ['aws_scan_options'], + "AzureUCConfigPairType": ['azure_uc_configs'], + "AzureUCConfigPatchRequestType": ['azure_uc_config_patch_request'], + "AzureUCConfigPostRequestType": ['azure_uc_config_post_request'], + "BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus": ['OK', 'NOT_FOUND'], + "CIAppAggregateSortType": ['alphabetical', 'measure'], + "CIAppAggregationFunction": ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg', 'median', 'latest', 'earliest', 'most_frequent', 'delta'], + "CIAppCIErrorDomain": ['provider', 'user', 'unknown'], + "CIAppComputeType": ['timeseries', 'total'], + "CIAppCreatePipelineEventRequestDataType": ['cipipeline_resource_request'], + "CIAppPipelineEventJobLevel": ['job'], + "CIAppPipelineEventJobStatus": ['success', 'error', 'canceled', 'skipped'], + "CIAppPipelineEventPipelineInProgressStatus": ['running'], + "CIAppPipelineEventPipelineLevel": ['pipeline'], + "CIAppPipelineEventPipelineStatus": ['success', 'error', 'canceled', 'skipped', 'blocked'], + "CIAppPipelineEventStageLevel": ['stage'], + "CIAppPipelineEventStageStatus": ['success', 'error', 'canceled', 'skipped'], + "CIAppPipelineEventStepLevel": ['step'], + "CIAppPipelineEventStepStatus": ['success', 'error'], + "CIAppPipelineEventTypeName": ['cipipeline'], + "CIAppPipelineLevel": ['pipeline', 'stage', 'job', 'step', 'custom'], + "CIAppResponseStatus": ['done', 'timeout'], + "CIAppSort": ['timestamp', '-timestamp'], + "CIAppSortOrder": ['asc', 'desc'], + "CIAppTestEventTypeName": ['citest'], + "CIAppTestLevel": ['session', 'module', 'suite', 'test'], + "CSMAgentsType": ['datadog_agent'], + "Case3rdPartyTicketStatus": ['IN_PROGRESS', 'COMPLETED', 'FAILED'], + "CasePriority": ['NOT_DEFINED', 'P1', 'P2', 'P3', 'P4', 'P5'], + "CaseResourceType": ['case'], + "CaseSortableField": ['created_at', 'priority', 'status'], + "CaseStatus": ['OPEN', 'IN_PROGRESS', 'CLOSED'], + "CaseType": ['STANDARD'], + "ChangeEventCustomAttributesAuthorType": ['user', 'system'], + "ChangeEventCustomAttributesChangedResourceType": ['feature_flag', 'configuration'], + "ChangeEventCustomAttributesImpactedResourcesItemsType": ['service'], + "CloudConfigurationRuleType": ['cloud_configuration'], + "CloudWorkloadSecurityAgentRuleType": ['agent_rule'], + "CloudflareAccountType": ['cloudflare-accounts'], + "CompletionConditionOperator": ['OPERATOR_EQUAL', 'OPERATOR_NOT_EQUAL', 'OPERATOR_GREATER_THAN', 'OPERATOR_LESS_THAN', 'OPERATOR_GREATER_THAN_OR_EQUAL_TO', 'OPERATOR_LESS_THAN_OR_EQUAL_TO', 'OPERATOR_CONTAINS', 'OPERATOR_DOES_NOT_CONTAIN', 'OPERATOR_IS_NULL', 'OPERATOR_IS_NOT_NULL', 'OPERATOR_IS_EMPTY', 'OPERATOR_IS_NOT_EMPTY'], + "ComponentGridType": ['grid'], + "ComponentType": ['table', 'textInput', 'textArea', 'button', 'text', 'select', 'modal', 'schemaForm', 'checkbox', 'tabs', 'vegaChart', 'radioButtons', 'numberInput', 'fileInput', 'jsonInput', 'gridCell', 'dateRangePicker', 'search', 'container', 'calloutValue'], + "ConfluentAccountType": ['confluent-cloud-accounts'], + "ConfluentResourceType": ['confluent-cloud-resources'], + "ConnectionEnvEnv": ['default'], + "ContainerGroupType": ['container_group'], + "ContainerImageGroupType": ['container_image_group'], + "ContainerImageMetaPageType": ['cursor_limit'], + "ContainerImageType": ['container_image'], + "ContainerMetaPageType": ['cursor_limit'], + "ContainerType": ['container'], + "ContentEncoding": ['identity', 'gzip', 'deflate'], + "ConvertJobResultsToSignalsDataType": ['historicalDetectionsJobResultSignalConversion'], + "CostAttributionType": ['cost_by_tag'], + "CostByOrgType": ['cost_by_org'], + "CreateDataDeletionRequestBodyDataType": ['create_deletion_req'], + "CustomConnectionType": ['custom_connections'], + "CustomDestinationAttributeTagsRestrictionListType": ['ALLOW_LIST', 'BLOCK_LIST'], + "CustomDestinationForwardDestinationElasticsearchType": ['elasticsearch'], + "CustomDestinationForwardDestinationHttpType": ['http'], + "CustomDestinationForwardDestinationSplunkType": ['splunk_hec'], + "CustomDestinationHttpDestinationAuthBasicType": ['basic'], + "CustomDestinationHttpDestinationAuthCustomHeaderType": ['custom_header'], + "CustomDestinationResponseForwardDestinationElasticsearchType": ['elasticsearch'], + "CustomDestinationResponseForwardDestinationHttpType": ['http'], + "CustomDestinationResponseForwardDestinationSplunkType": ['splunk_hec'], + "CustomDestinationResponseHttpDestinationAuthBasicType": ['basic'], + "CustomDestinationResponseHttpDestinationAuthCustomHeaderType": ['custom_header'], + "CustomDestinationType": ['custom_destination'], + "DORADeploymentType": ['dora_deployment'], + "DORAIncidentType": ['dora_incident'], + "DashboardType": ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard'], + "DataTransformType": ['dataTransform'], + "DetailedFindingType": ['detailed_finding'], + "DomainAllowlistType": ['domain_allowlist'], + "DowntimeIncludedMonitorType": ['monitors'], + "DowntimeNotifyEndStateActions": ['canceled', 'expired'], + "DowntimeNotifyEndStateTypes": ['alert', 'no data', 'warn'], + "DowntimeResourceType": ['downtime'], + "DowntimeStatus": ['active', 'canceled', 'ended', 'scheduled'], + "EntityResponseIncludedIncidentType": ['incident'], + "EntityResponseIncludedOncallType": ['oncall'], + "EntityResponseIncludedRawSchemaType": ['rawSchema'], + "EntityResponseIncludedRelatedEntityType": ['relatedEntity'], + "EntityResponseIncludedSchemaType": ['schema'], + "EntityV3APIKind": ['api'], + "EntityV3APIVersion": ['v3'], + "EntityV3DatastoreKind": ['datastore'], + "EntityV3QueueKind": ['queue'], + "EntityV3ServiceKind": ['service'], + "EntityV3SystemKind": ['system'], + "EventCategory": ['change'], + "EventCreateRequestType": ['event'], + "EventPriority": ['normal', 'low'], + "EventStatusType": ['failure', 'error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot'], + "EventType": ['event'], + "EventsAggregation": ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg'], + "EventsDataSource": ['logs', 'rum'], + "EventsSort": ['timestamp', '-timestamp'], + "EventsSortType": ['alphabetical', 'measure'], + "FastlyAccountType": ['fastly-accounts'], + "FastlyServiceType": ['fastly-services'], + "FindingEvaluation": ['pass', 'fail'], + "FindingMuteReason": ['PENDING_FIX', 'FALSE_POSITIVE', 'ACCEPTED_RISK', 'NO_PENDING_FIX', 'HUMAN_ERROR', 'NO_LONGER_ACCEPTED_RISK', 'OTHER'], + "FindingStatus": ['critical', 'high', 'medium', 'low', 'info'], + "FindingType": ['finding'], + "FindingVulnerabilityType": ['misconfiguration', 'attack_path', 'identity_risk', 'api_security'], + "GCPSTSDelegateAccountType": ['gcp_sts_delegate'], + "GCPServiceAccountType": ['gcp_service_account'], + "GetRuleVersionHistoryDataType": ['GetRuleVersionHistoryResponse'], + "GetTeamMembershipsSort": ['manager_name', '-manager_name', 'name', '-name', 'handle', '-handle', 'email', '-email'], + "HTTPIntegrationType": ['HTTP'], + "HTTPTokenAuthType": ['HTTPTokenAuth'], + "HistoricalJobDataType": ['historicalDetectionsJob'], + "HourlyUsageType": ['app_sec_host_count', 'observability_pipelines_bytes_processed', 'lambda_traced_invocations_count'], + "IPAllowlistEntryType": ['ip_allowlist_entry'], + "IPAllowlistType": ['ip_allowlist'], + "IncidentAttachmentAttachmentType": ['link', 'postmortem'], + "IncidentAttachmentLinkAttachmentType": ['link'], + "IncidentAttachmentPostmortemAttachmentType": ['postmortem'], + "IncidentAttachmentRelatedObject": ['users'], + "IncidentAttachmentType": ['incident_attachments'], + "IncidentFieldAttributesSingleValueType": ['dropdown', 'textbox'], + "IncidentFieldAttributesValueType": ['multiselect', 'textarray', 'metrictag', 'autocomplete'], + "IncidentImpactsType": ['incident_impacts'], + "IncidentIntegrationMetadataType": ['incident_integrations'], + "IncidentPostmortemType": ['incident_postmortems'], + "IncidentRelatedObject": ['users', 'attachments'], + "IncidentRespondersType": ['incident_responders'], + "IncidentSearchResultsType": ['incidents_search_results'], + "IncidentSearchSortOrder": ['created', '-created'], + "IncidentServiceType": ['services'], + "IncidentSeverity": ['UNKNOWN', 'SEV-1', 'SEV-2', 'SEV-3', 'SEV-4', 'SEV-5'], + "IncidentTeamType": ['teams'], + "IncidentTimelineCellMarkdownContentType": ['markdown'], + "IncidentTodoAnonymousAssigneeSource": ['slack', 'microsoft_teams'], + "IncidentTodoType": ['incident_todos'], + "IncidentType": ['incidents'], + "IncidentTypeType": ['incident_types'], + "IncidentUserDefinedFieldType": ['user_defined_field'], + "IncludeType": ['schema', 'raw_schema', 'oncall', 'incident', 'relation'], + "InputSchemaParametersType": ['STRING', 'NUMBER', 'BOOLEAN', 'OBJECT', 'ARRAY_STRING', 'ARRAY_NUMBER', 'ARRAY_BOOLEAN', 'ARRAY_OBJECT'], + "InterfaceAttributesStatus": ['up', 'down', 'warning', 'off'], + "LeakedKeyType": ['leaked_keys'], + "ListTeamsInclude": ['team_links', 'user_team_permissions'], + "ListTeamsSort": ['name', '-name', 'user_count', '-user_count'], + "LogType": ['log'], + "LogsAggregateResponseStatus": ['done', 'timeout'], + "LogsAggregateSortType": ['alphabetical', 'measure'], + "LogsAggregationFunction": ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg', 'median'], + "LogsArchiveDestinationAzureType": ['azure'], + "LogsArchiveDestinationGCSType": ['gcs'], + "LogsArchiveDestinationS3Type": ['s3'], + "LogsArchiveEncryptionS3Type": ['NO_OVERRIDE', 'SSE_S3', 'SSE_KMS'], + "LogsArchiveOrderDefinitionType": ['archive_order'], + "LogsArchiveState": ['UNKNOWN', 'WORKING', 'FAILING', 'WORKING_AUTH_LEGACY'], + "LogsArchiveStorageClassS3Type": ['STANDARD', 'STANDARD_IA', 'ONEZONE_IA', 'INTELLIGENT_TIERING', 'GLACIER_IR'], + "LogsComputeType": ['timeseries', 'total'], + "LogsMetricComputeAggregationType": ['count', 'distribution'], + "LogsMetricResponseComputeAggregationType": ['count', 'distribution'], + "LogsMetricType": ['logs_metrics'], + "LogsSort": ['timestamp', '-timestamp'], + "LogsSortOrder": ['asc', 'desc'], + "LogsStorageTier": ['indexes', 'online-archives', 'flex'], + "MetricActiveConfigurationType": ['actively_queried_configurations'], + "MetricBulkConfigureTagsType": ['metric_bulk_configure_tags'], + "MetricContentEncoding": ['deflate', 'zstd1', 'gzip'], + "MetricCustomSpaceAggregation": ['avg', 'max', 'min', 'sum'], + "MetricCustomTimeAggregation": ['avg', 'count', 'max', 'min', 'sum'], + "MetricDashboardType": ['dashboards'], + "MetricDistinctVolumeType": ['distinct_metric_volumes'], + "MetricEstimateResourceType": ['metric_cardinality_estimate'], + "MetricEstimateType": ['count_or_gauge', 'distribution', 'percentile'], + "MetricIngestedIndexedVolumeType": ['metric_volumes'], + "MetricIntakeType": [0, 1, 2, 3], + "MetricMetaPageType": ['cursor_limit'], + "MetricMonitorType": ['monitors'], + "MetricNotebookType": ['notebooks'], + "MetricSLOType": ['slos'], + "MetricTagConfigurationMetricTypeCategory": ['non_distribution', 'distribution'], + "MetricTagConfigurationMetricTypes": ['gauge', 'count', 'rate', 'distribution'], + "MetricTagConfigurationType": ['manage_tags'], + "MetricType": ['metrics'], + "MetricsAggregator": ['avg', 'min', 'max', 'sum', 'last', 'percentile', 'mean', 'l2norm', 'area'], + "MetricsDataSource": ['metrics', 'cloud_cost'], + "MicrosoftTeamsChannelInfoType": ['ms-teams-channel-info'], + "MicrosoftTeamsTenantBasedHandleInfoType": ['ms-teams-tenant-based-handle-info'], + "MicrosoftTeamsTenantBasedHandleType": ['tenant-based-handle'], + "MicrosoftTeamsWorkflowsWebhookHandleType": ['workflows-webhook-handle'], + "MonitorConfigPolicyResourceType": ['monitor-config-policy'], + "MonitorConfigPolicyType": ['tag'], + "MonitorDowntimeMatchResourceType": ['downtime_match'], + "NotificationRulesType": ['notification_rules'], + "OktaAccountType": ['okta-accounts'], + "OnDemandConcurrencyCapType": ['on_demand_concurrency_cap'], + "OpsgenieServiceRegionType": ['us', 'eu', 'custom'], + "OpsgenieServiceType": ['opsgenie-service'], + "OrderDirection": ['asc', 'desc'], + "OrgConfigType": ['org_configs'], + "OrganizationsType": ['orgs'], + "OutcomeType": ['outcome'], + "OutcomesBatchType": ['batched-outcome'], + "OutputSchemaParametersType": ['STRING', 'NUMBER', 'BOOLEAN', 'OBJECT', 'ARRAY_STRING', 'ARRAY_NUMBER', 'ARRAY_BOOLEAN', 'ARRAY_OBJECT'], + "PermissionsType": ['permissions'], + "ProcessSummaryType": ['process'], + "ProjectResourceType": ['project'], + "ProjectedCostType": ['projected_cost'], + "QuerySortOrder": ['asc', 'desc'], + "RUMAggregateSortType": ['alphabetical', 'measure'], + "RUMAggregationFunction": ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg', 'median'], + "RUMApplicationCreateType": ['rum_application_create'], + "RUMApplicationListType": ['rum_application'], + "RUMApplicationType": ['rum_application'], + "RUMApplicationUpdateType": ['rum_application_update'], + "RUMComputeType": ['timeseries', 'total'], + "RUMEventType": ['rum'], + "RUMResponseStatus": ['done', 'timeout'], + "RUMSort": ['timestamp', '-timestamp'], + "RUMSortOrder": ['asc', 'desc'], + "ReadinessGateThresholdType": ['ANY', 'ALL'], + "RelationType": ['RelationTypeOwns', 'RelationTypeOwnedBy', 'RelationTypeDependsOn', 'RelationTypeDependencyOf', 'RelationTypePartsOf', 'RelationTypeHasPart', 'RelationTypeOtherOwns', 'RelationTypeOtherOwnedBy', 'RelationTypeImplementedBy', 'RelationTypeImplements'], + "RestrictionPolicyType": ['restriction_policy'], + "RetentionFilterAllType": ['spans-sampling-processor', 'spans-errors-sampling-processor', 'spans-appsec-sampling-processor'], + "RetentionFilterType": ['spans-sampling-processor'], + "RetryStrategyKind": ['RETRY_STRATEGY_LINEAR'], + "RolesSort": ['name', '-name', 'modified_at', '-modified_at', 'user_count', '-user_count'], + "RolesType": ['roles'], + "RuleSeverity": ['critical', 'high', 'medium', 'low', 'unknown', 'info'], + "RuleType": ['rule'], + "RuleTypesItems": ['application_security', 'log_detection', 'workload_security', 'signal_correlation', 'cloud_configuration', 'infrastructure_configuration', 'application_code_vulnerability', 'application_library_vulnerability', 'attack_path', 'container_image_vulnerability', 'identity_risk', 'misconfiguration', 'api_security'], + "RuleVersionUpdateType": ['create', 'update', 'delete'], + "RumMetricComputeAggregationType": ['count', 'distribution'], + "RumMetricEventType": ['session', 'view', 'action', 'error', 'resource', 'long_task', 'vital'], + "RumMetricType": ['rum_metrics'], + "RumMetricUniquenessWhen": ['match', 'end'], + "RumRetentionFilterEventType": ['session', 'view', 'action', 'error', 'resource', 'long_task', 'vital'], + "RumRetentionFilterType": ['retention_filters'], + "RunHistoricalJobRequestDataType": ['historicalDetectionsJobCreate'], + "SAMLAssertionAttributesType": ['saml_assertion_attributes'], + "SBOMComponentType": ['application', 'container', 'data', 'device', 'device-driver', 'file', 'firmware', 'framework', 'library', 'machine-learning-model', 'operating-system', 'platform'], + "SBOMType": ['sboms'], + "SLOReportInterval": ['daily', 'weekly', 'monthly'], + "SLOReportStatus": ['in_progress', 'completed', 'completed_with_errors', 'failed'], + "ScalarColumnTypeGroup": ['group'], + "ScalarColumnTypeNumber": ['number'], + "ScalarFormulaRequestType": ['scalar_request'], + "ScalarFormulaResponseType": ['scalar_response'], + "ScorecardType": ['scorecard'], + "SecurityFilterFilteredDataType": ['logs'], + "SecurityFilterType": ['security_filters'], + "SecurityMonitoringFilterAction": ['require', 'suppress'], + "SecurityMonitoringRuleCaseActionType": ['block_ip', 'block_user'], + "SecurityMonitoringRuleDetectionMethod": ['threshold', 'new_value', 'anomaly_detection', 'impossible_travel', 'hardcoded', 'third_party', 'anomaly_threshold'], + "SecurityMonitoringRuleEvaluationWindow": [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400], + "SecurityMonitoringRuleHardcodedEvaluatorType": ['log4shell'], + "SecurityMonitoringRuleKeepAlive": [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400], + "SecurityMonitoringRuleMaxSignalDuration": [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400], + "SecurityMonitoringRuleNewValueOptionsForgetAfter": [1, 2, 7, 14, 21, 28], + "SecurityMonitoringRuleNewValueOptionsLearningDuration": [0, 1, 7], + "SecurityMonitoringRuleNewValueOptionsLearningMethod": ['duration', 'threshold'], + "SecurityMonitoringRuleNewValueOptionsLearningThreshold": [0, 1], + "SecurityMonitoringRuleQueryAggregation": ['count', 'cardinality', 'sum', 'max', 'new_value', 'geo_data', 'event_count', 'none'], + "SecurityMonitoringRuleSeverity": ['info', 'low', 'medium', 'high', 'critical'], + "SecurityMonitoringRuleTypeCreate": ['application_security', 'log_detection', 'workload_security'], + "SecurityMonitoringRuleTypeRead": ['log_detection', 'infrastructure_configuration', 'workload_security', 'cloud_configuration', 'application_security'], + "SecurityMonitoringRuleTypeTest": ['log_detection'], + "SecurityMonitoringSignalArchiveReason": ['none', 'false_positive', 'testing_or_maintenance', 'investigated_case_opened', 'other'], + "SecurityMonitoringSignalMetadataType": ['signal_metadata'], + "SecurityMonitoringSignalRuleType": ['signal_correlation'], + "SecurityMonitoringSignalState": ['open', 'archived', 'under_review'], + "SecurityMonitoringSignalType": ['signal'], + "SecurityMonitoringSignalsSort": ['timestamp', '-timestamp'], + "SecurityMonitoringStandardDataSource": ['logs', 'audit'], + "SecurityMonitoringSuppressionType": ['suppressions'], + "SensitiveDataScannerConfigurationType": ['sensitive_data_scanner_configuration'], + "SensitiveDataScannerGroupType": ['sensitive_data_scanner_group'], + "SensitiveDataScannerProduct": ['logs', 'rum', 'events', 'apm'], + "SensitiveDataScannerRuleType": ['sensitive_data_scanner_rule'], + "SensitiveDataScannerStandardPatternType": ['sensitive_data_scanner_standard_pattern'], + "SensitiveDataScannerTextReplacementType": ['none', 'hash', 'replacement_string', 'partial_replacement_from_beginning', 'partial_replacement_from_end'], + "ServiceDefinitionSchemaVersions": ['v1', 'v2', 'v2.1', 'v2.2'], + "ServiceDefinitionV1ResourceType": ['doc', 'wiki', 'runbook', 'url', 'repo', 'dashboard', 'oncall', 'code', 'link'], + "ServiceDefinitionV1Version": ['v1'], + "ServiceDefinitionV2Dot1EmailType": ['email'], + "ServiceDefinitionV2Dot1LinkType": ['doc', 'repo', 'runbook', 'dashboard', 'other'], + "ServiceDefinitionV2Dot1MSTeamsType": ['microsoft-teams'], + "ServiceDefinitionV2Dot1OpsgenieRegion": ['US', 'EU'], + "ServiceDefinitionV2Dot1SlackType": ['slack'], + "ServiceDefinitionV2Dot1Version": ['v2.1'], + "ServiceDefinitionV2Dot2OpsgenieRegion": ['US', 'EU'], + "ServiceDefinitionV2Dot2Version": ['v2.2'], + "ServiceDefinitionV2EmailType": ['email'], + "ServiceDefinitionV2LinkType": ['doc', 'wiki', 'runbook', 'url', 'repo', 'dashboard', 'oncall', 'code', 'link'], + "ServiceDefinitionV2MSTeamsType": ['microsoft-teams'], + "ServiceDefinitionV2OpsgenieRegion": ['US', 'EU'], + "ServiceDefinitionV2SlackType": ['slack'], + "ServiceDefinitionV2Version": ['v2'], + "SortDirection": ['desc', 'asc'], + "SpansAggregateBucketType": ['bucket'], + "SpansAggregateRequestType": ['aggregate_request'], + "SpansAggregateResponseStatus": ['done', 'timeout'], + "SpansAggregateSortType": ['alphabetical', 'measure'], + "SpansAggregationFunction": ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg', 'median'], + "SpansComputeType": ['timeseries', 'total'], + "SpansListRequestType": ['search_request'], + "SpansMetricComputeAggregationType": ['count', 'distribution'], + "SpansMetricType": ['spans_metrics'], + "SpansSort": ['timestamp', '-timestamp'], + "SpansSortOrder": ['asc', 'desc'], + "SpansType": ['spans'], + "SpecVersion": ['1.0', '1.1', '1.2', '1.3', '1.4', '1.5'], + "State": ['pass', 'fail', 'skip'], + "StateVariableType": ['stateVariable'], + "TeamLinkType": ['team_links'], + "TeamPermissionSettingSerializerAction": ['manage_membership', 'edit'], + "TeamPermissionSettingType": ['team_permission_settings'], + "TeamPermissionSettingValue": ['admins', 'members', 'organization', 'user_access_manage', 'teams_manage'], + "TeamType": ['team'], + "TeamsField": ['id', 'name', 'handle', 'summary', 'description', 'avatar', 'banner', 'visible_modules', 'hidden_modules', 'created_at', 'modified_at', 'user_count', 'link_count', 'team_links', 'user_team_permissions'], + "TimeseriesFormulaRequestType": ['timeseries_request'], + "TimeseriesFormulaResponseType": ['timeseries_response'], + "TokenType": ['SECRET'], + "TriggerSource": ['security_findings', 'security_signals'], + "UsageTimeSeriesType": ['usage_timeseries'], + "UserInvitationsType": ['user_invitations'], + "UserResourceType": ['user'], + "UserTeamPermissionType": ['user_team_permissions'], + "UserTeamRole": ['admin'], + "UserTeamTeamType": ['team'], + "UserTeamType": ['team_memberships'], + "UserTeamUserType": ['users'], + "UsersType": ['users'], + "VulnerabilitiesType": ['vulnerabilities'], + "VulnerabilityEcosystem": ['PyPI', 'Maven', 'NuGet', 'Npm', 'RubyGems', 'Go', 'Packagist', 'Ddeb', 'Rpm', 'Apk', 'Windows'], + "VulnerabilitySeverity": ['Unknown', 'None', 'Low', 'Medium', 'High', 'Critical'], + "VulnerabilityStatus": ['Open', 'Muted', 'Remediated', 'InProgress', 'AutoClosed'], + "VulnerabilityTool": ['IAST', 'SCA', 'Infra'], + "VulnerabilityType": ['AdminConsoleActive', 'CodeInjection', 'CommandInjection', 'ComponentWithKnownVulnerability', 'DangerousWorkflows', 'DefaultAppDeployed', 'DefaultHtmlEscapeInvalid', 'DirectoryListingLeak', 'EmailHtmlInjection', 'EndOfLife', 'HardcodedPassword', 'HardcodedSecret', 'HeaderInjection', 'HstsHeaderMissing', 'InsecureAuthProtocol', 'InsecureCookie', 'InsecureJspLayout', 'LdapInjection', 'MaliciousPackage', 'MandatoryRemediation', 'NoHttpOnlyCookie', 'NoSameSiteCookie', 'NoSqlMongoDbInjection', 'PathTraversal', 'ReflectionInjection', 'RiskyLicense', 'SessionRewriting', 'SessionTimeout', 'SqlInjection', 'Ssrf', 'StackTraceLeak', 'TrustBoundaryViolation', 'Unmaintained', 'UntrustedDeserialization', 'UnvalidatedRedirect', 'VerbTampering', 'WeakCipher', 'WeakHash', 'WeakRandomness', 'XContentTypeHeaderMissing', 'XPathInjection', 'Xss'], + "WidgetLiveSpan": ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert'], + "WorkflowDataType": ['workflows'], + "WorkflowUserRelationshipType": ['users'], }; -const typeMap: { [index: string]: any } = { - APIErrorResponse: APIErrorResponse, - APIKeyCreateAttributes: APIKeyCreateAttributes, - APIKeyCreateData: APIKeyCreateData, - APIKeyCreateRequest: APIKeyCreateRequest, - APIKeyRelationships: APIKeyRelationships, - APIKeyResponse: APIKeyResponse, - APIKeyUpdateAttributes: APIKeyUpdateAttributes, - APIKeyUpdateData: APIKeyUpdateData, - APIKeyUpdateRequest: APIKeyUpdateRequest, - APIKeysResponse: APIKeysResponse, - APIKeysResponseMeta: APIKeysResponseMeta, - APIKeysResponseMetaPage: APIKeysResponseMetaPage, - APITrigger: APITrigger, - APITriggerWrapper: APITriggerWrapper, - AWSAccountCreateRequest: AWSAccountCreateRequest, - AWSAccountCreateRequestAttributes: AWSAccountCreateRequestAttributes, - AWSAccountCreateRequestData: AWSAccountCreateRequestData, - AWSAccountResponse: AWSAccountResponse, - AWSAccountResponseAttributes: AWSAccountResponseAttributes, - AWSAccountResponseData: AWSAccountResponseData, - AWSAccountUpdateRequest: AWSAccountUpdateRequest, - AWSAccountUpdateRequestAttributes: AWSAccountUpdateRequestAttributes, - AWSAccountUpdateRequestData: AWSAccountUpdateRequestData, - AWSAccountsResponse: AWSAccountsResponse, - AWSAssumeRole: AWSAssumeRole, - AWSAssumeRoleUpdate: AWSAssumeRoleUpdate, - AWSAuthConfigKeys: AWSAuthConfigKeys, - AWSAuthConfigRole: AWSAuthConfigRole, - AWSIntegration: AWSIntegration, - AWSIntegrationUpdate: AWSIntegrationUpdate, - AWSLambdaForwarderConfig: AWSLambdaForwarderConfig, - AWSLogsConfig: AWSLogsConfig, - AWSLogsServicesResponse: AWSLogsServicesResponse, - AWSLogsServicesResponseAttributes: AWSLogsServicesResponseAttributes, - AWSLogsServicesResponseData: AWSLogsServicesResponseData, - AWSMetricsConfig: AWSMetricsConfig, - AWSNamespaceFiltersExcludeOnly: AWSNamespaceFiltersExcludeOnly, - AWSNamespaceFiltersIncludeOnly: AWSNamespaceFiltersIncludeOnly, - AWSNamespaceTagFilter: AWSNamespaceTagFilter, - AWSNamespacesResponse: AWSNamespacesResponse, - AWSNamespacesResponseAttributes: AWSNamespacesResponseAttributes, - AWSNamespacesResponseData: AWSNamespacesResponseData, - AWSNewExternalIDResponse: AWSNewExternalIDResponse, - AWSNewExternalIDResponseAttributes: AWSNewExternalIDResponseAttributes, - AWSNewExternalIDResponseData: AWSNewExternalIDResponseData, - AWSRegionsIncludeAll: AWSRegionsIncludeAll, - AWSRegionsIncludeOnly: AWSRegionsIncludeOnly, - AWSResourcesConfig: AWSResourcesConfig, - AWSTracesConfig: AWSTracesConfig, - AccountFilteringConfig: AccountFilteringConfig, - ActionConnectionAttributes: ActionConnectionAttributes, - ActionConnectionAttributesUpdate: ActionConnectionAttributesUpdate, - ActionConnectionData: ActionConnectionData, - ActionConnectionDataUpdate: ActionConnectionDataUpdate, - ActionQuery: ActionQuery, - ActionQueryMockedOutputsObject: ActionQueryMockedOutputsObject, - ActionQueryProperties: ActionQueryProperties, - ActionQuerySpecConnectionGroup: ActionQuerySpecConnectionGroup, - ActionQuerySpecObject: ActionQuerySpecObject, - ActiveBillingDimensionsAttributes: ActiveBillingDimensionsAttributes, - ActiveBillingDimensionsBody: ActiveBillingDimensionsBody, - ActiveBillingDimensionsResponse: ActiveBillingDimensionsResponse, - Advisory: Advisory, - Annotation: Annotation, - AnnotationDisplay: AnnotationDisplay, - AnnotationDisplayBounds: AnnotationDisplayBounds, - AnnotationMarkdownTextAnnotation: AnnotationMarkdownTextAnnotation, - AppBuilderEvent: AppBuilderEvent, - AppMeta: AppMeta, - AppRelationship: AppRelationship, - AppTriggerWrapper: AppTriggerWrapper, - ApplicationKeyCreateAttributes: ApplicationKeyCreateAttributes, - ApplicationKeyCreateData: ApplicationKeyCreateData, - ApplicationKeyCreateRequest: ApplicationKeyCreateRequest, - ApplicationKeyRelationships: ApplicationKeyRelationships, - ApplicationKeyResponse: ApplicationKeyResponse, - ApplicationKeyResponseMeta: ApplicationKeyResponseMeta, - ApplicationKeyResponseMetaPage: ApplicationKeyResponseMetaPage, - ApplicationKeyUpdateAttributes: ApplicationKeyUpdateAttributes, - ApplicationKeyUpdateData: ApplicationKeyUpdateData, - ApplicationKeyUpdateRequest: ApplicationKeyUpdateRequest, - ApplicationSecurityWafCustomRuleAction: - ApplicationSecurityWafCustomRuleAction, - ApplicationSecurityWafCustomRuleActionParameters: - ApplicationSecurityWafCustomRuleActionParameters, - ApplicationSecurityWafCustomRuleAttributes: - ApplicationSecurityWafCustomRuleAttributes, - ApplicationSecurityWafCustomRuleCondition: - ApplicationSecurityWafCustomRuleCondition, - ApplicationSecurityWafCustomRuleConditionInput: - ApplicationSecurityWafCustomRuleConditionInput, - ApplicationSecurityWafCustomRuleConditionOptions: - ApplicationSecurityWafCustomRuleConditionOptions, - ApplicationSecurityWafCustomRuleConditionParameters: - ApplicationSecurityWafCustomRuleConditionParameters, - ApplicationSecurityWafCustomRuleCreateAttributes: - ApplicationSecurityWafCustomRuleCreateAttributes, - ApplicationSecurityWafCustomRuleCreateData: - ApplicationSecurityWafCustomRuleCreateData, - ApplicationSecurityWafCustomRuleCreateRequest: - ApplicationSecurityWafCustomRuleCreateRequest, - ApplicationSecurityWafCustomRuleData: ApplicationSecurityWafCustomRuleData, - ApplicationSecurityWafCustomRuleListResponse: - ApplicationSecurityWafCustomRuleListResponse, - ApplicationSecurityWafCustomRuleMetadata: - ApplicationSecurityWafCustomRuleMetadata, - ApplicationSecurityWafCustomRuleResponse: - ApplicationSecurityWafCustomRuleResponse, - ApplicationSecurityWafCustomRuleScope: ApplicationSecurityWafCustomRuleScope, - ApplicationSecurityWafCustomRuleTags: ApplicationSecurityWafCustomRuleTags, - ApplicationSecurityWafCustomRuleUpdateAttributes: - ApplicationSecurityWafCustomRuleUpdateAttributes, - ApplicationSecurityWafCustomRuleUpdateData: - ApplicationSecurityWafCustomRuleUpdateData, - ApplicationSecurityWafCustomRuleUpdateRequest: - ApplicationSecurityWafCustomRuleUpdateRequest, - ApplicationSecurityWafExclusionFilterAttributes: - ApplicationSecurityWafExclusionFilterAttributes, - ApplicationSecurityWafExclusionFilterCreateAttributes: - ApplicationSecurityWafExclusionFilterCreateAttributes, - ApplicationSecurityWafExclusionFilterCreateData: - ApplicationSecurityWafExclusionFilterCreateData, - ApplicationSecurityWafExclusionFilterCreateRequest: - ApplicationSecurityWafExclusionFilterCreateRequest, - ApplicationSecurityWafExclusionFilterMetadata: - ApplicationSecurityWafExclusionFilterMetadata, - ApplicationSecurityWafExclusionFilterResource: - ApplicationSecurityWafExclusionFilterResource, - ApplicationSecurityWafExclusionFilterResponse: - ApplicationSecurityWafExclusionFilterResponse, - ApplicationSecurityWafExclusionFilterRulesTarget: - ApplicationSecurityWafExclusionFilterRulesTarget, - ApplicationSecurityWafExclusionFilterRulesTargetTags: - ApplicationSecurityWafExclusionFilterRulesTargetTags, - ApplicationSecurityWafExclusionFilterScope: - ApplicationSecurityWafExclusionFilterScope, - ApplicationSecurityWafExclusionFilterUpdateAttributes: - ApplicationSecurityWafExclusionFilterUpdateAttributes, - ApplicationSecurityWafExclusionFilterUpdateData: - ApplicationSecurityWafExclusionFilterUpdateData, - ApplicationSecurityWafExclusionFilterUpdateRequest: - ApplicationSecurityWafExclusionFilterUpdateRequest, - ApplicationSecurityWafExclusionFiltersResponse: - ApplicationSecurityWafExclusionFiltersResponse, - Asset: Asset, - AssetAttributes: AssetAttributes, - AssetOperatingSystem: AssetOperatingSystem, - AssetRisks: AssetRisks, - AssetVersion: AssetVersion, - AuditLogsEvent: AuditLogsEvent, - AuditLogsEventAttributes: AuditLogsEventAttributes, - AuditLogsEventsResponse: AuditLogsEventsResponse, - AuditLogsQueryFilter: AuditLogsQueryFilter, - AuditLogsQueryOptions: AuditLogsQueryOptions, - AuditLogsQueryPageOptions: AuditLogsQueryPageOptions, - AuditLogsResponseLinks: AuditLogsResponseLinks, - AuditLogsResponseMetadata: AuditLogsResponseMetadata, - AuditLogsResponsePage: AuditLogsResponsePage, - AuditLogsSearchEventsRequest: AuditLogsSearchEventsRequest, - AuditLogsWarning: AuditLogsWarning, - AuthNMapping: AuthNMapping, - AuthNMappingAttributes: AuthNMappingAttributes, - AuthNMappingCreateAttributes: AuthNMappingCreateAttributes, - AuthNMappingCreateData: AuthNMappingCreateData, - AuthNMappingCreateRequest: AuthNMappingCreateRequest, - AuthNMappingRelationshipToRole: AuthNMappingRelationshipToRole, - AuthNMappingRelationshipToTeam: AuthNMappingRelationshipToTeam, - AuthNMappingRelationships: AuthNMappingRelationships, - AuthNMappingResponse: AuthNMappingResponse, - AuthNMappingTeam: AuthNMappingTeam, - AuthNMappingTeamAttributes: AuthNMappingTeamAttributes, - AuthNMappingUpdateAttributes: AuthNMappingUpdateAttributes, - AuthNMappingUpdateData: AuthNMappingUpdateData, - AuthNMappingUpdateRequest: AuthNMappingUpdateRequest, - AuthNMappingsResponse: AuthNMappingsResponse, - AwsCURConfig: AwsCURConfig, - AwsCURConfigAttributes: AwsCURConfigAttributes, - AwsCURConfigPatchData: AwsCURConfigPatchData, - AwsCURConfigPatchRequest: AwsCURConfigPatchRequest, - AwsCURConfigPatchRequestAttributes: AwsCURConfigPatchRequestAttributes, - AwsCURConfigPostData: AwsCURConfigPostData, - AwsCURConfigPostRequest: AwsCURConfigPostRequest, - AwsCURConfigPostRequestAttributes: AwsCURConfigPostRequestAttributes, - AwsCURConfigResponse: AwsCURConfigResponse, - AwsCURConfigsResponse: AwsCURConfigsResponse, - AwsOnDemandAttributes: AwsOnDemandAttributes, - AwsOnDemandCreateAttributes: AwsOnDemandCreateAttributes, - AwsOnDemandCreateData: AwsOnDemandCreateData, - AwsOnDemandCreateRequest: AwsOnDemandCreateRequest, - AwsOnDemandData: AwsOnDemandData, - AwsOnDemandListResponse: AwsOnDemandListResponse, - AwsOnDemandResponse: AwsOnDemandResponse, - AwsScanOptionsAttributes: AwsScanOptionsAttributes, - AwsScanOptionsCreateAttributes: AwsScanOptionsCreateAttributes, - AwsScanOptionsCreateData: AwsScanOptionsCreateData, - AwsScanOptionsCreateRequest: AwsScanOptionsCreateRequest, - AwsScanOptionsData: AwsScanOptionsData, - AwsScanOptionsListResponse: AwsScanOptionsListResponse, - AwsScanOptionsResponse: AwsScanOptionsResponse, - AwsScanOptionsUpdateAttributes: AwsScanOptionsUpdateAttributes, - AwsScanOptionsUpdateData: AwsScanOptionsUpdateData, - AwsScanOptionsUpdateRequest: AwsScanOptionsUpdateRequest, - AzureUCConfig: AzureUCConfig, - AzureUCConfigPair: AzureUCConfigPair, - AzureUCConfigPairAttributes: AzureUCConfigPairAttributes, - AzureUCConfigPairsResponse: AzureUCConfigPairsResponse, - AzureUCConfigPatchData: AzureUCConfigPatchData, - AzureUCConfigPatchRequest: AzureUCConfigPatchRequest, - AzureUCConfigPatchRequestAttributes: AzureUCConfigPatchRequestAttributes, - AzureUCConfigPostData: AzureUCConfigPostData, - AzureUCConfigPostRequest: AzureUCConfigPostRequest, - AzureUCConfigPostRequestAttributes: AzureUCConfigPostRequestAttributes, - AzureUCConfigsResponse: AzureUCConfigsResponse, - BillConfig: BillConfig, - BillingDimensionsMappingBodyItem: BillingDimensionsMappingBodyItem, - BillingDimensionsMappingBodyItemAttributes: - BillingDimensionsMappingBodyItemAttributes, - BillingDimensionsMappingBodyItemAttributesEndpointsItems: - BillingDimensionsMappingBodyItemAttributesEndpointsItems, - BillingDimensionsMappingResponse: BillingDimensionsMappingResponse, - BulkMuteFindingsRequest: BulkMuteFindingsRequest, - BulkMuteFindingsRequestAttributes: BulkMuteFindingsRequestAttributes, - BulkMuteFindingsRequestData: BulkMuteFindingsRequestData, - BulkMuteFindingsRequestMeta: BulkMuteFindingsRequestMeta, - BulkMuteFindingsRequestMetaFindings: BulkMuteFindingsRequestMetaFindings, - BulkMuteFindingsRequestProperties: BulkMuteFindingsRequestProperties, - BulkMuteFindingsResponse: BulkMuteFindingsResponse, - BulkMuteFindingsResponseData: BulkMuteFindingsResponseData, - CIAppAggregateBucketValueTimeseriesPoint: - CIAppAggregateBucketValueTimeseriesPoint, - CIAppAggregateSort: CIAppAggregateSort, - CIAppCIError: CIAppCIError, - CIAppCompute: CIAppCompute, - CIAppCreatePipelineEventRequest: CIAppCreatePipelineEventRequest, - CIAppCreatePipelineEventRequestAttributes: - CIAppCreatePipelineEventRequestAttributes, - CIAppCreatePipelineEventRequestData: CIAppCreatePipelineEventRequestData, - CIAppEventAttributes: CIAppEventAttributes, - CIAppGitInfo: CIAppGitInfo, - CIAppGroupByHistogram: CIAppGroupByHistogram, - CIAppHostInfo: CIAppHostInfo, - CIAppPipelineEvent: CIAppPipelineEvent, - CIAppPipelineEventAttributes: CIAppPipelineEventAttributes, - CIAppPipelineEventFinishedPipeline: CIAppPipelineEventFinishedPipeline, - CIAppPipelineEventInProgressPipeline: CIAppPipelineEventInProgressPipeline, - CIAppPipelineEventJob: CIAppPipelineEventJob, - CIAppPipelineEventParentPipeline: CIAppPipelineEventParentPipeline, - CIAppPipelineEventPreviousPipeline: CIAppPipelineEventPreviousPipeline, - CIAppPipelineEventStage: CIAppPipelineEventStage, - CIAppPipelineEventStep: CIAppPipelineEventStep, - CIAppPipelineEventsRequest: CIAppPipelineEventsRequest, - CIAppPipelineEventsResponse: CIAppPipelineEventsResponse, - CIAppPipelinesAggregateRequest: CIAppPipelinesAggregateRequest, - CIAppPipelinesAggregationBucketsResponse: - CIAppPipelinesAggregationBucketsResponse, - CIAppPipelinesAnalyticsAggregateResponse: - CIAppPipelinesAnalyticsAggregateResponse, - CIAppPipelinesBucketResponse: CIAppPipelinesBucketResponse, - CIAppPipelinesGroupBy: CIAppPipelinesGroupBy, - CIAppPipelinesQueryFilter: CIAppPipelinesQueryFilter, - CIAppQueryOptions: CIAppQueryOptions, - CIAppQueryPageOptions: CIAppQueryPageOptions, - CIAppResponseLinks: CIAppResponseLinks, - CIAppResponseMetadata: CIAppResponseMetadata, - CIAppResponseMetadataWithPagination: CIAppResponseMetadataWithPagination, - CIAppResponsePage: CIAppResponsePage, - CIAppTestEvent: CIAppTestEvent, - CIAppTestEventsRequest: CIAppTestEventsRequest, - CIAppTestEventsResponse: CIAppTestEventsResponse, - CIAppTestsAggregateRequest: CIAppTestsAggregateRequest, - CIAppTestsAggregationBucketsResponse: CIAppTestsAggregationBucketsResponse, - CIAppTestsAnalyticsAggregateResponse: CIAppTestsAnalyticsAggregateResponse, - CIAppTestsBucketResponse: CIAppTestsBucketResponse, - CIAppTestsGroupBy: CIAppTestsGroupBy, - CIAppTestsQueryFilter: CIAppTestsQueryFilter, - CIAppWarning: CIAppWarning, - CSMAgentsMetadata: CSMAgentsMetadata, - CVSS: CVSS, - CalculatedField: CalculatedField, - CancelDataDeletionResponseBody: CancelDataDeletionResponseBody, - Case: Case, - CaseAssign: CaseAssign, - CaseAssignAttributes: CaseAssignAttributes, - CaseAssignRequest: CaseAssignRequest, - CaseAttributes: CaseAttributes, - CaseCreate: CaseCreate, - CaseCreateAttributes: CaseCreateAttributes, - CaseCreateRelationships: CaseCreateRelationships, - CaseCreateRequest: CaseCreateRequest, - CaseEmpty: CaseEmpty, - CaseEmptyRequest: CaseEmptyRequest, - CaseRelationships: CaseRelationships, - CaseResponse: CaseResponse, - CaseTrigger: CaseTrigger, - CaseTriggerWrapper: CaseTriggerWrapper, - CaseUpdatePriority: CaseUpdatePriority, - CaseUpdatePriorityAttributes: CaseUpdatePriorityAttributes, - CaseUpdatePriorityRequest: CaseUpdatePriorityRequest, - CaseUpdateStatus: CaseUpdateStatus, - CaseUpdateStatusAttributes: CaseUpdateStatusAttributes, - CaseUpdateStatusRequest: CaseUpdateStatusRequest, - CasesResponse: CasesResponse, - CasesResponseMeta: CasesResponseMeta, - CasesResponseMetaPagination: CasesResponseMetaPagination, - ChangeEventCustomAttributes: ChangeEventCustomAttributes, - ChangeEventCustomAttributesAuthor: ChangeEventCustomAttributesAuthor, - ChangeEventCustomAttributesChangedResource: - ChangeEventCustomAttributesChangedResource, - ChangeEventCustomAttributesImpactedResourcesItems: - ChangeEventCustomAttributesImpactedResourcesItems, - ChangeEventTriggerWrapper: ChangeEventTriggerWrapper, - ChargebackBreakdown: ChargebackBreakdown, - CloudConfigurationComplianceRuleOptions: - CloudConfigurationComplianceRuleOptions, - CloudConfigurationRegoRule: CloudConfigurationRegoRule, - CloudConfigurationRuleCaseCreate: CloudConfigurationRuleCaseCreate, - CloudConfigurationRuleComplianceSignalOptions: - CloudConfigurationRuleComplianceSignalOptions, - CloudConfigurationRuleCreatePayload: CloudConfigurationRuleCreatePayload, - CloudConfigurationRuleOptions: CloudConfigurationRuleOptions, - CloudConfigurationRulePayload: CloudConfigurationRulePayload, - CloudWorkloadSecurityAgentRuleAction: CloudWorkloadSecurityAgentRuleAction, - CloudWorkloadSecurityAgentRuleAttributes: - CloudWorkloadSecurityAgentRuleAttributes, - CloudWorkloadSecurityAgentRuleCreateAttributes: - CloudWorkloadSecurityAgentRuleCreateAttributes, - CloudWorkloadSecurityAgentRuleCreateData: - CloudWorkloadSecurityAgentRuleCreateData, - CloudWorkloadSecurityAgentRuleCreateRequest: - CloudWorkloadSecurityAgentRuleCreateRequest, - CloudWorkloadSecurityAgentRuleCreatorAttributes: - CloudWorkloadSecurityAgentRuleCreatorAttributes, - CloudWorkloadSecurityAgentRuleData: CloudWorkloadSecurityAgentRuleData, - CloudWorkloadSecurityAgentRuleKill: CloudWorkloadSecurityAgentRuleKill, - CloudWorkloadSecurityAgentRuleResponse: - CloudWorkloadSecurityAgentRuleResponse, - CloudWorkloadSecurityAgentRuleUpdateAttributes: - CloudWorkloadSecurityAgentRuleUpdateAttributes, - CloudWorkloadSecurityAgentRuleUpdateData: - CloudWorkloadSecurityAgentRuleUpdateData, - CloudWorkloadSecurityAgentRuleUpdateRequest: - CloudWorkloadSecurityAgentRuleUpdateRequest, - CloudWorkloadSecurityAgentRuleUpdaterAttributes: - CloudWorkloadSecurityAgentRuleUpdaterAttributes, - CloudWorkloadSecurityAgentRulesListResponse: - CloudWorkloadSecurityAgentRulesListResponse, - CloudflareAccountCreateRequest: CloudflareAccountCreateRequest, - CloudflareAccountCreateRequestAttributes: - CloudflareAccountCreateRequestAttributes, - CloudflareAccountCreateRequestData: CloudflareAccountCreateRequestData, - CloudflareAccountResponse: CloudflareAccountResponse, - CloudflareAccountResponseAttributes: CloudflareAccountResponseAttributes, - CloudflareAccountResponseData: CloudflareAccountResponseData, - CloudflareAccountUpdateRequest: CloudflareAccountUpdateRequest, - CloudflareAccountUpdateRequestAttributes: - CloudflareAccountUpdateRequestAttributes, - CloudflareAccountUpdateRequestData: CloudflareAccountUpdateRequestData, - CloudflareAccountsResponse: CloudflareAccountsResponse, - CodeLocation: CodeLocation, - CompletionCondition: CompletionCondition, - CompletionGate: CompletionGate, - Component: Component, - ComponentGrid: ComponentGrid, - ComponentGridProperties: ComponentGridProperties, - ComponentProperties: ComponentProperties, - ConfluentAccountCreateRequest: ConfluentAccountCreateRequest, - ConfluentAccountCreateRequestAttributes: - ConfluentAccountCreateRequestAttributes, - ConfluentAccountCreateRequestData: ConfluentAccountCreateRequestData, - ConfluentAccountResourceAttributes: ConfluentAccountResourceAttributes, - ConfluentAccountResponse: ConfluentAccountResponse, - ConfluentAccountResponseAttributes: ConfluentAccountResponseAttributes, - ConfluentAccountResponseData: ConfluentAccountResponseData, - ConfluentAccountUpdateRequest: ConfluentAccountUpdateRequest, - ConfluentAccountUpdateRequestAttributes: - ConfluentAccountUpdateRequestAttributes, - ConfluentAccountUpdateRequestData: ConfluentAccountUpdateRequestData, - ConfluentAccountsResponse: ConfluentAccountsResponse, - ConfluentResourceRequest: ConfluentResourceRequest, - ConfluentResourceRequestAttributes: ConfluentResourceRequestAttributes, - ConfluentResourceRequestData: ConfluentResourceRequestData, - ConfluentResourceResponse: ConfluentResourceResponse, - ConfluentResourceResponseAttributes: ConfluentResourceResponseAttributes, - ConfluentResourceResponseData: ConfluentResourceResponseData, - ConfluentResourcesResponse: ConfluentResourcesResponse, - Connection: Connection, - ConnectionEnv: ConnectionEnv, - ConnectionGroup: ConnectionGroup, - Container: Container, - ContainerAttributes: ContainerAttributes, - ContainerGroup: ContainerGroup, - ContainerGroupAttributes: ContainerGroupAttributes, - ContainerGroupRelationships: ContainerGroupRelationships, - ContainerGroupRelationshipsLink: ContainerGroupRelationshipsLink, - ContainerGroupRelationshipsLinks: ContainerGroupRelationshipsLinks, - ContainerImage: ContainerImage, - ContainerImageAttributes: ContainerImageAttributes, - ContainerImageFlavor: ContainerImageFlavor, - ContainerImageGroup: ContainerImageGroup, - ContainerImageGroupAttributes: ContainerImageGroupAttributes, - ContainerImageGroupImagesRelationshipsLink: - ContainerImageGroupImagesRelationshipsLink, - ContainerImageGroupRelationships: ContainerImageGroupRelationships, - ContainerImageGroupRelationshipsLinks: ContainerImageGroupRelationshipsLinks, - ContainerImageMeta: ContainerImageMeta, - ContainerImageMetaPage: ContainerImageMetaPage, - ContainerImageVulnerabilities: ContainerImageVulnerabilities, - ContainerImagesResponse: ContainerImagesResponse, - ContainerImagesResponseLinks: ContainerImagesResponseLinks, - ContainerMeta: ContainerMeta, - ContainerMetaPage: ContainerMetaPage, - ContainersResponse: ContainersResponse, - ContainersResponseLinks: ContainersResponseLinks, - ConvertJobResultsToSignalsAttributes: ConvertJobResultsToSignalsAttributes, - ConvertJobResultsToSignalsData: ConvertJobResultsToSignalsData, - ConvertJobResultsToSignalsRequest: ConvertJobResultsToSignalsRequest, - CostAttributionAggregatesBody: CostAttributionAggregatesBody, - CostByOrg: CostByOrg, - CostByOrgAttributes: CostByOrgAttributes, - CostByOrgResponse: CostByOrgResponse, - CreateActionConnectionRequest: CreateActionConnectionRequest, - CreateActionConnectionResponse: CreateActionConnectionResponse, - CreateAppRequest: CreateAppRequest, - CreateAppRequestData: CreateAppRequestData, - CreateAppRequestDataAttributes: CreateAppRequestDataAttributes, - CreateAppResponse: CreateAppResponse, - CreateAppResponseData: CreateAppResponseData, - CreateDataDeletionRequestBody: CreateDataDeletionRequestBody, - CreateDataDeletionRequestBodyAttributes: - CreateDataDeletionRequestBodyAttributes, - CreateDataDeletionRequestBodyData: CreateDataDeletionRequestBodyData, - CreateDataDeletionResponseBody: CreateDataDeletionResponseBody, - CreateNotificationRuleParameters: CreateNotificationRuleParameters, - CreateNotificationRuleParametersData: CreateNotificationRuleParametersData, - CreateNotificationRuleParametersDataAttributes: - CreateNotificationRuleParametersDataAttributes, - CreateOpenAPIResponse: CreateOpenAPIResponse, - CreateOpenAPIResponseAttributes: CreateOpenAPIResponseAttributes, - CreateOpenAPIResponseData: CreateOpenAPIResponseData, - CreateRuleRequest: CreateRuleRequest, - CreateRuleRequestData: CreateRuleRequestData, - CreateRuleResponse: CreateRuleResponse, - CreateRuleResponseData: CreateRuleResponseData, - CreateWorkflowRequest: CreateWorkflowRequest, - CreateWorkflowResponse: CreateWorkflowResponse, - Creator: Creator, - CsmAgentData: CsmAgentData, - CsmAgentsAttributes: CsmAgentsAttributes, - CsmAgentsResponse: CsmAgentsResponse, - CsmCloudAccountsCoverageAnalysisAttributes: - CsmCloudAccountsCoverageAnalysisAttributes, - CsmCloudAccountsCoverageAnalysisData: CsmCloudAccountsCoverageAnalysisData, - CsmCloudAccountsCoverageAnalysisResponse: - CsmCloudAccountsCoverageAnalysisResponse, - CsmCoverageAnalysis: CsmCoverageAnalysis, - CsmHostsAndContainersCoverageAnalysisAttributes: - CsmHostsAndContainersCoverageAnalysisAttributes, - CsmHostsAndContainersCoverageAnalysisData: - CsmHostsAndContainersCoverageAnalysisData, - CsmHostsAndContainersCoverageAnalysisResponse: - CsmHostsAndContainersCoverageAnalysisResponse, - CsmServerlessCoverageAnalysisAttributes: - CsmServerlessCoverageAnalysisAttributes, - CsmServerlessCoverageAnalysisData: CsmServerlessCoverageAnalysisData, - CsmServerlessCoverageAnalysisResponse: CsmServerlessCoverageAnalysisResponse, - CustomConnection: CustomConnection, - CustomConnectionAttributes: CustomConnectionAttributes, - CustomConnectionAttributesOnPremRunner: - CustomConnectionAttributesOnPremRunner, - CustomCostGetResponseMeta: CustomCostGetResponseMeta, - CustomCostListResponseMeta: CustomCostListResponseMeta, - CustomCostUploadResponseMeta: CustomCostUploadResponseMeta, - CustomCostsFileGetResponse: CustomCostsFileGetResponse, - CustomCostsFileLineItem: CustomCostsFileLineItem, - CustomCostsFileListResponse: CustomCostsFileListResponse, - CustomCostsFileMetadata: CustomCostsFileMetadata, - CustomCostsFileMetadataHighLevel: CustomCostsFileMetadataHighLevel, - CustomCostsFileMetadataWithContent: CustomCostsFileMetadataWithContent, - CustomCostsFileMetadataWithContentHighLevel: - CustomCostsFileMetadataWithContentHighLevel, - CustomCostsFileUploadResponse: CustomCostsFileUploadResponse, - CustomCostsFileUsageChargePeriod: CustomCostsFileUsageChargePeriod, - CustomCostsUser: CustomCostsUser, - CustomDestinationCreateRequest: CustomDestinationCreateRequest, - CustomDestinationCreateRequestAttributes: - CustomDestinationCreateRequestAttributes, - CustomDestinationCreateRequestDefinition: - CustomDestinationCreateRequestDefinition, - CustomDestinationElasticsearchDestinationAuth: - CustomDestinationElasticsearchDestinationAuth, - CustomDestinationForwardDestinationElasticsearch: - CustomDestinationForwardDestinationElasticsearch, - CustomDestinationForwardDestinationHttp: - CustomDestinationForwardDestinationHttp, - CustomDestinationForwardDestinationSplunk: - CustomDestinationForwardDestinationSplunk, - CustomDestinationHttpDestinationAuthBasic: - CustomDestinationHttpDestinationAuthBasic, - CustomDestinationHttpDestinationAuthCustomHeader: - CustomDestinationHttpDestinationAuthCustomHeader, - CustomDestinationResponse: CustomDestinationResponse, - CustomDestinationResponseAttributes: CustomDestinationResponseAttributes, - CustomDestinationResponseDefinition: CustomDestinationResponseDefinition, - CustomDestinationResponseForwardDestinationElasticsearch: - CustomDestinationResponseForwardDestinationElasticsearch, - CustomDestinationResponseForwardDestinationHttp: - CustomDestinationResponseForwardDestinationHttp, - CustomDestinationResponseForwardDestinationSplunk: - CustomDestinationResponseForwardDestinationSplunk, - CustomDestinationResponseHttpDestinationAuthBasic: - CustomDestinationResponseHttpDestinationAuthBasic, - CustomDestinationResponseHttpDestinationAuthCustomHeader: - CustomDestinationResponseHttpDestinationAuthCustomHeader, - CustomDestinationUpdateRequest: CustomDestinationUpdateRequest, - CustomDestinationUpdateRequestAttributes: - CustomDestinationUpdateRequestAttributes, - CustomDestinationUpdateRequestDefinition: - CustomDestinationUpdateRequestDefinition, - CustomDestinationsResponse: CustomDestinationsResponse, - DORADeploymentRequest: DORADeploymentRequest, - DORADeploymentRequestAttributes: DORADeploymentRequestAttributes, - DORADeploymentRequestData: DORADeploymentRequestData, - DORADeploymentResponse: DORADeploymentResponse, - DORADeploymentResponseData: DORADeploymentResponseData, - DORAGitInfo: DORAGitInfo, - DORAIncidentRequest: DORAIncidentRequest, - DORAIncidentRequestAttributes: DORAIncidentRequestAttributes, - DORAIncidentRequestData: DORAIncidentRequestData, - DORAIncidentResponse: DORAIncidentResponse, - DORAIncidentResponseData: DORAIncidentResponseData, - DashboardListAddItemsRequest: DashboardListAddItemsRequest, - DashboardListAddItemsResponse: DashboardListAddItemsResponse, - DashboardListDeleteItemsRequest: DashboardListDeleteItemsRequest, - DashboardListDeleteItemsResponse: DashboardListDeleteItemsResponse, - DashboardListItem: DashboardListItem, - DashboardListItemRequest: DashboardListItemRequest, - DashboardListItemResponse: DashboardListItemResponse, - DashboardListItems: DashboardListItems, - DashboardListUpdateItemsRequest: DashboardListUpdateItemsRequest, - DashboardListUpdateItemsResponse: DashboardListUpdateItemsResponse, - DashboardTriggerWrapper: DashboardTriggerWrapper, - DataDeletionResponseItem: DataDeletionResponseItem, - DataDeletionResponseItemAttributes: DataDeletionResponseItemAttributes, - DataDeletionResponseMeta: DataDeletionResponseMeta, - DataScalarColumn: DataScalarColumn, - DataTransform: DataTransform, - DataTransformProperties: DataTransformProperties, - DatabaseMonitoringTriggerWrapper: DatabaseMonitoringTriggerWrapper, - DeleteAppResponse: DeleteAppResponse, - DeleteAppResponseData: DeleteAppResponseData, - DeleteAppsRequest: DeleteAppsRequest, - DeleteAppsRequestDataItems: DeleteAppsRequestDataItems, - DeleteAppsResponse: DeleteAppsResponse, - DeleteAppsResponseDataItems: DeleteAppsResponseDataItems, - DependencyLocation: DependencyLocation, - Deployment: Deployment, - DeploymentAttributes: DeploymentAttributes, - DeploymentMetadata: DeploymentMetadata, - DeploymentRelationship: DeploymentRelationship, - DeploymentRelationshipData: DeploymentRelationshipData, - DetailedFinding: DetailedFinding, - DetailedFindingAttributes: DetailedFindingAttributes, - DeviceAttributes: DeviceAttributes, - DeviceAttributesInterfaceStatuses: DeviceAttributesInterfaceStatuses, - DevicesListData: DevicesListData, - DomainAllowlist: DomainAllowlist, - DomainAllowlistAttributes: DomainAllowlistAttributes, - DomainAllowlistRequest: DomainAllowlistRequest, - DomainAllowlistResponse: DomainAllowlistResponse, - DomainAllowlistResponseData: DomainAllowlistResponseData, - DomainAllowlistResponseDataAttributes: DomainAllowlistResponseDataAttributes, - DowntimeCreateRequest: DowntimeCreateRequest, - DowntimeCreateRequestAttributes: DowntimeCreateRequestAttributes, - DowntimeCreateRequestData: DowntimeCreateRequestData, - DowntimeMeta: DowntimeMeta, - DowntimeMetaPage: DowntimeMetaPage, - DowntimeMonitorIdentifierId: DowntimeMonitorIdentifierId, - DowntimeMonitorIdentifierTags: DowntimeMonitorIdentifierTags, - DowntimeMonitorIncludedAttributes: DowntimeMonitorIncludedAttributes, - DowntimeMonitorIncludedItem: DowntimeMonitorIncludedItem, - DowntimeRelationships: DowntimeRelationships, - DowntimeRelationshipsCreatedBy: DowntimeRelationshipsCreatedBy, - DowntimeRelationshipsCreatedByData: DowntimeRelationshipsCreatedByData, - DowntimeRelationshipsMonitor: DowntimeRelationshipsMonitor, - DowntimeRelationshipsMonitorData: DowntimeRelationshipsMonitorData, - DowntimeResponse: DowntimeResponse, - DowntimeResponseAttributes: DowntimeResponseAttributes, - DowntimeResponseData: DowntimeResponseData, - DowntimeScheduleCurrentDowntimeResponse: - DowntimeScheduleCurrentDowntimeResponse, - DowntimeScheduleOneTimeCreateUpdateRequest: - DowntimeScheduleOneTimeCreateUpdateRequest, - DowntimeScheduleOneTimeResponse: DowntimeScheduleOneTimeResponse, - DowntimeScheduleRecurrenceCreateUpdateRequest: - DowntimeScheduleRecurrenceCreateUpdateRequest, - DowntimeScheduleRecurrenceResponse: DowntimeScheduleRecurrenceResponse, - DowntimeScheduleRecurrencesCreateRequest: - DowntimeScheduleRecurrencesCreateRequest, - DowntimeScheduleRecurrencesResponse: DowntimeScheduleRecurrencesResponse, - DowntimeScheduleRecurrencesUpdateRequest: - DowntimeScheduleRecurrencesUpdateRequest, - DowntimeUpdateRequest: DowntimeUpdateRequest, - DowntimeUpdateRequestAttributes: DowntimeUpdateRequestAttributes, - DowntimeUpdateRequestData: DowntimeUpdateRequestData, - EPSS: EPSS, - EntityAttributes: EntityAttributes, - EntityData: EntityData, - EntityMeta: EntityMeta, - EntityRelationships: EntityRelationships, - EntityResponseIncludedIncident: EntityResponseIncludedIncident, - EntityResponseIncludedOncall: EntityResponseIncludedOncall, - EntityResponseIncludedRawSchema: EntityResponseIncludedRawSchema, - EntityResponseIncludedRawSchemaAttributes: - EntityResponseIncludedRawSchemaAttributes, - EntityResponseIncludedRelatedEntity: EntityResponseIncludedRelatedEntity, - EntityResponseIncludedRelatedEntityAttributes: - EntityResponseIncludedRelatedEntityAttributes, - EntityResponseIncludedRelatedEntityMeta: - EntityResponseIncludedRelatedEntityMeta, - EntityResponseIncludedRelatedIncidentAttributes: - EntityResponseIncludedRelatedIncidentAttributes, - EntityResponseIncludedRelatedOncallAttributes: - EntityResponseIncludedRelatedOncallAttributes, - EntityResponseIncludedRelatedOncallEscalationItem: - EntityResponseIncludedRelatedOncallEscalationItem, - EntityResponseIncludedSchema: EntityResponseIncludedSchema, - EntityResponseIncludedSchemaAttributes: - EntityResponseIncludedSchemaAttributes, - EntityResponseMeta: EntityResponseMeta, - EntityToIncidents: EntityToIncidents, - EntityToOncalls: EntityToOncalls, - EntityToRawSchema: EntityToRawSchema, - EntityToRelatedEntities: EntityToRelatedEntities, - EntityToSchema: EntityToSchema, - EntityV3API: EntityV3API, - EntityV3APIDatadog: EntityV3APIDatadog, - EntityV3APISpec: EntityV3APISpec, - EntityV3APISpecInterfaceDefinition: EntityV3APISpecInterfaceDefinition, - EntityV3APISpecInterfaceFileRef: EntityV3APISpecInterfaceFileRef, - EntityV3DatadogCodeLocationItem: EntityV3DatadogCodeLocationItem, - EntityV3DatadogEventItem: EntityV3DatadogEventItem, - EntityV3DatadogIntegrationOpsgenie: EntityV3DatadogIntegrationOpsgenie, - EntityV3DatadogIntegrationPagerduty: EntityV3DatadogIntegrationPagerduty, - EntityV3DatadogLogItem: EntityV3DatadogLogItem, - EntityV3DatadogPerformance: EntityV3DatadogPerformance, - EntityV3DatadogPipelines: EntityV3DatadogPipelines, - EntityV3Datastore: EntityV3Datastore, - EntityV3DatastoreDatadog: EntityV3DatastoreDatadog, - EntityV3DatastoreSpec: EntityV3DatastoreSpec, - EntityV3Integrations: EntityV3Integrations, - EntityV3Metadata: EntityV3Metadata, - EntityV3MetadataAdditionalOwnersItems: EntityV3MetadataAdditionalOwnersItems, - EntityV3MetadataContactsItems: EntityV3MetadataContactsItems, - EntityV3MetadataLinksItems: EntityV3MetadataLinksItems, - EntityV3Queue: EntityV3Queue, - EntityV3QueueDatadog: EntityV3QueueDatadog, - EntityV3QueueSpec: EntityV3QueueSpec, - EntityV3Service: EntityV3Service, - EntityV3ServiceDatadog: EntityV3ServiceDatadog, - EntityV3ServiceSpec: EntityV3ServiceSpec, - EntityV3System: EntityV3System, - EntityV3SystemDatadog: EntityV3SystemDatadog, - EntityV3SystemSpec: EntityV3SystemSpec, - ErrorHandler: ErrorHandler, - Event: Event, - EventAttributes: EventAttributes, - EventCreateRequest: EventCreateRequest, - EventCreateRequestPayload: EventCreateRequestPayload, - EventCreateResponse: EventCreateResponse, - EventCreateResponseAttributes: EventCreateResponseAttributes, - EventCreateResponseAttributesAttributes: - EventCreateResponseAttributesAttributes, - EventCreateResponseAttributesAttributesEvt: - EventCreateResponseAttributesAttributesEvt, - EventCreateResponsePayload: EventCreateResponsePayload, - EventPayload: EventPayload, - EventResponse: EventResponse, - EventResponseAttributes: EventResponseAttributes, - EventsCompute: EventsCompute, - EventsGroupBy: EventsGroupBy, - EventsGroupBySort: EventsGroupBySort, - EventsListRequest: EventsListRequest, - EventsListResponse: EventsListResponse, - EventsListResponseLinks: EventsListResponseLinks, - EventsQueryFilter: EventsQueryFilter, - EventsQueryOptions: EventsQueryOptions, - EventsRequestPage: EventsRequestPage, - EventsResponseMetadata: EventsResponseMetadata, - EventsResponseMetadataPage: EventsResponseMetadataPage, - EventsScalarQuery: EventsScalarQuery, - EventsSearch: EventsSearch, - EventsTimeseriesQuery: EventsTimeseriesQuery, - EventsWarning: EventsWarning, - FastlyAccounResponseAttributes: FastlyAccounResponseAttributes, - FastlyAccountCreateRequest: FastlyAccountCreateRequest, - FastlyAccountCreateRequestAttributes: FastlyAccountCreateRequestAttributes, - FastlyAccountCreateRequestData: FastlyAccountCreateRequestData, - FastlyAccountResponse: FastlyAccountResponse, - FastlyAccountResponseData: FastlyAccountResponseData, - FastlyAccountUpdateRequest: FastlyAccountUpdateRequest, - FastlyAccountUpdateRequestAttributes: FastlyAccountUpdateRequestAttributes, - FastlyAccountUpdateRequestData: FastlyAccountUpdateRequestData, - FastlyAccountsResponse: FastlyAccountsResponse, - FastlyService: FastlyService, - FastlyServiceAttributes: FastlyServiceAttributes, - FastlyServiceData: FastlyServiceData, - FastlyServiceRequest: FastlyServiceRequest, - FastlyServiceResponse: FastlyServiceResponse, - FastlyServicesResponse: FastlyServicesResponse, - Finding: Finding, - FindingAttributes: FindingAttributes, - FindingMute: FindingMute, - FindingRule: FindingRule, - FormulaLimit: FormulaLimit, - FullAPIKey: FullAPIKey, - FullAPIKeyAttributes: FullAPIKeyAttributes, - FullApplicationKey: FullApplicationKey, - FullApplicationKeyAttributes: FullApplicationKeyAttributes, - GCPMetricNamespaceConfig: GCPMetricNamespaceConfig, - GCPSTSDelegateAccount: GCPSTSDelegateAccount, - GCPSTSDelegateAccountAttributes: GCPSTSDelegateAccountAttributes, - GCPSTSDelegateAccountResponse: GCPSTSDelegateAccountResponse, - GCPSTSServiceAccount: GCPSTSServiceAccount, - GCPSTSServiceAccountAttributes: GCPSTSServiceAccountAttributes, - GCPSTSServiceAccountCreateRequest: GCPSTSServiceAccountCreateRequest, - GCPSTSServiceAccountData: GCPSTSServiceAccountData, - GCPSTSServiceAccountResponse: GCPSTSServiceAccountResponse, - GCPSTSServiceAccountUpdateRequest: GCPSTSServiceAccountUpdateRequest, - GCPSTSServiceAccountUpdateRequestData: GCPSTSServiceAccountUpdateRequestData, - GCPSTSServiceAccountsResponse: GCPSTSServiceAccountsResponse, - GCPServiceAccountMeta: GCPServiceAccountMeta, - GetActionConnectionResponse: GetActionConnectionResponse, - GetAppResponse: GetAppResponse, - GetAppResponseData: GetAppResponseData, - GetAppResponseDataAttributes: GetAppResponseDataAttributes, - GetDataDeletionsResponseBody: GetDataDeletionsResponseBody, - GetDeviceAttributes: GetDeviceAttributes, - GetDeviceData: GetDeviceData, - GetDeviceResponse: GetDeviceResponse, - GetFindingResponse: GetFindingResponse, - GetInterfacesData: GetInterfacesData, - GetInterfacesResponse: GetInterfacesResponse, - GetRuleVersionHistoryData: GetRuleVersionHistoryData, - GetRuleVersionHistoryResponse: GetRuleVersionHistoryResponse, - GetSBOMResponse: GetSBOMResponse, - GetWorkflowResponse: GetWorkflowResponse, - GithubWebhookTrigger: GithubWebhookTrigger, - GithubWebhookTriggerWrapper: GithubWebhookTriggerWrapper, - GroupScalarColumn: GroupScalarColumn, - HTTPBody: HTTPBody, - HTTPCIAppError: HTTPCIAppError, - HTTPCIAppErrors: HTTPCIAppErrors, - HTTPHeader: HTTPHeader, - HTTPHeaderUpdate: HTTPHeaderUpdate, - HTTPIntegration: HTTPIntegration, - HTTPIntegrationUpdate: HTTPIntegrationUpdate, - HTTPLogError: HTTPLogError, - HTTPLogErrors: HTTPLogErrors, - HTTPLogItem: HTTPLogItem, - HTTPToken: HTTPToken, - HTTPTokenAuth: HTTPTokenAuth, - HTTPTokenAuthUpdate: HTTPTokenAuthUpdate, - HTTPTokenUpdate: HTTPTokenUpdate, - HistoricalJobListMeta: HistoricalJobListMeta, - HistoricalJobOptions: HistoricalJobOptions, - HistoricalJobQuery: HistoricalJobQuery, - HistoricalJobResponse: HistoricalJobResponse, - HistoricalJobResponseAttributes: HistoricalJobResponseAttributes, - HistoricalJobResponseData: HistoricalJobResponseData, - HourlyUsage: HourlyUsage, - HourlyUsageAttributes: HourlyUsageAttributes, - HourlyUsageMeasurement: HourlyUsageMeasurement, - HourlyUsageMetadata: HourlyUsageMetadata, - HourlyUsagePagination: HourlyUsagePagination, - HourlyUsageResponse: HourlyUsageResponse, - IPAllowlistAttributes: IPAllowlistAttributes, - IPAllowlistData: IPAllowlistData, - IPAllowlistEntry: IPAllowlistEntry, - IPAllowlistEntryAttributes: IPAllowlistEntryAttributes, - IPAllowlistEntryData: IPAllowlistEntryData, - IPAllowlistResponse: IPAllowlistResponse, - IPAllowlistUpdateRequest: IPAllowlistUpdateRequest, - IdPMetadataFormData: IdPMetadataFormData, - IncidentAttachmentData: IncidentAttachmentData, - IncidentAttachmentLinkAttributes: IncidentAttachmentLinkAttributes, - IncidentAttachmentLinkAttributesAttachmentObject: - IncidentAttachmentLinkAttributesAttachmentObject, - IncidentAttachmentPostmortemAttributes: - IncidentAttachmentPostmortemAttributes, - IncidentAttachmentRelationships: IncidentAttachmentRelationships, - IncidentAttachmentUpdateData: IncidentAttachmentUpdateData, - IncidentAttachmentUpdateRequest: IncidentAttachmentUpdateRequest, - IncidentAttachmentUpdateResponse: IncidentAttachmentUpdateResponse, - IncidentAttachmentsPostmortemAttributesAttachmentObject: - IncidentAttachmentsPostmortemAttributesAttachmentObject, - IncidentAttachmentsResponse: IncidentAttachmentsResponse, - IncidentCreateAttributes: IncidentCreateAttributes, - IncidentCreateData: IncidentCreateData, - IncidentCreateRelationships: IncidentCreateRelationships, - IncidentCreateRequest: IncidentCreateRequest, - IncidentFieldAttributesMultipleValue: IncidentFieldAttributesMultipleValue, - IncidentFieldAttributesSingleValue: IncidentFieldAttributesSingleValue, - IncidentIntegrationMetadataAttributes: IncidentIntegrationMetadataAttributes, - IncidentIntegrationMetadataCreateData: IncidentIntegrationMetadataCreateData, - IncidentIntegrationMetadataCreateRequest: - IncidentIntegrationMetadataCreateRequest, - IncidentIntegrationMetadataListResponse: - IncidentIntegrationMetadataListResponse, - IncidentIntegrationMetadataPatchData: IncidentIntegrationMetadataPatchData, - IncidentIntegrationMetadataPatchRequest: - IncidentIntegrationMetadataPatchRequest, - IncidentIntegrationMetadataResponse: IncidentIntegrationMetadataResponse, - IncidentIntegrationMetadataResponseData: - IncidentIntegrationMetadataResponseData, - IncidentIntegrationRelationships: IncidentIntegrationRelationships, - IncidentNonDatadogCreator: IncidentNonDatadogCreator, - IncidentNotificationHandle: IncidentNotificationHandle, - IncidentResponse: IncidentResponse, - IncidentResponseAttributes: IncidentResponseAttributes, - IncidentResponseData: IncidentResponseData, - IncidentResponseMeta: IncidentResponseMeta, - IncidentResponseMetaPagination: IncidentResponseMetaPagination, - IncidentResponseRelationships: IncidentResponseRelationships, - IncidentSearchResponse: IncidentSearchResponse, - IncidentSearchResponseAttributes: IncidentSearchResponseAttributes, - IncidentSearchResponseData: IncidentSearchResponseData, - IncidentSearchResponseFacetsData: IncidentSearchResponseFacetsData, - IncidentSearchResponseFieldFacetData: IncidentSearchResponseFieldFacetData, - IncidentSearchResponseIncidentsData: IncidentSearchResponseIncidentsData, - IncidentSearchResponseMeta: IncidentSearchResponseMeta, - IncidentSearchResponseNumericFacetData: - IncidentSearchResponseNumericFacetData, - IncidentSearchResponseNumericFacetDataAggregates: - IncidentSearchResponseNumericFacetDataAggregates, - IncidentSearchResponsePropertyFieldFacetData: - IncidentSearchResponsePropertyFieldFacetData, - IncidentSearchResponseUserFacetData: IncidentSearchResponseUserFacetData, - IncidentServiceCreateAttributes: IncidentServiceCreateAttributes, - IncidentServiceCreateData: IncidentServiceCreateData, - IncidentServiceCreateRequest: IncidentServiceCreateRequest, - IncidentServiceRelationships: IncidentServiceRelationships, - IncidentServiceResponse: IncidentServiceResponse, - IncidentServiceResponseAttributes: IncidentServiceResponseAttributes, - IncidentServiceResponseData: IncidentServiceResponseData, - IncidentServiceUpdateAttributes: IncidentServiceUpdateAttributes, - IncidentServiceUpdateData: IncidentServiceUpdateData, - IncidentServiceUpdateRequest: IncidentServiceUpdateRequest, - IncidentServicesResponse: IncidentServicesResponse, - IncidentTeamCreateAttributes: IncidentTeamCreateAttributes, - IncidentTeamCreateData: IncidentTeamCreateData, - IncidentTeamCreateRequest: IncidentTeamCreateRequest, - IncidentTeamRelationships: IncidentTeamRelationships, - IncidentTeamResponse: IncidentTeamResponse, - IncidentTeamResponseAttributes: IncidentTeamResponseAttributes, - IncidentTeamResponseData: IncidentTeamResponseData, - IncidentTeamUpdateAttributes: IncidentTeamUpdateAttributes, - IncidentTeamUpdateData: IncidentTeamUpdateData, - IncidentTeamUpdateRequest: IncidentTeamUpdateRequest, - IncidentTeamsResponse: IncidentTeamsResponse, - IncidentTimelineCellMarkdownCreateAttributes: - IncidentTimelineCellMarkdownCreateAttributes, - IncidentTimelineCellMarkdownCreateAttributesContent: - IncidentTimelineCellMarkdownCreateAttributesContent, - IncidentTodoAnonymousAssignee: IncidentTodoAnonymousAssignee, - IncidentTodoAttributes: IncidentTodoAttributes, - IncidentTodoCreateData: IncidentTodoCreateData, - IncidentTodoCreateRequest: IncidentTodoCreateRequest, - IncidentTodoListResponse: IncidentTodoListResponse, - IncidentTodoPatchData: IncidentTodoPatchData, - IncidentTodoPatchRequest: IncidentTodoPatchRequest, - IncidentTodoRelationships: IncidentTodoRelationships, - IncidentTodoResponse: IncidentTodoResponse, - IncidentTodoResponseData: IncidentTodoResponseData, - IncidentTrigger: IncidentTrigger, - IncidentTriggerWrapper: IncidentTriggerWrapper, - IncidentTypeAttributes: IncidentTypeAttributes, - IncidentTypeCreateData: IncidentTypeCreateData, - IncidentTypeCreateRequest: IncidentTypeCreateRequest, - IncidentTypeListResponse: IncidentTypeListResponse, - IncidentTypeObject: IncidentTypeObject, - IncidentTypePatchData: IncidentTypePatchData, - IncidentTypePatchRequest: IncidentTypePatchRequest, - IncidentTypeResponse: IncidentTypeResponse, - IncidentTypeUpdateAttributes: IncidentTypeUpdateAttributes, - IncidentUpdateAttributes: IncidentUpdateAttributes, - IncidentUpdateData: IncidentUpdateData, - IncidentUpdateRelationships: IncidentUpdateRelationships, - IncidentUpdateRequest: IncidentUpdateRequest, - IncidentUserAttributes: IncidentUserAttributes, - IncidentUserData: IncidentUserData, - IncidentsResponse: IncidentsResponse, - InputSchema: InputSchema, - InputSchemaParameters: InputSchemaParameters, - IntakePayloadAccepted: IntakePayloadAccepted, - InterfaceAttributes: InterfaceAttributes, - JSONAPIErrorItem: JSONAPIErrorItem, - JSONAPIErrorItemSource: JSONAPIErrorItemSource, - JSONAPIErrorResponse: JSONAPIErrorResponse, - JiraIntegrationMetadata: JiraIntegrationMetadata, - JiraIntegrationMetadataIssuesItem: JiraIntegrationMetadataIssuesItem, - JiraIssue: JiraIssue, - JiraIssueResult: JiraIssueResult, - JobCreateResponse: JobCreateResponse, - JobCreateResponseData: JobCreateResponseData, - JobDefinition: JobDefinition, - JobDefinitionFromRule: JobDefinitionFromRule, - LeakedKey: LeakedKey, - LeakedKeyAttributes: LeakedKeyAttributes, - Library: Library, - Links: Links, - ListAPIsResponse: ListAPIsResponse, - ListAPIsResponseData: ListAPIsResponseData, - ListAPIsResponseDataAttributes: ListAPIsResponseDataAttributes, - ListAPIsResponseMeta: ListAPIsResponseMeta, - ListAPIsResponseMetaPagination: ListAPIsResponseMetaPagination, - ListApplicationKeysResponse: ListApplicationKeysResponse, - ListAppsResponse: ListAppsResponse, - ListAppsResponseDataItems: ListAppsResponseDataItems, - ListAppsResponseDataItemsAttributes: ListAppsResponseDataItemsAttributes, - ListAppsResponseDataItemsRelationships: - ListAppsResponseDataItemsRelationships, - ListAppsResponseMeta: ListAppsResponseMeta, - ListAppsResponseMetaPage: ListAppsResponseMetaPage, - ListDevicesResponse: ListDevicesResponse, - ListDevicesResponseMetadata: ListDevicesResponseMetadata, - ListDevicesResponseMetadataPage: ListDevicesResponseMetadataPage, - ListDowntimesResponse: ListDowntimesResponse, - ListEntityCatalogResponse: ListEntityCatalogResponse, - ListEntityCatalogResponseLinks: ListEntityCatalogResponseLinks, - ListFindingsMeta: ListFindingsMeta, - ListFindingsPage: ListFindingsPage, - ListFindingsResponse: ListFindingsResponse, - ListHistoricalJobsResponse: ListHistoricalJobsResponse, - ListPowerpacksResponse: ListPowerpacksResponse, - ListRulesResponse: ListRulesResponse, - ListRulesResponseDataItem: ListRulesResponseDataItem, - ListRulesResponseLinks: ListRulesResponseLinks, - ListTagsResponse: ListTagsResponse, - ListTagsResponseData: ListTagsResponseData, - ListTagsResponseDataAttributes: ListTagsResponseDataAttributes, - ListVulnerabilitiesResponse: ListVulnerabilitiesResponse, - ListVulnerableAssetsResponse: ListVulnerableAssetsResponse, - Log: Log, - LogAttributes: LogAttributes, - LogsAggregateBucket: LogsAggregateBucket, - LogsAggregateBucketValueTimeseriesPoint: - LogsAggregateBucketValueTimeseriesPoint, - LogsAggregateRequest: LogsAggregateRequest, - LogsAggregateRequestPage: LogsAggregateRequestPage, - LogsAggregateResponse: LogsAggregateResponse, - LogsAggregateResponseData: LogsAggregateResponseData, - LogsAggregateSort: LogsAggregateSort, - LogsArchive: LogsArchive, - LogsArchiveAttributes: LogsArchiveAttributes, - LogsArchiveCreateRequest: LogsArchiveCreateRequest, - LogsArchiveCreateRequestAttributes: LogsArchiveCreateRequestAttributes, - LogsArchiveCreateRequestDefinition: LogsArchiveCreateRequestDefinition, - LogsArchiveDefinition: LogsArchiveDefinition, - LogsArchiveDestinationAzure: LogsArchiveDestinationAzure, - LogsArchiveDestinationGCS: LogsArchiveDestinationGCS, - LogsArchiveDestinationS3: LogsArchiveDestinationS3, - LogsArchiveEncryptionS3: LogsArchiveEncryptionS3, - LogsArchiveIntegrationAzure: LogsArchiveIntegrationAzure, - LogsArchiveIntegrationGCS: LogsArchiveIntegrationGCS, - LogsArchiveIntegrationS3: LogsArchiveIntegrationS3, - LogsArchiveOrder: LogsArchiveOrder, - LogsArchiveOrderAttributes: LogsArchiveOrderAttributes, - LogsArchiveOrderDefinition: LogsArchiveOrderDefinition, - LogsArchives: LogsArchives, - LogsCompute: LogsCompute, - LogsGroupBy: LogsGroupBy, - LogsGroupByHistogram: LogsGroupByHistogram, - LogsListRequest: LogsListRequest, - LogsListRequestPage: LogsListRequestPage, - LogsListResponse: LogsListResponse, - LogsListResponseLinks: LogsListResponseLinks, - LogsMetricCompute: LogsMetricCompute, - LogsMetricCreateAttributes: LogsMetricCreateAttributes, - LogsMetricCreateData: LogsMetricCreateData, - LogsMetricCreateRequest: LogsMetricCreateRequest, - LogsMetricFilter: LogsMetricFilter, - LogsMetricGroupBy: LogsMetricGroupBy, - LogsMetricResponse: LogsMetricResponse, - LogsMetricResponseAttributes: LogsMetricResponseAttributes, - LogsMetricResponseCompute: LogsMetricResponseCompute, - LogsMetricResponseData: LogsMetricResponseData, - LogsMetricResponseFilter: LogsMetricResponseFilter, - LogsMetricResponseGroupBy: LogsMetricResponseGroupBy, - LogsMetricUpdateAttributes: LogsMetricUpdateAttributes, - LogsMetricUpdateCompute: LogsMetricUpdateCompute, - LogsMetricUpdateData: LogsMetricUpdateData, - LogsMetricUpdateRequest: LogsMetricUpdateRequest, - LogsMetricsResponse: LogsMetricsResponse, - LogsQueryFilter: LogsQueryFilter, - LogsQueryOptions: LogsQueryOptions, - LogsResponseMetadata: LogsResponseMetadata, - LogsResponseMetadataPage: LogsResponseMetadataPage, - LogsWarning: LogsWarning, - MSTeamsIntegrationMetadata: MSTeamsIntegrationMetadata, - MSTeamsIntegrationMetadataTeamsItem: MSTeamsIntegrationMetadataTeamsItem, - Metadata: Metadata, - Metric: Metric, - MetricAllTags: MetricAllTags, - MetricAllTagsAttributes: MetricAllTagsAttributes, - MetricAllTagsResponse: MetricAllTagsResponse, - MetricAssetAttributes: MetricAssetAttributes, - MetricAssetDashboardRelationship: MetricAssetDashboardRelationship, - MetricAssetDashboardRelationships: MetricAssetDashboardRelationships, - MetricAssetMonitorRelationship: MetricAssetMonitorRelationship, - MetricAssetMonitorRelationships: MetricAssetMonitorRelationships, - MetricAssetNotebookRelationship: MetricAssetNotebookRelationship, - MetricAssetNotebookRelationships: MetricAssetNotebookRelationships, - MetricAssetResponseData: MetricAssetResponseData, - MetricAssetResponseRelationships: MetricAssetResponseRelationships, - MetricAssetSLORelationship: MetricAssetSLORelationship, - MetricAssetSLORelationships: MetricAssetSLORelationships, - MetricAssetsResponse: MetricAssetsResponse, - MetricBulkTagConfigCreate: MetricBulkTagConfigCreate, - MetricBulkTagConfigCreateAttributes: MetricBulkTagConfigCreateAttributes, - MetricBulkTagConfigCreateRequest: MetricBulkTagConfigCreateRequest, - MetricBulkTagConfigDelete: MetricBulkTagConfigDelete, - MetricBulkTagConfigDeleteAttributes: MetricBulkTagConfigDeleteAttributes, - MetricBulkTagConfigDeleteRequest: MetricBulkTagConfigDeleteRequest, - MetricBulkTagConfigResponse: MetricBulkTagConfigResponse, - MetricBulkTagConfigStatus: MetricBulkTagConfigStatus, - MetricBulkTagConfigStatusAttributes: MetricBulkTagConfigStatusAttributes, - MetricCustomAggregation: MetricCustomAggregation, - MetricDashboardAsset: MetricDashboardAsset, - MetricDashboardAttributes: MetricDashboardAttributes, - MetricDistinctVolume: MetricDistinctVolume, - MetricDistinctVolumeAttributes: MetricDistinctVolumeAttributes, - MetricEstimate: MetricEstimate, - MetricEstimateAttributes: MetricEstimateAttributes, - MetricEstimateResponse: MetricEstimateResponse, - MetricIngestedIndexedVolume: MetricIngestedIndexedVolume, - MetricIngestedIndexedVolumeAttributes: MetricIngestedIndexedVolumeAttributes, - MetricMetaPage: MetricMetaPage, - MetricMetadata: MetricMetadata, - MetricMonitorAsset: MetricMonitorAsset, - MetricNotebookAsset: MetricNotebookAsset, - MetricOrigin: MetricOrigin, - MetricPaginationMeta: MetricPaginationMeta, - MetricPayload: MetricPayload, - MetricPoint: MetricPoint, - MetricResource: MetricResource, - MetricSLOAsset: MetricSLOAsset, - MetricSeries: MetricSeries, - MetricSuggestedTagsAndAggregations: MetricSuggestedTagsAndAggregations, - MetricSuggestedTagsAndAggregationsResponse: - MetricSuggestedTagsAndAggregationsResponse, - MetricSuggestedTagsAttributes: MetricSuggestedTagsAttributes, - MetricTagConfiguration: MetricTagConfiguration, - MetricTagConfigurationAttributes: MetricTagConfigurationAttributes, - MetricTagConfigurationCreateAttributes: - MetricTagConfigurationCreateAttributes, - MetricTagConfigurationCreateData: MetricTagConfigurationCreateData, - MetricTagConfigurationCreateRequest: MetricTagConfigurationCreateRequest, - MetricTagConfigurationResponse: MetricTagConfigurationResponse, - MetricTagConfigurationUpdateAttributes: - MetricTagConfigurationUpdateAttributes, - MetricTagConfigurationUpdateData: MetricTagConfigurationUpdateData, - MetricTagConfigurationUpdateRequest: MetricTagConfigurationUpdateRequest, - MetricVolumesResponse: MetricVolumesResponse, - MetricsAndMetricTagConfigurationsResponse: - MetricsAndMetricTagConfigurationsResponse, - MetricsListResponseLinks: MetricsListResponseLinks, - MetricsScalarQuery: MetricsScalarQuery, - MetricsTimeseriesQuery: MetricsTimeseriesQuery, - MicrosoftTeamsChannelInfoResponseAttributes: - MicrosoftTeamsChannelInfoResponseAttributes, - MicrosoftTeamsChannelInfoResponseData: MicrosoftTeamsChannelInfoResponseData, - MicrosoftTeamsCreateTenantBasedHandleRequest: - MicrosoftTeamsCreateTenantBasedHandleRequest, - MicrosoftTeamsCreateWorkflowsWebhookHandleRequest: - MicrosoftTeamsCreateWorkflowsWebhookHandleRequest, - MicrosoftTeamsGetChannelByNameResponse: - MicrosoftTeamsGetChannelByNameResponse, - MicrosoftTeamsTenantBasedHandleAttributes: - MicrosoftTeamsTenantBasedHandleAttributes, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes: - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes, - MicrosoftTeamsTenantBasedHandleInfoResponseData: - MicrosoftTeamsTenantBasedHandleInfoResponseData, - MicrosoftTeamsTenantBasedHandleRequestAttributes: - MicrosoftTeamsTenantBasedHandleRequestAttributes, - MicrosoftTeamsTenantBasedHandleRequestData: - MicrosoftTeamsTenantBasedHandleRequestData, - MicrosoftTeamsTenantBasedHandleResponse: - MicrosoftTeamsTenantBasedHandleResponse, - MicrosoftTeamsTenantBasedHandleResponseData: - MicrosoftTeamsTenantBasedHandleResponseData, - MicrosoftTeamsTenantBasedHandlesResponse: - MicrosoftTeamsTenantBasedHandlesResponse, - MicrosoftTeamsUpdateTenantBasedHandleRequest: - MicrosoftTeamsUpdateTenantBasedHandleRequest, - MicrosoftTeamsUpdateTenantBasedHandleRequestData: - MicrosoftTeamsUpdateTenantBasedHandleRequestData, - MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest: - MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest, - MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData: - MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData, - MicrosoftTeamsWorkflowsWebhookHandleAttributes: - MicrosoftTeamsWorkflowsWebhookHandleAttributes, - MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes: - MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes, - MicrosoftTeamsWorkflowsWebhookHandleRequestData: - MicrosoftTeamsWorkflowsWebhookHandleRequestData, - MicrosoftTeamsWorkflowsWebhookHandleResponse: - MicrosoftTeamsWorkflowsWebhookHandleResponse, - MicrosoftTeamsWorkflowsWebhookHandleResponseData: - MicrosoftTeamsWorkflowsWebhookHandleResponseData, - MicrosoftTeamsWorkflowsWebhookHandlesResponse: - MicrosoftTeamsWorkflowsWebhookHandlesResponse, - MicrosoftTeamsWorkflowsWebhookResponseAttributes: - MicrosoftTeamsWorkflowsWebhookResponseAttributes, - MonitorConfigPolicyAttributeCreateRequest: - MonitorConfigPolicyAttributeCreateRequest, - MonitorConfigPolicyAttributeEditRequest: - MonitorConfigPolicyAttributeEditRequest, - MonitorConfigPolicyAttributeResponse: MonitorConfigPolicyAttributeResponse, - MonitorConfigPolicyCreateData: MonitorConfigPolicyCreateData, - MonitorConfigPolicyCreateRequest: MonitorConfigPolicyCreateRequest, - MonitorConfigPolicyEditData: MonitorConfigPolicyEditData, - MonitorConfigPolicyEditRequest: MonitorConfigPolicyEditRequest, - MonitorConfigPolicyListResponse: MonitorConfigPolicyListResponse, - MonitorConfigPolicyResponse: MonitorConfigPolicyResponse, - MonitorConfigPolicyResponseData: MonitorConfigPolicyResponseData, - MonitorConfigPolicyTagPolicy: MonitorConfigPolicyTagPolicy, - MonitorConfigPolicyTagPolicyCreateRequest: - MonitorConfigPolicyTagPolicyCreateRequest, - MonitorDowntimeMatchResponse: MonitorDowntimeMatchResponse, - MonitorDowntimeMatchResponseAttributes: - MonitorDowntimeMatchResponseAttributes, - MonitorDowntimeMatchResponseData: MonitorDowntimeMatchResponseData, - MonitorTrigger: MonitorTrigger, - MonitorTriggerWrapper: MonitorTriggerWrapper, - MonitorType: MonitorType, - MonthlyCostAttributionAttributes: MonthlyCostAttributionAttributes, - MonthlyCostAttributionBody: MonthlyCostAttributionBody, - MonthlyCostAttributionMeta: MonthlyCostAttributionMeta, - MonthlyCostAttributionPagination: MonthlyCostAttributionPagination, - MonthlyCostAttributionResponse: MonthlyCostAttributionResponse, - NotebookTriggerWrapper: NotebookTriggerWrapper, - NotificationRule: NotificationRule, - NotificationRuleAttributes: NotificationRuleAttributes, - NotificationRuleResponse: NotificationRuleResponse, - NullableRelationshipToUser: NullableRelationshipToUser, - NullableRelationshipToUserData: NullableRelationshipToUserData, - NullableUserRelationship: NullableUserRelationship, - NullableUserRelationshipData: NullableUserRelationshipData, - OktaAccount: OktaAccount, - OktaAccountAttributes: OktaAccountAttributes, - OktaAccountRequest: OktaAccountRequest, - OktaAccountResponse: OktaAccountResponse, - OktaAccountResponseData: OktaAccountResponseData, - OktaAccountUpdateRequest: OktaAccountUpdateRequest, - OktaAccountUpdateRequestAttributes: OktaAccountUpdateRequestAttributes, - OktaAccountUpdateRequestData: OktaAccountUpdateRequestData, - OktaAccountsResponse: OktaAccountsResponse, - OnDemandConcurrencyCap: OnDemandConcurrencyCap, - OnDemandConcurrencyCapAttributes: OnDemandConcurrencyCapAttributes, - OnDemandConcurrencyCapResponse: OnDemandConcurrencyCapResponse, - OpenAPIEndpoint: OpenAPIEndpoint, - OpenAPIFile: OpenAPIFile, - OpsgenieServiceCreateAttributes: OpsgenieServiceCreateAttributes, - OpsgenieServiceCreateData: OpsgenieServiceCreateData, - OpsgenieServiceCreateRequest: OpsgenieServiceCreateRequest, - OpsgenieServiceResponse: OpsgenieServiceResponse, - OpsgenieServiceResponseAttributes: OpsgenieServiceResponseAttributes, - OpsgenieServiceResponseData: OpsgenieServiceResponseData, - OpsgenieServiceUpdateAttributes: OpsgenieServiceUpdateAttributes, - OpsgenieServiceUpdateData: OpsgenieServiceUpdateData, - OpsgenieServiceUpdateRequest: OpsgenieServiceUpdateRequest, - OpsgenieServicesResponse: OpsgenieServicesResponse, - OrgConfigGetResponse: OrgConfigGetResponse, - OrgConfigListResponse: OrgConfigListResponse, - OrgConfigRead: OrgConfigRead, - OrgConfigReadAttributes: OrgConfigReadAttributes, - OrgConfigWrite: OrgConfigWrite, - OrgConfigWriteAttributes: OrgConfigWriteAttributes, - OrgConfigWriteRequest: OrgConfigWriteRequest, - Organization: Organization, - OrganizationAttributes: OrganizationAttributes, - OutboundEdge: OutboundEdge, - OutcomesBatchAttributes: OutcomesBatchAttributes, - OutcomesBatchRequest: OutcomesBatchRequest, - OutcomesBatchRequestData: OutcomesBatchRequestData, - OutcomesBatchRequestItem: OutcomesBatchRequestItem, - OutcomesBatchResponse: OutcomesBatchResponse, - OutcomesBatchResponseAttributes: OutcomesBatchResponseAttributes, - OutcomesBatchResponseMeta: OutcomesBatchResponseMeta, - OutcomesResponse: OutcomesResponse, - OutcomesResponseDataItem: OutcomesResponseDataItem, - OutcomesResponseIncludedItem: OutcomesResponseIncludedItem, - OutcomesResponseIncludedRuleAttributes: - OutcomesResponseIncludedRuleAttributes, - OutcomesResponseLinks: OutcomesResponseLinks, - OutputSchema: OutputSchema, - OutputSchemaParameters: OutputSchemaParameters, - Pagination: Pagination, - Parameter: Parameter, - PartialAPIKey: PartialAPIKey, - PartialAPIKeyAttributes: PartialAPIKeyAttributes, - PartialApplicationKey: PartialApplicationKey, - PartialApplicationKeyAttributes: PartialApplicationKeyAttributes, - PartialApplicationKeyResponse: PartialApplicationKeyResponse, - PatchNotificationRuleParameters: PatchNotificationRuleParameters, - PatchNotificationRuleParametersData: PatchNotificationRuleParametersData, - PatchNotificationRuleParametersDataAttributes: - PatchNotificationRuleParametersDataAttributes, - Permission: Permission, - PermissionAttributes: PermissionAttributes, - PermissionsResponse: PermissionsResponse, - Powerpack: Powerpack, - PowerpackAttributes: PowerpackAttributes, - PowerpackData: PowerpackData, - PowerpackGroupWidget: PowerpackGroupWidget, - PowerpackGroupWidgetDefinition: PowerpackGroupWidgetDefinition, - PowerpackGroupWidgetLayout: PowerpackGroupWidgetLayout, - PowerpackInnerWidgetLayout: PowerpackInnerWidgetLayout, - PowerpackInnerWidgets: PowerpackInnerWidgets, - PowerpackRelationships: PowerpackRelationships, - PowerpackResponse: PowerpackResponse, - PowerpackResponseLinks: PowerpackResponseLinks, - PowerpackTemplateVariable: PowerpackTemplateVariable, - PowerpacksResponseMeta: PowerpacksResponseMeta, - PowerpacksResponseMetaPagination: PowerpacksResponseMetaPagination, - ProcessSummariesMeta: ProcessSummariesMeta, - ProcessSummariesMetaPage: ProcessSummariesMetaPage, - ProcessSummariesResponse: ProcessSummariesResponse, - ProcessSummary: ProcessSummary, - ProcessSummaryAttributes: ProcessSummaryAttributes, - Project: Project, - ProjectAttributes: ProjectAttributes, - ProjectCreate: ProjectCreate, - ProjectCreateAttributes: ProjectCreateAttributes, - ProjectCreateRequest: ProjectCreateRequest, - ProjectRelationship: ProjectRelationship, - ProjectRelationshipData: ProjectRelationshipData, - ProjectRelationships: ProjectRelationships, - ProjectResponse: ProjectResponse, - ProjectedCost: ProjectedCost, - ProjectedCostAttributes: ProjectedCostAttributes, - ProjectedCostResponse: ProjectedCostResponse, - ProjectsResponse: ProjectsResponse, - PublishAppResponse: PublishAppResponse, - QueryFormula: QueryFormula, - RUMAggregateBucketValueTimeseriesPoint: - RUMAggregateBucketValueTimeseriesPoint, - RUMAggregateRequest: RUMAggregateRequest, - RUMAggregateSort: RUMAggregateSort, - RUMAggregationBucketsResponse: RUMAggregationBucketsResponse, - RUMAnalyticsAggregateResponse: RUMAnalyticsAggregateResponse, - RUMApplication: RUMApplication, - RUMApplicationAttributes: RUMApplicationAttributes, - RUMApplicationCreate: RUMApplicationCreate, - RUMApplicationCreateAttributes: RUMApplicationCreateAttributes, - RUMApplicationCreateRequest: RUMApplicationCreateRequest, - RUMApplicationList: RUMApplicationList, - RUMApplicationListAttributes: RUMApplicationListAttributes, - RUMApplicationResponse: RUMApplicationResponse, - RUMApplicationUpdate: RUMApplicationUpdate, - RUMApplicationUpdateAttributes: RUMApplicationUpdateAttributes, - RUMApplicationUpdateRequest: RUMApplicationUpdateRequest, - RUMApplicationsResponse: RUMApplicationsResponse, - RUMBucketResponse: RUMBucketResponse, - RUMCompute: RUMCompute, - RUMEvent: RUMEvent, - RUMEventAttributes: RUMEventAttributes, - RUMEventsResponse: RUMEventsResponse, - RUMGroupBy: RUMGroupBy, - RUMGroupByHistogram: RUMGroupByHistogram, - RUMQueryFilter: RUMQueryFilter, - RUMQueryOptions: RUMQueryOptions, - RUMQueryPageOptions: RUMQueryPageOptions, - RUMResponseLinks: RUMResponseLinks, - RUMResponseMetadata: RUMResponseMetadata, - RUMResponsePage: RUMResponsePage, - RUMSearchEventsRequest: RUMSearchEventsRequest, - RUMWarning: RUMWarning, - ReadinessGate: ReadinessGate, - RelationshipItem: RelationshipItem, - RelationshipToIncidentAttachment: RelationshipToIncidentAttachment, - RelationshipToIncidentAttachmentData: RelationshipToIncidentAttachmentData, - RelationshipToIncidentImpactData: RelationshipToIncidentImpactData, - RelationshipToIncidentImpacts: RelationshipToIncidentImpacts, - RelationshipToIncidentIntegrationMetadataData: - RelationshipToIncidentIntegrationMetadataData, - RelationshipToIncidentIntegrationMetadatas: - RelationshipToIncidentIntegrationMetadatas, - RelationshipToIncidentPostmortem: RelationshipToIncidentPostmortem, - RelationshipToIncidentPostmortemData: RelationshipToIncidentPostmortemData, - RelationshipToIncidentResponderData: RelationshipToIncidentResponderData, - RelationshipToIncidentResponders: RelationshipToIncidentResponders, - RelationshipToIncidentUserDefinedFieldData: - RelationshipToIncidentUserDefinedFieldData, - RelationshipToIncidentUserDefinedFields: - RelationshipToIncidentUserDefinedFields, - RelationshipToOrganization: RelationshipToOrganization, - RelationshipToOrganizationData: RelationshipToOrganizationData, - RelationshipToOrganizations: RelationshipToOrganizations, - RelationshipToOutcome: RelationshipToOutcome, - RelationshipToOutcomeData: RelationshipToOutcomeData, - RelationshipToPermission: RelationshipToPermission, - RelationshipToPermissionData: RelationshipToPermissionData, - RelationshipToPermissions: RelationshipToPermissions, - RelationshipToRole: RelationshipToRole, - RelationshipToRoleData: RelationshipToRoleData, - RelationshipToRoles: RelationshipToRoles, - RelationshipToRule: RelationshipToRule, - RelationshipToRuleData: RelationshipToRuleData, - RelationshipToRuleDataObject: RelationshipToRuleDataObject, - RelationshipToSAMLAssertionAttribute: RelationshipToSAMLAssertionAttribute, - RelationshipToSAMLAssertionAttributeData: - RelationshipToSAMLAssertionAttributeData, - RelationshipToTeam: RelationshipToTeam, - RelationshipToTeamData: RelationshipToTeamData, - RelationshipToTeamLinkData: RelationshipToTeamLinkData, - RelationshipToTeamLinks: RelationshipToTeamLinks, - RelationshipToUser: RelationshipToUser, - RelationshipToUserData: RelationshipToUserData, - RelationshipToUserTeamPermission: RelationshipToUserTeamPermission, - RelationshipToUserTeamPermissionData: RelationshipToUserTeamPermissionData, - RelationshipToUserTeamTeam: RelationshipToUserTeamTeam, - RelationshipToUserTeamTeamData: RelationshipToUserTeamTeamData, - RelationshipToUserTeamUser: RelationshipToUserTeamUser, - RelationshipToUserTeamUserData: RelationshipToUserTeamUserData, - RelationshipToUsers: RelationshipToUsers, - Remediation: Remediation, - ReorderRetentionFiltersRequest: ReorderRetentionFiltersRequest, - ResponseMetaAttributes: ResponseMetaAttributes, - RestrictionPolicy: RestrictionPolicy, - RestrictionPolicyAttributes: RestrictionPolicyAttributes, - RestrictionPolicyBinding: RestrictionPolicyBinding, - RestrictionPolicyResponse: RestrictionPolicyResponse, - RestrictionPolicyUpdateRequest: RestrictionPolicyUpdateRequest, - RetentionFilter: RetentionFilter, - RetentionFilterAll: RetentionFilterAll, - RetentionFilterAllAttributes: RetentionFilterAllAttributes, - RetentionFilterAttributes: RetentionFilterAttributes, - RetentionFilterCreateAttributes: RetentionFilterCreateAttributes, - RetentionFilterCreateData: RetentionFilterCreateData, - RetentionFilterCreateRequest: RetentionFilterCreateRequest, - RetentionFilterCreateResponse: RetentionFilterCreateResponse, - RetentionFilterResponse: RetentionFilterResponse, - RetentionFilterUpdateAttributes: RetentionFilterUpdateAttributes, - RetentionFilterUpdateData: RetentionFilterUpdateData, - RetentionFilterUpdateRequest: RetentionFilterUpdateRequest, - RetentionFilterWithoutAttributes: RetentionFilterWithoutAttributes, - RetentionFiltersResponse: RetentionFiltersResponse, - RetryStrategy: RetryStrategy, - RetryStrategyLinear: RetryStrategyLinear, - Role: Role, - RoleAttributes: RoleAttributes, - RoleClone: RoleClone, - RoleCloneAttributes: RoleCloneAttributes, - RoleCloneRequest: RoleCloneRequest, - RoleCreateAttributes: RoleCreateAttributes, - RoleCreateData: RoleCreateData, - RoleCreateRequest: RoleCreateRequest, - RoleCreateResponse: RoleCreateResponse, - RoleCreateResponseData: RoleCreateResponseData, - RoleRelationships: RoleRelationships, - RoleResponse: RoleResponse, - RoleResponseRelationships: RoleResponseRelationships, - RoleUpdateAttributes: RoleUpdateAttributes, - RoleUpdateData: RoleUpdateData, - RoleUpdateRequest: RoleUpdateRequest, - RoleUpdateResponse: RoleUpdateResponse, - RoleUpdateResponseData: RoleUpdateResponseData, - RolesResponse: RolesResponse, - RuleAttributes: RuleAttributes, - RuleOutcomeRelationships: RuleOutcomeRelationships, - RuleUser: RuleUser, - RuleVersionHistory: RuleVersionHistory, - RuleVersionUpdate: RuleVersionUpdate, - RuleVersions: RuleVersions, - RumMetricCompute: RumMetricCompute, - RumMetricCreateAttributes: RumMetricCreateAttributes, - RumMetricCreateData: RumMetricCreateData, - RumMetricCreateRequest: RumMetricCreateRequest, - RumMetricFilter: RumMetricFilter, - RumMetricGroupBy: RumMetricGroupBy, - RumMetricResponse: RumMetricResponse, - RumMetricResponseAttributes: RumMetricResponseAttributes, - RumMetricResponseCompute: RumMetricResponseCompute, - RumMetricResponseData: RumMetricResponseData, - RumMetricResponseFilter: RumMetricResponseFilter, - RumMetricResponseGroupBy: RumMetricResponseGroupBy, - RumMetricResponseUniqueness: RumMetricResponseUniqueness, - RumMetricUniqueness: RumMetricUniqueness, - RumMetricUpdateAttributes: RumMetricUpdateAttributes, - RumMetricUpdateCompute: RumMetricUpdateCompute, - RumMetricUpdateData: RumMetricUpdateData, - RumMetricUpdateRequest: RumMetricUpdateRequest, - RumMetricsResponse: RumMetricsResponse, - RumRetentionFilterAttributes: RumRetentionFilterAttributes, - RumRetentionFilterCreateAttributes: RumRetentionFilterCreateAttributes, - RumRetentionFilterCreateData: RumRetentionFilterCreateData, - RumRetentionFilterCreateRequest: RumRetentionFilterCreateRequest, - RumRetentionFilterData: RumRetentionFilterData, - RumRetentionFilterResponse: RumRetentionFilterResponse, - RumRetentionFilterUpdateAttributes: RumRetentionFilterUpdateAttributes, - RumRetentionFilterUpdateData: RumRetentionFilterUpdateData, - RumRetentionFilterUpdateRequest: RumRetentionFilterUpdateRequest, - RumRetentionFiltersOrderData: RumRetentionFiltersOrderData, - RumRetentionFiltersOrderRequest: RumRetentionFiltersOrderRequest, - RumRetentionFiltersOrderResponse: RumRetentionFiltersOrderResponse, - RumRetentionFiltersResponse: RumRetentionFiltersResponse, - RunHistoricalJobRequest: RunHistoricalJobRequest, - RunHistoricalJobRequestAttributes: RunHistoricalJobRequestAttributes, - RunHistoricalJobRequestData: RunHistoricalJobRequestData, - SAMLAssertionAttribute: SAMLAssertionAttribute, - SAMLAssertionAttributeAttributes: SAMLAssertionAttributeAttributes, - SBOM: SBOM, - SBOMAttributes: SBOMAttributes, - SBOMComponent: SBOMComponent, - SBOMMetadata: SBOMMetadata, - SBOMMetadataComponent: SBOMMetadataComponent, - SLOReportPostResponse: SLOReportPostResponse, - SLOReportPostResponseData: SLOReportPostResponseData, - SLOReportStatusGetResponse: SLOReportStatusGetResponse, - SLOReportStatusGetResponseAttributes: SLOReportStatusGetResponseAttributes, - SLOReportStatusGetResponseData: SLOReportStatusGetResponseData, - ScalarFormulaQueryRequest: ScalarFormulaQueryRequest, - ScalarFormulaQueryResponse: ScalarFormulaQueryResponse, - ScalarFormulaRequest: ScalarFormulaRequest, - ScalarFormulaRequestAttributes: ScalarFormulaRequestAttributes, - ScalarFormulaResponseAtrributes: ScalarFormulaResponseAtrributes, - ScalarMeta: ScalarMeta, - ScalarResponse: ScalarResponse, - ScheduleTrigger: ScheduleTrigger, - ScheduleTriggerWrapper: ScheduleTriggerWrapper, - SecurityFilter: SecurityFilter, - SecurityFilterAttributes: SecurityFilterAttributes, - SecurityFilterCreateAttributes: SecurityFilterCreateAttributes, - SecurityFilterCreateData: SecurityFilterCreateData, - SecurityFilterCreateRequest: SecurityFilterCreateRequest, - SecurityFilterExclusionFilter: SecurityFilterExclusionFilter, - SecurityFilterExclusionFilterResponse: SecurityFilterExclusionFilterResponse, - SecurityFilterMeta: SecurityFilterMeta, - SecurityFilterResponse: SecurityFilterResponse, - SecurityFilterUpdateAttributes: SecurityFilterUpdateAttributes, - SecurityFilterUpdateData: SecurityFilterUpdateData, - SecurityFilterUpdateRequest: SecurityFilterUpdateRequest, - SecurityFiltersResponse: SecurityFiltersResponse, - SecurityMonitoringFilter: SecurityMonitoringFilter, - SecurityMonitoringListRulesResponse: SecurityMonitoringListRulesResponse, - SecurityMonitoringReferenceTable: SecurityMonitoringReferenceTable, - SecurityMonitoringRuleCase: SecurityMonitoringRuleCase, - SecurityMonitoringRuleCaseAction: SecurityMonitoringRuleCaseAction, - SecurityMonitoringRuleCaseActionOptions: - SecurityMonitoringRuleCaseActionOptions, - SecurityMonitoringRuleCaseCreate: SecurityMonitoringRuleCaseCreate, - SecurityMonitoringRuleConvertResponse: SecurityMonitoringRuleConvertResponse, - SecurityMonitoringRuleImpossibleTravelOptions: - SecurityMonitoringRuleImpossibleTravelOptions, - SecurityMonitoringRuleNewValueOptions: SecurityMonitoringRuleNewValueOptions, - SecurityMonitoringRuleOptions: SecurityMonitoringRuleOptions, - SecurityMonitoringRuleQueryPayload: SecurityMonitoringRuleQueryPayload, - SecurityMonitoringRuleQueryPayloadData: - SecurityMonitoringRuleQueryPayloadData, - SecurityMonitoringRuleTestRequest: SecurityMonitoringRuleTestRequest, - SecurityMonitoringRuleTestResponse: SecurityMonitoringRuleTestResponse, - SecurityMonitoringRuleThirdPartyOptions: - SecurityMonitoringRuleThirdPartyOptions, - SecurityMonitoringRuleUpdatePayload: SecurityMonitoringRuleUpdatePayload, - SecurityMonitoringSignal: SecurityMonitoringSignal, - SecurityMonitoringSignalAssigneeUpdateAttributes: - SecurityMonitoringSignalAssigneeUpdateAttributes, - SecurityMonitoringSignalAssigneeUpdateData: - SecurityMonitoringSignalAssigneeUpdateData, - SecurityMonitoringSignalAssigneeUpdateRequest: - SecurityMonitoringSignalAssigneeUpdateRequest, - SecurityMonitoringSignalAttributes: SecurityMonitoringSignalAttributes, - SecurityMonitoringSignalIncidentsUpdateAttributes: - SecurityMonitoringSignalIncidentsUpdateAttributes, - SecurityMonitoringSignalIncidentsUpdateData: - SecurityMonitoringSignalIncidentsUpdateData, - SecurityMonitoringSignalIncidentsUpdateRequest: - SecurityMonitoringSignalIncidentsUpdateRequest, - SecurityMonitoringSignalListRequest: SecurityMonitoringSignalListRequest, - SecurityMonitoringSignalListRequestFilter: - SecurityMonitoringSignalListRequestFilter, - SecurityMonitoringSignalListRequestPage: - SecurityMonitoringSignalListRequestPage, - SecurityMonitoringSignalResponse: SecurityMonitoringSignalResponse, - SecurityMonitoringSignalRuleCreatePayload: - SecurityMonitoringSignalRuleCreatePayload, - SecurityMonitoringSignalRulePayload: SecurityMonitoringSignalRulePayload, - SecurityMonitoringSignalRuleQuery: SecurityMonitoringSignalRuleQuery, - SecurityMonitoringSignalRuleResponse: SecurityMonitoringSignalRuleResponse, - SecurityMonitoringSignalRuleResponseQuery: - SecurityMonitoringSignalRuleResponseQuery, - SecurityMonitoringSignalStateUpdateAttributes: - SecurityMonitoringSignalStateUpdateAttributes, - SecurityMonitoringSignalStateUpdateData: - SecurityMonitoringSignalStateUpdateData, - SecurityMonitoringSignalStateUpdateRequest: - SecurityMonitoringSignalStateUpdateRequest, - SecurityMonitoringSignalTriageAttributes: - SecurityMonitoringSignalTriageAttributes, - SecurityMonitoringSignalTriageUpdateData: - SecurityMonitoringSignalTriageUpdateData, - SecurityMonitoringSignalTriageUpdateResponse: - SecurityMonitoringSignalTriageUpdateResponse, - SecurityMonitoringSignalsListResponse: SecurityMonitoringSignalsListResponse, - SecurityMonitoringSignalsListResponseLinks: - SecurityMonitoringSignalsListResponseLinks, - SecurityMonitoringSignalsListResponseMeta: - SecurityMonitoringSignalsListResponseMeta, - SecurityMonitoringSignalsListResponseMetaPage: - SecurityMonitoringSignalsListResponseMetaPage, - SecurityMonitoringStandardRuleCreatePayload: - SecurityMonitoringStandardRuleCreatePayload, - SecurityMonitoringStandardRulePayload: SecurityMonitoringStandardRulePayload, - SecurityMonitoringStandardRuleQuery: SecurityMonitoringStandardRuleQuery, - SecurityMonitoringStandardRuleResponse: - SecurityMonitoringStandardRuleResponse, - SecurityMonitoringStandardRuleTestPayload: - SecurityMonitoringStandardRuleTestPayload, - SecurityMonitoringSuppression: SecurityMonitoringSuppression, - SecurityMonitoringSuppressionAttributes: - SecurityMonitoringSuppressionAttributes, - SecurityMonitoringSuppressionCreateAttributes: - SecurityMonitoringSuppressionCreateAttributes, - SecurityMonitoringSuppressionCreateData: - SecurityMonitoringSuppressionCreateData, - SecurityMonitoringSuppressionCreateRequest: - SecurityMonitoringSuppressionCreateRequest, - SecurityMonitoringSuppressionResponse: SecurityMonitoringSuppressionResponse, - SecurityMonitoringSuppressionUpdateAttributes: - SecurityMonitoringSuppressionUpdateAttributes, - SecurityMonitoringSuppressionUpdateData: - SecurityMonitoringSuppressionUpdateData, - SecurityMonitoringSuppressionUpdateRequest: - SecurityMonitoringSuppressionUpdateRequest, - SecurityMonitoringSuppressionsResponse: - SecurityMonitoringSuppressionsResponse, - SecurityMonitoringThirdPartyRootQuery: SecurityMonitoringThirdPartyRootQuery, - SecurityMonitoringThirdPartyRuleCase: SecurityMonitoringThirdPartyRuleCase, - SecurityMonitoringThirdPartyRuleCaseCreate: - SecurityMonitoringThirdPartyRuleCaseCreate, - SecurityMonitoringTriageUser: SecurityMonitoringTriageUser, - SecurityMonitoringUser: SecurityMonitoringUser, - SecurityTrigger: SecurityTrigger, - SecurityTriggerWrapper: SecurityTriggerWrapper, - Selectors: Selectors, - SelfServiceTriggerWrapper: SelfServiceTriggerWrapper, - SensitiveDataScannerConfigRequest: SensitiveDataScannerConfigRequest, - SensitiveDataScannerConfiguration: SensitiveDataScannerConfiguration, - SensitiveDataScannerConfigurationData: SensitiveDataScannerConfigurationData, - SensitiveDataScannerConfigurationRelationships: - SensitiveDataScannerConfigurationRelationships, - SensitiveDataScannerCreateGroupResponse: - SensitiveDataScannerCreateGroupResponse, - SensitiveDataScannerCreateRuleResponse: - SensitiveDataScannerCreateRuleResponse, - SensitiveDataScannerFilter: SensitiveDataScannerFilter, - SensitiveDataScannerGetConfigResponse: SensitiveDataScannerGetConfigResponse, - SensitiveDataScannerGetConfigResponseData: - SensitiveDataScannerGetConfigResponseData, - SensitiveDataScannerGroup: SensitiveDataScannerGroup, - SensitiveDataScannerGroupAttributes: SensitiveDataScannerGroupAttributes, - SensitiveDataScannerGroupCreate: SensitiveDataScannerGroupCreate, - SensitiveDataScannerGroupCreateRequest: - SensitiveDataScannerGroupCreateRequest, - SensitiveDataScannerGroupData: SensitiveDataScannerGroupData, - SensitiveDataScannerGroupDeleteRequest: - SensitiveDataScannerGroupDeleteRequest, - SensitiveDataScannerGroupDeleteResponse: - SensitiveDataScannerGroupDeleteResponse, - SensitiveDataScannerGroupIncludedItem: SensitiveDataScannerGroupIncludedItem, - SensitiveDataScannerGroupItem: SensitiveDataScannerGroupItem, - SensitiveDataScannerGroupList: SensitiveDataScannerGroupList, - SensitiveDataScannerGroupRelationships: - SensitiveDataScannerGroupRelationships, - SensitiveDataScannerGroupResponse: SensitiveDataScannerGroupResponse, - SensitiveDataScannerGroupUpdate: SensitiveDataScannerGroupUpdate, - SensitiveDataScannerGroupUpdateRequest: - SensitiveDataScannerGroupUpdateRequest, - SensitiveDataScannerGroupUpdateResponse: - SensitiveDataScannerGroupUpdateResponse, - SensitiveDataScannerIncludedKeywordConfiguration: - SensitiveDataScannerIncludedKeywordConfiguration, - SensitiveDataScannerMeta: SensitiveDataScannerMeta, - SensitiveDataScannerMetaVersionOnly: SensitiveDataScannerMetaVersionOnly, - SensitiveDataScannerReorderConfig: SensitiveDataScannerReorderConfig, - SensitiveDataScannerReorderGroupsResponse: - SensitiveDataScannerReorderGroupsResponse, - SensitiveDataScannerRule: SensitiveDataScannerRule, - SensitiveDataScannerRuleAttributes: SensitiveDataScannerRuleAttributes, - SensitiveDataScannerRuleCreate: SensitiveDataScannerRuleCreate, - SensitiveDataScannerRuleCreateRequest: SensitiveDataScannerRuleCreateRequest, - SensitiveDataScannerRuleData: SensitiveDataScannerRuleData, - SensitiveDataScannerRuleDeleteRequest: SensitiveDataScannerRuleDeleteRequest, - SensitiveDataScannerRuleDeleteResponse: - SensitiveDataScannerRuleDeleteResponse, - SensitiveDataScannerRuleIncludedItem: SensitiveDataScannerRuleIncludedItem, - SensitiveDataScannerRuleRelationships: SensitiveDataScannerRuleRelationships, - SensitiveDataScannerRuleResponse: SensitiveDataScannerRuleResponse, - SensitiveDataScannerRuleUpdate: SensitiveDataScannerRuleUpdate, - SensitiveDataScannerRuleUpdateRequest: SensitiveDataScannerRuleUpdateRequest, - SensitiveDataScannerRuleUpdateResponse: - SensitiveDataScannerRuleUpdateResponse, - SensitiveDataScannerStandardPattern: SensitiveDataScannerStandardPattern, - SensitiveDataScannerStandardPatternAttributes: - SensitiveDataScannerStandardPatternAttributes, - SensitiveDataScannerStandardPatternData: - SensitiveDataScannerStandardPatternData, - SensitiveDataScannerStandardPatternsResponseData: - SensitiveDataScannerStandardPatternsResponseData, - SensitiveDataScannerStandardPatternsResponseItem: - SensitiveDataScannerStandardPatternsResponseItem, - SensitiveDataScannerTextReplacement: SensitiveDataScannerTextReplacement, - ServiceAccountCreateAttributes: ServiceAccountCreateAttributes, - ServiceAccountCreateData: ServiceAccountCreateData, - ServiceAccountCreateRequest: ServiceAccountCreateRequest, - ServiceDefinitionCreateResponse: ServiceDefinitionCreateResponse, - ServiceDefinitionData: ServiceDefinitionData, - ServiceDefinitionDataAttributes: ServiceDefinitionDataAttributes, - ServiceDefinitionGetResponse: ServiceDefinitionGetResponse, - ServiceDefinitionMeta: ServiceDefinitionMeta, - ServiceDefinitionMetaWarnings: ServiceDefinitionMetaWarnings, - ServiceDefinitionV1: ServiceDefinitionV1, - ServiceDefinitionV1Contact: ServiceDefinitionV1Contact, - ServiceDefinitionV1Info: ServiceDefinitionV1Info, - ServiceDefinitionV1Integrations: ServiceDefinitionV1Integrations, - ServiceDefinitionV1Org: ServiceDefinitionV1Org, - ServiceDefinitionV1Resource: ServiceDefinitionV1Resource, - ServiceDefinitionV2: ServiceDefinitionV2, - ServiceDefinitionV2Doc: ServiceDefinitionV2Doc, - ServiceDefinitionV2Dot1: ServiceDefinitionV2Dot1, - ServiceDefinitionV2Dot1Email: ServiceDefinitionV2Dot1Email, - ServiceDefinitionV2Dot1Integrations: ServiceDefinitionV2Dot1Integrations, - ServiceDefinitionV2Dot1Link: ServiceDefinitionV2Dot1Link, - ServiceDefinitionV2Dot1MSTeams: ServiceDefinitionV2Dot1MSTeams, - ServiceDefinitionV2Dot1Opsgenie: ServiceDefinitionV2Dot1Opsgenie, - ServiceDefinitionV2Dot1Pagerduty: ServiceDefinitionV2Dot1Pagerduty, - ServiceDefinitionV2Dot1Slack: ServiceDefinitionV2Dot1Slack, - ServiceDefinitionV2Dot2: ServiceDefinitionV2Dot2, - ServiceDefinitionV2Dot2Contact: ServiceDefinitionV2Dot2Contact, - ServiceDefinitionV2Dot2Integrations: ServiceDefinitionV2Dot2Integrations, - ServiceDefinitionV2Dot2Link: ServiceDefinitionV2Dot2Link, - ServiceDefinitionV2Dot2Opsgenie: ServiceDefinitionV2Dot2Opsgenie, - ServiceDefinitionV2Dot2Pagerduty: ServiceDefinitionV2Dot2Pagerduty, - ServiceDefinitionV2Email: ServiceDefinitionV2Email, - ServiceDefinitionV2Integrations: ServiceDefinitionV2Integrations, - ServiceDefinitionV2Link: ServiceDefinitionV2Link, - ServiceDefinitionV2MSTeams: ServiceDefinitionV2MSTeams, - ServiceDefinitionV2Opsgenie: ServiceDefinitionV2Opsgenie, - ServiceDefinitionV2Repo: ServiceDefinitionV2Repo, - ServiceDefinitionV2Slack: ServiceDefinitionV2Slack, - ServiceDefinitionsListResponse: ServiceDefinitionsListResponse, - ServiceNowTicket: ServiceNowTicket, - ServiceNowTicketResult: ServiceNowTicketResult, - SlackIntegrationMetadata: SlackIntegrationMetadata, - SlackIntegrationMetadataChannelItem: SlackIntegrationMetadataChannelItem, - SlackTriggerWrapper: SlackTriggerWrapper, - SloReportCreateRequest: SloReportCreateRequest, - SloReportCreateRequestAttributes: SloReportCreateRequestAttributes, - SloReportCreateRequestData: SloReportCreateRequestData, - SoftwareCatalogTriggerWrapper: SoftwareCatalogTriggerWrapper, - Span: Span, - SpansAggregateBucket: SpansAggregateBucket, - SpansAggregateBucketAttributes: SpansAggregateBucketAttributes, - SpansAggregateBucketValueTimeseriesPoint: - SpansAggregateBucketValueTimeseriesPoint, - SpansAggregateData: SpansAggregateData, - SpansAggregateRequest: SpansAggregateRequest, - SpansAggregateRequestAttributes: SpansAggregateRequestAttributes, - SpansAggregateResponse: SpansAggregateResponse, - SpansAggregateResponseMetadata: SpansAggregateResponseMetadata, - SpansAggregateSort: SpansAggregateSort, - SpansAttributes: SpansAttributes, - SpansCompute: SpansCompute, - SpansFilter: SpansFilter, - SpansFilterCreate: SpansFilterCreate, - SpansGroupBy: SpansGroupBy, - SpansGroupByHistogram: SpansGroupByHistogram, - SpansListRequest: SpansListRequest, - SpansListRequestAttributes: SpansListRequestAttributes, - SpansListRequestData: SpansListRequestData, - SpansListRequestPage: SpansListRequestPage, - SpansListResponse: SpansListResponse, - SpansListResponseLinks: SpansListResponseLinks, - SpansListResponseMetadata: SpansListResponseMetadata, - SpansMetricCompute: SpansMetricCompute, - SpansMetricCreateAttributes: SpansMetricCreateAttributes, - SpansMetricCreateData: SpansMetricCreateData, - SpansMetricCreateRequest: SpansMetricCreateRequest, - SpansMetricFilter: SpansMetricFilter, - SpansMetricGroupBy: SpansMetricGroupBy, - SpansMetricResponse: SpansMetricResponse, - SpansMetricResponseAttributes: SpansMetricResponseAttributes, - SpansMetricResponseCompute: SpansMetricResponseCompute, - SpansMetricResponseData: SpansMetricResponseData, - SpansMetricResponseFilter: SpansMetricResponseFilter, - SpansMetricResponseGroupBy: SpansMetricResponseGroupBy, - SpansMetricUpdateAttributes: SpansMetricUpdateAttributes, - SpansMetricUpdateCompute: SpansMetricUpdateCompute, - SpansMetricUpdateData: SpansMetricUpdateData, - SpansMetricUpdateRequest: SpansMetricUpdateRequest, - SpansMetricsResponse: SpansMetricsResponse, - SpansQueryFilter: SpansQueryFilter, - SpansQueryOptions: SpansQueryOptions, - SpansResponseMetadataPage: SpansResponseMetadataPage, - SpansWarning: SpansWarning, - Spec: Spec, - StateVariable: StateVariable, - StateVariableProperties: StateVariableProperties, - Step: Step, - StepDisplay: StepDisplay, - StepDisplayBounds: StepDisplayBounds, - Team: Team, - TeamAttributes: TeamAttributes, - TeamCreate: TeamCreate, - TeamCreateAttributes: TeamCreateAttributes, - TeamCreateRelationships: TeamCreateRelationships, - TeamCreateRequest: TeamCreateRequest, - TeamLink: TeamLink, - TeamLinkAttributes: TeamLinkAttributes, - TeamLinkCreate: TeamLinkCreate, - TeamLinkCreateRequest: TeamLinkCreateRequest, - TeamLinkResponse: TeamLinkResponse, - TeamLinksResponse: TeamLinksResponse, - TeamPermissionSetting: TeamPermissionSetting, - TeamPermissionSettingAttributes: TeamPermissionSettingAttributes, - TeamPermissionSettingResponse: TeamPermissionSettingResponse, - TeamPermissionSettingUpdate: TeamPermissionSettingUpdate, - TeamPermissionSettingUpdateAttributes: TeamPermissionSettingUpdateAttributes, - TeamPermissionSettingUpdateRequest: TeamPermissionSettingUpdateRequest, - TeamPermissionSettingsResponse: TeamPermissionSettingsResponse, - TeamRelationships: TeamRelationships, - TeamRelationshipsLinks: TeamRelationshipsLinks, - TeamResponse: TeamResponse, - TeamUpdate: TeamUpdate, - TeamUpdateAttributes: TeamUpdateAttributes, - TeamUpdateRelationships: TeamUpdateRelationships, - TeamUpdateRequest: TeamUpdateRequest, - TeamsResponse: TeamsResponse, - TeamsResponseLinks: TeamsResponseLinks, - TeamsResponseMeta: TeamsResponseMeta, - TeamsResponseMetaPagination: TeamsResponseMetaPagination, - TimeseriesFormulaQueryRequest: TimeseriesFormulaQueryRequest, - TimeseriesFormulaQueryResponse: TimeseriesFormulaQueryResponse, - TimeseriesFormulaRequest: TimeseriesFormulaRequest, - TimeseriesFormulaRequestAttributes: TimeseriesFormulaRequestAttributes, - TimeseriesResponse: TimeseriesResponse, - TimeseriesResponseAttributes: TimeseriesResponseAttributes, - TimeseriesResponseSeries: TimeseriesResponseSeries, - TriggerRateLimit: TriggerRateLimit, - Unit: Unit, - UnpublishAppResponse: UnpublishAppResponse, - UpdateActionConnectionRequest: UpdateActionConnectionRequest, - UpdateActionConnectionResponse: UpdateActionConnectionResponse, - UpdateAppRequest: UpdateAppRequest, - UpdateAppRequestData: UpdateAppRequestData, - UpdateAppRequestDataAttributes: UpdateAppRequestDataAttributes, - UpdateAppResponse: UpdateAppResponse, - UpdateAppResponseData: UpdateAppResponseData, - UpdateAppResponseDataAttributes: UpdateAppResponseDataAttributes, - UpdateOpenAPIResponse: UpdateOpenAPIResponse, - UpdateOpenAPIResponseAttributes: UpdateOpenAPIResponseAttributes, - UpdateOpenAPIResponseData: UpdateOpenAPIResponseData, - UpdateRuleRequest: UpdateRuleRequest, - UpdateRuleRequestData: UpdateRuleRequestData, - UpdateRuleResponse: UpdateRuleResponse, - UpdateRuleResponseData: UpdateRuleResponseData, - UpdateWorkflowRequest: UpdateWorkflowRequest, - UpdateWorkflowResponse: UpdateWorkflowResponse, - UpsertCatalogEntityResponse: UpsertCatalogEntityResponse, - UrlParam: UrlParam, - UrlParamUpdate: UrlParamUpdate, - UsageApplicationSecurityMonitoringResponse: - UsageApplicationSecurityMonitoringResponse, - UsageAttributesObject: UsageAttributesObject, - UsageDataObject: UsageDataObject, - UsageLambdaTracedInvocationsResponse: UsageLambdaTracedInvocationsResponse, - UsageObservabilityPipelinesResponse: UsageObservabilityPipelinesResponse, - UsageTimeSeriesObject: UsageTimeSeriesObject, - User: User, - UserAttributes: UserAttributes, - UserCreateAttributes: UserCreateAttributes, - UserCreateData: UserCreateData, - UserCreateRequest: UserCreateRequest, - UserInvitationData: UserInvitationData, - UserInvitationDataAttributes: UserInvitationDataAttributes, - UserInvitationRelationships: UserInvitationRelationships, - UserInvitationResponse: UserInvitationResponse, - UserInvitationResponseData: UserInvitationResponseData, - UserInvitationsRequest: UserInvitationsRequest, - UserInvitationsResponse: UserInvitationsResponse, - UserRelationshipData: UserRelationshipData, - UserRelationships: UserRelationships, - UserResponse: UserResponse, - UserResponseRelationships: UserResponseRelationships, - UserTeam: UserTeam, - UserTeamAttributes: UserTeamAttributes, - UserTeamCreate: UserTeamCreate, - UserTeamPermission: UserTeamPermission, - UserTeamPermissionAttributes: UserTeamPermissionAttributes, - UserTeamRelationships: UserTeamRelationships, - UserTeamRequest: UserTeamRequest, - UserTeamResponse: UserTeamResponse, - UserTeamUpdate: UserTeamUpdate, - UserTeamUpdateRequest: UserTeamUpdateRequest, - UserTeamsResponse: UserTeamsResponse, - UserUpdateAttributes: UserUpdateAttributes, - UserUpdateData: UserUpdateData, - UserUpdateRequest: UserUpdateRequest, - UsersRelationship: UsersRelationship, - UsersResponse: UsersResponse, - Vulnerability: Vulnerability, - VulnerabilityAttributes: VulnerabilityAttributes, - VulnerabilityCvss: VulnerabilityCvss, - VulnerabilityDependencyLocations: VulnerabilityDependencyLocations, - VulnerabilityRelationships: VulnerabilityRelationships, - VulnerabilityRelationshipsAffects: VulnerabilityRelationshipsAffects, - VulnerabilityRelationshipsAffectsData: VulnerabilityRelationshipsAffectsData, - VulnerabilityRisks: VulnerabilityRisks, - WorkflowData: WorkflowData, - WorkflowDataAttributes: WorkflowDataAttributes, - WorkflowDataRelationships: WorkflowDataRelationships, - WorkflowDataUpdate: WorkflowDataUpdate, - WorkflowDataUpdateAttributes: WorkflowDataUpdateAttributes, - WorkflowInstanceCreateMeta: WorkflowInstanceCreateMeta, - WorkflowInstanceCreateRequest: WorkflowInstanceCreateRequest, - WorkflowInstanceCreateResponse: WorkflowInstanceCreateResponse, - WorkflowInstanceCreateResponseData: WorkflowInstanceCreateResponseData, - WorkflowInstanceListItem: WorkflowInstanceListItem, - WorkflowListInstancesResponse: WorkflowListInstancesResponse, - WorkflowListInstancesResponseMeta: WorkflowListInstancesResponseMeta, - WorkflowListInstancesResponseMetaPage: WorkflowListInstancesResponseMetaPage, - WorkflowTriggerWrapper: WorkflowTriggerWrapper, - WorkflowUserRelationship: WorkflowUserRelationship, - WorkflowUserRelationshipData: WorkflowUserRelationshipData, - WorklflowCancelInstanceResponse: WorklflowCancelInstanceResponse, - WorklflowCancelInstanceResponseData: WorklflowCancelInstanceResponseData, - WorklflowGetInstanceResponse: WorklflowGetInstanceResponse, - WorklflowGetInstanceResponseData: WorklflowGetInstanceResponseData, - WorklflowGetInstanceResponseDataAttributes: - WorklflowGetInstanceResponseDataAttributes, - XRayServicesIncludeAll: XRayServicesIncludeAll, - XRayServicesIncludeOnly: XRayServicesIncludeOnly, -}; +const typeMap: {[index: string]: any} = { + "APIErrorResponse": APIErrorResponse, + "APIKeyCreateAttributes": APIKeyCreateAttributes, + "APIKeyCreateData": APIKeyCreateData, + "APIKeyCreateRequest": APIKeyCreateRequest, + "APIKeyRelationships": APIKeyRelationships, + "APIKeyResponse": APIKeyResponse, + "APIKeyUpdateAttributes": APIKeyUpdateAttributes, + "APIKeyUpdateData": APIKeyUpdateData, + "APIKeyUpdateRequest": APIKeyUpdateRequest, + "APIKeysResponse": APIKeysResponse, + "APIKeysResponseMeta": APIKeysResponseMeta, + "APIKeysResponseMetaPage": APIKeysResponseMetaPage, + "APITrigger": APITrigger, + "APITriggerWrapper": APITriggerWrapper, + "AWSAccountCreateRequest": AWSAccountCreateRequest, + "AWSAccountCreateRequestAttributes": AWSAccountCreateRequestAttributes, + "AWSAccountCreateRequestData": AWSAccountCreateRequestData, + "AWSAccountResponse": AWSAccountResponse, + "AWSAccountResponseAttributes": AWSAccountResponseAttributes, + "AWSAccountResponseData": AWSAccountResponseData, + "AWSAccountUpdateRequest": AWSAccountUpdateRequest, + "AWSAccountUpdateRequestAttributes": AWSAccountUpdateRequestAttributes, + "AWSAccountUpdateRequestData": AWSAccountUpdateRequestData, + "AWSAccountsResponse": AWSAccountsResponse, + "AWSAssumeRole": AWSAssumeRole, + "AWSAssumeRoleUpdate": AWSAssumeRoleUpdate, + "AWSAuthConfigKeys": AWSAuthConfigKeys, + "AWSAuthConfigRole": AWSAuthConfigRole, + "AWSIntegration": AWSIntegration, + "AWSIntegrationUpdate": AWSIntegrationUpdate, + "AWSLambdaForwarderConfig": AWSLambdaForwarderConfig, + "AWSLogsConfig": AWSLogsConfig, + "AWSLogsServicesResponse": AWSLogsServicesResponse, + "AWSLogsServicesResponseAttributes": AWSLogsServicesResponseAttributes, + "AWSLogsServicesResponseData": AWSLogsServicesResponseData, + "AWSMetricsConfig": AWSMetricsConfig, + "AWSNamespaceFiltersExcludeOnly": AWSNamespaceFiltersExcludeOnly, + "AWSNamespaceFiltersIncludeOnly": AWSNamespaceFiltersIncludeOnly, + "AWSNamespaceTagFilter": AWSNamespaceTagFilter, + "AWSNamespacesResponse": AWSNamespacesResponse, + "AWSNamespacesResponseAttributes": AWSNamespacesResponseAttributes, + "AWSNamespacesResponseData": AWSNamespacesResponseData, + "AWSNewExternalIDResponse": AWSNewExternalIDResponse, + "AWSNewExternalIDResponseAttributes": AWSNewExternalIDResponseAttributes, + "AWSNewExternalIDResponseData": AWSNewExternalIDResponseData, + "AWSRegionsIncludeAll": AWSRegionsIncludeAll, + "AWSRegionsIncludeOnly": AWSRegionsIncludeOnly, + "AWSResourcesConfig": AWSResourcesConfig, + "AWSTracesConfig": AWSTracesConfig, + "AccountFilteringConfig": AccountFilteringConfig, + "ActionConnectionAttributes": ActionConnectionAttributes, + "ActionConnectionAttributesUpdate": ActionConnectionAttributesUpdate, + "ActionConnectionData": ActionConnectionData, + "ActionConnectionDataUpdate": ActionConnectionDataUpdate, + "ActionQuery": ActionQuery, + "ActionQueryMockedOutputsObject": ActionQueryMockedOutputsObject, + "ActionQueryProperties": ActionQueryProperties, + "ActionQuerySpecConnectionGroup": ActionQuerySpecConnectionGroup, + "ActionQuerySpecObject": ActionQuerySpecObject, + "ActiveBillingDimensionsAttributes": ActiveBillingDimensionsAttributes, + "ActiveBillingDimensionsBody": ActiveBillingDimensionsBody, + "ActiveBillingDimensionsResponse": ActiveBillingDimensionsResponse, + "Advisory": Advisory, + "Annotation": Annotation, + "AnnotationDisplay": AnnotationDisplay, + "AnnotationDisplayBounds": AnnotationDisplayBounds, + "AnnotationMarkdownTextAnnotation": AnnotationMarkdownTextAnnotation, + "AppBuilderEvent": AppBuilderEvent, + "AppMeta": AppMeta, + "AppRelationship": AppRelationship, + "AppTriggerWrapper": AppTriggerWrapper, + "ApplicationKeyCreateAttributes": ApplicationKeyCreateAttributes, + "ApplicationKeyCreateData": ApplicationKeyCreateData, + "ApplicationKeyCreateRequest": ApplicationKeyCreateRequest, + "ApplicationKeyRelationships": ApplicationKeyRelationships, + "ApplicationKeyResponse": ApplicationKeyResponse, + "ApplicationKeyResponseMeta": ApplicationKeyResponseMeta, + "ApplicationKeyResponseMetaPage": ApplicationKeyResponseMetaPage, + "ApplicationKeyUpdateAttributes": ApplicationKeyUpdateAttributes, + "ApplicationKeyUpdateData": ApplicationKeyUpdateData, + "ApplicationKeyUpdateRequest": ApplicationKeyUpdateRequest, + "ApplicationSecurityWafCustomRuleAction": ApplicationSecurityWafCustomRuleAction, + "ApplicationSecurityWafCustomRuleActionParameters": ApplicationSecurityWafCustomRuleActionParameters, + "ApplicationSecurityWafCustomRuleAttributes": ApplicationSecurityWafCustomRuleAttributes, + "ApplicationSecurityWafCustomRuleCondition": ApplicationSecurityWafCustomRuleCondition, + "ApplicationSecurityWafCustomRuleConditionInput": ApplicationSecurityWafCustomRuleConditionInput, + "ApplicationSecurityWafCustomRuleConditionOptions": ApplicationSecurityWafCustomRuleConditionOptions, + "ApplicationSecurityWafCustomRuleConditionParameters": ApplicationSecurityWafCustomRuleConditionParameters, + "ApplicationSecurityWafCustomRuleCreateAttributes": ApplicationSecurityWafCustomRuleCreateAttributes, + "ApplicationSecurityWafCustomRuleCreateData": ApplicationSecurityWafCustomRuleCreateData, + "ApplicationSecurityWafCustomRuleCreateRequest": ApplicationSecurityWafCustomRuleCreateRequest, + "ApplicationSecurityWafCustomRuleData": ApplicationSecurityWafCustomRuleData, + "ApplicationSecurityWafCustomRuleListResponse": ApplicationSecurityWafCustomRuleListResponse, + "ApplicationSecurityWafCustomRuleMetadata": ApplicationSecurityWafCustomRuleMetadata, + "ApplicationSecurityWafCustomRuleResponse": ApplicationSecurityWafCustomRuleResponse, + "ApplicationSecurityWafCustomRuleScope": ApplicationSecurityWafCustomRuleScope, + "ApplicationSecurityWafCustomRuleTags": ApplicationSecurityWafCustomRuleTags, + "ApplicationSecurityWafCustomRuleUpdateAttributes": ApplicationSecurityWafCustomRuleUpdateAttributes, + "ApplicationSecurityWafCustomRuleUpdateData": ApplicationSecurityWafCustomRuleUpdateData, + "ApplicationSecurityWafCustomRuleUpdateRequest": ApplicationSecurityWafCustomRuleUpdateRequest, + "ApplicationSecurityWafExclusionFilterAttributes": ApplicationSecurityWafExclusionFilterAttributes, + "ApplicationSecurityWafExclusionFilterCreateAttributes": ApplicationSecurityWafExclusionFilterCreateAttributes, + "ApplicationSecurityWafExclusionFilterCreateData": ApplicationSecurityWafExclusionFilterCreateData, + "ApplicationSecurityWafExclusionFilterCreateRequest": ApplicationSecurityWafExclusionFilterCreateRequest, + "ApplicationSecurityWafExclusionFilterMetadata": ApplicationSecurityWafExclusionFilterMetadata, + "ApplicationSecurityWafExclusionFilterResource": ApplicationSecurityWafExclusionFilterResource, + "ApplicationSecurityWafExclusionFilterResponse": ApplicationSecurityWafExclusionFilterResponse, + "ApplicationSecurityWafExclusionFilterRulesTarget": ApplicationSecurityWafExclusionFilterRulesTarget, + "ApplicationSecurityWafExclusionFilterRulesTargetTags": ApplicationSecurityWafExclusionFilterRulesTargetTags, + "ApplicationSecurityWafExclusionFilterScope": ApplicationSecurityWafExclusionFilterScope, + "ApplicationSecurityWafExclusionFilterUpdateAttributes": ApplicationSecurityWafExclusionFilterUpdateAttributes, + "ApplicationSecurityWafExclusionFilterUpdateData": ApplicationSecurityWafExclusionFilterUpdateData, + "ApplicationSecurityWafExclusionFilterUpdateRequest": ApplicationSecurityWafExclusionFilterUpdateRequest, + "ApplicationSecurityWafExclusionFiltersResponse": ApplicationSecurityWafExclusionFiltersResponse, + "Asset": Asset, + "AssetAttributes": AssetAttributes, + "AssetOperatingSystem": AssetOperatingSystem, + "AssetRisks": AssetRisks, + "AssetVersion": AssetVersion, + "AuditLogsEvent": AuditLogsEvent, + "AuditLogsEventAttributes": AuditLogsEventAttributes, + "AuditLogsEventsResponse": AuditLogsEventsResponse, + "AuditLogsQueryFilter": AuditLogsQueryFilter, + "AuditLogsQueryOptions": AuditLogsQueryOptions, + "AuditLogsQueryPageOptions": AuditLogsQueryPageOptions, + "AuditLogsResponseLinks": AuditLogsResponseLinks, + "AuditLogsResponseMetadata": AuditLogsResponseMetadata, + "AuditLogsResponsePage": AuditLogsResponsePage, + "AuditLogsSearchEventsRequest": AuditLogsSearchEventsRequest, + "AuditLogsWarning": AuditLogsWarning, + "AuthNMapping": AuthNMapping, + "AuthNMappingAttributes": AuthNMappingAttributes, + "AuthNMappingCreateAttributes": AuthNMappingCreateAttributes, + "AuthNMappingCreateData": AuthNMappingCreateData, + "AuthNMappingCreateRequest": AuthNMappingCreateRequest, + "AuthNMappingRelationshipToRole": AuthNMappingRelationshipToRole, + "AuthNMappingRelationshipToTeam": AuthNMappingRelationshipToTeam, + "AuthNMappingRelationships": AuthNMappingRelationships, + "AuthNMappingResponse": AuthNMappingResponse, + "AuthNMappingTeam": AuthNMappingTeam, + "AuthNMappingTeamAttributes": AuthNMappingTeamAttributes, + "AuthNMappingUpdateAttributes": AuthNMappingUpdateAttributes, + "AuthNMappingUpdateData": AuthNMappingUpdateData, + "AuthNMappingUpdateRequest": AuthNMappingUpdateRequest, + "AuthNMappingsResponse": AuthNMappingsResponse, + "AwsCURConfig": AwsCURConfig, + "AwsCURConfigAttributes": AwsCURConfigAttributes, + "AwsCURConfigPatchData": AwsCURConfigPatchData, + "AwsCURConfigPatchRequest": AwsCURConfigPatchRequest, + "AwsCURConfigPatchRequestAttributes": AwsCURConfigPatchRequestAttributes, + "AwsCURConfigPostData": AwsCURConfigPostData, + "AwsCURConfigPostRequest": AwsCURConfigPostRequest, + "AwsCURConfigPostRequestAttributes": AwsCURConfigPostRequestAttributes, + "AwsCURConfigResponse": AwsCURConfigResponse, + "AwsCURConfigsResponse": AwsCURConfigsResponse, + "AwsOnDemandAttributes": AwsOnDemandAttributes, + "AwsOnDemandCreateAttributes": AwsOnDemandCreateAttributes, + "AwsOnDemandCreateData": AwsOnDemandCreateData, + "AwsOnDemandCreateRequest": AwsOnDemandCreateRequest, + "AwsOnDemandData": AwsOnDemandData, + "AwsOnDemandListResponse": AwsOnDemandListResponse, + "AwsOnDemandResponse": AwsOnDemandResponse, + "AwsScanOptionsAttributes": AwsScanOptionsAttributes, + "AwsScanOptionsCreateAttributes": AwsScanOptionsCreateAttributes, + "AwsScanOptionsCreateData": AwsScanOptionsCreateData, + "AwsScanOptionsCreateRequest": AwsScanOptionsCreateRequest, + "AwsScanOptionsData": AwsScanOptionsData, + "AwsScanOptionsListResponse": AwsScanOptionsListResponse, + "AwsScanOptionsResponse": AwsScanOptionsResponse, + "AwsScanOptionsUpdateAttributes": AwsScanOptionsUpdateAttributes, + "AwsScanOptionsUpdateData": AwsScanOptionsUpdateData, + "AwsScanOptionsUpdateRequest": AwsScanOptionsUpdateRequest, + "AzureUCConfig": AzureUCConfig, + "AzureUCConfigPair": AzureUCConfigPair, + "AzureUCConfigPairAttributes": AzureUCConfigPairAttributes, + "AzureUCConfigPairsResponse": AzureUCConfigPairsResponse, + "AzureUCConfigPatchData": AzureUCConfigPatchData, + "AzureUCConfigPatchRequest": AzureUCConfigPatchRequest, + "AzureUCConfigPatchRequestAttributes": AzureUCConfigPatchRequestAttributes, + "AzureUCConfigPostData": AzureUCConfigPostData, + "AzureUCConfigPostRequest": AzureUCConfigPostRequest, + "AzureUCConfigPostRequestAttributes": AzureUCConfigPostRequestAttributes, + "AzureUCConfigsResponse": AzureUCConfigsResponse, + "BillConfig": BillConfig, + "BillingDimensionsMappingBodyItem": BillingDimensionsMappingBodyItem, + "BillingDimensionsMappingBodyItemAttributes": BillingDimensionsMappingBodyItemAttributes, + "BillingDimensionsMappingBodyItemAttributesEndpointsItems": BillingDimensionsMappingBodyItemAttributesEndpointsItems, + "BillingDimensionsMappingResponse": BillingDimensionsMappingResponse, + "BulkMuteFindingsRequest": BulkMuteFindingsRequest, + "BulkMuteFindingsRequestAttributes": BulkMuteFindingsRequestAttributes, + "BulkMuteFindingsRequestData": BulkMuteFindingsRequestData, + "BulkMuteFindingsRequestMeta": BulkMuteFindingsRequestMeta, + "BulkMuteFindingsRequestMetaFindings": BulkMuteFindingsRequestMetaFindings, + "BulkMuteFindingsRequestProperties": BulkMuteFindingsRequestProperties, + "BulkMuteFindingsResponse": BulkMuteFindingsResponse, + "BulkMuteFindingsResponseData": BulkMuteFindingsResponseData, + "CIAppAggregateBucketValueTimeseriesPoint": CIAppAggregateBucketValueTimeseriesPoint, + "CIAppAggregateSort": CIAppAggregateSort, + "CIAppCIError": CIAppCIError, + "CIAppCompute": CIAppCompute, + "CIAppCreatePipelineEventRequest": CIAppCreatePipelineEventRequest, + "CIAppCreatePipelineEventRequestAttributes": CIAppCreatePipelineEventRequestAttributes, + "CIAppCreatePipelineEventRequestData": CIAppCreatePipelineEventRequestData, + "CIAppEventAttributes": CIAppEventAttributes, + "CIAppGitInfo": CIAppGitInfo, + "CIAppGroupByHistogram": CIAppGroupByHistogram, + "CIAppHostInfo": CIAppHostInfo, + "CIAppPipelineEvent": CIAppPipelineEvent, + "CIAppPipelineEventAttributes": CIAppPipelineEventAttributes, + "CIAppPipelineEventFinishedPipeline": CIAppPipelineEventFinishedPipeline, + "CIAppPipelineEventInProgressPipeline": CIAppPipelineEventInProgressPipeline, + "CIAppPipelineEventJob": CIAppPipelineEventJob, + "CIAppPipelineEventParentPipeline": CIAppPipelineEventParentPipeline, + "CIAppPipelineEventPreviousPipeline": CIAppPipelineEventPreviousPipeline, + "CIAppPipelineEventStage": CIAppPipelineEventStage, + "CIAppPipelineEventStep": CIAppPipelineEventStep, + "CIAppPipelineEventsRequest": CIAppPipelineEventsRequest, + "CIAppPipelineEventsResponse": CIAppPipelineEventsResponse, + "CIAppPipelinesAggregateRequest": CIAppPipelinesAggregateRequest, + "CIAppPipelinesAggregationBucketsResponse": CIAppPipelinesAggregationBucketsResponse, + "CIAppPipelinesAnalyticsAggregateResponse": CIAppPipelinesAnalyticsAggregateResponse, + "CIAppPipelinesBucketResponse": CIAppPipelinesBucketResponse, + "CIAppPipelinesGroupBy": CIAppPipelinesGroupBy, + "CIAppPipelinesQueryFilter": CIAppPipelinesQueryFilter, + "CIAppQueryOptions": CIAppQueryOptions, + "CIAppQueryPageOptions": CIAppQueryPageOptions, + "CIAppResponseLinks": CIAppResponseLinks, + "CIAppResponseMetadata": CIAppResponseMetadata, + "CIAppResponseMetadataWithPagination": CIAppResponseMetadataWithPagination, + "CIAppResponsePage": CIAppResponsePage, + "CIAppTestEvent": CIAppTestEvent, + "CIAppTestEventsRequest": CIAppTestEventsRequest, + "CIAppTestEventsResponse": CIAppTestEventsResponse, + "CIAppTestsAggregateRequest": CIAppTestsAggregateRequest, + "CIAppTestsAggregationBucketsResponse": CIAppTestsAggregationBucketsResponse, + "CIAppTestsAnalyticsAggregateResponse": CIAppTestsAnalyticsAggregateResponse, + "CIAppTestsBucketResponse": CIAppTestsBucketResponse, + "CIAppTestsGroupBy": CIAppTestsGroupBy, + "CIAppTestsQueryFilter": CIAppTestsQueryFilter, + "CIAppWarning": CIAppWarning, + "CSMAgentsMetadata": CSMAgentsMetadata, + "CVSS": CVSS, + "CalculatedField": CalculatedField, + "CancelDataDeletionResponseBody": CancelDataDeletionResponseBody, + "Case": Case, + "CaseAssign": CaseAssign, + "CaseAssignAttributes": CaseAssignAttributes, + "CaseAssignRequest": CaseAssignRequest, + "CaseAttributes": CaseAttributes, + "CaseCreate": CaseCreate, + "CaseCreateAttributes": CaseCreateAttributes, + "CaseCreateRelationships": CaseCreateRelationships, + "CaseCreateRequest": CaseCreateRequest, + "CaseEmpty": CaseEmpty, + "CaseEmptyRequest": CaseEmptyRequest, + "CaseRelationships": CaseRelationships, + "CaseResponse": CaseResponse, + "CaseTrigger": CaseTrigger, + "CaseTriggerWrapper": CaseTriggerWrapper, + "CaseUpdatePriority": CaseUpdatePriority, + "CaseUpdatePriorityAttributes": CaseUpdatePriorityAttributes, + "CaseUpdatePriorityRequest": CaseUpdatePriorityRequest, + "CaseUpdateStatus": CaseUpdateStatus, + "CaseUpdateStatusAttributes": CaseUpdateStatusAttributes, + "CaseUpdateStatusRequest": CaseUpdateStatusRequest, + "CasesResponse": CasesResponse, + "CasesResponseMeta": CasesResponseMeta, + "CasesResponseMetaPagination": CasesResponseMetaPagination, + "ChangeEventCustomAttributes": ChangeEventCustomAttributes, + "ChangeEventCustomAttributesAuthor": ChangeEventCustomAttributesAuthor, + "ChangeEventCustomAttributesChangedResource": ChangeEventCustomAttributesChangedResource, + "ChangeEventCustomAttributesImpactedResourcesItems": ChangeEventCustomAttributesImpactedResourcesItems, + "ChangeEventTriggerWrapper": ChangeEventTriggerWrapper, + "ChargebackBreakdown": ChargebackBreakdown, + "CloudConfigurationComplianceRuleOptions": CloudConfigurationComplianceRuleOptions, + "CloudConfigurationRegoRule": CloudConfigurationRegoRule, + "CloudConfigurationRuleCaseCreate": CloudConfigurationRuleCaseCreate, + "CloudConfigurationRuleComplianceSignalOptions": CloudConfigurationRuleComplianceSignalOptions, + "CloudConfigurationRuleCreatePayload": CloudConfigurationRuleCreatePayload, + "CloudConfigurationRuleOptions": CloudConfigurationRuleOptions, + "CloudConfigurationRulePayload": CloudConfigurationRulePayload, + "CloudWorkloadSecurityAgentRuleAction": CloudWorkloadSecurityAgentRuleAction, + "CloudWorkloadSecurityAgentRuleAttributes": CloudWorkloadSecurityAgentRuleAttributes, + "CloudWorkloadSecurityAgentRuleCreateAttributes": CloudWorkloadSecurityAgentRuleCreateAttributes, + "CloudWorkloadSecurityAgentRuleCreateData": CloudWorkloadSecurityAgentRuleCreateData, + "CloudWorkloadSecurityAgentRuleCreateRequest": CloudWorkloadSecurityAgentRuleCreateRequest, + "CloudWorkloadSecurityAgentRuleCreatorAttributes": CloudWorkloadSecurityAgentRuleCreatorAttributes, + "CloudWorkloadSecurityAgentRuleData": CloudWorkloadSecurityAgentRuleData, + "CloudWorkloadSecurityAgentRuleKill": CloudWorkloadSecurityAgentRuleKill, + "CloudWorkloadSecurityAgentRuleResponse": CloudWorkloadSecurityAgentRuleResponse, + "CloudWorkloadSecurityAgentRuleUpdateAttributes": CloudWorkloadSecurityAgentRuleUpdateAttributes, + "CloudWorkloadSecurityAgentRuleUpdateData": CloudWorkloadSecurityAgentRuleUpdateData, + "CloudWorkloadSecurityAgentRuleUpdateRequest": CloudWorkloadSecurityAgentRuleUpdateRequest, + "CloudWorkloadSecurityAgentRuleUpdaterAttributes": CloudWorkloadSecurityAgentRuleUpdaterAttributes, + "CloudWorkloadSecurityAgentRulesListResponse": CloudWorkloadSecurityAgentRulesListResponse, + "CloudflareAccountCreateRequest": CloudflareAccountCreateRequest, + "CloudflareAccountCreateRequestAttributes": CloudflareAccountCreateRequestAttributes, + "CloudflareAccountCreateRequestData": CloudflareAccountCreateRequestData, + "CloudflareAccountResponse": CloudflareAccountResponse, + "CloudflareAccountResponseAttributes": CloudflareAccountResponseAttributes, + "CloudflareAccountResponseData": CloudflareAccountResponseData, + "CloudflareAccountUpdateRequest": CloudflareAccountUpdateRequest, + "CloudflareAccountUpdateRequestAttributes": CloudflareAccountUpdateRequestAttributes, + "CloudflareAccountUpdateRequestData": CloudflareAccountUpdateRequestData, + "CloudflareAccountsResponse": CloudflareAccountsResponse, + "CodeLocation": CodeLocation, + "CompletionCondition": CompletionCondition, + "CompletionGate": CompletionGate, + "Component": Component, + "ComponentGrid": ComponentGrid, + "ComponentGridProperties": ComponentGridProperties, + "ComponentProperties": ComponentProperties, + "ConfluentAccountCreateRequest": ConfluentAccountCreateRequest, + "ConfluentAccountCreateRequestAttributes": ConfluentAccountCreateRequestAttributes, + "ConfluentAccountCreateRequestData": ConfluentAccountCreateRequestData, + "ConfluentAccountResourceAttributes": ConfluentAccountResourceAttributes, + "ConfluentAccountResponse": ConfluentAccountResponse, + "ConfluentAccountResponseAttributes": ConfluentAccountResponseAttributes, + "ConfluentAccountResponseData": ConfluentAccountResponseData, + "ConfluentAccountUpdateRequest": ConfluentAccountUpdateRequest, + "ConfluentAccountUpdateRequestAttributes": ConfluentAccountUpdateRequestAttributes, + "ConfluentAccountUpdateRequestData": ConfluentAccountUpdateRequestData, + "ConfluentAccountsResponse": ConfluentAccountsResponse, + "ConfluentResourceRequest": ConfluentResourceRequest, + "ConfluentResourceRequestAttributes": ConfluentResourceRequestAttributes, + "ConfluentResourceRequestData": ConfluentResourceRequestData, + "ConfluentResourceResponse": ConfluentResourceResponse, + "ConfluentResourceResponseAttributes": ConfluentResourceResponseAttributes, + "ConfluentResourceResponseData": ConfluentResourceResponseData, + "ConfluentResourcesResponse": ConfluentResourcesResponse, + "Connection": Connection, + "ConnectionEnv": ConnectionEnv, + "ConnectionGroup": ConnectionGroup, + "Container": Container, + "ContainerAttributes": ContainerAttributes, + "ContainerGroup": ContainerGroup, + "ContainerGroupAttributes": ContainerGroupAttributes, + "ContainerGroupRelationships": ContainerGroupRelationships, + "ContainerGroupRelationshipsLink": ContainerGroupRelationshipsLink, + "ContainerGroupRelationshipsLinks": ContainerGroupRelationshipsLinks, + "ContainerImage": ContainerImage, + "ContainerImageAttributes": ContainerImageAttributes, + "ContainerImageFlavor": ContainerImageFlavor, + "ContainerImageGroup": ContainerImageGroup, + "ContainerImageGroupAttributes": ContainerImageGroupAttributes, + "ContainerImageGroupImagesRelationshipsLink": ContainerImageGroupImagesRelationshipsLink, + "ContainerImageGroupRelationships": ContainerImageGroupRelationships, + "ContainerImageGroupRelationshipsLinks": ContainerImageGroupRelationshipsLinks, + "ContainerImageMeta": ContainerImageMeta, + "ContainerImageMetaPage": ContainerImageMetaPage, + "ContainerImageVulnerabilities": ContainerImageVulnerabilities, + "ContainerImagesResponse": ContainerImagesResponse, + "ContainerImagesResponseLinks": ContainerImagesResponseLinks, + "ContainerMeta": ContainerMeta, + "ContainerMetaPage": ContainerMetaPage, + "ContainersResponse": ContainersResponse, + "ContainersResponseLinks": ContainersResponseLinks, + "ConvertJobResultsToSignalsAttributes": ConvertJobResultsToSignalsAttributes, + "ConvertJobResultsToSignalsData": ConvertJobResultsToSignalsData, + "ConvertJobResultsToSignalsRequest": ConvertJobResultsToSignalsRequest, + "CostAttributionAggregatesBody": CostAttributionAggregatesBody, + "CostByOrg": CostByOrg, + "CostByOrgAttributes": CostByOrgAttributes, + "CostByOrgResponse": CostByOrgResponse, + "CreateActionConnectionRequest": CreateActionConnectionRequest, + "CreateActionConnectionResponse": CreateActionConnectionResponse, + "CreateAppRequest": CreateAppRequest, + "CreateAppRequestData": CreateAppRequestData, + "CreateAppRequestDataAttributes": CreateAppRequestDataAttributes, + "CreateAppResponse": CreateAppResponse, + "CreateAppResponseData": CreateAppResponseData, + "CreateDataDeletionRequestBody": CreateDataDeletionRequestBody, + "CreateDataDeletionRequestBodyAttributes": CreateDataDeletionRequestBodyAttributes, + "CreateDataDeletionRequestBodyData": CreateDataDeletionRequestBodyData, + "CreateDataDeletionResponseBody": CreateDataDeletionResponseBody, + "CreateNotificationRuleParameters": CreateNotificationRuleParameters, + "CreateNotificationRuleParametersData": CreateNotificationRuleParametersData, + "CreateNotificationRuleParametersDataAttributes": CreateNotificationRuleParametersDataAttributes, + "CreateOpenAPIResponse": CreateOpenAPIResponse, + "CreateOpenAPIResponseAttributes": CreateOpenAPIResponseAttributes, + "CreateOpenAPIResponseData": CreateOpenAPIResponseData, + "CreateRuleRequest": CreateRuleRequest, + "CreateRuleRequestData": CreateRuleRequestData, + "CreateRuleResponse": CreateRuleResponse, + "CreateRuleResponseData": CreateRuleResponseData, + "CreateWorkflowRequest": CreateWorkflowRequest, + "CreateWorkflowResponse": CreateWorkflowResponse, + "Creator": Creator, + "CsmAgentData": CsmAgentData, + "CsmAgentsAttributes": CsmAgentsAttributes, + "CsmAgentsResponse": CsmAgentsResponse, + "CsmCloudAccountsCoverageAnalysisAttributes": CsmCloudAccountsCoverageAnalysisAttributes, + "CsmCloudAccountsCoverageAnalysisData": CsmCloudAccountsCoverageAnalysisData, + "CsmCloudAccountsCoverageAnalysisResponse": CsmCloudAccountsCoverageAnalysisResponse, + "CsmCoverageAnalysis": CsmCoverageAnalysis, + "CsmHostsAndContainersCoverageAnalysisAttributes": CsmHostsAndContainersCoverageAnalysisAttributes, + "CsmHostsAndContainersCoverageAnalysisData": CsmHostsAndContainersCoverageAnalysisData, + "CsmHostsAndContainersCoverageAnalysisResponse": CsmHostsAndContainersCoverageAnalysisResponse, + "CsmServerlessCoverageAnalysisAttributes": CsmServerlessCoverageAnalysisAttributes, + "CsmServerlessCoverageAnalysisData": CsmServerlessCoverageAnalysisData, + "CsmServerlessCoverageAnalysisResponse": CsmServerlessCoverageAnalysisResponse, + "CustomConnection": CustomConnection, + "CustomConnectionAttributes": CustomConnectionAttributes, + "CustomConnectionAttributesOnPremRunner": CustomConnectionAttributesOnPremRunner, + "CustomCostGetResponseMeta": CustomCostGetResponseMeta, + "CustomCostListResponseMeta": CustomCostListResponseMeta, + "CustomCostUploadResponseMeta": CustomCostUploadResponseMeta, + "CustomCostsFileGetResponse": CustomCostsFileGetResponse, + "CustomCostsFileLineItem": CustomCostsFileLineItem, + "CustomCostsFileListResponse": CustomCostsFileListResponse, + "CustomCostsFileMetadata": CustomCostsFileMetadata, + "CustomCostsFileMetadataHighLevel": CustomCostsFileMetadataHighLevel, + "CustomCostsFileMetadataWithContent": CustomCostsFileMetadataWithContent, + "CustomCostsFileMetadataWithContentHighLevel": CustomCostsFileMetadataWithContentHighLevel, + "CustomCostsFileUploadResponse": CustomCostsFileUploadResponse, + "CustomCostsFileUsageChargePeriod": CustomCostsFileUsageChargePeriod, + "CustomCostsUser": CustomCostsUser, + "CustomDestinationCreateRequest": CustomDestinationCreateRequest, + "CustomDestinationCreateRequestAttributes": CustomDestinationCreateRequestAttributes, + "CustomDestinationCreateRequestDefinition": CustomDestinationCreateRequestDefinition, + "CustomDestinationElasticsearchDestinationAuth": CustomDestinationElasticsearchDestinationAuth, + "CustomDestinationForwardDestinationElasticsearch": CustomDestinationForwardDestinationElasticsearch, + "CustomDestinationForwardDestinationHttp": CustomDestinationForwardDestinationHttp, + "CustomDestinationForwardDestinationSplunk": CustomDestinationForwardDestinationSplunk, + "CustomDestinationHttpDestinationAuthBasic": CustomDestinationHttpDestinationAuthBasic, + "CustomDestinationHttpDestinationAuthCustomHeader": CustomDestinationHttpDestinationAuthCustomHeader, + "CustomDestinationResponse": CustomDestinationResponse, + "CustomDestinationResponseAttributes": CustomDestinationResponseAttributes, + "CustomDestinationResponseDefinition": CustomDestinationResponseDefinition, + "CustomDestinationResponseForwardDestinationElasticsearch": CustomDestinationResponseForwardDestinationElasticsearch, + "CustomDestinationResponseForwardDestinationHttp": CustomDestinationResponseForwardDestinationHttp, + "CustomDestinationResponseForwardDestinationSplunk": CustomDestinationResponseForwardDestinationSplunk, + "CustomDestinationResponseHttpDestinationAuthBasic": CustomDestinationResponseHttpDestinationAuthBasic, + "CustomDestinationResponseHttpDestinationAuthCustomHeader": CustomDestinationResponseHttpDestinationAuthCustomHeader, + "CustomDestinationUpdateRequest": CustomDestinationUpdateRequest, + "CustomDestinationUpdateRequestAttributes": CustomDestinationUpdateRequestAttributes, + "CustomDestinationUpdateRequestDefinition": CustomDestinationUpdateRequestDefinition, + "CustomDestinationsResponse": CustomDestinationsResponse, + "DORADeploymentRequest": DORADeploymentRequest, + "DORADeploymentRequestAttributes": DORADeploymentRequestAttributes, + "DORADeploymentRequestData": DORADeploymentRequestData, + "DORADeploymentResponse": DORADeploymentResponse, + "DORADeploymentResponseData": DORADeploymentResponseData, + "DORAGitInfo": DORAGitInfo, + "DORAIncidentRequest": DORAIncidentRequest, + "DORAIncidentRequestAttributes": DORAIncidentRequestAttributes, + "DORAIncidentRequestData": DORAIncidentRequestData, + "DORAIncidentResponse": DORAIncidentResponse, + "DORAIncidentResponseData": DORAIncidentResponseData, + "DashboardListAddItemsRequest": DashboardListAddItemsRequest, + "DashboardListAddItemsResponse": DashboardListAddItemsResponse, + "DashboardListDeleteItemsRequest": DashboardListDeleteItemsRequest, + "DashboardListDeleteItemsResponse": DashboardListDeleteItemsResponse, + "DashboardListItem": DashboardListItem, + "DashboardListItemRequest": DashboardListItemRequest, + "DashboardListItemResponse": DashboardListItemResponse, + "DashboardListItems": DashboardListItems, + "DashboardListUpdateItemsRequest": DashboardListUpdateItemsRequest, + "DashboardListUpdateItemsResponse": DashboardListUpdateItemsResponse, + "DashboardTriggerWrapper": DashboardTriggerWrapper, + "DataDeletionResponseItem": DataDeletionResponseItem, + "DataDeletionResponseItemAttributes": DataDeletionResponseItemAttributes, + "DataDeletionResponseMeta": DataDeletionResponseMeta, + "DataScalarColumn": DataScalarColumn, + "DataTransform": DataTransform, + "DataTransformProperties": DataTransformProperties, + "DatabaseMonitoringTriggerWrapper": DatabaseMonitoringTriggerWrapper, + "DeleteAppResponse": DeleteAppResponse, + "DeleteAppResponseData": DeleteAppResponseData, + "DeleteAppsRequest": DeleteAppsRequest, + "DeleteAppsRequestDataItems": DeleteAppsRequestDataItems, + "DeleteAppsResponse": DeleteAppsResponse, + "DeleteAppsResponseDataItems": DeleteAppsResponseDataItems, + "DependencyLocation": DependencyLocation, + "Deployment": Deployment, + "DeploymentAttributes": DeploymentAttributes, + "DeploymentMetadata": DeploymentMetadata, + "DeploymentRelationship": DeploymentRelationship, + "DeploymentRelationshipData": DeploymentRelationshipData, + "DetailedFinding": DetailedFinding, + "DetailedFindingAttributes": DetailedFindingAttributes, + "DeviceAttributes": DeviceAttributes, + "DeviceAttributesInterfaceStatuses": DeviceAttributesInterfaceStatuses, + "DevicesListData": DevicesListData, + "DomainAllowlist": DomainAllowlist, + "DomainAllowlistAttributes": DomainAllowlistAttributes, + "DomainAllowlistRequest": DomainAllowlistRequest, + "DomainAllowlistResponse": DomainAllowlistResponse, + "DomainAllowlistResponseData": DomainAllowlistResponseData, + "DomainAllowlistResponseDataAttributes": DomainAllowlistResponseDataAttributes, + "DowntimeCreateRequest": DowntimeCreateRequest, + "DowntimeCreateRequestAttributes": DowntimeCreateRequestAttributes, + "DowntimeCreateRequestData": DowntimeCreateRequestData, + "DowntimeMeta": DowntimeMeta, + "DowntimeMetaPage": DowntimeMetaPage, + "DowntimeMonitorIdentifierId": DowntimeMonitorIdentifierId, + "DowntimeMonitorIdentifierTags": DowntimeMonitorIdentifierTags, + "DowntimeMonitorIncludedAttributes": DowntimeMonitorIncludedAttributes, + "DowntimeMonitorIncludedItem": DowntimeMonitorIncludedItem, + "DowntimeRelationships": DowntimeRelationships, + "DowntimeRelationshipsCreatedBy": DowntimeRelationshipsCreatedBy, + "DowntimeRelationshipsCreatedByData": DowntimeRelationshipsCreatedByData, + "DowntimeRelationshipsMonitor": DowntimeRelationshipsMonitor, + "DowntimeRelationshipsMonitorData": DowntimeRelationshipsMonitorData, + "DowntimeResponse": DowntimeResponse, + "DowntimeResponseAttributes": DowntimeResponseAttributes, + "DowntimeResponseData": DowntimeResponseData, + "DowntimeScheduleCurrentDowntimeResponse": DowntimeScheduleCurrentDowntimeResponse, + "DowntimeScheduleOneTimeCreateUpdateRequest": DowntimeScheduleOneTimeCreateUpdateRequest, + "DowntimeScheduleOneTimeResponse": DowntimeScheduleOneTimeResponse, + "DowntimeScheduleRecurrenceCreateUpdateRequest": DowntimeScheduleRecurrenceCreateUpdateRequest, + "DowntimeScheduleRecurrenceResponse": DowntimeScheduleRecurrenceResponse, + "DowntimeScheduleRecurrencesCreateRequest": DowntimeScheduleRecurrencesCreateRequest, + "DowntimeScheduleRecurrencesResponse": DowntimeScheduleRecurrencesResponse, + "DowntimeScheduleRecurrencesUpdateRequest": DowntimeScheduleRecurrencesUpdateRequest, + "DowntimeUpdateRequest": DowntimeUpdateRequest, + "DowntimeUpdateRequestAttributes": DowntimeUpdateRequestAttributes, + "DowntimeUpdateRequestData": DowntimeUpdateRequestData, + "EPSS": EPSS, + "EntityAttributes": EntityAttributes, + "EntityData": EntityData, + "EntityMeta": EntityMeta, + "EntityRelationships": EntityRelationships, + "EntityResponseIncludedIncident": EntityResponseIncludedIncident, + "EntityResponseIncludedOncall": EntityResponseIncludedOncall, + "EntityResponseIncludedRawSchema": EntityResponseIncludedRawSchema, + "EntityResponseIncludedRawSchemaAttributes": EntityResponseIncludedRawSchemaAttributes, + "EntityResponseIncludedRelatedEntity": EntityResponseIncludedRelatedEntity, + "EntityResponseIncludedRelatedEntityAttributes": EntityResponseIncludedRelatedEntityAttributes, + "EntityResponseIncludedRelatedEntityMeta": EntityResponseIncludedRelatedEntityMeta, + "EntityResponseIncludedRelatedIncidentAttributes": EntityResponseIncludedRelatedIncidentAttributes, + "EntityResponseIncludedRelatedOncallAttributes": EntityResponseIncludedRelatedOncallAttributes, + "EntityResponseIncludedRelatedOncallEscalationItem": EntityResponseIncludedRelatedOncallEscalationItem, + "EntityResponseIncludedSchema": EntityResponseIncludedSchema, + "EntityResponseIncludedSchemaAttributes": EntityResponseIncludedSchemaAttributes, + "EntityResponseMeta": EntityResponseMeta, + "EntityToIncidents": EntityToIncidents, + "EntityToOncalls": EntityToOncalls, + "EntityToRawSchema": EntityToRawSchema, + "EntityToRelatedEntities": EntityToRelatedEntities, + "EntityToSchema": EntityToSchema, + "EntityV3API": EntityV3API, + "EntityV3APIDatadog": EntityV3APIDatadog, + "EntityV3APISpec": EntityV3APISpec, + "EntityV3APISpecInterfaceDefinition": EntityV3APISpecInterfaceDefinition, + "EntityV3APISpecInterfaceFileRef": EntityV3APISpecInterfaceFileRef, + "EntityV3DatadogCodeLocationItem": EntityV3DatadogCodeLocationItem, + "EntityV3DatadogEventItem": EntityV3DatadogEventItem, + "EntityV3DatadogIntegrationOpsgenie": EntityV3DatadogIntegrationOpsgenie, + "EntityV3DatadogIntegrationPagerduty": EntityV3DatadogIntegrationPagerduty, + "EntityV3DatadogLogItem": EntityV3DatadogLogItem, + "EntityV3DatadogPerformance": EntityV3DatadogPerformance, + "EntityV3DatadogPipelines": EntityV3DatadogPipelines, + "EntityV3Datastore": EntityV3Datastore, + "EntityV3DatastoreDatadog": EntityV3DatastoreDatadog, + "EntityV3DatastoreSpec": EntityV3DatastoreSpec, + "EntityV3Integrations": EntityV3Integrations, + "EntityV3Metadata": EntityV3Metadata, + "EntityV3MetadataAdditionalOwnersItems": EntityV3MetadataAdditionalOwnersItems, + "EntityV3MetadataContactsItems": EntityV3MetadataContactsItems, + "EntityV3MetadataLinksItems": EntityV3MetadataLinksItems, + "EntityV3Queue": EntityV3Queue, + "EntityV3QueueDatadog": EntityV3QueueDatadog, + "EntityV3QueueSpec": EntityV3QueueSpec, + "EntityV3Service": EntityV3Service, + "EntityV3ServiceDatadog": EntityV3ServiceDatadog, + "EntityV3ServiceSpec": EntityV3ServiceSpec, + "EntityV3System": EntityV3System, + "EntityV3SystemDatadog": EntityV3SystemDatadog, + "EntityV3SystemSpec": EntityV3SystemSpec, + "ErrorHandler": ErrorHandler, + "Event": Event, + "EventAttributes": EventAttributes, + "EventCreateRequest": EventCreateRequest, + "EventCreateRequestPayload": EventCreateRequestPayload, + "EventCreateResponse": EventCreateResponse, + "EventCreateResponseAttributes": EventCreateResponseAttributes, + "EventCreateResponseAttributesAttributes": EventCreateResponseAttributesAttributes, + "EventCreateResponseAttributesAttributesEvt": EventCreateResponseAttributesAttributesEvt, + "EventCreateResponsePayload": EventCreateResponsePayload, + "EventPayload": EventPayload, + "EventResponse": EventResponse, + "EventResponseAttributes": EventResponseAttributes, + "EventsCompute": EventsCompute, + "EventsGroupBy": EventsGroupBy, + "EventsGroupBySort": EventsGroupBySort, + "EventsListRequest": EventsListRequest, + "EventsListResponse": EventsListResponse, + "EventsListResponseLinks": EventsListResponseLinks, + "EventsQueryFilter": EventsQueryFilter, + "EventsQueryOptions": EventsQueryOptions, + "EventsRequestPage": EventsRequestPage, + "EventsResponseMetadata": EventsResponseMetadata, + "EventsResponseMetadataPage": EventsResponseMetadataPage, + "EventsScalarQuery": EventsScalarQuery, + "EventsSearch": EventsSearch, + "EventsTimeseriesQuery": EventsTimeseriesQuery, + "EventsWarning": EventsWarning, + "FastlyAccounResponseAttributes": FastlyAccounResponseAttributes, + "FastlyAccountCreateRequest": FastlyAccountCreateRequest, + "FastlyAccountCreateRequestAttributes": FastlyAccountCreateRequestAttributes, + "FastlyAccountCreateRequestData": FastlyAccountCreateRequestData, + "FastlyAccountResponse": FastlyAccountResponse, + "FastlyAccountResponseData": FastlyAccountResponseData, + "FastlyAccountUpdateRequest": FastlyAccountUpdateRequest, + "FastlyAccountUpdateRequestAttributes": FastlyAccountUpdateRequestAttributes, + "FastlyAccountUpdateRequestData": FastlyAccountUpdateRequestData, + "FastlyAccountsResponse": FastlyAccountsResponse, + "FastlyService": FastlyService, + "FastlyServiceAttributes": FastlyServiceAttributes, + "FastlyServiceData": FastlyServiceData, + "FastlyServiceRequest": FastlyServiceRequest, + "FastlyServiceResponse": FastlyServiceResponse, + "FastlyServicesResponse": FastlyServicesResponse, + "Finding": Finding, + "FindingAttributes": FindingAttributes, + "FindingMute": FindingMute, + "FindingRule": FindingRule, + "FormulaLimit": FormulaLimit, + "FullAPIKey": FullAPIKey, + "FullAPIKeyAttributes": FullAPIKeyAttributes, + "FullApplicationKey": FullApplicationKey, + "FullApplicationKeyAttributes": FullApplicationKeyAttributes, + "GCPMetricNamespaceConfig": GCPMetricNamespaceConfig, + "GCPSTSDelegateAccount": GCPSTSDelegateAccount, + "GCPSTSDelegateAccountAttributes": GCPSTSDelegateAccountAttributes, + "GCPSTSDelegateAccountResponse": GCPSTSDelegateAccountResponse, + "GCPSTSServiceAccount": GCPSTSServiceAccount, + "GCPSTSServiceAccountAttributes": GCPSTSServiceAccountAttributes, + "GCPSTSServiceAccountCreateRequest": GCPSTSServiceAccountCreateRequest, + "GCPSTSServiceAccountData": GCPSTSServiceAccountData, + "GCPSTSServiceAccountResponse": GCPSTSServiceAccountResponse, + "GCPSTSServiceAccountUpdateRequest": GCPSTSServiceAccountUpdateRequest, + "GCPSTSServiceAccountUpdateRequestData": GCPSTSServiceAccountUpdateRequestData, + "GCPSTSServiceAccountsResponse": GCPSTSServiceAccountsResponse, + "GCPServiceAccountMeta": GCPServiceAccountMeta, + "GetActionConnectionResponse": GetActionConnectionResponse, + "GetAppResponse": GetAppResponse, + "GetAppResponseData": GetAppResponseData, + "GetAppResponseDataAttributes": GetAppResponseDataAttributes, + "GetDataDeletionsResponseBody": GetDataDeletionsResponseBody, + "GetDeviceAttributes": GetDeviceAttributes, + "GetDeviceData": GetDeviceData, + "GetDeviceResponse": GetDeviceResponse, + "GetFindingResponse": GetFindingResponse, + "GetInterfacesData": GetInterfacesData, + "GetInterfacesResponse": GetInterfacesResponse, + "GetRuleVersionHistoryData": GetRuleVersionHistoryData, + "GetRuleVersionHistoryResponse": GetRuleVersionHistoryResponse, + "GetSBOMResponse": GetSBOMResponse, + "GetWorkflowResponse": GetWorkflowResponse, + "GithubWebhookTrigger": GithubWebhookTrigger, + "GithubWebhookTriggerWrapper": GithubWebhookTriggerWrapper, + "GroupScalarColumn": GroupScalarColumn, + "HTTPBody": HTTPBody, + "HTTPCIAppError": HTTPCIAppError, + "HTTPCIAppErrors": HTTPCIAppErrors, + "HTTPHeader": HTTPHeader, + "HTTPHeaderUpdate": HTTPHeaderUpdate, + "HTTPIntegration": HTTPIntegration, + "HTTPIntegrationUpdate": HTTPIntegrationUpdate, + "HTTPLogError": HTTPLogError, + "HTTPLogErrors": HTTPLogErrors, + "HTTPLogItem": HTTPLogItem, + "HTTPToken": HTTPToken, + "HTTPTokenAuth": HTTPTokenAuth, + "HTTPTokenAuthUpdate": HTTPTokenAuthUpdate, + "HTTPTokenUpdate": HTTPTokenUpdate, + "HistoricalJobListMeta": HistoricalJobListMeta, + "HistoricalJobOptions": HistoricalJobOptions, + "HistoricalJobQuery": HistoricalJobQuery, + "HistoricalJobResponse": HistoricalJobResponse, + "HistoricalJobResponseAttributes": HistoricalJobResponseAttributes, + "HistoricalJobResponseData": HistoricalJobResponseData, + "HourlyUsage": HourlyUsage, + "HourlyUsageAttributes": HourlyUsageAttributes, + "HourlyUsageMeasurement": HourlyUsageMeasurement, + "HourlyUsageMetadata": HourlyUsageMetadata, + "HourlyUsagePagination": HourlyUsagePagination, + "HourlyUsageResponse": HourlyUsageResponse, + "IPAllowlistAttributes": IPAllowlistAttributes, + "IPAllowlistData": IPAllowlistData, + "IPAllowlistEntry": IPAllowlistEntry, + "IPAllowlistEntryAttributes": IPAllowlistEntryAttributes, + "IPAllowlistEntryData": IPAllowlistEntryData, + "IPAllowlistResponse": IPAllowlistResponse, + "IPAllowlistUpdateRequest": IPAllowlistUpdateRequest, + "IdPMetadataFormData": IdPMetadataFormData, + "IncidentAttachmentData": IncidentAttachmentData, + "IncidentAttachmentLinkAttributes": IncidentAttachmentLinkAttributes, + "IncidentAttachmentLinkAttributesAttachmentObject": IncidentAttachmentLinkAttributesAttachmentObject, + "IncidentAttachmentPostmortemAttributes": IncidentAttachmentPostmortemAttributes, + "IncidentAttachmentRelationships": IncidentAttachmentRelationships, + "IncidentAttachmentUpdateData": IncidentAttachmentUpdateData, + "IncidentAttachmentUpdateRequest": IncidentAttachmentUpdateRequest, + "IncidentAttachmentUpdateResponse": IncidentAttachmentUpdateResponse, + "IncidentAttachmentsPostmortemAttributesAttachmentObject": IncidentAttachmentsPostmortemAttributesAttachmentObject, + "IncidentAttachmentsResponse": IncidentAttachmentsResponse, + "IncidentCreateAttributes": IncidentCreateAttributes, + "IncidentCreateData": IncidentCreateData, + "IncidentCreateRelationships": IncidentCreateRelationships, + "IncidentCreateRequest": IncidentCreateRequest, + "IncidentFieldAttributesMultipleValue": IncidentFieldAttributesMultipleValue, + "IncidentFieldAttributesSingleValue": IncidentFieldAttributesSingleValue, + "IncidentIntegrationMetadataAttributes": IncidentIntegrationMetadataAttributes, + "IncidentIntegrationMetadataCreateData": IncidentIntegrationMetadataCreateData, + "IncidentIntegrationMetadataCreateRequest": IncidentIntegrationMetadataCreateRequest, + "IncidentIntegrationMetadataListResponse": IncidentIntegrationMetadataListResponse, + "IncidentIntegrationMetadataPatchData": IncidentIntegrationMetadataPatchData, + "IncidentIntegrationMetadataPatchRequest": IncidentIntegrationMetadataPatchRequest, + "IncidentIntegrationMetadataResponse": IncidentIntegrationMetadataResponse, + "IncidentIntegrationMetadataResponseData": IncidentIntegrationMetadataResponseData, + "IncidentIntegrationRelationships": IncidentIntegrationRelationships, + "IncidentNonDatadogCreator": IncidentNonDatadogCreator, + "IncidentNotificationHandle": IncidentNotificationHandle, + "IncidentResponse": IncidentResponse, + "IncidentResponseAttributes": IncidentResponseAttributes, + "IncidentResponseData": IncidentResponseData, + "IncidentResponseMeta": IncidentResponseMeta, + "IncidentResponseMetaPagination": IncidentResponseMetaPagination, + "IncidentResponseRelationships": IncidentResponseRelationships, + "IncidentSearchResponse": IncidentSearchResponse, + "IncidentSearchResponseAttributes": IncidentSearchResponseAttributes, + "IncidentSearchResponseData": IncidentSearchResponseData, + "IncidentSearchResponseFacetsData": IncidentSearchResponseFacetsData, + "IncidentSearchResponseFieldFacetData": IncidentSearchResponseFieldFacetData, + "IncidentSearchResponseIncidentsData": IncidentSearchResponseIncidentsData, + "IncidentSearchResponseMeta": IncidentSearchResponseMeta, + "IncidentSearchResponseNumericFacetData": IncidentSearchResponseNumericFacetData, + "IncidentSearchResponseNumericFacetDataAggregates": IncidentSearchResponseNumericFacetDataAggregates, + "IncidentSearchResponsePropertyFieldFacetData": IncidentSearchResponsePropertyFieldFacetData, + "IncidentSearchResponseUserFacetData": IncidentSearchResponseUserFacetData, + "IncidentServiceCreateAttributes": IncidentServiceCreateAttributes, + "IncidentServiceCreateData": IncidentServiceCreateData, + "IncidentServiceCreateRequest": IncidentServiceCreateRequest, + "IncidentServiceRelationships": IncidentServiceRelationships, + "IncidentServiceResponse": IncidentServiceResponse, + "IncidentServiceResponseAttributes": IncidentServiceResponseAttributes, + "IncidentServiceResponseData": IncidentServiceResponseData, + "IncidentServiceUpdateAttributes": IncidentServiceUpdateAttributes, + "IncidentServiceUpdateData": IncidentServiceUpdateData, + "IncidentServiceUpdateRequest": IncidentServiceUpdateRequest, + "IncidentServicesResponse": IncidentServicesResponse, + "IncidentTeamCreateAttributes": IncidentTeamCreateAttributes, + "IncidentTeamCreateData": IncidentTeamCreateData, + "IncidentTeamCreateRequest": IncidentTeamCreateRequest, + "IncidentTeamRelationships": IncidentTeamRelationships, + "IncidentTeamResponse": IncidentTeamResponse, + "IncidentTeamResponseAttributes": IncidentTeamResponseAttributes, + "IncidentTeamResponseData": IncidentTeamResponseData, + "IncidentTeamUpdateAttributes": IncidentTeamUpdateAttributes, + "IncidentTeamUpdateData": IncidentTeamUpdateData, + "IncidentTeamUpdateRequest": IncidentTeamUpdateRequest, + "IncidentTeamsResponse": IncidentTeamsResponse, + "IncidentTimelineCellMarkdownCreateAttributes": IncidentTimelineCellMarkdownCreateAttributes, + "IncidentTimelineCellMarkdownCreateAttributesContent": IncidentTimelineCellMarkdownCreateAttributesContent, + "IncidentTodoAnonymousAssignee": IncidentTodoAnonymousAssignee, + "IncidentTodoAttributes": IncidentTodoAttributes, + "IncidentTodoCreateData": IncidentTodoCreateData, + "IncidentTodoCreateRequest": IncidentTodoCreateRequest, + "IncidentTodoListResponse": IncidentTodoListResponse, + "IncidentTodoPatchData": IncidentTodoPatchData, + "IncidentTodoPatchRequest": IncidentTodoPatchRequest, + "IncidentTodoRelationships": IncidentTodoRelationships, + "IncidentTodoResponse": IncidentTodoResponse, + "IncidentTodoResponseData": IncidentTodoResponseData, + "IncidentTrigger": IncidentTrigger, + "IncidentTriggerWrapper": IncidentTriggerWrapper, + "IncidentTypeAttributes": IncidentTypeAttributes, + "IncidentTypeCreateData": IncidentTypeCreateData, + "IncidentTypeCreateRequest": IncidentTypeCreateRequest, + "IncidentTypeListResponse": IncidentTypeListResponse, + "IncidentTypeObject": IncidentTypeObject, + "IncidentTypePatchData": IncidentTypePatchData, + "IncidentTypePatchRequest": IncidentTypePatchRequest, + "IncidentTypeResponse": IncidentTypeResponse, + "IncidentTypeUpdateAttributes": IncidentTypeUpdateAttributes, + "IncidentUpdateAttributes": IncidentUpdateAttributes, + "IncidentUpdateData": IncidentUpdateData, + "IncidentUpdateRelationships": IncidentUpdateRelationships, + "IncidentUpdateRequest": IncidentUpdateRequest, + "IncidentUserAttributes": IncidentUserAttributes, + "IncidentUserData": IncidentUserData, + "IncidentsResponse": IncidentsResponse, + "InputSchema": InputSchema, + "InputSchemaParameters": InputSchemaParameters, + "IntakePayloadAccepted": IntakePayloadAccepted, + "InterfaceAttributes": InterfaceAttributes, + "JSONAPIErrorItem": JSONAPIErrorItem, + "JSONAPIErrorItemSource": JSONAPIErrorItemSource, + "JSONAPIErrorResponse": JSONAPIErrorResponse, + "JiraIntegrationMetadata": JiraIntegrationMetadata, + "JiraIntegrationMetadataIssuesItem": JiraIntegrationMetadataIssuesItem, + "JiraIssue": JiraIssue, + "JiraIssueResult": JiraIssueResult, + "JobCreateResponse": JobCreateResponse, + "JobCreateResponseData": JobCreateResponseData, + "JobDefinition": JobDefinition, + "JobDefinitionFromRule": JobDefinitionFromRule, + "LeakedKey": LeakedKey, + "LeakedKeyAttributes": LeakedKeyAttributes, + "Library": Library, + "Links": Links, + "ListAPIsResponse": ListAPIsResponse, + "ListAPIsResponseData": ListAPIsResponseData, + "ListAPIsResponseDataAttributes": ListAPIsResponseDataAttributes, + "ListAPIsResponseMeta": ListAPIsResponseMeta, + "ListAPIsResponseMetaPagination": ListAPIsResponseMetaPagination, + "ListApplicationKeysResponse": ListApplicationKeysResponse, + "ListAppsResponse": ListAppsResponse, + "ListAppsResponseDataItems": ListAppsResponseDataItems, + "ListAppsResponseDataItemsAttributes": ListAppsResponseDataItemsAttributes, + "ListAppsResponseDataItemsRelationships": ListAppsResponseDataItemsRelationships, + "ListAppsResponseMeta": ListAppsResponseMeta, + "ListAppsResponseMetaPage": ListAppsResponseMetaPage, + "ListDevicesResponse": ListDevicesResponse, + "ListDevicesResponseMetadata": ListDevicesResponseMetadata, + "ListDevicesResponseMetadataPage": ListDevicesResponseMetadataPage, + "ListDowntimesResponse": ListDowntimesResponse, + "ListEntityCatalogResponse": ListEntityCatalogResponse, + "ListEntityCatalogResponseLinks": ListEntityCatalogResponseLinks, + "ListFindingsMeta": ListFindingsMeta, + "ListFindingsPage": ListFindingsPage, + "ListFindingsResponse": ListFindingsResponse, + "ListHistoricalJobsResponse": ListHistoricalJobsResponse, + "ListPowerpacksResponse": ListPowerpacksResponse, + "ListRulesResponse": ListRulesResponse, + "ListRulesResponseDataItem": ListRulesResponseDataItem, + "ListRulesResponseLinks": ListRulesResponseLinks, + "ListTagsResponse": ListTagsResponse, + "ListTagsResponseData": ListTagsResponseData, + "ListTagsResponseDataAttributes": ListTagsResponseDataAttributes, + "ListVulnerabilitiesResponse": ListVulnerabilitiesResponse, + "ListVulnerableAssetsResponse": ListVulnerableAssetsResponse, + "Log": Log, + "LogAttributes": LogAttributes, + "LogsAggregateBucket": LogsAggregateBucket, + "LogsAggregateBucketValueTimeseriesPoint": LogsAggregateBucketValueTimeseriesPoint, + "LogsAggregateRequest": LogsAggregateRequest, + "LogsAggregateRequestPage": LogsAggregateRequestPage, + "LogsAggregateResponse": LogsAggregateResponse, + "LogsAggregateResponseData": LogsAggregateResponseData, + "LogsAggregateSort": LogsAggregateSort, + "LogsArchive": LogsArchive, + "LogsArchiveAttributes": LogsArchiveAttributes, + "LogsArchiveCreateRequest": LogsArchiveCreateRequest, + "LogsArchiveCreateRequestAttributes": LogsArchiveCreateRequestAttributes, + "LogsArchiveCreateRequestDefinition": LogsArchiveCreateRequestDefinition, + "LogsArchiveDefinition": LogsArchiveDefinition, + "LogsArchiveDestinationAzure": LogsArchiveDestinationAzure, + "LogsArchiveDestinationGCS": LogsArchiveDestinationGCS, + "LogsArchiveDestinationS3": LogsArchiveDestinationS3, + "LogsArchiveEncryptionS3": LogsArchiveEncryptionS3, + "LogsArchiveIntegrationAzure": LogsArchiveIntegrationAzure, + "LogsArchiveIntegrationGCS": LogsArchiveIntegrationGCS, + "LogsArchiveIntegrationS3": LogsArchiveIntegrationS3, + "LogsArchiveOrder": LogsArchiveOrder, + "LogsArchiveOrderAttributes": LogsArchiveOrderAttributes, + "LogsArchiveOrderDefinition": LogsArchiveOrderDefinition, + "LogsArchives": LogsArchives, + "LogsCompute": LogsCompute, + "LogsGroupBy": LogsGroupBy, + "LogsGroupByHistogram": LogsGroupByHistogram, + "LogsListRequest": LogsListRequest, + "LogsListRequestPage": LogsListRequestPage, + "LogsListResponse": LogsListResponse, + "LogsListResponseLinks": LogsListResponseLinks, + "LogsMetricCompute": LogsMetricCompute, + "LogsMetricCreateAttributes": LogsMetricCreateAttributes, + "LogsMetricCreateData": LogsMetricCreateData, + "LogsMetricCreateRequest": LogsMetricCreateRequest, + "LogsMetricFilter": LogsMetricFilter, + "LogsMetricGroupBy": LogsMetricGroupBy, + "LogsMetricResponse": LogsMetricResponse, + "LogsMetricResponseAttributes": LogsMetricResponseAttributes, + "LogsMetricResponseCompute": LogsMetricResponseCompute, + "LogsMetricResponseData": LogsMetricResponseData, + "LogsMetricResponseFilter": LogsMetricResponseFilter, + "LogsMetricResponseGroupBy": LogsMetricResponseGroupBy, + "LogsMetricUpdateAttributes": LogsMetricUpdateAttributes, + "LogsMetricUpdateCompute": LogsMetricUpdateCompute, + "LogsMetricUpdateData": LogsMetricUpdateData, + "LogsMetricUpdateRequest": LogsMetricUpdateRequest, + "LogsMetricsResponse": LogsMetricsResponse, + "LogsQueryFilter": LogsQueryFilter, + "LogsQueryOptions": LogsQueryOptions, + "LogsResponseMetadata": LogsResponseMetadata, + "LogsResponseMetadataPage": LogsResponseMetadataPage, + "LogsWarning": LogsWarning, + "MSTeamsIntegrationMetadata": MSTeamsIntegrationMetadata, + "MSTeamsIntegrationMetadataTeamsItem": MSTeamsIntegrationMetadataTeamsItem, + "Metadata": Metadata, + "Metric": Metric, + "MetricAllTags": MetricAllTags, + "MetricAllTagsAttributes": MetricAllTagsAttributes, + "MetricAllTagsResponse": MetricAllTagsResponse, + "MetricAssetAttributes": MetricAssetAttributes, + "MetricAssetDashboardRelationship": MetricAssetDashboardRelationship, + "MetricAssetDashboardRelationships": MetricAssetDashboardRelationships, + "MetricAssetMonitorRelationship": MetricAssetMonitorRelationship, + "MetricAssetMonitorRelationships": MetricAssetMonitorRelationships, + "MetricAssetNotebookRelationship": MetricAssetNotebookRelationship, + "MetricAssetNotebookRelationships": MetricAssetNotebookRelationships, + "MetricAssetResponseData": MetricAssetResponseData, + "MetricAssetResponseRelationships": MetricAssetResponseRelationships, + "MetricAssetSLORelationship": MetricAssetSLORelationship, + "MetricAssetSLORelationships": MetricAssetSLORelationships, + "MetricAssetsResponse": MetricAssetsResponse, + "MetricBulkTagConfigCreate": MetricBulkTagConfigCreate, + "MetricBulkTagConfigCreateAttributes": MetricBulkTagConfigCreateAttributes, + "MetricBulkTagConfigCreateRequest": MetricBulkTagConfigCreateRequest, + "MetricBulkTagConfigDelete": MetricBulkTagConfigDelete, + "MetricBulkTagConfigDeleteAttributes": MetricBulkTagConfigDeleteAttributes, + "MetricBulkTagConfigDeleteRequest": MetricBulkTagConfigDeleteRequest, + "MetricBulkTagConfigResponse": MetricBulkTagConfigResponse, + "MetricBulkTagConfigStatus": MetricBulkTagConfigStatus, + "MetricBulkTagConfigStatusAttributes": MetricBulkTagConfigStatusAttributes, + "MetricCustomAggregation": MetricCustomAggregation, + "MetricDashboardAsset": MetricDashboardAsset, + "MetricDashboardAttributes": MetricDashboardAttributes, + "MetricDistinctVolume": MetricDistinctVolume, + "MetricDistinctVolumeAttributes": MetricDistinctVolumeAttributes, + "MetricEstimate": MetricEstimate, + "MetricEstimateAttributes": MetricEstimateAttributes, + "MetricEstimateResponse": MetricEstimateResponse, + "MetricIngestedIndexedVolume": MetricIngestedIndexedVolume, + "MetricIngestedIndexedVolumeAttributes": MetricIngestedIndexedVolumeAttributes, + "MetricMetaPage": MetricMetaPage, + "MetricMetadata": MetricMetadata, + "MetricMonitorAsset": MetricMonitorAsset, + "MetricNotebookAsset": MetricNotebookAsset, + "MetricOrigin": MetricOrigin, + "MetricPaginationMeta": MetricPaginationMeta, + "MetricPayload": MetricPayload, + "MetricPoint": MetricPoint, + "MetricResource": MetricResource, + "MetricSLOAsset": MetricSLOAsset, + "MetricSeries": MetricSeries, + "MetricSuggestedTagsAndAggregations": MetricSuggestedTagsAndAggregations, + "MetricSuggestedTagsAndAggregationsResponse": MetricSuggestedTagsAndAggregationsResponse, + "MetricSuggestedTagsAttributes": MetricSuggestedTagsAttributes, + "MetricTagConfiguration": MetricTagConfiguration, + "MetricTagConfigurationAttributes": MetricTagConfigurationAttributes, + "MetricTagConfigurationCreateAttributes": MetricTagConfigurationCreateAttributes, + "MetricTagConfigurationCreateData": MetricTagConfigurationCreateData, + "MetricTagConfigurationCreateRequest": MetricTagConfigurationCreateRequest, + "MetricTagConfigurationResponse": MetricTagConfigurationResponse, + "MetricTagConfigurationUpdateAttributes": MetricTagConfigurationUpdateAttributes, + "MetricTagConfigurationUpdateData": MetricTagConfigurationUpdateData, + "MetricTagConfigurationUpdateRequest": MetricTagConfigurationUpdateRequest, + "MetricVolumesResponse": MetricVolumesResponse, + "MetricsAndMetricTagConfigurationsResponse": MetricsAndMetricTagConfigurationsResponse, + "MetricsListResponseLinks": MetricsListResponseLinks, + "MetricsScalarQuery": MetricsScalarQuery, + "MetricsTimeseriesQuery": MetricsTimeseriesQuery, + "MicrosoftTeamsChannelInfoResponseAttributes": MicrosoftTeamsChannelInfoResponseAttributes, + "MicrosoftTeamsChannelInfoResponseData": MicrosoftTeamsChannelInfoResponseData, + "MicrosoftTeamsCreateTenantBasedHandleRequest": MicrosoftTeamsCreateTenantBasedHandleRequest, + "MicrosoftTeamsCreateWorkflowsWebhookHandleRequest": MicrosoftTeamsCreateWorkflowsWebhookHandleRequest, + "MicrosoftTeamsGetChannelByNameResponse": MicrosoftTeamsGetChannelByNameResponse, + "MicrosoftTeamsTenantBasedHandleAttributes": MicrosoftTeamsTenantBasedHandleAttributes, + "MicrosoftTeamsTenantBasedHandleInfoResponseAttributes": MicrosoftTeamsTenantBasedHandleInfoResponseAttributes, + "MicrosoftTeamsTenantBasedHandleInfoResponseData": MicrosoftTeamsTenantBasedHandleInfoResponseData, + "MicrosoftTeamsTenantBasedHandleRequestAttributes": MicrosoftTeamsTenantBasedHandleRequestAttributes, + "MicrosoftTeamsTenantBasedHandleRequestData": MicrosoftTeamsTenantBasedHandleRequestData, + "MicrosoftTeamsTenantBasedHandleResponse": MicrosoftTeamsTenantBasedHandleResponse, + "MicrosoftTeamsTenantBasedHandleResponseData": MicrosoftTeamsTenantBasedHandleResponseData, + "MicrosoftTeamsTenantBasedHandlesResponse": MicrosoftTeamsTenantBasedHandlesResponse, + "MicrosoftTeamsUpdateTenantBasedHandleRequest": MicrosoftTeamsUpdateTenantBasedHandleRequest, + "MicrosoftTeamsUpdateTenantBasedHandleRequestData": MicrosoftTeamsUpdateTenantBasedHandleRequestData, + "MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest": MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest, + "MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData": MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData, + "MicrosoftTeamsWorkflowsWebhookHandleAttributes": MicrosoftTeamsWorkflowsWebhookHandleAttributes, + "MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes": MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes, + "MicrosoftTeamsWorkflowsWebhookHandleRequestData": MicrosoftTeamsWorkflowsWebhookHandleRequestData, + "MicrosoftTeamsWorkflowsWebhookHandleResponse": MicrosoftTeamsWorkflowsWebhookHandleResponse, + "MicrosoftTeamsWorkflowsWebhookHandleResponseData": MicrosoftTeamsWorkflowsWebhookHandleResponseData, + "MicrosoftTeamsWorkflowsWebhookHandlesResponse": MicrosoftTeamsWorkflowsWebhookHandlesResponse, + "MicrosoftTeamsWorkflowsWebhookResponseAttributes": MicrosoftTeamsWorkflowsWebhookResponseAttributes, + "MonitorConfigPolicyAttributeCreateRequest": MonitorConfigPolicyAttributeCreateRequest, + "MonitorConfigPolicyAttributeEditRequest": MonitorConfigPolicyAttributeEditRequest, + "MonitorConfigPolicyAttributeResponse": MonitorConfigPolicyAttributeResponse, + "MonitorConfigPolicyCreateData": MonitorConfigPolicyCreateData, + "MonitorConfigPolicyCreateRequest": MonitorConfigPolicyCreateRequest, + "MonitorConfigPolicyEditData": MonitorConfigPolicyEditData, + "MonitorConfigPolicyEditRequest": MonitorConfigPolicyEditRequest, + "MonitorConfigPolicyListResponse": MonitorConfigPolicyListResponse, + "MonitorConfigPolicyResponse": MonitorConfigPolicyResponse, + "MonitorConfigPolicyResponseData": MonitorConfigPolicyResponseData, + "MonitorConfigPolicyTagPolicy": MonitorConfigPolicyTagPolicy, + "MonitorConfigPolicyTagPolicyCreateRequest": MonitorConfigPolicyTagPolicyCreateRequest, + "MonitorDowntimeMatchResponse": MonitorDowntimeMatchResponse, + "MonitorDowntimeMatchResponseAttributes": MonitorDowntimeMatchResponseAttributes, + "MonitorDowntimeMatchResponseData": MonitorDowntimeMatchResponseData, + "MonitorTrigger": MonitorTrigger, + "MonitorTriggerWrapper": MonitorTriggerWrapper, + "MonitorType": MonitorType, + "MonthlyCostAttributionAttributes": MonthlyCostAttributionAttributes, + "MonthlyCostAttributionBody": MonthlyCostAttributionBody, + "MonthlyCostAttributionMeta": MonthlyCostAttributionMeta, + "MonthlyCostAttributionPagination": MonthlyCostAttributionPagination, + "MonthlyCostAttributionResponse": MonthlyCostAttributionResponse, + "NotebookTriggerWrapper": NotebookTriggerWrapper, + "NotificationRule": NotificationRule, + "NotificationRuleAttributes": NotificationRuleAttributes, + "NotificationRuleResponse": NotificationRuleResponse, + "NullableRelationshipToUser": NullableRelationshipToUser, + "NullableRelationshipToUserData": NullableRelationshipToUserData, + "NullableUserRelationship": NullableUserRelationship, + "NullableUserRelationshipData": NullableUserRelationshipData, + "OktaAccount": OktaAccount, + "OktaAccountAttributes": OktaAccountAttributes, + "OktaAccountRequest": OktaAccountRequest, + "OktaAccountResponse": OktaAccountResponse, + "OktaAccountResponseData": OktaAccountResponseData, + "OktaAccountUpdateRequest": OktaAccountUpdateRequest, + "OktaAccountUpdateRequestAttributes": OktaAccountUpdateRequestAttributes, + "OktaAccountUpdateRequestData": OktaAccountUpdateRequestData, + "OktaAccountsResponse": OktaAccountsResponse, + "OnDemandConcurrencyCap": OnDemandConcurrencyCap, + "OnDemandConcurrencyCapAttributes": OnDemandConcurrencyCapAttributes, + "OnDemandConcurrencyCapResponse": OnDemandConcurrencyCapResponse, + "OpenAPIEndpoint": OpenAPIEndpoint, + "OpenAPIFile": OpenAPIFile, + "OpsgenieServiceCreateAttributes": OpsgenieServiceCreateAttributes, + "OpsgenieServiceCreateData": OpsgenieServiceCreateData, + "OpsgenieServiceCreateRequest": OpsgenieServiceCreateRequest, + "OpsgenieServiceResponse": OpsgenieServiceResponse, + "OpsgenieServiceResponseAttributes": OpsgenieServiceResponseAttributes, + "OpsgenieServiceResponseData": OpsgenieServiceResponseData, + "OpsgenieServiceUpdateAttributes": OpsgenieServiceUpdateAttributes, + "OpsgenieServiceUpdateData": OpsgenieServiceUpdateData, + "OpsgenieServiceUpdateRequest": OpsgenieServiceUpdateRequest, + "OpsgenieServicesResponse": OpsgenieServicesResponse, + "OrgConfigGetResponse": OrgConfigGetResponse, + "OrgConfigListResponse": OrgConfigListResponse, + "OrgConfigRead": OrgConfigRead, + "OrgConfigReadAttributes": OrgConfigReadAttributes, + "OrgConfigWrite": OrgConfigWrite, + "OrgConfigWriteAttributes": OrgConfigWriteAttributes, + "OrgConfigWriteRequest": OrgConfigWriteRequest, + "Organization": Organization, + "OrganizationAttributes": OrganizationAttributes, + "OutboundEdge": OutboundEdge, + "OutcomesBatchAttributes": OutcomesBatchAttributes, + "OutcomesBatchRequest": OutcomesBatchRequest, + "OutcomesBatchRequestData": OutcomesBatchRequestData, + "OutcomesBatchRequestItem": OutcomesBatchRequestItem, + "OutcomesBatchResponse": OutcomesBatchResponse, + "OutcomesBatchResponseAttributes": OutcomesBatchResponseAttributes, + "OutcomesBatchResponseMeta": OutcomesBatchResponseMeta, + "OutcomesResponse": OutcomesResponse, + "OutcomesResponseDataItem": OutcomesResponseDataItem, + "OutcomesResponseIncludedItem": OutcomesResponseIncludedItem, + "OutcomesResponseIncludedRuleAttributes": OutcomesResponseIncludedRuleAttributes, + "OutcomesResponseLinks": OutcomesResponseLinks, + "OutputSchema": OutputSchema, + "OutputSchemaParameters": OutputSchemaParameters, + "Pagination": Pagination, + "Parameter": Parameter, + "PartialAPIKey": PartialAPIKey, + "PartialAPIKeyAttributes": PartialAPIKeyAttributes, + "PartialApplicationKey": PartialApplicationKey, + "PartialApplicationKeyAttributes": PartialApplicationKeyAttributes, + "PartialApplicationKeyResponse": PartialApplicationKeyResponse, + "PatchNotificationRuleParameters": PatchNotificationRuleParameters, + "PatchNotificationRuleParametersData": PatchNotificationRuleParametersData, + "PatchNotificationRuleParametersDataAttributes": PatchNotificationRuleParametersDataAttributes, + "Permission": Permission, + "PermissionAttributes": PermissionAttributes, + "PermissionsResponse": PermissionsResponse, + "Powerpack": Powerpack, + "PowerpackAttributes": PowerpackAttributes, + "PowerpackData": PowerpackData, + "PowerpackGroupWidget": PowerpackGroupWidget, + "PowerpackGroupWidgetDefinition": PowerpackGroupWidgetDefinition, + "PowerpackGroupWidgetLayout": PowerpackGroupWidgetLayout, + "PowerpackInnerWidgetLayout": PowerpackInnerWidgetLayout, + "PowerpackInnerWidgets": PowerpackInnerWidgets, + "PowerpackRelationships": PowerpackRelationships, + "PowerpackResponse": PowerpackResponse, + "PowerpackResponseLinks": PowerpackResponseLinks, + "PowerpackTemplateVariable": PowerpackTemplateVariable, + "PowerpacksResponseMeta": PowerpacksResponseMeta, + "PowerpacksResponseMetaPagination": PowerpacksResponseMetaPagination, + "ProcessSummariesMeta": ProcessSummariesMeta, + "ProcessSummariesMetaPage": ProcessSummariesMetaPage, + "ProcessSummariesResponse": ProcessSummariesResponse, + "ProcessSummary": ProcessSummary, + "ProcessSummaryAttributes": ProcessSummaryAttributes, + "Project": Project, + "ProjectAttributes": ProjectAttributes, + "ProjectCreate": ProjectCreate, + "ProjectCreateAttributes": ProjectCreateAttributes, + "ProjectCreateRequest": ProjectCreateRequest, + "ProjectRelationship": ProjectRelationship, + "ProjectRelationshipData": ProjectRelationshipData, + "ProjectRelationships": ProjectRelationships, + "ProjectResponse": ProjectResponse, + "ProjectedCost": ProjectedCost, + "ProjectedCostAttributes": ProjectedCostAttributes, + "ProjectedCostResponse": ProjectedCostResponse, + "ProjectsResponse": ProjectsResponse, + "PublishAppResponse": PublishAppResponse, + "QueryFormula": QueryFormula, + "RUMAggregateBucketValueTimeseriesPoint": RUMAggregateBucketValueTimeseriesPoint, + "RUMAggregateRequest": RUMAggregateRequest, + "RUMAggregateSort": RUMAggregateSort, + "RUMAggregationBucketsResponse": RUMAggregationBucketsResponse, + "RUMAnalyticsAggregateResponse": RUMAnalyticsAggregateResponse, + "RUMApplication": RUMApplication, + "RUMApplicationAttributes": RUMApplicationAttributes, + "RUMApplicationCreate": RUMApplicationCreate, + "RUMApplicationCreateAttributes": RUMApplicationCreateAttributes, + "RUMApplicationCreateRequest": RUMApplicationCreateRequest, + "RUMApplicationList": RUMApplicationList, + "RUMApplicationListAttributes": RUMApplicationListAttributes, + "RUMApplicationResponse": RUMApplicationResponse, + "RUMApplicationUpdate": RUMApplicationUpdate, + "RUMApplicationUpdateAttributes": RUMApplicationUpdateAttributes, + "RUMApplicationUpdateRequest": RUMApplicationUpdateRequest, + "RUMApplicationsResponse": RUMApplicationsResponse, + "RUMBucketResponse": RUMBucketResponse, + "RUMCompute": RUMCompute, + "RUMEvent": RUMEvent, + "RUMEventAttributes": RUMEventAttributes, + "RUMEventsResponse": RUMEventsResponse, + "RUMGroupBy": RUMGroupBy, + "RUMGroupByHistogram": RUMGroupByHistogram, + "RUMQueryFilter": RUMQueryFilter, + "RUMQueryOptions": RUMQueryOptions, + "RUMQueryPageOptions": RUMQueryPageOptions, + "RUMResponseLinks": RUMResponseLinks, + "RUMResponseMetadata": RUMResponseMetadata, + "RUMResponsePage": RUMResponsePage, + "RUMSearchEventsRequest": RUMSearchEventsRequest, + "RUMWarning": RUMWarning, + "ReadinessGate": ReadinessGate, + "RelationshipItem": RelationshipItem, + "RelationshipToIncidentAttachment": RelationshipToIncidentAttachment, + "RelationshipToIncidentAttachmentData": RelationshipToIncidentAttachmentData, + "RelationshipToIncidentImpactData": RelationshipToIncidentImpactData, + "RelationshipToIncidentImpacts": RelationshipToIncidentImpacts, + "RelationshipToIncidentIntegrationMetadataData": RelationshipToIncidentIntegrationMetadataData, + "RelationshipToIncidentIntegrationMetadatas": RelationshipToIncidentIntegrationMetadatas, + "RelationshipToIncidentPostmortem": RelationshipToIncidentPostmortem, + "RelationshipToIncidentPostmortemData": RelationshipToIncidentPostmortemData, + "RelationshipToIncidentResponderData": RelationshipToIncidentResponderData, + "RelationshipToIncidentResponders": RelationshipToIncidentResponders, + "RelationshipToIncidentUserDefinedFieldData": RelationshipToIncidentUserDefinedFieldData, + "RelationshipToIncidentUserDefinedFields": RelationshipToIncidentUserDefinedFields, + "RelationshipToOrganization": RelationshipToOrganization, + "RelationshipToOrganizationData": RelationshipToOrganizationData, + "RelationshipToOrganizations": RelationshipToOrganizations, + "RelationshipToOutcome": RelationshipToOutcome, + "RelationshipToOutcomeData": RelationshipToOutcomeData, + "RelationshipToPermission": RelationshipToPermission, + "RelationshipToPermissionData": RelationshipToPermissionData, + "RelationshipToPermissions": RelationshipToPermissions, + "RelationshipToRole": RelationshipToRole, + "RelationshipToRoleData": RelationshipToRoleData, + "RelationshipToRoles": RelationshipToRoles, + "RelationshipToRule": RelationshipToRule, + "RelationshipToRuleData": RelationshipToRuleData, + "RelationshipToRuleDataObject": RelationshipToRuleDataObject, + "RelationshipToSAMLAssertionAttribute": RelationshipToSAMLAssertionAttribute, + "RelationshipToSAMLAssertionAttributeData": RelationshipToSAMLAssertionAttributeData, + "RelationshipToTeam": RelationshipToTeam, + "RelationshipToTeamData": RelationshipToTeamData, + "RelationshipToTeamLinkData": RelationshipToTeamLinkData, + "RelationshipToTeamLinks": RelationshipToTeamLinks, + "RelationshipToUser": RelationshipToUser, + "RelationshipToUserData": RelationshipToUserData, + "RelationshipToUserTeamPermission": RelationshipToUserTeamPermission, + "RelationshipToUserTeamPermissionData": RelationshipToUserTeamPermissionData, + "RelationshipToUserTeamTeam": RelationshipToUserTeamTeam, + "RelationshipToUserTeamTeamData": RelationshipToUserTeamTeamData, + "RelationshipToUserTeamUser": RelationshipToUserTeamUser, + "RelationshipToUserTeamUserData": RelationshipToUserTeamUserData, + "RelationshipToUsers": RelationshipToUsers, + "Remediation": Remediation, + "ReorderRetentionFiltersRequest": ReorderRetentionFiltersRequest, + "ResponseMetaAttributes": ResponseMetaAttributes, + "RestrictionPolicy": RestrictionPolicy, + "RestrictionPolicyAttributes": RestrictionPolicyAttributes, + "RestrictionPolicyBinding": RestrictionPolicyBinding, + "RestrictionPolicyResponse": RestrictionPolicyResponse, + "RestrictionPolicyUpdateRequest": RestrictionPolicyUpdateRequest, + "RetentionFilter": RetentionFilter, + "RetentionFilterAll": RetentionFilterAll, + "RetentionFilterAllAttributes": RetentionFilterAllAttributes, + "RetentionFilterAttributes": RetentionFilterAttributes, + "RetentionFilterCreateAttributes": RetentionFilterCreateAttributes, + "RetentionFilterCreateData": RetentionFilterCreateData, + "RetentionFilterCreateRequest": RetentionFilterCreateRequest, + "RetentionFilterCreateResponse": RetentionFilterCreateResponse, + "RetentionFilterResponse": RetentionFilterResponse, + "RetentionFilterUpdateAttributes": RetentionFilterUpdateAttributes, + "RetentionFilterUpdateData": RetentionFilterUpdateData, + "RetentionFilterUpdateRequest": RetentionFilterUpdateRequest, + "RetentionFilterWithoutAttributes": RetentionFilterWithoutAttributes, + "RetentionFiltersResponse": RetentionFiltersResponse, + "RetryStrategy": RetryStrategy, + "RetryStrategyLinear": RetryStrategyLinear, + "Role": Role, + "RoleAttributes": RoleAttributes, + "RoleClone": RoleClone, + "RoleCloneAttributes": RoleCloneAttributes, + "RoleCloneRequest": RoleCloneRequest, + "RoleCreateAttributes": RoleCreateAttributes, + "RoleCreateData": RoleCreateData, + "RoleCreateRequest": RoleCreateRequest, + "RoleCreateResponse": RoleCreateResponse, + "RoleCreateResponseData": RoleCreateResponseData, + "RoleRelationships": RoleRelationships, + "RoleResponse": RoleResponse, + "RoleResponseRelationships": RoleResponseRelationships, + "RoleUpdateAttributes": RoleUpdateAttributes, + "RoleUpdateData": RoleUpdateData, + "RoleUpdateRequest": RoleUpdateRequest, + "RoleUpdateResponse": RoleUpdateResponse, + "RoleUpdateResponseData": RoleUpdateResponseData, + "RolesResponse": RolesResponse, + "RuleAttributes": RuleAttributes, + "RuleOutcomeRelationships": RuleOutcomeRelationships, + "RuleUser": RuleUser, + "RuleVersionHistory": RuleVersionHistory, + "RuleVersionUpdate": RuleVersionUpdate, + "RuleVersions": RuleVersions, + "RumMetricCompute": RumMetricCompute, + "RumMetricCreateAttributes": RumMetricCreateAttributes, + "RumMetricCreateData": RumMetricCreateData, + "RumMetricCreateRequest": RumMetricCreateRequest, + "RumMetricFilter": RumMetricFilter, + "RumMetricGroupBy": RumMetricGroupBy, + "RumMetricResponse": RumMetricResponse, + "RumMetricResponseAttributes": RumMetricResponseAttributes, + "RumMetricResponseCompute": RumMetricResponseCompute, + "RumMetricResponseData": RumMetricResponseData, + "RumMetricResponseFilter": RumMetricResponseFilter, + "RumMetricResponseGroupBy": RumMetricResponseGroupBy, + "RumMetricResponseUniqueness": RumMetricResponseUniqueness, + "RumMetricUniqueness": RumMetricUniqueness, + "RumMetricUpdateAttributes": RumMetricUpdateAttributes, + "RumMetricUpdateCompute": RumMetricUpdateCompute, + "RumMetricUpdateData": RumMetricUpdateData, + "RumMetricUpdateRequest": RumMetricUpdateRequest, + "RumMetricsResponse": RumMetricsResponse, + "RumRetentionFilterAttributes": RumRetentionFilterAttributes, + "RumRetentionFilterCreateAttributes": RumRetentionFilterCreateAttributes, + "RumRetentionFilterCreateData": RumRetentionFilterCreateData, + "RumRetentionFilterCreateRequest": RumRetentionFilterCreateRequest, + "RumRetentionFilterData": RumRetentionFilterData, + "RumRetentionFilterResponse": RumRetentionFilterResponse, + "RumRetentionFilterUpdateAttributes": RumRetentionFilterUpdateAttributes, + "RumRetentionFilterUpdateData": RumRetentionFilterUpdateData, + "RumRetentionFilterUpdateRequest": RumRetentionFilterUpdateRequest, + "RumRetentionFiltersOrderData": RumRetentionFiltersOrderData, + "RumRetentionFiltersOrderRequest": RumRetentionFiltersOrderRequest, + "RumRetentionFiltersOrderResponse": RumRetentionFiltersOrderResponse, + "RumRetentionFiltersResponse": RumRetentionFiltersResponse, + "RunHistoricalJobRequest": RunHistoricalJobRequest, + "RunHistoricalJobRequestAttributes": RunHistoricalJobRequestAttributes, + "RunHistoricalJobRequestData": RunHistoricalJobRequestData, + "SAMLAssertionAttribute": SAMLAssertionAttribute, + "SAMLAssertionAttributeAttributes": SAMLAssertionAttributeAttributes, + "SBOM": SBOM, + "SBOMAttributes": SBOMAttributes, + "SBOMComponent": SBOMComponent, + "SBOMMetadata": SBOMMetadata, + "SBOMMetadataComponent": SBOMMetadataComponent, + "SLOReportPostResponse": SLOReportPostResponse, + "SLOReportPostResponseData": SLOReportPostResponseData, + "SLOReportStatusGetResponse": SLOReportStatusGetResponse, + "SLOReportStatusGetResponseAttributes": SLOReportStatusGetResponseAttributes, + "SLOReportStatusGetResponseData": SLOReportStatusGetResponseData, + "ScalarFormulaQueryRequest": ScalarFormulaQueryRequest, + "ScalarFormulaQueryResponse": ScalarFormulaQueryResponse, + "ScalarFormulaRequest": ScalarFormulaRequest, + "ScalarFormulaRequestAttributes": ScalarFormulaRequestAttributes, + "ScalarFormulaResponseAtrributes": ScalarFormulaResponseAtrributes, + "ScalarMeta": ScalarMeta, + "ScalarResponse": ScalarResponse, + "ScheduleTrigger": ScheduleTrigger, + "ScheduleTriggerWrapper": ScheduleTriggerWrapper, + "SecurityFilter": SecurityFilter, + "SecurityFilterAttributes": SecurityFilterAttributes, + "SecurityFilterCreateAttributes": SecurityFilterCreateAttributes, + "SecurityFilterCreateData": SecurityFilterCreateData, + "SecurityFilterCreateRequest": SecurityFilterCreateRequest, + "SecurityFilterExclusionFilter": SecurityFilterExclusionFilter, + "SecurityFilterExclusionFilterResponse": SecurityFilterExclusionFilterResponse, + "SecurityFilterMeta": SecurityFilterMeta, + "SecurityFilterResponse": SecurityFilterResponse, + "SecurityFilterUpdateAttributes": SecurityFilterUpdateAttributes, + "SecurityFilterUpdateData": SecurityFilterUpdateData, + "SecurityFilterUpdateRequest": SecurityFilterUpdateRequest, + "SecurityFiltersResponse": SecurityFiltersResponse, + "SecurityMonitoringFilter": SecurityMonitoringFilter, + "SecurityMonitoringListRulesResponse": SecurityMonitoringListRulesResponse, + "SecurityMonitoringReferenceTable": SecurityMonitoringReferenceTable, + "SecurityMonitoringRuleCase": SecurityMonitoringRuleCase, + "SecurityMonitoringRuleCaseAction": SecurityMonitoringRuleCaseAction, + "SecurityMonitoringRuleCaseActionOptions": SecurityMonitoringRuleCaseActionOptions, + "SecurityMonitoringRuleCaseCreate": SecurityMonitoringRuleCaseCreate, + "SecurityMonitoringRuleConvertResponse": SecurityMonitoringRuleConvertResponse, + "SecurityMonitoringRuleImpossibleTravelOptions": SecurityMonitoringRuleImpossibleTravelOptions, + "SecurityMonitoringRuleNewValueOptions": SecurityMonitoringRuleNewValueOptions, + "SecurityMonitoringRuleOptions": SecurityMonitoringRuleOptions, + "SecurityMonitoringRuleQueryPayload": SecurityMonitoringRuleQueryPayload, + "SecurityMonitoringRuleQueryPayloadData": SecurityMonitoringRuleQueryPayloadData, + "SecurityMonitoringRuleTestRequest": SecurityMonitoringRuleTestRequest, + "SecurityMonitoringRuleTestResponse": SecurityMonitoringRuleTestResponse, + "SecurityMonitoringRuleThirdPartyOptions": SecurityMonitoringRuleThirdPartyOptions, + "SecurityMonitoringRuleUpdatePayload": SecurityMonitoringRuleUpdatePayload, + "SecurityMonitoringSignal": SecurityMonitoringSignal, + "SecurityMonitoringSignalAssigneeUpdateAttributes": SecurityMonitoringSignalAssigneeUpdateAttributes, + "SecurityMonitoringSignalAssigneeUpdateData": SecurityMonitoringSignalAssigneeUpdateData, + "SecurityMonitoringSignalAssigneeUpdateRequest": SecurityMonitoringSignalAssigneeUpdateRequest, + "SecurityMonitoringSignalAttributes": SecurityMonitoringSignalAttributes, + "SecurityMonitoringSignalIncidentsUpdateAttributes": SecurityMonitoringSignalIncidentsUpdateAttributes, + "SecurityMonitoringSignalIncidentsUpdateData": SecurityMonitoringSignalIncidentsUpdateData, + "SecurityMonitoringSignalIncidentsUpdateRequest": SecurityMonitoringSignalIncidentsUpdateRequest, + "SecurityMonitoringSignalListRequest": SecurityMonitoringSignalListRequest, + "SecurityMonitoringSignalListRequestFilter": SecurityMonitoringSignalListRequestFilter, + "SecurityMonitoringSignalListRequestPage": SecurityMonitoringSignalListRequestPage, + "SecurityMonitoringSignalResponse": SecurityMonitoringSignalResponse, + "SecurityMonitoringSignalRuleCreatePayload": SecurityMonitoringSignalRuleCreatePayload, + "SecurityMonitoringSignalRulePayload": SecurityMonitoringSignalRulePayload, + "SecurityMonitoringSignalRuleQuery": SecurityMonitoringSignalRuleQuery, + "SecurityMonitoringSignalRuleResponse": SecurityMonitoringSignalRuleResponse, + "SecurityMonitoringSignalRuleResponseQuery": SecurityMonitoringSignalRuleResponseQuery, + "SecurityMonitoringSignalStateUpdateAttributes": SecurityMonitoringSignalStateUpdateAttributes, + "SecurityMonitoringSignalStateUpdateData": SecurityMonitoringSignalStateUpdateData, + "SecurityMonitoringSignalStateUpdateRequest": SecurityMonitoringSignalStateUpdateRequest, + "SecurityMonitoringSignalTriageAttributes": SecurityMonitoringSignalTriageAttributes, + "SecurityMonitoringSignalTriageUpdateData": SecurityMonitoringSignalTriageUpdateData, + "SecurityMonitoringSignalTriageUpdateResponse": SecurityMonitoringSignalTriageUpdateResponse, + "SecurityMonitoringSignalsListResponse": SecurityMonitoringSignalsListResponse, + "SecurityMonitoringSignalsListResponseLinks": SecurityMonitoringSignalsListResponseLinks, + "SecurityMonitoringSignalsListResponseMeta": SecurityMonitoringSignalsListResponseMeta, + "SecurityMonitoringSignalsListResponseMetaPage": SecurityMonitoringSignalsListResponseMetaPage, + "SecurityMonitoringStandardRuleCreatePayload": SecurityMonitoringStandardRuleCreatePayload, + "SecurityMonitoringStandardRulePayload": SecurityMonitoringStandardRulePayload, + "SecurityMonitoringStandardRuleQuery": SecurityMonitoringStandardRuleQuery, + "SecurityMonitoringStandardRuleResponse": SecurityMonitoringStandardRuleResponse, + "SecurityMonitoringStandardRuleTestPayload": SecurityMonitoringStandardRuleTestPayload, + "SecurityMonitoringSuppression": SecurityMonitoringSuppression, + "SecurityMonitoringSuppressionAttributes": SecurityMonitoringSuppressionAttributes, + "SecurityMonitoringSuppressionCreateAttributes": SecurityMonitoringSuppressionCreateAttributes, + "SecurityMonitoringSuppressionCreateData": SecurityMonitoringSuppressionCreateData, + "SecurityMonitoringSuppressionCreateRequest": SecurityMonitoringSuppressionCreateRequest, + "SecurityMonitoringSuppressionResponse": SecurityMonitoringSuppressionResponse, + "SecurityMonitoringSuppressionUpdateAttributes": SecurityMonitoringSuppressionUpdateAttributes, + "SecurityMonitoringSuppressionUpdateData": SecurityMonitoringSuppressionUpdateData, + "SecurityMonitoringSuppressionUpdateRequest": SecurityMonitoringSuppressionUpdateRequest, + "SecurityMonitoringSuppressionsResponse": SecurityMonitoringSuppressionsResponse, + "SecurityMonitoringThirdPartyRootQuery": SecurityMonitoringThirdPartyRootQuery, + "SecurityMonitoringThirdPartyRuleCase": SecurityMonitoringThirdPartyRuleCase, + "SecurityMonitoringThirdPartyRuleCaseCreate": SecurityMonitoringThirdPartyRuleCaseCreate, + "SecurityMonitoringTriageUser": SecurityMonitoringTriageUser, + "SecurityMonitoringUser": SecurityMonitoringUser, + "SecurityTrigger": SecurityTrigger, + "SecurityTriggerWrapper": SecurityTriggerWrapper, + "Selectors": Selectors, + "SelfServiceTriggerWrapper": SelfServiceTriggerWrapper, + "SensitiveDataScannerConfigRequest": SensitiveDataScannerConfigRequest, + "SensitiveDataScannerConfiguration": SensitiveDataScannerConfiguration, + "SensitiveDataScannerConfigurationData": SensitiveDataScannerConfigurationData, + "SensitiveDataScannerConfigurationRelationships": SensitiveDataScannerConfigurationRelationships, + "SensitiveDataScannerCreateGroupResponse": SensitiveDataScannerCreateGroupResponse, + "SensitiveDataScannerCreateRuleResponse": SensitiveDataScannerCreateRuleResponse, + "SensitiveDataScannerFilter": SensitiveDataScannerFilter, + "SensitiveDataScannerGetConfigResponse": SensitiveDataScannerGetConfigResponse, + "SensitiveDataScannerGetConfigResponseData": SensitiveDataScannerGetConfigResponseData, + "SensitiveDataScannerGroup": SensitiveDataScannerGroup, + "SensitiveDataScannerGroupAttributes": SensitiveDataScannerGroupAttributes, + "SensitiveDataScannerGroupCreate": SensitiveDataScannerGroupCreate, + "SensitiveDataScannerGroupCreateRequest": SensitiveDataScannerGroupCreateRequest, + "SensitiveDataScannerGroupData": SensitiveDataScannerGroupData, + "SensitiveDataScannerGroupDeleteRequest": SensitiveDataScannerGroupDeleteRequest, + "SensitiveDataScannerGroupDeleteResponse": SensitiveDataScannerGroupDeleteResponse, + "SensitiveDataScannerGroupIncludedItem": SensitiveDataScannerGroupIncludedItem, + "SensitiveDataScannerGroupItem": SensitiveDataScannerGroupItem, + "SensitiveDataScannerGroupList": SensitiveDataScannerGroupList, + "SensitiveDataScannerGroupRelationships": SensitiveDataScannerGroupRelationships, + "SensitiveDataScannerGroupResponse": SensitiveDataScannerGroupResponse, + "SensitiveDataScannerGroupUpdate": SensitiveDataScannerGroupUpdate, + "SensitiveDataScannerGroupUpdateRequest": SensitiveDataScannerGroupUpdateRequest, + "SensitiveDataScannerGroupUpdateResponse": SensitiveDataScannerGroupUpdateResponse, + "SensitiveDataScannerIncludedKeywordConfiguration": SensitiveDataScannerIncludedKeywordConfiguration, + "SensitiveDataScannerMeta": SensitiveDataScannerMeta, + "SensitiveDataScannerMetaVersionOnly": SensitiveDataScannerMetaVersionOnly, + "SensitiveDataScannerReorderConfig": SensitiveDataScannerReorderConfig, + "SensitiveDataScannerReorderGroupsResponse": SensitiveDataScannerReorderGroupsResponse, + "SensitiveDataScannerRule": SensitiveDataScannerRule, + "SensitiveDataScannerRuleAttributes": SensitiveDataScannerRuleAttributes, + "SensitiveDataScannerRuleCreate": SensitiveDataScannerRuleCreate, + "SensitiveDataScannerRuleCreateRequest": SensitiveDataScannerRuleCreateRequest, + "SensitiveDataScannerRuleData": SensitiveDataScannerRuleData, + "SensitiveDataScannerRuleDeleteRequest": SensitiveDataScannerRuleDeleteRequest, + "SensitiveDataScannerRuleDeleteResponse": SensitiveDataScannerRuleDeleteResponse, + "SensitiveDataScannerRuleIncludedItem": SensitiveDataScannerRuleIncludedItem, + "SensitiveDataScannerRuleRelationships": SensitiveDataScannerRuleRelationships, + "SensitiveDataScannerRuleResponse": SensitiveDataScannerRuleResponse, + "SensitiveDataScannerRuleUpdate": SensitiveDataScannerRuleUpdate, + "SensitiveDataScannerRuleUpdateRequest": SensitiveDataScannerRuleUpdateRequest, + "SensitiveDataScannerRuleUpdateResponse": SensitiveDataScannerRuleUpdateResponse, + "SensitiveDataScannerStandardPattern": SensitiveDataScannerStandardPattern, + "SensitiveDataScannerStandardPatternAttributes": SensitiveDataScannerStandardPatternAttributes, + "SensitiveDataScannerStandardPatternData": SensitiveDataScannerStandardPatternData, + "SensitiveDataScannerStandardPatternsResponseData": SensitiveDataScannerStandardPatternsResponseData, + "SensitiveDataScannerStandardPatternsResponseItem": SensitiveDataScannerStandardPatternsResponseItem, + "SensitiveDataScannerTextReplacement": SensitiveDataScannerTextReplacement, + "ServiceAccountCreateAttributes": ServiceAccountCreateAttributes, + "ServiceAccountCreateData": ServiceAccountCreateData, + "ServiceAccountCreateRequest": ServiceAccountCreateRequest, + "ServiceDefinitionCreateResponse": ServiceDefinitionCreateResponse, + "ServiceDefinitionData": ServiceDefinitionData, + "ServiceDefinitionDataAttributes": ServiceDefinitionDataAttributes, + "ServiceDefinitionGetResponse": ServiceDefinitionGetResponse, + "ServiceDefinitionMeta": ServiceDefinitionMeta, + "ServiceDefinitionMetaWarnings": ServiceDefinitionMetaWarnings, + "ServiceDefinitionV1": ServiceDefinitionV1, + "ServiceDefinitionV1Contact": ServiceDefinitionV1Contact, + "ServiceDefinitionV1Info": ServiceDefinitionV1Info, + "ServiceDefinitionV1Integrations": ServiceDefinitionV1Integrations, + "ServiceDefinitionV1Org": ServiceDefinitionV1Org, + "ServiceDefinitionV1Resource": ServiceDefinitionV1Resource, + "ServiceDefinitionV2": ServiceDefinitionV2, + "ServiceDefinitionV2Doc": ServiceDefinitionV2Doc, + "ServiceDefinitionV2Dot1": ServiceDefinitionV2Dot1, + "ServiceDefinitionV2Dot1Email": ServiceDefinitionV2Dot1Email, + "ServiceDefinitionV2Dot1Integrations": ServiceDefinitionV2Dot1Integrations, + "ServiceDefinitionV2Dot1Link": ServiceDefinitionV2Dot1Link, + "ServiceDefinitionV2Dot1MSTeams": ServiceDefinitionV2Dot1MSTeams, + "ServiceDefinitionV2Dot1Opsgenie": ServiceDefinitionV2Dot1Opsgenie, + "ServiceDefinitionV2Dot1Pagerduty": ServiceDefinitionV2Dot1Pagerduty, + "ServiceDefinitionV2Dot1Slack": ServiceDefinitionV2Dot1Slack, + "ServiceDefinitionV2Dot2": ServiceDefinitionV2Dot2, + "ServiceDefinitionV2Dot2Contact": ServiceDefinitionV2Dot2Contact, + "ServiceDefinitionV2Dot2Integrations": ServiceDefinitionV2Dot2Integrations, + "ServiceDefinitionV2Dot2Link": ServiceDefinitionV2Dot2Link, + "ServiceDefinitionV2Dot2Opsgenie": ServiceDefinitionV2Dot2Opsgenie, + "ServiceDefinitionV2Dot2Pagerduty": ServiceDefinitionV2Dot2Pagerduty, + "ServiceDefinitionV2Email": ServiceDefinitionV2Email, + "ServiceDefinitionV2Integrations": ServiceDefinitionV2Integrations, + "ServiceDefinitionV2Link": ServiceDefinitionV2Link, + "ServiceDefinitionV2MSTeams": ServiceDefinitionV2MSTeams, + "ServiceDefinitionV2Opsgenie": ServiceDefinitionV2Opsgenie, + "ServiceDefinitionV2Repo": ServiceDefinitionV2Repo, + "ServiceDefinitionV2Slack": ServiceDefinitionV2Slack, + "ServiceDefinitionsListResponse": ServiceDefinitionsListResponse, + "ServiceNowTicket": ServiceNowTicket, + "ServiceNowTicketResult": ServiceNowTicketResult, + "SlackIntegrationMetadata": SlackIntegrationMetadata, + "SlackIntegrationMetadataChannelItem": SlackIntegrationMetadataChannelItem, + "SlackTriggerWrapper": SlackTriggerWrapper, + "SloReportCreateRequest": SloReportCreateRequest, + "SloReportCreateRequestAttributes": SloReportCreateRequestAttributes, + "SloReportCreateRequestData": SloReportCreateRequestData, + "SoftwareCatalogTriggerWrapper": SoftwareCatalogTriggerWrapper, + "Span": Span, + "SpansAggregateBucket": SpansAggregateBucket, + "SpansAggregateBucketAttributes": SpansAggregateBucketAttributes, + "SpansAggregateBucketValueTimeseriesPoint": SpansAggregateBucketValueTimeseriesPoint, + "SpansAggregateData": SpansAggregateData, + "SpansAggregateRequest": SpansAggregateRequest, + "SpansAggregateRequestAttributes": SpansAggregateRequestAttributes, + "SpansAggregateResponse": SpansAggregateResponse, + "SpansAggregateResponseMetadata": SpansAggregateResponseMetadata, + "SpansAggregateSort": SpansAggregateSort, + "SpansAttributes": SpansAttributes, + "SpansCompute": SpansCompute, + "SpansFilter": SpansFilter, + "SpansFilterCreate": SpansFilterCreate, + "SpansGroupBy": SpansGroupBy, + "SpansGroupByHistogram": SpansGroupByHistogram, + "SpansListRequest": SpansListRequest, + "SpansListRequestAttributes": SpansListRequestAttributes, + "SpansListRequestData": SpansListRequestData, + "SpansListRequestPage": SpansListRequestPage, + "SpansListResponse": SpansListResponse, + "SpansListResponseLinks": SpansListResponseLinks, + "SpansListResponseMetadata": SpansListResponseMetadata, + "SpansMetricCompute": SpansMetricCompute, + "SpansMetricCreateAttributes": SpansMetricCreateAttributes, + "SpansMetricCreateData": SpansMetricCreateData, + "SpansMetricCreateRequest": SpansMetricCreateRequest, + "SpansMetricFilter": SpansMetricFilter, + "SpansMetricGroupBy": SpansMetricGroupBy, + "SpansMetricResponse": SpansMetricResponse, + "SpansMetricResponseAttributes": SpansMetricResponseAttributes, + "SpansMetricResponseCompute": SpansMetricResponseCompute, + "SpansMetricResponseData": SpansMetricResponseData, + "SpansMetricResponseFilter": SpansMetricResponseFilter, + "SpansMetricResponseGroupBy": SpansMetricResponseGroupBy, + "SpansMetricUpdateAttributes": SpansMetricUpdateAttributes, + "SpansMetricUpdateCompute": SpansMetricUpdateCompute, + "SpansMetricUpdateData": SpansMetricUpdateData, + "SpansMetricUpdateRequest": SpansMetricUpdateRequest, + "SpansMetricsResponse": SpansMetricsResponse, + "SpansQueryFilter": SpansQueryFilter, + "SpansQueryOptions": SpansQueryOptions, + "SpansResponseMetadataPage": SpansResponseMetadataPage, + "SpansWarning": SpansWarning, + "Spec": Spec, + "StateVariable": StateVariable, + "StateVariableProperties": StateVariableProperties, + "Step": Step, + "StepDisplay": StepDisplay, + "StepDisplayBounds": StepDisplayBounds, + "Team": Team, + "TeamAttributes": TeamAttributes, + "TeamCreate": TeamCreate, + "TeamCreateAttributes": TeamCreateAttributes, + "TeamCreateRelationships": TeamCreateRelationships, + "TeamCreateRequest": TeamCreateRequest, + "TeamLink": TeamLink, + "TeamLinkAttributes": TeamLinkAttributes, + "TeamLinkCreate": TeamLinkCreate, + "TeamLinkCreateRequest": TeamLinkCreateRequest, + "TeamLinkResponse": TeamLinkResponse, + "TeamLinksResponse": TeamLinksResponse, + "TeamPermissionSetting": TeamPermissionSetting, + "TeamPermissionSettingAttributes": TeamPermissionSettingAttributes, + "TeamPermissionSettingResponse": TeamPermissionSettingResponse, + "TeamPermissionSettingUpdate": TeamPermissionSettingUpdate, + "TeamPermissionSettingUpdateAttributes": TeamPermissionSettingUpdateAttributes, + "TeamPermissionSettingUpdateRequest": TeamPermissionSettingUpdateRequest, + "TeamPermissionSettingsResponse": TeamPermissionSettingsResponse, + "TeamRelationships": TeamRelationships, + "TeamRelationshipsLinks": TeamRelationshipsLinks, + "TeamResponse": TeamResponse, + "TeamUpdate": TeamUpdate, + "TeamUpdateAttributes": TeamUpdateAttributes, + "TeamUpdateRelationships": TeamUpdateRelationships, + "TeamUpdateRequest": TeamUpdateRequest, + "TeamsResponse": TeamsResponse, + "TeamsResponseLinks": TeamsResponseLinks, + "TeamsResponseMeta": TeamsResponseMeta, + "TeamsResponseMetaPagination": TeamsResponseMetaPagination, + "TimeseriesFormulaQueryRequest": TimeseriesFormulaQueryRequest, + "TimeseriesFormulaQueryResponse": TimeseriesFormulaQueryResponse, + "TimeseriesFormulaRequest": TimeseriesFormulaRequest, + "TimeseriesFormulaRequestAttributes": TimeseriesFormulaRequestAttributes, + "TimeseriesResponse": TimeseriesResponse, + "TimeseriesResponseAttributes": TimeseriesResponseAttributes, + "TimeseriesResponseSeries": TimeseriesResponseSeries, + "TriggerRateLimit": TriggerRateLimit, + "Unit": Unit, + "UnpublishAppResponse": UnpublishAppResponse, + "UpdateActionConnectionRequest": UpdateActionConnectionRequest, + "UpdateActionConnectionResponse": UpdateActionConnectionResponse, + "UpdateAppRequest": UpdateAppRequest, + "UpdateAppRequestData": UpdateAppRequestData, + "UpdateAppRequestDataAttributes": UpdateAppRequestDataAttributes, + "UpdateAppResponse": UpdateAppResponse, + "UpdateAppResponseData": UpdateAppResponseData, + "UpdateAppResponseDataAttributes": UpdateAppResponseDataAttributes, + "UpdateOpenAPIResponse": UpdateOpenAPIResponse, + "UpdateOpenAPIResponseAttributes": UpdateOpenAPIResponseAttributes, + "UpdateOpenAPIResponseData": UpdateOpenAPIResponseData, + "UpdateRuleRequest": UpdateRuleRequest, + "UpdateRuleRequestData": UpdateRuleRequestData, + "UpdateRuleResponse": UpdateRuleResponse, + "UpdateRuleResponseData": UpdateRuleResponseData, + "UpdateWorkflowRequest": UpdateWorkflowRequest, + "UpdateWorkflowResponse": UpdateWorkflowResponse, + "UpsertCatalogEntityResponse": UpsertCatalogEntityResponse, + "UrlParam": UrlParam, + "UrlParamUpdate": UrlParamUpdate, + "UsageApplicationSecurityMonitoringResponse": UsageApplicationSecurityMonitoringResponse, + "UsageAttributesObject": UsageAttributesObject, + "UsageDataObject": UsageDataObject, + "UsageLambdaTracedInvocationsResponse": UsageLambdaTracedInvocationsResponse, + "UsageObservabilityPipelinesResponse": UsageObservabilityPipelinesResponse, + "UsageTimeSeriesObject": UsageTimeSeriesObject, + "User": User, + "UserAttributes": UserAttributes, + "UserCreateAttributes": UserCreateAttributes, + "UserCreateData": UserCreateData, + "UserCreateRequest": UserCreateRequest, + "UserInvitationData": UserInvitationData, + "UserInvitationDataAttributes": UserInvitationDataAttributes, + "UserInvitationRelationships": UserInvitationRelationships, + "UserInvitationResponse": UserInvitationResponse, + "UserInvitationResponseData": UserInvitationResponseData, + "UserInvitationsRequest": UserInvitationsRequest, + "UserInvitationsResponse": UserInvitationsResponse, + "UserRelationshipData": UserRelationshipData, + "UserRelationships": UserRelationships, + "UserResponse": UserResponse, + "UserResponseRelationships": UserResponseRelationships, + "UserTeam": UserTeam, + "UserTeamAttributes": UserTeamAttributes, + "UserTeamCreate": UserTeamCreate, + "UserTeamPermission": UserTeamPermission, + "UserTeamPermissionAttributes": UserTeamPermissionAttributes, + "UserTeamRelationships": UserTeamRelationships, + "UserTeamRequest": UserTeamRequest, + "UserTeamResponse": UserTeamResponse, + "UserTeamUpdate": UserTeamUpdate, + "UserTeamUpdateRequest": UserTeamUpdateRequest, + "UserTeamsResponse": UserTeamsResponse, + "UserUpdateAttributes": UserUpdateAttributes, + "UserUpdateData": UserUpdateData, + "UserUpdateRequest": UserUpdateRequest, + "UsersRelationship": UsersRelationship, + "UsersResponse": UsersResponse, + "Vulnerability": Vulnerability, + "VulnerabilityAttributes": VulnerabilityAttributes, + "VulnerabilityCvss": VulnerabilityCvss, + "VulnerabilityDependencyLocations": VulnerabilityDependencyLocations, + "VulnerabilityRelationships": VulnerabilityRelationships, + "VulnerabilityRelationshipsAffects": VulnerabilityRelationshipsAffects, + "VulnerabilityRelationshipsAffectsData": VulnerabilityRelationshipsAffectsData, + "VulnerabilityRisks": VulnerabilityRisks, + "WorkflowData": WorkflowData, + "WorkflowDataAttributes": WorkflowDataAttributes, + "WorkflowDataRelationships": WorkflowDataRelationships, + "WorkflowDataUpdate": WorkflowDataUpdate, + "WorkflowDataUpdateAttributes": WorkflowDataUpdateAttributes, + "WorkflowInstanceCreateMeta": WorkflowInstanceCreateMeta, + "WorkflowInstanceCreateRequest": WorkflowInstanceCreateRequest, + "WorkflowInstanceCreateResponse": WorkflowInstanceCreateResponse, + "WorkflowInstanceCreateResponseData": WorkflowInstanceCreateResponseData, + "WorkflowInstanceListItem": WorkflowInstanceListItem, + "WorkflowListInstancesResponse": WorkflowListInstancesResponse, + "WorkflowListInstancesResponseMeta": WorkflowListInstancesResponseMeta, + "WorkflowListInstancesResponseMetaPage": WorkflowListInstancesResponseMetaPage, + "WorkflowTriggerWrapper": WorkflowTriggerWrapper, + "WorkflowUserRelationship": WorkflowUserRelationship, + "WorkflowUserRelationshipData": WorkflowUserRelationshipData, + "WorklflowCancelInstanceResponse": WorklflowCancelInstanceResponse, + "WorklflowCancelInstanceResponseData": WorklflowCancelInstanceResponseData, + "WorklflowGetInstanceResponse": WorklflowGetInstanceResponse, + "WorklflowGetInstanceResponseData": WorklflowGetInstanceResponseData, + "WorklflowGetInstanceResponseDataAttributes": WorklflowGetInstanceResponseDataAttributes, + "XRayServicesIncludeAll": XRayServicesIncludeAll, + "XRayServicesIncludeOnly": XRayServicesIncludeOnly, +} -const oneOfMap: { [index: string]: string[] } = { - APIKeyResponseIncludedItem: ["User", "LeakedKey"], - AWSAuthConfig: ["AWSAuthConfigKeys", "AWSAuthConfigRole"], - AWSCredentials: ["AWSAssumeRole"], - AWSCredentialsUpdate: ["AWSAssumeRoleUpdate"], - AWSNamespaceFilters: [ - "AWSNamespaceFiltersExcludeOnly", - "AWSNamespaceFiltersIncludeOnly", - ], - AWSRegions: ["AWSRegionsIncludeAll", "AWSRegionsIncludeOnly"], - ActionConnectionIntegration: ["AWSIntegration", "HTTPIntegration"], - ActionConnectionIntegrationUpdate: [ - "AWSIntegrationUpdate", - "HTTPIntegrationUpdate", - ], - ActionQueryCondition: ["boolean", "string"], - ActionQueryDebounceInMs: ["number", "string"], - ActionQueryMockedOutputs: ["string", "ActionQueryMockedOutputsObject"], - ActionQueryMockedOutputsEnabled: ["boolean", "string"], - ActionQueryOnlyTriggerManually: ["boolean", "string"], - ActionQueryPollingIntervalInMs: ["number", "string"], - ActionQueryRequiresConfirmation: ["boolean", "string"], - ActionQueryShowToastOnError: ["boolean", "string"], - ActionQuerySpec: ["string", "ActionQuerySpecObject"], - ActionQuerySpecInputs: ["string", "{ [key: string]: any; }"], - ApplicationKeyResponseIncludedItem: ["User", "Role", "LeakedKey"], - AuthNMappingCreateRelationships: [ - "AuthNMappingRelationshipToRole", - "AuthNMappingRelationshipToTeam", - ], - AuthNMappingIncluded: ["SAMLAssertionAttribute", "Role", "AuthNMappingTeam"], - AuthNMappingUpdateRelationships: [ - "AuthNMappingRelationshipToRole", - "AuthNMappingRelationshipToTeam", - ], - CIAppAggregateBucketValue: [ - "string", - "number", - "Array", - ], - CIAppCreatePipelineEventRequestAttributesResource: [ - "CIAppPipelineEventPipeline", - "CIAppPipelineEventStage", - "CIAppPipelineEventJob", - "CIAppPipelineEventStep", - ], - CIAppGroupByMissing: ["string", "number"], - CIAppGroupByTotal: ["boolean", "string", "number"], - CIAppPipelineEventPipeline: [ - "CIAppPipelineEventFinishedPipeline", - "CIAppPipelineEventInProgressPipeline", - ], - ComponentGridPropertiesIsVisible: ["string", "boolean"], - ComponentPropertiesIsVisible: ["boolean", "string"], - ContainerImageItem: ["ContainerImage", "ContainerImageGroup"], - ContainerItem: ["Container", "ContainerGroup"], - CustomDestinationForwardDestination: [ - "CustomDestinationForwardDestinationHttp", - "CustomDestinationForwardDestinationSplunk", - "CustomDestinationForwardDestinationElasticsearch", - ], - CustomDestinationHttpDestinationAuth: [ - "CustomDestinationHttpDestinationAuthBasic", - "CustomDestinationHttpDestinationAuthCustomHeader", - ], - CustomDestinationResponseForwardDestination: [ - "CustomDestinationResponseForwardDestinationHttp", - "CustomDestinationResponseForwardDestinationSplunk", - "CustomDestinationResponseForwardDestinationElasticsearch", - ], - CustomDestinationResponseHttpDestinationAuth: [ - "CustomDestinationResponseHttpDestinationAuthBasic", - "CustomDestinationResponseHttpDestinationAuthCustomHeader", - ], - DowntimeMonitorIdentifier: [ - "DowntimeMonitorIdentifierId", - "DowntimeMonitorIdentifierTags", - ], - DowntimeResponseIncludedItem: ["User", "DowntimeMonitorIncludedItem"], - DowntimeScheduleCreateRequest: [ - "DowntimeScheduleRecurrencesCreateRequest", - "DowntimeScheduleOneTimeCreateUpdateRequest", - ], - DowntimeScheduleResponse: [ - "DowntimeScheduleRecurrencesResponse", - "DowntimeScheduleOneTimeResponse", - ], - DowntimeScheduleUpdateRequest: [ - "DowntimeScheduleRecurrencesUpdateRequest", - "DowntimeScheduleOneTimeCreateUpdateRequest", - ], - EntityV3: [ - "EntityV3Service", - "EntityV3Datastore", - "EntityV3Queue", - "EntityV3System", - "EntityV3API", - ], - EntityV3APISpecInterface: [ - "EntityV3APISpecInterfaceFileRef", - "EntityV3APISpecInterfaceDefinition", - ], - EventPayloadAttributes: ["ChangeEventCustomAttributes"], - HTTPCredentials: ["HTTPTokenAuth"], - HTTPCredentialsUpdate: ["HTTPTokenAuthUpdate"], - IncidentAttachmentAttributes: [ - "IncidentAttachmentPostmortemAttributes", - "IncidentAttachmentLinkAttributes", - ], - IncidentAttachmentUpdateAttributes: [ - "IncidentAttachmentPostmortemAttributes", - "IncidentAttachmentLinkAttributes", - ], - IncidentAttachmentsResponseIncludedItem: ["User"], - IncidentFieldAttributes: [ - "IncidentFieldAttributesSingleValue", - "IncidentFieldAttributesMultipleValue", - ], - IncidentIntegrationMetadataMetadata: [ - "SlackIntegrationMetadata", - "JiraIntegrationMetadata", - "MSTeamsIntegrationMetadata", - ], - IncidentIntegrationMetadataResponseIncludedItem: ["User"], - IncidentResponseIncludedItem: ["IncidentUserData", "IncidentAttachmentData"], - IncidentServiceIncludedItems: ["User"], - IncidentTeamIncludedItems: ["User"], - IncidentTimelineCellCreateAttributes: [ - "IncidentTimelineCellMarkdownCreateAttributes", - ], - IncidentTodoAssignee: ["string", "IncidentTodoAnonymousAssignee"], - IncidentTodoResponseIncludedItem: ["User"], - ListEntityCatalogResponseIncludedItem: [ - "EntityResponseIncludedSchema", - "EntityResponseIncludedRawSchema", - "EntityResponseIncludedRelatedEntity", - "EntityResponseIncludedOncall", - "EntityResponseIncludedIncident", - ], - LogsAggregateBucketValue: [ - "string", - "number", - "Array", - ], - LogsArchiveCreateRequestDestination: [ - "LogsArchiveDestinationAzure", - "LogsArchiveDestinationGCS", - "LogsArchiveDestinationS3", - ], - LogsArchiveDestination: [ - "LogsArchiveDestinationAzure", - "LogsArchiveDestinationGCS", - "LogsArchiveDestinationS3", - ], - LogsGroupByMissing: ["string", "number"], - LogsGroupByTotal: ["boolean", "string", "number"], - MetricAssetResponseIncluded: [ - "MetricDashboardAsset", - "MetricMonitorAsset", - "MetricNotebookAsset", - "MetricSLOAsset", - ], - MetricVolumes: ["MetricDistinctVolume", "MetricIngestedIndexedVolume"], - MetricsAndMetricTagConfigurations: ["Metric", "MetricTagConfiguration"], - MonitorConfigPolicyPolicy: ["MonitorConfigPolicyTagPolicy"], - MonitorConfigPolicyPolicyCreateRequest: [ - "MonitorConfigPolicyTagPolicyCreateRequest", - ], - Query: ["ActionQuery", "DataTransform", "StateVariable"], - RUMAggregateBucketValue: [ - "string", - "number", - "Array", - ], - RUMGroupByMissing: ["string", "number"], - RUMGroupByTotal: ["boolean", "string", "number"], - ScalarColumn: ["GroupScalarColumn", "DataScalarColumn"], - ScalarQuery: ["MetricsScalarQuery", "EventsScalarQuery"], - SecurityMonitoringRuleConvertPayload: [ - "SecurityMonitoringStandardRulePayload", - "SecurityMonitoringSignalRulePayload", - ], - SecurityMonitoringRuleCreatePayload: [ - "SecurityMonitoringStandardRuleCreatePayload", - "SecurityMonitoringSignalRuleCreatePayload", - "CloudConfigurationRuleCreatePayload", - ], - SecurityMonitoringRuleQuery: [ - "SecurityMonitoringStandardRuleQuery", - "SecurityMonitoringSignalRuleQuery", - ], - SecurityMonitoringRuleResponse: [ - "SecurityMonitoringStandardRuleResponse", - "SecurityMonitoringSignalRuleResponse", - ], - SecurityMonitoringRuleTestPayload: [ - "SecurityMonitoringStandardRuleTestPayload", - ], - SecurityMonitoringRuleValidatePayload: [ - "SecurityMonitoringStandardRulePayload", - "SecurityMonitoringSignalRulePayload", - "CloudConfigurationRulePayload", - ], - SensitiveDataScannerGetConfigIncludedItem: [ - "SensitiveDataScannerRuleIncludedItem", - "SensitiveDataScannerGroupIncludedItem", - ], - ServiceDefinitionSchema: [ - "ServiceDefinitionV1", - "ServiceDefinitionV2", - "ServiceDefinitionV2Dot1", - "ServiceDefinitionV2Dot2", - ], - ServiceDefinitionV2Contact: [ - "ServiceDefinitionV2Email", - "ServiceDefinitionV2Slack", - "ServiceDefinitionV2MSTeams", - ], - ServiceDefinitionV2Dot1Contact: [ - "ServiceDefinitionV2Dot1Email", - "ServiceDefinitionV2Dot1Slack", - "ServiceDefinitionV2Dot1MSTeams", - ], - ServiceDefinitionsCreateRequest: [ - "ServiceDefinitionV2Dot2", - "ServiceDefinitionV2Dot1", - "ServiceDefinitionV2", - "string", - ], - SpansAggregateBucketValue: [ - "string", - "number", - "Array", - ], - SpansGroupByMissing: ["string", "number"], - SpansGroupByTotal: ["boolean", "string", "number"], - TeamIncluded: ["User", "TeamLink", "UserTeamPermission"], - TimeseriesQuery: ["MetricsTimeseriesQuery", "EventsTimeseriesQuery"], - Trigger: [ - "APITriggerWrapper", - "AppTriggerWrapper", - "CaseTriggerWrapper", - "ChangeEventTriggerWrapper", - "DatabaseMonitoringTriggerWrapper", - "DashboardTriggerWrapper", - "GithubWebhookTriggerWrapper", - "IncidentTriggerWrapper", - "MonitorTriggerWrapper", - "NotebookTriggerWrapper", - "ScheduleTriggerWrapper", - "SecurityTriggerWrapper", - "SelfServiceTriggerWrapper", - "SlackTriggerWrapper", - "SoftwareCatalogTriggerWrapper", - "WorkflowTriggerWrapper", - ], - UpsertCatalogEntityRequest: ["EntityV3", "string"], - UpsertCatalogEntityResponseIncludedItem: ["EntityResponseIncludedSchema"], - UserResponseIncludedItem: ["Organization", "Permission", "Role"], - UserTeamIncluded: ["User", "Team"], - XRayServicesList: ["XRayServicesIncludeAll", "XRayServicesIncludeOnly"], +const oneOfMap: {[index: string]: string[]} = { + "APIKeyResponseIncludedItem": ["User", "LeakedKey"], + "AWSAuthConfig": ["AWSAuthConfigKeys", "AWSAuthConfigRole"], + "AWSCredentials": ["AWSAssumeRole"], + "AWSCredentialsUpdate": ["AWSAssumeRoleUpdate"], + "AWSNamespaceFilters": ["AWSNamespaceFiltersExcludeOnly", "AWSNamespaceFiltersIncludeOnly"], + "AWSRegions": ["AWSRegionsIncludeAll", "AWSRegionsIncludeOnly"], + "ActionConnectionIntegration": ["AWSIntegration", "HTTPIntegration"], + "ActionConnectionIntegrationUpdate": ["AWSIntegrationUpdate", "HTTPIntegrationUpdate"], + "ActionQueryCondition": ["boolean", "string"], + "ActionQueryDebounceInMs": ["number", "string"], + "ActionQueryMockedOutputs": ["string", "ActionQueryMockedOutputsObject"], + "ActionQueryMockedOutputsEnabled": ["boolean", "string"], + "ActionQueryOnlyTriggerManually": ["boolean", "string"], + "ActionQueryPollingIntervalInMs": ["number", "string"], + "ActionQueryRequiresConfirmation": ["boolean", "string"], + "ActionQueryShowToastOnError": ["boolean", "string"], + "ActionQuerySpec": ["string", "ActionQuerySpecObject"], + "ActionQuerySpecInputs": ["string", "{ [key: string]: any; }"], + "ApplicationKeyResponseIncludedItem": ["User", "Role", "LeakedKey"], + "AuthNMappingCreateRelationships": ["AuthNMappingRelationshipToRole", "AuthNMappingRelationshipToTeam"], + "AuthNMappingIncluded": ["SAMLAssertionAttribute", "Role", "AuthNMappingTeam"], + "AuthNMappingUpdateRelationships": ["AuthNMappingRelationshipToRole", "AuthNMappingRelationshipToTeam"], + "CIAppAggregateBucketValue": ["string", "number", "Array"], + "CIAppCreatePipelineEventRequestAttributesResource": ["CIAppPipelineEventPipeline", "CIAppPipelineEventStage", "CIAppPipelineEventJob", "CIAppPipelineEventStep"], + "CIAppGroupByMissing": ["string", "number"], + "CIAppGroupByTotal": ["boolean", "string", "number"], + "CIAppPipelineEventPipeline": ["CIAppPipelineEventFinishedPipeline", "CIAppPipelineEventInProgressPipeline"], + "ComponentGridPropertiesIsVisible": ["string", "boolean"], + "ComponentPropertiesIsVisible": ["boolean", "string"], + "ContainerImageItem": ["ContainerImage", "ContainerImageGroup"], + "ContainerItem": ["Container", "ContainerGroup"], + "CustomDestinationForwardDestination": ["CustomDestinationForwardDestinationHttp", "CustomDestinationForwardDestinationSplunk", "CustomDestinationForwardDestinationElasticsearch"], + "CustomDestinationHttpDestinationAuth": ["CustomDestinationHttpDestinationAuthBasic", "CustomDestinationHttpDestinationAuthCustomHeader"], + "CustomDestinationResponseForwardDestination": ["CustomDestinationResponseForwardDestinationHttp", "CustomDestinationResponseForwardDestinationSplunk", "CustomDestinationResponseForwardDestinationElasticsearch"], + "CustomDestinationResponseHttpDestinationAuth": ["CustomDestinationResponseHttpDestinationAuthBasic", "CustomDestinationResponseHttpDestinationAuthCustomHeader"], + "DowntimeMonitorIdentifier": ["DowntimeMonitorIdentifierId", "DowntimeMonitorIdentifierTags"], + "DowntimeResponseIncludedItem": ["User", "DowntimeMonitorIncludedItem"], + "DowntimeScheduleCreateRequest": ["DowntimeScheduleRecurrencesCreateRequest", "DowntimeScheduleOneTimeCreateUpdateRequest"], + "DowntimeScheduleResponse": ["DowntimeScheduleRecurrencesResponse", "DowntimeScheduleOneTimeResponse"], + "DowntimeScheduleUpdateRequest": ["DowntimeScheduleRecurrencesUpdateRequest", "DowntimeScheduleOneTimeCreateUpdateRequest"], + "EntityV3": ["EntityV3Service", "EntityV3Datastore", "EntityV3Queue", "EntityV3System", "EntityV3API"], + "EntityV3APISpecInterface": ["EntityV3APISpecInterfaceFileRef", "EntityV3APISpecInterfaceDefinition"], + "EventPayloadAttributes": ["ChangeEventCustomAttributes"], + "HTTPCredentials": ["HTTPTokenAuth"], + "HTTPCredentialsUpdate": ["HTTPTokenAuthUpdate"], + "IncidentAttachmentAttributes": ["IncidentAttachmentPostmortemAttributes", "IncidentAttachmentLinkAttributes"], + "IncidentAttachmentUpdateAttributes": ["IncidentAttachmentPostmortemAttributes", "IncidentAttachmentLinkAttributes"], + "IncidentAttachmentsResponseIncludedItem": ["User"], + "IncidentFieldAttributes": ["IncidentFieldAttributesSingleValue", "IncidentFieldAttributesMultipleValue"], + "IncidentIntegrationMetadataMetadata": ["SlackIntegrationMetadata", "JiraIntegrationMetadata", "MSTeamsIntegrationMetadata"], + "IncidentIntegrationMetadataResponseIncludedItem": ["User"], + "IncidentResponseIncludedItem": ["IncidentUserData", "IncidentAttachmentData"], + "IncidentServiceIncludedItems": ["User"], + "IncidentTeamIncludedItems": ["User"], + "IncidentTimelineCellCreateAttributes": ["IncidentTimelineCellMarkdownCreateAttributes"], + "IncidentTodoAssignee": ["string", "IncidentTodoAnonymousAssignee"], + "IncidentTodoResponseIncludedItem": ["User"], + "ListEntityCatalogResponseIncludedItem": ["EntityResponseIncludedSchema", "EntityResponseIncludedRawSchema", "EntityResponseIncludedRelatedEntity", "EntityResponseIncludedOncall", "EntityResponseIncludedIncident"], + "LogsAggregateBucketValue": ["string", "number", "Array"], + "LogsArchiveCreateRequestDestination": ["LogsArchiveDestinationAzure", "LogsArchiveDestinationGCS", "LogsArchiveDestinationS3"], + "LogsArchiveDestination": ["LogsArchiveDestinationAzure", "LogsArchiveDestinationGCS", "LogsArchiveDestinationS3"], + "LogsGroupByMissing": ["string", "number"], + "LogsGroupByTotal": ["boolean", "string", "number"], + "MetricAssetResponseIncluded": ["MetricDashboardAsset", "MetricMonitorAsset", "MetricNotebookAsset", "MetricSLOAsset"], + "MetricVolumes": ["MetricDistinctVolume", "MetricIngestedIndexedVolume"], + "MetricsAndMetricTagConfigurations": ["Metric", "MetricTagConfiguration"], + "MonitorConfigPolicyPolicy": ["MonitorConfigPolicyTagPolicy"], + "MonitorConfigPolicyPolicyCreateRequest": ["MonitorConfigPolicyTagPolicyCreateRequest"], + "Query": ["ActionQuery", "DataTransform", "StateVariable"], + "RUMAggregateBucketValue": ["string", "number", "Array"], + "RUMGroupByMissing": ["string", "number"], + "RUMGroupByTotal": ["boolean", "string", "number"], + "ScalarColumn": ["GroupScalarColumn", "DataScalarColumn"], + "ScalarQuery": ["MetricsScalarQuery", "EventsScalarQuery"], + "SecurityMonitoringRuleConvertPayload": ["SecurityMonitoringStandardRulePayload", "SecurityMonitoringSignalRulePayload"], + "SecurityMonitoringRuleCreatePayload": ["SecurityMonitoringStandardRuleCreatePayload", "SecurityMonitoringSignalRuleCreatePayload", "CloudConfigurationRuleCreatePayload"], + "SecurityMonitoringRuleQuery": ["SecurityMonitoringStandardRuleQuery", "SecurityMonitoringSignalRuleQuery"], + "SecurityMonitoringRuleResponse": ["SecurityMonitoringStandardRuleResponse", "SecurityMonitoringSignalRuleResponse"], + "SecurityMonitoringRuleTestPayload": ["SecurityMonitoringStandardRuleTestPayload"], + "SecurityMonitoringRuleValidatePayload": ["SecurityMonitoringStandardRulePayload", "SecurityMonitoringSignalRulePayload", "CloudConfigurationRulePayload"], + "SensitiveDataScannerGetConfigIncludedItem": ["SensitiveDataScannerRuleIncludedItem", "SensitiveDataScannerGroupIncludedItem"], + "ServiceDefinitionSchema": ["ServiceDefinitionV1", "ServiceDefinitionV2", "ServiceDefinitionV2Dot1", "ServiceDefinitionV2Dot2"], + "ServiceDefinitionV2Contact": ["ServiceDefinitionV2Email", "ServiceDefinitionV2Slack", "ServiceDefinitionV2MSTeams"], + "ServiceDefinitionV2Dot1Contact": ["ServiceDefinitionV2Dot1Email", "ServiceDefinitionV2Dot1Slack", "ServiceDefinitionV2Dot1MSTeams"], + "ServiceDefinitionsCreateRequest": ["ServiceDefinitionV2Dot2", "ServiceDefinitionV2Dot1", "ServiceDefinitionV2", "string"], + "SpansAggregateBucketValue": ["string", "number", "Array"], + "SpansGroupByMissing": ["string", "number"], + "SpansGroupByTotal": ["boolean", "string", "number"], + "TeamIncluded": ["User", "TeamLink", "UserTeamPermission"], + "TimeseriesQuery": ["MetricsTimeseriesQuery", "EventsTimeseriesQuery"], + "Trigger": ["APITriggerWrapper", "AppTriggerWrapper", "CaseTriggerWrapper", "ChangeEventTriggerWrapper", "DatabaseMonitoringTriggerWrapper", "DashboardTriggerWrapper", "GithubWebhookTriggerWrapper", "IncidentTriggerWrapper", "MonitorTriggerWrapper", "NotebookTriggerWrapper", "ScheduleTriggerWrapper", "SecurityTriggerWrapper", "SelfServiceTriggerWrapper", "SlackTriggerWrapper", "SoftwareCatalogTriggerWrapper", "WorkflowTriggerWrapper"], + "UpsertCatalogEntityRequest": ["EntityV3", "string"], + "UpsertCatalogEntityResponseIncludedItem": ["EntityResponseIncludedSchema"], + "UserResponseIncludedItem": ["Organization", "Permission", "Role"], + "UserTeamIncluded": ["User", "Team"], + "XRayServicesList": ["XRayServicesIncludeAll", "XRayServicesIncludeOnly"], }; export class ObjectSerializer { @@ -4727,52 +3795,33 @@ export class ObjectSerializer { return data; } else if (data instanceof UnparsedObject) { return data._data; - } else if ( - primitives.includes(type.toLowerCase()) && - typeof data == type.toLowerCase() - ) { + } else if (primitives.includes(type.toLowerCase()) && typeof data == type.toLowerCase()) { return data; } else if (type.startsWith(ARRAY_PREFIX)) { if (!Array.isArray(data)) { - throw new TypeError(`mismatch types '${data}' and '${type}'`); + throw new TypeError(`mismatch types '${data}' and '${type}'`); } // Array => Type - const subType: string = type.substring( - ARRAY_PREFIX.length, - type.length - 1 - ); + const subType: string = type.substring(ARRAY_PREFIX.length, type.length - 1); const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.serialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.serialize(element, subType, format)); } return transformedData; } else if (type.startsWith(TUPLE_PREFIX)) { // We only support homegeneus tuples - const subType: string = type - .substring(TUPLE_PREFIX.length, type.length - 1) - .split(", ")[0]; + const subType: string = type.substring(TUPLE_PREFIX.length, type.length - 1).split(", ")[0]; const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.serialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.serialize(element, subType, format)); } return transformedData; } else if (type.startsWith(MAP_PREFIX)) { // { [key: string]: Type; } => Type - const subType: string = type.substring( - MAP_PREFIX.length, - type.length - 3 - ); + const subType: string = type.substring(MAP_PREFIX.length, type.length - 3); const transformedData: { [key: string]: any } = {}; for (const key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format - ); + transformedData[key] = ObjectSerializer.serialize(data[key], subType, format); } return transformedData; } else if (type === "Date") { @@ -4780,7 +3829,7 @@ export class ObjectSerializer { return data; } if (format == "date" || format == "date-time") { - return dateToRFC3339String(data); + return dateToRFC3339String(data) } else { return data.toISOString(); } @@ -4789,7 +3838,7 @@ export class ObjectSerializer { if (enumsMap[type].includes(data)) { return data; } - throw new TypeError(`unknown enum value '${data}'`); + throw new TypeError(`unknown enum value '${data}'`) } if (oneOfMap[type]) { const oneOfs: any[] = []; @@ -4797,30 +3846,25 @@ export class ObjectSerializer { try { oneOfs.push(ObjectSerializer.serialize(data, oneOf, format)); } catch (e) { - logger.debug(`could not serialize ${oneOf} (${e})`); + logger.debug(`could not serialize ${oneOf} (${e})`) } } if (oneOfs.length > 1) { - throw new TypeError( - `${data} matches multiple types from ${oneOfMap[type]} ${oneOfs}` - ); + throw new TypeError(`${data} matches multiple types from ${oneOfMap[type]} ${oneOfs}`); } if (oneOfs.length == 0) { - throw new TypeError( - `${data} doesn't match any type from ${oneOfMap[type]} ${oneOfs}` - ); + throw new TypeError(`${data} doesn't match any type from ${oneOfMap[type]} ${oneOfs}`); } return oneOfs[0]; } - if (!typeMap[type]) { - // dont know the type + if (!typeMap[type]) { // dont know the type throw new TypeError(`unknown type '${type}'`); } // get the map for the correct type. const attributesMap = typeMap[type].getAttributeTypeMap(); - const instance: { [index: string]: any } = {}; + const instance: {[index: string]: any} = {}; for (const attributeName in data) { const attributeObj = attributesMap[attributeName]; @@ -4863,13 +3907,8 @@ export class ObjectSerializer { // check for required properties for (const attributeName in attributesMap) { const attributeObj = attributesMap[attributeName]; - if ( - attributeObj?.required && - instance[attributeObj.baseName] === undefined - ) { - throw new Error( - `missing required property '${attributeObj.baseName}'` - ); + if (attributeObj?.required && instance[attributeObj.baseName] === undefined) { + throw new Error(`missing required property '${attributeObj.baseName}'`); } } @@ -4877,70 +3916,51 @@ export class ObjectSerializer { } } - public static deserialize(data: any, type: string, format = ""): any { + public static deserialize(data: any, type: string, format: string = ""): any { if (data == undefined || type == "any") { return data; - } else if ( - primitives.includes(type.toLowerCase()) && - typeof data == type.toLowerCase() - ) { + } else if (primitives.includes(type.toLowerCase()) && typeof data == type.toLowerCase()) { return data; } else if (type.startsWith(ARRAY_PREFIX)) { // Assert the passed data is Array type if (!Array.isArray(data)) { - throw new TypeError(`mismatch types '${data}' and '${type}'`); + throw new TypeError(`mismatch types '${data}' and '${type}'`); } // Array => Type - const subType: string = type.substring( - ARRAY_PREFIX.length, - type.length - 1 - ); + const subType: string = type.substring(ARRAY_PREFIX.length, type.length - 1); const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.deserialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.deserialize(element, subType, format)); } return transformedData; } else if (type.startsWith(TUPLE_PREFIX)) { // [Type,...] => Type - const subType: string = type - .substring(TUPLE_PREFIX.length, type.length - 1) - .split(", ")[0]; + const subType: string = type.substring(TUPLE_PREFIX.length, type.length - 1).split(", ")[0]; const transformedData: any[] = []; for (const element of data) { - transformedData.push( - ObjectSerializer.deserialize(element, subType, format) - ); + transformedData.push(ObjectSerializer.deserialize(element, subType, format)); } return transformedData; } else if (type.startsWith(MAP_PREFIX)) { // { [key: string]: Type; } => Type - const subType: string = type.substring( - MAP_PREFIX.length, - type.length - 3 - ); + const subType: string = type.substring(MAP_PREFIX.length, type.length - 3); const transformedData: { [key: string]: any } = {}; for (const key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format - ); + transformedData[key] = ObjectSerializer.deserialize(data[key], subType, format); } return transformedData; } else if (type === "Date") { try { - return dateFromRFC3339String(data); + return dateFromRFC3339String(data) } catch { - return new Date(data); + return new Date(data) } } else { if (enumsMap[type]) { if (enumsMap[type].includes(data)) { return data; } - return new UnparsedObject(data); + return new UnparsedObject(data) } if (oneOfMap[type]) { const oneOfs: any[] = []; @@ -4951,8 +3971,9 @@ export class ObjectSerializer { oneOfs.push(d); } } catch (e) { - logger.debug(`could not deserialize ${oneOf} (${e})`); + logger.debug(`could not deserialize ${oneOf} (${e})`) } + } if (oneOfs.length != 1) { return new UnparsedObject(data); @@ -4960,8 +3981,7 @@ export class ObjectSerializer { return oneOfs[0]; } - if (!typeMap[type]) { - // dont know the type + if (!typeMap[type]) { // dont know the type throw new TypeError(`unknown type '${type}'`); } @@ -4972,28 +3992,27 @@ export class ObjectSerializer { {} ); const extraAttributes = Object.keys(data).filter( - (key) => !Object.prototype.hasOwnProperty.call(attributesBaseNames, key) + (key) => + !Object.prototype.hasOwnProperty.call(attributesBaseNames, key) ); if (extraAttributes.length > 0) { if ("additionalProperties" in attributesMap) { - if (!instance.additionalProperties) { - instance.additionalProperties = {}; - } + if (!instance.additionalProperties) { + instance.additionalProperties = {}; + } - const attributeObj = attributesMap["additionalProperties"]; - for (const key in extraAttributes) { - instance.additionalProperties[extraAttributes[key]] = - ObjectSerializer.deserialize( - data[extraAttributes[key]], - attributeObj.type, - attributeObj.format - ); - } + const attributeObj = attributesMap["additionalProperties"]; + for (const key in extraAttributes) { + instance.additionalProperties[extraAttributes[key]] = + ObjectSerializer.deserialize( + data[extraAttributes[key]], + attributeObj.type, + attributeObj.format + ); + } } else { - throw new Error( - `found extra attributes '${extraAttributes}' in ${type}` - ); + throw new Error(`found extra attributes '${extraAttributes}' in ${type}`); } } @@ -5003,29 +4022,22 @@ export class ObjectSerializer { continue; } - instance[attributeName] = ObjectSerializer.deserialize( - data[attributeObj.baseName], - attributeObj.type, - attributeObj.format - ); + instance[attributeName] = ObjectSerializer.deserialize(data[attributeObj.baseName], attributeObj.type, attributeObj.format); // check for required properties if (attributeObj?.required && instance[attributeName] === undefined) { throw new Error(`missing required property '${attributeName}'`); } - if ( - instance[attributeName] instanceof UnparsedObject || - instance[attributeName]?._unparsed - ) { - instance._unparsed = true; + if (instance[attributeName] instanceof UnparsedObject || instance[attributeName]?._unparsed) { + instance._unparsed = true } if (Array.isArray(instance[attributeName])) { for (const d of instance[attributeName]) { if (d instanceof UnparsedObject || d?._unparsed) { - instance._unparsed = true; - break; + instance._unparsed = true + break } } } @@ -5035,15 +4047,14 @@ export class ObjectSerializer { } } + /** * Normalize media type * * We currently do not handle any media types attributes, i.e. anything * after a semicolon. All content is assumed to be UTF-8 compatible. */ - public static normalizeMediaType( - mediaType: string | undefined - ): string | undefined { + public static normalizeMediaType(mediaType: string | undefined): string | undefined { if (mediaType === undefined) { return undefined; } @@ -5064,12 +4075,12 @@ export class ObjectSerializer { const normalMediaTypes = mediaTypes.map(this.normalizeMediaType); let selectedMediaType: string | undefined = undefined; - let selectedRank = -Infinity; + let selectedRank: number = -Infinity; for (const mediaType of normalMediaTypes) { if (mediaType === undefined) { continue; } - const supported = supportedMediaTypes[mediaType]; + let supported = supportedMediaTypes[mediaType]; if (supported !== undefined && supported > selectedRank) { selectedMediaType = mediaType; selectedRank = supported; @@ -5077,9 +4088,7 @@ export class ObjectSerializer { } if (selectedMediaType === undefined) { - throw new Error( - "None of the given media types are supported: " + mediaTypes.join(", ") - ); + throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); } return selectedMediaType; @@ -5093,11 +4102,7 @@ export class ObjectSerializer { return JSON.stringify(data); } - throw new Error( - "The mediaType " + - mediaType + - " is not supported by ObjectSerializer.stringify." - ); + throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); } /** @@ -5111,4 +4116,4 @@ export class ObjectSerializer { return rawData; } } -} +} \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OktaAccount.ts b/packages/datadog-api-client-v2/models/OktaAccount.ts index 57417a46c5f6..f54ed5035b28 100644 --- a/packages/datadog-api-client-v2/models/OktaAccount.ts +++ b/packages/datadog-api-client-v2/models/OktaAccount.ts @@ -6,23 +6,28 @@ import { OktaAccountAttributes } from "./OktaAccountAttributes"; import { OktaAccountType } from "./OktaAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for an Okta account. - */ +*/ export class OktaAccount { /** * Attributes object for an Okta account. - */ + */ "attributes": OktaAccountAttributes; /** * The ID of the Okta account, a UUID hash of the account name. - */ + */ "id"?: string; /** * Account type for an Okta account. - */ + */ "type": OktaAccountType; /** @@ -41,32 +46,58 @@ export class OktaAccount { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OktaAccountAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "OktaAccountAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OktaAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OktaAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccount.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountAttributes.ts b/packages/datadog-api-client-v2/models/OktaAccountAttributes.ts index d511a502cb43..60736da3bceb 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountAttributes.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountAttributes.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for an Okta account. - */ +*/ export class OktaAccountAttributes { /** * The API key of the Okta account. - */ + */ "apiKey"?: string; /** * The authorization method for an Okta account. - */ + */ "authMethod": string; /** * The Client ID of an Okta app integration. - */ + */ "clientId"?: string; /** * The client secret of an Okta app integration. - */ + */ "clientSecret"?: string; /** * The domain of the Okta account. - */ + */ "domain": string; /** * The name of the Okta account. - */ + */ "name": string; /** @@ -51,45 +56,71 @@ export class OktaAccountAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", - }, - authMethod: { - baseName: "auth_method", - type: "string", - required: true, + "apiKey": { + "baseName": "api_key", + "type": "string", }, - clientId: { - baseName: "client_id", - type: "string", + "authMethod": { + "baseName": "auth_method", + "type": "string", + "required": true, }, - clientSecret: { - baseName: "client_secret", - type: "string", + "clientId": { + "baseName": "client_id", + "type": "string", }, - domain: { - baseName: "domain", - type: "string", - required: true, + "clientSecret": { + "baseName": "client_secret", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "domain": { + "baseName": "domain", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountRequest.ts b/packages/datadog-api-client-v2/models/OktaAccountRequest.ts index 5ea76886f7b5..a83333dbbd45 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountRequest.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountRequest.ts @@ -5,15 +5,20 @@ */ import { OktaAccount } from "./OktaAccount"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object for an Okta account. - */ +*/ export class OktaAccountRequest { /** * Schema for an Okta account. - */ + */ "data": OktaAccount; /** @@ -32,23 +37,49 @@ export class OktaAccountRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OktaAccount", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OktaAccount", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountResponse.ts b/packages/datadog-api-client-v2/models/OktaAccountResponse.ts index 892bc97ed325..439d54e2fcd0 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountResponse.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountResponse.ts @@ -5,15 +5,20 @@ */ import { OktaAccount } from "./OktaAccount"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object for an Okta account. - */ +*/ export class OktaAccountResponse { /** * Schema for an Okta account. - */ + */ "data"?: OktaAccount; /** @@ -32,22 +37,48 @@ export class OktaAccountResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OktaAccount", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OktaAccount", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountResponseData.ts b/packages/datadog-api-client-v2/models/OktaAccountResponseData.ts index 2972a6914f22..6a133afe9c8e 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountResponseData.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountResponseData.ts @@ -6,23 +6,28 @@ import { OktaAccountAttributes } from "./OktaAccountAttributes"; import { OktaAccountType } from "./OktaAccountType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object of an Okta account - */ +*/ export class OktaAccountResponseData { /** * Attributes object for an Okta account. - */ + */ "attributes": OktaAccountAttributes; /** * The ID of the Okta account, a UUID hash of the account name. - */ + */ "id": string; /** * Account type for an Okta account. - */ + */ "type": OktaAccountType; /** @@ -41,33 +46,59 @@ export class OktaAccountResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OktaAccountAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "OktaAccountAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OktaAccountType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OktaAccountType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountType.ts b/packages/datadog-api-client-v2/models/OktaAccountType.ts index b0c67c4a07c2..e4c8b403bf51 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountType.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Account type for an Okta account. - */ +*/ export type OktaAccountType = typeof OKTA_ACCOUNTS | UnparsedObject; -export const OKTA_ACCOUNTS = "okta-accounts"; +export const OKTA_ACCOUNTS = 'okta-accounts'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.ts b/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.ts index 0690c7bcb5d6..49d97e39674b 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { OktaAccountUpdateRequestData } from "./OktaAccountUpdateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload schema when updating an Okta account. - */ +*/ export class OktaAccountUpdateRequest { /** * Data object for updating an Okta account. - */ + */ "data": OktaAccountUpdateRequestData; /** @@ -32,23 +37,49 @@ export class OktaAccountUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OktaAccountUpdateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OktaAccountUpdateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.ts index 36e73d582bde..f546ea367333 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes object for updating an Okta account. - */ +*/ export class OktaAccountUpdateRequestAttributes { /** * The API key of the Okta account. - */ + */ "apiKey"?: string; /** * The authorization method for an Okta account. - */ + */ "authMethod": string; /** * The Client ID of an Okta app integration. - */ + */ "clientId"?: string; /** * The client secret of an Okta app integration. - */ + */ "clientSecret"?: string; /** * The domain associated with an Okta account. - */ + */ "domain": string; /** @@ -47,40 +52,66 @@ export class OktaAccountUpdateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - apiKey: { - baseName: "api_key", - type: "string", + "apiKey": { + "baseName": "api_key", + "type": "string", }, - authMethod: { - baseName: "auth_method", - type: "string", - required: true, + "authMethod": { + "baseName": "auth_method", + "type": "string", + "required": true, }, - clientId: { - baseName: "client_id", - type: "string", + "clientId": { + "baseName": "client_id", + "type": "string", }, - clientSecret: { - baseName: "client_secret", - type: "string", + "clientSecret": { + "baseName": "client_secret", + "type": "string", }, - domain: { - baseName: "domain", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "domain": { + "baseName": "domain", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountUpdateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.ts index 6f00b48a0ff9..395fd33e2213 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.ts @@ -6,19 +6,24 @@ import { OktaAccountType } from "./OktaAccountType"; import { OktaAccountUpdateRequestAttributes } from "./OktaAccountUpdateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data object for updating an Okta account. - */ +*/ export class OktaAccountUpdateRequestData { /** * Attributes object for updating an Okta account. - */ + */ "attributes"?: OktaAccountUpdateRequestAttributes; /** * Account type for an Okta account. - */ + */ "type"?: OktaAccountType; /** @@ -37,26 +42,52 @@ export class OktaAccountUpdateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OktaAccountUpdateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "OktaAccountUpdateRequestAttributes", }, - type: { - baseName: "type", - type: "OktaAccountType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OktaAccountType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountUpdateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OktaAccountsResponse.ts b/packages/datadog-api-client-v2/models/OktaAccountsResponse.ts index 6611e33a3e3d..b0ab56613e30 100644 --- a/packages/datadog-api-client-v2/models/OktaAccountsResponse.ts +++ b/packages/datadog-api-client-v2/models/OktaAccountsResponse.ts @@ -5,15 +5,20 @@ */ import { OktaAccountResponseData } from "./OktaAccountResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The expected response schema when getting Okta accounts. - */ +*/ export class OktaAccountsResponse { /** * List of Okta accounts. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class OktaAccountsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OktaAccountsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.ts b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.ts index f61f0ac29bb4..65acce9c950d 100644 --- a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.ts +++ b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.ts @@ -6,19 +6,24 @@ import { OnDemandConcurrencyCapAttributes } from "./OnDemandConcurrencyCapAttributes"; import { OnDemandConcurrencyCapType } from "./OnDemandConcurrencyCapType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * On-demand concurrency cap. - */ +*/ export class OnDemandConcurrencyCap { /** * On-demand concurrency cap attributes. - */ + */ "attributes"?: OnDemandConcurrencyCapAttributes; /** * On-demand concurrency cap type. - */ + */ "type"?: OnDemandConcurrencyCapType; /** @@ -37,26 +42,52 @@ export class OnDemandConcurrencyCap { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OnDemandConcurrencyCapAttributes", + "attributes": { + "baseName": "attributes", + "type": "OnDemandConcurrencyCapAttributes", }, - type: { - baseName: "type", - type: "OnDemandConcurrencyCapType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OnDemandConcurrencyCapType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OnDemandConcurrencyCap.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.ts b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.ts index 3477cbc15bb6..effd30d3cf9a 100644 --- a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.ts +++ b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * On-demand concurrency cap attributes. - */ +*/ export class OnDemandConcurrencyCapAttributes { /** * Value of the on-demand concurrency cap. - */ + */ "onDemandConcurrencyCap"?: number; /** @@ -31,23 +36,49 @@ export class OnDemandConcurrencyCapAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - onDemandConcurrencyCap: { - baseName: "on_demand_concurrency_cap", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "onDemandConcurrencyCap": { + "baseName": "on_demand_concurrency_cap", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OnDemandConcurrencyCapAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.ts b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.ts index 580453400959..62117d88d2c7 100644 --- a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.ts +++ b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.ts @@ -5,15 +5,20 @@ */ import { OnDemandConcurrencyCap } from "./OnDemandConcurrencyCap"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * On-demand concurrency cap response. - */ +*/ export class OnDemandConcurrencyCapResponse { /** * On-demand concurrency cap. - */ + */ "data"?: OnDemandConcurrencyCap; /** @@ -32,22 +37,48 @@ export class OnDemandConcurrencyCapResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OnDemandConcurrencyCap", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OnDemandConcurrencyCap", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OnDemandConcurrencyCapResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapType.ts b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapType.ts index 335b94bc88b3..7b36897e0412 100644 --- a/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapType.ts +++ b/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * On-demand concurrency cap type. - */ +*/ -export type OnDemandConcurrencyCapType = - | typeof ON_DEMAND_CONCURRENCY_CAP - | UnparsedObject; -export const ON_DEMAND_CONCURRENCY_CAP = "on_demand_concurrency_cap"; +export type OnDemandConcurrencyCapType = typeof ON_DEMAND_CONCURRENCY_CAP | UnparsedObject; +export const ON_DEMAND_CONCURRENCY_CAP = 'on_demand_concurrency_cap'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OpenAPIEndpoint.ts b/packages/datadog-api-client-v2/models/OpenAPIEndpoint.ts index c12698d7c107..4046843102a3 100644 --- a/packages/datadog-api-client-v2/models/OpenAPIEndpoint.ts +++ b/packages/datadog-api-client-v2/models/OpenAPIEndpoint.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Endpoint info extracted from an `OpenAPI` specification. - */ +*/ export class OpenAPIEndpoint { /** * The endpoint method. - */ + */ "method"?: string; /** * The endpoint path. - */ + */ "path"?: string; /** @@ -35,26 +40,52 @@ export class OpenAPIEndpoint { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - method: { - baseName: "method", - type: "string", + "method": { + "baseName": "method", + "type": "string", }, - path: { - baseName: "path", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpenAPIEndpoint.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpenAPIFile.ts b/packages/datadog-api-client-v2/models/OpenAPIFile.ts index 92905faec512..8b6982439dd2 100644 --- a/packages/datadog-api-client-v2/models/OpenAPIFile.ts +++ b/packages/datadog-api-client-v2/models/OpenAPIFile.ts @@ -8,13 +8,16 @@ import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for API data in an `OpenAPI` format as a file. - */ +*/ export class OpenAPIFile { /** * Binary `OpenAPI` spec file - */ + */ "openapiSpecFile"?: HttpFile; /** @@ -33,23 +36,49 @@ export class OpenAPIFile { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - openapiSpecFile: { - baseName: "openapi_spec_file", - type: "HttpFile", - format: "binary", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "openapiSpecFile": { + "baseName": "openapi_spec_file", + "type": "HttpFile", + "format": "binary", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpenAPIFile.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceCreateAttributes.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceCreateAttributes.ts index 6463d06ba7d4..1125d27e35b6 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceCreateAttributes.ts @@ -5,27 +5,32 @@ */ import { OpsgenieServiceRegionType } from "./OpsgenieServiceRegionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Opsgenie service attributes for a create request. - */ +*/ export class OpsgenieServiceCreateAttributes { /** * The custom URL for a custom region. - */ + */ "customUrl"?: string; /** * The name for the Opsgenie service. - */ + */ "name": string; /** * The Opsgenie API key for your Opsgenie service. - */ + */ "opsgenieApiKey": string; /** * The region for the Opsgenie service. - */ + */ "region": OpsgenieServiceRegionType; /** @@ -44,37 +49,63 @@ export class OpsgenieServiceCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customUrl: { - baseName: "custom_url", - type: "string", + "customUrl": { + "baseName": "custom_url", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - opsgenieApiKey: { - baseName: "opsgenie_api_key", - type: "string", - required: true, + "opsgenieApiKey": { + "baseName": "opsgenie_api_key", + "type": "string", + "required": true, }, - region: { - baseName: "region", - type: "OpsgenieServiceRegionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "OpsgenieServiceRegionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceCreateData.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceCreateData.ts index 2d4700a68a7d..0792b951c3eb 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceCreateData.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceCreateData.ts @@ -6,19 +6,24 @@ import { OpsgenieServiceCreateAttributes } from "./OpsgenieServiceCreateAttributes"; import { OpsgenieServiceType } from "./OpsgenieServiceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Opsgenie service data for a create request. - */ +*/ export class OpsgenieServiceCreateData { /** * The Opsgenie service attributes for a create request. - */ + */ "attributes": OpsgenieServiceCreateAttributes; /** * Opsgenie service resource type. - */ + */ "type": OpsgenieServiceType; /** @@ -37,28 +42,54 @@ export class OpsgenieServiceCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OpsgenieServiceCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "OpsgenieServiceCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OpsgenieServiceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OpsgenieServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceCreateRequest.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceCreateRequest.ts index d4ba68bc1ebd..adfefad303ae 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceCreateRequest.ts @@ -5,15 +5,20 @@ */ import { OpsgenieServiceCreateData } from "./OpsgenieServiceCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create request for an Opsgenie service. - */ +*/ export class OpsgenieServiceCreateRequest { /** * Opsgenie service data for a create request. - */ + */ "data": OpsgenieServiceCreateData; /** @@ -32,23 +37,49 @@ export class OpsgenieServiceCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OpsgenieServiceCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OpsgenieServiceCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceRegionType.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceRegionType.ts index 5f516fbe0487..9dae1f56d77b 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceRegionType.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceRegionType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The region for the Opsgenie service. - */ +*/ -export type OpsgenieServiceRegionType = - | typeof US - | typeof EU - | typeof CUSTOM - | UnparsedObject; -export const US = "us"; -export const EU = "eu"; -export const CUSTOM = "custom"; +export type OpsgenieServiceRegionType = typeof US| typeof EU| typeof CUSTOM | UnparsedObject; +export const US = 'us'; +export const EU = 'eu'; +export const CUSTOM = 'custom'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceResponse.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceResponse.ts index 0dd61f2f301c..d754b8775bd5 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceResponse.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceResponse.ts @@ -5,15 +5,20 @@ */ import { OpsgenieServiceResponseData } from "./OpsgenieServiceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response of an Opsgenie service. - */ +*/ export class OpsgenieServiceResponse { /** * Opsgenie service data from a response. - */ + */ "data": OpsgenieServiceResponseData; /** @@ -32,23 +37,49 @@ export class OpsgenieServiceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OpsgenieServiceResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OpsgenieServiceResponseData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceResponseAttributes.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceResponseAttributes.ts index b0d1b9a7b5d8..f4cebd11cb69 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceResponseAttributes.ts @@ -5,23 +5,28 @@ */ import { OpsgenieServiceRegionType } from "./OpsgenieServiceRegionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes from an Opsgenie service response. - */ +*/ export class OpsgenieServiceResponseAttributes { /** * The custom URL for a custom region. - */ + */ "customUrl"?: string; /** * The name for the Opsgenie service. - */ + */ "name"?: string; /** * The region for the Opsgenie service. - */ + */ "region"?: OpsgenieServiceRegionType; /** @@ -40,30 +45,56 @@ export class OpsgenieServiceResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customUrl: { - baseName: "custom_url", - type: "string", - }, - name: { - baseName: "name", - type: "string", + "customUrl": { + "baseName": "custom_url", + "type": "string", }, - region: { - baseName: "region", - type: "OpsgenieServiceRegionType", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "OpsgenieServiceRegionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceResponseData.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceResponseData.ts index 3f0fa04a63e9..de879db47a21 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceResponseData.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceResponseData.ts @@ -6,23 +6,28 @@ import { OpsgenieServiceResponseAttributes } from "./OpsgenieServiceResponseAttributes"; import { OpsgenieServiceType } from "./OpsgenieServiceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Opsgenie service data from a response. - */ +*/ export class OpsgenieServiceResponseData { /** * The attributes from an Opsgenie service response. - */ + */ "attributes": OpsgenieServiceResponseAttributes; /** * The ID of the Opsgenie service. - */ + */ "id": string; /** * Opsgenie service resource type. - */ + */ "type": OpsgenieServiceType; /** @@ -41,33 +46,59 @@ export class OpsgenieServiceResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OpsgenieServiceResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "OpsgenieServiceResponseAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OpsgenieServiceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OpsgenieServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceType.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceType.ts index a2a2d557ad90..a8c35966af63 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceType.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Opsgenie service resource type. - */ +*/ export type OpsgenieServiceType = typeof OPSGENIE_SERVICE | UnparsedObject; -export const OPSGENIE_SERVICE = "opsgenie-service"; +export const OPSGENIE_SERVICE = 'opsgenie-service'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateAttributes.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateAttributes.ts index 99dc537b7032..43812396e7ec 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateAttributes.ts @@ -5,27 +5,32 @@ */ import { OpsgenieServiceRegionType } from "./OpsgenieServiceRegionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The Opsgenie service attributes for an update request. - */ +*/ export class OpsgenieServiceUpdateAttributes { /** * The custom URL for a custom region. - */ + */ "customUrl"?: string; /** * The name for the Opsgenie service. - */ + */ "name"?: string; /** * The Opsgenie API key for your Opsgenie service. - */ + */ "opsgenieApiKey"?: string; /** * The region for the Opsgenie service. - */ + */ "region"?: OpsgenieServiceRegionType; /** @@ -44,34 +49,60 @@ export class OpsgenieServiceUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - customUrl: { - baseName: "custom_url", - type: "string", + "customUrl": { + "baseName": "custom_url", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - opsgenieApiKey: { - baseName: "opsgenie_api_key", - type: "string", + "opsgenieApiKey": { + "baseName": "opsgenie_api_key", + "type": "string", }, - region: { - baseName: "region", - type: "OpsgenieServiceRegionType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "OpsgenieServiceRegionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateData.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateData.ts index 80d54867495c..68fb2725f490 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateData.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateData.ts @@ -6,23 +6,28 @@ import { OpsgenieServiceType } from "./OpsgenieServiceType"; import { OpsgenieServiceUpdateAttributes } from "./OpsgenieServiceUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Opsgenie service for an update request. - */ +*/ export class OpsgenieServiceUpdateData { /** * The Opsgenie service attributes for an update request. - */ + */ "attributes": OpsgenieServiceUpdateAttributes; /** * The ID of the Opsgenie service. - */ + */ "id": string; /** * Opsgenie service resource type. - */ + */ "type": OpsgenieServiceType; /** @@ -41,33 +46,59 @@ export class OpsgenieServiceUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OpsgenieServiceUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "OpsgenieServiceUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OpsgenieServiceType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OpsgenieServiceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateRequest.ts b/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateRequest.ts index 9f4b8576d179..5019416c32a6 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServiceUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { OpsgenieServiceUpdateData } from "./OpsgenieServiceUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request for an Opsgenie service. - */ +*/ export class OpsgenieServiceUpdateRequest { /** * Opsgenie service for an update request. - */ + */ "data": OpsgenieServiceUpdateData; /** @@ -32,23 +37,49 @@ export class OpsgenieServiceUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OpsgenieServiceUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OpsgenieServiceUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServiceUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OpsgenieServicesResponse.ts b/packages/datadog-api-client-v2/models/OpsgenieServicesResponse.ts index fa7549c26e99..3a876fd6652f 100644 --- a/packages/datadog-api-client-v2/models/OpsgenieServicesResponse.ts +++ b/packages/datadog-api-client-v2/models/OpsgenieServicesResponse.ts @@ -5,15 +5,20 @@ */ import { OpsgenieServiceResponseData } from "./OpsgenieServiceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a list of Opsgenie services. - */ +*/ export class OpsgenieServicesResponse { /** * An array of Opsgenie services. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class OpsgenieServicesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OpsgenieServicesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrderDirection.ts b/packages/datadog-api-client-v2/models/OrderDirection.ts index 67b29d9ba5ca..d66d5d4c3052 100644 --- a/packages/datadog-api-client-v2/models/OrderDirection.ts +++ b/packages/datadog-api-client-v2/models/OrderDirection.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The sort direction for results. - */ +*/ -export type OrderDirection = typeof ASC | typeof DESC | UnparsedObject; -export const ASC = "asc"; -export const DESC = "desc"; +export type OrderDirection = typeof ASC| typeof DESC | UnparsedObject; +export const ASC = 'asc'; +export const DESC = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OrgConfigGetResponse.ts b/packages/datadog-api-client-v2/models/OrgConfigGetResponse.ts index ba5350de3076..571929067359 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigGetResponse.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigGetResponse.ts @@ -5,15 +5,20 @@ */ import { OrgConfigRead } from "./OrgConfigRead"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A response with a single Org Config. - */ +*/ export class OrgConfigGetResponse { /** * A single Org Config. - */ + */ "data": OrgConfigRead; /** @@ -32,23 +37,49 @@ export class OrgConfigGetResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OrgConfigRead", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OrgConfigRead", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigGetResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrgConfigListResponse.ts b/packages/datadog-api-client-v2/models/OrgConfigListResponse.ts index 0c25cee15197..aaced94c3b35 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigListResponse.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigListResponse.ts @@ -5,15 +5,20 @@ */ import { OrgConfigRead } from "./OrgConfigRead"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A response with multiple Org Configs. - */ +*/ export class OrgConfigListResponse { /** * An array of Org Configs. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class OrgConfigListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrgConfigRead.ts b/packages/datadog-api-client-v2/models/OrgConfigRead.ts index 13cb5d5f7989..e2566d314c65 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigRead.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigRead.ts @@ -6,23 +6,28 @@ import { OrgConfigReadAttributes } from "./OrgConfigReadAttributes"; import { OrgConfigType } from "./OrgConfigType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single Org Config. - */ +*/ export class OrgConfigRead { /** * Readable attributes of an Org Config. - */ + */ "attributes": OrgConfigReadAttributes; /** * A unique identifier for an Org Config. - */ + */ "id": string; /** * Data type of an Org Config. - */ + */ "type": OrgConfigType; /** @@ -41,33 +46,59 @@ export class OrgConfigRead { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OrgConfigReadAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "OrgConfigReadAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OrgConfigType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OrgConfigType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigRead.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrgConfigReadAttributes.ts b/packages/datadog-api-client-v2/models/OrgConfigReadAttributes.ts index 270188e6ab46..e0d2b7ecc409 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigReadAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigReadAttributes.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Readable attributes of an Org Config. - */ +*/ export class OrgConfigReadAttributes { /** * The description of an Org Config. - */ + */ "description": string; /** * The timestamp of the last Org Config update (if any). - */ + */ "modifiedAt"?: Date; /** * The machine-friendly name of an Org Config. - */ + */ "name": string; /** * The value of an Org Config. - */ + */ "value": any; /** * The type of an Org Config value. - */ + */ "valueType": string; /** @@ -47,43 +52,69 @@ export class OrgConfigReadAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - required: true, + "description": { + "baseName": "description", + "type": "string", + "required": true, }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "any", - required: true, + "value": { + "baseName": "value", + "type": "any", + "required": true, }, - valueType: { - baseName: "value_type", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "valueType": { + "baseName": "value_type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigReadAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrgConfigType.ts b/packages/datadog-api-client-v2/models/OrgConfigType.ts index 3ac835ac3784..d430f4d61fc3 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigType.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Data type of an Org Config. - */ +*/ export type OrgConfigType = typeof ORG_CONFIGS | UnparsedObject; -export const ORG_CONFIGS = "org_configs"; +export const ORG_CONFIGS = 'org_configs'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OrgConfigWrite.ts b/packages/datadog-api-client-v2/models/OrgConfigWrite.ts index e421c48c1832..3ed629e0464a 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigWrite.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigWrite.ts @@ -6,19 +6,24 @@ import { OrgConfigType } from "./OrgConfigType"; import { OrgConfigWriteAttributes } from "./OrgConfigWriteAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An Org Config write operation. - */ +*/ export class OrgConfigWrite { /** * Writable attributes of an Org Config. - */ + */ "attributes": OrgConfigWriteAttributes; /** * Data type of an Org Config. - */ + */ "type": OrgConfigType; /** @@ -37,28 +42,54 @@ export class OrgConfigWrite { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OrgConfigWriteAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "OrgConfigWriteAttributes", + "required": true, }, - type: { - baseName: "type", - type: "OrgConfigType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OrgConfigType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigWrite.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrgConfigWriteAttributes.ts b/packages/datadog-api-client-v2/models/OrgConfigWriteAttributes.ts index c9393d1bcca7..61f834a3f3b1 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigWriteAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigWriteAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Writable attributes of an Org Config. - */ +*/ export class OrgConfigWriteAttributes { /** * The value of an Org Config. - */ + */ "value": any; /** @@ -31,23 +36,49 @@ export class OrgConfigWriteAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - value: { - baseName: "value", - type: "any", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "any", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigWriteAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrgConfigWriteRequest.ts b/packages/datadog-api-client-v2/models/OrgConfigWriteRequest.ts index 825958eb74df..0da25a3e1430 100644 --- a/packages/datadog-api-client-v2/models/OrgConfigWriteRequest.ts +++ b/packages/datadog-api-client-v2/models/OrgConfigWriteRequest.ts @@ -5,15 +5,20 @@ */ import { OrgConfigWrite } from "./OrgConfigWrite"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request to update an Org Config. - */ +*/ export class OrgConfigWriteRequest { /** * An Org Config write operation. - */ + */ "data": OrgConfigWrite; /** @@ -32,23 +37,49 @@ export class OrgConfigWriteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OrgConfigWrite", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OrgConfigWrite", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrgConfigWriteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Organization.ts b/packages/datadog-api-client-v2/models/Organization.ts index 3308fc63732d..cd1dd7e2ffcb 100644 --- a/packages/datadog-api-client-v2/models/Organization.ts +++ b/packages/datadog-api-client-v2/models/Organization.ts @@ -6,23 +6,28 @@ import { OrganizationAttributes } from "./OrganizationAttributes"; import { OrganizationsType } from "./OrganizationsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Organization object. - */ +*/ export class Organization { /** * Attributes of the organization. - */ + */ "attributes"?: OrganizationAttributes; /** * ID of the organization. - */ + */ "id"?: string; /** * Organizations resource type. - */ + */ "type": OrganizationsType; /** @@ -41,31 +46,57 @@ export class Organization { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OrganizationAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "OrganizationAttributes", }, - type: { - baseName: "type", - type: "OrganizationsType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OrganizationsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Organization.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrganizationAttributes.ts b/packages/datadog-api-client-v2/models/OrganizationAttributes.ts index 07d789943a11..f9d6d9ad60fb 100644 --- a/packages/datadog-api-client-v2/models/OrganizationAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrganizationAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the organization. - */ +*/ export class OrganizationAttributes { /** * Creation time of the organization. - */ + */ "createdAt"?: Date; /** * Description of the organization. - */ + */ "description"?: string; /** * Whether or not the organization is disabled. - */ + */ "disabled"?: boolean; /** * Time of last organization modification. - */ + */ "modifiedAt"?: Date; /** * Name of the organization. - */ + */ "name"?: string; /** * Public ID of the organization. - */ + */ "publicId"?: string; /** * Sharing type of the organization. - */ + */ "sharing"?: string; /** * URL of the site that this organization exists at. - */ + */ "url"?: string; /** @@ -59,52 +64,78 @@ export class OrganizationAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - disabled: { - baseName: "disabled", - type: "boolean", + "disabled": { + "baseName": "disabled", + "type": "boolean", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - sharing: { - baseName: "sharing", - type: "string", + "sharing": { + "baseName": "sharing", + "type": "string", }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OrganizationAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OrganizationsType.ts b/packages/datadog-api-client-v2/models/OrganizationsType.ts index 722ab97eca46..f25b5b99b2f1 100644 --- a/packages/datadog-api-client-v2/models/OrganizationsType.ts +++ b/packages/datadog-api-client-v2/models/OrganizationsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Organizations resource type. - */ +*/ export type OrganizationsType = typeof ORGS | UnparsedObject; -export const ORGS = "orgs"; +export const ORGS = 'orgs'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OutboundEdge.ts b/packages/datadog-api-client-v2/models/OutboundEdge.ts index c4aa4e68db5e..c9098bec2117 100644 --- a/packages/datadog-api-client-v2/models/OutboundEdge.ts +++ b/packages/datadog-api-client-v2/models/OutboundEdge.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `OutboundEdge` object. - */ +*/ export class OutboundEdge { /** * The `OutboundEdge` `branchName`. - */ + */ "branchName": string; /** * The `OutboundEdge` `nextStepName`. - */ + */ "nextStepName": string; /** @@ -35,28 +40,54 @@ export class OutboundEdge { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - branchName: { - baseName: "branchName", - type: "string", - required: true, + "branchName": { + "baseName": "branchName", + "type": "string", + "required": true, }, - nextStepName: { - baseName: "nextStepName", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "nextStepName": { + "baseName": "nextStepName", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutboundEdge.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomeType.ts b/packages/datadog-api-client-v2/models/OutcomeType.ts index 2c4f8e691784..4e7349f62f82 100644 --- a/packages/datadog-api-client-v2/models/OutcomeType.ts +++ b/packages/datadog-api-client-v2/models/OutcomeType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for an outcome. - */ +*/ export type OutcomeType = typeof OUTCOME | UnparsedObject; -export const OUTCOME = "outcome"; +export const OUTCOME = 'outcome'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchAttributes.ts b/packages/datadog-api-client-v2/models/OutcomesBatchAttributes.ts index 8c0097b78ff7..d2d0a3a6050b 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchAttributes.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchAttributes.ts @@ -5,15 +5,20 @@ */ import { OutcomesBatchRequestItem } from "./OutcomesBatchRequestItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes for a batched set of scorecard outcomes. - */ +*/ export class OutcomesBatchAttributes { /** * Set of scorecard outcomes to update. - */ + */ "results"?: Array; /** @@ -32,22 +37,48 @@ export class OutcomesBatchAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - results: { - baseName: "results", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "results": { + "baseName": "results", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchRequest.ts b/packages/datadog-api-client-v2/models/OutcomesBatchRequest.ts index 7e73cf4e84f9..b678af3591e2 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchRequest.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchRequest.ts @@ -5,15 +5,20 @@ */ import { OutcomesBatchRequestData } from "./OutcomesBatchRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard outcomes batch request. - */ +*/ export class OutcomesBatchRequest { /** * Scorecard outcomes batch request data. - */ + */ "data"?: OutcomesBatchRequestData; /** @@ -32,22 +37,48 @@ export class OutcomesBatchRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "OutcomesBatchRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "OutcomesBatchRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchRequestData.ts b/packages/datadog-api-client-v2/models/OutcomesBatchRequestData.ts index 03c8c838ba95..13c6b8f83b1e 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchRequestData.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchRequestData.ts @@ -6,19 +6,24 @@ import { OutcomesBatchAttributes } from "./OutcomesBatchAttributes"; import { OutcomesBatchType } from "./OutcomesBatchType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard outcomes batch request data. - */ +*/ export class OutcomesBatchRequestData { /** * The JSON:API attributes for a batched set of scorecard outcomes. - */ + */ "attributes"?: OutcomesBatchAttributes; /** * The JSON:API type for scorecard outcomes. - */ + */ "type"?: OutcomesBatchType; /** @@ -37,26 +42,52 @@ export class OutcomesBatchRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OutcomesBatchAttributes", + "attributes": { + "baseName": "attributes", + "type": "OutcomesBatchAttributes", }, - type: { - baseName: "type", - type: "OutcomesBatchType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OutcomesBatchType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchRequestItem.ts b/packages/datadog-api-client-v2/models/OutcomesBatchRequestItem.ts index 9270970187ed..277acb51ddc5 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchRequestItem.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchRequestItem.ts @@ -5,27 +5,32 @@ */ import { State } from "./State"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard outcome for a specific rule, for a given service within a batched update. - */ +*/ export class OutcomesBatchRequestItem { /** * Any remarks regarding the scorecard rule's evaluation, and supports HTML hyperlinks. - */ + */ "remarks"?: string; /** * The unique ID for a scorecard rule. - */ + */ "ruleId": string; /** * The unique name for a service in the catalog. - */ + */ "serviceName": string; /** * The state of the rule evaluation. - */ + */ "state": State; /** @@ -44,37 +49,63 @@ export class OutcomesBatchRequestItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - remarks: { - baseName: "remarks", - type: "string", + "remarks": { + "baseName": "remarks", + "type": "string", }, - ruleId: { - baseName: "rule_id", - type: "string", - required: true, + "ruleId": { + "baseName": "rule_id", + "type": "string", + "required": true, }, - serviceName: { - baseName: "service_name", - type: "string", - required: true, + "serviceName": { + "baseName": "service_name", + "type": "string", + "required": true, }, - state: { - baseName: "state", - type: "State", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "state": { + "baseName": "state", + "type": "State", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchRequestItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchResponse.ts b/packages/datadog-api-client-v2/models/OutcomesBatchResponse.ts index 54e682718bc4..9b871d13e7e5 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchResponse.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchResponse.ts @@ -6,19 +6,24 @@ import { OutcomesBatchResponseMeta } from "./OutcomesBatchResponseMeta"; import { OutcomesResponseDataItem } from "./OutcomesResponseDataItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard outcomes batch response. - */ +*/ export class OutcomesBatchResponse { /** * List of rule outcomes which were affected during the bulk operation. - */ + */ "data": Array; /** * Metadata pertaining to the bulk operation. - */ + */ "meta": OutcomesBatchResponseMeta; /** @@ -37,28 +42,54 @@ export class OutcomesBatchResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, - meta: { - baseName: "meta", - type: "OutcomesBatchResponseMeta", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "OutcomesBatchResponseMeta", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchResponseAttributes.ts b/packages/datadog-api-client-v2/models/OutcomesBatchResponseAttributes.ts index 93bc0e35e8c4..968213ae1243 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchResponseAttributes.ts @@ -5,31 +5,36 @@ */ import { State } from "./State"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes for an outcome. - */ +*/ export class OutcomesBatchResponseAttributes { /** * Creation time of the rule outcome. - */ + */ "createdAt"?: Date; /** * Time of last rule outcome modification. - */ + */ "modifiedAt"?: Date; /** * Any remarks regarding the scorecard rule's evaluation, and supports HTML hyperlinks. - */ + */ "remarks"?: string; /** * The unique name for a service in the catalog. - */ + */ "serviceName"?: string; /** * The state of the rule evaluation. - */ + */ "state"?: State; /** @@ -48,40 +53,66 @@ export class OutcomesBatchResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - remarks: { - baseName: "remarks", - type: "string", + "remarks": { + "baseName": "remarks", + "type": "string", }, - serviceName: { - baseName: "service_name", - type: "string", + "serviceName": { + "baseName": "service_name", + "type": "string", }, - state: { - baseName: "state", - type: "State", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "state": { + "baseName": "state", + "type": "State", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchResponseMeta.ts b/packages/datadog-api-client-v2/models/OutcomesBatchResponseMeta.ts index 7e5d66d56428..54c25a8d27b8 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchResponseMeta.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata pertaining to the bulk operation. - */ +*/ export class OutcomesBatchResponseMeta { /** * Total number of scorecard results received during the bulk operation. - */ + */ "totalReceived"?: number; /** * Total number of scorecard results modified during the bulk operation. - */ + */ "totalUpdated"?: number; /** @@ -35,28 +40,54 @@ export class OutcomesBatchResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalReceived: { - baseName: "total_received", - type: "number", - format: "int64", + "totalReceived": { + "baseName": "total_received", + "type": "number", + "format": "int64", }, - totalUpdated: { - baseName: "total_updated", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalUpdated": { + "baseName": "total_updated", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesBatchResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesBatchType.ts b/packages/datadog-api-client-v2/models/OutcomesBatchType.ts index 7df450255cee..cbc1ea8b7024 100644 --- a/packages/datadog-api-client-v2/models/OutcomesBatchType.ts +++ b/packages/datadog-api-client-v2/models/OutcomesBatchType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for scorecard outcomes. - */ +*/ export type OutcomesBatchType = typeof BATCHED_OUTCOME | UnparsedObject; -export const BATCHED_OUTCOME = "batched-outcome"; +export const BATCHED_OUTCOME = 'batched-outcome'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/OutcomesResponse.ts b/packages/datadog-api-client-v2/models/OutcomesResponse.ts index dab1eef456d1..3d80329e1fe4 100644 --- a/packages/datadog-api-client-v2/models/OutcomesResponse.ts +++ b/packages/datadog-api-client-v2/models/OutcomesResponse.ts @@ -7,23 +7,28 @@ import { OutcomesResponseDataItem } from "./OutcomesResponseDataItem"; import { OutcomesResponseIncludedItem } from "./OutcomesResponseIncludedItem"; import { OutcomesResponseLinks } from "./OutcomesResponseLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard outcomes - the result of a rule for a service. - */ +*/ export class OutcomesResponse { /** * List of rule outcomes. - */ + */ "data"?: Array; /** * Array of rule details. - */ + */ "included"?: Array; /** * Links attributes. - */ + */ "links"?: OutcomesResponseLinks; /** @@ -42,30 +47,56 @@ export class OutcomesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - links: { - baseName: "links", - type: "OutcomesResponseLinks", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "links": { + "baseName": "links", + "type": "OutcomesResponseLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesResponseDataItem.ts b/packages/datadog-api-client-v2/models/OutcomesResponseDataItem.ts index 9a57c770290a..7182e7864337 100644 --- a/packages/datadog-api-client-v2/models/OutcomesResponseDataItem.ts +++ b/packages/datadog-api-client-v2/models/OutcomesResponseDataItem.ts @@ -7,27 +7,32 @@ import { OutcomesBatchResponseAttributes } from "./OutcomesBatchResponseAttribut import { OutcomeType } from "./OutcomeType"; import { RuleOutcomeRelationships } from "./RuleOutcomeRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single rule outcome. - */ +*/ export class OutcomesResponseDataItem { /** * The JSON:API attributes for an outcome. - */ + */ "attributes"?: OutcomesBatchResponseAttributes; /** * The unique ID for a rule outcome. - */ + */ "id"?: string; /** * The JSON:API relationship to a scorecard rule. - */ + */ "relationships"?: RuleOutcomeRelationships; /** * The JSON:API type for an outcome. - */ + */ "type"?: OutcomeType; /** @@ -46,34 +51,60 @@ export class OutcomesResponseDataItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OutcomesBatchResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "OutcomesBatchResponseAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RuleOutcomeRelationships", + "relationships": { + "baseName": "relationships", + "type": "RuleOutcomeRelationships", }, - type: { - baseName: "type", - type: "OutcomeType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OutcomeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesResponseDataItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/OutcomesResponseIncludedItem.ts index 681abc10105e..7d9e1cce3bf2 100644 --- a/packages/datadog-api-client-v2/models/OutcomesResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/OutcomesResponseIncludedItem.ts @@ -6,23 +6,28 @@ import { OutcomesResponseIncludedRuleAttributes } from "./OutcomesResponseIncludedRuleAttributes"; import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the included rule. - */ +*/ export class OutcomesResponseIncludedItem { /** * Details of a rule. - */ + */ "attributes"?: OutcomesResponseIncludedRuleAttributes; /** * The unique ID for a scorecard rule. - */ + */ "id"?: string; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -41,30 +46,56 @@ export class OutcomesResponseIncludedItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "OutcomesResponseIncludedRuleAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "OutcomesResponseIncludedRuleAttributes", }, - type: { - baseName: "type", - type: "RuleType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesResponseIncludedItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesResponseIncludedRuleAttributes.ts b/packages/datadog-api-client-v2/models/OutcomesResponseIncludedRuleAttributes.ts index c1f446c8cc0b..145f52f1eb68 100644 --- a/packages/datadog-api-client-v2/models/OutcomesResponseIncludedRuleAttributes.ts +++ b/packages/datadog-api-client-v2/models/OutcomesResponseIncludedRuleAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a rule. - */ +*/ export class OutcomesResponseIncludedRuleAttributes { /** * Name of the rule. - */ + */ "name"?: string; /** * The scorecard name to which this rule must belong. - */ + */ "scorecardName"?: string; /** @@ -35,26 +40,52 @@ export class OutcomesResponseIncludedRuleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - scorecardName: { - baseName: "scorecard_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scorecardName": { + "baseName": "scorecard_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesResponseIncludedRuleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutcomesResponseLinks.ts b/packages/datadog-api-client-v2/models/OutcomesResponseLinks.ts index 16beff4ea1f4..fc1aab2f891c 100644 --- a/packages/datadog-api-client-v2/models/OutcomesResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/OutcomesResponseLinks.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class OutcomesResponseLinks { /** * Link for the next set of results. - */ + */ "next"?: string; /** @@ -31,22 +36,48 @@ export class OutcomesResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutcomesResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutputSchema.ts b/packages/datadog-api-client-v2/models/OutputSchema.ts index 754fba376a10..1085752a7fc1 100644 --- a/packages/datadog-api-client-v2/models/OutputSchema.ts +++ b/packages/datadog-api-client-v2/models/OutputSchema.ts @@ -5,15 +5,20 @@ */ import { OutputSchemaParameters } from "./OutputSchemaParameters"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of output parameters for the workflow. - */ +*/ export class OutputSchema { /** * The `OutputSchema` `parameters`. - */ + */ "parameters"?: Array; /** @@ -32,22 +37,48 @@ export class OutputSchema { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - parameters: { - baseName: "parameters", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "parameters": { + "baseName": "parameters", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutputSchema.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutputSchemaParameters.ts b/packages/datadog-api-client-v2/models/OutputSchemaParameters.ts index 0718a513f4ff..70f8eb63f532 100644 --- a/packages/datadog-api-client-v2/models/OutputSchemaParameters.ts +++ b/packages/datadog-api-client-v2/models/OutputSchemaParameters.ts @@ -5,35 +5,40 @@ */ import { OutputSchemaParametersType } from "./OutputSchemaParametersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `OutputSchemaParameters` object. - */ +*/ export class OutputSchemaParameters { /** * The `OutputSchemaParameters` `defaultValue`. - */ + */ "defaultValue"?: any; /** * The `OutputSchemaParameters` `description`. - */ + */ "description"?: string; /** * The `OutputSchemaParameters` `label`. - */ + */ "label"?: string; /** * The `OutputSchemaParameters` `name`. - */ + */ "name": string; /** * The definition of `OutputSchemaParametersType` object. - */ + */ "type": OutputSchemaParametersType; /** * The `OutputSchemaParameters` `value`. - */ + */ "value"?: any; /** @@ -52,44 +57,70 @@ export class OutputSchemaParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultValue: { - baseName: "defaultValue", - type: "any", - }, - description: { - baseName: "description", - type: "string", + "defaultValue": { + "baseName": "defaultValue", + "type": "any", }, - label: { - baseName: "label", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "label": { + "baseName": "label", + "type": "string", }, - type: { - baseName: "type", - type: "OutputSchemaParametersType", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "any", + "type": { + "baseName": "type", + "type": "OutputSchemaParametersType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return OutputSchemaParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/OutputSchemaParametersType.ts b/packages/datadog-api-client-v2/models/OutputSchemaParametersType.ts index 39da19e943ae..21409fd0619d 100644 --- a/packages/datadog-api-client-v2/models/OutputSchemaParametersType.ts +++ b/packages/datadog-api-client-v2/models/OutputSchemaParametersType.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `OutputSchemaParametersType` object. - */ +*/ -export type OutputSchemaParametersType = - | typeof STRING - | typeof NUMBER - | typeof BOOLEAN - | typeof OBJECT - | typeof ARRAY_STRING - | typeof ARRAY_NUMBER - | typeof ARRAY_BOOLEAN - | typeof ARRAY_OBJECT - | UnparsedObject; -export const STRING = "STRING"; -export const NUMBER = "NUMBER"; -export const BOOLEAN = "BOOLEAN"; -export const OBJECT = "OBJECT"; -export const ARRAY_STRING = "ARRAY_STRING"; -export const ARRAY_NUMBER = "ARRAY_NUMBER"; -export const ARRAY_BOOLEAN = "ARRAY_BOOLEAN"; -export const ARRAY_OBJECT = "ARRAY_OBJECT"; +export type OutputSchemaParametersType = typeof STRING| typeof NUMBER| typeof BOOLEAN| typeof OBJECT| typeof ARRAY_STRING| typeof ARRAY_NUMBER| typeof ARRAY_BOOLEAN| typeof ARRAY_OBJECT | UnparsedObject; +export const STRING = 'STRING'; +export const NUMBER = 'NUMBER'; +export const BOOLEAN = 'BOOLEAN'; +export const OBJECT = 'OBJECT'; +export const ARRAY_STRING = 'ARRAY_STRING'; +export const ARRAY_NUMBER = 'ARRAY_NUMBER'; +export const ARRAY_BOOLEAN = 'ARRAY_BOOLEAN'; +export const ARRAY_OBJECT = 'ARRAY_OBJECT'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Pagination.ts b/packages/datadog-api-client-v2/models/Pagination.ts index 3181b52bd757..c9f6e1dda89a 100644 --- a/packages/datadog-api-client-v2/models/Pagination.ts +++ b/packages/datadog-api-client-v2/models/Pagination.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Pagination object. - */ +*/ export class Pagination { /** * Total count. - */ + */ "totalCount"?: number; /** * Total count of elements matched by the filter. - */ + */ "totalFilteredCount"?: number; /** @@ -35,28 +40,54 @@ export class Pagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "total_count", - type: "number", - format: "int64", + "totalCount": { + "baseName": "total_count", + "type": "number", + "format": "int64", }, - totalFilteredCount: { - baseName: "total_filtered_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalFilteredCount": { + "baseName": "total_filtered_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Pagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Parameter.ts b/packages/datadog-api-client-v2/models/Parameter.ts index 677457749071..7eb2e70125c2 100644 --- a/packages/datadog-api-client-v2/models/Parameter.ts +++ b/packages/datadog-api-client-v2/models/Parameter.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `Parameter` object. - */ +*/ export class Parameter { /** * The `Parameter` `name`. - */ + */ "name": string; /** * The `Parameter` `value`. - */ + */ "value": any; /** @@ -35,28 +40,54 @@ export class Parameter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "any", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "any", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Parameter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PartialAPIKey.ts b/packages/datadog-api-client-v2/models/PartialAPIKey.ts index 7d4ce522b392..37e74a96a872 100644 --- a/packages/datadog-api-client-v2/models/PartialAPIKey.ts +++ b/packages/datadog-api-client-v2/models/PartialAPIKey.ts @@ -7,27 +7,32 @@ import { APIKeyRelationships } from "./APIKeyRelationships"; import { APIKeysType } from "./APIKeysType"; import { PartialAPIKeyAttributes } from "./PartialAPIKeyAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Partial Datadog API key. - */ +*/ export class PartialAPIKey { /** * Attributes of a partial API key. - */ + */ "attributes"?: PartialAPIKeyAttributes; /** * ID of the API key. - */ + */ "id"?: string; /** * Resources related to the API key. - */ + */ "relationships"?: APIKeyRelationships; /** * API Keys resource type. - */ + */ "type"?: APIKeysType; /** @@ -46,34 +51,60 @@ export class PartialAPIKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "PartialAPIKeyAttributes", + "attributes": { + "baseName": "attributes", + "type": "PartialAPIKeyAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "APIKeyRelationships", + "relationships": { + "baseName": "relationships", + "type": "APIKeyRelationships", }, - type: { - baseName: "type", - type: "APIKeysType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "APIKeysType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PartialAPIKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.ts b/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.ts index 94d8a7532d54..3b16c330cd77 100644 --- a/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.ts +++ b/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of a partial API key. - */ +*/ export class PartialAPIKeyAttributes { /** * The category of the API key. - */ + */ "category"?: string; /** * Creation date of the API key. - */ + */ "createdAt"?: string; /** * The last four characters of the API key. - */ + */ "last4"?: string; /** * Date the API key was last modified. - */ + */ "modifiedAt"?: string; /** * Name of the API key. - */ + */ "name"?: string; /** * The remote config read enabled status. - */ + */ "remoteConfigReadEnabled"?: boolean; /** @@ -51,42 +56,68 @@ export class PartialAPIKeyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "string", - }, - createdAt: { - baseName: "created_at", - type: "string", + "category": { + "baseName": "category", + "type": "string", }, - last4: { - baseName: "last4", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "string", }, - modifiedAt: { - baseName: "modified_at", - type: "string", + "last4": { + "baseName": "last4", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "modifiedAt": { + "baseName": "modified_at", + "type": "string", }, - remoteConfigReadEnabled: { - baseName: "remote_config_read_enabled", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "remoteConfigReadEnabled": { + "baseName": "remote_config_read_enabled", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PartialAPIKeyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PartialApplicationKey.ts b/packages/datadog-api-client-v2/models/PartialApplicationKey.ts index 145d2a7f551d..3f61aee85418 100644 --- a/packages/datadog-api-client-v2/models/PartialApplicationKey.ts +++ b/packages/datadog-api-client-v2/models/PartialApplicationKey.ts @@ -7,27 +7,32 @@ import { ApplicationKeyRelationships } from "./ApplicationKeyRelationships"; import { ApplicationKeysType } from "./ApplicationKeysType"; import { PartialApplicationKeyAttributes } from "./PartialApplicationKeyAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Partial Datadog application key. - */ +*/ export class PartialApplicationKey { /** * Attributes of a partial application key. - */ + */ "attributes"?: PartialApplicationKeyAttributes; /** * ID of the application key. - */ + */ "id"?: string; /** * Resources related to the application key. - */ + */ "relationships"?: ApplicationKeyRelationships; /** * Application Keys resource type. - */ + */ "type"?: ApplicationKeysType; /** @@ -46,34 +51,60 @@ export class PartialApplicationKey { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "PartialApplicationKeyAttributes", + "attributes": { + "baseName": "attributes", + "type": "PartialApplicationKeyAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "ApplicationKeyRelationships", + "relationships": { + "baseName": "relationships", + "type": "ApplicationKeyRelationships", }, - type: { - baseName: "type", - type: "ApplicationKeysType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApplicationKeysType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PartialApplicationKey.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.ts b/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.ts index 5dba9feb2f1a..6a7926457ad0 100644 --- a/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.ts +++ b/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of a partial application key. - */ +*/ export class PartialApplicationKeyAttributes { /** * Creation date of the application key. - */ + */ "createdAt"?: string; /** * The last four characters of the application key. - */ + */ "last4"?: string; /** * Name of the application key. - */ + */ "name"?: string; /** * Array of scopes to grant the application key. - */ + */ "scopes"?: Array; /** @@ -43,34 +48,60 @@ export class PartialApplicationKeyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "string", }, - last4: { - baseName: "last4", - type: "string", + "last4": { + "baseName": "last4", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - scopes: { - baseName: "scopes", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scopes": { + "baseName": "scopes", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PartialApplicationKeyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PartialApplicationKeyResponse.ts b/packages/datadog-api-client-v2/models/PartialApplicationKeyResponse.ts index 5a87ae643bc4..ca39c4d1f05d 100644 --- a/packages/datadog-api-client-v2/models/PartialApplicationKeyResponse.ts +++ b/packages/datadog-api-client-v2/models/PartialApplicationKeyResponse.ts @@ -6,19 +6,24 @@ import { ApplicationKeyResponseIncludedItem } from "./ApplicationKeyResponseIncludedItem"; import { PartialApplicationKey } from "./PartialApplicationKey"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for retrieving a partial application key. - */ +*/ export class PartialApplicationKeyResponse { /** * Partial Datadog application key. - */ + */ "data"?: PartialApplicationKey; /** * Array of objects related to the application key. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class PartialApplicationKeyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "PartialApplicationKey", + "data": { + "baseName": "data", + "type": "PartialApplicationKey", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PartialApplicationKeyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.ts b/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.ts index 24c45ef84605..fdd49e560570 100644 --- a/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.ts +++ b/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.ts @@ -5,15 +5,20 @@ */ import { PatchNotificationRuleParametersData } from "./PatchNotificationRuleParametersData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Body of the notification rule patch request. - */ +*/ export class PatchNotificationRuleParameters { /** * Data of the notification rule patch request: the rule ID, the rule type, and the rule attributes. All fields are required. - */ + */ "data"?: PatchNotificationRuleParametersData; /** @@ -32,22 +37,48 @@ export class PatchNotificationRuleParameters { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "PatchNotificationRuleParametersData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "PatchNotificationRuleParametersData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PatchNotificationRuleParameters.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.ts b/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.ts index 58423237fdfb..1ff7bf5664e0 100644 --- a/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.ts +++ b/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.ts @@ -6,23 +6,28 @@ import { NotificationRulesType } from "./NotificationRulesType"; import { PatchNotificationRuleParametersDataAttributes } from "./PatchNotificationRuleParametersDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data of the notification rule patch request: the rule ID, the rule type, and the rule attributes. All fields are required. - */ +*/ export class PatchNotificationRuleParametersData { /** * Attributes of the notification rule patch request. It is required to update the version of the rule when patching it. - */ + */ "attributes": PatchNotificationRuleParametersDataAttributes; /** * The ID of a notification rule. - */ + */ "id": string; /** * The rule type associated to notification rules. - */ + */ "type": NotificationRulesType; /** @@ -41,33 +46,59 @@ export class PatchNotificationRuleParametersData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "PatchNotificationRuleParametersDataAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "PatchNotificationRuleParametersDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "NotificationRulesType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "NotificationRulesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PatchNotificationRuleParametersData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.ts b/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.ts index 98581c9a55f0..72f499aa59d5 100644 --- a/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.ts @@ -4,32 +4,38 @@ * Copyright 2020-Present Datadog, Inc. */ import { Selectors } from "./Selectors"; +import { TargetsItem } from "./TargetsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the notification rule patch request. It is required to update the version of the rule when patching it. - */ +*/ export class PatchNotificationRuleParametersDataAttributes { /** * Field used to enable or disable the rule. - */ + */ "enabled"?: boolean; /** * Name of the notification rule. - */ + */ "name"?: string; /** * Selectors are used to filter security issues for which notifications should be generated. * Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. * Only the trigger_source field is required. - */ + */ "selectors"?: Selectors; /** * List of recipients to notify when a notification rule is triggered. Many different target types are supported, * such as email addresses, Slack channels, and PagerDuty services. * The appropriate integrations need to be properly configured to send notifications to the specified targets. - */ + */ "targets"?: Array; /** * Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation. @@ -37,11 +43,11 @@ export class PatchNotificationRuleParametersDataAttributes { * Notifications are only sent for new issues discovered during the window. * Time aggregation is only available for vulnerability-based notification rules. When omitted or set to 0, no aggregation * is done. - */ + */ "timeAggregation"?: number; /** * Version of the notification rule. It is updated when the rule is modified. - */ + */ "version"?: number; /** @@ -60,44 +66,70 @@ export class PatchNotificationRuleParametersDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - selectors: { - baseName: "selectors", - type: "Selectors", + "name": { + "baseName": "name", + "type": "string", }, - targets: { - baseName: "targets", - type: "Array", + "selectors": { + "baseName": "selectors", + "type": "Selectors", }, - timeAggregation: { - baseName: "time_aggregation", - type: "number", - format: "int64", + "targets": { + "baseName": "targets", + "type": "Array", }, - version: { - baseName: "version", - type: "number", - format: "int64", + "timeAggregation": { + "baseName": "time_aggregation", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PatchNotificationRuleParametersDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Permission.ts b/packages/datadog-api-client-v2/models/Permission.ts index 03aee918d0af..3f9a2ec4e02c 100644 --- a/packages/datadog-api-client-v2/models/Permission.ts +++ b/packages/datadog-api-client-v2/models/Permission.ts @@ -6,23 +6,28 @@ import { PermissionAttributes } from "./PermissionAttributes"; import { PermissionsType } from "./PermissionsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Permission object. - */ +*/ export class Permission { /** * Attributes of a permission. - */ + */ "attributes"?: PermissionAttributes; /** * ID of the permission. - */ + */ "id"?: string; /** * Permissions resource type. - */ + */ "type": PermissionsType; /** @@ -41,31 +46,57 @@ export class Permission { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "PermissionAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "PermissionAttributes", }, - type: { - baseName: "type", - type: "PermissionsType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "PermissionsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Permission.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PermissionAttributes.ts b/packages/datadog-api-client-v2/models/PermissionAttributes.ts index 0a96834a7e29..03c8e4b76644 100644 --- a/packages/datadog-api-client-v2/models/PermissionAttributes.ts +++ b/packages/datadog-api-client-v2/models/PermissionAttributes.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of a permission. - */ +*/ export class PermissionAttributes { /** * Creation time of the permission. - */ + */ "created"?: Date; /** * Description of the permission. - */ + */ "description"?: string; /** * Displayed name for the permission. - */ + */ "displayName"?: string; /** * Display type. - */ + */ "displayType"?: string; /** * Name of the permission group. - */ + */ "groupName"?: string; /** * Name of the permission. - */ + */ "name"?: string; /** * Whether or not the permission is restricted. - */ + */ "restricted"?: boolean; /** @@ -55,47 +60,73 @@ export class PermissionAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - created: { - baseName: "created", - type: "Date", - format: "date-time", - }, - description: { - baseName: "description", - type: "string", + "created": { + "baseName": "created", + "type": "Date", + "format": "date-time", }, - displayName: { - baseName: "display_name", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - displayType: { - baseName: "display_type", - type: "string", + "displayName": { + "baseName": "display_name", + "type": "string", }, - groupName: { - baseName: "group_name", - type: "string", + "displayType": { + "baseName": "display_type", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "groupName": { + "baseName": "group_name", + "type": "string", }, - restricted: { - baseName: "restricted", - type: "boolean", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "restricted": { + "baseName": "restricted", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PermissionAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PermissionsResponse.ts b/packages/datadog-api-client-v2/models/PermissionsResponse.ts index 83323cfa78fc..15f92863b4ae 100644 --- a/packages/datadog-api-client-v2/models/PermissionsResponse.ts +++ b/packages/datadog-api-client-v2/models/PermissionsResponse.ts @@ -5,15 +5,20 @@ */ import { Permission } from "./Permission"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload with API-returned permissions. - */ +*/ export class PermissionsResponse { /** * Array of permissions. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class PermissionsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PermissionsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PermissionsType.ts b/packages/datadog-api-client-v2/models/PermissionsType.ts index 124a87c8d12d..28670e0e92f2 100644 --- a/packages/datadog-api-client-v2/models/PermissionsType.ts +++ b/packages/datadog-api-client-v2/models/PermissionsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Permissions resource type. - */ +*/ export type PermissionsType = typeof PERMISSIONS | UnparsedObject; -export const PERMISSIONS = "permissions"; +export const PERMISSIONS = 'permissions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Powerpack.ts b/packages/datadog-api-client-v2/models/Powerpack.ts index c6d4885198f9..7ec92f1ebd20 100644 --- a/packages/datadog-api-client-v2/models/Powerpack.ts +++ b/packages/datadog-api-client-v2/models/Powerpack.ts @@ -5,15 +5,20 @@ */ import { PowerpackData } from "./PowerpackData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpacks are templated groups of dashboard widgets you can save from an existing dashboard and turn into reusable packs in the widget tray. - */ +*/ export class Powerpack { /** * Powerpack data object. - */ + */ "data"?: PowerpackData; /** @@ -32,22 +37,48 @@ export class Powerpack { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "PowerpackData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "PowerpackData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Powerpack.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackAttributes.ts b/packages/datadog-api-client-v2/models/PowerpackAttributes.ts index 8c3529acaeb4..89661974ebd7 100644 --- a/packages/datadog-api-client-v2/models/PowerpackAttributes.ts +++ b/packages/datadog-api-client-v2/models/PowerpackAttributes.ts @@ -6,31 +6,36 @@ import { PowerpackGroupWidget } from "./PowerpackGroupWidget"; import { PowerpackTemplateVariable } from "./PowerpackTemplateVariable"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack attribute object. - */ +*/ export class PowerpackAttributes { /** * Description of this powerpack. - */ + */ "description"?: string; /** * Powerpack group widget definition object. - */ + */ "groupWidget": PowerpackGroupWidget; /** * Name of the powerpack. - */ + */ "name": string; /** * List of tags to identify this powerpack. - */ + */ "tags"?: Array; /** * List of template variables for this powerpack. - */ + */ "templateVariables"?: Array; /** @@ -49,40 +54,66 @@ export class PowerpackAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - groupWidget: { - baseName: "group_widget", - type: "PowerpackGroupWidget", - required: true, + "groupWidget": { + "baseName": "group_widget", + "type": "PowerpackGroupWidget", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - templateVariables: { - baseName: "template_variables", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "templateVariables": { + "baseName": "template_variables", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackData.ts b/packages/datadog-api-client-v2/models/PowerpackData.ts index e19d15b1e4c1..53b0ae63ffb4 100644 --- a/packages/datadog-api-client-v2/models/PowerpackData.ts +++ b/packages/datadog-api-client-v2/models/PowerpackData.ts @@ -6,27 +6,32 @@ import { PowerpackAttributes } from "./PowerpackAttributes"; import { PowerpackRelationships } from "./PowerpackRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack data object. - */ +*/ export class PowerpackData { /** * Powerpack attribute object. - */ + */ "attributes"?: PowerpackAttributes; /** * ID of the powerpack. - */ + */ "id"?: string; /** * Powerpack relationship object. - */ + */ "relationships"?: PowerpackRelationships; /** * Type of widget, must be powerpack. - */ + */ "type"?: string; /** @@ -45,34 +50,60 @@ export class PowerpackData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "PowerpackAttributes", + "attributes": { + "baseName": "attributes", + "type": "PowerpackAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "PowerpackRelationships", + "relationships": { + "baseName": "relationships", + "type": "PowerpackRelationships", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts b/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts index 07e15c4f6a9d..e9c14b149c9d 100644 --- a/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts +++ b/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts @@ -7,23 +7,28 @@ import { PowerpackGroupWidgetDefinition } from "./PowerpackGroupWidgetDefinition import { PowerpackGroupWidgetLayout } from "./PowerpackGroupWidgetLayout"; import { WidgetLiveSpan } from "./WidgetLiveSpan"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack group widget definition object. - */ +*/ export class PowerpackGroupWidget { /** * Powerpack group widget object. - */ + */ "definition": PowerpackGroupWidgetDefinition; /** * Powerpack group widget layout. - */ + */ "layout"?: PowerpackGroupWidgetLayout; /** * The available timeframes depend on the widget you are using. - */ + */ "liveSpan"?: WidgetLiveSpan; /** @@ -42,31 +47,57 @@ export class PowerpackGroupWidget { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "PowerpackGroupWidgetDefinition", - required: true, - }, - layout: { - baseName: "layout", - type: "PowerpackGroupWidgetLayout", + "definition": { + "baseName": "definition", + "type": "PowerpackGroupWidgetDefinition", + "required": true, }, - liveSpan: { - baseName: "live_span", - type: "WidgetLiveSpan", + "layout": { + "baseName": "layout", + "type": "PowerpackGroupWidgetLayout", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "liveSpan": { + "baseName": "live_span", + "type": "WidgetLiveSpan", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackGroupWidget.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.ts b/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.ts index 41117544afde..a8e943bb0614 100644 --- a/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.ts +++ b/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.ts @@ -5,31 +5,36 @@ */ import { PowerpackInnerWidgets } from "./PowerpackInnerWidgets"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack group widget object. - */ +*/ export class PowerpackGroupWidgetDefinition { /** * Layout type of widgets. - */ + */ "layoutType": string; /** * Boolean indicating whether powerpack group title should be visible or not. - */ + */ "showTitle"?: boolean; /** * Name for the group widget. - */ + */ "title"?: string; /** * Type of widget, must be group. - */ + */ "type": string; /** * Widgets inside the powerpack. - */ + */ "widgets": Array; /** @@ -48,41 +53,67 @@ export class PowerpackGroupWidgetDefinition { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - layoutType: { - baseName: "layout_type", - type: "string", - required: true, + "layoutType": { + "baseName": "layout_type", + "type": "string", + "required": true, }, - showTitle: { - baseName: "show_title", - type: "boolean", + "showTitle": { + "baseName": "show_title", + "type": "boolean", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - type: { - baseName: "type", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "string", + "required": true, }, - widgets: { - baseName: "widgets", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "widgets": { + "baseName": "widgets", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackGroupWidgetDefinition.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.ts b/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.ts index c267b494fee2..fee4565f68d8 100644 --- a/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.ts +++ b/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack group widget layout. - */ +*/ export class PowerpackGroupWidgetLayout { /** * The height of the widget. Should be a non-negative integer. - */ + */ "height": number; /** * The width of the widget. Should be a non-negative integer. - */ + */ "width": number; /** * The position of the widget on the x (horizontal) axis. Should be a non-negative integer. - */ + */ "x": number; /** * The position of the widget on the y (vertical) axis. Should be a non-negative integer. - */ + */ "y": number; /** @@ -43,42 +48,68 @@ export class PowerpackGroupWidgetLayout { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - required: true, - format: "int64", + "height": { + "baseName": "height", + "type": "number", + "required": true, + "format": "int64", }, - width: { - baseName: "width", - type: "number", - required: true, - format: "int64", + "width": { + "baseName": "width", + "type": "number", + "required": true, + "format": "int64", }, - x: { - baseName: "x", - type: "number", - required: true, - format: "int64", + "x": { + "baseName": "x", + "type": "number", + "required": true, + "format": "int64", }, - y: { - baseName: "y", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackGroupWidgetLayout.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.ts b/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.ts index 159861f6dbc8..26f5a8957897 100644 --- a/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.ts +++ b/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack inner widget layout. - */ +*/ export class PowerpackInnerWidgetLayout { /** * The height of the widget. Should be a non-negative integer. - */ + */ "height": number; /** * The width of the widget. Should be a non-negative integer. - */ + */ "width": number; /** * The position of the widget on the x (horizontal) axis. Should be a non-negative integer. - */ + */ "x": number; /** * The position of the widget on the y (vertical) axis. Should be a non-negative integer. - */ + */ "y": number; /** @@ -43,42 +48,68 @@ export class PowerpackInnerWidgetLayout { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - required: true, - format: "int64", + "height": { + "baseName": "height", + "type": "number", + "required": true, + "format": "int64", }, - width: { - baseName: "width", - type: "number", - required: true, - format: "int64", + "width": { + "baseName": "width", + "type": "number", + "required": true, + "format": "int64", }, - x: { - baseName: "x", - type: "number", - required: true, - format: "int64", + "x": { + "baseName": "x", + "type": "number", + "required": true, + "format": "int64", }, - y: { - baseName: "y", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackInnerWidgetLayout.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.ts b/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.ts index 96c52779177e..3c6551a010cc 100644 --- a/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.ts +++ b/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.ts @@ -5,19 +5,24 @@ */ import { PowerpackInnerWidgetLayout } from "./PowerpackInnerWidgetLayout"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack group widget definition of individual widgets. - */ +*/ export class PowerpackInnerWidgets { /** * Information about widget. - */ - "definition": { [key: string]: any }; + */ + "definition": { [key: string]: any; }; /** * Powerpack inner widget layout. - */ + */ "layout"?: PowerpackInnerWidgetLayout; /** @@ -36,27 +41,53 @@ export class PowerpackInnerWidgets { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - definition: { - baseName: "definition", - type: "{ [key: string]: any; }", - required: true, + "definition": { + "baseName": "definition", + "type": "{ [key: string]: any; }", + "required": true, }, - layout: { - baseName: "layout", - type: "PowerpackInnerWidgetLayout", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "layout": { + "baseName": "layout", + "type": "PowerpackInnerWidgetLayout", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackInnerWidgets.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackRelationships.ts b/packages/datadog-api-client-v2/models/PowerpackRelationships.ts index 2ed0c48777e1..78d8b9eba8d9 100644 --- a/packages/datadog-api-client-v2/models/PowerpackRelationships.ts +++ b/packages/datadog-api-client-v2/models/PowerpackRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack relationship object. - */ +*/ export class PowerpackRelationships { /** * Relationship to user. - */ + */ "author"?: RelationshipToUser; /** @@ -32,22 +37,48 @@ export class PowerpackRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "RelationshipToUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "author": { + "baseName": "author", + "type": "RelationshipToUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackResponse.ts b/packages/datadog-api-client-v2/models/PowerpackResponse.ts index 939911a3cfe2..5a30b3c951fa 100644 --- a/packages/datadog-api-client-v2/models/PowerpackResponse.ts +++ b/packages/datadog-api-client-v2/models/PowerpackResponse.ts @@ -6,19 +6,24 @@ import { PowerpackData } from "./PowerpackData"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object which includes a single powerpack configuration. - */ +*/ export class PowerpackResponse { /** * Powerpack data object. - */ + */ "data"?: PowerpackData; /** * Array of objects related to the users. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class PowerpackResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "PowerpackData", + "data": { + "baseName": "data", + "type": "PowerpackData", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackResponseLinks.ts b/packages/datadog-api-client-v2/models/PowerpackResponseLinks.ts index 9d726b51d905..713ec49316d3 100644 --- a/packages/datadog-api-client-v2/models/PowerpackResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/PowerpackResponseLinks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class PowerpackResponseLinks { /** * Link to last page. - */ + */ "first"?: string; /** * Link to first page. - */ + */ "last"?: string; /** * Link for the next set of results. - */ + */ "next"?: string; /** * Link for the previous set of results. - */ + */ "prev"?: string; /** * Link to current page. - */ + */ "self"?: string; /** @@ -47,38 +52,64 @@ export class PowerpackResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", + "last": { + "baseName": "last", + "type": "string", }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - prev: { - baseName: "prev", - type: "string", + "prev": { + "baseName": "prev", + "type": "string", }, - self: { - baseName: "self", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.ts b/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.ts index 0e156208581d..03f5769ab7d9 100644 --- a/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.ts +++ b/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack template variables. - */ +*/ export class PowerpackTemplateVariable { /** * The list of values that the template variable drop-down is limited to. - */ + */ "availableValues"?: Array; /** * One or many template variable default values within the saved view, which are unioned together using `OR` if more than one is specified. - */ + */ "defaults"?: Array; /** * The name of the variable. - */ + */ "name": string; /** * The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. - */ + */ "prefix"?: string; /** @@ -43,35 +48,61 @@ export class PowerpackTemplateVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - availableValues: { - baseName: "available_values", - type: "Array", + "availableValues": { + "baseName": "available_values", + "type": "Array", }, - defaults: { - baseName: "defaults", - type: "Array", + "defaults": { + "baseName": "defaults", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - prefix: { - baseName: "prefix", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "prefix": { + "baseName": "prefix", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpackTemplateVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.ts b/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.ts index fe19743cab46..2c8cc831298f 100644 --- a/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.ts @@ -5,15 +5,20 @@ */ import { PowerpacksResponseMetaPagination } from "./PowerpacksResponseMetaPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack response metadata. - */ +*/ export class PowerpacksResponseMeta { /** * Powerpack response pagination metadata. - */ + */ "pagination"?: PowerpacksResponseMetaPagination; /** @@ -32,22 +37,48 @@ export class PowerpacksResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "PowerpacksResponseMetaPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "PowerpacksResponseMetaPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpacksResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.ts b/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.ts index 2e6273ec23dd..b2647f40706b 100644 --- a/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.ts +++ b/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Powerpack response pagination metadata. - */ +*/ export class PowerpacksResponseMetaPagination { /** * The first offset. - */ + */ "firstOffset"?: number; /** * The last offset. - */ + */ "lastOffset"?: number; /** * Pagination limit. - */ + */ "limit"?: number; /** * The next offset. - */ + */ "nextOffset"?: number; /** * The offset. - */ + */ "offset"?: number; /** * The previous offset. - */ + */ "prevOffset"?: number; /** * Total results. - */ + */ "total"?: number; /** * Offset type. - */ + */ "type"?: string; /** @@ -59,57 +64,83 @@ export class PowerpacksResponseMetaPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - firstOffset: { - baseName: "first_offset", - type: "number", - format: "int64", + "firstOffset": { + "baseName": "first_offset", + "type": "number", + "format": "int64", }, - lastOffset: { - baseName: "last_offset", - type: "number", - format: "int64", + "lastOffset": { + "baseName": "last_offset", + "type": "number", + "format": "int64", }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - nextOffset: { - baseName: "next_offset", - type: "number", - format: "int64", + "nextOffset": { + "baseName": "next_offset", + "type": "number", + "format": "int64", }, - offset: { - baseName: "offset", - type: "number", - format: "int64", + "offset": { + "baseName": "offset", + "type": "number", + "format": "int64", }, - prevOffset: { - baseName: "prev_offset", - type: "number", - format: "int64", + "prevOffset": { + "baseName": "prev_offset", + "type": "number", + "format": "int64", }, - total: { - baseName: "total", - type: "number", - format: "int64", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PowerpacksResponseMetaPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProcessSummariesMeta.ts b/packages/datadog-api-client-v2/models/ProcessSummariesMeta.ts index 2e891038d6f1..0f3a67985c8b 100644 --- a/packages/datadog-api-client-v2/models/ProcessSummariesMeta.ts +++ b/packages/datadog-api-client-v2/models/ProcessSummariesMeta.ts @@ -5,15 +5,20 @@ */ import { ProcessSummariesMetaPage } from "./ProcessSummariesMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response metadata object. - */ +*/ export class ProcessSummariesMeta { /** * Paging attributes. - */ + */ "page"?: ProcessSummariesMetaPage; /** @@ -32,22 +37,48 @@ export class ProcessSummariesMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "ProcessSummariesMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "ProcessSummariesMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProcessSummariesMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProcessSummariesMetaPage.ts b/packages/datadog-api-client-v2/models/ProcessSummariesMetaPage.ts index e5ca76be01a0..e2c04bdda357 100644 --- a/packages/datadog-api-client-v2/models/ProcessSummariesMetaPage.ts +++ b/packages/datadog-api-client-v2/models/ProcessSummariesMetaPage.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class ProcessSummariesMetaPage { /** * The cursor used to get the next results, if any. To make the next request, use the same * parameters with the addition of the `page[cursor]`. - */ + */ "after"?: string; /** * Number of results returned. - */ + */ "size"?: number; /** @@ -36,27 +41,53 @@ export class ProcessSummariesMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", + "after": { + "baseName": "after", + "type": "string", }, - size: { - baseName: "size", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "size": { + "baseName": "size", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProcessSummariesMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProcessSummariesResponse.ts b/packages/datadog-api-client-v2/models/ProcessSummariesResponse.ts index c5a05faa7b00..00f7425bc3f6 100644 --- a/packages/datadog-api-client-v2/models/ProcessSummariesResponse.ts +++ b/packages/datadog-api-client-v2/models/ProcessSummariesResponse.ts @@ -6,19 +6,24 @@ import { ProcessSummariesMeta } from "./ProcessSummariesMeta"; import { ProcessSummary } from "./ProcessSummary"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of process summaries. - */ +*/ export class ProcessSummariesResponse { /** * Array of process summary objects. - */ + */ "data"?: Array; /** * Response metadata object. - */ + */ "meta"?: ProcessSummariesMeta; /** @@ -37,26 +42,52 @@ export class ProcessSummariesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ProcessSummariesMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ProcessSummariesMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProcessSummariesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProcessSummary.ts b/packages/datadog-api-client-v2/models/ProcessSummary.ts index 4ee563899da2..28eb666a94ab 100644 --- a/packages/datadog-api-client-v2/models/ProcessSummary.ts +++ b/packages/datadog-api-client-v2/models/ProcessSummary.ts @@ -6,23 +6,28 @@ import { ProcessSummaryAttributes } from "./ProcessSummaryAttributes"; import { ProcessSummaryType } from "./ProcessSummaryType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Process summary object. - */ +*/ export class ProcessSummary { /** * Attributes for a process summary. - */ + */ "attributes"?: ProcessSummaryAttributes; /** * Process ID. - */ + */ "id"?: string; /** * Type of process summary. - */ + */ "type"?: ProcessSummaryType; /** @@ -41,30 +46,56 @@ export class ProcessSummary { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ProcessSummaryAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ProcessSummaryAttributes", }, - type: { - baseName: "type", - type: "ProcessSummaryType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ProcessSummaryType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProcessSummary.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProcessSummaryAttributes.ts b/packages/datadog-api-client-v2/models/ProcessSummaryAttributes.ts index c917dbb2f815..0a10fcb095db 100644 --- a/packages/datadog-api-client-v2/models/ProcessSummaryAttributes.ts +++ b/packages/datadog-api-client-v2/models/ProcessSummaryAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for a process summary. - */ +*/ export class ProcessSummaryAttributes { /** * Process command line. - */ + */ "cmdline"?: string; /** * Host running the process. - */ + */ "host"?: string; /** * Process ID. - */ + */ "pid"?: number; /** * Parent process ID. - */ + */ "ppid"?: number; /** * Time the process was started. - */ + */ "start"?: string; /** * List of tags associated with the process. - */ + */ "tags"?: Array; /** * Time the process was seen. - */ + */ "timestamp"?: string; /** * Process owner. - */ + */ "user"?: string; /** @@ -59,52 +64,78 @@ export class ProcessSummaryAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cmdline: { - baseName: "cmdline", - type: "string", + "cmdline": { + "baseName": "cmdline", + "type": "string", }, - host: { - baseName: "host", - type: "string", + "host": { + "baseName": "host", + "type": "string", }, - pid: { - baseName: "pid", - type: "number", - format: "int64", + "pid": { + "baseName": "pid", + "type": "number", + "format": "int64", }, - ppid: { - baseName: "ppid", - type: "number", - format: "int64", + "ppid": { + "baseName": "ppid", + "type": "number", + "format": "int64", }, - start: { - baseName: "start", - type: "string", + "start": { + "baseName": "start", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - timestamp: { - baseName: "timestamp", - type: "string", + "timestamp": { + "baseName": "timestamp", + "type": "string", }, - user: { - baseName: "user", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "user": { + "baseName": "user", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProcessSummaryAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProcessSummaryType.ts b/packages/datadog-api-client-v2/models/ProcessSummaryType.ts index 54e0b6692f13..02469e0c7796 100644 --- a/packages/datadog-api-client-v2/models/ProcessSummaryType.ts +++ b/packages/datadog-api-client-v2/models/ProcessSummaryType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of process summary. - */ +*/ export type ProcessSummaryType = typeof PROCESS | UnparsedObject; -export const PROCESS = "process"; +export const PROCESS = 'process'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Project.ts b/packages/datadog-api-client-v2/models/Project.ts index 493f33a6a3d3..ed8cf49a8c4d 100644 --- a/packages/datadog-api-client-v2/models/Project.ts +++ b/packages/datadog-api-client-v2/models/Project.ts @@ -7,27 +7,32 @@ import { ProjectAttributes } from "./ProjectAttributes"; import { ProjectRelationships } from "./ProjectRelationships"; import { ProjectResourceType } from "./ProjectResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Project - */ +*/ export class Project { /** * Project attributes - */ + */ "attributes": ProjectAttributes; /** * The Project's identifier - */ + */ "id": string; /** * Project relationships - */ + */ "relationships"?: ProjectRelationships; /** * Project resource type - */ + */ "type": ProjectResourceType; /** @@ -46,37 +51,63 @@ export class Project { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ProjectAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ProjectAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "ProjectRelationships", + "relationships": { + "baseName": "relationships", + "type": "ProjectRelationships", }, - type: { - baseName: "type", - type: "ProjectResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ProjectResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Project.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectAttributes.ts b/packages/datadog-api-client-v2/models/ProjectAttributes.ts index 9384f6cff517..653abf1b67ec 100644 --- a/packages/datadog-api-client-v2/models/ProjectAttributes.ts +++ b/packages/datadog-api-client-v2/models/ProjectAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Project attributes - */ +*/ export class ProjectAttributes { /** * The project's key - */ + */ "key"?: string; /** * Project's name - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class ProjectAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - key: { - baseName: "key", - type: "string", + "key": { + "baseName": "key", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectCreate.ts b/packages/datadog-api-client-v2/models/ProjectCreate.ts index 58cdde34f10c..76ca0032b625 100644 --- a/packages/datadog-api-client-v2/models/ProjectCreate.ts +++ b/packages/datadog-api-client-v2/models/ProjectCreate.ts @@ -6,19 +6,24 @@ import { ProjectCreateAttributes } from "./ProjectCreateAttributes"; import { ProjectResourceType } from "./ProjectResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Project create - */ +*/ export class ProjectCreate { /** * Project creation attributes - */ + */ "attributes": ProjectCreateAttributes; /** * Project resource type - */ + */ "type": ProjectResourceType; /** @@ -37,28 +42,54 @@ export class ProjectCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ProjectCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ProjectCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ProjectResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ProjectResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectCreateAttributes.ts b/packages/datadog-api-client-v2/models/ProjectCreateAttributes.ts index a1b3150adfbd..db06a2fd9a61 100644 --- a/packages/datadog-api-client-v2/models/ProjectCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ProjectCreateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Project creation attributes - */ +*/ export class ProjectCreateAttributes { /** * Project's key. Cannot be "CASE" - */ + */ "key": string; /** * name - */ + */ "name": string; /** @@ -35,28 +40,54 @@ export class ProjectCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - key: { - baseName: "key", - type: "string", - required: true, + "key": { + "baseName": "key", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectCreateRequest.ts b/packages/datadog-api-client-v2/models/ProjectCreateRequest.ts index fe7964711953..3434d0acd209 100644 --- a/packages/datadog-api-client-v2/models/ProjectCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ProjectCreateRequest.ts @@ -5,15 +5,20 @@ */ import { ProjectCreate } from "./ProjectCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Project create request - */ +*/ export class ProjectCreateRequest { /** * Project create - */ + */ "data": ProjectCreate; /** @@ -32,23 +37,49 @@ export class ProjectCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ProjectCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ProjectCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectRelationship.ts b/packages/datadog-api-client-v2/models/ProjectRelationship.ts index 23a431d9cd20..94ede1a300c4 100644 --- a/packages/datadog-api-client-v2/models/ProjectRelationship.ts +++ b/packages/datadog-api-client-v2/models/ProjectRelationship.ts @@ -5,15 +5,20 @@ */ import { ProjectRelationshipData } from "./ProjectRelationshipData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to project - */ +*/ export class ProjectRelationship { /** * Relationship to project object - */ + */ "data": ProjectRelationshipData; /** @@ -32,23 +37,49 @@ export class ProjectRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ProjectRelationshipData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ProjectRelationshipData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectRelationshipData.ts b/packages/datadog-api-client-v2/models/ProjectRelationshipData.ts index 636ae22c4134..1c3a0f3fda47 100644 --- a/packages/datadog-api-client-v2/models/ProjectRelationshipData.ts +++ b/packages/datadog-api-client-v2/models/ProjectRelationshipData.ts @@ -5,19 +5,24 @@ */ import { ProjectResourceType } from "./ProjectResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to project object - */ +*/ export class ProjectRelationshipData { /** * A unique identifier that represents the project - */ + */ "id": string; /** * Project resource type - */ + */ "type": ProjectResourceType; /** @@ -36,28 +41,54 @@ export class ProjectRelationshipData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ProjectResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ProjectResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectRelationshipData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectRelationships.ts b/packages/datadog-api-client-v2/models/ProjectRelationships.ts index 3fc3a311f699..6865164b9d96 100644 --- a/packages/datadog-api-client-v2/models/ProjectRelationships.ts +++ b/packages/datadog-api-client-v2/models/ProjectRelationships.ts @@ -6,19 +6,24 @@ import { RelationshipToTeamLinks } from "./RelationshipToTeamLinks"; import { UsersRelationship } from "./UsersRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Project relationships - */ +*/ export class ProjectRelationships { /** * Relationship between a team and a team link - */ + */ "memberTeam"?: RelationshipToTeamLinks; /** * Relationship to users. - */ + */ "memberUser"?: UsersRelationship; /** @@ -37,26 +42,52 @@ export class ProjectRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - memberTeam: { - baseName: "member_team", - type: "RelationshipToTeamLinks", + "memberTeam": { + "baseName": "member_team", + "type": "RelationshipToTeamLinks", }, - memberUser: { - baseName: "member_user", - type: "UsersRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "memberUser": { + "baseName": "member_user", + "type": "UsersRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectResourceType.ts b/packages/datadog-api-client-v2/models/ProjectResourceType.ts index 638af20b361d..a18542348f99 100644 --- a/packages/datadog-api-client-v2/models/ProjectResourceType.ts +++ b/packages/datadog-api-client-v2/models/ProjectResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Project resource type - */ +*/ export type ProjectResourceType = typeof PROJECT | UnparsedObject; -export const PROJECT = "project"; +export const PROJECT = 'project'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ProjectResponse.ts b/packages/datadog-api-client-v2/models/ProjectResponse.ts index abe1612e5141..a57c3f45962f 100644 --- a/packages/datadog-api-client-v2/models/ProjectResponse.ts +++ b/packages/datadog-api-client-v2/models/ProjectResponse.ts @@ -5,15 +5,20 @@ */ import { Project } from "./Project"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Project response - */ +*/ export class ProjectResponse { /** * A Project - */ + */ "data"?: Project; /** @@ -32,22 +37,48 @@ export class ProjectResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Project", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Project", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectedCost.ts b/packages/datadog-api-client-v2/models/ProjectedCost.ts index f729c68409e4..9788a606e022 100644 --- a/packages/datadog-api-client-v2/models/ProjectedCost.ts +++ b/packages/datadog-api-client-v2/models/ProjectedCost.ts @@ -6,23 +6,28 @@ import { ProjectedCostAttributes } from "./ProjectedCostAttributes"; import { ProjectedCostType } from "./ProjectedCostType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Projected Cost data. - */ +*/ export class ProjectedCost { /** * Projected Cost attributes data. - */ + */ "attributes"?: ProjectedCostAttributes; /** * Unique ID of the response. - */ + */ "id"?: string; /** * Type of cost data. - */ + */ "type"?: ProjectedCostType; /** @@ -41,30 +46,56 @@ export class ProjectedCost { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ProjectedCostAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ProjectedCostAttributes", }, - type: { - baseName: "type", - type: "ProjectedCostType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ProjectedCostType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectedCost.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectedCostAttributes.ts b/packages/datadog-api-client-v2/models/ProjectedCostAttributes.ts index 2b280b64d99d..c2e962ad949f 100644 --- a/packages/datadog-api-client-v2/models/ProjectedCostAttributes.ts +++ b/packages/datadog-api-client-v2/models/ProjectedCostAttributes.ts @@ -5,43 +5,48 @@ */ import { ChargebackBreakdown } from "./ChargebackBreakdown"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Projected Cost attributes data. - */ +*/ export class ProjectedCostAttributes { /** * The account name. - */ + */ "accountName"?: string; /** * The account public ID. - */ + */ "accountPublicId"?: string; /** * List of charges data reported for the requested month. - */ + */ "charges"?: Array; /** * The month requested. - */ + */ "date"?: Date; /** * The organization name. - */ + */ "orgName"?: string; /** * The total projected cost of products for the month. - */ + */ "projectedTotalCost"?: number; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The region of the Datadog instance that the organization belongs to. - */ + */ "region"?: string; /** @@ -60,52 +65,78 @@ export class ProjectedCostAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - accountName: { - baseName: "account_name", - type: "string", + "accountName": { + "baseName": "account_name", + "type": "string", }, - accountPublicId: { - baseName: "account_public_id", - type: "string", + "accountPublicId": { + "baseName": "account_public_id", + "type": "string", }, - charges: { - baseName: "charges", - type: "Array", + "charges": { + "baseName": "charges", + "type": "Array", }, - date: { - baseName: "date", - type: "Date", - format: "date-time", + "date": { + "baseName": "date", + "type": "Date", + "format": "date-time", }, - orgName: { - baseName: "org_name", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - projectedTotalCost: { - baseName: "projected_total_cost", - type: "number", - format: "double", + "projectedTotalCost": { + "baseName": "projected_total_cost", + "type": "number", + "format": "double", }, - publicId: { - baseName: "public_id", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - region: { - baseName: "region", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "region": { + "baseName": "region", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectedCostAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectedCostResponse.ts b/packages/datadog-api-client-v2/models/ProjectedCostResponse.ts index 9aeae49a8995..2a56e27c97af 100644 --- a/packages/datadog-api-client-v2/models/ProjectedCostResponse.ts +++ b/packages/datadog-api-client-v2/models/ProjectedCostResponse.ts @@ -5,15 +5,20 @@ */ import { ProjectedCost } from "./ProjectedCost"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Projected Cost response. - */ +*/ export class ProjectedCostResponse { /** * Response containing Projected Cost. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ProjectedCostResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectedCostResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ProjectedCostType.ts b/packages/datadog-api-client-v2/models/ProjectedCostType.ts index 79a526db583c..43029dcaab59 100644 --- a/packages/datadog-api-client-v2/models/ProjectedCostType.ts +++ b/packages/datadog-api-client-v2/models/ProjectedCostType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of cost data. - */ +*/ export type ProjectedCostType = typeof PROJECt_COST | UnparsedObject; -export const PROJECt_COST = "projected_cost"; +export const PROJECt_COST = 'projected_cost'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ProjectsResponse.ts b/packages/datadog-api-client-v2/models/ProjectsResponse.ts index 090a99ac1e84..ba1d51dcf0db 100644 --- a/packages/datadog-api-client-v2/models/ProjectsResponse.ts +++ b/packages/datadog-api-client-v2/models/ProjectsResponse.ts @@ -5,15 +5,20 @@ */ import { Project } from "./Project"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with projects - */ +*/ export class ProjectsResponse { /** * Projects response data - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ProjectsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ProjectsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/PublishAppResponse.ts b/packages/datadog-api-client-v2/models/PublishAppResponse.ts index 92b1eeb1b6e5..2f300f25c17c 100644 --- a/packages/datadog-api-client-v2/models/PublishAppResponse.ts +++ b/packages/datadog-api-client-v2/models/PublishAppResponse.ts @@ -5,15 +5,20 @@ */ import { Deployment } from "./Deployment"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after an app is successfully published. - */ +*/ export class PublishAppResponse { /** * The version of the app that was published. - */ + */ "data"?: Deployment; /** @@ -32,22 +37,48 @@ export class PublishAppResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Deployment", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Deployment", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return PublishAppResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Query.ts b/packages/datadog-api-client-v2/models/Query.ts index d178b0901359..60ca2aaf5827 100644 --- a/packages/datadog-api-client-v2/models/Query.ts +++ b/packages/datadog-api-client-v2/models/Query.ts @@ -7,14 +7,15 @@ import { ActionQuery } from "./ActionQuery"; import { DataTransform } from "./DataTransform"; import { StateVariable } from "./StateVariable"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A data query used by an app. This can take the form of an external action, a data transformation, or a state variable. - */ +*/ -export type Query = - | ActionQuery - | DataTransform - | StateVariable - | UnparsedObject; +export type Query = ActionQuery | DataTransform | StateVariable | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/QueryFormula.ts b/packages/datadog-api-client-v2/models/QueryFormula.ts index 9e7aea9566ae..6da4391e391d 100644 --- a/packages/datadog-api-client-v2/models/QueryFormula.ts +++ b/packages/datadog-api-client-v2/models/QueryFormula.ts @@ -5,20 +5,25 @@ */ import { FormulaLimit } from "./FormulaLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A formula for calculation based on one or more queries. - */ +*/ export class QueryFormula { /** * Formula string, referencing one or more queries with their name property. - */ + */ "formula": string; /** * Message for specifying limits to the number of values returned by a query. * This limit is only for scalar queries and has no effect on timeseries queries. - */ + */ "limit"?: FormulaLimit; /** @@ -37,27 +42,53 @@ export class QueryFormula { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formula: { - baseName: "formula", - type: "string", - required: true, + "formula": { + "baseName": "formula", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "FormulaLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "FormulaLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return QueryFormula.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/QuerySortOrder.ts b/packages/datadog-api-client-v2/models/QuerySortOrder.ts index 11ed6b3044b9..b01cc25adf90 100644 --- a/packages/datadog-api-client-v2/models/QuerySortOrder.ts +++ b/packages/datadog-api-client-v2/models/QuerySortOrder.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Direction of sort. - */ +*/ -export type QuerySortOrder = typeof ASC | typeof DESC | UnparsedObject; -export const ASC = "asc"; -export const DESC = "desc"; +export type QuerySortOrder = typeof ASC| typeof DESC | UnparsedObject; +export const ASC = 'asc'; +export const DESC = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMAggregateBucketValue.ts b/packages/datadog-api-client-v2/models/RUMAggregateBucketValue.ts index d352740edddd..4824e4ed605e 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregateBucketValue.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregateBucketValue.ts @@ -5,14 +5,15 @@ */ import { RUMAggregateBucketValueTimeseriesPoint } from "./RUMAggregateBucketValueTimeseriesPoint"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A bucket value, can be either a timeseries or a single value. - */ +*/ -export type RUMAggregateBucketValue = - | string - | number - | Array - | UnparsedObject; +export type RUMAggregateBucketValue = string | number | Array | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMAggregateBucketValueTimeseriesPoint.ts b/packages/datadog-api-client-v2/models/RUMAggregateBucketValueTimeseriesPoint.ts index 4007f7b60f7e..7e9a70c48e79 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregateBucketValueTimeseriesPoint.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregateBucketValueTimeseriesPoint.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A timeseries point. - */ +*/ export class RUMAggregateBucketValueTimeseriesPoint { /** * The time value for this point. - */ + */ "time"?: Date; /** * The value for this point. - */ + */ "value"?: number; /** @@ -35,28 +40,54 @@ export class RUMAggregateBucketValueTimeseriesPoint { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - time: { - baseName: "time", - type: "Date", - format: "date-time", + "time": { + "baseName": "time", + "type": "Date", + "format": "date-time", }, - value: { - baseName: "value", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMAggregateBucketValueTimeseriesPoint.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMAggregateRequest.ts b/packages/datadog-api-client-v2/models/RUMAggregateRequest.ts index ef1c64cf9eee..40883963ec76 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregateRequest.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregateRequest.ts @@ -9,32 +9,37 @@ import { RUMQueryFilter } from "./RUMQueryFilter"; import { RUMQueryOptions } from "./RUMQueryOptions"; import { RUMQueryPageOptions } from "./RUMQueryPageOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object sent with the request to retrieve aggregation buckets of RUM events from your organization. - */ +*/ export class RUMAggregateRequest { /** * The list of metrics or timeseries to compute for the retrieved buckets. - */ + */ "compute"?: Array; /** * The search and filter query settings. - */ + */ "filter"?: RUMQueryFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** * Global query options that are used during the query. * Note: Only supply timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: RUMQueryOptions; /** * Paging attributes for listing events. - */ + */ "page"?: RUMQueryPageOptions; /** @@ -53,38 +58,64 @@ export class RUMAggregateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "Array", + "compute": { + "baseName": "compute", + "type": "Array", }, - filter: { - baseName: "filter", - type: "RUMQueryFilter", + "filter": { + "baseName": "filter", + "type": "RUMQueryFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - options: { - baseName: "options", - type: "RUMQueryOptions", + "options": { + "baseName": "options", + "type": "RUMQueryOptions", }, - page: { - baseName: "page", - type: "RUMQueryPageOptions", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "RUMQueryPageOptions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMAggregateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMAggregateSort.ts b/packages/datadog-api-client-v2/models/RUMAggregateSort.ts index 85a147b73f21..f72f91f0bf18 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregateSort.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregateSort.ts @@ -7,27 +7,32 @@ import { RUMAggregateSortType } from "./RUMAggregateSortType"; import { RUMAggregationFunction } from "./RUMAggregationFunction"; import { RUMSortOrder } from "./RUMSortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A sort rule. - */ +*/ export class RUMAggregateSort { /** * An aggregation function. - */ + */ "aggregation"?: RUMAggregationFunction; /** * The metric to sort by (only used for `type=measure`). - */ + */ "metric"?: string; /** * The order to use, ascending or descending. - */ + */ "order"?: RUMSortOrder; /** * The type of sorting algorithm. - */ + */ "type"?: RUMAggregateSortType; /** @@ -46,34 +51,60 @@ export class RUMAggregateSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "RUMAggregationFunction", + "aggregation": { + "baseName": "aggregation", + "type": "RUMAggregationFunction", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - order: { - baseName: "order", - type: "RUMSortOrder", + "order": { + "baseName": "order", + "type": "RUMSortOrder", }, - type: { - baseName: "type", - type: "RUMAggregateSortType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMAggregateSortType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMAggregateSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMAggregateSortType.ts b/packages/datadog-api-client-v2/models/RUMAggregateSortType.ts index effe09f128e8..d1635e76a770 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregateSortType.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregateSortType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of sorting algorithm. - */ +*/ -export type RUMAggregateSortType = - | typeof ALPHABETICAL - | typeof MEASURE - | UnparsedObject; -export const ALPHABETICAL = "alphabetical"; -export const MEASURE = "measure"; +export type RUMAggregateSortType = typeof ALPHABETICAL| typeof MEASURE | UnparsedObject; +export const ALPHABETICAL = 'alphabetical'; +export const MEASURE = 'measure'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMAggregationBucketsResponse.ts b/packages/datadog-api-client-v2/models/RUMAggregationBucketsResponse.ts index ceaa20276bd2..1e9e25d56e97 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregationBucketsResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregationBucketsResponse.ts @@ -5,15 +5,20 @@ */ import { RUMBucketResponse } from "./RUMBucketResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The query results. - */ +*/ export class RUMAggregationBucketsResponse { /** * The list of matching buckets, one item per bucket. - */ + */ "buckets"?: Array; /** @@ -32,22 +37,48 @@ export class RUMAggregationBucketsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - buckets: { - baseName: "buckets", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "buckets": { + "baseName": "buckets", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMAggregationBucketsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMAggregationFunction.ts b/packages/datadog-api-client-v2/models/RUMAggregationFunction.ts index e0f4b4773f20..d29efd91acbb 100644 --- a/packages/datadog-api-client-v2/models/RUMAggregationFunction.ts +++ b/packages/datadog-api-client-v2/models/RUMAggregationFunction.ts @@ -4,35 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An aggregation function. - */ +*/ -export type RUMAggregationFunction = - | typeof COUNT - | typeof CARDINALITY - | typeof PERCENTILE_75 - | typeof PERCENTILE_90 - | typeof PERCENTILE_95 - | typeof PERCENTILE_98 - | typeof PERCENTILE_99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | typeof MEDIAN - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const PERCENTILE_75 = "pc75"; -export const PERCENTILE_90 = "pc90"; -export const PERCENTILE_95 = "pc95"; -export const PERCENTILE_98 = "pc98"; -export const PERCENTILE_99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; -export const MEDIAN = "median"; +export type RUMAggregationFunction = typeof COUNT| typeof CARDINALITY| typeof PERCENTILE_75| typeof PERCENTILE_90| typeof PERCENTILE_95| typeof PERCENTILE_98| typeof PERCENTILE_99| typeof SUM| typeof MIN| typeof MAX| typeof AVG| typeof MEDIAN | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const PERCENTILE_75 = 'pc75'; +export const PERCENTILE_90 = 'pc90'; +export const PERCENTILE_95 = 'pc95'; +export const PERCENTILE_98 = 'pc98'; +export const PERCENTILE_99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; +export const MEDIAN = 'median'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMAnalyticsAggregateResponse.ts b/packages/datadog-api-client-v2/models/RUMAnalyticsAggregateResponse.ts index 5de8f2429882..3fc362138f72 100644 --- a/packages/datadog-api-client-v2/models/RUMAnalyticsAggregateResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMAnalyticsAggregateResponse.ts @@ -7,23 +7,28 @@ import { RUMAggregationBucketsResponse } from "./RUMAggregationBucketsResponse"; import { RUMResponseLinks } from "./RUMResponseLinks"; import { RUMResponseMetadata } from "./RUMResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object for the RUM events aggregate API endpoint. - */ +*/ export class RUMAnalyticsAggregateResponse { /** * The query results. - */ + */ "data"?: RUMAggregationBucketsResponse; /** * Links attributes. - */ + */ "links"?: RUMResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: RUMResponseMetadata; /** @@ -42,30 +47,56 @@ export class RUMAnalyticsAggregateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RUMAggregationBucketsResponse", - }, - links: { - baseName: "links", - type: "RUMResponseLinks", + "data": { + "baseName": "data", + "type": "RUMAggregationBucketsResponse", }, - meta: { - baseName: "meta", - type: "RUMResponseMetadata", + "links": { + "baseName": "links", + "type": "RUMResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "RUMResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMAnalyticsAggregateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplication.ts b/packages/datadog-api-client-v2/models/RUMApplication.ts index d9ab60e3873f..ce9001b287d0 100644 --- a/packages/datadog-api-client-v2/models/RUMApplication.ts +++ b/packages/datadog-api-client-v2/models/RUMApplication.ts @@ -6,23 +6,28 @@ import { RUMApplicationAttributes } from "./RUMApplicationAttributes"; import { RUMApplicationType } from "./RUMApplicationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application. - */ +*/ export class RUMApplication { /** * RUM application attributes. - */ + */ "attributes": RUMApplicationAttributes; /** * RUM application ID. - */ + */ "id": string; /** * RUM application response type. - */ + */ "type": RUMApplicationType; /** @@ -41,33 +46,59 @@ export class RUMApplication { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RUMApplicationAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RUMApplicationAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RUMApplicationType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMApplicationType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplication.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts b/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts index e8bc17adcde7..e88c0f55a5a3 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts @@ -4,55 +4,60 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application attributes. - */ +*/ export class RUMApplicationAttributes { /** * ID of the RUM application. - */ + */ "applicationId": string; /** * Client token of the RUM application. - */ + */ "clientToken": string; /** * Timestamp in ms of the creation date. - */ + */ "createdAt": number; /** * Handle of the creator user. - */ + */ "createdByHandle": string; /** * Hash of the RUM application. Optional. - */ + */ "hash"?: string; /** * Indicates if the RUM application is active. - */ + */ "isActive"?: boolean; /** * Name of the RUM application. - */ + */ "name": string; /** * Org ID of the RUM application. - */ + */ "orgId": number; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. - */ + */ "type": string; /** * Timestamp in ms of the last update date. - */ + */ "updatedAt": number; /** * Handle of the updater user. - */ + */ "updatedByHandle": string; /** @@ -71,74 +76,100 @@ export class RUMApplicationAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - applicationId: { - baseName: "application_id", - type: "string", - required: true, - }, - clientToken: { - baseName: "client_token", - type: "string", - required: true, + "applicationId": { + "baseName": "application_id", + "type": "string", + "required": true, }, - createdAt: { - baseName: "created_at", - type: "number", - required: true, - format: "int64", + "clientToken": { + "baseName": "client_token", + "type": "string", + "required": true, }, - createdByHandle: { - baseName: "created_by_handle", - type: "string", - required: true, + "createdAt": { + "baseName": "created_at", + "type": "number", + "required": true, + "format": "int64", }, - hash: { - baseName: "hash", - type: "string", + "createdByHandle": { + "baseName": "created_by_handle", + "type": "string", + "required": true, }, - isActive: { - baseName: "is_active", - type: "boolean", + "hash": { + "baseName": "hash", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "isActive": { + "baseName": "is_active", + "type": "boolean", }, - orgId: { - baseName: "org_id", - type: "number", - required: true, - format: "int32", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, + "orgId": { + "baseName": "org_id", + "type": "number", + "required": true, + "format": "int32", }, - updatedAt: { - baseName: "updated_at", - type: "number", - required: true, - format: "int64", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, - updatedByHandle: { - baseName: "updated_by_handle", - type: "string", - required: true, + "updatedAt": { + "baseName": "updated_at", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "updatedByHandle": { + "baseName": "updated_by_handle", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationCreate.ts b/packages/datadog-api-client-v2/models/RUMApplicationCreate.ts index 715a563fbf7a..f1309bd13f18 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationCreate.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationCreate.ts @@ -6,19 +6,24 @@ import { RUMApplicationCreateAttributes } from "./RUMApplicationCreateAttributes"; import { RUMApplicationCreateType } from "./RUMApplicationCreateType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application creation. - */ +*/ export class RUMApplicationCreate { /** * RUM application creation attributes. - */ + */ "attributes": RUMApplicationCreateAttributes; /** * RUM application creation type. - */ + */ "type": RUMApplicationCreateType; /** @@ -37,28 +42,54 @@ export class RUMApplicationCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RUMApplicationCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RUMApplicationCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RUMApplicationCreateType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMApplicationCreateType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.ts b/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.ts index 914bcb1a8a9e..0d2583fc14e8 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application creation attributes. - */ +*/ export class RUMApplicationCreateAttributes { /** * Name of the RUM application. - */ + */ "name": string; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. - */ + */ "type"?: string; /** @@ -35,27 +40,53 @@ export class RUMApplicationCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.ts b/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.ts index 57c15c48cf14..65da294542c7 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.ts @@ -5,15 +5,20 @@ */ import { RUMApplicationCreate } from "./RUMApplicationCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application creation request attributes. - */ +*/ export class RUMApplicationCreateRequest { /** * RUM application creation. - */ + */ "data": RUMApplicationCreate; /** @@ -32,23 +37,49 @@ export class RUMApplicationCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RUMApplicationCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RUMApplicationCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationCreateType.ts b/packages/datadog-api-client-v2/models/RUMApplicationCreateType.ts index 8664ef681d61..133d50b30957 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationCreateType.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationCreateType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * RUM application creation type. - */ +*/ -export type RUMApplicationCreateType = - | typeof RUM_APPLICATION_CREATE - | UnparsedObject; -export const RUM_APPLICATION_CREATE = "rum_application_create"; +export type RUMApplicationCreateType = typeof RUM_APPLICATION_CREATE | UnparsedObject; +export const RUM_APPLICATION_CREATE = 'rum_application_create'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMApplicationList.ts b/packages/datadog-api-client-v2/models/RUMApplicationList.ts index 5ba340e4f520..07a94df209f1 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationList.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationList.ts @@ -6,23 +6,28 @@ import { RUMApplicationListAttributes } from "./RUMApplicationListAttributes"; import { RUMApplicationListType } from "./RUMApplicationListType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application list. - */ +*/ export class RUMApplicationList { /** * RUM application list attributes. - */ + */ "attributes": RUMApplicationListAttributes; /** * RUM application ID. - */ + */ "id"?: string; /** * RUM application list type. - */ + */ "type": RUMApplicationListType; /** @@ -41,32 +46,58 @@ export class RUMApplicationList { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RUMApplicationListAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "RUMApplicationListAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RUMApplicationListType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMApplicationListType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationList.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts b/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts index 3bbae69e285a..482f177defe0 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts @@ -4,51 +4,56 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application list attributes. - */ +*/ export class RUMApplicationListAttributes { /** * ID of the RUM application. - */ + */ "applicationId": string; /** * Timestamp in ms of the creation date. - */ + */ "createdAt": number; /** * Handle of the creator user. - */ + */ "createdByHandle": string; /** * Hash of the RUM application. Optional. - */ + */ "hash"?: string; /** * Indicates if the RUM application is active. - */ + */ "isActive"?: boolean; /** * Name of the RUM application. - */ + */ "name": string; /** * Org ID of the RUM application. - */ + */ "orgId": number; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. - */ + */ "type": string; /** * Timestamp in ms of the last update date. - */ + */ "updatedAt": number; /** * Handle of the updater user. - */ + */ "updatedByHandle": string; /** @@ -67,69 +72,95 @@ export class RUMApplicationListAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - applicationId: { - baseName: "application_id", - type: "string", - required: true, - }, - createdAt: { - baseName: "created_at", - type: "number", - required: true, - format: "int64", + "applicationId": { + "baseName": "application_id", + "type": "string", + "required": true, }, - createdByHandle: { - baseName: "created_by_handle", - type: "string", - required: true, + "createdAt": { + "baseName": "created_at", + "type": "number", + "required": true, + "format": "int64", }, - hash: { - baseName: "hash", - type: "string", + "createdByHandle": { + "baseName": "created_by_handle", + "type": "string", + "required": true, }, - isActive: { - baseName: "is_active", - type: "boolean", + "hash": { + "baseName": "hash", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "isActive": { + "baseName": "is_active", + "type": "boolean", }, - orgId: { - baseName: "org_id", - type: "number", - required: true, - format: "int32", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, + "orgId": { + "baseName": "org_id", + "type": "number", + "required": true, + "format": "int32", }, - updatedAt: { - baseName: "updated_at", - type: "number", - required: true, - format: "int64", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, - updatedByHandle: { - baseName: "updated_by_handle", - type: "string", - required: true, + "updatedAt": { + "baseName": "updated_at", + "type": "number", + "required": true, + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "updatedByHandle": { + "baseName": "updated_by_handle", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationListAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationListType.ts b/packages/datadog-api-client-v2/models/RUMApplicationListType.ts index 3f785bbacaf2..efeb061ea2f4 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationListType.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationListType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * RUM application list type. - */ +*/ export type RUMApplicationListType = typeof RUM_APPLICATION | UnparsedObject; -export const RUM_APPLICATION = "rum_application"; +export const RUM_APPLICATION = 'rum_application'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMApplicationResponse.ts b/packages/datadog-api-client-v2/models/RUMApplicationResponse.ts index 1b5222bd2005..9097a45f012d 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationResponse.ts @@ -5,15 +5,20 @@ */ import { RUMApplication } from "./RUMApplication"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application response. - */ +*/ export class RUMApplicationResponse { /** * RUM application. - */ + */ "data"?: RUMApplication; /** @@ -32,22 +37,48 @@ export class RUMApplicationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RUMApplication", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RUMApplication", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationType.ts b/packages/datadog-api-client-v2/models/RUMApplicationType.ts index 1d60e64bffa9..dd17ddd91bf4 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationType.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * RUM application response type. - */ +*/ export type RUMApplicationType = typeof RUM_APPLICATION | UnparsedObject; -export const RUM_APPLICATION = "rum_application"; +export const RUM_APPLICATION = 'rum_application'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMApplicationUpdate.ts b/packages/datadog-api-client-v2/models/RUMApplicationUpdate.ts index 66f9ac37e3a9..83d0048dc996 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationUpdate.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationUpdate.ts @@ -6,23 +6,28 @@ import { RUMApplicationUpdateAttributes } from "./RUMApplicationUpdateAttributes"; import { RUMApplicationUpdateType } from "./RUMApplicationUpdateType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application update. - */ +*/ export class RUMApplicationUpdate { /** * RUM application update attributes. - */ + */ "attributes"?: RUMApplicationUpdateAttributes; /** * RUM application ID. - */ + */ "id": string; /** * RUM application update type. - */ + */ "type": RUMApplicationUpdateType; /** @@ -41,32 +46,58 @@ export class RUMApplicationUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RUMApplicationUpdateAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RUMApplicationUpdateAttributes", }, - type: { - baseName: "type", - type: "RUMApplicationUpdateType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMApplicationUpdateType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.ts b/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.ts index 96ad5b9d352d..c7c55ea2189a 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application update attributes. - */ +*/ export class RUMApplicationUpdateAttributes { /** * Name of the RUM application. - */ + */ "name"?: string; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. - */ + */ "type"?: string; /** @@ -35,26 +40,52 @@ export class RUMApplicationUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.ts b/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.ts index 04093b197380..fb3b2b670a53 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { RUMApplicationUpdate } from "./RUMApplicationUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM application update request. - */ +*/ export class RUMApplicationUpdateRequest { /** * RUM application update. - */ + */ "data": RUMApplicationUpdate; /** @@ -32,23 +37,49 @@ export class RUMApplicationUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RUMApplicationUpdate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RUMApplicationUpdate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.ts b/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.ts index 32d515f995e9..833ec6e6d636 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * RUM application update type. - */ +*/ -export type RUMApplicationUpdateType = - | typeof RUM_APPLICATION_UPDATE - | UnparsedObject; -export const RUM_APPLICATION_UPDATE = "rum_application_update"; +export type RUMApplicationUpdateType = typeof RUM_APPLICATION_UPDATE | UnparsedObject; +export const RUM_APPLICATION_UPDATE = 'rum_application_update'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts b/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts index d37a12c68201..c470243403eb 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts @@ -5,15 +5,20 @@ */ import { RUMApplicationList } from "./RUMApplicationList"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * RUM applications response. - */ +*/ export class RUMApplicationsResponse { /** * RUM applications array response. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class RUMApplicationsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMApplicationsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMBucketResponse.ts b/packages/datadog-api-client-v2/models/RUMBucketResponse.ts index a65052df6f5d..d4b2008e5fdb 100644 --- a/packages/datadog-api-client-v2/models/RUMBucketResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMBucketResponse.ts @@ -5,20 +5,25 @@ */ import { RUMAggregateBucketValue } from "./RUMAggregateBucketValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Bucket values. - */ +*/ export class RUMBucketResponse { /** * The key-value pairs for each group-by. - */ - "by"?: { [key: string]: string }; + */ + "by"?: { [key: string]: string; }; /** * A map of the metric name to value for regular compute, or a list of values for a timeseries. - */ - "computes"?: { [key: string]: RUMAggregateBucketValue }; + */ + "computes"?: { [key: string]: RUMAggregateBucketValue; }; /** * A container for additional, undeclared properties. @@ -36,26 +41,52 @@ export class RUMBucketResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - by: { - baseName: "by", - type: "{ [key: string]: string; }", + "by": { + "baseName": "by", + "type": "{ [key: string]: string; }", }, - computes: { - baseName: "computes", - type: "{ [key: string]: RUMAggregateBucketValue; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "computes": { + "baseName": "computes", + "type": "{ [key: string]: RUMAggregateBucketValue; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMBucketResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMCompute.ts b/packages/datadog-api-client-v2/models/RUMCompute.ts index 3ed8d9621861..777cbe8a0e9a 100644 --- a/packages/datadog-api-client-v2/models/RUMCompute.ts +++ b/packages/datadog-api-client-v2/models/RUMCompute.ts @@ -6,28 +6,33 @@ import { RUMAggregationFunction } from "./RUMAggregationFunction"; import { RUMComputeType } from "./RUMComputeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A compute rule to compute metrics or timeseries. - */ +*/ export class RUMCompute { /** * An aggregation function. - */ + */ "aggregation": RUMAggregationFunction; /** * The time buckets' size (only used for type=timeseries) * Defaults to a resolution of 150 points. - */ + */ "interval"?: string; /** * The metric to use. - */ + */ "metric"?: string; /** * The type of compute. - */ + */ "type"?: RUMComputeType; /** @@ -46,35 +51,61 @@ export class RUMCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "RUMAggregationFunction", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "RUMAggregationFunction", + "required": true, }, - interval: { - baseName: "interval", - type: "string", + "interval": { + "baseName": "interval", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - type: { - baseName: "type", - type: "RUMComputeType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMComputeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMComputeType.ts b/packages/datadog-api-client-v2/models/RUMComputeType.ts index 49bf4a84d917..658a615ab0d2 100644 --- a/packages/datadog-api-client-v2/models/RUMComputeType.ts +++ b/packages/datadog-api-client-v2/models/RUMComputeType.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of compute. - */ +*/ -export type RUMComputeType = typeof TIMESERIES | typeof TOTAL | UnparsedObject; -export const TIMESERIES = "timeseries"; -export const TOTAL = "total"; +export type RUMComputeType = typeof TIMESERIES| typeof TOTAL | UnparsedObject; +export const TIMESERIES = 'timeseries'; +export const TOTAL = 'total'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMEvent.ts b/packages/datadog-api-client-v2/models/RUMEvent.ts index a05e230fc287..8858909b5524 100644 --- a/packages/datadog-api-client-v2/models/RUMEvent.ts +++ b/packages/datadog-api-client-v2/models/RUMEvent.ts @@ -6,23 +6,28 @@ import { RUMEventAttributes } from "./RUMEventAttributes"; import { RUMEventType } from "./RUMEventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of a RUM event after being processed and stored by Datadog. - */ +*/ export class RUMEvent { /** * JSON object containing all event attributes and their associated values. - */ + */ "attributes"?: RUMEventAttributes; /** * Unique ID of the event. - */ + */ "id"?: string; /** * Type of the event. - */ + */ "type"?: RUMEventType; /** @@ -41,30 +46,56 @@ export class RUMEvent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RUMEventAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "RUMEventAttributes", }, - type: { - baseName: "type", - type: "RUMEventType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RUMEventType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMEvent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMEventAttributes.ts b/packages/datadog-api-client-v2/models/RUMEventAttributes.ts index dbdd82e7ef6e..b3b8c1d42301 100644 --- a/packages/datadog-api-client-v2/models/RUMEventAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMEventAttributes.ts @@ -4,29 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all event attributes and their associated values. - */ +*/ export class RUMEventAttributes { /** * JSON object of attributes from RUM events. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * The name of the application or service generating RUM events. * It is used to switch from RUM to APM, so make sure you define the same * value when you use both products. - */ + */ "service"?: string; /** * Array of tags associated with your event. - */ + */ "tags"?: Array; /** * Timestamp of your event. - */ + */ "timestamp"?: Date; /** @@ -45,35 +50,61 @@ export class RUMEventAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - service: { - baseName: "service", - type: "string", + "service": { + "baseName": "service", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMEventAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMEventType.ts b/packages/datadog-api-client-v2/models/RUMEventType.ts index 69fbb832b391..870b63f3c2e5 100644 --- a/packages/datadog-api-client-v2/models/RUMEventType.ts +++ b/packages/datadog-api-client-v2/models/RUMEventType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the event. - */ +*/ export type RUMEventType = typeof RUM | UnparsedObject; -export const RUM = "rum"; +export const RUM = 'rum'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMEventsResponse.ts b/packages/datadog-api-client-v2/models/RUMEventsResponse.ts index 2399d280d502..a94540a1f8b1 100644 --- a/packages/datadog-api-client-v2/models/RUMEventsResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMEventsResponse.ts @@ -7,23 +7,28 @@ import { RUMEvent } from "./RUMEvent"; import { RUMResponseLinks } from "./RUMResponseLinks"; import { RUMResponseMetadata } from "./RUMResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all events matching the request and pagination information. - */ +*/ export class RUMEventsResponse { /** * Array of events matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: RUMResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: RUMResponseMetadata; /** @@ -42,30 +47,56 @@ export class RUMEventsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "RUMResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "RUMResponseMetadata", + "links": { + "baseName": "links", + "type": "RUMResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "RUMResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMEventsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMGroupBy.ts b/packages/datadog-api-client-v2/models/RUMGroupBy.ts index 8388545694d6..7fec26a37bd2 100644 --- a/packages/datadog-api-client-v2/models/RUMGroupBy.ts +++ b/packages/datadog-api-client-v2/models/RUMGroupBy.ts @@ -8,36 +8,41 @@ import { RUMGroupByHistogram } from "./RUMGroupByHistogram"; import { RUMGroupByMissing } from "./RUMGroupByMissing"; import { RUMGroupByTotal } from "./RUMGroupByTotal"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group-by rule. - */ +*/ export class RUMGroupBy { /** * The name of the facet to use (required). - */ + */ "facet": string; /** * Used to perform a histogram computation (only for measure facets). * Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. - */ + */ "histogram"?: RUMGroupByHistogram; /** * The maximum buckets to return for this group-by. - */ + */ "limit"?: number; /** * The value to use for logs that don't have the facet used to group by. - */ + */ "missing"?: RUMGroupByMissing; /** * A sort rule. - */ + */ "sort"?: RUMAggregateSort; /** * A resulting object to put the given computes in over all the matching records. - */ + */ "total"?: RUMGroupByTotal; /** @@ -56,44 +61,70 @@ export class RUMGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - histogram: { - baseName: "histogram", - type: "RUMGroupByHistogram", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "histogram": { + "baseName": "histogram", + "type": "RUMGroupByHistogram", }, - missing: { - baseName: "missing", - type: "RUMGroupByMissing", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - sort: { - baseName: "sort", - type: "RUMAggregateSort", + "missing": { + "baseName": "missing", + "type": "RUMGroupByMissing", }, - total: { - baseName: "total", - type: "RUMGroupByTotal", + "sort": { + "baseName": "sort", + "type": "RUMAggregateSort", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "RUMGroupByTotal", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMGroupByHistogram.ts b/packages/datadog-api-client-v2/models/RUMGroupByHistogram.ts index 4019b96aee9d..86c65dc04349 100644 --- a/packages/datadog-api-client-v2/models/RUMGroupByHistogram.ts +++ b/packages/datadog-api-client-v2/models/RUMGroupByHistogram.ts @@ -4,26 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to perform a histogram computation (only for measure facets). * Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. - */ +*/ export class RUMGroupByHistogram { /** * The bin size of the histogram buckets. - */ + */ "interval": number; /** * The maximum value for the measure used in the histogram * (values greater than this one are filtered out). - */ + */ "max": number; /** * The minimum value for the measure used in the histogram * (values smaller than this one are filtered out). - */ + */ "min": number; /** @@ -42,36 +47,62 @@ export class RUMGroupByHistogram { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - interval: { - baseName: "interval", - type: "number", - required: true, - format: "double", - }, - max: { - baseName: "max", - type: "number", - required: true, - format: "double", + "interval": { + "baseName": "interval", + "type": "number", + "required": true, + "format": "double", }, - min: { - baseName: "min", - type: "number", - required: true, - format: "double", + "max": { + "baseName": "max", + "type": "number", + "required": true, + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "min": { + "baseName": "min", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMGroupByHistogram.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMGroupByMissing.ts b/packages/datadog-api-client-v2/models/RUMGroupByMissing.ts index 783ee9d01cfe..1a41e9033349 100644 --- a/packages/datadog-api-client-v2/models/RUMGroupByMissing.ts +++ b/packages/datadog-api-client-v2/models/RUMGroupByMissing.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The value to use for logs that don't have the facet used to group by. - */ +*/ -export type RUMGroupByMissing = string | number | UnparsedObject; +export type RUMGroupByMissing = string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMGroupByTotal.ts b/packages/datadog-api-client-v2/models/RUMGroupByTotal.ts index a8561408f0b9..ccf5f84c44bc 100644 --- a/packages/datadog-api-client-v2/models/RUMGroupByTotal.ts +++ b/packages/datadog-api-client-v2/models/RUMGroupByTotal.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A resulting object to put the given computes in over all the matching records. - */ +*/ -export type RUMGroupByTotal = boolean | string | number | UnparsedObject; +export type RUMGroupByTotal = boolean | string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMQueryFilter.ts b/packages/datadog-api-client-v2/models/RUMQueryFilter.ts index 97504fafa690..a5c884478ea6 100644 --- a/packages/datadog-api-client-v2/models/RUMQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/RUMQueryFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The search and filter query settings. - */ +*/ export class RUMQueryFilter { /** * The minimum time for the requested events; supports date (in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with full date, hours, minutes, and the `Z` UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds). - */ + */ "from"?: string; /** * The search query following the RUM search syntax. - */ + */ "query"?: string; /** * The maximum time for the requested events; supports date (in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with full date, hours, minutes, and the `Z` UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds). - */ + */ "to"?: string; /** @@ -39,30 +44,56 @@ export class RUMQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - to: { - baseName: "to", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMQueryOptions.ts b/packages/datadog-api-client-v2/models/RUMQueryOptions.ts index 363e2b301518..15ae08a7663e 100644 --- a/packages/datadog-api-client-v2/models/RUMQueryOptions.ts +++ b/packages/datadog-api-client-v2/models/RUMQueryOptions.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Global query options that are used during the query. * Note: Only supply timezone or time offset, not both. Otherwise, the query fails. - */ +*/ export class RUMQueryOptions { /** * The time offset (in seconds) to apply to the query. - */ + */ "timeOffset"?: number; /** * The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class RUMQueryOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeOffset: { - baseName: "time_offset", - type: "number", - format: "int64", + "timeOffset": { + "baseName": "time_offset", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMQueryOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMQueryPageOptions.ts b/packages/datadog-api-client-v2/models/RUMQueryPageOptions.ts index f7196f580f88..f92f502e653c 100644 --- a/packages/datadog-api-client-v2/models/RUMQueryPageOptions.ts +++ b/packages/datadog-api-client-v2/models/RUMQueryPageOptions.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes for listing events. - */ +*/ export class RUMQueryPageOptions { /** * List following results with a cursor provided in the previous query. - */ + */ "cursor"?: string; /** * Maximum number of events in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class RUMQueryPageOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMQueryPageOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMResponseLinks.ts b/packages/datadog-api-client-v2/models/RUMResponseLinks.ts index 9169d21ef64c..534421a29044 100644 --- a/packages/datadog-api-client-v2/models/RUMResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/RUMResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class RUMResponseLinks { /** * Link for the next set of results. Note that the request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class RUMResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMResponseMetadata.ts b/packages/datadog-api-client-v2/models/RUMResponseMetadata.ts index 83420e7153b0..e05a054442f6 100644 --- a/packages/datadog-api-client-v2/models/RUMResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/RUMResponseMetadata.ts @@ -7,32 +7,37 @@ import { RUMResponsePage } from "./RUMResponsePage"; import { RUMResponseStatus } from "./RUMResponseStatus"; import { RUMWarning } from "./RUMWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class RUMResponseMetadata { /** * The time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * Paging attributes. - */ + */ "page"?: RUMResponsePage; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The status of the response. - */ + */ "status"?: RUMResponseStatus; /** * A list of warnings (non-fatal errors) encountered. Partial results may return if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -51,39 +56,65 @@ export class RUMResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "RUMResponsePage", + "page": { + "baseName": "page", + "type": "RUMResponsePage", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "RUMResponseStatus", + "status": { + "baseName": "status", + "type": "RUMResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMResponsePage.ts b/packages/datadog-api-client-v2/models/RUMResponsePage.ts index 8b911a83648a..d816f4e93a63 100644 --- a/packages/datadog-api-client-v2/models/RUMResponsePage.ts +++ b/packages/datadog-api-client-v2/models/RUMResponsePage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class RUMResponsePage { /** * The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`. - */ + */ "after"?: string; /** @@ -31,22 +36,48 @@ export class RUMResponsePage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMResponsePage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMResponseStatus.ts b/packages/datadog-api-client-v2/models/RUMResponseStatus.ts index cc0e53717f60..25277b7e34bc 100644 --- a/packages/datadog-api-client-v2/models/RUMResponseStatus.ts +++ b/packages/datadog-api-client-v2/models/RUMResponseStatus.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the response. - */ +*/ -export type RUMResponseStatus = typeof DONE | typeof TIMEOUT | UnparsedObject; -export const DONE = "done"; -export const TIMEOUT = "timeout"; +export type RUMResponseStatus = typeof DONE| typeof TIMEOUT | UnparsedObject; +export const DONE = 'done'; +export const TIMEOUT = 'timeout'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMSearchEventsRequest.ts b/packages/datadog-api-client-v2/models/RUMSearchEventsRequest.ts index 968b309d1edc..f419766fcd45 100644 --- a/packages/datadog-api-client-v2/models/RUMSearchEventsRequest.ts +++ b/packages/datadog-api-client-v2/models/RUMSearchEventsRequest.ts @@ -8,28 +8,33 @@ import { RUMQueryOptions } from "./RUMQueryOptions"; import { RUMQueryPageOptions } from "./RUMQueryPageOptions"; import { RUMSort } from "./RUMSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a RUM events list. - */ +*/ export class RUMSearchEventsRequest { /** * The search and filter query settings. - */ + */ "filter"?: RUMQueryFilter; /** * Global query options that are used during the query. * Note: Only supply timezone or time offset, not both. Otherwise, the query fails. - */ + */ "options"?: RUMQueryOptions; /** * Paging attributes for listing events. - */ + */ "page"?: RUMQueryPageOptions; /** * Sort parameters when querying events. - */ + */ "sort"?: RUMSort; /** @@ -48,34 +53,60 @@ export class RUMSearchEventsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "RUMQueryFilter", + "filter": { + "baseName": "filter", + "type": "RUMQueryFilter", }, - options: { - baseName: "options", - type: "RUMQueryOptions", + "options": { + "baseName": "options", + "type": "RUMQueryOptions", }, - page: { - baseName: "page", - type: "RUMQueryPageOptions", + "page": { + "baseName": "page", + "type": "RUMQueryPageOptions", }, - sort: { - baseName: "sort", - type: "RUMSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "RUMSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMSearchEventsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RUMSort.ts b/packages/datadog-api-client-v2/models/RUMSort.ts index e35c2e13ccd9..40332cfb31cd 100644 --- a/packages/datadog-api-client-v2/models/RUMSort.ts +++ b/packages/datadog-api-client-v2/models/RUMSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sort parameters when querying events. - */ +*/ -export type RUMSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type RUMSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMSortOrder.ts b/packages/datadog-api-client-v2/models/RUMSortOrder.ts index eb552a2d0d39..bda1405e823d 100644 --- a/packages/datadog-api-client-v2/models/RUMSortOrder.ts +++ b/packages/datadog-api-client-v2/models/RUMSortOrder.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The order to use, ascending or descending. - */ +*/ -export type RUMSortOrder = - | typeof ASCENDING - | typeof DESCENDING - | UnparsedObject; -export const ASCENDING = "asc"; -export const DESCENDING = "desc"; +export type RUMSortOrder = typeof ASCENDING| typeof DESCENDING | UnparsedObject; +export const ASCENDING = 'asc'; +export const DESCENDING = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RUMWarning.ts b/packages/datadog-api-client-v2/models/RUMWarning.ts index 4833247fd4f8..34ab02ef2de1 100644 --- a/packages/datadog-api-client-v2/models/RUMWarning.ts +++ b/packages/datadog-api-client-v2/models/RUMWarning.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A warning message indicating something that went wrong with the query. - */ +*/ export class RUMWarning { /** * A unique code for this type of warning. - */ + */ "code"?: string; /** * A detailed explanation of this specific warning. - */ + */ "detail"?: string; /** * A short human-readable summary of the warning. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class RUMWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - detail: { - baseName: "detail", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RUMWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ReadinessGate.ts b/packages/datadog-api-client-v2/models/ReadinessGate.ts index 93e3be6677cc..417efba2fc99 100644 --- a/packages/datadog-api-client-v2/models/ReadinessGate.ts +++ b/packages/datadog-api-client-v2/models/ReadinessGate.ts @@ -5,15 +5,20 @@ */ import { ReadinessGateThresholdType } from "./ReadinessGateThresholdType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to merge multiple branches into a single branch. - */ +*/ export class ReadinessGate { /** * The definition of `ReadinessGateThresholdType` object. - */ + */ "thresholdType": ReadinessGateThresholdType; /** @@ -32,23 +37,49 @@ export class ReadinessGate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - thresholdType: { - baseName: "thresholdType", - type: "ReadinessGateThresholdType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "thresholdType": { + "baseName": "thresholdType", + "type": "ReadinessGateThresholdType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ReadinessGate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ReadinessGateThresholdType.ts b/packages/datadog-api-client-v2/models/ReadinessGateThresholdType.ts index e11cea39fce8..5209a7af8d3b 100644 --- a/packages/datadog-api-client-v2/models/ReadinessGateThresholdType.ts +++ b/packages/datadog-api-client-v2/models/ReadinessGateThresholdType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `ReadinessGateThresholdType` object. - */ +*/ -export type ReadinessGateThresholdType = - | typeof ANY - | typeof ALL - | UnparsedObject; -export const ANY = "ANY"; -export const ALL = "ALL"; +export type ReadinessGateThresholdType = typeof ANY| typeof ALL | UnparsedObject; +export const ANY = 'ANY'; +export const ALL = 'ALL'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RelationType.ts b/packages/datadog-api-client-v2/models/RelationType.ts index 89007afd47a1..7a2424835a1d 100644 --- a/packages/datadog-api-client-v2/models/RelationType.ts +++ b/packages/datadog-api-client-v2/models/RelationType.ts @@ -4,31 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Supported relation types. - */ +*/ -export type RelationType = - | typeof RELATIONTYPEOWNS - | typeof RELATIONTYPEOWNEDBY - | typeof RELATIONTYPEDEPENDSON - | typeof RELATIONTYPEDEPENDENCYOF - | typeof RELATIONTYPEPARTSOF - | typeof RELATIONTYPEHASPART - | typeof RELATIONTYPEOTHEROWNS - | typeof RELATIONTYPEOTHEROWNEDBY - | typeof RELATIONTYPEIMPLEMENTEDBY - | typeof RELATIONTYPEIMPLEMENTS - | UnparsedObject; -export const RELATIONTYPEOWNS = "RelationTypeOwns"; -export const RELATIONTYPEOWNEDBY = "RelationTypeOwnedBy"; -export const RELATIONTYPEDEPENDSON = "RelationTypeDependsOn"; -export const RELATIONTYPEDEPENDENCYOF = "RelationTypeDependencyOf"; -export const RELATIONTYPEPARTSOF = "RelationTypePartsOf"; -export const RELATIONTYPEHASPART = "RelationTypeHasPart"; -export const RELATIONTYPEOTHEROWNS = "RelationTypeOtherOwns"; -export const RELATIONTYPEOTHEROWNEDBY = "RelationTypeOtherOwnedBy"; -export const RELATIONTYPEIMPLEMENTEDBY = "RelationTypeImplementedBy"; -export const RELATIONTYPEIMPLEMENTS = "RelationTypeImplements"; +export type RelationType = typeof RELATIONTYPEOWNS| typeof RELATIONTYPEOWNEDBY| typeof RELATIONTYPEDEPENDSON| typeof RELATIONTYPEDEPENDENCYOF| typeof RELATIONTYPEPARTSOF| typeof RELATIONTYPEHASPART| typeof RELATIONTYPEOTHEROWNS| typeof RELATIONTYPEOTHEROWNEDBY| typeof RELATIONTYPEIMPLEMENTEDBY| typeof RELATIONTYPEIMPLEMENTS | UnparsedObject; +export const RELATIONTYPEOWNS = 'RelationTypeOwns'; +export const RELATIONTYPEOWNEDBY = 'RelationTypeOwnedBy'; +export const RELATIONTYPEDEPENDSON = 'RelationTypeDependsOn'; +export const RELATIONTYPEDEPENDENCYOF = 'RelationTypeDependencyOf'; +export const RELATIONTYPEPARTSOF = 'RelationTypePartsOf'; +export const RELATIONTYPEHASPART = 'RelationTypeHasPart'; +export const RELATIONTYPEOTHEROWNS = 'RelationTypeOtherOwns'; +export const RELATIONTYPEOTHEROWNEDBY = 'RelationTypeOtherOwnedBy'; +export const RELATIONTYPEIMPLEMENTEDBY = 'RelationTypeImplementedBy'; +export const RELATIONTYPEIMPLEMENTS = 'RelationTypeImplements'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RelationshipItem.ts b/packages/datadog-api-client-v2/models/RelationshipItem.ts index e23ae23b1b57..38135b728b8a 100644 --- a/packages/datadog-api-client-v2/models/RelationshipItem.ts +++ b/packages/datadog-api-client-v2/models/RelationshipItem.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship entry. - */ +*/ export class RelationshipItem { /** * Associated data ID. - */ + */ "id"?: string; /** * Relationship type. - */ + */ "type"?: string; /** @@ -35,26 +40,52 @@ export class RelationshipItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.ts index c65194354a1b..0be774b72bce 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.ts @@ -5,15 +5,20 @@ */ import { RelationshipToIncidentAttachmentData } from "./RelationshipToIncidentAttachmentData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A relationship reference for attachments. - */ +*/ export class RelationshipToIncidentAttachment { /** * An array of incident attachments. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToIncidentAttachment { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentAttachment.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.ts index 5c6aaca77f90..3d5ab9d29ed1 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.ts @@ -5,19 +5,24 @@ */ import { IncidentAttachmentType } from "./IncidentAttachmentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attachment relationship data. - */ +*/ export class RelationshipToIncidentAttachmentData { /** * A unique identifier that represents the attachment. - */ + */ "id": string; /** * The incident attachment resource type. - */ + */ "type": IncidentAttachmentType; /** @@ -36,28 +41,54 @@ export class RelationshipToIncidentAttachmentData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "IncidentAttachmentType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentAttachmentType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentAttachmentData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.ts index 4e6cd2ed24f0..c01719ea0bb5 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.ts @@ -5,19 +5,24 @@ */ import { IncidentImpactsType } from "./IncidentImpactsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to impact object. - */ +*/ export class RelationshipToIncidentImpactData { /** * A unique identifier that represents the impact. - */ + */ "id": string; /** * The incident impacts type. - */ + */ "type": IncidentImpactsType; /** @@ -36,28 +41,54 @@ export class RelationshipToIncidentImpactData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "IncidentImpactsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentImpactsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentImpactData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.ts index be747b5492b9..3d18d7448b5c 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.ts @@ -5,15 +5,20 @@ */ import { RelationshipToIncidentImpactData } from "./RelationshipToIncidentImpactData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to impacts. - */ +*/ export class RelationshipToIncidentImpacts { /** * An array of incident impacts. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToIncidentImpacts { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentImpacts.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadataData.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadataData.ts index 6b9bb819e961..cd4d36becf4c 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadataData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadataData.ts @@ -5,19 +5,24 @@ */ import { IncidentIntegrationMetadataType } from "./IncidentIntegrationMetadataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A relationship reference for an integration metadata object. - */ +*/ export class RelationshipToIncidentIntegrationMetadataData { /** * A unique identifier that represents the integration metadata. - */ + */ "id": string; /** * Integration metadata resource type. - */ + */ "type": IncidentIntegrationMetadataType; /** @@ -36,28 +41,54 @@ export class RelationshipToIncidentIntegrationMetadataData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "IncidentIntegrationMetadataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentIntegrationMetadataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentIntegrationMetadataData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.ts index 0c034cdcb21b..033f3fb5b1d0 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.ts @@ -5,15 +5,20 @@ */ import { RelationshipToIncidentIntegrationMetadataData } from "./RelationshipToIncidentIntegrationMetadataData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A relationship reference for multiple integration metadata objects. - */ +*/ export class RelationshipToIncidentIntegrationMetadatas { /** * Integration metadata relationship array - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToIncidentIntegrationMetadatas { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentIntegrationMetadatas.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortem.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortem.ts index 7904fc6d15d0..80955203b1fb 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortem.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortem.ts @@ -5,15 +5,20 @@ */ import { RelationshipToIncidentPostmortemData } from "./RelationshipToIncidentPostmortemData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A relationship reference for postmortems. - */ +*/ export class RelationshipToIncidentPostmortem { /** * The postmortem relationship data. - */ + */ "data": RelationshipToIncidentPostmortemData; /** @@ -32,23 +37,49 @@ export class RelationshipToIncidentPostmortem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToIncidentPostmortemData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToIncidentPostmortemData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentPostmortem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortemData.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortemData.ts index cfbbc34049ea..9f7831761eb5 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortemData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentPostmortemData.ts @@ -5,19 +5,24 @@ */ import { IncidentPostmortemType } from "./IncidentPostmortemType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The postmortem relationship data. - */ +*/ export class RelationshipToIncidentPostmortemData { /** * A unique identifier that represents the postmortem. - */ + */ "id": string; /** * Incident postmortem resource type. - */ + */ "type": IncidentPostmortemType; /** @@ -36,28 +41,54 @@ export class RelationshipToIncidentPostmortemData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "IncidentPostmortemType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentPostmortemType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentPostmortemData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.ts index 9450c5ae4e1c..0e6520c8cad8 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.ts @@ -5,19 +5,24 @@ */ import { IncidentRespondersType } from "./IncidentRespondersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to impact object. - */ +*/ export class RelationshipToIncidentResponderData { /** * A unique identifier that represents the responder. - */ + */ "id": string; /** * The incident responders type. - */ + */ "type": IncidentRespondersType; /** @@ -36,28 +41,54 @@ export class RelationshipToIncidentResponderData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "IncidentRespondersType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentRespondersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentResponderData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.ts index c57803e26ae8..88446e35c857 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.ts @@ -5,15 +5,20 @@ */ import { RelationshipToIncidentResponderData } from "./RelationshipToIncidentResponderData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to incident responders. - */ +*/ export class RelationshipToIncidentResponders { /** * An array of incident responders. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToIncidentResponders { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentResponders.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.ts index fab7f9d4eadd..9de3e3a6008d 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.ts @@ -5,19 +5,24 @@ */ import { IncidentUserDefinedFieldType } from "./IncidentUserDefinedFieldType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to impact object. - */ +*/ export class RelationshipToIncidentUserDefinedFieldData { /** * A unique identifier that represents the responder. - */ + */ "id": string; /** * The incident user defined fields type. - */ + */ "type": IncidentUserDefinedFieldType; /** @@ -36,28 +41,54 @@ export class RelationshipToIncidentUserDefinedFieldData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "IncidentUserDefinedFieldType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "IncidentUserDefinedFieldType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentUserDefinedFieldData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.ts b/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.ts index 8131b063f58a..a1f9c89731ac 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.ts @@ -5,15 +5,20 @@ */ import { RelationshipToIncidentUserDefinedFieldData } from "./RelationshipToIncidentUserDefinedFieldData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to incident user defined fields. - */ +*/ export class RelationshipToIncidentUserDefinedFields { /** * An array of user defined fields. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToIncidentUserDefinedFields { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToIncidentUserDefinedFields.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToOrganization.ts b/packages/datadog-api-client-v2/models/RelationshipToOrganization.ts index c25204766253..7d3c551a78c4 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToOrganization.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToOrganization.ts @@ -5,15 +5,20 @@ */ import { RelationshipToOrganizationData } from "./RelationshipToOrganizationData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to an organization. - */ +*/ export class RelationshipToOrganization { /** * Relationship to organization object. - */ + */ "data": RelationshipToOrganizationData; /** @@ -32,23 +37,49 @@ export class RelationshipToOrganization { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToOrganizationData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToOrganizationData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToOrganization.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToOrganizationData.ts b/packages/datadog-api-client-v2/models/RelationshipToOrganizationData.ts index 0e52f0a6edbc..8c677aa42dc9 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToOrganizationData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToOrganizationData.ts @@ -5,19 +5,24 @@ */ import { OrganizationsType } from "./OrganizationsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to organization object. - */ +*/ export class RelationshipToOrganizationData { /** * ID of the organization. - */ + */ "id": string; /** * Organizations resource type. - */ + */ "type": OrganizationsType; /** @@ -36,28 +41,54 @@ export class RelationshipToOrganizationData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "OrganizationsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "OrganizationsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToOrganizationData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToOrganizations.ts b/packages/datadog-api-client-v2/models/RelationshipToOrganizations.ts index eadac2d080b3..2cf45c1fa93b 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToOrganizations.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToOrganizations.ts @@ -5,15 +5,20 @@ */ import { RelationshipToOrganizationData } from "./RelationshipToOrganizationData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to organizations. - */ +*/ export class RelationshipToOrganizations { /** * Relationships to organization objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToOrganizations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToOrganizations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToOutcome.ts b/packages/datadog-api-client-v2/models/RelationshipToOutcome.ts index 4efb3eec579b..767b09b379fb 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToOutcome.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToOutcome.ts @@ -5,15 +5,20 @@ */ import { RelationshipToOutcomeData } from "./RelationshipToOutcomeData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API relationship to a scorecard outcome. - */ +*/ export class RelationshipToOutcome { /** * The JSON:API relationship to an outcome, which returns the related rule id. - */ + */ "data"?: RelationshipToOutcomeData; /** @@ -32,22 +37,48 @@ export class RelationshipToOutcome { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToOutcomeData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToOutcomeData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToOutcome.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToOutcomeData.ts b/packages/datadog-api-client-v2/models/RelationshipToOutcomeData.ts index c4e2b8024b64..cd158840d74c 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToOutcomeData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToOutcomeData.ts @@ -5,19 +5,24 @@ */ import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API relationship to an outcome, which returns the related rule id. - */ +*/ export class RelationshipToOutcomeData { /** * The unique ID for a scorecard rule. - */ + */ "id"?: string; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -36,26 +41,52 @@ export class RelationshipToOutcomeData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "RuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToOutcomeData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToPermission.ts b/packages/datadog-api-client-v2/models/RelationshipToPermission.ts index d127fc722e12..018d16a3fe88 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToPermission.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToPermission.ts @@ -5,15 +5,20 @@ */ import { RelationshipToPermissionData } from "./RelationshipToPermissionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to a permissions object. - */ +*/ export class RelationshipToPermission { /** * Relationship to permission object. - */ + */ "data"?: RelationshipToPermissionData; /** @@ -32,22 +37,48 @@ export class RelationshipToPermission { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToPermissionData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToPermissionData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToPermission.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToPermissionData.ts b/packages/datadog-api-client-v2/models/RelationshipToPermissionData.ts index a69e93eeb5ff..5e61a8b2e55e 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToPermissionData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToPermissionData.ts @@ -5,19 +5,24 @@ */ import { PermissionsType } from "./PermissionsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to permission object. - */ +*/ export class RelationshipToPermissionData { /** * ID of the permission. - */ + */ "id"?: string; /** * Permissions resource type. - */ + */ "type"?: PermissionsType; /** @@ -36,26 +41,52 @@ export class RelationshipToPermissionData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "PermissionsType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "PermissionsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToPermissionData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToPermissions.ts b/packages/datadog-api-client-v2/models/RelationshipToPermissions.ts index f386a3cf940d..1827b45ab9a5 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToPermissions.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToPermissions.ts @@ -5,15 +5,20 @@ */ import { RelationshipToPermissionData } from "./RelationshipToPermissionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to multiple permissions objects. - */ +*/ export class RelationshipToPermissions { /** * Relationships to permission objects. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class RelationshipToPermissions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToPermissions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToRole.ts b/packages/datadog-api-client-v2/models/RelationshipToRole.ts index 454907690303..d837dc4bb504 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToRole.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToRole.ts @@ -5,15 +5,20 @@ */ import { RelationshipToRoleData } from "./RelationshipToRoleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to role. - */ +*/ export class RelationshipToRole { /** * Relationship to role object. - */ + */ "data"?: RelationshipToRoleData; /** @@ -32,22 +37,48 @@ export class RelationshipToRole { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToRoleData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToRoleData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToRole.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToRoleData.ts b/packages/datadog-api-client-v2/models/RelationshipToRoleData.ts index 10e083eddb51..41382e3ca1b4 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToRoleData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToRoleData.ts @@ -5,19 +5,24 @@ */ import { RolesType } from "./RolesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to role object. - */ +*/ export class RelationshipToRoleData { /** * The unique identifier of the role. - */ + */ "id"?: string; /** * Roles type. - */ + */ "type"?: RolesType; /** @@ -36,26 +41,52 @@ export class RelationshipToRoleData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "RolesType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToRoleData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToRoles.ts b/packages/datadog-api-client-v2/models/RelationshipToRoles.ts index 9d8edd6fc3f9..08dc11e48dcc 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToRoles.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToRoles.ts @@ -5,15 +5,20 @@ */ import { RelationshipToRoleData } from "./RelationshipToRoleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to roles. - */ +*/ export class RelationshipToRoles { /** * An array containing type and the unique identifier of a role. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class RelationshipToRoles { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToRoles.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToRule.ts b/packages/datadog-api-client-v2/models/RelationshipToRule.ts index 9d025307b48e..860f08ed7eed 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToRule.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToRule.ts @@ -5,15 +5,20 @@ */ import { RelationshipToRuleData } from "./RelationshipToRuleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Scorecard create rule response relationship. - */ +*/ export class RelationshipToRule { /** * Relationship data for a rule. - */ + */ "scorecard"?: RelationshipToRuleData; /** @@ -32,22 +37,48 @@ export class RelationshipToRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - scorecard: { - baseName: "scorecard", - type: "RelationshipToRuleData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scorecard": { + "baseName": "scorecard", + "type": "RelationshipToRuleData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToRuleData.ts b/packages/datadog-api-client-v2/models/RelationshipToRuleData.ts index 723a354617d0..ada72c08c884 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToRuleData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToRuleData.ts @@ -5,15 +5,20 @@ */ import { RelationshipToRuleDataObject } from "./RelationshipToRuleDataObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship data for a rule. - */ +*/ export class RelationshipToRuleData { /** * Rule relationship data. - */ + */ "data"?: RelationshipToRuleDataObject; /** @@ -32,22 +37,48 @@ export class RelationshipToRuleData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToRuleDataObject", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToRuleDataObject", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToRuleData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToRuleDataObject.ts b/packages/datadog-api-client-v2/models/RelationshipToRuleDataObject.ts index 5f9cd848e476..31d46545fc60 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToRuleDataObject.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToRuleDataObject.ts @@ -5,19 +5,24 @@ */ import { ScorecardType } from "./ScorecardType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rule relationship data. - */ +*/ export class RelationshipToRuleDataObject { /** * The unique ID for a scorecard. - */ + */ "id"?: string; /** * The JSON:API type for scorecard. - */ + */ "type"?: ScorecardType; /** @@ -36,26 +41,52 @@ export class RelationshipToRuleDataObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "ScorecardType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ScorecardType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToRuleDataObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttribute.ts b/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttribute.ts index 59c9dd0b89f3..922193d5a4fa 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttribute.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttribute.ts @@ -5,15 +5,20 @@ */ import { RelationshipToSAMLAssertionAttributeData } from "./RelationshipToSAMLAssertionAttributeData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * AuthN Mapping relationship to SAML Assertion Attribute. - */ +*/ export class RelationshipToSAMLAssertionAttribute { /** * Data of AuthN Mapping relationship to SAML Assertion Attribute. - */ + */ "data": RelationshipToSAMLAssertionAttributeData; /** @@ -32,23 +37,49 @@ export class RelationshipToSAMLAssertionAttribute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToSAMLAssertionAttributeData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToSAMLAssertionAttributeData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToSAMLAssertionAttribute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttributeData.ts b/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttributeData.ts index 4bd77afb5173..074c4aced478 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttributeData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToSAMLAssertionAttributeData.ts @@ -5,19 +5,24 @@ */ import { SAMLAssertionAttributesType } from "./SAMLAssertionAttributesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data of AuthN Mapping relationship to SAML Assertion Attribute. - */ +*/ export class RelationshipToSAMLAssertionAttributeData { /** * The ID of the SAML assertion attribute. - */ + */ "id": string; /** * SAML assertion attributes resource type. - */ + */ "type": SAMLAssertionAttributesType; /** @@ -36,28 +41,54 @@ export class RelationshipToSAMLAssertionAttributeData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "SAMLAssertionAttributesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SAMLAssertionAttributesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToSAMLAssertionAttributeData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToTeam.ts b/packages/datadog-api-client-v2/models/RelationshipToTeam.ts index b45a1dbdf7db..10c24aa2cb17 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToTeam.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToTeam.ts @@ -5,15 +5,20 @@ */ import { RelationshipToTeamData } from "./RelationshipToTeamData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to team. - */ +*/ export class RelationshipToTeam { /** * Relationship to Team object. - */ + */ "data"?: RelationshipToTeamData; /** @@ -32,22 +37,48 @@ export class RelationshipToTeam { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToTeamData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToTeamData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToTeam.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToTeamData.ts b/packages/datadog-api-client-v2/models/RelationshipToTeamData.ts index 578a97a0d6dc..d0b416dbadc9 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToTeamData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToTeamData.ts @@ -5,19 +5,24 @@ */ import { TeamType } from "./TeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to Team object. - */ +*/ export class RelationshipToTeamData { /** * The unique identifier of the team. - */ + */ "id"?: string; /** * Team type - */ + */ "type"?: TeamType; /** @@ -36,26 +41,52 @@ export class RelationshipToTeamData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "TeamType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToTeamData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.ts b/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.ts index 2999f7ac7eb2..85e37bdf8be6 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.ts @@ -5,19 +5,24 @@ */ import { TeamLinkType } from "./TeamLinkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship between a link and a team - */ +*/ export class RelationshipToTeamLinkData { /** * The team link's identifier - */ + */ "id": string; /** * Team link type - */ + */ "type": TeamLinkType; /** @@ -36,28 +41,54 @@ export class RelationshipToTeamLinkData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "TeamLinkType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamLinkType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToTeamLinkData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.ts b/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.ts index 7c659086adda..74db184e8127 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.ts @@ -6,19 +6,24 @@ import { RelationshipToTeamLinkData } from "./RelationshipToTeamLinkData"; import { TeamRelationshipsLinks } from "./TeamRelationshipsLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship between a team and a team link - */ +*/ export class RelationshipToTeamLinks { /** * Related team links - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: TeamRelationshipsLinks; /** @@ -37,26 +42,52 @@ export class RelationshipToTeamLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - links: { - baseName: "links", - type: "TeamRelationshipsLinks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "links": { + "baseName": "links", + "type": "TeamRelationshipsLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToTeamLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUser.ts b/packages/datadog-api-client-v2/models/RelationshipToUser.ts index 8a95c6dcef3a..d0da51f3251b 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUser.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUser.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUserData } from "./RelationshipToUserData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user. - */ +*/ export class RelationshipToUser { /** * Relationship to user object. - */ + */ "data": RelationshipToUserData; /** @@ -32,23 +37,49 @@ export class RelationshipToUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToUserData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToUserData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserData.ts b/packages/datadog-api-client-v2/models/RelationshipToUserData.ts index 55d6157bed30..d6fa089ca9c1 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserData.ts @@ -5,19 +5,24 @@ */ import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user object. - */ +*/ export class RelationshipToUserData { /** * A unique identifier that represents the user. - */ + */ "id": string; /** * Users resource type. - */ + */ "type": UsersType; /** @@ -36,28 +41,54 @@ export class RelationshipToUserData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UsersType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.ts b/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.ts index cc96c9a4d92b..54ca627788ed 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.ts @@ -6,19 +6,24 @@ import { RelationshipToUserTeamPermissionData } from "./RelationshipToUserTeamPermissionData"; import { TeamRelationshipsLinks } from "./TeamRelationshipsLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship between a user team permission and a team - */ +*/ export class RelationshipToUserTeamPermission { /** * Related user team permission data - */ + */ "data"?: RelationshipToUserTeamPermissionData; /** * Links attributes. - */ + */ "links"?: TeamRelationshipsLinks; /** @@ -37,26 +42,52 @@ export class RelationshipToUserTeamPermission { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToUserTeamPermissionData", + "data": { + "baseName": "data", + "type": "RelationshipToUserTeamPermissionData", }, - links: { - baseName: "links", - type: "TeamRelationshipsLinks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "links": { + "baseName": "links", + "type": "TeamRelationshipsLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserTeamPermission.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.ts b/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.ts index e5b484480d66..b96a36a011e2 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.ts @@ -5,19 +5,24 @@ */ import { UserTeamPermissionType } from "./UserTeamPermissionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Related user team permission data - */ +*/ export class RelationshipToUserTeamPermissionData { /** * The ID of the user team permission - */ + */ "id": string; /** * User team permission type - */ + */ "type": UserTeamPermissionType; /** @@ -36,28 +41,54 @@ export class RelationshipToUserTeamPermissionData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UserTeamPermissionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamPermissionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserTeamPermissionData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeam.ts b/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeam.ts index eabd85ec3048..d913b1f05d7e 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeam.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeam.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUserTeamTeamData } from "./RelationshipToUserTeamTeamData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship between team membership and team - */ +*/ export class RelationshipToUserTeamTeam { /** * The team associated with the membership - */ + */ "data": RelationshipToUserTeamTeamData; /** @@ -32,23 +37,49 @@ export class RelationshipToUserTeamTeam { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToUserTeamTeamData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToUserTeamTeamData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserTeamTeam.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeamData.ts b/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeamData.ts index 2bd60656d32a..7927c2c3b12f 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeamData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserTeamTeamData.ts @@ -5,19 +5,24 @@ */ import { UserTeamTeamType } from "./UserTeamTeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The team associated with the membership - */ +*/ export class RelationshipToUserTeamTeamData { /** * The ID of the team associated with the membership - */ + */ "id": string; /** * User team team type - */ + */ "type": UserTeamTeamType; /** @@ -36,28 +41,54 @@ export class RelationshipToUserTeamTeamData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UserTeamTeamType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamTeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserTeamTeamData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.ts b/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.ts index 14b588f3180e..da8db1667746 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUserTeamUserData } from "./RelationshipToUserTeamUserData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship between team membership and user - */ +*/ export class RelationshipToUserTeamUser { /** * A user's relationship with a team - */ + */ "data": RelationshipToUserTeamUserData; /** @@ -32,23 +37,49 @@ export class RelationshipToUserTeamUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RelationshipToUserTeamUserData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RelationshipToUserTeamUserData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserTeamUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.ts b/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.ts index e029af3bf9a6..206f9408459e 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.ts @@ -5,19 +5,24 @@ */ import { UserTeamUserType } from "./UserTeamUserType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A user's relationship with a team - */ +*/ export class RelationshipToUserTeamUserData { /** * The ID of the user associated with the team - */ + */ "id": string; /** * User team user type - */ + */ "type": UserTeamUserType; /** @@ -36,28 +41,54 @@ export class RelationshipToUserTeamUserData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UserTeamUserType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamUserType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUserTeamUserData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RelationshipToUsers.ts b/packages/datadog-api-client-v2/models/RelationshipToUsers.ts index 7a5ff9c52616..232f87db4040 100644 --- a/packages/datadog-api-client-v2/models/RelationshipToUsers.ts +++ b/packages/datadog-api-client-v2/models/RelationshipToUsers.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUserData } from "./RelationshipToUserData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to users. - */ +*/ export class RelationshipToUsers { /** * Relationships to user objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RelationshipToUsers { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RelationshipToUsers.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Remediation.ts b/packages/datadog-api-client-v2/models/Remediation.ts index 02242f04f7c5..31d56a604cea 100644 --- a/packages/datadog-api-client-v2/models/Remediation.ts +++ b/packages/datadog-api-client-v2/models/Remediation.ts @@ -5,43 +5,48 @@ */ import { Advisory } from "./Advisory"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability remediation. - */ +*/ export class Remediation { /** * Whether the vulnerability can be resolved when recompiling the package or not. - */ + */ "autoSolvable": boolean; /** * Avoided advisories. - */ + */ "avoidedAdvisories": Array; /** * Remediation fixed advisories. - */ + */ "fixedAdvisories": Array; /** * Library name remediating the vulnerability. - */ + */ "libraryName": string; /** * Library version remediating the vulnerability. - */ + */ "libraryVersion": string; /** * New advisories. - */ + */ "newAdvisories": Array; /** * Remaining advisories. - */ + */ "remainingAdvisories": Array; /** * Remediation type. - */ + */ "type": string; /** @@ -60,58 +65,84 @@ export class Remediation { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - autoSolvable: { - baseName: "auto_solvable", - type: "boolean", - required: true, + "autoSolvable": { + "baseName": "auto_solvable", + "type": "boolean", + "required": true, }, - avoidedAdvisories: { - baseName: "avoided_advisories", - type: "Array", - required: true, + "avoidedAdvisories": { + "baseName": "avoided_advisories", + "type": "Array", + "required": true, }, - fixedAdvisories: { - baseName: "fixed_advisories", - type: "Array", - required: true, + "fixedAdvisories": { + "baseName": "fixed_advisories", + "type": "Array", + "required": true, }, - libraryName: { - baseName: "library_name", - type: "string", - required: true, + "libraryName": { + "baseName": "library_name", + "type": "string", + "required": true, }, - libraryVersion: { - baseName: "library_version", - type: "string", - required: true, + "libraryVersion": { + "baseName": "library_version", + "type": "string", + "required": true, }, - newAdvisories: { - baseName: "new_advisories", - type: "Array", - required: true, + "newAdvisories": { + "baseName": "new_advisories", + "type": "Array", + "required": true, }, - remainingAdvisories: { - baseName: "remaining_advisories", - type: "Array", - required: true, + "remainingAdvisories": { + "baseName": "remaining_advisories", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Remediation.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.ts b/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.ts index 7c917e3ac1c6..0432d97bb01a 100644 --- a/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.ts +++ b/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.ts @@ -5,15 +5,20 @@ */ import { RetentionFilterWithoutAttributes } from "./RetentionFilterWithoutAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A list of retention filters to reorder. - */ +*/ export class ReorderRetentionFiltersRequest { /** * A list of retention filters objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class ReorderRetentionFiltersRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ReorderRetentionFiltersRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ResponseMetaAttributes.ts b/packages/datadog-api-client-v2/models/ResponseMetaAttributes.ts index 33179f3379bb..300f469631ce 100644 --- a/packages/datadog-api-client-v2/models/ResponseMetaAttributes.ts +++ b/packages/datadog-api-client-v2/models/ResponseMetaAttributes.ts @@ -5,15 +5,20 @@ */ import { Pagination } from "./Pagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing meta attributes of response. - */ +*/ export class ResponseMetaAttributes { /** * Pagination object. - */ + */ "page"?: Pagination; /** @@ -32,22 +37,48 @@ export class ResponseMetaAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "Pagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "Pagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ResponseMetaAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RestrictionPolicy.ts b/packages/datadog-api-client-v2/models/RestrictionPolicy.ts index 9624c895210b..95b1e09b39db 100644 --- a/packages/datadog-api-client-v2/models/RestrictionPolicy.ts +++ b/packages/datadog-api-client-v2/models/RestrictionPolicy.ts @@ -6,23 +6,28 @@ import { RestrictionPolicyAttributes } from "./RestrictionPolicyAttributes"; import { RestrictionPolicyType } from "./RestrictionPolicyType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Restriction policy object. - */ +*/ export class RestrictionPolicy { /** * Restriction policy attributes. - */ + */ "attributes": RestrictionPolicyAttributes; /** * The identifier, always equivalent to the value specified in the `resource_id` path parameter. - */ + */ "id": string; /** * Restriction policy type. - */ + */ "type": RestrictionPolicyType; /** @@ -41,33 +46,59 @@ export class RestrictionPolicy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RestrictionPolicyAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RestrictionPolicyAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RestrictionPolicyType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RestrictionPolicyType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RestrictionPolicy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.ts b/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.ts index 18ee304c95c9..dbab1fa6c777 100644 --- a/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.ts +++ b/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.ts @@ -5,15 +5,20 @@ */ import { RestrictionPolicyBinding } from "./RestrictionPolicyBinding"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Restriction policy attributes. - */ +*/ export class RestrictionPolicyAttributes { /** * An array of bindings. - */ + */ "bindings": Array; /** @@ -32,23 +37,49 @@ export class RestrictionPolicyAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bindings: { - baseName: "bindings", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "bindings": { + "baseName": "bindings", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RestrictionPolicyAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.ts b/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.ts index 279c9155254e..66de942d003b 100644 --- a/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.ts +++ b/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.ts @@ -4,22 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Specifies which principals are associated with a relation. - */ +*/ export class RestrictionPolicyBinding { /** * An array of principals. A principal is a subject or group of subjects. * Each principal is formatted as `type:id`. Supported types: `role`, `team`, `user`, and `org`. * The org ID can be obtained through the api/v2/current_user API. * The user principal type accepts service account IDs. - */ + */ "principals": Array; /** * The role/level of access. - */ + */ "relation": string; /** @@ -38,28 +43,54 @@ export class RestrictionPolicyBinding { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - principals: { - baseName: "principals", - type: "Array", - required: true, + "principals": { + "baseName": "principals", + "type": "Array", + "required": true, }, - relation: { - baseName: "relation", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "relation": { + "baseName": "relation", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RestrictionPolicyBinding.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.ts b/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.ts index a39fe44ad8e4..b45bb3d969d4 100644 --- a/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.ts +++ b/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.ts @@ -5,15 +5,20 @@ */ import { RestrictionPolicy } from "./RestrictionPolicy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about a single restriction policy. - */ +*/ export class RestrictionPolicyResponse { /** * Restriction policy object. - */ + */ "data": RestrictionPolicy; /** @@ -32,23 +37,49 @@ export class RestrictionPolicyResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RestrictionPolicy", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RestrictionPolicy", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RestrictionPolicyResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RestrictionPolicyType.ts b/packages/datadog-api-client-v2/models/RestrictionPolicyType.ts index df41df1a52d8..9cb88e425e6c 100644 --- a/packages/datadog-api-client-v2/models/RestrictionPolicyType.ts +++ b/packages/datadog-api-client-v2/models/RestrictionPolicyType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Restriction policy type. - */ +*/ export type RestrictionPolicyType = typeof RESTRICTION_POLICY | UnparsedObject; -export const RESTRICTION_POLICY = "restriction_policy"; +export const RESTRICTION_POLICY = 'restriction_policy'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.ts b/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.ts index 748db3ab8082..5f8c4ea84f96 100644 --- a/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { RestrictionPolicy } from "./RestrictionPolicy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update request for a restriction policy. - */ +*/ export class RestrictionPolicyUpdateRequest { /** * Restriction policy object. - */ + */ "data": RestrictionPolicy; /** @@ -32,23 +37,49 @@ export class RestrictionPolicyUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RestrictionPolicy", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RestrictionPolicy", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RestrictionPolicyUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilter.ts b/packages/datadog-api-client-v2/models/RetentionFilter.ts index 054bb9a0bd69..a01920db6878 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilter.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilter.ts @@ -6,23 +6,28 @@ import { ApmRetentionFilterType } from "./ApmRetentionFilterType"; import { RetentionFilterAttributes } from "./RetentionFilterAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of the retention filter. - */ +*/ export class RetentionFilter { /** * The attributes of the retention filter. - */ + */ "attributes": RetentionFilterAttributes; /** * The ID of the retention filter. - */ + */ "id": string; /** * The type of the resource. - */ + */ "type": ApmRetentionFilterType; /** @@ -41,33 +46,59 @@ export class RetentionFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RetentionFilterAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RetentionFilterAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApmRetentionFilterType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApmRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterAll.ts b/packages/datadog-api-client-v2/models/RetentionFilterAll.ts index 30f55f9eaebf..955049730855 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterAll.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterAll.ts @@ -6,23 +6,28 @@ import { ApmRetentionFilterType } from "./ApmRetentionFilterType"; import { RetentionFilterAllAttributes } from "./RetentionFilterAllAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of the retention filter. - */ +*/ export class RetentionFilterAll { /** * The attributes of the retention filter. - */ + */ "attributes": RetentionFilterAllAttributes; /** * The ID of the retention filter. - */ + */ "id": string; /** * The type of the resource. - */ + */ "type": ApmRetentionFilterType; /** @@ -41,33 +46,59 @@ export class RetentionFilterAll { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RetentionFilterAllAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RetentionFilterAllAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApmRetentionFilterType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApmRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterAll.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.ts b/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.ts index f5fa272b6ba5..babd66a845d1 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.ts @@ -6,56 +6,61 @@ import { RetentionFilterAllType } from "./RetentionFilterAllType"; import { SpansFilter } from "./SpansFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of the retention filter. - */ +*/ export class RetentionFilterAllAttributes { /** * The creation timestamp of the retention filter. - */ + */ "createdAt"?: number; /** * The creator of the retention filter. - */ + */ "createdBy"?: string; /** * Shows whether the filter can be edited. - */ + */ "editable"?: boolean; /** * The status of the retention filter (Enabled/Disabled). - */ + */ "enabled"?: boolean; /** * The execution order of the retention filter. - */ + */ "executionOrder"?: number; /** * The spans filter used to index spans. - */ + */ "filter"?: SpansFilter; /** * The type of retention filter. - */ + */ "filterType"?: RetentionFilterAllType; /** * The modification timestamp of the retention filter. - */ + */ "modifiedAt"?: number; /** * The modifier of the retention filter. - */ + */ "modifiedBy"?: string; /** * The name of the retention filter. - */ + */ "name"?: string; /** * Sample rate to apply to spans going through this retention filter, * a value of 1.0 keeps all spans matching the query. - */ + */ "rate"?: number; /** @@ -74,66 +79,92 @@ export class RetentionFilterAllAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", - }, - createdBy: { - baseName: "created_by", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", }, - editable: { - baseName: "editable", - type: "boolean", + "createdBy": { + "baseName": "created_by", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", + "editable": { + "baseName": "editable", + "type": "boolean", }, - executionOrder: { - baseName: "execution_order", - type: "number", - format: "int64", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - filter: { - baseName: "filter", - type: "SpansFilter", + "executionOrder": { + "baseName": "execution_order", + "type": "number", + "format": "int64", }, - filterType: { - baseName: "filter_type", - type: "RetentionFilterAllType", + "filter": { + "baseName": "filter", + "type": "SpansFilter", }, - modifiedAt: { - baseName: "modified_at", - type: "number", - format: "int64", + "filterType": { + "baseName": "filter_type", + "type": "RetentionFilterAllType", }, - modifiedBy: { - baseName: "modified_by", - type: "string", + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "modifiedBy": { + "baseName": "modified_by", + "type": "string", }, - rate: { - baseName: "rate", - type: "number", - format: "double", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rate": { + "baseName": "rate", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterAllAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterAllType.ts b/packages/datadog-api-client-v2/models/RetentionFilterAllType.ts index 54f7f17be32c..836dad75f93a 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterAllType.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterAllType.ts @@ -4,19 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of retention filter. - */ +*/ -export type RetentionFilterAllType = - | typeof SPANS_SAMPLING_PROCESSOR - | typeof SPANS_ERRORS_SAMPLING_PROCESSOR - | typeof SPANS_APPSEC_SAMPLING_PROCESSOR - | UnparsedObject; -export const SPANS_SAMPLING_PROCESSOR = "spans-sampling-processor"; -export const SPANS_ERRORS_SAMPLING_PROCESSOR = - "spans-errors-sampling-processor"; -export const SPANS_APPSEC_SAMPLING_PROCESSOR = - "spans-appsec-sampling-processor"; +export type RetentionFilterAllType = typeof SPANS_SAMPLING_PROCESSOR| typeof SPANS_ERRORS_SAMPLING_PROCESSOR| typeof SPANS_APPSEC_SAMPLING_PROCESSOR | UnparsedObject; +export const SPANS_SAMPLING_PROCESSOR = 'spans-sampling-processor'; +export const SPANS_ERRORS_SAMPLING_PROCESSOR = 'spans-errors-sampling-processor'; +export const SPANS_APPSEC_SAMPLING_PROCESSOR = 'spans-appsec-sampling-processor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RetentionFilterAttributes.ts b/packages/datadog-api-client-v2/models/RetentionFilterAttributes.ts index 2cda69ee2f0d..951af11ee52a 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterAttributes.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterAttributes.ts @@ -6,56 +6,61 @@ import { RetentionFilterType } from "./RetentionFilterType"; import { SpansFilter } from "./SpansFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of the retention filter. - */ +*/ export class RetentionFilterAttributes { /** * The creation timestamp of the retention filter. - */ + */ "createdAt"?: number; /** * The creator of the retention filter. - */ + */ "createdBy"?: string; /** * Shows whether the filter can be edited. - */ + */ "editable"?: boolean; /** * The status of the retention filter (Enabled/Disabled). - */ + */ "enabled"?: boolean; /** * The execution order of the retention filter. - */ + */ "executionOrder"?: number; /** * The spans filter used to index spans. - */ + */ "filter"?: SpansFilter; /** * The type of retention filter. The value should always be spans-sampling-processor. - */ + */ "filterType"?: RetentionFilterType; /** * The modification timestamp of the retention filter. - */ + */ "modifiedAt"?: number; /** * The modifier of the retention filter. - */ + */ "modifiedBy"?: string; /** * The name of the retention filter. - */ + */ "name"?: string; /** * Sample rate to apply to spans going through this retention filter, * a value of 1.0 keeps all spans matching the query. - */ + */ "rate"?: number; /** @@ -74,66 +79,92 @@ export class RetentionFilterAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "number", - format: "int64", - }, - createdBy: { - baseName: "created_by", - type: "string", + "createdAt": { + "baseName": "created_at", + "type": "number", + "format": "int64", }, - editable: { - baseName: "editable", - type: "boolean", + "createdBy": { + "baseName": "created_by", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", + "editable": { + "baseName": "editable", + "type": "boolean", }, - executionOrder: { - baseName: "execution_order", - type: "number", - format: "int64", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - filter: { - baseName: "filter", - type: "SpansFilter", + "executionOrder": { + "baseName": "execution_order", + "type": "number", + "format": "int64", }, - filterType: { - baseName: "filter_type", - type: "RetentionFilterType", + "filter": { + "baseName": "filter", + "type": "SpansFilter", }, - modifiedAt: { - baseName: "modified_at", - type: "number", - format: "int64", + "filterType": { + "baseName": "filter_type", + "type": "RetentionFilterType", }, - modifiedBy: { - baseName: "modified_by", - type: "string", + "modifiedAt": { + "baseName": "modified_at", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "modifiedBy": { + "baseName": "modified_by", + "type": "string", }, - rate: { - baseName: "rate", - type: "number", - format: "double", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rate": { + "baseName": "rate", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.ts b/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.ts index 324f2cef3d81..b1762cad3e16 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.ts @@ -6,32 +6,37 @@ import { RetentionFilterType } from "./RetentionFilterType"; import { SpansFilterCreate } from "./SpansFilterCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing the configuration of the retention filter to create/update. - */ +*/ export class RetentionFilterCreateAttributes { /** * Enable/Disable the retention filter. - */ + */ "enabled": boolean; /** * The spans filter. Spans matching this filter will be indexed and stored. - */ + */ "filter": SpansFilterCreate; /** * The type of retention filter. The value should always be spans-sampling-processor. - */ + */ "filterType": RetentionFilterType; /** * The name of the retention filter. - */ + */ "name": string; /** * Sample rate to apply to spans going through this retention filter, * a value of 1.0 keeps all spans matching the query. - */ + */ "rate": number; /** @@ -50,44 +55,70 @@ export class RetentionFilterCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - filter: { - baseName: "filter", - type: "SpansFilterCreate", - required: true, + "filter": { + "baseName": "filter", + "type": "SpansFilterCreate", + "required": true, }, - filterType: { - baseName: "filter_type", - type: "RetentionFilterType", - required: true, + "filterType": { + "baseName": "filter_type", + "type": "RetentionFilterType", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - rate: { - baseName: "rate", - type: "number", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rate": { + "baseName": "rate", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterCreateData.ts b/packages/datadog-api-client-v2/models/RetentionFilterCreateData.ts index ca099f719826..ca1a4c3229a4 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterCreateData.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterCreateData.ts @@ -6,19 +6,24 @@ import { ApmRetentionFilterType } from "./ApmRetentionFilterType"; import { RetentionFilterCreateAttributes } from "./RetentionFilterCreateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The body of the retention filter to be created. - */ +*/ export class RetentionFilterCreateData { /** * The object describing the configuration of the retention filter to create/update. - */ + */ "attributes": RetentionFilterCreateAttributes; /** * The type of the resource. - */ + */ "type": ApmRetentionFilterType; /** @@ -37,28 +42,54 @@ export class RetentionFilterCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RetentionFilterCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RetentionFilterCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApmRetentionFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApmRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.ts b/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.ts index 2ee09aa64526..7e3c0e9cfb54 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.ts @@ -5,15 +5,20 @@ */ import { RetentionFilterCreateData } from "./RetentionFilterCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The body of the retention filter to be created. - */ +*/ export class RetentionFilterCreateRequest { /** * The body of the retention filter to be created. - */ + */ "data": RetentionFilterCreateData; /** @@ -32,23 +37,49 @@ export class RetentionFilterCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RetentionFilterCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RetentionFilterCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterCreateResponse.ts b/packages/datadog-api-client-v2/models/RetentionFilterCreateResponse.ts index bdd39d4bae8c..a359862a1dc8 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterCreateResponse.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterCreateResponse.ts @@ -5,15 +5,20 @@ */ import { RetentionFilter } from "./RetentionFilter"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The retention filters definition. - */ +*/ export class RetentionFilterCreateResponse { /** * The definition of the retention filter. - */ + */ "data"?: RetentionFilter; /** @@ -32,22 +37,48 @@ export class RetentionFilterCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RetentionFilter", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RetentionFilter", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterResponse.ts b/packages/datadog-api-client-v2/models/RetentionFilterResponse.ts index 466f62371f80..5419a2204fe0 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterResponse.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterResponse.ts @@ -5,15 +5,20 @@ */ import { RetentionFilterAll } from "./RetentionFilterAll"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The retention filters definition. - */ +*/ export class RetentionFilterResponse { /** * The definition of the retention filter. - */ + */ "data"?: RetentionFilterAll; /** @@ -32,22 +37,48 @@ export class RetentionFilterResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RetentionFilterAll", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RetentionFilterAll", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterType.ts b/packages/datadog-api-client-v2/models/RetentionFilterType.ts index 19dff04b2f10..350c0cb15e4c 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterType.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of retention filter. The value should always be spans-sampling-processor. - */ +*/ -export type RetentionFilterType = - | typeof SPANS_SAMPLING_PROCESSOR - | UnparsedObject; -export const SPANS_SAMPLING_PROCESSOR = "spans-sampling-processor"; +export type RetentionFilterType = typeof SPANS_SAMPLING_PROCESSOR | UnparsedObject; +export const SPANS_SAMPLING_PROCESSOR = 'spans-sampling-processor'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RetentionFilterUpdateAttributes.ts b/packages/datadog-api-client-v2/models/RetentionFilterUpdateAttributes.ts index 2a4bcc2e4897..270d49ec605b 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterUpdateAttributes.ts @@ -6,32 +6,37 @@ import { RetentionFilterAllType } from "./RetentionFilterAllType"; import { SpansFilterCreate } from "./SpansFilterCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing the configuration of the retention filter to create/update. - */ +*/ export class RetentionFilterUpdateAttributes { /** * Enable/Disable the retention filter. - */ + */ "enabled": boolean; /** * The spans filter. Spans matching this filter will be indexed and stored. - */ + */ "filter": SpansFilterCreate; /** * The type of retention filter. - */ + */ "filterType": RetentionFilterAllType; /** * The name of the retention filter. - */ + */ "name": string; /** * Sample rate to apply to spans going through this retention filter, * a value of 1.0 keeps all spans matching the query. - */ + */ "rate": number; /** @@ -50,44 +55,70 @@ export class RetentionFilterUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - filter: { - baseName: "filter", - type: "SpansFilterCreate", - required: true, + "filter": { + "baseName": "filter", + "type": "SpansFilterCreate", + "required": true, }, - filterType: { - baseName: "filter_type", - type: "RetentionFilterAllType", - required: true, + "filterType": { + "baseName": "filter_type", + "type": "RetentionFilterAllType", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - rate: { - baseName: "rate", - type: "number", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rate": { + "baseName": "rate", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.ts b/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.ts index c6f4ab5eea0f..6da377624dea 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.ts @@ -6,23 +6,28 @@ import { ApmRetentionFilterType } from "./ApmRetentionFilterType"; import { RetentionFilterUpdateAttributes } from "./RetentionFilterUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The body of the retention filter to be updated. - */ +*/ export class RetentionFilterUpdateData { /** * The object describing the configuration of the retention filter to create/update. - */ + */ "attributes": RetentionFilterUpdateAttributes; /** * The ID of the retention filter. - */ + */ "id": string; /** * The type of the resource. - */ + */ "type": ApmRetentionFilterType; /** @@ -41,33 +46,59 @@ export class RetentionFilterUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RetentionFilterUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RetentionFilterUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ApmRetentionFilterType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApmRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.ts b/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.ts index 03034b8e8f4f..d9915cb65910 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { RetentionFilterUpdateData } from "./RetentionFilterUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The body of the retention filter to be updated. - */ +*/ export class RetentionFilterUpdateRequest { /** * The body of the retention filter to be updated. - */ + */ "data": RetentionFilterUpdateData; /** @@ -32,23 +37,49 @@ export class RetentionFilterUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RetentionFilterUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RetentionFilterUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.ts b/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.ts index 3dc126571626..d4993ccbdc7b 100644 --- a/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.ts +++ b/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.ts @@ -5,19 +5,24 @@ */ import { ApmRetentionFilterType } from "./ApmRetentionFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The retention filter object . - */ +*/ export class RetentionFilterWithoutAttributes { /** * The ID of the retention filter. - */ + */ "id": string; /** * The type of the resource. - */ + */ "type": ApmRetentionFilterType; /** @@ -36,28 +41,54 @@ export class RetentionFilterWithoutAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ApmRetentionFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ApmRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFilterWithoutAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetentionFiltersResponse.ts b/packages/datadog-api-client-v2/models/RetentionFiltersResponse.ts index 1f0dbd2136d1..7c5b27576507 100644 --- a/packages/datadog-api-client-v2/models/RetentionFiltersResponse.ts +++ b/packages/datadog-api-client-v2/models/RetentionFiltersResponse.ts @@ -5,15 +5,20 @@ */ import { RetentionFilterAll } from "./RetentionFilterAll"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An ordered list of retention filters. - */ +*/ export class RetentionFiltersResponse { /** * A list of retention filters objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class RetentionFiltersResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetentionFiltersResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetryStrategy.ts b/packages/datadog-api-client-v2/models/RetryStrategy.ts index 8c0c4a27dce0..5b12fa6f4050 100644 --- a/packages/datadog-api-client-v2/models/RetryStrategy.ts +++ b/packages/datadog-api-client-v2/models/RetryStrategy.ts @@ -6,19 +6,24 @@ import { RetryStrategyKind } from "./RetryStrategyKind"; import { RetryStrategyLinear } from "./RetryStrategyLinear"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `RetryStrategy` object. - */ +*/ export class RetryStrategy { /** * The definition of `RetryStrategyKind` object. - */ + */ "kind": RetryStrategyKind; /** * The definition of `RetryStrategyLinear` object. - */ + */ "linear"?: RetryStrategyLinear; /** @@ -37,27 +42,53 @@ export class RetryStrategy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - kind: { - baseName: "kind", - type: "RetryStrategyKind", - required: true, + "kind": { + "baseName": "kind", + "type": "RetryStrategyKind", + "required": true, }, - linear: { - baseName: "linear", - type: "RetryStrategyLinear", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "linear": { + "baseName": "linear", + "type": "RetryStrategyLinear", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetryStrategy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RetryStrategyKind.ts b/packages/datadog-api-client-v2/models/RetryStrategyKind.ts index fdfba9ad1a70..82325eff086f 100644 --- a/packages/datadog-api-client-v2/models/RetryStrategyKind.ts +++ b/packages/datadog-api-client-v2/models/RetryStrategyKind.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `RetryStrategyKind` object. - */ +*/ export type RetryStrategyKind = typeof RETRY_STRATEGY_LINEAR | UnparsedObject; -export const RETRY_STRATEGY_LINEAR = "RETRY_STRATEGY_LINEAR"; +export const RETRY_STRATEGY_LINEAR = 'RETRY_STRATEGY_LINEAR'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RetryStrategyLinear.ts b/packages/datadog-api-client-v2/models/RetryStrategyLinear.ts index dd3de2c2fb6f..fd221e0a87c3 100644 --- a/packages/datadog-api-client-v2/models/RetryStrategyLinear.ts +++ b/packages/datadog-api-client-v2/models/RetryStrategyLinear.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `RetryStrategyLinear` object. - */ +*/ export class RetryStrategyLinear { /** * The `RetryStrategyLinear` `interval`. The expected format is the number of seconds ending with an s. For example, 1 day is 86400s - */ + */ "interval": string; /** * The `RetryStrategyLinear` `maxRetries`. - */ + */ "maxRetries": number; /** @@ -35,29 +40,55 @@ export class RetryStrategyLinear { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - interval: { - baseName: "interval", - type: "string", - required: true, + "interval": { + "baseName": "interval", + "type": "string", + "required": true, }, - maxRetries: { - baseName: "maxRetries", - type: "number", - required: true, - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "maxRetries": { + "baseName": "maxRetries", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RetryStrategyLinear.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Role.ts b/packages/datadog-api-client-v2/models/Role.ts index 9bfd732e2648..2bc61916ebbd 100644 --- a/packages/datadog-api-client-v2/models/Role.ts +++ b/packages/datadog-api-client-v2/models/Role.ts @@ -7,27 +7,32 @@ import { RoleAttributes } from "./RoleAttributes"; import { RoleResponseRelationships } from "./RoleResponseRelationships"; import { RolesType } from "./RolesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Role object returned by the API. - */ +*/ export class Role { /** * Attributes of the role. - */ + */ "attributes"?: RoleAttributes; /** * The unique identifier of the role. - */ + */ "id"?: string; /** * Relationships of the role object returned by the API. - */ + */ "relationships"?: RoleResponseRelationships; /** * Roles type. - */ + */ "type": RolesType; /** @@ -46,35 +51,61 @@ export class Role { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RoleAttributes", + "attributes": { + "baseName": "attributes", + "type": "RoleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RoleResponseRelationships", + "relationships": { + "baseName": "relationships", + "type": "RoleResponseRelationships", }, - type: { - baseName: "type", - type: "RolesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Role.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleAttributes.ts b/packages/datadog-api-client-v2/models/RoleAttributes.ts index 97e0d53aed6a..caf8e199fd8a 100644 --- a/packages/datadog-api-client-v2/models/RoleAttributes.ts +++ b/packages/datadog-api-client-v2/models/RoleAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the role. - */ +*/ export class RoleAttributes { /** * Creation time of the role. - */ + */ "createdAt"?: Date; /** * Time of last role modification. - */ + */ "modifiedAt"?: Date; /** * The name of the role. The name is neither unique nor a stable identifier of the role. - */ + */ "name"?: string; /** * Number of users with that role. - */ + */ "userCount"?: number; /** @@ -43,37 +48,63 @@ export class RoleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - userCount: { - baseName: "user_count", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userCount": { + "baseName": "user_count", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleClone.ts b/packages/datadog-api-client-v2/models/RoleClone.ts index 2fd94f482072..0cd682c6e3e4 100644 --- a/packages/datadog-api-client-v2/models/RoleClone.ts +++ b/packages/datadog-api-client-v2/models/RoleClone.ts @@ -6,19 +6,24 @@ import { RoleCloneAttributes } from "./RoleCloneAttributes"; import { RolesType } from "./RolesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for the clone role request. - */ +*/ export class RoleClone { /** * Attributes required to create a new role by cloning an existing one. - */ + */ "attributes": RoleCloneAttributes; /** * Roles type. - */ + */ "type": RolesType; /** @@ -37,28 +42,54 @@ export class RoleClone { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RoleCloneAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RoleCloneAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RolesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleClone.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCloneAttributes.ts b/packages/datadog-api-client-v2/models/RoleCloneAttributes.ts index 6494c31e55ec..1d2197dc9c9d 100644 --- a/packages/datadog-api-client-v2/models/RoleCloneAttributes.ts +++ b/packages/datadog-api-client-v2/models/RoleCloneAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes required to create a new role by cloning an existing one. - */ +*/ export class RoleCloneAttributes { /** * Name of the new role that is cloned. - */ + */ "name": string; /** @@ -31,23 +36,49 @@ export class RoleCloneAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCloneAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCloneRequest.ts b/packages/datadog-api-client-v2/models/RoleCloneRequest.ts index ba40d6bb5cb4..57d45f3795b6 100644 --- a/packages/datadog-api-client-v2/models/RoleCloneRequest.ts +++ b/packages/datadog-api-client-v2/models/RoleCloneRequest.ts @@ -5,15 +5,20 @@ */ import { RoleClone } from "./RoleClone"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request to create a role by cloning an existing role. - */ +*/ export class RoleCloneRequest { /** * Data for the clone role request. - */ + */ "data": RoleClone; /** @@ -32,23 +37,49 @@ export class RoleCloneRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RoleClone", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RoleClone", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCloneRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCreateAttributes.ts b/packages/datadog-api-client-v2/models/RoleCreateAttributes.ts index a540a486947c..72ef5a5c49dd 100644 --- a/packages/datadog-api-client-v2/models/RoleCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RoleCreateAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the created role. - */ +*/ export class RoleCreateAttributes { /** * Creation time of the role. - */ + */ "createdAt"?: Date; /** * Time of last role modification. - */ + */ "modifiedAt"?: Date; /** * Name of the role. - */ + */ "name": string; /** @@ -39,33 +44,59 @@ export class RoleCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", - }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCreateData.ts b/packages/datadog-api-client-v2/models/RoleCreateData.ts index 3249eaeea236..701734955769 100644 --- a/packages/datadog-api-client-v2/models/RoleCreateData.ts +++ b/packages/datadog-api-client-v2/models/RoleCreateData.ts @@ -7,23 +7,28 @@ import { RoleCreateAttributes } from "./RoleCreateAttributes"; import { RoleRelationships } from "./RoleRelationships"; import { RolesType } from "./RolesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the creation of a role. - */ +*/ export class RoleCreateData { /** * Attributes of the created role. - */ + */ "attributes": RoleCreateAttributes; /** * Relationships of the role object. - */ + */ "relationships"?: RoleRelationships; /** * Roles type. - */ + */ "type"?: RolesType; /** @@ -42,31 +47,57 @@ export class RoleCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RoleCreateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "RoleRelationships", + "attributes": { + "baseName": "attributes", + "type": "RoleCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RolesType", + "relationships": { + "baseName": "relationships", + "type": "RoleRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCreateRequest.ts b/packages/datadog-api-client-v2/models/RoleCreateRequest.ts index dacffad5a69c..6b49a37a4fc4 100644 --- a/packages/datadog-api-client-v2/models/RoleCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/RoleCreateRequest.ts @@ -5,15 +5,20 @@ */ import { RoleCreateData } from "./RoleCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a role. - */ +*/ export class RoleCreateRequest { /** * Data related to the creation of a role. - */ + */ "data": RoleCreateData; /** @@ -32,23 +37,49 @@ export class RoleCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RoleCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RoleCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCreateResponse.ts b/packages/datadog-api-client-v2/models/RoleCreateResponse.ts index f08d9dd01bbf..993f6a2a86ad 100644 --- a/packages/datadog-api-client-v2/models/RoleCreateResponse.ts +++ b/packages/datadog-api-client-v2/models/RoleCreateResponse.ts @@ -5,15 +5,20 @@ */ import { RoleCreateResponseData } from "./RoleCreateResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about a created role. - */ +*/ export class RoleCreateResponse { /** * Role object returned by the API. - */ + */ "data"?: RoleCreateResponseData; /** @@ -32,22 +37,48 @@ export class RoleCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RoleCreateResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RoleCreateResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleCreateResponseData.ts b/packages/datadog-api-client-v2/models/RoleCreateResponseData.ts index 02ae2237b050..7ea8ed70e221 100644 --- a/packages/datadog-api-client-v2/models/RoleCreateResponseData.ts +++ b/packages/datadog-api-client-v2/models/RoleCreateResponseData.ts @@ -7,27 +7,32 @@ import { RoleCreateAttributes } from "./RoleCreateAttributes"; import { RoleResponseRelationships } from "./RoleResponseRelationships"; import { RolesType } from "./RolesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Role object returned by the API. - */ +*/ export class RoleCreateResponseData { /** * Attributes of the created role. - */ + */ "attributes"?: RoleCreateAttributes; /** * The unique identifier of the role. - */ + */ "id"?: string; /** * Relationships of the role object returned by the API. - */ + */ "relationships"?: RoleResponseRelationships; /** * Roles type. - */ + */ "type": RolesType; /** @@ -46,35 +51,61 @@ export class RoleCreateResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RoleCreateAttributes", + "attributes": { + "baseName": "attributes", + "type": "RoleCreateAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RoleResponseRelationships", + "relationships": { + "baseName": "relationships", + "type": "RoleResponseRelationships", }, - type: { - baseName: "type", - type: "RolesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleCreateResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleRelationships.ts b/packages/datadog-api-client-v2/models/RoleRelationships.ts index 99a07011b4e2..c93325021fb6 100644 --- a/packages/datadog-api-client-v2/models/RoleRelationships.ts +++ b/packages/datadog-api-client-v2/models/RoleRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToPermissions } from "./RelationshipToPermissions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of the role object. - */ +*/ export class RoleRelationships { /** * Relationship to multiple permissions objects. - */ + */ "permissions"?: RelationshipToPermissions; /** @@ -32,22 +37,48 @@ export class RoleRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - permissions: { - baseName: "permissions", - type: "RelationshipToPermissions", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "permissions": { + "baseName": "permissions", + "type": "RelationshipToPermissions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleResponse.ts b/packages/datadog-api-client-v2/models/RoleResponse.ts index c3bfafe4f70d..62636b115dac 100644 --- a/packages/datadog-api-client-v2/models/RoleResponse.ts +++ b/packages/datadog-api-client-v2/models/RoleResponse.ts @@ -5,15 +5,20 @@ */ import { Role } from "./Role"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about a single role. - */ +*/ export class RoleResponse { /** * Role object returned by the API. - */ + */ "data"?: Role; /** @@ -32,22 +37,48 @@ export class RoleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Role", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Role", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleResponseRelationships.ts b/packages/datadog-api-client-v2/models/RoleResponseRelationships.ts index 2009ab7ce630..a355ca4a630d 100644 --- a/packages/datadog-api-client-v2/models/RoleResponseRelationships.ts +++ b/packages/datadog-api-client-v2/models/RoleResponseRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToPermissions } from "./RelationshipToPermissions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of the role object returned by the API. - */ +*/ export class RoleResponseRelationships { /** * Relationship to multiple permissions objects. - */ + */ "permissions"?: RelationshipToPermissions; /** @@ -32,22 +37,48 @@ export class RoleResponseRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - permissions: { - baseName: "permissions", - type: "RelationshipToPermissions", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "permissions": { + "baseName": "permissions", + "type": "RelationshipToPermissions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleResponseRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleUpdateAttributes.ts b/packages/datadog-api-client-v2/models/RoleUpdateAttributes.ts index 2c08a79244c8..2426ab019468 100644 --- a/packages/datadog-api-client-v2/models/RoleUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RoleUpdateAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the role. - */ +*/ export class RoleUpdateAttributes { /** * Creation time of the role. - */ + */ "createdAt"?: Date; /** * Time of last role modification. - */ + */ "modifiedAt"?: Date; /** * Name of the role. - */ + */ "name"?: string; /** * The user count. - */ + */ "userCount"?: number; /** @@ -43,37 +48,63 @@ export class RoleUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - userCount: { - baseName: "user_count", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userCount": { + "baseName": "user_count", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleUpdateData.ts b/packages/datadog-api-client-v2/models/RoleUpdateData.ts index dae469c38b7c..eecbcc900097 100644 --- a/packages/datadog-api-client-v2/models/RoleUpdateData.ts +++ b/packages/datadog-api-client-v2/models/RoleUpdateData.ts @@ -7,27 +7,32 @@ import { RoleRelationships } from "./RoleRelationships"; import { RolesType } from "./RolesType"; import { RoleUpdateAttributes } from "./RoleUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the update of a role. - */ +*/ export class RoleUpdateData { /** * Attributes of the role. - */ + */ "attributes": RoleUpdateAttributes; /** * The unique identifier of the role. - */ + */ "id": string; /** * Relationships of the role object. - */ + */ "relationships"?: RoleRelationships; /** * Roles type. - */ + */ "type": RolesType; /** @@ -46,37 +51,63 @@ export class RoleUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RoleUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RoleUpdateAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "RoleRelationships", + "relationships": { + "baseName": "relationships", + "type": "RoleRelationships", }, - type: { - baseName: "type", - type: "RolesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleUpdateRequest.ts b/packages/datadog-api-client-v2/models/RoleUpdateRequest.ts index dd59afaea5dc..91102eb99aa4 100644 --- a/packages/datadog-api-client-v2/models/RoleUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RoleUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { RoleUpdateData } from "./RoleUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update a role. - */ +*/ export class RoleUpdateRequest { /** * Data related to the update of a role. - */ + */ "data": RoleUpdateData; /** @@ -32,23 +37,49 @@ export class RoleUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RoleUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RoleUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleUpdateResponse.ts b/packages/datadog-api-client-v2/models/RoleUpdateResponse.ts index 3ce1918b1437..d07d1b7277de 100644 --- a/packages/datadog-api-client-v2/models/RoleUpdateResponse.ts +++ b/packages/datadog-api-client-v2/models/RoleUpdateResponse.ts @@ -5,15 +5,20 @@ */ import { RoleUpdateResponseData } from "./RoleUpdateResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about an updated role. - */ +*/ export class RoleUpdateResponse { /** * Role object returned by the API. - */ + */ "data"?: RoleUpdateResponseData; /** @@ -32,22 +37,48 @@ export class RoleUpdateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RoleUpdateResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RoleUpdateResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleUpdateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RoleUpdateResponseData.ts b/packages/datadog-api-client-v2/models/RoleUpdateResponseData.ts index 9049dba25bdb..a6544edc5aef 100644 --- a/packages/datadog-api-client-v2/models/RoleUpdateResponseData.ts +++ b/packages/datadog-api-client-v2/models/RoleUpdateResponseData.ts @@ -7,27 +7,32 @@ import { RoleResponseRelationships } from "./RoleResponseRelationships"; import { RolesType } from "./RolesType"; import { RoleUpdateAttributes } from "./RoleUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Role object returned by the API. - */ +*/ export class RoleUpdateResponseData { /** * Attributes of the role. - */ + */ "attributes"?: RoleUpdateAttributes; /** * The unique identifier of the role. - */ + */ "id"?: string; /** * Relationships of the role object returned by the API. - */ + */ "relationships"?: RoleResponseRelationships; /** * Roles type. - */ + */ "type": RolesType; /** @@ -46,35 +51,61 @@ export class RoleUpdateResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RoleUpdateAttributes", + "attributes": { + "baseName": "attributes", + "type": "RoleUpdateAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RoleResponseRelationships", + "relationships": { + "baseName": "relationships", + "type": "RoleResponseRelationships", }, - type: { - baseName: "type", - type: "RolesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RolesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RoleUpdateResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RolesResponse.ts b/packages/datadog-api-client-v2/models/RolesResponse.ts index 5c5c0ba33eec..ef733e5b2239 100644 --- a/packages/datadog-api-client-v2/models/RolesResponse.ts +++ b/packages/datadog-api-client-v2/models/RolesResponse.ts @@ -6,19 +6,24 @@ import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; import { Role } from "./Role"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about multiple roles. - */ +*/ export class RolesResponse { /** * Array of returned roles. - */ + */ "data"?: Array; /** * Object describing meta attributes of response. - */ + */ "meta"?: ResponseMetaAttributes; /** @@ -37,26 +42,52 @@ export class RolesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ResponseMetaAttributes", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ResponseMetaAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RolesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RolesSort.ts b/packages/datadog-api-client-v2/models/RolesSort.ts index 7ebabdefd287..ab02e1335049 100644 --- a/packages/datadog-api-client-v2/models/RolesSort.ts +++ b/packages/datadog-api-client-v2/models/RolesSort.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sorting options for roles. - */ +*/ -export type RolesSort = - | typeof NAME_ASCENDING - | typeof NAME_DESCENDING - | typeof MODIFIED_AT_ASCENDING - | typeof MODIFIED_AT_DESCENDING - | typeof USER_COUNT_ASCENDING - | typeof USER_COUNT_DESCENDING - | UnparsedObject; -export const NAME_ASCENDING = "name"; -export const NAME_DESCENDING = "-name"; -export const MODIFIED_AT_ASCENDING = "modified_at"; -export const MODIFIED_AT_DESCENDING = "-modified_at"; -export const USER_COUNT_ASCENDING = "user_count"; -export const USER_COUNT_DESCENDING = "-user_count"; +export type RolesSort = typeof NAME_ASCENDING| typeof NAME_DESCENDING| typeof MODIFIED_AT_ASCENDING| typeof MODIFIED_AT_DESCENDING| typeof USER_COUNT_ASCENDING| typeof USER_COUNT_DESCENDING | UnparsedObject; +export const NAME_ASCENDING = 'name'; +export const NAME_DESCENDING = '-name'; +export const MODIFIED_AT_ASCENDING = 'modified_at'; +export const MODIFIED_AT_DESCENDING = '-modified_at'; +export const USER_COUNT_ASCENDING = 'user_count'; +export const USER_COUNT_DESCENDING = '-user_count'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RolesType.ts b/packages/datadog-api-client-v2/models/RolesType.ts index d2fb12a0b8c3..036330e3966f 100644 --- a/packages/datadog-api-client-v2/models/RolesType.ts +++ b/packages/datadog-api-client-v2/models/RolesType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Roles type. - */ +*/ export type RolesType = typeof ROLES | UnparsedObject; -export const ROLES = "roles"; +export const ROLES = 'roles'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RuleAttributes.ts b/packages/datadog-api-client-v2/models/RuleAttributes.ts index a890495ecc06..20ad0b332766 100644 --- a/packages/datadog-api-client-v2/models/RuleAttributes.ts +++ b/packages/datadog-api-client-v2/models/RuleAttributes.ts @@ -4,47 +4,52 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Details of a rule. - */ +*/ export class RuleAttributes { /** * The scorecard name to which this rule must belong. - */ + */ "category"?: string; /** * Creation time of the rule outcome. - */ + */ "createdAt"?: Date; /** * Defines if the rule is a custom rule. - */ + */ "custom"?: boolean; /** * Explanation of the rule. - */ + */ "description"?: string; /** * If enabled, the rule is calculated as part of the score. - */ + */ "enabled"?: boolean; /** * Time of the last rule outcome modification. - */ + */ "modifiedAt"?: Date; /** * Name of the rule. - */ + */ "name"?: string; /** * Owner of the rule. - */ + */ "owner"?: string; /** * The scorecard name to which this rule must belong. - */ + */ "scorecardName"?: string; /** @@ -63,56 +68,82 @@ export class RuleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - category: { - baseName: "category", - type: "string", + "category": { + "baseName": "category", + "type": "string", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - custom: { - baseName: "custom", - type: "boolean", + "custom": { + "baseName": "custom", + "type": "boolean", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - owner: { - baseName: "owner", - type: "string", + "owner": { + "baseName": "owner", + "type": "string", }, - scorecardName: { - baseName: "scorecard_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "scorecardName": { + "baseName": "scorecard_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RuleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RuleOutcomeRelationships.ts b/packages/datadog-api-client-v2/models/RuleOutcomeRelationships.ts index 3994b1d6de47..e8e53e19dc6d 100644 --- a/packages/datadog-api-client-v2/models/RuleOutcomeRelationships.ts +++ b/packages/datadog-api-client-v2/models/RuleOutcomeRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToOutcome } from "./RelationshipToOutcome"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API relationship to a scorecard rule. - */ +*/ export class RuleOutcomeRelationships { /** * The JSON:API relationship to a scorecard outcome. - */ + */ "rule"?: RelationshipToOutcome; /** @@ -32,22 +37,48 @@ export class RuleOutcomeRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rule: { - baseName: "rule", - type: "RelationshipToOutcome", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rule": { + "baseName": "rule", + "type": "RelationshipToOutcome", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RuleOutcomeRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RuleSeverity.ts b/packages/datadog-api-client-v2/models/RuleSeverity.ts index b3c1803fcbbe..6ba49859a7f3 100644 --- a/packages/datadog-api-client-v2/models/RuleSeverity.ts +++ b/packages/datadog-api-client-v2/models/RuleSeverity.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Severity of a security rule. - */ +*/ -export type RuleSeverity = - | typeof CRITICAL - | typeof HIGH - | typeof MEDIUM - | typeof LOW - | typeof UNKNOWN - | typeof INFO - | UnparsedObject; -export const CRITICAL = "critical"; -export const HIGH = "high"; -export const MEDIUM = "medium"; -export const LOW = "low"; -export const UNKNOWN = "unknown"; -export const INFO = "info"; +export type RuleSeverity = typeof CRITICAL| typeof HIGH| typeof MEDIUM| typeof LOW| typeof UNKNOWN| typeof INFO | UnparsedObject; +export const CRITICAL = 'critical'; +export const HIGH = 'high'; +export const MEDIUM = 'medium'; +export const LOW = 'low'; +export const UNKNOWN = 'unknown'; +export const INFO = 'info'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RuleType.ts b/packages/datadog-api-client-v2/models/RuleType.ts index 301298c35c93..a59182a87728 100644 --- a/packages/datadog-api-client-v2/models/RuleType.ts +++ b/packages/datadog-api-client-v2/models/RuleType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for scorecard rules. - */ +*/ export type RuleType = typeof RULE | UnparsedObject; -export const RULE = "rule"; +export const RULE = 'rule'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RuleTypesItems.ts b/packages/datadog-api-client-v2/models/RuleTypesItems.ts index a5e2aab4d811..e5a4415069ba 100644 --- a/packages/datadog-api-client-v2/models/RuleTypesItems.ts +++ b/packages/datadog-api-client-v2/models/RuleTypesItems.ts @@ -4,42 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Security rule type which can be used in security rules. * Signal-based notification rules can filter signals based on rule types application_security, log_detection, * workload_security, signal_correlation, cloud_configuration and infrastructure_configuration. * Vulnerability-based notification rules can filter vulnerabilities based on rule types application_code_vulnerability, * application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, and api_security. - */ +*/ -export type RuleTypesItems = - | typeof APPLICATION_SECURITY - | typeof LOG_DETECTION - | typeof WORKLOAD_SECURITY - | typeof SIGNAL_CORRELATION - | typeof CLOUD_CONFIGURATION - | typeof INFRASTRUCTURE_CONFIGURATION - | typeof APPLICATION_CODE_VULNERABILITY - | typeof APPLICATION_LIBRARY_VULNERABILITY - | typeof ATTACK_PATH - | typeof CONTAINER_IMAGE_VULNERABILITY - | typeof IDENTITY_RISK - | typeof MISCONFIGURATION - | typeof API_SECURITY - | UnparsedObject; -export const APPLICATION_SECURITY = "application_security"; -export const LOG_DETECTION = "log_detection"; -export const WORKLOAD_SECURITY = "workload_security"; -export const SIGNAL_CORRELATION = "signal_correlation"; -export const CLOUD_CONFIGURATION = "cloud_configuration"; -export const INFRASTRUCTURE_CONFIGURATION = "infrastructure_configuration"; -export const APPLICATION_CODE_VULNERABILITY = "application_code_vulnerability"; -export const APPLICATION_LIBRARY_VULNERABILITY = - "application_library_vulnerability"; -export const ATTACK_PATH = "attack_path"; -export const CONTAINER_IMAGE_VULNERABILITY = "container_image_vulnerability"; -export const IDENTITY_RISK = "identity_risk"; -export const MISCONFIGURATION = "misconfiguration"; -export const API_SECURITY = "api_security"; +export type RuleTypesItems = typeof APPLICATION_SECURITY| typeof LOG_DETECTION| typeof WORKLOAD_SECURITY| typeof SIGNAL_CORRELATION| typeof CLOUD_CONFIGURATION| typeof INFRASTRUCTURE_CONFIGURATION| typeof APPLICATION_CODE_VULNERABILITY| typeof APPLICATION_LIBRARY_VULNERABILITY| typeof ATTACK_PATH| typeof CONTAINER_IMAGE_VULNERABILITY| typeof IDENTITY_RISK| typeof MISCONFIGURATION| typeof API_SECURITY | UnparsedObject; +export const APPLICATION_SECURITY = 'application_security'; +export const LOG_DETECTION = 'log_detection'; +export const WORKLOAD_SECURITY = 'workload_security'; +export const SIGNAL_CORRELATION = 'signal_correlation'; +export const CLOUD_CONFIGURATION = 'cloud_configuration'; +export const INFRASTRUCTURE_CONFIGURATION = 'infrastructure_configuration'; +export const APPLICATION_CODE_VULNERABILITY = 'application_code_vulnerability'; +export const APPLICATION_LIBRARY_VULNERABILITY = 'application_library_vulnerability'; +export const ATTACK_PATH = 'attack_path'; +export const CONTAINER_IMAGE_VULNERABILITY = 'container_image_vulnerability'; +export const IDENTITY_RISK = 'identity_risk'; +export const MISCONFIGURATION = 'misconfiguration'; +export const API_SECURITY = 'api_security'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RuleUser.ts b/packages/datadog-api-client-v2/models/RuleUser.ts index 444a461d00a7..54a83238569d 100644 --- a/packages/datadog-api-client-v2/models/RuleUser.ts +++ b/packages/datadog-api-client-v2/models/RuleUser.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User creating or modifying a rule. - */ +*/ export class RuleUser { /** * The user handle. - */ + */ "handle"?: string; /** * The user name. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class RuleUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RuleUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RuleVersionHistory.ts b/packages/datadog-api-client-v2/models/RuleVersionHistory.ts index 88e678acc03b..0a149d7e518a 100644 --- a/packages/datadog-api-client-v2/models/RuleVersionHistory.ts +++ b/packages/datadog-api-client-v2/models/RuleVersionHistory.ts @@ -5,20 +5,25 @@ */ import { RuleVersions } from "./RuleVersions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object containing the version history of a rule. - */ +*/ export class RuleVersionHistory { /** * The number of rule versions. - */ + */ "count"?: number; /** * The `RuleVersionHistory` `data`. - */ - "data"?: { [key: string]: RuleVersions }; + */ + "data"?: { [key: string]: RuleVersions; }; /** * A container for additional, undeclared properties. @@ -36,27 +41,53 @@ export class RuleVersionHistory { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int32", + "count": { + "baseName": "count", + "type": "number", + "format": "int32", }, - data: { - baseName: "data", - type: "{ [key: string]: RuleVersions; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "{ [key: string]: RuleVersions; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RuleVersionHistory.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RuleVersionUpdate.ts b/packages/datadog-api-client-v2/models/RuleVersionUpdate.ts index 5f78f9f5eb9d..94fbe8eae3e9 100644 --- a/packages/datadog-api-client-v2/models/RuleVersionUpdate.ts +++ b/packages/datadog-api-client-v2/models/RuleVersionUpdate.ts @@ -5,23 +5,28 @@ */ import { RuleVersionUpdateType } from "./RuleVersionUpdateType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A change in a rule version. - */ +*/ export class RuleVersionUpdate { /** * The new value of the field. - */ + */ "change"?: string; /** * The field that was changed. - */ + */ "field"?: string; /** * The type of change. - */ + */ "type"?: RuleVersionUpdateType; /** @@ -40,30 +45,56 @@ export class RuleVersionUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - change: { - baseName: "change", - type: "string", - }, - field: { - baseName: "field", - type: "string", + "change": { + "baseName": "change", + "type": "string", }, - type: { - baseName: "type", - type: "RuleVersionUpdateType", + "field": { + "baseName": "field", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleVersionUpdateType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RuleVersionUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RuleVersionUpdateType.ts b/packages/datadog-api-client-v2/models/RuleVersionUpdateType.ts index 151fa316273c..fd5deecd2a1d 100644 --- a/packages/datadog-api-client-v2/models/RuleVersionUpdateType.ts +++ b/packages/datadog-api-client-v2/models/RuleVersionUpdateType.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of change. - */ +*/ -export type RuleVersionUpdateType = - | typeof CREATE - | typeof UPDATE - | typeof DELETE - | UnparsedObject; -export const CREATE = "create"; -export const UPDATE = "update"; -export const DELETE = "delete"; +export type RuleVersionUpdateType = typeof CREATE| typeof UPDATE| typeof DELETE | UnparsedObject; +export const CREATE = 'create'; +export const UPDATE = 'update'; +export const DELETE = 'delete'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RuleVersions.ts b/packages/datadog-api-client-v2/models/RuleVersions.ts index 89d493d30672..79bdb692be9f 100644 --- a/packages/datadog-api-client-v2/models/RuleVersions.ts +++ b/packages/datadog-api-client-v2/models/RuleVersions.ts @@ -6,19 +6,24 @@ import { RuleVersionUpdate } from "./RuleVersionUpdate"; import { SecurityMonitoringRuleResponse } from "./SecurityMonitoringRuleResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A rule version with a list of updates. - */ +*/ export class RuleVersions { /** * A list of changes. - */ + */ "changes"?: Array; /** * Create a new rule. - */ + */ "rule"?: SecurityMonitoringRuleResponse; /** @@ -37,26 +42,52 @@ export class RuleVersions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - changes: { - baseName: "changes", - type: "Array", + "changes": { + "baseName": "changes", + "type": "Array", }, - rule: { - baseName: "rule", - type: "SecurityMonitoringRuleResponse", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rule": { + "baseName": "rule", + "type": "SecurityMonitoringRuleResponse", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RuleVersions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricCompute.ts b/packages/datadog-api-client-v2/models/RumMetricCompute.ts index 57c7c8b7fec2..66c821acedd9 100644 --- a/packages/datadog-api-client-v2/models/RumMetricCompute.ts +++ b/packages/datadog-api-client-v2/models/RumMetricCompute.ts @@ -5,25 +5,30 @@ */ import { RumMetricComputeAggregationType } from "./RumMetricComputeAggregationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the rum-based metric. - */ +*/ export class RumMetricCompute { /** * The type of aggregation to use. - */ + */ "aggregationType": RumMetricComputeAggregationType; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The path to the value the rum-based metric will aggregate on. * Only present when `aggregation_type` is `distribution`. - */ + */ "path"?: string; /** @@ -42,31 +47,57 @@ export class RumMetricCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationType: { - baseName: "aggregation_type", - type: "RumMetricComputeAggregationType", - required: true, - }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "aggregationType": { + "baseName": "aggregation_type", + "type": "RumMetricComputeAggregationType", + "required": true, }, - path: { - baseName: "path", - type: "string", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricComputeAggregationType.ts b/packages/datadog-api-client-v2/models/RumMetricComputeAggregationType.ts index 574099805c1a..1bc66f42b297 100644 --- a/packages/datadog-api-client-v2/models/RumMetricComputeAggregationType.ts +++ b/packages/datadog-api-client-v2/models/RumMetricComputeAggregationType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of aggregation to use. - */ +*/ -export type RumMetricComputeAggregationType = - | typeof COUNT - | typeof DISTRIBUTION - | UnparsedObject; -export const COUNT = "count"; -export const DISTRIBUTION = "distribution"; +export type RumMetricComputeAggregationType = typeof COUNT| typeof DISTRIBUTION | UnparsedObject; +export const COUNT = 'count'; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RumMetricCreateAttributes.ts b/packages/datadog-api-client-v2/models/RumMetricCreateAttributes.ts index 8716ce18fcd1..6045941ada89 100644 --- a/packages/datadog-api-client-v2/models/RumMetricCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RumMetricCreateAttributes.ts @@ -9,31 +9,36 @@ import { RumMetricFilter } from "./RumMetricFilter"; import { RumMetricGroupBy } from "./RumMetricGroupBy"; import { RumMetricUniqueness } from "./RumMetricUniqueness"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing the Datadog rum-based metric to create. - */ +*/ export class RumMetricCreateAttributes { /** * The compute rule to compute the rum-based metric. - */ + */ "compute": RumMetricCompute; /** * The type of RUM events to filter on. - */ + */ "eventType": RumMetricEventType; /** * The rum-based metric filter. Events matching this filter will be aggregated in this metric. - */ + */ "filter"?: RumMetricFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** * The rule to count updatable events. Is only set if `event_type` is `sessions` or `views`. - */ + */ "uniqueness"?: RumMetricUniqueness; /** @@ -52,40 +57,66 @@ export class RumMetricCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "RumMetricCompute", - required: true, + "compute": { + "baseName": "compute", + "type": "RumMetricCompute", + "required": true, }, - eventType: { - baseName: "event_type", - type: "RumMetricEventType", - required: true, + "eventType": { + "baseName": "event_type", + "type": "RumMetricEventType", + "required": true, }, - filter: { - baseName: "filter", - type: "RumMetricFilter", + "filter": { + "baseName": "filter", + "type": "RumMetricFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - uniqueness: { - baseName: "uniqueness", - type: "RumMetricUniqueness", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uniqueness": { + "baseName": "uniqueness", + "type": "RumMetricUniqueness", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricCreateData.ts b/packages/datadog-api-client-v2/models/RumMetricCreateData.ts index 06e7a9b9af19..99916bbc5fc3 100644 --- a/packages/datadog-api-client-v2/models/RumMetricCreateData.ts +++ b/packages/datadog-api-client-v2/models/RumMetricCreateData.ts @@ -6,23 +6,28 @@ import { RumMetricCreateAttributes } from "./RumMetricCreateAttributes"; import { RumMetricType } from "./RumMetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new rum-based metric properties. - */ +*/ export class RumMetricCreateData { /** * The object describing the Datadog rum-based metric to create. - */ + */ "attributes": RumMetricCreateAttributes; /** * The name of the rum-based metric. - */ + */ "id": string; /** * The type of the resource. The value should always be rum_metrics. - */ + */ "type": RumMetricType; /** @@ -41,33 +46,59 @@ export class RumMetricCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RumMetricCreateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RumMetricCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RumMetricType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumMetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricCreateRequest.ts b/packages/datadog-api-client-v2/models/RumMetricCreateRequest.ts index 365fb1e00759..0c2406225fef 100644 --- a/packages/datadog-api-client-v2/models/RumMetricCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/RumMetricCreateRequest.ts @@ -5,15 +5,20 @@ */ import { RumMetricCreateData } from "./RumMetricCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new rum-based metric body. - */ +*/ export class RumMetricCreateRequest { /** * The new rum-based metric properties. - */ + */ "data": RumMetricCreateData; /** @@ -32,23 +37,49 @@ export class RumMetricCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RumMetricCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RumMetricCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricEventType.ts b/packages/datadog-api-client-v2/models/RumMetricEventType.ts index 037193eea33f..b7dffc535d91 100644 --- a/packages/datadog-api-client-v2/models/RumMetricEventType.ts +++ b/packages/datadog-api-client-v2/models/RumMetricEventType.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of RUM events to filter on. - */ +*/ -export type RumMetricEventType = - | typeof SESSION - | typeof VIEW - | typeof ACTION - | typeof ERROR - | typeof RESOURCE - | typeof LONG_TASK - | typeof VITAL - | UnparsedObject; -export const SESSION = "session"; -export const VIEW = "view"; -export const ACTION = "action"; -export const ERROR = "error"; -export const RESOURCE = "resource"; -export const LONG_TASK = "long_task"; -export const VITAL = "vital"; +export type RumMetricEventType = typeof SESSION| typeof VIEW| typeof ACTION| typeof ERROR| typeof RESOURCE| typeof LONG_TASK| typeof VITAL | UnparsedObject; +export const SESSION = 'session'; +export const VIEW = 'view'; +export const ACTION = 'action'; +export const ERROR = 'error'; +export const RESOURCE = 'resource'; +export const LONG_TASK = 'long_task'; +export const VITAL = 'vital'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RumMetricFilter.ts b/packages/datadog-api-client-v2/models/RumMetricFilter.ts index 44116bb1e3b5..b0018d4a74da 100644 --- a/packages/datadog-api-client-v2/models/RumMetricFilter.ts +++ b/packages/datadog-api-client-v2/models/RumMetricFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rum-based metric filter. Events matching this filter will be aggregated in this metric. - */ +*/ export class RumMetricFilter { /** * The search query - following the RUM search syntax. - */ + */ "query": string; /** @@ -31,23 +36,49 @@ export class RumMetricFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricGroupBy.ts b/packages/datadog-api-client-v2/models/RumMetricGroupBy.ts index 1473f6eb1029..813fe83d369e 100644 --- a/packages/datadog-api-client-v2/models/RumMetricGroupBy.ts +++ b/packages/datadog-api-client-v2/models/RumMetricGroupBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class RumMetricGroupBy { /** * The path to the value the rum-based metric will be aggregated over. - */ + */ "path": string; /** * Eventual name of the tag that gets created. By default, `path` is used as the tag name. - */ + */ "tagName"?: string; /** @@ -35,27 +40,53 @@ export class RumMetricGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - path: { - baseName: "path", - type: "string", - required: true, + "path": { + "baseName": "path", + "type": "string", + "required": true, }, - tagName: { - baseName: "tag_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagName": { + "baseName": "tag_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponse.ts b/packages/datadog-api-client-v2/models/RumMetricResponse.ts index 3dde95907548..8a99a851758f 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponse.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponse.ts @@ -5,15 +5,20 @@ */ import { RumMetricResponseData } from "./RumMetricResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rum-based metric object. - */ +*/ export class RumMetricResponse { /** * The rum-based metric properties. - */ + */ "data"?: RumMetricResponseData; /** @@ -32,22 +37,48 @@ export class RumMetricResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RumMetricResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RumMetricResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponseAttributes.ts b/packages/datadog-api-client-v2/models/RumMetricResponseAttributes.ts index 09ed98ebe567..19505fc3e795 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponseAttributes.ts @@ -9,31 +9,36 @@ import { RumMetricResponseFilter } from "./RumMetricResponseFilter"; import { RumMetricResponseGroupBy } from "./RumMetricResponseGroupBy"; import { RumMetricResponseUniqueness } from "./RumMetricResponseUniqueness"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a Datadog rum-based metric. - */ +*/ export class RumMetricResponseAttributes { /** * The compute rule to compute the rum-based metric. - */ + */ "compute"?: RumMetricResponseCompute; /** * The type of RUM events to filter on. - */ + */ "eventType"?: RumMetricEventType; /** * The rum-based metric filter. RUM events matching this filter will be aggregated in this metric. - */ + */ "filter"?: RumMetricResponseFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** * The rule to count updatable events. Is only set if `event_type` is `session` or `view`. - */ + */ "uniqueness"?: RumMetricResponseUniqueness; /** @@ -52,38 +57,64 @@ export class RumMetricResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "RumMetricResponseCompute", + "compute": { + "baseName": "compute", + "type": "RumMetricResponseCompute", }, - eventType: { - baseName: "event_type", - type: "RumMetricEventType", + "eventType": { + "baseName": "event_type", + "type": "RumMetricEventType", }, - filter: { - baseName: "filter", - type: "RumMetricResponseFilter", + "filter": { + "baseName": "filter", + "type": "RumMetricResponseFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - uniqueness: { - baseName: "uniqueness", - type: "RumMetricResponseUniqueness", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uniqueness": { + "baseName": "uniqueness", + "type": "RumMetricResponseUniqueness", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponseCompute.ts b/packages/datadog-api-client-v2/models/RumMetricResponseCompute.ts index f789f9ec42ac..f5c085b88fd1 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponseCompute.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponseCompute.ts @@ -5,25 +5,30 @@ */ import { RumMetricComputeAggregationType } from "./RumMetricComputeAggregationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the rum-based metric. - */ +*/ export class RumMetricResponseCompute { /** * The type of aggregation to use. - */ + */ "aggregationType"?: RumMetricComputeAggregationType; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The path to the value the rum-based metric will aggregate on. * Only present when `aggregation_type` is `distribution`. - */ + */ "path"?: string; /** @@ -42,30 +47,56 @@ export class RumMetricResponseCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationType: { - baseName: "aggregation_type", - type: "RumMetricComputeAggregationType", - }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "aggregationType": { + "baseName": "aggregation_type", + "type": "RumMetricComputeAggregationType", }, - path: { - baseName: "path", - type: "string", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponseCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponseData.ts b/packages/datadog-api-client-v2/models/RumMetricResponseData.ts index 3eac447a8463..b7c836a5dd2d 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponseData.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponseData.ts @@ -6,23 +6,28 @@ import { RumMetricResponseAttributes } from "./RumMetricResponseAttributes"; import { RumMetricType } from "./RumMetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rum-based metric properties. - */ +*/ export class RumMetricResponseData { /** * The object describing a Datadog rum-based metric. - */ + */ "attributes"?: RumMetricResponseAttributes; /** * The name of the rum-based metric. - */ + */ "id"?: string; /** * The type of the resource. The value should always be rum_metrics. - */ + */ "type"?: RumMetricType; /** @@ -41,30 +46,56 @@ export class RumMetricResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RumMetricResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "RumMetricResponseAttributes", }, - type: { - baseName: "type", - type: "RumMetricType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumMetricType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponseFilter.ts b/packages/datadog-api-client-v2/models/RumMetricResponseFilter.ts index c91774dd5323..fb41441452ff 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponseFilter.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponseFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rum-based metric filter. RUM events matching this filter will be aggregated in this metric. - */ +*/ export class RumMetricResponseFilter { /** * The search query - following the RUM search syntax. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class RumMetricResponseFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponseFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponseGroupBy.ts b/packages/datadog-api-client-v2/models/RumMetricResponseGroupBy.ts index e0058360b330..ac56c6227586 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponseGroupBy.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponseGroupBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class RumMetricResponseGroupBy { /** * The path to the value the rum-based metric will be aggregated over. - */ + */ "path"?: string; /** * Eventual name of the tag that gets created. By default, `path` is used as the tag name. - */ + */ "tagName"?: string; /** @@ -35,26 +40,52 @@ export class RumMetricResponseGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - path: { - baseName: "path", - type: "string", + "path": { + "baseName": "path", + "type": "string", }, - tagName: { - baseName: "tag_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagName": { + "baseName": "tag_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponseGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricResponseUniqueness.ts b/packages/datadog-api-client-v2/models/RumMetricResponseUniqueness.ts index ae5aeb897137..0c56c3e5c257 100644 --- a/packages/datadog-api-client-v2/models/RumMetricResponseUniqueness.ts +++ b/packages/datadog-api-client-v2/models/RumMetricResponseUniqueness.ts @@ -5,15 +5,20 @@ */ import { RumMetricUniquenessWhen } from "./RumMetricUniquenessWhen"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rule to count updatable events. Is only set if `event_type` is `session` or `view`. - */ +*/ export class RumMetricResponseUniqueness { /** * When to count updatable events. `match` when the event is first seen, or `end` when the event is complete. - */ + */ "when"?: RumMetricUniquenessWhen; /** @@ -32,22 +37,48 @@ export class RumMetricResponseUniqueness { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - when: { - baseName: "when", - type: "RumMetricUniquenessWhen", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "when": { + "baseName": "when", + "type": "RumMetricUniquenessWhen", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricResponseUniqueness.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricType.ts b/packages/datadog-api-client-v2/models/RumMetricType.ts index e3d6dad1b6a6..79f98452dab3 100644 --- a/packages/datadog-api-client-v2/models/RumMetricType.ts +++ b/packages/datadog-api-client-v2/models/RumMetricType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be rum_metrics. - */ +*/ export type RumMetricType = typeof RUM_METRICS | UnparsedObject; -export const RUM_METRICS = "rum_metrics"; +export const RUM_METRICS = 'rum_metrics'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RumMetricUniqueness.ts b/packages/datadog-api-client-v2/models/RumMetricUniqueness.ts index 3663349d5715..501fdfeedb61 100644 --- a/packages/datadog-api-client-v2/models/RumMetricUniqueness.ts +++ b/packages/datadog-api-client-v2/models/RumMetricUniqueness.ts @@ -5,15 +5,20 @@ */ import { RumMetricUniquenessWhen } from "./RumMetricUniquenessWhen"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rule to count updatable events. Is only set if `event_type` is `sessions` or `views`. - */ +*/ export class RumMetricUniqueness { /** * When to count updatable events. `match` when the event is first seen, or `end` when the event is complete. - */ + */ "when": RumMetricUniquenessWhen; /** @@ -32,23 +37,49 @@ export class RumMetricUniqueness { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - when: { - baseName: "when", - type: "RumMetricUniquenessWhen", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "when": { + "baseName": "when", + "type": "RumMetricUniquenessWhen", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricUniqueness.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricUniquenessWhen.ts b/packages/datadog-api-client-v2/models/RumMetricUniquenessWhen.ts index 13365f8353b5..bd91755a2019 100644 --- a/packages/datadog-api-client-v2/models/RumMetricUniquenessWhen.ts +++ b/packages/datadog-api-client-v2/models/RumMetricUniquenessWhen.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * When to count updatable events. `match` when the event is first seen, or `end` when the event is complete. - */ +*/ -export type RumMetricUniquenessWhen = - | typeof WHEN_MATCH - | typeof WHEN_END - | UnparsedObject; -export const WHEN_MATCH = "match"; -export const WHEN_END = "end"; +export type RumMetricUniquenessWhen = typeof WHEN_MATCH| typeof WHEN_END | UnparsedObject; +export const WHEN_MATCH = 'match'; +export const WHEN_END = 'end'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RumMetricUpdateAttributes.ts b/packages/datadog-api-client-v2/models/RumMetricUpdateAttributes.ts index f2313214a65d..8efa0028732f 100644 --- a/packages/datadog-api-client-v2/models/RumMetricUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RumMetricUpdateAttributes.ts @@ -7,23 +7,28 @@ import { RumMetricFilter } from "./RumMetricFilter"; import { RumMetricGroupBy } from "./RumMetricGroupBy"; import { RumMetricUpdateCompute } from "./RumMetricUpdateCompute"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rum-based metric properties that will be updated. - */ +*/ export class RumMetricUpdateAttributes { /** * The compute rule to compute the rum-based metric. - */ + */ "compute"?: RumMetricUpdateCompute; /** * The rum-based metric filter. Events matching this filter will be aggregated in this metric. - */ + */ "filter"?: RumMetricFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,30 +47,56 @@ export class RumMetricUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "RumMetricUpdateCompute", - }, - filter: { - baseName: "filter", - type: "RumMetricFilter", + "compute": { + "baseName": "compute", + "type": "RumMetricUpdateCompute", }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "RumMetricFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricUpdateCompute.ts b/packages/datadog-api-client-v2/models/RumMetricUpdateCompute.ts index 5e6757f87539..95b2d4087690 100644 --- a/packages/datadog-api-client-v2/models/RumMetricUpdateCompute.ts +++ b/packages/datadog-api-client-v2/models/RumMetricUpdateCompute.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the rum-based metric. - */ +*/ export class RumMetricUpdateCompute { /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** @@ -32,22 +37,48 @@ export class RumMetricUpdateCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricUpdateCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricUpdateData.ts b/packages/datadog-api-client-v2/models/RumMetricUpdateData.ts index c39702127432..9ba87e7827a3 100644 --- a/packages/datadog-api-client-v2/models/RumMetricUpdateData.ts +++ b/packages/datadog-api-client-v2/models/RumMetricUpdateData.ts @@ -6,23 +6,28 @@ import { RumMetricType } from "./RumMetricType"; import { RumMetricUpdateAttributes } from "./RumMetricUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new rum-based metric properties. - */ +*/ export class RumMetricUpdateData { /** * The rum-based metric properties that will be updated. - */ + */ "attributes": RumMetricUpdateAttributes; /** * The name of the rum-based metric. - */ + */ "id"?: string; /** * The type of the resource. The value should always be rum_metrics. - */ + */ "type": RumMetricType; /** @@ -41,32 +46,58 @@ export class RumMetricUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RumMetricUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "RumMetricUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RumMetricType", - required: true, + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumMetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricUpdateRequest.ts b/packages/datadog-api-client-v2/models/RumMetricUpdateRequest.ts index b2b47bf8b081..198db9fb1843 100644 --- a/packages/datadog-api-client-v2/models/RumMetricUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RumMetricUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { RumMetricUpdateData } from "./RumMetricUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new rum-based metric body. - */ +*/ export class RumMetricUpdateRequest { /** * The new rum-based metric properties. - */ + */ "data": RumMetricUpdateData; /** @@ -32,23 +37,49 @@ export class RumMetricUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RumMetricUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RumMetricUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumMetricsResponse.ts b/packages/datadog-api-client-v2/models/RumMetricsResponse.ts index 6db54119e6b6..c46f4dfe4594 100644 --- a/packages/datadog-api-client-v2/models/RumMetricsResponse.ts +++ b/packages/datadog-api-client-v2/models/RumMetricsResponse.ts @@ -5,15 +5,20 @@ */ import { RumMetricResponseData } from "./RumMetricResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All the available rum-based metric objects. - */ +*/ export class RumMetricsResponse { /** * A list of rum-based metric objects. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class RumMetricsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumMetricsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterAttributes.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterAttributes.ts index 26dc932ff335..a06c320fd067 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterAttributes.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterAttributes.ts @@ -5,31 +5,36 @@ */ import { RumRetentionFilterEventType } from "./RumRetentionFilterEventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing attributes of a RUM retention filter. - */ +*/ export class RumRetentionFilterAttributes { /** * Whether the retention filter is enabled. - */ + */ "enabled"?: boolean; /** * The type of RUM events to filter on. - */ + */ "eventType"?: RumRetentionFilterEventType; /** * The name of a RUM retention filter. - */ + */ "name"?: string; /** * The query string for a RUM retention filter. - */ + */ "query"?: string; /** * The sample rate for a RUM retention filter, between 0 and 100. - */ + */ "sampleRate"?: number; /** @@ -48,39 +53,65 @@ export class RumRetentionFilterAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - eventType: { - baseName: "event_type", - type: "RumRetentionFilterEventType", + "eventType": { + "baseName": "event_type", + "type": "RumRetentionFilterEventType", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - sampleRate: { - baseName: "sample_rate", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sampleRate": { + "baseName": "sample_rate", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterCreateAttributes.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterCreateAttributes.ts index de48fe71bb21..f324ae7e8f43 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterCreateAttributes.ts @@ -5,31 +5,36 @@ */ import { RumRetentionFilterEventType } from "./RumRetentionFilterEventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing attributes of a RUM retention filter to create. - */ +*/ export class RumRetentionFilterCreateAttributes { /** * Whether the retention filter is enabled. - */ + */ "enabled"?: boolean; /** * The type of RUM events to filter on. - */ + */ "eventType": RumRetentionFilterEventType; /** * The name of a RUM retention filter. - */ + */ "name": string; /** * The query string for a RUM retention filter. - */ + */ "query"?: string; /** * The sample rate for a RUM retention filter, between 0 and 100. - */ + */ "sampleRate": number; /** @@ -48,42 +53,68 @@ export class RumRetentionFilterCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - eventType: { - baseName: "event_type", - type: "RumRetentionFilterEventType", - required: true, + "eventType": { + "baseName": "event_type", + "type": "RumRetentionFilterEventType", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - sampleRate: { - baseName: "sample_rate", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sampleRate": { + "baseName": "sample_rate", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterCreateData.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterCreateData.ts index 5bf60c776140..525004104f9e 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterCreateData.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterCreateData.ts @@ -6,19 +6,24 @@ import { RumRetentionFilterCreateAttributes } from "./RumRetentionFilterCreateAttributes"; import { RumRetentionFilterType } from "./RumRetentionFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new RUM retention filter properties to create. - */ +*/ export class RumRetentionFilterCreateData { /** * The object describing attributes of a RUM retention filter to create. - */ + */ "attributes": RumRetentionFilterCreateAttributes; /** * The type of the resource. The value should always be retention_filters. - */ + */ "type": RumRetentionFilterType; /** @@ -37,28 +42,54 @@ export class RumRetentionFilterCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RumRetentionFilterCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RumRetentionFilterCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RumRetentionFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterCreateRequest.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterCreateRequest.ts index 054ef9f87361..9fd7461af035 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterCreateRequest.ts @@ -5,15 +5,20 @@ */ import { RumRetentionFilterCreateData } from "./RumRetentionFilterCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The RUM retention filter body to create. - */ +*/ export class RumRetentionFilterCreateRequest { /** * The new RUM retention filter properties to create. - */ + */ "data": RumRetentionFilterCreateData; /** @@ -32,23 +37,49 @@ export class RumRetentionFilterCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RumRetentionFilterCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RumRetentionFilterCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterData.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterData.ts index 236e4b50f306..3d34e8454a23 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterData.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterData.ts @@ -6,23 +6,28 @@ import { RumRetentionFilterAttributes } from "./RumRetentionFilterAttributes"; import { RumRetentionFilterType } from "./RumRetentionFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The RUM retention filter. - */ +*/ export class RumRetentionFilterData { /** * The object describing attributes of a RUM retention filter. - */ + */ "attributes"?: RumRetentionFilterAttributes; /** * ID of retention filter in UUID. - */ + */ "id"?: string; /** * The type of the resource. The value should always be retention_filters. - */ + */ "type"?: RumRetentionFilterType; /** @@ -41,30 +46,56 @@ export class RumRetentionFilterData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RumRetentionFilterAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "RumRetentionFilterAttributes", }, - type: { - baseName: "type", - type: "RumRetentionFilterType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumRetentionFilterType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterEventType.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterEventType.ts index c4bd10e72732..feab665ee517 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterEventType.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterEventType.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of RUM events to filter on. - */ +*/ -export type RumRetentionFilterEventType = - | typeof SESSION - | typeof VIEW - | typeof ACTION - | typeof ERROR - | typeof RESOURCE - | typeof LONG_TASK - | typeof VITAL - | UnparsedObject; -export const SESSION = "session"; -export const VIEW = "view"; -export const ACTION = "action"; -export const ERROR = "error"; -export const RESOURCE = "resource"; -export const LONG_TASK = "long_task"; -export const VITAL = "vital"; +export type RumRetentionFilterEventType = typeof SESSION| typeof VIEW| typeof ACTION| typeof ERROR| typeof RESOURCE| typeof LONG_TASK| typeof VITAL | UnparsedObject; +export const SESSION = 'session'; +export const VIEW = 'view'; +export const ACTION = 'action'; +export const ERROR = 'error'; +export const RESOURCE = 'resource'; +export const LONG_TASK = 'long_task'; +export const VITAL = 'vital'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterResponse.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterResponse.ts index 5bb91c1e4b0a..4f387721a358 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterResponse.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterResponse.ts @@ -5,15 +5,20 @@ */ import { RumRetentionFilterData } from "./RumRetentionFilterData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The RUM retention filter object. - */ +*/ export class RumRetentionFilterResponse { /** * The RUM retention filter. - */ + */ "data"?: RumRetentionFilterData; /** @@ -32,22 +37,48 @@ export class RumRetentionFilterResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RumRetentionFilterData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RumRetentionFilterData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterType.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterType.ts index c53e5cef8155..57195da4579a 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterType.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be retention_filters. - */ +*/ export type RumRetentionFilterType = typeof RETENTION_FILTERS | UnparsedObject; -export const RETENTION_FILTERS = "retention_filters"; +export const RETENTION_FILTERS = 'retention_filters'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateAttributes.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateAttributes.ts index 967c9318d072..92a339f2f42b 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateAttributes.ts @@ -5,31 +5,36 @@ */ import { RumRetentionFilterEventType } from "./RumRetentionFilterEventType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing attributes of a RUM retention filter to update. - */ +*/ export class RumRetentionFilterUpdateAttributes { /** * Whether the retention filter is enabled. - */ + */ "enabled"?: boolean; /** * The type of RUM events to filter on. - */ + */ "eventType"?: RumRetentionFilterEventType; /** * The name of a RUM retention filter. - */ + */ "name"?: string; /** * The query string for a RUM retention filter. - */ + */ "query"?: string; /** * The sample rate for a RUM retention filter, between 0 and 100. - */ + */ "sampleRate"?: number; /** @@ -48,39 +53,65 @@ export class RumRetentionFilterUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - eventType: { - baseName: "event_type", - type: "RumRetentionFilterEventType", + "eventType": { + "baseName": "event_type", + "type": "RumRetentionFilterEventType", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - sampleRate: { - baseName: "sample_rate", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sampleRate": { + "baseName": "sample_rate", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateData.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateData.ts index faa75a1fa8bc..5c991e71e8d0 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateData.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateData.ts @@ -6,23 +6,28 @@ import { RumRetentionFilterType } from "./RumRetentionFilterType"; import { RumRetentionFilterUpdateAttributes } from "./RumRetentionFilterUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new RUM retention filter properties to update. - */ +*/ export class RumRetentionFilterUpdateData { /** * The object describing attributes of a RUM retention filter to update. - */ + */ "attributes": RumRetentionFilterUpdateAttributes; /** * ID of retention filter in UUID. - */ + */ "id": string; /** * The type of the resource. The value should always be retention_filters. - */ + */ "type": RumRetentionFilterType; /** @@ -41,33 +46,59 @@ export class RumRetentionFilterUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RumRetentionFilterUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "RumRetentionFilterUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "RumRetentionFilterType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateRequest.ts b/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateRequest.ts index d2e1d37b0583..979dca7de70a 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFilterUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { RumRetentionFilterUpdateData } from "./RumRetentionFilterUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The RUM retention filter body to update. - */ +*/ export class RumRetentionFilterUpdateRequest { /** * The new RUM retention filter properties to update. - */ + */ "data": RumRetentionFilterUpdateData; /** @@ -32,23 +37,49 @@ export class RumRetentionFilterUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RumRetentionFilterUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RumRetentionFilterUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFilterUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderData.ts b/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderData.ts index 985957a13362..d98aba3f040a 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderData.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderData.ts @@ -5,19 +5,24 @@ */ import { RumRetentionFilterType } from "./RumRetentionFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The RUM retention filter data for ordering. - */ +*/ export class RumRetentionFiltersOrderData { /** * ID of retention filter in UUID. - */ + */ "id": string; /** * The type of the resource. The value should always be retention_filters. - */ + */ "type": RumRetentionFilterType; /** @@ -36,28 +41,54 @@ export class RumRetentionFiltersOrderData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "RumRetentionFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RumRetentionFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFiltersOrderData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderRequest.ts b/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderRequest.ts index 955ef9b98f88..aa152f812f58 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderRequest.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderRequest.ts @@ -5,16 +5,21 @@ */ import { RumRetentionFiltersOrderData } from "./RumRetentionFiltersOrderData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The list of RUM retention filter IDs along with their corresponding type to reorder. * All retention filter IDs should be included in the list created for a RUM application. - */ +*/ export class RumRetentionFiltersOrderRequest { /** * A list of RUM retention filter IDs along with type. - */ + */ "data"?: Array; /** @@ -33,22 +38,48 @@ export class RumRetentionFiltersOrderRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFiltersOrderRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderResponse.ts b/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderResponse.ts index 6510a33691b6..3d1527651349 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderResponse.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFiltersOrderResponse.ts @@ -5,15 +5,20 @@ */ import { RumRetentionFiltersOrderData } from "./RumRetentionFiltersOrderData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The list of RUM retention filter IDs along with type. - */ +*/ export class RumRetentionFiltersOrderResponse { /** * A list of RUM retention filter IDs along with type. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class RumRetentionFiltersOrderResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFiltersOrderResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RumRetentionFiltersResponse.ts b/packages/datadog-api-client-v2/models/RumRetentionFiltersResponse.ts index f9f1195ee6ce..9bb3debd7100 100644 --- a/packages/datadog-api-client-v2/models/RumRetentionFiltersResponse.ts +++ b/packages/datadog-api-client-v2/models/RumRetentionFiltersResponse.ts @@ -5,15 +5,20 @@ */ import { RumRetentionFilterData } from "./RumRetentionFilterData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All RUM retention filters for a RUM application. - */ +*/ export class RumRetentionFiltersResponse { /** * A list of RUM retention filters. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class RumRetentionFiltersResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RumRetentionFiltersResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.ts b/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.ts index d5642d7dff2e..5fb11161c849 100644 --- a/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.ts +++ b/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.ts @@ -5,15 +5,20 @@ */ import { RunHistoricalJobRequestData } from "./RunHistoricalJobRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Run a historical job request. - */ +*/ export class RunHistoricalJobRequest { /** * Data for running a historical job request. - */ + */ "data"?: RunHistoricalJobRequestData; /** @@ -32,22 +37,48 @@ export class RunHistoricalJobRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "RunHistoricalJobRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "RunHistoricalJobRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RunHistoricalJobRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.ts b/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.ts index f796459d5e15..eedbef23b093 100644 --- a/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.ts @@ -6,23 +6,28 @@ import { JobDefinition } from "./JobDefinition"; import { JobDefinitionFromRule } from "./JobDefinitionFromRule"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Run a historical job request. - */ +*/ export class RunHistoricalJobRequestAttributes { /** * Definition of a historical job based on a security monitoring rule. - */ + */ "fromRule"?: JobDefinitionFromRule; /** * Request ID. - */ + */ "id"?: string; /** * Definition of a historical job. - */ + */ "jobDefinition"?: JobDefinition; /** @@ -41,30 +46,56 @@ export class RunHistoricalJobRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fromRule: { - baseName: "fromRule", - type: "JobDefinitionFromRule", - }, - id: { - baseName: "id", - type: "string", + "fromRule": { + "baseName": "fromRule", + "type": "JobDefinitionFromRule", }, - jobDefinition: { - baseName: "jobDefinition", - type: "JobDefinition", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "jobDefinition": { + "baseName": "jobDefinition", + "type": "JobDefinition", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RunHistoricalJobRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.ts b/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.ts index 6596da0c8f98..72d5ed604502 100644 --- a/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.ts +++ b/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.ts @@ -6,19 +6,24 @@ import { RunHistoricalJobRequestAttributes } from "./RunHistoricalJobRequestAttributes"; import { RunHistoricalJobRequestDataType } from "./RunHistoricalJobRequestDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for running a historical job request. - */ +*/ export class RunHistoricalJobRequestData { /** * Run a historical job request. - */ + */ "attributes"?: RunHistoricalJobRequestAttributes; /** * Type of data. - */ + */ "type"?: RunHistoricalJobRequestDataType; /** @@ -37,26 +42,52 @@ export class RunHistoricalJobRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RunHistoricalJobRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "RunHistoricalJobRequestAttributes", }, - type: { - baseName: "type", - type: "RunHistoricalJobRequestDataType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RunHistoricalJobRequestDataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return RunHistoricalJobRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.ts b/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.ts index 83bb2ce63e44..00af1fa57bee 100644 --- a/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.ts +++ b/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of data. - */ +*/ -export type RunHistoricalJobRequestDataType = - | typeof HISTORICALDETECTIONSJOBCREATE - | UnparsedObject; -export const HISTORICALDETECTIONSJOBCREATE = "historicalDetectionsJobCreate"; +export type RunHistoricalJobRequestDataType = typeof HISTORICALDETECTIONSJOBCREATE | UnparsedObject; +export const HISTORICALDETECTIONSJOBCREATE = 'historicalDetectionsJobCreate'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SAMLAssertionAttribute.ts b/packages/datadog-api-client-v2/models/SAMLAssertionAttribute.ts index f515db27b498..75cbda207608 100644 --- a/packages/datadog-api-client-v2/models/SAMLAssertionAttribute.ts +++ b/packages/datadog-api-client-v2/models/SAMLAssertionAttribute.ts @@ -6,23 +6,28 @@ import { SAMLAssertionAttributeAttributes } from "./SAMLAssertionAttributeAttributes"; import { SAMLAssertionAttributesType } from "./SAMLAssertionAttributesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * SAML assertion attribute. - */ +*/ export class SAMLAssertionAttribute { /** * Key/Value pair of attributes used in SAML assertion attributes. - */ + */ "attributes"?: SAMLAssertionAttributeAttributes; /** * The ID of the SAML assertion attribute. - */ + */ "id": string; /** * SAML assertion attributes resource type. - */ + */ "type": SAMLAssertionAttributesType; /** @@ -41,32 +46,58 @@ export class SAMLAssertionAttribute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SAMLAssertionAttributeAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SAMLAssertionAttributeAttributes", }, - type: { - baseName: "type", - type: "SAMLAssertionAttributesType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SAMLAssertionAttributesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SAMLAssertionAttribute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SAMLAssertionAttributeAttributes.ts b/packages/datadog-api-client-v2/models/SAMLAssertionAttributeAttributes.ts index 8d85e042a73d..35b05b730c84 100644 --- a/packages/datadog-api-client-v2/models/SAMLAssertionAttributeAttributes.ts +++ b/packages/datadog-api-client-v2/models/SAMLAssertionAttributeAttributes.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Key/Value pair of attributes used in SAML assertion attributes. - */ +*/ export class SAMLAssertionAttributeAttributes { /** * Key portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeKey"?: string; /** * Value portion of a key/value pair of the attribute sent from the Identity Provider. - */ + */ "attributeValue"?: string; /** @@ -35,26 +40,52 @@ export class SAMLAssertionAttributeAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributeKey: { - baseName: "attribute_key", - type: "string", + "attributeKey": { + "baseName": "attribute_key", + "type": "string", }, - attributeValue: { - baseName: "attribute_value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributeValue": { + "baseName": "attribute_value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SAMLAssertionAttributeAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SAMLAssertionAttributesType.ts b/packages/datadog-api-client-v2/models/SAMLAssertionAttributesType.ts index e5b41680c320..5ba727cfd51b 100644 --- a/packages/datadog-api-client-v2/models/SAMLAssertionAttributesType.ts +++ b/packages/datadog-api-client-v2/models/SAMLAssertionAttributesType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * SAML assertion attributes resource type. - */ +*/ -export type SAMLAssertionAttributesType = - | typeof SAML_ASSERTION_ATTRIBUTES - | UnparsedObject; -export const SAML_ASSERTION_ATTRIBUTES = "saml_assertion_attributes"; +export type SAMLAssertionAttributesType = typeof SAML_ASSERTION_ATTRIBUTES | UnparsedObject; +export const SAML_ASSERTION_ATTRIBUTES = 'saml_assertion_attributes'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SBOM.ts b/packages/datadog-api-client-v2/models/SBOM.ts index e0a71f5d95bb..f0e1cdc9219b 100644 --- a/packages/datadog-api-client-v2/models/SBOM.ts +++ b/packages/datadog-api-client-v2/models/SBOM.ts @@ -6,23 +6,28 @@ import { SBOMAttributes } from "./SBOMAttributes"; import { SBOMType } from "./SBOMType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single SBOM - */ +*/ export class SBOM { /** * The JSON:API attributes of the SBOM. - */ + */ "attributes"?: SBOMAttributes; /** * The unique ID for this SBOM (it is equivalent to the `asset_name` or `asset_name@repo_digest` (Image) - */ + */ "id"?: string; /** * The JSON:API type. - */ + */ "type"?: SBOMType; /** @@ -41,30 +46,56 @@ export class SBOM { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SBOMAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SBOMAttributes", }, - type: { - baseName: "type", - type: "SBOMType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SBOMType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SBOM.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SBOMAttributes.ts b/packages/datadog-api-client-v2/models/SBOMAttributes.ts index 6d24ee93f187..60986661ae69 100644 --- a/packages/datadog-api-client-v2/models/SBOMAttributes.ts +++ b/packages/datadog-api-client-v2/models/SBOMAttributes.ts @@ -7,35 +7,40 @@ import { SBOMComponent } from "./SBOMComponent"; import { SBOMMetadata } from "./SBOMMetadata"; import { SpecVersion } from "./SpecVersion"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes of the SBOM. - */ +*/ export class SBOMAttributes { /** * Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOM do not have a filename convention nor does JSON schema support namespaces. This value MUST be `CycloneDX`. - */ + */ "bomFormat": string; /** * A list of software and hardware components. - */ + */ "components": Array; /** * Provides additional information about a BOM. - */ + */ "metadata": SBOMMetadata; /** * Every BOM generated has a unique serial number, even if the contents of the BOM have not changed overt time. The serial number follows [RFC-4122](https://datatracker.ietf.org/doc/html/rfc4122) - */ + */ "serialNumber": string; /** * The version of the CycloneDX specification a BOM conforms to. - */ + */ "specVersion": SpecVersion; /** * It increments when a BOM is modified. The default value is 1. - */ + */ "version": number; /** @@ -54,49 +59,75 @@ export class SBOMAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bomFormat: { - baseName: "bomFormat", - type: "string", - required: true, - }, - components: { - baseName: "components", - type: "Array", - required: true, + "bomFormat": { + "baseName": "bomFormat", + "type": "string", + "required": true, }, - metadata: { - baseName: "metadata", - type: "SBOMMetadata", - required: true, + "components": { + "baseName": "components", + "type": "Array", + "required": true, }, - serialNumber: { - baseName: "serialNumber", - type: "string", - required: true, + "metadata": { + "baseName": "metadata", + "type": "SBOMMetadata", + "required": true, }, - specVersion: { - baseName: "specVersion", - type: "SpecVersion", - required: true, + "serialNumber": { + "baseName": "serialNumber", + "type": "string", + "required": true, }, - version: { - baseName: "version", - type: "number", - required: true, - format: "int64", + "specVersion": { + "baseName": "specVersion", + "type": "SpecVersion", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SBOMAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SBOMComponent.ts b/packages/datadog-api-client-v2/models/SBOMComponent.ts index ff48b3f0928f..c29ee6112746 100644 --- a/packages/datadog-api-client-v2/models/SBOMComponent.ts +++ b/packages/datadog-api-client-v2/models/SBOMComponent.ts @@ -5,31 +5,36 @@ */ import { SBOMComponentType } from "./SBOMComponentType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Software or hardware component. - */ +*/ export class SBOMComponent { /** * An optional identifier that can be used to reference the component elsewhere in the BOM. - */ + */ "bomRef"?: string; /** * The name of the component. This will often be a shortened, single name of the component. - */ + */ "name": string; /** * Specifies the package-url (purl). The purl, if specified, MUST be valid and conform to the [specification](https://github.com/package-url/purl-spec). - */ + */ "purl"?: string; /** * The SBOM component type - */ + */ "type": SBOMComponentType; /** * The component version. - */ + */ "version": string; /** @@ -48,41 +53,67 @@ export class SBOMComponent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bomRef: { - baseName: "bom-ref", - type: "string", + "bomRef": { + "baseName": "bom-ref", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - purl: { - baseName: "purl", - type: "string", + "purl": { + "baseName": "purl", + "type": "string", }, - type: { - baseName: "type", - type: "SBOMComponentType", - required: true, + "type": { + "baseName": "type", + "type": "SBOMComponentType", + "required": true, }, - version: { - baseName: "version", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SBOMComponent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SBOMComponentType.ts b/packages/datadog-api-client-v2/models/SBOMComponentType.ts index b3ec8ae7c497..481a6be337f0 100644 --- a/packages/datadog-api-client-v2/models/SBOMComponentType.ts +++ b/packages/datadog-api-client-v2/models/SBOMComponentType.ts @@ -4,35 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The SBOM component type - */ +*/ -export type SBOMComponentType = - | typeof APPLICATION - | typeof CONTAINER - | typeof DATA - | typeof DEVICE - | typeof DEVICE_DRIVER - | typeof FILE - | typeof FIRMWARE - | typeof FRAMEWORK - | typeof LIBRARY - | typeof MACHINE_LEARNING_MODEL - | typeof OPERATING_SYSTEM - | typeof PLATFORM - | UnparsedObject; -export const APPLICATION = "application"; -export const CONTAINER = "container"; -export const DATA = "data"; -export const DEVICE = "device"; -export const DEVICE_DRIVER = "device-driver"; -export const FILE = "file"; -export const FIRMWARE = "firmware"; -export const FRAMEWORK = "framework"; -export const LIBRARY = "library"; -export const MACHINE_LEARNING_MODEL = "machine-learning-model"; -export const OPERATING_SYSTEM = "operating-system"; -export const PLATFORM = "platform"; +export type SBOMComponentType = typeof APPLICATION| typeof CONTAINER| typeof DATA| typeof DEVICE| typeof DEVICE_DRIVER| typeof FILE| typeof FIRMWARE| typeof FRAMEWORK| typeof LIBRARY| typeof MACHINE_LEARNING_MODEL| typeof OPERATING_SYSTEM| typeof PLATFORM | UnparsedObject; +export const APPLICATION = 'application'; +export const CONTAINER = 'container'; +export const DATA = 'data'; +export const DEVICE = 'device'; +export const DEVICE_DRIVER = 'device-driver'; +export const FILE = 'file'; +export const FIRMWARE = 'firmware'; +export const FRAMEWORK = 'framework'; +export const LIBRARY = 'library'; +export const MACHINE_LEARNING_MODEL = 'machine-learning-model'; +export const OPERATING_SYSTEM = 'operating-system'; +export const PLATFORM = 'platform'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SBOMMetadata.ts b/packages/datadog-api-client-v2/models/SBOMMetadata.ts index 98b7c78b85b0..bad480f607f0 100644 --- a/packages/datadog-api-client-v2/models/SBOMMetadata.ts +++ b/packages/datadog-api-client-v2/models/SBOMMetadata.ts @@ -5,15 +5,20 @@ */ import { SBOMMetadataComponent } from "./SBOMMetadataComponent"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Provides additional information about a BOM. - */ +*/ export class SBOMMetadata { /** * The component that the BOM describes. - */ + */ "component"?: SBOMMetadataComponent; /** @@ -32,22 +37,48 @@ export class SBOMMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - component: { - baseName: "component", - type: "SBOMMetadataComponent", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "component": { + "baseName": "component", + "type": "SBOMMetadataComponent", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SBOMMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SBOMMetadataComponent.ts b/packages/datadog-api-client-v2/models/SBOMMetadataComponent.ts index 7f6cb2de6e55..456fded6c9a3 100644 --- a/packages/datadog-api-client-v2/models/SBOMMetadataComponent.ts +++ b/packages/datadog-api-client-v2/models/SBOMMetadataComponent.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The component that the BOM describes. - */ +*/ export class SBOMMetadataComponent { /** * The name of the component. This will often be a shortened, single name of the component. - */ + */ "name"?: string; /** * Specifies the type of the component. - */ + */ "type"?: string; /** @@ -35,26 +40,52 @@ export class SBOMMetadataComponent { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SBOMMetadataComponent.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SBOMType.ts b/packages/datadog-api-client-v2/models/SBOMType.ts index c7f92c13e3ee..6c7404810f0b 100644 --- a/packages/datadog-api-client-v2/models/SBOMType.ts +++ b/packages/datadog-api-client-v2/models/SBOMType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type. - */ +*/ export type SBOMType = typeof SBOMS | UnparsedObject; -export const SBOMS = "sboms"; +export const SBOMS = 'sboms'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SLOReportInterval.ts b/packages/datadog-api-client-v2/models/SLOReportInterval.ts index 056d97ad75b2..02806d7d0fbf 100644 --- a/packages/datadog-api-client-v2/models/SLOReportInterval.ts +++ b/packages/datadog-api-client-v2/models/SLOReportInterval.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The frequency at which report data is to be generated. - */ +*/ -export type SLOReportInterval = - | typeof DAILY - | typeof WEEKLY - | typeof MONTHLY - | UnparsedObject; -export const DAILY = "daily"; -export const WEEKLY = "weekly"; -export const MONTHLY = "monthly"; +export type SLOReportInterval = typeof DAILY| typeof WEEKLY| typeof MONTHLY | UnparsedObject; +export const DAILY = 'daily'; +export const WEEKLY = 'weekly'; +export const MONTHLY = 'monthly'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SLOReportPostResponse.ts b/packages/datadog-api-client-v2/models/SLOReportPostResponse.ts index 052b2e40bb13..69619022b5a3 100644 --- a/packages/datadog-api-client-v2/models/SLOReportPostResponse.ts +++ b/packages/datadog-api-client-v2/models/SLOReportPostResponse.ts @@ -5,15 +5,20 @@ */ import { SLOReportPostResponseData } from "./SLOReportPostResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The SLO report response. - */ +*/ export class SLOReportPostResponse { /** * The data portion of the SLO report response. - */ + */ "data"?: SLOReportPostResponseData; /** @@ -32,22 +37,48 @@ export class SLOReportPostResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOReportPostResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SLOReportPostResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOReportPostResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SLOReportPostResponseData.ts b/packages/datadog-api-client-v2/models/SLOReportPostResponseData.ts index dfef24aca057..0e04b17475ae 100644 --- a/packages/datadog-api-client-v2/models/SLOReportPostResponseData.ts +++ b/packages/datadog-api-client-v2/models/SLOReportPostResponseData.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data portion of the SLO report response. - */ +*/ export class SLOReportPostResponseData { /** * The ID of the report job. - */ + */ "id"?: string; /** * The type of ID. - */ + */ "type"?: string; /** @@ -35,26 +40,52 @@ export class SLOReportPostResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOReportPostResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SLOReportStatus.ts b/packages/datadog-api-client-v2/models/SLOReportStatus.ts index 156dd64333a6..932ae329b44a 100644 --- a/packages/datadog-api-client-v2/models/SLOReportStatus.ts +++ b/packages/datadog-api-client-v2/models/SLOReportStatus.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the SLO report job. - */ +*/ -export type SLOReportStatus = - | typeof IN_PROGRESS - | typeof COMPLETED - | typeof COMPLETED_WITH_ERRORS - | typeof FAILED - | UnparsedObject; -export const IN_PROGRESS = "in_progress"; -export const COMPLETED = "completed"; -export const COMPLETED_WITH_ERRORS = "completed_with_errors"; -export const FAILED = "failed"; +export type SLOReportStatus = typeof IN_PROGRESS| typeof COMPLETED| typeof COMPLETED_WITH_ERRORS| typeof FAILED | UnparsedObject; +export const IN_PROGRESS = 'in_progress'; +export const COMPLETED = 'completed'; +export const COMPLETED_WITH_ERRORS = 'completed_with_errors'; +export const FAILED = 'failed'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SLOReportStatusGetResponse.ts b/packages/datadog-api-client-v2/models/SLOReportStatusGetResponse.ts index ef78addd37e7..cc3f269225d3 100644 --- a/packages/datadog-api-client-v2/models/SLOReportStatusGetResponse.ts +++ b/packages/datadog-api-client-v2/models/SLOReportStatusGetResponse.ts @@ -5,15 +5,20 @@ */ import { SLOReportStatusGetResponseData } from "./SLOReportStatusGetResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The SLO report status response. - */ +*/ export class SLOReportStatusGetResponse { /** * The data portion of the SLO report status response. - */ + */ "data"?: SLOReportStatusGetResponseData; /** @@ -32,22 +37,48 @@ export class SLOReportStatusGetResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SLOReportStatusGetResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SLOReportStatusGetResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOReportStatusGetResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseAttributes.ts b/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseAttributes.ts index 35bb750b450a..ba52711bfd21 100644 --- a/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseAttributes.ts @@ -5,15 +5,20 @@ */ import { SLOReportStatus } from "./SLOReportStatus"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes portion of the SLO report status response. - */ +*/ export class SLOReportStatusGetResponseAttributes { /** * The status of the SLO report job. - */ + */ "status"?: SLOReportStatus; /** @@ -32,22 +37,48 @@ export class SLOReportStatusGetResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - status: { - baseName: "status", - type: "SLOReportStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SLOReportStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOReportStatusGetResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseData.ts b/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseData.ts index 796296a44d04..ae57638471e8 100644 --- a/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseData.ts +++ b/packages/datadog-api-client-v2/models/SLOReportStatusGetResponseData.ts @@ -5,23 +5,28 @@ */ import { SLOReportStatusGetResponseAttributes } from "./SLOReportStatusGetResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data portion of the SLO report status response. - */ +*/ export class SLOReportStatusGetResponseData { /** * The attributes portion of the SLO report status response. - */ + */ "attributes"?: SLOReportStatusGetResponseAttributes; /** * The ID of the report job. - */ + */ "id"?: string; /** * The type of ID. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class SLOReportStatusGetResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SLOReportStatusGetResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SLOReportStatusGetResponseAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SLOReportStatusGetResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarColumn.ts b/packages/datadog-api-client-v2/models/ScalarColumn.ts index 43b28acfe7a3..b210cdd9147f 100644 --- a/packages/datadog-api-client-v2/models/ScalarColumn.ts +++ b/packages/datadog-api-client-v2/models/ScalarColumn.ts @@ -6,13 +6,15 @@ import { DataScalarColumn } from "./DataScalarColumn"; import { GroupScalarColumn } from "./GroupScalarColumn"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A single column in a scalar query response. - */ +*/ -export type ScalarColumn = - | GroupScalarColumn - | DataScalarColumn - | UnparsedObject; +export type ScalarColumn = GroupScalarColumn | DataScalarColumn | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.ts b/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.ts index 874312577343..f6eca1ece8c2 100644 --- a/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.ts +++ b/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of column present for groups. - */ +*/ export type ScalarColumnTypeGroup = typeof GROUP | UnparsedObject; -export const GROUP = "group"; +export const GROUP = 'group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.ts b/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.ts index 99f4195e8b8b..8849e42fdea7 100644 --- a/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.ts +++ b/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of column present for numbers. - */ +*/ export type ScalarColumnTypeNumber = typeof NUMBER | UnparsedObject; -export const NUMBER = "number"; +export const NUMBER = 'number'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaQueryRequest.ts b/packages/datadog-api-client-v2/models/ScalarFormulaQueryRequest.ts index d660c631bc03..bf378e9664c2 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaQueryRequest.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaQueryRequest.ts @@ -5,15 +5,20 @@ */ import { ScalarFormulaRequest } from "./ScalarFormulaRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A wrapper request around one scalar query to be executed. - */ +*/ export class ScalarFormulaQueryRequest { /** * A single scalar query to be executed. - */ + */ "data": ScalarFormulaRequest; /** @@ -32,23 +37,49 @@ export class ScalarFormulaQueryRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ScalarFormulaRequest", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ScalarFormulaRequest", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarFormulaQueryRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaQueryResponse.ts b/packages/datadog-api-client-v2/models/ScalarFormulaQueryResponse.ts index 3fd42bc6da04..645d8e4d6247 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaQueryResponse.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaQueryResponse.ts @@ -5,19 +5,24 @@ */ import { ScalarResponse } from "./ScalarResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A message containing one or more responses to scalar queries. - */ +*/ export class ScalarFormulaQueryResponse { /** * A message containing the response to a scalar query. - */ + */ "data"?: ScalarResponse; /** * An error generated when processing a request. - */ + */ "errors"?: string; /** @@ -36,26 +41,52 @@ export class ScalarFormulaQueryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ScalarResponse", + "data": { + "baseName": "data", + "type": "ScalarResponse", }, - errors: { - baseName: "errors", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarFormulaQueryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaRequest.ts b/packages/datadog-api-client-v2/models/ScalarFormulaRequest.ts index b52c97cd1b25..287b1ae959db 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaRequest.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaRequest.ts @@ -6,19 +6,24 @@ import { ScalarFormulaRequestAttributes } from "./ScalarFormulaRequestAttributes"; import { ScalarFormulaRequestType } from "./ScalarFormulaRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single scalar query to be executed. - */ +*/ export class ScalarFormulaRequest { /** * The object describing a scalar formula request. - */ + */ "attributes": ScalarFormulaRequestAttributes; /** * The type of the resource. The value should always be scalar_request. - */ + */ "type": ScalarFormulaRequestType; /** @@ -37,28 +42,54 @@ export class ScalarFormulaRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ScalarFormulaRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "ScalarFormulaRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "ScalarFormulaRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ScalarFormulaRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarFormulaRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaRequestAttributes.ts b/packages/datadog-api-client-v2/models/ScalarFormulaRequestAttributes.ts index 920611e5ec96..bed85547a54b 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaRequestAttributes.ts @@ -6,27 +6,32 @@ import { QueryFormula } from "./QueryFormula"; import { ScalarQuery } from "./ScalarQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a scalar formula request. - */ +*/ export class ScalarFormulaRequestAttributes { /** * List of formulas to be calculated and returned as responses. - */ + */ "formulas"?: Array; /** * Start date (inclusive) of the query in milliseconds since the Unix epoch. - */ + */ "from": number; /** * List of queries to be run and used as inputs to the formulas. - */ + */ "queries": Array; /** * End date (exclusive) of the query in milliseconds since the Unix epoch. - */ + */ "to": number; /** @@ -45,39 +50,65 @@ export class ScalarFormulaRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formulas: { - baseName: "formulas", - type: "Array", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", + "from": { + "baseName": "from", + "type": "number", + "required": true, + "format": "int64", }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarFormulaRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaRequestType.ts b/packages/datadog-api-client-v2/models/ScalarFormulaRequestType.ts index c0d981a6450d..1bf2b4024ae6 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaRequestType.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaRequestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be scalar_request. - */ +*/ export type ScalarFormulaRequestType = typeof SCALAR_REQUEST | UnparsedObject; -export const SCALAR_REQUEST = "scalar_request"; +export const SCALAR_REQUEST = 'scalar_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.ts b/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.ts index bc16edab9544..64bcabcaef9a 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.ts @@ -5,15 +5,20 @@ */ import { ScalarColumn } from "./ScalarColumn"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a scalar response. - */ +*/ export class ScalarFormulaResponseAtrributes { /** * List of response columns, each corresponding to an individual formula or query in the request and with values in parallel arrays matching the series list. - */ + */ "columns"?: Array; /** @@ -32,22 +37,48 @@ export class ScalarFormulaResponseAtrributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - columns: { - baseName: "columns", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "columns": { + "baseName": "columns", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarFormulaResponseAtrributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarFormulaResponseType.ts b/packages/datadog-api-client-v2/models/ScalarFormulaResponseType.ts index 08226e153633..e318c4a20d39 100644 --- a/packages/datadog-api-client-v2/models/ScalarFormulaResponseType.ts +++ b/packages/datadog-api-client-v2/models/ScalarFormulaResponseType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be scalar_response. - */ +*/ export type ScalarFormulaResponseType = typeof SCALAR_RESPONSE | UnparsedObject; -export const SCALAR_RESPONSE = "scalar_response"; +export const SCALAR_RESPONSE = 'scalar_response'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ScalarMeta.ts b/packages/datadog-api-client-v2/models/ScalarMeta.ts index b5e511cfca94..c43e523c5a34 100644 --- a/packages/datadog-api-client-v2/models/ScalarMeta.ts +++ b/packages/datadog-api-client-v2/models/ScalarMeta.ts @@ -5,18 +5,23 @@ */ import { Unit } from "./Unit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata for the resulting numerical values. - */ +*/ export class ScalarMeta { /** * Detailed information about the unit. * First element describes the "primary unit" (for example, `bytes` in `bytes per second`). * The second element describes the "per unit" (for example, `second` in `bytes per second`). * If the second element is not present, the API returns null. - */ + */ "unit"?: Array; /** @@ -35,22 +40,48 @@ export class ScalarMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - unit: { - baseName: "unit", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScalarQuery.ts b/packages/datadog-api-client-v2/models/ScalarQuery.ts index 4a501fb5cf28..b5ba52d58c91 100644 --- a/packages/datadog-api-client-v2/models/ScalarQuery.ts +++ b/packages/datadog-api-client-v2/models/ScalarQuery.ts @@ -6,13 +6,15 @@ import { EventsScalarQuery } from "./EventsScalarQuery"; import { MetricsScalarQuery } from "./MetricsScalarQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An individual scalar query to one of the basic Datadog data sources. - */ +*/ -export type ScalarQuery = - | MetricsScalarQuery - | EventsScalarQuery - | UnparsedObject; +export type ScalarQuery = MetricsScalarQuery | EventsScalarQuery | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ScalarResponse.ts b/packages/datadog-api-client-v2/models/ScalarResponse.ts index ccb0abb30d9a..b01110340217 100644 --- a/packages/datadog-api-client-v2/models/ScalarResponse.ts +++ b/packages/datadog-api-client-v2/models/ScalarResponse.ts @@ -6,19 +6,24 @@ import { ScalarFormulaResponseAtrributes } from "./ScalarFormulaResponseAtrributes"; import { ScalarFormulaResponseType } from "./ScalarFormulaResponseType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A message containing the response to a scalar query. - */ +*/ export class ScalarResponse { /** * The object describing a scalar response. - */ + */ "attributes"?: ScalarFormulaResponseAtrributes; /** * The type of the resource. The value should always be scalar_response. - */ + */ "type"?: ScalarFormulaResponseType; /** @@ -37,26 +42,52 @@ export class ScalarResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ScalarFormulaResponseAtrributes", + "attributes": { + "baseName": "attributes", + "type": "ScalarFormulaResponseAtrributes", }, - type: { - baseName: "type", - type: "ScalarFormulaResponseType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ScalarFormulaResponseType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScalarResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScheduleTrigger.ts b/packages/datadog-api-client-v2/models/ScheduleTrigger.ts index d1d6af900e8f..994098a19ab1 100644 --- a/packages/datadog-api-client-v2/models/ScheduleTrigger.ts +++ b/packages/datadog-api-client-v2/models/ScheduleTrigger.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from a Schedule. The workflow must be published. - */ +*/ export class ScheduleTrigger { /** * Recurrence rule expression for scheduling. - */ + */ "rruleExpression": string; /** @@ -31,23 +36,49 @@ export class ScheduleTrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rruleExpression: { - baseName: "rruleExpression", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rruleExpression": { + "baseName": "rruleExpression", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScheduleTrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScheduleTriggerWrapper.ts b/packages/datadog-api-client-v2/models/ScheduleTriggerWrapper.ts index 14a37ffd313e..bc2adef7f54a 100644 --- a/packages/datadog-api-client-v2/models/ScheduleTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/ScheduleTriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { ScheduleTrigger } from "./ScheduleTrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Schedule-based trigger. - */ +*/ export class ScheduleTriggerWrapper { /** * Trigger a workflow from a Schedule. The workflow must be published. - */ + */ "scheduleTrigger": ScheduleTrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class ScheduleTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - scheduleTrigger: { - baseName: "scheduleTrigger", - type: "ScheduleTrigger", - required: true, + "scheduleTrigger": { + "baseName": "scheduleTrigger", + "type": "ScheduleTrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ScheduleTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ScorecardType.ts b/packages/datadog-api-client-v2/models/ScorecardType.ts index cf19203f4ba5..ab39aec567f6 100644 --- a/packages/datadog-api-client-v2/models/ScorecardType.ts +++ b/packages/datadog-api-client-v2/models/ScorecardType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type for scorecard. - */ +*/ export type ScorecardType = typeof SCORECARD | UnparsedObject; -export const SCORECARD = "scorecard"; +export const SCORECARD = 'scorecard'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityFilter.ts b/packages/datadog-api-client-v2/models/SecurityFilter.ts index efcab3327d61..37d61c963d66 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilter.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilter.ts @@ -6,23 +6,28 @@ import { SecurityFilterAttributes } from "./SecurityFilterAttributes"; import { SecurityFilterType } from "./SecurityFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The security filter's properties. - */ +*/ export class SecurityFilter { /** * The object describing a security filter. - */ + */ "attributes"?: SecurityFilterAttributes; /** * The ID of the security filter. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `security_filters`. - */ + */ "type"?: SecurityFilterType; /** @@ -41,30 +46,56 @@ export class SecurityFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityFilterAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SecurityFilterAttributes", }, - type: { - baseName: "type", - type: "SecurityFilterType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityFilterType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterAttributes.ts b/packages/datadog-api-client-v2/models/SecurityFilterAttributes.ts index 619721a1be34..5299033ec2ad 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterAttributes.ts @@ -6,39 +6,44 @@ import { SecurityFilterExclusionFilterResponse } from "./SecurityFilterExclusionFilterResponse"; import { SecurityFilterFilteredDataType } from "./SecurityFilterFilteredDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a security filter. - */ +*/ export class SecurityFilterAttributes { /** * The list of exclusion filters applied in this security filter. - */ + */ "exclusionFilters"?: Array; /** * The filtered data type. - */ + */ "filteredDataType"?: SecurityFilterFilteredDataType; /** * Whether the security filter is the built-in filter. - */ + */ "isBuiltin"?: boolean; /** * Whether the security filter is enabled. - */ + */ "isEnabled"?: boolean; /** * The security filter name. - */ + */ "name"?: string; /** * The security filter query. Logs accepted by this query will be accepted by this filter. - */ + */ "query"?: string; /** * The version of the security filter. - */ + */ "version"?: number; /** @@ -57,47 +62,73 @@ export class SecurityFilterAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - exclusionFilters: { - baseName: "exclusion_filters", - type: "Array", - }, - filteredDataType: { - baseName: "filtered_data_type", - type: "SecurityFilterFilteredDataType", + "exclusionFilters": { + "baseName": "exclusion_filters", + "type": "Array", }, - isBuiltin: { - baseName: "is_builtin", - type: "boolean", + "filteredDataType": { + "baseName": "filtered_data_type", + "type": "SecurityFilterFilteredDataType", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isBuiltin": { + "baseName": "is_builtin", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - version: { - baseName: "version", - type: "number", - format: "int32", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterCreateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityFilterCreateAttributes.ts index fb78f9fca3d8..df39f13ca474 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterCreateAttributes.ts @@ -6,31 +6,36 @@ import { SecurityFilterExclusionFilter } from "./SecurityFilterExclusionFilter"; import { SecurityFilterFilteredDataType } from "./SecurityFilterFilteredDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the attributes of the security filter to be created. - */ +*/ export class SecurityFilterCreateAttributes { /** * Exclusion filters to exclude some logs from the security filter. - */ + */ "exclusionFilters": Array; /** * The filtered data type. - */ + */ "filteredDataType": SecurityFilterFilteredDataType; /** * Whether the security filter is enabled. - */ + */ "isEnabled": boolean; /** * The name of the security filter. - */ + */ "name": string; /** * The query of the security filter. - */ + */ "query": string; /** @@ -49,43 +54,69 @@ export class SecurityFilterCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - exclusionFilters: { - baseName: "exclusion_filters", - type: "Array", - required: true, + "exclusionFilters": { + "baseName": "exclusion_filters", + "type": "Array", + "required": true, }, - filteredDataType: { - baseName: "filtered_data_type", - type: "SecurityFilterFilteredDataType", - required: true, + "filteredDataType": { + "baseName": "filtered_data_type", + "type": "SecurityFilterFilteredDataType", + "required": true, }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", - required: true, + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterCreateData.ts b/packages/datadog-api-client-v2/models/SecurityFilterCreateData.ts index c37d83b900d9..94888d488489 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterCreateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterCreateData.ts @@ -6,19 +6,24 @@ import { SecurityFilterCreateAttributes } from "./SecurityFilterCreateAttributes"; import { SecurityFilterType } from "./SecurityFilterType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single security filter. - */ +*/ export class SecurityFilterCreateData { /** * Object containing the attributes of the security filter to be created. - */ + */ "attributes": SecurityFilterCreateAttributes; /** * The type of the resource. The value should always be `security_filters`. - */ + */ "type": SecurityFilterType; /** @@ -37,28 +42,54 @@ export class SecurityFilterCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityFilterCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SecurityFilterCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SecurityFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterCreateRequest.ts b/packages/datadog-api-client-v2/models/SecurityFilterCreateRequest.ts index da2ab92c4b1d..d595aefdb42a 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterCreateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityFilterCreateData } from "./SecurityFilterCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the security filter that you would like to create. - */ +*/ export class SecurityFilterCreateRequest { /** * Object for a single security filter. - */ + */ "data": SecurityFilterCreateData; /** @@ -32,23 +37,49 @@ export class SecurityFilterCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityFilterCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityFilterCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilter.ts b/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilter.ts index da0d13c00375..5ef2cb9d6db6 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilter.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilter.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Exclusion filter for the security filter. - */ +*/ export class SecurityFilterExclusionFilter { /** * Exclusion filter name. - */ + */ "name": string; /** * Exclusion filter query. Logs that match this query are excluded from the security filter. - */ + */ "query": string; /** @@ -35,28 +40,54 @@ export class SecurityFilterExclusionFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterExclusionFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilterResponse.ts b/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilterResponse.ts index cf4646510b6f..8b238afdf7db 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilterResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterExclusionFilterResponse.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single exclusion filter. - */ +*/ export class SecurityFilterExclusionFilterResponse { /** * The exclusion filter name. - */ + */ "name"?: string; /** * The exclusion filter query. - */ + */ "query"?: string; /** @@ -35,26 +40,52 @@ export class SecurityFilterExclusionFilterResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterExclusionFilterResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterFilteredDataType.ts b/packages/datadog-api-client-v2/models/SecurityFilterFilteredDataType.ts index 33dab047df6f..16ec8b646215 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterFilteredDataType.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterFilteredDataType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The filtered data type. - */ +*/ export type SecurityFilterFilteredDataType = typeof LOGS | UnparsedObject; -export const LOGS = "logs"; +export const LOGS = 'logs'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityFilterMeta.ts b/packages/datadog-api-client-v2/models/SecurityFilterMeta.ts index 808feb6a5b21..8c23523ce386 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterMeta.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterMeta.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Optional metadata associated to the response. - */ +*/ export class SecurityFilterMeta { /** * A warning message. - */ + */ "warning"?: string; /** @@ -31,22 +36,48 @@ export class SecurityFilterMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - warning: { - baseName: "warning", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warning": { + "baseName": "warning", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterResponse.ts b/packages/datadog-api-client-v2/models/SecurityFilterResponse.ts index ef302f5c24b6..2ea924c0874c 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterResponse.ts @@ -6,19 +6,24 @@ import { SecurityFilter } from "./SecurityFilter"; import { SecurityFilterMeta } from "./SecurityFilterMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object which includes a single security filter. - */ +*/ export class SecurityFilterResponse { /** * The security filter's properties. - */ + */ "data"?: SecurityFilter; /** * Optional metadata associated to the response. - */ + */ "meta"?: SecurityFilterMeta; /** @@ -37,26 +42,52 @@ export class SecurityFilterResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityFilter", + "data": { + "baseName": "data", + "type": "SecurityFilter", }, - meta: { - baseName: "meta", - type: "SecurityFilterMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SecurityFilterMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterType.ts b/packages/datadog-api-client-v2/models/SecurityFilterType.ts index e212b3861bbf..571d96865742 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterType.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `security_filters`. - */ +*/ export type SecurityFilterType = typeof SECURITY_FILTERS | UnparsedObject; -export const SECURITY_FILTERS = "security_filters"; +export const SECURITY_FILTERS = 'security_filters'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityFilterUpdateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityFilterUpdateAttributes.ts index 65e11d93fe6d..9336d88ac736 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterUpdateAttributes.ts @@ -6,35 +6,40 @@ import { SecurityFilterExclusionFilter } from "./SecurityFilterExclusionFilter"; import { SecurityFilterFilteredDataType } from "./SecurityFilterFilteredDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The security filters properties to be updated. - */ +*/ export class SecurityFilterUpdateAttributes { /** * Exclusion filters to exclude some logs from the security filter. - */ + */ "exclusionFilters"?: Array; /** * The filtered data type. - */ + */ "filteredDataType"?: SecurityFilterFilteredDataType; /** * Whether the security filter is enabled. - */ + */ "isEnabled"?: boolean; /** * The name of the security filter. - */ + */ "name"?: string; /** * The query of the security filter. - */ + */ "query"?: string; /** * The version of the security filter to update. - */ + */ "version"?: number; /** @@ -53,43 +58,69 @@ export class SecurityFilterUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - exclusionFilters: { - baseName: "exclusion_filters", - type: "Array", - }, - filteredDataType: { - baseName: "filtered_data_type", - type: "SecurityFilterFilteredDataType", + "exclusionFilters": { + "baseName": "exclusion_filters", + "type": "Array", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "filteredDataType": { + "baseName": "filtered_data_type", + "type": "SecurityFilterFilteredDataType", }, - name: { - baseName: "name", - type: "string", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - query: { - baseName: "query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - version: { - baseName: "version", - type: "number", - format: "int32", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterUpdateData.ts b/packages/datadog-api-client-v2/models/SecurityFilterUpdateData.ts index db88019c0863..a67c86c843cd 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterUpdateData.ts @@ -6,19 +6,24 @@ import { SecurityFilterType } from "./SecurityFilterType"; import { SecurityFilterUpdateAttributes } from "./SecurityFilterUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new security filter properties. - */ +*/ export class SecurityFilterUpdateData { /** * The security filters properties to be updated. - */ + */ "attributes": SecurityFilterUpdateAttributes; /** * The type of the resource. The value should always be `security_filters`. - */ + */ "type": SecurityFilterType; /** @@ -37,28 +42,54 @@ export class SecurityFilterUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityFilterUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SecurityFilterUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SecurityFilterType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityFilterType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFilterUpdateRequest.ts b/packages/datadog-api-client-v2/models/SecurityFilterUpdateRequest.ts index bf2dd96cb0c4..d8ec7a751ef2 100644 --- a/packages/datadog-api-client-v2/models/SecurityFilterUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityFilterUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityFilterUpdateData } from "./SecurityFilterUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new security filter body. - */ +*/ export class SecurityFilterUpdateRequest { /** * The new security filter properties. - */ + */ "data": SecurityFilterUpdateData; /** @@ -32,23 +37,49 @@ export class SecurityFilterUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityFilterUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityFilterUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFilterUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityFiltersResponse.ts b/packages/datadog-api-client-v2/models/SecurityFiltersResponse.ts index bffc3ed599cc..780ba21481a6 100644 --- a/packages/datadog-api-client-v2/models/SecurityFiltersResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityFiltersResponse.ts @@ -6,19 +6,24 @@ import { SecurityFilter } from "./SecurityFilter"; import { SecurityFilterMeta } from "./SecurityFilterMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All the available security filters objects. - */ +*/ export class SecurityFiltersResponse { /** * A list of security filters objects. - */ + */ "data"?: Array; /** * Optional metadata associated to the response. - */ + */ "meta"?: SecurityFilterMeta; /** @@ -37,26 +42,52 @@ export class SecurityFiltersResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "SecurityFilterMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SecurityFilterMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityFiltersResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringFilter.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringFilter.ts index 83bfd5298c11..e10a9b696b87 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringFilter.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringFilter.ts @@ -5,19 +5,24 @@ */ import { SecurityMonitoringFilterAction } from "./SecurityMonitoringFilterAction"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The rule's suppression filter. - */ +*/ export class SecurityMonitoringFilter { /** * The type of filtering action. - */ + */ "action"?: SecurityMonitoringFilterAction; /** * Query for selecting logs to apply the filtering action. - */ + */ "query"?: string; /** @@ -36,26 +41,52 @@ export class SecurityMonitoringFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "SecurityMonitoringFilterAction", + "action": { + "baseName": "action", + "type": "SecurityMonitoringFilterAction", }, - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringFilterAction.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringFilterAction.ts index 73de020538d3..48b51eaad8e2 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringFilterAction.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringFilterAction.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of filtering action. - */ +*/ -export type SecurityMonitoringFilterAction = - | typeof REQUIRE - | typeof SUPPRESS - | UnparsedObject; -export const REQUIRE = "require"; -export const SUPPRESS = "suppress"; +export type SecurityMonitoringFilterAction = typeof REQUIRE| typeof SUPPRESS | UnparsedObject; +export const REQUIRE = 'require'; +export const SUPPRESS = 'suppress'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringListRulesResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringListRulesResponse.ts index a0dcb3a71f8a..30b5ca364451 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringListRulesResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringListRulesResponse.ts @@ -6,19 +6,24 @@ import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; import { SecurityMonitoringRuleResponse } from "./SecurityMonitoringRuleResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of rules. - */ +*/ export class SecurityMonitoringListRulesResponse { /** * Array containing the list of rules. - */ + */ "data"?: Array; /** * Object describing meta attributes of response. - */ + */ "meta"?: ResponseMetaAttributes; /** @@ -37,26 +42,52 @@ export class SecurityMonitoringListRulesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ResponseMetaAttributes", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ResponseMetaAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringListRulesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringReferenceTable.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringReferenceTable.ts index c8d18d4b7c68..7a2c9a43da01 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringReferenceTable.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringReferenceTable.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Reference tables used in the queries. - */ +*/ export class SecurityMonitoringReferenceTable { /** * Whether to include or exclude the matched values. - */ + */ "checkPresence"?: boolean; /** * The name of the column in the reference table. - */ + */ "columnName"?: string; /** * The field in the log to match against the reference table. - */ + */ "logFieldPath"?: string; /** * The name of the query to apply the reference table to. - */ + */ "ruleQueryName"?: string; /** * The name of the reference table. - */ + */ "tableName"?: string; /** @@ -47,38 +52,64 @@ export class SecurityMonitoringReferenceTable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - checkPresence: { - baseName: "checkPresence", - type: "boolean", + "checkPresence": { + "baseName": "checkPresence", + "type": "boolean", }, - columnName: { - baseName: "columnName", - type: "string", + "columnName": { + "baseName": "columnName", + "type": "string", }, - logFieldPath: { - baseName: "logFieldPath", - type: "string", + "logFieldPath": { + "baseName": "logFieldPath", + "type": "string", }, - ruleQueryName: { - baseName: "ruleQueryName", - type: "string", + "ruleQueryName": { + "baseName": "ruleQueryName", + "type": "string", }, - tableName: { - baseName: "tableName", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tableName": { + "baseName": "tableName", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringReferenceTable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCase.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCase.ts index 0392e7564f25..380dd3450cb8 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCase.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCase.ts @@ -6,32 +6,37 @@ import { SecurityMonitoringRuleCaseAction } from "./SecurityMonitoringRuleCaseAction"; import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case when signal is generated. - */ +*/ export class SecurityMonitoringRuleCase { /** * Action to perform for each rule case. - */ + */ "actions"?: Array; /** * A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated * based on the event counts in the previously defined queries. - */ + */ "condition"?: string; /** * Name of the case. - */ + */ "name"?: string; /** * Notification targets for each rule case. - */ + */ "notifications"?: Array; /** * Severity of the Security Signal. - */ + */ "status"?: SecurityMonitoringRuleSeverity; /** @@ -50,38 +55,64 @@ export class SecurityMonitoringRuleCase { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - actions: { - baseName: "actions", - type: "Array", + "actions": { + "baseName": "actions", + "type": "Array", }, - condition: { - baseName: "condition", - type: "string", + "condition": { + "baseName": "condition", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - notifications: { - baseName: "notifications", - type: "Array", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - status: { - baseName: "status", - type: "SecurityMonitoringRuleSeverity", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SecurityMonitoringRuleSeverity", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleCase.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseAction.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseAction.ts index 3e30fe7c9fb7..cdfd71ca397d 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseAction.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseAction.ts @@ -6,19 +6,24 @@ import { SecurityMonitoringRuleCaseActionOptions } from "./SecurityMonitoringRuleCaseActionOptions"; import { SecurityMonitoringRuleCaseActionType } from "./SecurityMonitoringRuleCaseActionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Action to perform when a signal is triggered. Only available for Application Security rule type. - */ +*/ export class SecurityMonitoringRuleCaseAction { /** * Options for the rule action - */ + */ "options"?: SecurityMonitoringRuleCaseActionOptions; /** * The action type. - */ + */ "type"?: SecurityMonitoringRuleCaseActionType; /** @@ -37,26 +42,52 @@ export class SecurityMonitoringRuleCaseAction { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - options: { - baseName: "options", - type: "SecurityMonitoringRuleCaseActionOptions", + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleCaseActionOptions", }, - type: { - baseName: "type", - type: "SecurityMonitoringRuleCaseActionType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringRuleCaseActionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleCaseAction.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionOptions.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionOptions.ts index 992e7ca8daea..dd7f17bc54b0 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionOptions.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionOptions.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options for the rule action - */ +*/ export class SecurityMonitoringRuleCaseActionOptions { /** * Duration of the action in seconds. 0 indicates no expiration. - */ + */ "duration"?: number; /** @@ -31,23 +36,49 @@ export class SecurityMonitoringRuleCaseActionOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - duration: { - baseName: "duration", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "duration": { + "baseName": "duration", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleCaseActionOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionType.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionType.ts index 9aefa4826658..fb33fce2f43e 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionType.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseActionType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The action type. - */ +*/ -export type SecurityMonitoringRuleCaseActionType = - | typeof BLOCK_IP - | typeof BLOCK_USER - | UnparsedObject; -export const BLOCK_IP = "block_ip"; -export const BLOCK_USER = "block_user"; +export type SecurityMonitoringRuleCaseActionType = typeof BLOCK_IP| typeof BLOCK_USER | UnparsedObject; +export const BLOCK_IP = 'block_ip'; +export const BLOCK_USER = 'block_user'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseCreate.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseCreate.ts index 14f6d578cf74..df65bcda9999 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseCreate.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseCreate.ts @@ -6,32 +6,37 @@ import { SecurityMonitoringRuleCaseAction } from "./SecurityMonitoringRuleCaseAction"; import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case when signal is generated. - */ +*/ export class SecurityMonitoringRuleCaseCreate { /** * Action to perform for each rule case. - */ + */ "actions"?: Array; /** * A case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated * based on the event counts in the previously defined queries. - */ + */ "condition"?: string; /** * Name of the case. - */ + */ "name"?: string; /** * Notification targets. - */ + */ "notifications"?: Array; /** * Severity of the Security Signal. - */ + */ "status": SecurityMonitoringRuleSeverity; /** @@ -50,39 +55,65 @@ export class SecurityMonitoringRuleCaseCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - actions: { - baseName: "actions", - type: "Array", + "actions": { + "baseName": "actions", + "type": "Array", }, - condition: { - baseName: "condition", - type: "string", + "condition": { + "baseName": "condition", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - notifications: { - baseName: "notifications", - type: "Array", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - status: { - baseName: "status", - type: "SecurityMonitoringRuleSeverity", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SecurityMonitoringRuleSeverity", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleCaseCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.ts index 07db0f767ffc..92e2ae3b31f1 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.ts @@ -6,13 +6,15 @@ import { SecurityMonitoringSignalRulePayload } from "./SecurityMonitoringSignalRulePayload"; import { SecurityMonitoringStandardRulePayload } from "./SecurityMonitoringStandardRulePayload"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Convert a rule from JSON to Terraform. - */ +*/ -export type SecurityMonitoringRuleConvertPayload = - | SecurityMonitoringStandardRulePayload - | SecurityMonitoringSignalRulePayload - | UnparsedObject; +export type SecurityMonitoringRuleConvertPayload = SecurityMonitoringStandardRulePayload | SecurityMonitoringSignalRulePayload | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.ts index 65259576c3be..7777debdd0cb 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Result of the convert rule request containing Terraform content. - */ +*/ export class SecurityMonitoringRuleConvertResponse { /** * Terraform string as a result of converting the rule from JSON. - */ + */ "terraformContent"?: string; /** @@ -31,22 +36,48 @@ export class SecurityMonitoringRuleConvertResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - terraformContent: { - baseName: "terraformContent", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "terraformContent": { + "baseName": "terraformContent", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleConvertResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.ts index 8b1277354fd4..724930cb4ba1 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.ts @@ -7,14 +7,15 @@ import { CloudConfigurationRuleCreatePayload } from "./CloudConfigurationRuleCre import { SecurityMonitoringSignalRuleCreatePayload } from "./SecurityMonitoringSignalRuleCreatePayload"; import { SecurityMonitoringStandardRuleCreatePayload } from "./SecurityMonitoringStandardRuleCreatePayload"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Create a new rule. - */ +*/ -export type SecurityMonitoringRuleCreatePayload = - | SecurityMonitoringStandardRuleCreatePayload - | SecurityMonitoringSignalRuleCreatePayload - | CloudConfigurationRuleCreatePayload - | UnparsedObject; +export type SecurityMonitoringRuleCreatePayload = SecurityMonitoringStandardRuleCreatePayload | SecurityMonitoringSignalRuleCreatePayload | CloudConfigurationRuleCreatePayload | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.ts index 7e82b7a8ecd4..0f302346d8d4 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.ts @@ -4,25 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The detection method. - */ +*/ -export type SecurityMonitoringRuleDetectionMethod = - | typeof THRESHOLD - | typeof NEW_VALUE - | typeof ANOMALY_DETECTION - | typeof IMPOSSIBLE_TRAVEL - | typeof HARDCODED - | typeof THIRD_PARTY - | typeof ANOMALY_THRESHOLD - | UnparsedObject; -export const THRESHOLD = "threshold"; -export const NEW_VALUE = "new_value"; -export const ANOMALY_DETECTION = "anomaly_detection"; -export const IMPOSSIBLE_TRAVEL = "impossible_travel"; -export const HARDCODED = "hardcoded"; -export const THIRD_PARTY = "third_party"; -export const ANOMALY_THRESHOLD = "anomaly_threshold"; +export type SecurityMonitoringRuleDetectionMethod = typeof THRESHOLD| typeof NEW_VALUE| typeof ANOMALY_DETECTION| typeof IMPOSSIBLE_TRAVEL| typeof HARDCODED| typeof THIRD_PARTY| typeof ANOMALY_THRESHOLD | UnparsedObject; +export const THRESHOLD = 'threshold'; +export const NEW_VALUE = 'new_value'; +export const ANOMALY_DETECTION = 'anomaly_detection'; +export const IMPOSSIBLE_TRAVEL = 'impossible_travel'; +export const HARDCODED = 'hardcoded'; +export const THIRD_PARTY = 'third_party'; +export const ANOMALY_THRESHOLD = 'anomaly_threshold'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleEvaluationWindow.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleEvaluationWindow.ts index 62360ca5f341..3c3962e72b7f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleEvaluationWindow.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleEvaluationWindow.ts @@ -4,27 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A time window is specified to match when at least one of the cases matches true. This is a sliding window * and evaluates in real time. For third party detection method, this field is not used. - */ +*/ -export type SecurityMonitoringRuleEvaluationWindow = - | typeof ZERO_MINUTES - | typeof ONE_MINUTE - | typeof FIVE_MINUTES - | typeof TEN_MINUTES - | typeof FIFTEEN_MINUTES - | typeof THIRTY_MINUTES - | typeof ONE_HOUR - | typeof TWO_HOURS - | typeof THREE_HOURS - | typeof SIX_HOURS - | typeof TWELVE_HOURS - | typeof ONE_DAY - | UnparsedObject; +export type SecurityMonitoringRuleEvaluationWindow = typeof ZERO_MINUTES| typeof ONE_MINUTE| typeof FIVE_MINUTES| typeof TEN_MINUTES| typeof FIFTEEN_MINUTES| typeof THIRTY_MINUTES| typeof ONE_HOUR| typeof TWO_HOURS| typeof THREE_HOURS| typeof SIX_HOURS| typeof TWELVE_HOURS| typeof ONE_DAY | UnparsedObject; export const ZERO_MINUTES = 0; export const ONE_MINUTE = 60; export const FIVE_MINUTES = 300; @@ -36,4 +28,4 @@ export const TWO_HOURS = 7200; export const THREE_HOURS = 10800; export const SIX_HOURS = 21600; export const TWELVE_HOURS = 43200; -export const ONE_DAY = 86400; +export const ONE_DAY = 86400; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleHardcodedEvaluatorType.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleHardcodedEvaluatorType.ts index f196f624558d..8ee94f391a8f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleHardcodedEvaluatorType.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleHardcodedEvaluatorType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Hardcoded evaluator type. - */ +*/ -export type SecurityMonitoringRuleHardcodedEvaluatorType = - | typeof LOG4SHELL - | UnparsedObject; -export const LOG4SHELL = "log4shell"; +export type SecurityMonitoringRuleHardcodedEvaluatorType = typeof LOG4SHELL | UnparsedObject; +export const LOG4SHELL = 'log4shell'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleImpossibleTravelOptions.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleImpossibleTravelOptions.ts index 813d17c75236..59d72612beb1 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleImpossibleTravelOptions.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleImpossibleTravelOptions.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options on impossible travel detection method. - */ +*/ export class SecurityMonitoringRuleImpossibleTravelOptions { /** * If true, signals are suppressed for the first 24 hours. In that time, Datadog learns the user's regular * access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access. - */ + */ "baselineUserLocations"?: boolean; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringRuleImpossibleTravelOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - baselineUserLocations: { - baseName: "baselineUserLocations", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "baselineUserLocations": { + "baseName": "baselineUserLocations", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleImpossibleTravelOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleKeepAlive.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleKeepAlive.ts index fda9116a1371..10bbb9f64a01 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleKeepAlive.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleKeepAlive.ts @@ -4,27 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Once a signal is generated, the signal will remain “open” if a case is matched at least once within * this keep alive window. For third party detection method, this field is not used. - */ +*/ -export type SecurityMonitoringRuleKeepAlive = - | typeof ZERO_MINUTES - | typeof ONE_MINUTE - | typeof FIVE_MINUTES - | typeof TEN_MINUTES - | typeof FIFTEEN_MINUTES - | typeof THIRTY_MINUTES - | typeof ONE_HOUR - | typeof TWO_HOURS - | typeof THREE_HOURS - | typeof SIX_HOURS - | typeof TWELVE_HOURS - | typeof ONE_DAY - | UnparsedObject; +export type SecurityMonitoringRuleKeepAlive = typeof ZERO_MINUTES| typeof ONE_MINUTE| typeof FIVE_MINUTES| typeof TEN_MINUTES| typeof FIFTEEN_MINUTES| typeof THIRTY_MINUTES| typeof ONE_HOUR| typeof TWO_HOURS| typeof THREE_HOURS| typeof SIX_HOURS| typeof TWELVE_HOURS| typeof ONE_DAY | UnparsedObject; export const ZERO_MINUTES = 0; export const ONE_MINUTE = 60; export const FIVE_MINUTES = 300; @@ -36,4 +28,4 @@ export const TWO_HOURS = 7200; export const THREE_HOURS = 10800; export const SIX_HOURS = 21600; export const TWELVE_HOURS = 43200; -export const ONE_DAY = 86400; +export const ONE_DAY = 86400; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleMaxSignalDuration.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleMaxSignalDuration.ts index 0bc6f6676969..3cd537b00009 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleMaxSignalDuration.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleMaxSignalDuration.ts @@ -4,27 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. * This time is calculated from the first seen timestamp. - */ +*/ -export type SecurityMonitoringRuleMaxSignalDuration = - | typeof ZERO_MINUTES - | typeof ONE_MINUTE - | typeof FIVE_MINUTES - | typeof TEN_MINUTES - | typeof FIFTEEN_MINUTES - | typeof THIRTY_MINUTES - | typeof ONE_HOUR - | typeof TWO_HOURS - | typeof THREE_HOURS - | typeof SIX_HOURS - | typeof TWELVE_HOURS - | typeof ONE_DAY - | UnparsedObject; +export type SecurityMonitoringRuleMaxSignalDuration = typeof ZERO_MINUTES| typeof ONE_MINUTE| typeof FIVE_MINUTES| typeof TEN_MINUTES| typeof FIFTEEN_MINUTES| typeof THIRTY_MINUTES| typeof ONE_HOUR| typeof TWO_HOURS| typeof THREE_HOURS| typeof SIX_HOURS| typeof TWELVE_HOURS| typeof ONE_DAY | UnparsedObject; export const ZERO_MINUTES = 0; export const ONE_MINUTE = 60; export const FIVE_MINUTES = 300; @@ -36,4 +28,4 @@ export const TWO_HOURS = 7200; export const THREE_HOURS = 10800; export const SIX_HOURS = 21600; export const TWELVE_HOURS = 43200; -export const ONE_DAY = 86400; +export const ONE_DAY = 86400; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.ts index dcec04f4babb..7ae895f5afdf 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.ts @@ -8,28 +8,33 @@ import { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./Securit import { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./SecurityMonitoringRuleNewValueOptionsLearningMethod"; import { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./SecurityMonitoringRuleNewValueOptionsLearningThreshold"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options on new value detection method. - */ +*/ export class SecurityMonitoringRuleNewValueOptions { /** * The duration in days after which a learned value is forgotten. - */ + */ "forgetAfter"?: SecurityMonitoringRuleNewValueOptionsForgetAfter; /** * The duration in days during which values are learned, and after which signals will be generated for values that * weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. - */ + */ "learningDuration"?: SecurityMonitoringRuleNewValueOptionsLearningDuration; /** * The learning method used to determine when signals should be generated for values that weren't learned. - */ + */ "learningMethod"?: SecurityMonitoringRuleNewValueOptionsLearningMethod; /** * A number of occurrences after which signals will be generated for values that weren't learned. - */ + */ "learningThreshold"?: SecurityMonitoringRuleNewValueOptionsLearningThreshold; /** @@ -48,37 +53,63 @@ export class SecurityMonitoringRuleNewValueOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - forgetAfter: { - baseName: "forgetAfter", - type: "SecurityMonitoringRuleNewValueOptionsForgetAfter", - format: "int32", + "forgetAfter": { + "baseName": "forgetAfter", + "type": "SecurityMonitoringRuleNewValueOptionsForgetAfter", + "format": "int32", }, - learningDuration: { - baseName: "learningDuration", - type: "SecurityMonitoringRuleNewValueOptionsLearningDuration", - format: "int32", + "learningDuration": { + "baseName": "learningDuration", + "type": "SecurityMonitoringRuleNewValueOptionsLearningDuration", + "format": "int32", }, - learningMethod: { - baseName: "learningMethod", - type: "SecurityMonitoringRuleNewValueOptionsLearningMethod", + "learningMethod": { + "baseName": "learningMethod", + "type": "SecurityMonitoringRuleNewValueOptionsLearningMethod", }, - learningThreshold: { - baseName: "learningThreshold", - type: "SecurityMonitoringRuleNewValueOptionsLearningThreshold", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "learningThreshold": { + "baseName": "learningThreshold", + "type": "SecurityMonitoringRuleNewValueOptionsLearningThreshold", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleNewValueOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsForgetAfter.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsForgetAfter.ts index 2fbfa1cad73a..64a7200362c5 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsForgetAfter.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsForgetAfter.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The duration in days after which a learned value is forgotten. - */ +*/ -export type SecurityMonitoringRuleNewValueOptionsForgetAfter = - | typeof ONE_DAY - | typeof TWO_DAYS - | typeof ONE_WEEK - | typeof TWO_WEEKS - | typeof THREE_WEEKS - | typeof FOUR_WEEKS - | UnparsedObject; +export type SecurityMonitoringRuleNewValueOptionsForgetAfter = typeof ONE_DAY| typeof TWO_DAYS| typeof ONE_WEEK| typeof TWO_WEEKS| typeof THREE_WEEKS| typeof FOUR_WEEKS | UnparsedObject; export const ONE_DAY = 1; export const TWO_DAYS = 2; export const ONE_WEEK = 7; export const TWO_WEEKS = 14; export const THREE_WEEKS = 21; -export const FOUR_WEEKS = 28; +export const FOUR_WEEKS = 28; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningDuration.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningDuration.ts index cd018c366263..0c6d4cd7f75f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningDuration.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningDuration.ts @@ -4,18 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The duration in days during which values are learned, and after which signals will be generated for values that * weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. - */ +*/ -export type SecurityMonitoringRuleNewValueOptionsLearningDuration = - | typeof ZERO_DAYS - | typeof ONE_DAY - | typeof SEVEN_DAYS - | UnparsedObject; +export type SecurityMonitoringRuleNewValueOptionsLearningDuration = typeof ZERO_DAYS| typeof ONE_DAY| typeof SEVEN_DAYS | UnparsedObject; export const ZERO_DAYS = 0; export const ONE_DAY = 1; -export const SEVEN_DAYS = 7; +export const SEVEN_DAYS = 7; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.ts index 843bbdfe9394..d1678889a25d 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The learning method used to determine when signals should be generated for values that weren't learned. - */ +*/ -export type SecurityMonitoringRuleNewValueOptionsLearningMethod = - | typeof DURATION - | typeof THRESHOLD - | UnparsedObject; -export const DURATION = "duration"; -export const THRESHOLD = "threshold"; +export type SecurityMonitoringRuleNewValueOptionsLearningMethod = typeof DURATION| typeof THRESHOLD | UnparsedObject; +export const DURATION = 'duration'; +export const THRESHOLD = 'threshold'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.ts index f8134903a17d..f155ae05fc8c 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A number of occurrences after which signals will be generated for values that weren't learned. - */ +*/ -export type SecurityMonitoringRuleNewValueOptionsLearningThreshold = - | typeof ZERO_OCCURRENCES - | typeof ONE_OCCURRENCE - | UnparsedObject; +export type SecurityMonitoringRuleNewValueOptionsLearningThreshold = typeof ZERO_OCCURRENCES| typeof ONE_OCCURRENCE | UnparsedObject; export const ZERO_OCCURRENCES = 0; -export const ONE_OCCURRENCE = 1; +export const ONE_OCCURRENCE = 1; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.ts index 63f81a6bc8df..a6c60f9e4d6f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.ts @@ -13,57 +13,62 @@ import { SecurityMonitoringRuleMaxSignalDuration } from "./SecurityMonitoringRul import { SecurityMonitoringRuleNewValueOptions } from "./SecurityMonitoringRuleNewValueOptions"; import { SecurityMonitoringRuleThirdPartyOptions } from "./SecurityMonitoringRuleThirdPartyOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options. - */ +*/ export class SecurityMonitoringRuleOptions { /** * Options for cloud_configuration rules. * Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules. - */ + */ "complianceRuleOptions"?: CloudConfigurationComplianceRuleOptions; /** * If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce signal noise. * The severity is decreased by one level: `CRITICAL` in production becomes `HIGH` in non-production, `HIGH` becomes `MEDIUM` and so on. `INFO` remains `INFO`. * The decrement is applied when the environment tag of the signal starts with `staging`, `test` or `dev`. - */ + */ "decreaseCriticalityBasedOnEnv"?: boolean; /** * The detection method. - */ + */ "detectionMethod"?: SecurityMonitoringRuleDetectionMethod; /** * A time window is specified to match when at least one of the cases matches true. This is a sliding window * and evaluates in real time. For third party detection method, this field is not used. - */ + */ "evaluationWindow"?: SecurityMonitoringRuleEvaluationWindow; /** * Hardcoded evaluator type. - */ + */ "hardcodedEvaluatorType"?: SecurityMonitoringRuleHardcodedEvaluatorType; /** * Options on impossible travel detection method. - */ + */ "impossibleTravelOptions"?: SecurityMonitoringRuleImpossibleTravelOptions; /** * Once a signal is generated, the signal will remain “open” if a case is matched at least once within * this keep alive window. For third party detection method, this field is not used. - */ + */ "keepAlive"?: SecurityMonitoringRuleKeepAlive; /** * A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. * This time is calculated from the first seen timestamp. - */ + */ "maxSignalDuration"?: SecurityMonitoringRuleMaxSignalDuration; /** * Options on new value detection method. - */ + */ "newValueOptions"?: SecurityMonitoringRuleNewValueOptions; /** * Options on third party detection method. - */ + */ "thirdPartyRuleOptions"?: SecurityMonitoringRuleThirdPartyOptions; /** @@ -82,61 +87,87 @@ export class SecurityMonitoringRuleOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - complianceRuleOptions: { - baseName: "complianceRuleOptions", - type: "CloudConfigurationComplianceRuleOptions", - }, - decreaseCriticalityBasedOnEnv: { - baseName: "decreaseCriticalityBasedOnEnv", - type: "boolean", + "complianceRuleOptions": { + "baseName": "complianceRuleOptions", + "type": "CloudConfigurationComplianceRuleOptions", }, - detectionMethod: { - baseName: "detectionMethod", - type: "SecurityMonitoringRuleDetectionMethod", + "decreaseCriticalityBasedOnEnv": { + "baseName": "decreaseCriticalityBasedOnEnv", + "type": "boolean", }, - evaluationWindow: { - baseName: "evaluationWindow", - type: "SecurityMonitoringRuleEvaluationWindow", - format: "int32", + "detectionMethod": { + "baseName": "detectionMethod", + "type": "SecurityMonitoringRuleDetectionMethod", }, - hardcodedEvaluatorType: { - baseName: "hardcodedEvaluatorType", - type: "SecurityMonitoringRuleHardcodedEvaluatorType", + "evaluationWindow": { + "baseName": "evaluationWindow", + "type": "SecurityMonitoringRuleEvaluationWindow", + "format": "int32", }, - impossibleTravelOptions: { - baseName: "impossibleTravelOptions", - type: "SecurityMonitoringRuleImpossibleTravelOptions", + "hardcodedEvaluatorType": { + "baseName": "hardcodedEvaluatorType", + "type": "SecurityMonitoringRuleHardcodedEvaluatorType", }, - keepAlive: { - baseName: "keepAlive", - type: "SecurityMonitoringRuleKeepAlive", - format: "int32", + "impossibleTravelOptions": { + "baseName": "impossibleTravelOptions", + "type": "SecurityMonitoringRuleImpossibleTravelOptions", }, - maxSignalDuration: { - baseName: "maxSignalDuration", - type: "SecurityMonitoringRuleMaxSignalDuration", - format: "int32", + "keepAlive": { + "baseName": "keepAlive", + "type": "SecurityMonitoringRuleKeepAlive", + "format": "int32", }, - newValueOptions: { - baseName: "newValueOptions", - type: "SecurityMonitoringRuleNewValueOptions", + "maxSignalDuration": { + "baseName": "maxSignalDuration", + "type": "SecurityMonitoringRuleMaxSignalDuration", + "format": "int32", }, - thirdPartyRuleOptions: { - baseName: "thirdPartyRuleOptions", - type: "SecurityMonitoringRuleThirdPartyOptions", + "newValueOptions": { + "baseName": "newValueOptions", + "type": "SecurityMonitoringRuleNewValueOptions", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "thirdPartyRuleOptions": { + "baseName": "thirdPartyRuleOptions", + "type": "SecurityMonitoringRuleThirdPartyOptions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.ts index 8d70a15e0154..997a89100b35 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.ts @@ -6,13 +6,15 @@ import { SecurityMonitoringSignalRuleQuery } from "./SecurityMonitoringSignalRuleQuery"; import { SecurityMonitoringStandardRuleQuery } from "./SecurityMonitoringStandardRuleQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Query for matching rule. - */ +*/ -export type SecurityMonitoringRuleQuery = - | SecurityMonitoringStandardRuleQuery - | SecurityMonitoringSignalRuleQuery - | UnparsedObject; +export type SecurityMonitoringRuleQuery = SecurityMonitoringStandardRuleQuery | SecurityMonitoringSignalRuleQuery | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.ts index 11423fd11e1a..53263fff0d25 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.ts @@ -4,27 +4,23 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The aggregation type. - */ +*/ -export type SecurityMonitoringRuleQueryAggregation = - | typeof COUNT - | typeof CARDINALITY - | typeof SUM - | typeof MAX - | typeof NEW_VALUE - | typeof GEO_DATA - | typeof EVENT_COUNT - | typeof NONE - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const SUM = "sum"; -export const MAX = "max"; -export const NEW_VALUE = "new_value"; -export const GEO_DATA = "geo_data"; -export const EVENT_COUNT = "event_count"; -export const NONE = "none"; +export type SecurityMonitoringRuleQueryAggregation = typeof COUNT| typeof CARDINALITY| typeof SUM| typeof MAX| typeof NEW_VALUE| typeof GEO_DATA| typeof EVENT_COUNT| typeof NONE | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const SUM = 'sum'; +export const MAX = 'max'; +export const NEW_VALUE = 'new_value'; +export const GEO_DATA = 'geo_data'; +export const EVENT_COUNT = 'event_count'; +export const NONE = 'none'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayload.ts index b464382e2873..39deb783cca7 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayload.ts @@ -5,23 +5,28 @@ */ import { SecurityMonitoringRuleQueryPayloadData } from "./SecurityMonitoringRuleQueryPayloadData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload to test a rule query with the expected result. - */ +*/ export class SecurityMonitoringRuleQueryPayload { /** * Expected result of the test. - */ + */ "expectedResult"?: boolean; /** * Index of the query under test. - */ + */ "index"?: number; /** * Payload used to test the rule query. - */ + */ "payload"?: SecurityMonitoringRuleQueryPayloadData; /** @@ -40,31 +45,57 @@ export class SecurityMonitoringRuleQueryPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - expectedResult: { - baseName: "expectedResult", - type: "boolean", - }, - index: { - baseName: "index", - type: "number", - format: "int64", + "expectedResult": { + "baseName": "expectedResult", + "type": "boolean", }, - payload: { - baseName: "payload", - type: "SecurityMonitoringRuleQueryPayloadData", + "index": { + "baseName": "index", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "payload": { + "baseName": "payload", + "type": "SecurityMonitoringRuleQueryPayloadData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleQueryPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayloadData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayloadData.ts index 31c3a58fde32..873ef438156f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayloadData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryPayloadData.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Payload used to test the rule query. - */ +*/ export class SecurityMonitoringRuleQueryPayloadData { /** * Source of the payload. - */ + */ "ddsource"?: string; /** * Tags associated with your data. - */ + */ "ddtags"?: string; /** * The name of the originating host of the log. - */ + */ "hostname"?: string; /** * The message of the payload. - */ + */ "message"?: string; /** * The name of the application or service generating the data. - */ + */ "service"?: string; /** @@ -47,38 +52,64 @@ export class SecurityMonitoringRuleQueryPayloadData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ddsource: { - baseName: "ddsource", - type: "string", + "ddsource": { + "baseName": "ddsource", + "type": "string", }, - ddtags: { - baseName: "ddtags", - type: "string", + "ddtags": { + "baseName": "ddtags", + "type": "string", }, - hostname: { - baseName: "hostname", - type: "string", + "hostname": { + "baseName": "hostname", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - service: { - baseName: "service", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "service": { + "baseName": "service", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleQueryPayloadData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.ts index 6350fa1e06b9..9cb8521ad35f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.ts @@ -6,13 +6,15 @@ import { SecurityMonitoringSignalRuleResponse } from "./SecurityMonitoringSignalRuleResponse"; import { SecurityMonitoringStandardRuleResponse } from "./SecurityMonitoringStandardRuleResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Create a new rule. - */ +*/ -export type SecurityMonitoringRuleResponse = - | SecurityMonitoringStandardRuleResponse - | SecurityMonitoringSignalRuleResponse - | UnparsedObject; +export type SecurityMonitoringRuleResponse = SecurityMonitoringStandardRuleResponse | SecurityMonitoringSignalRuleResponse | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSeverity.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSeverity.ts index dbc4377be376..e4cadc25fd25 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSeverity.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSeverity.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Severity of the Security Signal. - */ +*/ -export type SecurityMonitoringRuleSeverity = - | typeof INFO - | typeof LOW - | typeof MEDIUM - | typeof HIGH - | typeof CRITICAL - | UnparsedObject; -export const INFO = "info"; -export const LOW = "low"; -export const MEDIUM = "medium"; -export const HIGH = "high"; -export const CRITICAL = "critical"; +export type SecurityMonitoringRuleSeverity = typeof INFO| typeof LOW| typeof MEDIUM| typeof HIGH| typeof CRITICAL | UnparsedObject; +export const INFO = 'info'; +export const LOW = 'low'; +export const MEDIUM = 'medium'; +export const HIGH = 'high'; +export const CRITICAL = 'critical'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestPayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestPayload.ts index 376a56c1ddab..b9cd6c31603c 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestPayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestPayload.ts @@ -5,12 +5,15 @@ */ import { SecurityMonitoringStandardRuleTestPayload } from "./SecurityMonitoringStandardRuleTestPayload"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Test a rule. - */ +*/ -export type SecurityMonitoringRuleTestPayload = - | SecurityMonitoringStandardRuleTestPayload - | UnparsedObject; +export type SecurityMonitoringRuleTestPayload = SecurityMonitoringStandardRuleTestPayload | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestRequest.ts index 2165f22157ce..ab9523786cf9 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestRequest.ts @@ -6,19 +6,24 @@ import { SecurityMonitoringRuleQueryPayload } from "./SecurityMonitoringRuleQueryPayload"; import { SecurityMonitoringRuleTestPayload } from "./SecurityMonitoringRuleTestPayload"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Test the rule queries of a rule (rule property is ignored when applied to an existing rule) - */ +*/ export class SecurityMonitoringRuleTestRequest { /** * Test a rule. - */ + */ "rule"?: SecurityMonitoringRuleTestPayload; /** * Data payloads used to test rules query with the expected result. - */ + */ "ruleQueryPayloads"?: Array; /** @@ -37,26 +42,52 @@ export class SecurityMonitoringRuleTestRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rule: { - baseName: "rule", - type: "SecurityMonitoringRuleTestPayload", + "rule": { + "baseName": "rule", + "type": "SecurityMonitoringRuleTestPayload", }, - ruleQueryPayloads: { - baseName: "ruleQueryPayloads", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ruleQueryPayloads": { + "baseName": "ruleQueryPayloads", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleTestRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestResponse.ts index d13e7a77d016..92c2926e35a3 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTestResponse.ts @@ -4,17 +4,22 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Result of the test of the rule queries. - */ +*/ export class SecurityMonitoringRuleTestResponse { /** * Assert results are returned in the same order as the rule query payloads. * For each payload, it returns True if the result matched the expected result, * False otherwise. - */ + */ "results"?: Array; /** @@ -33,22 +38,48 @@ export class SecurityMonitoringRuleTestResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - results: { - baseName: "results", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "results": { + "baseName": "results", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleTestResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleThirdPartyOptions.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleThirdPartyOptions.ts index 3d6f1c102422..7ceacb1512bb 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleThirdPartyOptions.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleThirdPartyOptions.ts @@ -6,27 +6,32 @@ import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; import { SecurityMonitoringThirdPartyRootQuery } from "./SecurityMonitoringThirdPartyRootQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Options on third party detection method. - */ +*/ export class SecurityMonitoringRuleThirdPartyOptions { /** * Notification targets for the logs that do not correspond to any of the cases. - */ + */ "defaultNotifications"?: Array; /** * Severity of the Security Signal. - */ + */ "defaultStatus"?: SecurityMonitoringRuleSeverity; /** * Queries to be combined with third party case queries. Each of them can have different group by fields, to aggregate differently based on the type of alert. - */ + */ "rootQueries"?: Array; /** * A template for the signal title; if omitted, the title is generated based on the case name. - */ + */ "signalTitleTemplate"?: string; /** @@ -45,34 +50,60 @@ export class SecurityMonitoringRuleThirdPartyOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultNotifications: { - baseName: "defaultNotifications", - type: "Array", + "defaultNotifications": { + "baseName": "defaultNotifications", + "type": "Array", }, - defaultStatus: { - baseName: "defaultStatus", - type: "SecurityMonitoringRuleSeverity", + "defaultStatus": { + "baseName": "defaultStatus", + "type": "SecurityMonitoringRuleSeverity", }, - rootQueries: { - baseName: "rootQueries", - type: "Array", + "rootQueries": { + "baseName": "rootQueries", + "type": "Array", }, - signalTitleTemplate: { - baseName: "signalTitleTemplate", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "signalTitleTemplate": { + "baseName": "signalTitleTemplate", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleThirdPartyOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.ts index 78461aabe0fc..256bd0c1a649 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The rule type. - */ +*/ -export type SecurityMonitoringRuleTypeCreate = - | typeof APPLICATION_SECURITY - | typeof LOG_DETECTION - | typeof WORKLOAD_SECURITY - | UnparsedObject; -export const APPLICATION_SECURITY = "application_security"; -export const LOG_DETECTION = "log_detection"; -export const WORKLOAD_SECURITY = "workload_security"; +export type SecurityMonitoringRuleTypeCreate = typeof APPLICATION_SECURITY| typeof LOG_DETECTION| typeof WORKLOAD_SECURITY | UnparsedObject; +export const APPLICATION_SECURITY = 'application_security'; +export const LOG_DETECTION = 'log_detection'; +export const WORKLOAD_SECURITY = 'workload_security'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.ts index cd048d82a5aa..b5e9fc7e9d8a 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The rule type. - */ +*/ -export type SecurityMonitoringRuleTypeRead = - | typeof LOG_DETECTION - | typeof INFRASTRUCTURE_CONFIGURATION - | typeof WORKLOAD_SECURITY - | typeof CLOUD_CONFIGURATION - | typeof APPLICATION_SECURITY - | UnparsedObject; -export const LOG_DETECTION = "log_detection"; -export const INFRASTRUCTURE_CONFIGURATION = "infrastructure_configuration"; -export const WORKLOAD_SECURITY = "workload_security"; -export const CLOUD_CONFIGURATION = "cloud_configuration"; -export const APPLICATION_SECURITY = "application_security"; +export type SecurityMonitoringRuleTypeRead = typeof LOG_DETECTION| typeof INFRASTRUCTURE_CONFIGURATION| typeof WORKLOAD_SECURITY| typeof CLOUD_CONFIGURATION| typeof APPLICATION_SECURITY | UnparsedObject; +export const LOG_DETECTION = 'log_detection'; +export const INFRASTRUCTURE_CONFIGURATION = 'infrastructure_configuration'; +export const WORKLOAD_SECURITY = 'workload_security'; +export const CLOUD_CONFIGURATION = 'cloud_configuration'; +export const APPLICATION_SECURITY = 'application_security'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeTest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeTest.ts index 230b7a07e94a..357a14c6dada 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeTest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeTest.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The rule type. - */ +*/ -export type SecurityMonitoringRuleTypeTest = - | typeof LOG_DETECTION - | UnparsedObject; -export const LOG_DETECTION = "log_detection"; +export type SecurityMonitoringRuleTypeTest = typeof LOG_DETECTION | UnparsedObject; +export const LOG_DETECTION = 'log_detection'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleUpdatePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleUpdatePayload.ts index a900d23ab195..6132861c0c2f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleUpdatePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleUpdatePayload.ts @@ -11,67 +11,72 @@ import { SecurityMonitoringRuleOptions } from "./SecurityMonitoringRuleOptions"; import { SecurityMonitoringRuleQuery } from "./SecurityMonitoringRuleQuery"; import { SecurityMonitoringThirdPartyRuleCase } from "./SecurityMonitoringThirdPartyRuleCase"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update an existing rule. - */ +*/ export class SecurityMonitoringRuleUpdatePayload { /** * Cases for generating signals. - */ + */ "cases"?: Array; /** * How to generate compliance signals. Useful for cloud_configuration rules only. - */ + */ "complianceSignalOptions"?: CloudConfigurationRuleComplianceSignalOptions; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups. - */ + */ "groupSignalsBy"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled"?: boolean; /** * Message for generated signals. - */ + */ "message"?: string; /** * Name of the rule. - */ + */ "name"?: string; /** * Options. - */ + */ "options"?: SecurityMonitoringRuleOptions; /** * Queries for selecting logs which are part of the rule. - */ + */ "queries"?: Array; /** * Reference tables for the rule. - */ + */ "referenceTables"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * Cases for generating signals from third-party rules. Only available for third-party rules. - */ + */ "thirdPartyCases"?: Array; /** * The version of the rule being updated. - */ + */ "version"?: number; /** @@ -90,75 +95,101 @@ export class SecurityMonitoringRuleUpdatePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - }, - complianceSignalOptions: { - baseName: "complianceSignalOptions", - type: "CloudConfigurationRuleComplianceSignalOptions", + "cases": { + "baseName": "cases", + "type": "Array", }, - filters: { - baseName: "filters", - type: "Array", + "complianceSignalOptions": { + "baseName": "complianceSignalOptions", + "type": "CloudConfigurationRuleComplianceSignalOptions", }, - groupSignalsBy: { - baseName: "groupSignalsBy", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", + "groupSignalsBy": { + "baseName": "groupSignalsBy", + "type": "Array", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", }, - message: { - baseName: "message", - type: "string", + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", + "name": { + "baseName": "name", + "type": "string", }, - queries: { - baseName: "queries", - type: "Array", + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", }, - referenceTables: { - baseName: "referenceTables", - type: "Array", + "queries": { + "baseName": "queries", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "referenceTables": { + "baseName": "referenceTables", + "type": "Array", }, - thirdPartyCases: { - baseName: "thirdPartyCases", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - version: { - baseName: "version", - type: "number", - format: "int32", + "thirdPartyCases": { + "baseName": "thirdPartyCases", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringRuleUpdatePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleValidatePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleValidatePayload.ts index 96802961f15a..699a75eb936e 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringRuleValidatePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringRuleValidatePayload.ts @@ -7,14 +7,15 @@ import { CloudConfigurationRulePayload } from "./CloudConfigurationRulePayload"; import { SecurityMonitoringSignalRulePayload } from "./SecurityMonitoringSignalRulePayload"; import { SecurityMonitoringStandardRulePayload } from "./SecurityMonitoringStandardRulePayload"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Validate a rule. - */ +*/ -export type SecurityMonitoringRuleValidatePayload = - | SecurityMonitoringStandardRulePayload - | SecurityMonitoringSignalRulePayload - | CloudConfigurationRulePayload - | UnparsedObject; +export type SecurityMonitoringRuleValidatePayload = SecurityMonitoringStandardRulePayload | SecurityMonitoringSignalRulePayload | CloudConfigurationRulePayload | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignal.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignal.ts index 6d24ebd1ad01..ea7cbc31699d 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignal.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignal.ts @@ -6,24 +6,29 @@ import { SecurityMonitoringSignalAttributes } from "./SecurityMonitoringSignalAttributes"; import { SecurityMonitoringSignalType } from "./SecurityMonitoringSignalType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of a security signal. - */ +*/ export class SecurityMonitoringSignal { /** * The object containing all signal attributes and their * associated values. - */ + */ "attributes"?: SecurityMonitoringSignalAttributes; /** * The unique ID of the security signal. - */ + */ "id"?: string; /** * The type of event. - */ + */ "type"?: SecurityMonitoringSignalType; /** @@ -42,30 +47,56 @@ export class SecurityMonitoringSignal { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSignalAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSignalAttributes", }, - type: { - baseName: "type", - type: "SecurityMonitoringSignalType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSignalType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignal.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts index 88a954cca1d6..ac23499427bf 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Reason a signal is archived. - */ +*/ -export type SecurityMonitoringSignalArchiveReason = - | typeof NONE - | typeof FALSE_POSITIVE - | typeof TESTING_OR_MAINTENANCE - | typeof INVESTIGATED_CASE_OPENED - | typeof OTHER - | UnparsedObject; -export const NONE = "none"; -export const FALSE_POSITIVE = "false_positive"; -export const TESTING_OR_MAINTENANCE = "testing_or_maintenance"; -export const INVESTIGATED_CASE_OPENED = "investigated_case_opened"; -export const OTHER = "other"; +export type SecurityMonitoringSignalArchiveReason = typeof NONE| typeof FALSE_POSITIVE| typeof TESTING_OR_MAINTENANCE| typeof INVESTIGATED_CASE_OPENED| typeof OTHER | UnparsedObject; +export const NONE = 'none'; +export const FALSE_POSITIVE = 'false_positive'; +export const TESTING_OR_MAINTENANCE = 'testing_or_maintenance'; +export const INVESTIGATED_CASE_OPENED = 'investigated_case_opened'; +export const OTHER = 'other'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.ts index 11cf2f3c02e8..a646d490e49f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.ts @@ -5,19 +5,24 @@ */ import { SecurityMonitoringTriageUser } from "./SecurityMonitoringTriageUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing the new assignee of a security signal. - */ +*/ export class SecurityMonitoringSignalAssigneeUpdateAttributes { /** * Object representing a given user entity. - */ + */ "assignee": SecurityMonitoringTriageUser; /** * Version of the updated signal. If server side version is higher, update will be rejected. - */ + */ "version"?: number; /** @@ -36,28 +41,54 @@ export class SecurityMonitoringSignalAssigneeUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - assignee: { - baseName: "assignee", - type: "SecurityMonitoringTriageUser", - required: true, + "assignee": { + "baseName": "assignee", + "type": "SecurityMonitoringTriageUser", + "required": true, }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalAssigneeUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.ts index 15413a3b7703..b8fc1a42b020 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalAssigneeUpdateAttributes } from "./SecurityMonitoringSignalAssigneeUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data containing the patch for changing the assignee of a signal. - */ +*/ export class SecurityMonitoringSignalAssigneeUpdateData { /** * Attributes describing the new assignee of a security signal. - */ + */ "attributes": SecurityMonitoringSignalAssigneeUpdateAttributes; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSignalAssigneeUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSignalAssigneeUpdateAttributes", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSignalAssigneeUpdateAttributes", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalAssigneeUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.ts index f7bfdbd43ad7..16cbb18f8214 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalAssigneeUpdateData } from "./SecurityMonitoringSignalAssigneeUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request body for changing the assignee of a given security monitoring signal. - */ +*/ export class SecurityMonitoringSignalAssigneeUpdateRequest { /** * Data containing the patch for changing the assignee of a signal. - */ + */ "data": SecurityMonitoringSignalAssigneeUpdateData; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSignalAssigneeUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSignalAssigneeUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSignalAssigneeUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalAssigneeUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAttributes.ts index 10b8913b1d89..26b07220f106 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAttributes.ts @@ -4,28 +4,33 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing all signal attributes and their * associated values. - */ +*/ export class SecurityMonitoringSignalAttributes { /** * A JSON object of attributes in the security signal. - */ - "custom"?: { [key: string]: any }; + */ + "custom"?: { [key: string]: any; }; /** * The message in the security signal defined by the rule that generated the signal. - */ + */ "message"?: string; /** * An array of tags associated with the security signal. - */ + */ "tags"?: Array; /** * The timestamp of the security signal. - */ + */ "timestamp"?: Date; /** @@ -44,35 +49,61 @@ export class SecurityMonitoringSignalAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - custom: { - baseName: "custom", - type: "{ [key: string]: any; }", + "custom": { + "baseName": "custom", + "type": "{ [key: string]: any; }", }, - message: { - baseName: "message", - type: "string", + "message": { + "baseName": "message", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.ts index 3b2a7006974d..a38c92a032e1 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { SecurityMonitoringSignalIncidentIdsItem } from "./SecurityMonitoringSignalIncidentIdsItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing the new list of related signals for a security signal. - */ +*/ export class SecurityMonitoringSignalIncidentsUpdateAttributes { /** * Array of incidents that are associated with this signal. - */ + */ "incidentIds": Array; /** * Version of the updated signal. If server side version is higher, update will be rejected. - */ + */ "version"?: number; /** @@ -35,29 +41,55 @@ export class SecurityMonitoringSignalIncidentsUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - incidentIds: { - baseName: "incident_ids", - type: "Array", - required: true, - format: "int64", + "incidentIds": { + "baseName": "incident_ids", + "type": "Array", + "required": true, + "format": "int64", }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalIncidentsUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.ts index 3a5d81775879..6b71a78889d2 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalIncidentsUpdateAttributes } from "./SecurityMonitoringSignalIncidentsUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data containing the patch for changing the related incidents of a signal. - */ +*/ export class SecurityMonitoringSignalIncidentsUpdateData { /** * Attributes describing the new list of related signals for a security signal. - */ + */ "attributes": SecurityMonitoringSignalIncidentsUpdateAttributes; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSignalIncidentsUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSignalIncidentsUpdateAttributes", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSignalIncidentsUpdateAttributes", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalIncidentsUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.ts index fd5ea05956ec..f2c10373eb8e 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalIncidentsUpdateData } from "./SecurityMonitoringSignalIncidentsUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request body for changing the related incidents of a given security monitoring signal. - */ +*/ export class SecurityMonitoringSignalIncidentsUpdateRequest { /** * Data containing the patch for changing the related incidents of a signal. - */ + */ "data": SecurityMonitoringSignalIncidentsUpdateData; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSignalIncidentsUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSignalIncidentsUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSignalIncidentsUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalIncidentsUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequest.ts index 0a0a662dc59a..6bf7ee3089df 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequest.ts @@ -7,23 +7,28 @@ import { SecurityMonitoringSignalListRequestFilter } from "./SecurityMonitoringS import { SecurityMonitoringSignalListRequestPage } from "./SecurityMonitoringSignalListRequestPage"; import { SecurityMonitoringSignalsSort } from "./SecurityMonitoringSignalsSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a security signal list. - */ +*/ export class SecurityMonitoringSignalListRequest { /** * Search filters for listing security signals. - */ + */ "filter"?: SecurityMonitoringSignalListRequestFilter; /** * The paging attributes for listing security signals. - */ + */ "page"?: SecurityMonitoringSignalListRequestPage; /** * The sort parameters used for querying security signals. - */ + */ "sort"?: SecurityMonitoringSignalsSort; /** @@ -42,30 +47,56 @@ export class SecurityMonitoringSignalListRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "SecurityMonitoringSignalListRequestFilter", - }, - page: { - baseName: "page", - type: "SecurityMonitoringSignalListRequestPage", + "filter": { + "baseName": "filter", + "type": "SecurityMonitoringSignalListRequestFilter", }, - sort: { - baseName: "sort", - type: "SecurityMonitoringSignalsSort", + "page": { + "baseName": "page", + "type": "SecurityMonitoringSignalListRequestPage", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "SecurityMonitoringSignalsSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalListRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestFilter.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestFilter.ts index bc51413fa01a..d0cdd8857050 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestFilter.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Search filters for listing security signals. - */ +*/ export class SecurityMonitoringSignalListRequestFilter { /** * The minimum timestamp for requested security signals. - */ + */ "from"?: Date; /** * Search query for listing security signals. - */ + */ "query"?: string; /** * The maximum timestamp for requested security signals. - */ + */ "to"?: Date; /** @@ -39,32 +44,58 @@ export class SecurityMonitoringSignalListRequestFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "Date", - format: "date-time", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "Date", + "format": "date-time", }, - to: { - baseName: "to", - type: "Date", - format: "date-time", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "Date", + "format": "date-time", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalListRequestFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestPage.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestPage.ts index bd20a81e1eb7..df4b06654a47 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestPage.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalListRequestPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The paging attributes for listing security signals. - */ +*/ export class SecurityMonitoringSignalListRequestPage { /** * A list of results using the cursor provided in the previous query. - */ + */ "cursor"?: string; /** * The maximum number of security signals in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class SecurityMonitoringSignalListRequestPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalListRequestPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalMetadataType.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalMetadataType.ts index d13be77440b1..1e2239bb751e 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalMetadataType.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalMetadataType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of event. - */ +*/ -export type SecurityMonitoringSignalMetadataType = - | typeof SIGNAL_METADATA - | UnparsedObject; -export const SIGNAL_METADATA = "signal_metadata"; +export type SecurityMonitoringSignalMetadataType = typeof SIGNAL_METADATA | UnparsedObject; +export const SIGNAL_METADATA = 'signal_metadata'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalResponse.ts index 3a308fb78da4..8128d493caa2 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalResponse.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignal } from "./SecurityMonitoringSignal"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Security Signal response data object. - */ +*/ export class SecurityMonitoringSignalResponse { /** * Object description of a security signal. - */ + */ "data"?: SecurityMonitoringSignal; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringSignalResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSignal", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSignal", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.ts index 40b16bdf98ab..8a102f8c6cba 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.ts @@ -9,51 +9,56 @@ import { SecurityMonitoringRuleOptions } from "./SecurityMonitoringRuleOptions"; import { SecurityMonitoringSignalRuleQuery } from "./SecurityMonitoringSignalRuleQuery"; import { SecurityMonitoringSignalRuleType } from "./SecurityMonitoringSignalRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a new signal correlation rule. - */ +*/ export class SecurityMonitoringSignalRuleCreatePayload { /** * Cases for generating signals. - */ + */ "cases": Array; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message for generated signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options. - */ + */ "options": SecurityMonitoringRuleOptions; /** * Queries for selecting signals which are part of the rule. - */ + */ "queries": Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringSignalRuleType; /** @@ -72,64 +77,90 @@ export class SecurityMonitoringSignalRuleCreatePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, - }, - filters: { - baseName: "filters", - type: "Array", + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", + "filters": { + "baseName": "filters", + "type": "Array", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", }, - message: { - baseName: "message", - type: "string", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "SecurityMonitoringSignalRuleType", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSignalRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalRuleCreatePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRulePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRulePayload.ts index 87c8b1f8d592..b0b2aa1d6944 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRulePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRulePayload.ts @@ -9,51 +9,56 @@ import { SecurityMonitoringRuleOptions } from "./SecurityMonitoringRuleOptions"; import { SecurityMonitoringSignalRuleQuery } from "./SecurityMonitoringSignalRuleQuery"; import { SecurityMonitoringSignalRuleType } from "./SecurityMonitoringSignalRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The payload of a signal correlation rule. - */ +*/ export class SecurityMonitoringSignalRulePayload { /** * Cases for generating signals. - */ + */ "cases": Array; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message for generated signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options. - */ + */ "options": SecurityMonitoringRuleOptions; /** * Queries for selecting signals which are part of the rule. - */ + */ "queries": Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringSignalRuleType; /** @@ -72,64 +77,90 @@ export class SecurityMonitoringSignalRulePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, - }, - filters: { - baseName: "filters", - type: "Array", + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", + "filters": { + "baseName": "filters", + "type": "Array", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", }, - message: { - baseName: "message", - type: "string", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - type: { - baseName: "type", - type: "SecurityMonitoringSignalRuleType", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSignalRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalRulePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.ts index 0658f49b1b1b..5aa92ccced7a 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.ts @@ -5,35 +5,40 @@ */ import { SecurityMonitoringRuleQueryAggregation } from "./SecurityMonitoringRuleQueryAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query for matching rule on signals. - */ +*/ export class SecurityMonitoringSignalRuleQuery { /** * The aggregation type. - */ + */ "aggregation"?: SecurityMonitoringRuleQueryAggregation; /** * Fields to group by. - */ + */ "correlatedByFields"?: Array; /** * Index of the rule query used to retrieve the correlated field. - */ + */ "correlatedQueryIndex"?: number; /** * Group of target fields to aggregate over. - */ + */ "metrics"?: Array; /** * Name of the query. - */ + */ "name"?: string; /** * Rule ID to match on signals. - */ + */ "ruleId": string; /** @@ -52,44 +57,70 @@ export class SecurityMonitoringSignalRuleQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "SecurityMonitoringRuleQueryAggregation", - }, - correlatedByFields: { - baseName: "correlatedByFields", - type: "Array", + "aggregation": { + "baseName": "aggregation", + "type": "SecurityMonitoringRuleQueryAggregation", }, - correlatedQueryIndex: { - baseName: "correlatedQueryIndex", - type: "number", - format: "int32", + "correlatedByFields": { + "baseName": "correlatedByFields", + "type": "Array", }, - metrics: { - baseName: "metrics", - type: "Array", + "correlatedQueryIndex": { + "baseName": "correlatedQueryIndex", + "type": "number", + "format": "int32", }, - name: { - baseName: "name", - type: "string", + "metrics": { + "baseName": "metrics", + "type": "Array", }, - ruleId: { - baseName: "ruleId", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ruleId": { + "baseName": "ruleId", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalRuleQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.ts index cc06eb099b86..417824b6b4c8 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.ts @@ -9,83 +9,88 @@ import { SecurityMonitoringRuleOptions } from "./SecurityMonitoringRuleOptions"; import { SecurityMonitoringSignalRuleResponseQuery } from "./SecurityMonitoringSignalRuleResponseQuery"; import { SecurityMonitoringSignalRuleType } from "./SecurityMonitoringSignalRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rule. - */ +*/ export class SecurityMonitoringSignalRuleResponse { /** * Cases for generating signals. - */ + */ "cases"?: Array; /** * When the rule was created, timestamp in milliseconds. - */ + */ "createdAt"?: number; /** * User ID of the user who created the rule. - */ + */ "creationAuthorId"?: number; /** * When the rule will be deprecated, timestamp in milliseconds. - */ + */ "deprecationDate"?: number; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * The ID of the rule. - */ + */ "id"?: string; /** * Whether the rule is included by default. - */ + */ "isDefault"?: boolean; /** * Whether the rule has been deleted. - */ + */ "isDeleted"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled"?: boolean; /** * Message for generated signals. - */ + */ "message"?: string; /** * The name of the rule. - */ + */ "name"?: string; /** * Options. - */ + */ "options"?: SecurityMonitoringRuleOptions; /** * Queries for selecting logs which are part of the rule. - */ + */ "queries"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringSignalRuleType; /** * User ID of the user who updated the rule. - */ + */ "updateAuthorId"?: number; /** * The version of the rule. - */ + */ "version"?: number; /** @@ -104,95 +109,121 @@ export class SecurityMonitoringSignalRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - }, - createdAt: { - baseName: "createdAt", - type: "number", - format: "int64", - }, - creationAuthorId: { - baseName: "creationAuthorId", - type: "number", - format: "int64", - }, - deprecationDate: { - baseName: "deprecationDate", - type: "number", - format: "int64", - }, - filters: { - baseName: "filters", - type: "Array", - }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", - }, - id: { - baseName: "id", - type: "string", - }, - isDefault: { - baseName: "isDefault", - type: "boolean", - }, - isDeleted: { - baseName: "isDeleted", - type: "boolean", - }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - }, - message: { - baseName: "message", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - }, - queries: { - baseName: "queries", - type: "Array", - }, - tags: { - baseName: "tags", - type: "Array", - }, - type: { - baseName: "type", - type: "SecurityMonitoringSignalRuleType", - }, - updateAuthorId: { - baseName: "updateAuthorId", - type: "number", - format: "int64", - }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "cases": { + "baseName": "cases", + "type": "Array", + }, + "createdAt": { + "baseName": "createdAt", + "type": "number", + "format": "int64", + }, + "creationAuthorId": { + "baseName": "creationAuthorId", + "type": "number", + "format": "int64", + }, + "deprecationDate": { + "baseName": "deprecationDate", + "type": "number", + "format": "int64", + }, + "filters": { + "baseName": "filters", + "type": "Array", + }, + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", + }, + "id": { + "baseName": "id", + "type": "string", + }, + "isDefault": { + "baseName": "isDefault", + "type": "boolean", + }, + "isDeleted": { + "baseName": "isDeleted", + "type": "boolean", + }, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + }, + "message": { + "baseName": "message", + "type": "string", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + }, + "queries": { + "baseName": "queries", + "type": "Array", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "type": { + "baseName": "type", + "type": "SecurityMonitoringSignalRuleType", + }, + "updateAuthorId": { + "baseName": "updateAuthorId", + "type": "number", + "format": "int64", + }, + "version": { + "baseName": "version", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.ts index e773a4782428..533f30bd399a 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.ts @@ -5,47 +5,52 @@ */ import { SecurityMonitoringRuleQueryAggregation } from "./SecurityMonitoringRuleQueryAggregation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query for matching rule on signals. - */ +*/ export class SecurityMonitoringSignalRuleResponseQuery { /** * The aggregation type. - */ + */ "aggregation"?: SecurityMonitoringRuleQueryAggregation; /** * Fields to correlate by. - */ + */ "correlatedByFields"?: Array; /** * Index of the rule query used to retrieve the correlated field. - */ + */ "correlatedQueryIndex"?: number; /** * Default Rule ID to match on signals. - */ + */ "defaultRuleId"?: string; /** * Field for which the cardinality is measured. Sent as an array. - */ + */ "distinctFields"?: Array; /** * Fields to group by. - */ + */ "groupByFields"?: Array; /** * Group of target fields to aggregate over. - */ + */ "metrics"?: Array; /** * Name of the query. - */ + */ "name"?: string; /** * Rule ID to match on signals. - */ + */ "ruleId"?: string; /** @@ -64,55 +69,81 @@ export class SecurityMonitoringSignalRuleResponseQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "SecurityMonitoringRuleQueryAggregation", + "aggregation": { + "baseName": "aggregation", + "type": "SecurityMonitoringRuleQueryAggregation", }, - correlatedByFields: { - baseName: "correlatedByFields", - type: "Array", + "correlatedByFields": { + "baseName": "correlatedByFields", + "type": "Array", }, - correlatedQueryIndex: { - baseName: "correlatedQueryIndex", - type: "number", - format: "int32", + "correlatedQueryIndex": { + "baseName": "correlatedQueryIndex", + "type": "number", + "format": "int32", }, - defaultRuleId: { - baseName: "defaultRuleId", - type: "string", + "defaultRuleId": { + "baseName": "defaultRuleId", + "type": "string", }, - distinctFields: { - baseName: "distinctFields", - type: "Array", + "distinctFields": { + "baseName": "distinctFields", + "type": "Array", }, - groupByFields: { - baseName: "groupByFields", - type: "Array", + "groupByFields": { + "baseName": "groupByFields", + "type": "Array", }, - metrics: { - baseName: "metrics", - type: "Array", + "metrics": { + "baseName": "metrics", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - ruleId: { - baseName: "ruleId", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "ruleId": { + "baseName": "ruleId", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalRuleResponseQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.ts index 83d1efe47b19..7bc2e4a85e03 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The rule type. - */ +*/ -export type SecurityMonitoringSignalRuleType = - | typeof SIGNAL_CORRELATION - | UnparsedObject; -export const SIGNAL_CORRELATION = "signal_correlation"; +export type SecurityMonitoringSignalRuleType = typeof SIGNAL_CORRELATION | UnparsedObject; +export const SIGNAL_CORRELATION = 'signal_correlation'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.ts index 0ff8f67f6b19..e60659fd51bb 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The new triage state of the signal. - */ +*/ -export type SecurityMonitoringSignalState = - | typeof OPEN - | typeof ARCHIVED - | typeof UNDER_REVIEW - | UnparsedObject; -export const OPEN = "open"; -export const ARCHIVED = "archived"; -export const UNDER_REVIEW = "under_review"; +export type SecurityMonitoringSignalState = typeof OPEN| typeof ARCHIVED| typeof UNDER_REVIEW | UnparsedObject; +export const OPEN = 'open'; +export const ARCHIVED = 'archived'; +export const UNDER_REVIEW = 'under_review'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.ts index a55e773c2430..c57b87b3a9d6 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.ts @@ -6,27 +6,32 @@ import { SecurityMonitoringSignalArchiveReason } from "./SecurityMonitoringSignalArchiveReason"; import { SecurityMonitoringSignalState } from "./SecurityMonitoringSignalState"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing the change of state of a security signal. - */ +*/ export class SecurityMonitoringSignalStateUpdateAttributes { /** * Optional comment to display on archived signals. - */ + */ "archiveComment"?: string; /** * Reason a signal is archived. - */ + */ "archiveReason"?: SecurityMonitoringSignalArchiveReason; /** * The new triage state of the signal. - */ + */ "state": SecurityMonitoringSignalState; /** * Version of the updated signal. If server side version is higher, update will be rejected. - */ + */ "version"?: number; /** @@ -45,36 +50,62 @@ export class SecurityMonitoringSignalStateUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - archiveComment: { - baseName: "archive_comment", - type: "string", + "archiveComment": { + "baseName": "archive_comment", + "type": "string", }, - archiveReason: { - baseName: "archive_reason", - type: "SecurityMonitoringSignalArchiveReason", + "archiveReason": { + "baseName": "archive_reason", + "type": "SecurityMonitoringSignalArchiveReason", }, - state: { - baseName: "state", - type: "SecurityMonitoringSignalState", - required: true, + "state": { + "baseName": "state", + "type": "SecurityMonitoringSignalState", + "required": true, }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalStateUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.ts index 7af476882cbe..7ea093ae6d6d 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.ts @@ -6,23 +6,28 @@ import { SecurityMonitoringSignalMetadataType } from "./SecurityMonitoringSignalMetadataType"; import { SecurityMonitoringSignalStateUpdateAttributes } from "./SecurityMonitoringSignalStateUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data containing the patch for changing the state of a signal. - */ +*/ export class SecurityMonitoringSignalStateUpdateData { /** * Attributes describing the change of state of a security signal. - */ + */ "attributes": SecurityMonitoringSignalStateUpdateAttributes; /** * The unique ID of the security signal. - */ + */ "id"?: any; /** * The type of event. - */ + */ "type"?: SecurityMonitoringSignalMetadataType; /** @@ -41,31 +46,57 @@ export class SecurityMonitoringSignalStateUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSignalStateUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSignalStateUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SecurityMonitoringSignalMetadataType", + "id": { + "baseName": "id", + "type": "any", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSignalMetadataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalStateUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.ts index 1877cd3c0bae..04371d5c3d81 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalStateUpdateData } from "./SecurityMonitoringSignalStateUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request body for changing the state of a given security monitoring signal. - */ +*/ export class SecurityMonitoringSignalStateUpdateRequest { /** * Data containing the patch for changing the state of a signal. - */ + */ "data": SecurityMonitoringSignalStateUpdateData; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSignalStateUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSignalStateUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSignalStateUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalStateUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.ts index e2de014d1a86..e388fda58996 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.ts @@ -4,50 +4,56 @@ * Copyright 2020-Present Datadog, Inc. */ import { SecurityMonitoringSignalArchiveReason } from "./SecurityMonitoringSignalArchiveReason"; +import { SecurityMonitoringSignalIncidentIdsItem } from "./SecurityMonitoringSignalIncidentIdsItem"; import { SecurityMonitoringSignalState } from "./SecurityMonitoringSignalState"; import { SecurityMonitoringTriageUser } from "./SecurityMonitoringTriageUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes describing a triage state update operation over a security signal. - */ +*/ export class SecurityMonitoringSignalTriageAttributes { /** * Optional comment to display on archived signals. - */ + */ "archiveComment"?: string; /** * Timestamp of the last edit to the comment. - */ + */ "archiveCommentTimestamp"?: number; /** * Object representing a given user entity. - */ + */ "archiveCommentUser"?: SecurityMonitoringTriageUser; /** * Reason a signal is archived. - */ + */ "archiveReason"?: SecurityMonitoringSignalArchiveReason; /** * Object representing a given user entity. - */ + */ "assignee": SecurityMonitoringTriageUser; /** * Array of incidents that are associated with this signal. - */ + */ "incidentIds": Array; /** * The new triage state of the signal. - */ + */ "state": SecurityMonitoringSignalState; /** * Timestamp of the last update to the signal state. - */ + */ "stateUpdateTimestamp"?: number; /** * Object representing a given user entity. - */ + */ "stateUpdateUser"?: SecurityMonitoringTriageUser; /** @@ -66,60 +72,86 @@ export class SecurityMonitoringSignalTriageAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - archiveComment: { - baseName: "archive_comment", - type: "string", + "archiveComment": { + "baseName": "archive_comment", + "type": "string", }, - archiveCommentTimestamp: { - baseName: "archive_comment_timestamp", - type: "number", - format: "int64", + "archiveCommentTimestamp": { + "baseName": "archive_comment_timestamp", + "type": "number", + "format": "int64", }, - archiveCommentUser: { - baseName: "archive_comment_user", - type: "SecurityMonitoringTriageUser", + "archiveCommentUser": { + "baseName": "archive_comment_user", + "type": "SecurityMonitoringTriageUser", }, - archiveReason: { - baseName: "archive_reason", - type: "SecurityMonitoringSignalArchiveReason", + "archiveReason": { + "baseName": "archive_reason", + "type": "SecurityMonitoringSignalArchiveReason", }, - assignee: { - baseName: "assignee", - type: "SecurityMonitoringTriageUser", - required: true, + "assignee": { + "baseName": "assignee", + "type": "SecurityMonitoringTriageUser", + "required": true, }, - incidentIds: { - baseName: "incident_ids", - type: "Array", - required: true, - format: "int64", + "incidentIds": { + "baseName": "incident_ids", + "type": "Array", + "required": true, + "format": "int64", }, - state: { - baseName: "state", - type: "SecurityMonitoringSignalState", - required: true, + "state": { + "baseName": "state", + "type": "SecurityMonitoringSignalState", + "required": true, }, - stateUpdateTimestamp: { - baseName: "state_update_timestamp", - type: "number", - format: "int64", + "stateUpdateTimestamp": { + "baseName": "state_update_timestamp", + "type": "number", + "format": "int64", }, - stateUpdateUser: { - baseName: "state_update_user", - type: "SecurityMonitoringTriageUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "stateUpdateUser": { + "baseName": "state_update_user", + "type": "SecurityMonitoringTriageUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalTriageAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.ts index 3f2411ae93bc..7a29b313b94a 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.ts @@ -6,23 +6,28 @@ import { SecurityMonitoringSignalMetadataType } from "./SecurityMonitoringSignalMetadataType"; import { SecurityMonitoringSignalTriageAttributes } from "./SecurityMonitoringSignalTriageAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data containing the updated triage attributes of the signal. - */ +*/ export class SecurityMonitoringSignalTriageUpdateData { /** * Attributes describing a triage state update operation over a security signal. - */ + */ "attributes"?: SecurityMonitoringSignalTriageAttributes; /** * The unique ID of the security signal. - */ + */ "id"?: string; /** * The type of event. - */ + */ "type"?: SecurityMonitoringSignalMetadataType; /** @@ -41,30 +46,56 @@ export class SecurityMonitoringSignalTriageUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSignalTriageAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSignalTriageAttributes", }, - type: { - baseName: "type", - type: "SecurityMonitoringSignalMetadataType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSignalMetadataType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalTriageUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.ts index a3711da24600..6ba8e390d165 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalTriageUpdateData } from "./SecurityMonitoringSignalTriageUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response returned after all triage operations, containing the updated signal triage data. - */ +*/ export class SecurityMonitoringSignalTriageUpdateResponse { /** * Data containing the updated triage attributes of the signal. - */ + */ "data": SecurityMonitoringSignalTriageUpdateData; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSignalTriageUpdateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSignalTriageUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSignalTriageUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalTriageUpdateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalType.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalType.ts index 8713ede5971b..668b3d5b7723 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalType.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of event. - */ +*/ export type SecurityMonitoringSignalType = typeof SIGNAL | UnparsedObject; -export const SIGNAL = "signal"; +export const SIGNAL = 'signal'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponse.ts index 1b2a418f332b..ea07acccf1ac 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponse.ts @@ -7,24 +7,29 @@ import { SecurityMonitoringSignal } from "./SecurityMonitoringSignal"; import { SecurityMonitoringSignalsListResponseLinks } from "./SecurityMonitoringSignalsListResponseLinks"; import { SecurityMonitoringSignalsListResponseMeta } from "./SecurityMonitoringSignalsListResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object with all security signals matching the request * and pagination information. - */ +*/ export class SecurityMonitoringSignalsListResponse { /** * An array of security signals matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: SecurityMonitoringSignalsListResponseLinks; /** * Meta attributes. - */ + */ "meta"?: SecurityMonitoringSignalsListResponseMeta; /** @@ -43,30 +48,56 @@ export class SecurityMonitoringSignalsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "SecurityMonitoringSignalsListResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "SecurityMonitoringSignalsListResponseMeta", + "links": { + "baseName": "links", + "type": "SecurityMonitoringSignalsListResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SecurityMonitoringSignalsListResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseLinks.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseLinks.ts index f366c739033c..1d28e06917c1 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class SecurityMonitoringSignalsListResponseLinks { /** * The link for the next set of results. **Note**: The request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringSignalsListResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalsListResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMeta.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMeta.ts index f4aa4282d6f5..21d1f52f6e0b 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMeta.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSignalsListResponseMetaPage } from "./SecurityMonitoringSignalsListResponseMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta attributes. - */ +*/ export class SecurityMonitoringSignalsListResponseMeta { /** * Paging attributes. - */ + */ "page"?: SecurityMonitoringSignalsListResponseMetaPage; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringSignalsListResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "SecurityMonitoringSignalsListResponseMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "SecurityMonitoringSignalsListResponseMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalsListResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMetaPage.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMetaPage.ts index ebafc12e8d0a..194f23350f59 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMetaPage.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsListResponseMetaPage.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class SecurityMonitoringSignalsListResponseMetaPage { /** * The cursor used to get the next results, if any. To make the next request, use the same * parameters with the addition of the `page[cursor]`. - */ + */ "after"?: string; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringSignalsListResponseMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSignalsListResponseMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsSort.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsSort.ts index 8c3134de6ad2..429767392a79 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsSort.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalsSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The sort parameters used for querying security signals. - */ +*/ -export type SecurityMonitoringSignalsSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type SecurityMonitoringSignalsSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardDataSource.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardDataSource.ts index bdaec775bf0a..0b77ab153202 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardDataSource.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardDataSource.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Source of events, either logs or audit trail. - */ +*/ -export type SecurityMonitoringStandardDataSource = - | typeof LOGS - | typeof AUDIT - | UnparsedObject; -export const LOGS = "logs"; -export const AUDIT = "audit"; +export type SecurityMonitoringStandardDataSource = typeof LOGS| typeof AUDIT | UnparsedObject; +export const LOGS = 'logs'; +export const AUDIT = 'audit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.ts index 42b9b4e75549..e53d60d1a5d2 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.ts @@ -11,63 +11,68 @@ import { SecurityMonitoringRuleTypeCreate } from "./SecurityMonitoringRuleTypeCr import { SecurityMonitoringStandardRuleQuery } from "./SecurityMonitoringStandardRuleQuery"; import { SecurityMonitoringThirdPartyRuleCaseCreate } from "./SecurityMonitoringThirdPartyRuleCaseCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a new rule. - */ +*/ export class SecurityMonitoringStandardRuleCreatePayload { /** * Cases for generating signals. - */ + */ "cases": Array; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups. - */ + */ "groupSignalsBy"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message for generated signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options. - */ + */ "options": SecurityMonitoringRuleOptions; /** * Queries for selecting logs which are part of the rule. - */ + */ "queries": Array; /** * Reference tables for the rule. - */ + */ "referenceTables"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * Cases for generating signals from third-party rules. Only available for third-party rules. - */ + */ "thirdPartyCases"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringRuleTypeCreate; /** @@ -86,76 +91,102 @@ export class SecurityMonitoringStandardRuleCreatePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - filters: { - baseName: "filters", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - groupSignalsBy: { - baseName: "groupSignalsBy", - type: "Array", + "groupSignalsBy": { + "baseName": "groupSignalsBy", + "type": "Array", }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - required: true, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - referenceTables: { - baseName: "referenceTables", - type: "Array", + "referenceTables": { + "baseName": "referenceTables", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - thirdPartyCases: { - baseName: "thirdPartyCases", - type: "Array", + "thirdPartyCases": { + "baseName": "thirdPartyCases", + "type": "Array", }, - type: { - baseName: "type", - type: "SecurityMonitoringRuleTypeCreate", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringRuleTypeCreate", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringStandardRuleCreatePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRulePayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRulePayload.ts index c990c69af64b..ed277bbfba00 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRulePayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRulePayload.ts @@ -11,63 +11,68 @@ import { SecurityMonitoringRuleTypeCreate } from "./SecurityMonitoringRuleTypeCr import { SecurityMonitoringStandardRuleQuery } from "./SecurityMonitoringStandardRuleQuery"; import { SecurityMonitoringThirdPartyRuleCaseCreate } from "./SecurityMonitoringThirdPartyRuleCaseCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The payload of a rule. - */ +*/ export class SecurityMonitoringStandardRulePayload { /** * Cases for generating signals. - */ + */ "cases": Array; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups. - */ + */ "groupSignalsBy"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message for generated signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options. - */ + */ "options": SecurityMonitoringRuleOptions; /** * Queries for selecting logs which are part of the rule. - */ + */ "queries": Array; /** * Reference tables for the rule. - */ + */ "referenceTables"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * Cases for generating signals from third-party rules. Only available for third-party rules. - */ + */ "thirdPartyCases"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringRuleTypeCreate; /** @@ -86,76 +91,102 @@ export class SecurityMonitoringStandardRulePayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - filters: { - baseName: "filters", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - groupSignalsBy: { - baseName: "groupSignalsBy", - type: "Array", + "groupSignalsBy": { + "baseName": "groupSignalsBy", + "type": "Array", }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - required: true, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - referenceTables: { - baseName: "referenceTables", - type: "Array", + "referenceTables": { + "baseName": "referenceTables", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - thirdPartyCases: { - baseName: "thirdPartyCases", - type: "Array", + "thirdPartyCases": { + "baseName": "thirdPartyCases", + "type": "Array", }, - type: { - baseName: "type", - type: "SecurityMonitoringRuleTypeCreate", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringRuleTypeCreate", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringStandardRulePayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.ts index 4354fd781759..82fd29c5d0fe 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.ts @@ -6,48 +6,53 @@ import { SecurityMonitoringRuleQueryAggregation } from "./SecurityMonitoringRuleQueryAggregation"; import { SecurityMonitoringStandardDataSource } from "./SecurityMonitoringStandardDataSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Query for matching rule. - */ +*/ export class SecurityMonitoringStandardRuleQuery { /** * The aggregation type. - */ + */ "aggregation"?: SecurityMonitoringRuleQueryAggregation; /** * Source of events, either logs or audit trail. - */ + */ "dataSource"?: SecurityMonitoringStandardDataSource; /** * Field for which the cardinality is measured. Sent as an array. - */ + */ "distinctFields"?: Array; /** * Fields to group by. - */ + */ "groupByFields"?: Array; /** * When false, events without a group-by value are ignored by the rule. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values. - */ + */ "hasOptionalGroupByFields"?: boolean; /** * (Deprecated) The target field to aggregate over when using the sum or max * aggregations. `metrics` field should be used instead. - */ + */ "metric"?: string; /** * Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values. - */ + */ "metrics"?: Array; /** * Name of the query. - */ + */ "name"?: string; /** * Query to run on logs. - */ + */ "query"?: string; /** @@ -66,54 +71,80 @@ export class SecurityMonitoringStandardRuleQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "SecurityMonitoringRuleQueryAggregation", + "aggregation": { + "baseName": "aggregation", + "type": "SecurityMonitoringRuleQueryAggregation", }, - dataSource: { - baseName: "dataSource", - type: "SecurityMonitoringStandardDataSource", + "dataSource": { + "baseName": "dataSource", + "type": "SecurityMonitoringStandardDataSource", }, - distinctFields: { - baseName: "distinctFields", - type: "Array", + "distinctFields": { + "baseName": "distinctFields", + "type": "Array", }, - groupByFields: { - baseName: "groupByFields", - type: "Array", + "groupByFields": { + "baseName": "groupByFields", + "type": "Array", }, - hasOptionalGroupByFields: { - baseName: "hasOptionalGroupByFields", - type: "boolean", + "hasOptionalGroupByFields": { + "baseName": "hasOptionalGroupByFields", + "type": "boolean", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - metrics: { - baseName: "metrics", - type: "Array", + "metrics": { + "baseName": "metrics", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringStandardRuleQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.ts index 41a7cf1e7bf2..49bba7f53fc0 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.ts @@ -12,107 +12,112 @@ import { SecurityMonitoringRuleTypeRead } from "./SecurityMonitoringRuleTypeRead import { SecurityMonitoringStandardRuleQuery } from "./SecurityMonitoringStandardRuleQuery"; import { SecurityMonitoringThirdPartyRuleCase } from "./SecurityMonitoringThirdPartyRuleCase"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rule. - */ +*/ export class SecurityMonitoringStandardRuleResponse { /** * Cases for generating signals. - */ + */ "cases"?: Array; /** * How to generate compliance signals. Useful for cloud_configuration rules only. - */ + */ "complianceSignalOptions"?: CloudConfigurationRuleComplianceSignalOptions; /** * When the rule was created, timestamp in milliseconds. - */ + */ "createdAt"?: number; /** * User ID of the user who created the rule. - */ + */ "creationAuthorId"?: number; /** * Default Tags for default rules (included in tags) - */ + */ "defaultTags"?: Array; /** * When the rule will be deprecated, timestamp in milliseconds. - */ + */ "deprecationDate"?: number; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups. - */ + */ "groupSignalsBy"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * The ID of the rule. - */ + */ "id"?: string; /** * Whether the rule is included by default. - */ + */ "isDefault"?: boolean; /** * Whether the rule has been deleted. - */ + */ "isDeleted"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled"?: boolean; /** * Message for generated signals. - */ + */ "message"?: string; /** * The name of the rule. - */ + */ "name"?: string; /** * Options. - */ + */ "options"?: SecurityMonitoringRuleOptions; /** * Queries for selecting logs which are part of the rule. - */ + */ "queries"?: Array; /** * Reference tables for the rule. - */ + */ "referenceTables"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * Cases for generating signals from third-party rules. Only available for third-party rules. - */ + */ "thirdPartyCases"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringRuleTypeRead; /** * User ID of the user who updated the rule. - */ + */ "updateAuthorId"?: number; /** * The date the rule was last updated, in milliseconds. - */ + */ "updatedAt"?: number; /** * The version of the rule. - */ + */ "version"?: number; /** @@ -131,120 +136,146 @@ export class SecurityMonitoringStandardRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - }, - complianceSignalOptions: { - baseName: "complianceSignalOptions", - type: "CloudConfigurationRuleComplianceSignalOptions", - }, - createdAt: { - baseName: "createdAt", - type: "number", - format: "int64", - }, - creationAuthorId: { - baseName: "creationAuthorId", - type: "number", - format: "int64", - }, - defaultTags: { - baseName: "defaultTags", - type: "Array", - }, - deprecationDate: { - baseName: "deprecationDate", - type: "number", - format: "int64", - }, - filters: { - baseName: "filters", - type: "Array", - }, - groupSignalsBy: { - baseName: "groupSignalsBy", - type: "Array", - }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", - }, - id: { - baseName: "id", - type: "string", - }, - isDefault: { - baseName: "isDefault", - type: "boolean", - }, - isDeleted: { - baseName: "isDeleted", - type: "boolean", - }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - }, - message: { - baseName: "message", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - }, - queries: { - baseName: "queries", - type: "Array", - }, - referenceTables: { - baseName: "referenceTables", - type: "Array", - }, - tags: { - baseName: "tags", - type: "Array", - }, - thirdPartyCases: { - baseName: "thirdPartyCases", - type: "Array", - }, - type: { - baseName: "type", - type: "SecurityMonitoringRuleTypeRead", - }, - updateAuthorId: { - baseName: "updateAuthorId", - type: "number", - format: "int64", - }, - updatedAt: { - baseName: "updatedAt", - type: "number", - format: "int64", - }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "cases": { + "baseName": "cases", + "type": "Array", + }, + "complianceSignalOptions": { + "baseName": "complianceSignalOptions", + "type": "CloudConfigurationRuleComplianceSignalOptions", + }, + "createdAt": { + "baseName": "createdAt", + "type": "number", + "format": "int64", + }, + "creationAuthorId": { + "baseName": "creationAuthorId", + "type": "number", + "format": "int64", + }, + "defaultTags": { + "baseName": "defaultTags", + "type": "Array", + }, + "deprecationDate": { + "baseName": "deprecationDate", + "type": "number", + "format": "int64", + }, + "filters": { + "baseName": "filters", + "type": "Array", + }, + "groupSignalsBy": { + "baseName": "groupSignalsBy", + "type": "Array", + }, + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", + }, + "id": { + "baseName": "id", + "type": "string", + }, + "isDefault": { + "baseName": "isDefault", + "type": "boolean", }, + "isDeleted": { + "baseName": "isDeleted", + "type": "boolean", + }, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + }, + "message": { + "baseName": "message", + "type": "string", + }, + "name": { + "baseName": "name", + "type": "string", + }, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + }, + "queries": { + "baseName": "queries", + "type": "Array", + }, + "referenceTables": { + "baseName": "referenceTables", + "type": "Array", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "thirdPartyCases": { + "baseName": "thirdPartyCases", + "type": "Array", + }, + "type": { + "baseName": "type", + "type": "SecurityMonitoringRuleTypeRead", + }, + "updateAuthorId": { + "baseName": "updateAuthorId", + "type": "number", + "format": "int64", + }, + "updatedAt": { + "baseName": "updatedAt", + "type": "number", + "format": "int64", + }, + "version": { + "baseName": "version", + "type": "number", + "format": "int64", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringStandardRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleTestPayload.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleTestPayload.ts index 67c970fab869..84d5df1a5317 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleTestPayload.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleTestPayload.ts @@ -11,63 +11,68 @@ import { SecurityMonitoringRuleTypeTest } from "./SecurityMonitoringRuleTypeTest import { SecurityMonitoringStandardRuleQuery } from "./SecurityMonitoringStandardRuleQuery"; import { SecurityMonitoringThirdPartyRuleCaseCreate } from "./SecurityMonitoringThirdPartyRuleCaseCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The payload of a rule to test - */ +*/ export class SecurityMonitoringStandardRuleTestPayload { /** * Cases for generating signals. - */ + */ "cases": Array; /** * Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules. - */ + */ "filters"?: Array; /** * Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups. - */ + */ "groupSignalsBy"?: Array; /** * Whether the notifications include the triggering group-by values in their title. - */ + */ "hasExtendedTitle"?: boolean; /** * Whether the rule is enabled. - */ + */ "isEnabled": boolean; /** * Message for generated signals. - */ + */ "message": string; /** * The name of the rule. - */ + */ "name": string; /** * Options. - */ + */ "options": SecurityMonitoringRuleOptions; /** * Queries for selecting logs which are part of the rule. - */ + */ "queries": Array; /** * Reference tables for the rule. - */ + */ "referenceTables"?: Array; /** * Tags for generated signals. - */ + */ "tags"?: Array; /** * Cases for generating signals from third-party rules. Only available for third-party rules. - */ + */ "thirdPartyCases"?: Array; /** * The rule type. - */ + */ "type"?: SecurityMonitoringRuleTypeTest; /** @@ -86,76 +91,102 @@ export class SecurityMonitoringStandardRuleTestPayload { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cases: { - baseName: "cases", - type: "Array", - required: true, + "cases": { + "baseName": "cases", + "type": "Array", + "required": true, }, - filters: { - baseName: "filters", - type: "Array", + "filters": { + "baseName": "filters", + "type": "Array", }, - groupSignalsBy: { - baseName: "groupSignalsBy", - type: "Array", + "groupSignalsBy": { + "baseName": "groupSignalsBy", + "type": "Array", }, - hasExtendedTitle: { - baseName: "hasExtendedTitle", - type: "boolean", + "hasExtendedTitle": { + "baseName": "hasExtendedTitle", + "type": "boolean", }, - isEnabled: { - baseName: "isEnabled", - type: "boolean", - required: true, + "isEnabled": { + "baseName": "isEnabled", + "type": "boolean", + "required": true, }, - message: { - baseName: "message", - type: "string", - required: true, + "message": { + "baseName": "message", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - options: { - baseName: "options", - type: "SecurityMonitoringRuleOptions", - required: true, + "options": { + "baseName": "options", + "type": "SecurityMonitoringRuleOptions", + "required": true, }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - referenceTables: { - baseName: "referenceTables", - type: "Array", + "referenceTables": { + "baseName": "referenceTables", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - thirdPartyCases: { - baseName: "thirdPartyCases", - type: "Array", + "thirdPartyCases": { + "baseName": "thirdPartyCases", + "type": "Array", }, - type: { - baseName: "type", - type: "SecurityMonitoringRuleTypeTest", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringRuleTypeTest", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringStandardRuleTestPayload.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.ts index 99792ea637bc..71a4b1281b6d 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.ts @@ -6,23 +6,28 @@ import { SecurityMonitoringSuppressionAttributes } from "./SecurityMonitoringSuppressionAttributes"; import { SecurityMonitoringSuppressionType } from "./SecurityMonitoringSuppressionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The suppression rule's properties. - */ +*/ export class SecurityMonitoringSuppression { /** * The attributes of the suppression rule. - */ + */ "attributes"?: SecurityMonitoringSuppressionAttributes; /** * The ID of the suppression rule. - */ + */ "id"?: string; /** * The type of the resource. The value should always be `suppressions`. - */ + */ "type"?: SecurityMonitoringSuppressionType; /** @@ -41,30 +46,56 @@ export class SecurityMonitoringSuppression { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSuppressionAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSuppressionAttributes", }, - type: { - baseName: "type", - type: "SecurityMonitoringSuppressionType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSuppressionType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppression.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.ts index 265ca706fcb6..27ec37bbbfdb 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.ts @@ -5,67 +5,72 @@ */ import { SecurityMonitoringUser } from "./SecurityMonitoringUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of the suppression rule. - */ +*/ export class SecurityMonitoringSuppressionAttributes { /** * A Unix millisecond timestamp given the creation date of the suppression rule. - */ + */ "creationDate"?: number; /** * A user. - */ + */ "creator"?: SecurityMonitoringUser; /** * An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule. - */ + */ "dataExclusionQuery"?: string; /** * A description for the suppression rule. - */ + */ "description"?: string; /** * Whether the suppression rule is editable. - */ + */ "editable"?: boolean; /** * Whether the suppression rule is enabled. - */ + */ "enabled"?: boolean; /** * A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. - */ + */ "expirationDate"?: number; /** * The name of the suppression rule. - */ + */ "name"?: string; /** * The rule query of the suppression rule, with the same syntax as the search bar for detection rules. - */ + */ "ruleQuery"?: string; /** * A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals. - */ + */ "startDate"?: number; /** * The suppression query of the suppression rule. If a signal matches this query, it is suppressed and not triggered. Same syntax as the queries to search signals in the signal explorer. - */ + */ "suppressionQuery"?: string; /** * A Unix millisecond timestamp given the update date of the suppression rule. - */ + */ "updateDate"?: number; /** * A user. - */ + */ "updater"?: SecurityMonitoringUser; /** * The version of the suppression rule; it starts at 1, and is incremented at each update. - */ + */ "version"?: number; /** @@ -84,79 +89,105 @@ export class SecurityMonitoringSuppressionAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - creationDate: { - baseName: "creation_date", - type: "number", - format: "int64", - }, - creator: { - baseName: "creator", - type: "SecurityMonitoringUser", + "creationDate": { + "baseName": "creation_date", + "type": "number", + "format": "int64", }, - dataExclusionQuery: { - baseName: "data_exclusion_query", - type: "string", + "creator": { + "baseName": "creator", + "type": "SecurityMonitoringUser", }, - description: { - baseName: "description", - type: "string", + "dataExclusionQuery": { + "baseName": "data_exclusion_query", + "type": "string", }, - editable: { - baseName: "editable", - type: "boolean", + "description": { + "baseName": "description", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", + "editable": { + "baseName": "editable", + "type": "boolean", }, - expirationDate: { - baseName: "expiration_date", - type: "number", - format: "int64", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "expirationDate": { + "baseName": "expiration_date", + "type": "number", + "format": "int64", }, - ruleQuery: { - baseName: "rule_query", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - startDate: { - baseName: "start_date", - type: "number", - format: "int64", + "ruleQuery": { + "baseName": "rule_query", + "type": "string", }, - suppressionQuery: { - baseName: "suppression_query", - type: "string", + "startDate": { + "baseName": "start_date", + "type": "number", + "format": "int64", }, - updateDate: { - baseName: "update_date", - type: "number", - format: "int64", + "suppressionQuery": { + "baseName": "suppression_query", + "type": "string", }, - updater: { - baseName: "updater", - type: "SecurityMonitoringUser", + "updateDate": { + "baseName": "update_date", + "type": "number", + "format": "int64", }, - version: { - baseName: "version", - type: "number", - format: "int32", + "updater": { + "baseName": "updater", + "type": "SecurityMonitoringUser", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.ts index 5843a4f01227..46d6dd713429 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the attributes of the suppression rule to be created. - */ +*/ export class SecurityMonitoringSuppressionCreateAttributes { /** * An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule. - */ + */ "dataExclusionQuery"?: string; /** * A description for the suppression rule. - */ + */ "description"?: string; /** * Whether the suppression rule is enabled. - */ + */ "enabled": boolean; /** * A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. - */ + */ "expirationDate"?: number; /** * The name of the suppression rule. - */ + */ "name": string; /** * The rule query of the suppression rule, with the same syntax as the search bar for detection rules. - */ + */ "ruleQuery": string; /** * A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals. - */ + */ "startDate"?: number; /** * The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered. It uses the same syntax as the queries to search signals in the Signals Explorer. - */ + */ "suppressionQuery"?: string; /** @@ -59,55 +64,81 @@ export class SecurityMonitoringSuppressionCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dataExclusionQuery: { - baseName: "data_exclusion_query", - type: "string", + "dataExclusionQuery": { + "baseName": "data_exclusion_query", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", - required: true, + "enabled": { + "baseName": "enabled", + "type": "boolean", + "required": true, }, - expirationDate: { - baseName: "expiration_date", - type: "number", - format: "int64", + "expirationDate": { + "baseName": "expiration_date", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - ruleQuery: { - baseName: "rule_query", - type: "string", - required: true, + "ruleQuery": { + "baseName": "rule_query", + "type": "string", + "required": true, }, - startDate: { - baseName: "start_date", - type: "number", - format: "int64", + "startDate": { + "baseName": "start_date", + "type": "number", + "format": "int64", }, - suppressionQuery: { - baseName: "suppression_query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "suppressionQuery": { + "baseName": "suppression_query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.ts index add581eb0f78..851f454abcee 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.ts @@ -6,19 +6,24 @@ import { SecurityMonitoringSuppressionCreateAttributes } from "./SecurityMonitoringSuppressionCreateAttributes"; import { SecurityMonitoringSuppressionType } from "./SecurityMonitoringSuppressionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object for a single suppression rule. - */ +*/ export class SecurityMonitoringSuppressionCreateData { /** * Object containing the attributes of the suppression rule to be created. - */ + */ "attributes": SecurityMonitoringSuppressionCreateAttributes; /** * The type of the resource. The value should always be `suppressions`. - */ + */ "type": SecurityMonitoringSuppressionType; /** @@ -37,28 +42,54 @@ export class SecurityMonitoringSuppressionCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSuppressionCreateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSuppressionCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SecurityMonitoringSuppressionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSuppressionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.ts index ffa9deb74bd3..1ab6dc9cfea5 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSuppressionCreateData } from "./SecurityMonitoringSuppressionCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object that includes the suppression rule that you would like to create. - */ +*/ export class SecurityMonitoringSuppressionCreateRequest { /** * Object for a single suppression rule. - */ + */ "data": SecurityMonitoringSuppressionCreateData; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSuppressionCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSuppressionCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSuppressionCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.ts index 80f5a44b3ae5..e7ceaee9c393 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSuppression } from "./SecurityMonitoringSuppression"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object containing a single suppression rule. - */ +*/ export class SecurityMonitoringSuppressionResponse { /** * The suppression rule's properties. - */ + */ "data"?: SecurityMonitoringSuppression; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringSuppressionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSuppression", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSuppression", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.ts index 21559d30a04a..a75aa9109e97 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be `suppressions`. - */ +*/ -export type SecurityMonitoringSuppressionType = - | typeof SUPPRESSIONS - | UnparsedObject; -export const SUPPRESSIONS = "suppressions"; +export type SecurityMonitoringSuppressionType = typeof SUPPRESSIONS | UnparsedObject; +export const SUPPRESSIONS = 'suppressions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.ts index 48b793bb78e8..8863e949506f 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.ts @@ -4,47 +4,52 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The suppression rule properties to be updated. - */ +*/ export class SecurityMonitoringSuppressionUpdateAttributes { /** * An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule. - */ + */ "dataExclusionQuery"?: string; /** * A description for the suppression rule. - */ + */ "description"?: string; /** * Whether the suppression rule is enabled. - */ + */ "enabled"?: boolean; /** * A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. If unset, the expiration date of the suppression rule is left untouched. If set to `null`, the expiration date is removed. - */ + */ "expirationDate"?: number; /** * The name of the suppression rule. - */ + */ "name"?: string; /** * The rule query of the suppression rule, with the same syntax as the search bar for detection rules. - */ + */ "ruleQuery"?: string; /** * A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals. If unset, the start date of the suppression rule is left untouched. If set to `null`, the start date is removed. - */ + */ "startDate"?: number; /** * The suppression query of the suppression rule. If a signal matches this query, it is suppressed and not triggered. Same syntax as the queries to search signals in the signal explorer. - */ + */ "suppressionQuery"?: string; /** * The current version of the suppression. This is optional, but it can help prevent concurrent modifications. - */ + */ "version"?: number; /** @@ -63,57 +68,83 @@ export class SecurityMonitoringSuppressionUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - dataExclusionQuery: { - baseName: "data_exclusion_query", - type: "string", + "dataExclusionQuery": { + "baseName": "data_exclusion_query", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - enabled: { - baseName: "enabled", - type: "boolean", + "enabled": { + "baseName": "enabled", + "type": "boolean", }, - expirationDate: { - baseName: "expiration_date", - type: "number", - format: "int64", + "expirationDate": { + "baseName": "expiration_date", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - ruleQuery: { - baseName: "rule_query", - type: "string", + "ruleQuery": { + "baseName": "rule_query", + "type": "string", }, - startDate: { - baseName: "start_date", - type: "number", - format: "int64", + "startDate": { + "baseName": "start_date", + "type": "number", + "format": "int64", }, - suppressionQuery: { - baseName: "suppression_query", - type: "string", + "suppressionQuery": { + "baseName": "suppression_query", + "type": "string", }, - version: { - baseName: "version", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.ts index 4f6b279c71e3..d02e3a614004 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.ts @@ -6,19 +6,24 @@ import { SecurityMonitoringSuppressionType } from "./SecurityMonitoringSuppressionType"; import { SecurityMonitoringSuppressionUpdateAttributes } from "./SecurityMonitoringSuppressionUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new suppression properties; partial updates are supported. - */ +*/ export class SecurityMonitoringSuppressionUpdateData { /** * The suppression rule properties to be updated. - */ + */ "attributes": SecurityMonitoringSuppressionUpdateAttributes; /** * The type of the resource. The value should always be `suppressions`. - */ + */ "type": SecurityMonitoringSuppressionType; /** @@ -37,28 +42,54 @@ export class SecurityMonitoringSuppressionUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SecurityMonitoringSuppressionUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SecurityMonitoringSuppressionUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SecurityMonitoringSuppressionType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SecurityMonitoringSuppressionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.ts index 73f51e5e0498..0cf61b8565cc 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSuppressionUpdateData } from "./SecurityMonitoringSuppressionUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request object containing the fields to update on the suppression rule. - */ +*/ export class SecurityMonitoringSuppressionUpdateRequest { /** * The new suppression properties; partial updates are supported. - */ + */ "data": SecurityMonitoringSuppressionUpdateData; /** @@ -32,23 +37,49 @@ export class SecurityMonitoringSuppressionUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SecurityMonitoringSuppressionUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SecurityMonitoringSuppressionUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.ts index 65f14d8e76d6..549408db1378 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.ts @@ -5,15 +5,20 @@ */ import { SecurityMonitoringSuppression } from "./SecurityMonitoringSuppression"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object containing the available suppression rules. - */ +*/ export class SecurityMonitoringSuppressionsResponse { /** * A list of suppressions objects. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class SecurityMonitoringSuppressionsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringSuppressionsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRootQuery.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRootQuery.ts index 46d9e2855d82..b8fa2e47a6b7 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRootQuery.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRootQuery.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A query to be combined with the third party case query. - */ +*/ export class SecurityMonitoringThirdPartyRootQuery { /** * Fields to group by. - */ + */ "groupByFields"?: Array; /** * Query to run on logs. - */ + */ "query"?: string; /** @@ -35,26 +40,52 @@ export class SecurityMonitoringThirdPartyRootQuery { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - groupByFields: { - baseName: "groupByFields", - type: "Array", + "groupByFields": { + "baseName": "groupByFields", + "type": "Array", }, - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringThirdPartyRootQuery.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCase.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCase.ts index 6526c56a844d..39eaa7bc3e40 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCase.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCase.ts @@ -5,27 +5,32 @@ */ import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case when signal is generated by a third party rule. - */ +*/ export class SecurityMonitoringThirdPartyRuleCase { /** * Name of the case. - */ + */ "name"?: string; /** * Notification targets for each rule case. - */ + */ "notifications"?: Array; /** * A query to map a third party event to this case. - */ + */ "query"?: string; /** * Severity of the Security Signal. - */ + */ "status"?: SecurityMonitoringRuleSeverity; /** @@ -44,34 +49,60 @@ export class SecurityMonitoringThirdPartyRuleCase { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - notifications: { - baseName: "notifications", - type: "Array", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - status: { - baseName: "status", - type: "SecurityMonitoringRuleSeverity", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SecurityMonitoringRuleSeverity", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringThirdPartyRuleCase.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCaseCreate.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCaseCreate.ts index 426a3d9ab1c3..a18a59ff5d39 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCaseCreate.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCaseCreate.ts @@ -5,27 +5,32 @@ */ import { SecurityMonitoringRuleSeverity } from "./SecurityMonitoringRuleSeverity"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Case when a signal is generated by a third party rule. - */ +*/ export class SecurityMonitoringThirdPartyRuleCaseCreate { /** * Name of the case. - */ + */ "name"?: string; /** * Notification targets for each case. - */ + */ "notifications"?: Array; /** * A query to map a third party event to this case. - */ + */ "query"?: string; /** * Severity of the Security Signal. - */ + */ "status": SecurityMonitoringRuleSeverity; /** @@ -44,35 +49,61 @@ export class SecurityMonitoringThirdPartyRuleCaseCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - notifications: { - baseName: "notifications", - type: "Array", + "notifications": { + "baseName": "notifications", + "type": "Array", }, - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - status: { - baseName: "status", - type: "SecurityMonitoringRuleSeverity", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "SecurityMonitoringRuleSeverity", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringThirdPartyRuleCaseCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.ts index 7e0d2c89891c..dba4bda25b31 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object representing a given user entity. - */ +*/ export class SecurityMonitoringTriageUser { /** * The handle for this user account. - */ + */ "handle"?: string; /** * Gravatar icon associated to the user. - */ + */ "icon"?: string; /** * Numerical ID assigned by Datadog to this user account. - */ + */ "id"?: number; /** * The name for this user account. - */ + */ "name"?: string; /** * UUID assigned by Datadog to this user account. - */ + */ "uuid": string; /** @@ -47,40 +52,66 @@ export class SecurityMonitoringTriageUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - icon: { - baseName: "icon", - type: "string", + "icon": { + "baseName": "icon", + "type": "string", }, - id: { - baseName: "id", - type: "number", - format: "int64", + "id": { + "baseName": "id", + "type": "number", + "format": "int64", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - uuid: { - baseName: "uuid", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uuid": { + "baseName": "uuid", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringTriageUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringUser.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringUser.ts index c2914fe25210..0c13da996b10 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringUser.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringUser.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A user. - */ +*/ export class SecurityMonitoringUser { /** * The handle of the user. - */ + */ "handle"?: string; /** * The name of the user. - */ + */ "name"?: string; /** @@ -35,26 +40,52 @@ export class SecurityMonitoringUser { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityMonitoringUser.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityTrigger.ts b/packages/datadog-api-client-v2/models/SecurityTrigger.ts index cf3f21956fdc..ea375c584ecd 100644 --- a/packages/datadog-api-client-v2/models/SecurityTrigger.ts +++ b/packages/datadog-api-client-v2/models/SecurityTrigger.ts @@ -5,15 +5,20 @@ */ import { TriggerRateLimit } from "./TriggerRateLimit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Trigger a workflow from a Security Signal or Finding. For automatic triggering a handle must be configured and the workflow must be published. - */ +*/ export class SecurityTrigger { /** * Defines a rate limit for a trigger. - */ + */ "rateLimit"?: TriggerRateLimit; /** @@ -32,22 +37,48 @@ export class SecurityTrigger { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - rateLimit: { - baseName: "rateLimit", - type: "TriggerRateLimit", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rateLimit": { + "baseName": "rateLimit", + "type": "TriggerRateLimit", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityTrigger.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SecurityTriggerWrapper.ts b/packages/datadog-api-client-v2/models/SecurityTriggerWrapper.ts index ebc9e457a81c..67cfd67e6aa3 100644 --- a/packages/datadog-api-client-v2/models/SecurityTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/SecurityTriggerWrapper.ts @@ -4,20 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ import { SecurityTrigger } from "./SecurityTrigger"; +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Security-based trigger. - */ +*/ export class SecurityTriggerWrapper { /** * Trigger a workflow from a Security Signal or Finding. For automatic triggering a handle must be configured and the workflow must be published. - */ + */ "securityTrigger": SecurityTrigger; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -36,27 +42,53 @@ export class SecurityTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - securityTrigger: { - baseName: "securityTrigger", - type: "SecurityTrigger", - required: true, + "securityTrigger": { + "baseName": "securityTrigger", + "type": "SecurityTrigger", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SecurityTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Selectors.ts b/packages/datadog-api-client-v2/models/Selectors.ts index 6fa45804a6f2..eca0529f96e3 100644 --- a/packages/datadog-api-client-v2/models/Selectors.ts +++ b/packages/datadog-api-client-v2/models/Selectors.ts @@ -7,30 +7,35 @@ import { RuleSeverity } from "./RuleSeverity"; import { RuleTypesItems } from "./RuleTypesItems"; import { TriggerSource } from "./TriggerSource"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Selectors are used to filter security issues for which notifications should be generated. * Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. * Only the trigger_source field is required. - */ +*/ export class Selectors { /** * The query is composed of one or several key:value pairs, which can be used to filter security issues on tags and attributes. - */ + */ "query"?: string; /** * Security rule types used as filters in security rules. - */ + */ "ruleTypes"?: Array; /** * The security rules severities to consider. - */ + */ "severities"?: Array; /** * The type of security issues on which the rule applies. Notification rules based on security signals need to use the trigger source "security_signals", * while notification rules based on security vulnerabilities need to use the trigger source "security_findings". - */ + */ "triggerSource": TriggerSource; /** @@ -49,35 +54,61 @@ export class Selectors { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - ruleTypes: { - baseName: "rule_types", - type: "Array", + "ruleTypes": { + "baseName": "rule_types", + "type": "Array", }, - severities: { - baseName: "severities", - type: "Array", + "severities": { + "baseName": "severities", + "type": "Array", }, - triggerSource: { - baseName: "trigger_source", - type: "TriggerSource", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "triggerSource": { + "baseName": "trigger_source", + "type": "TriggerSource", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Selectors.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SelfServiceTriggerWrapper.ts b/packages/datadog-api-client-v2/models/SelfServiceTriggerWrapper.ts index a52a2b1c492a..6ed5717f6711 100644 --- a/packages/datadog-api-client-v2/models/SelfServiceTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/SelfServiceTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Self Service-based trigger. - */ +*/ export class SelfServiceTriggerWrapper { /** * Trigger a workflow from Self Service. - */ + */ "selfServiceTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class SelfServiceTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - selfServiceTrigger: { - baseName: "selfServiceTrigger", - type: "any", - required: true, + "selfServiceTrigger": { + "baseName": "selfServiceTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SelfServiceTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigRequest.ts index f4574ed8e71f..c726533a09ba 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigRequest.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; import { SensitiveDataScannerReorderConfig } from "./SensitiveDataScannerReorderConfig"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Group reorder request. - */ +*/ export class SensitiveDataScannerConfigRequest { /** * Data related to the reordering of scanning groups. - */ + */ "data": SensitiveDataScannerReorderConfig; /** * Meta payload containing information about the API. - */ + */ "meta": SensitiveDataScannerMetaVersionOnly; /** @@ -37,28 +42,54 @@ export class SensitiveDataScannerConfigRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerReorderConfig", - required: true, + "data": { + "baseName": "data", + "type": "SensitiveDataScannerReorderConfig", + "required": true, }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerConfigRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfiguration.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfiguration.ts index cef666f3519b..f7f85f465938 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfiguration.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfiguration.ts @@ -5,19 +5,24 @@ */ import { SensitiveDataScannerConfigurationType } from "./SensitiveDataScannerConfigurationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Sensitive Data Scanner configuration. - */ +*/ export class SensitiveDataScannerConfiguration { /** * ID of the configuration. - */ + */ "id"?: string; /** * Sensitive Data Scanner configuration type. - */ + */ "type"?: SensitiveDataScannerConfigurationType; /** @@ -36,26 +41,52 @@ export class SensitiveDataScannerConfiguration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "SensitiveDataScannerConfigurationType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerConfigurationType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerConfiguration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationData.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationData.ts index 4f4203499f14..d428dea72915 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationData.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationData.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerConfiguration } from "./SensitiveDataScannerConfiguration"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Sensitive Data Scanner configuration data. - */ +*/ export class SensitiveDataScannerConfigurationData { /** * A Sensitive Data Scanner configuration. - */ + */ "data"?: SensitiveDataScannerConfiguration; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerConfigurationData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerConfiguration", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerConfiguration", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerConfigurationData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationRelationships.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationRelationships.ts index 9614c7755f4d..46d69c204ca8 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationRelationships.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationRelationships.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerGroupList } from "./SensitiveDataScannerGroupList"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of the configuration. - */ +*/ export class SensitiveDataScannerConfigurationRelationships { /** * List of groups, ordered. - */ + */ "groups"?: SensitiveDataScannerGroupList; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerConfigurationRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - groups: { - baseName: "groups", - type: "SensitiveDataScannerGroupList", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groups": { + "baseName": "groups", + "type": "SensitiveDataScannerGroupList", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerConfigurationRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationType.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationType.ts index 1aae07c619c7..5c1840672655 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationType.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerConfigurationType.ts @@ -4,14 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sensitive Data Scanner configuration type. - */ +*/ -export type SensitiveDataScannerConfigurationType = - | typeof SENSITIVE_DATA_SCANNER_CONFIGURATIONS - | UnparsedObject; -export const SENSITIVE_DATA_SCANNER_CONFIGURATIONS = - "sensitive_data_scanner_configuration"; +export type SensitiveDataScannerConfigurationType = typeof SENSITIVE_DATA_SCANNER_CONFIGURATIONS | UnparsedObject; +export const SENSITIVE_DATA_SCANNER_CONFIGURATIONS = 'sensitive_data_scanner_configuration'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateGroupResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateGroupResponse.ts index 39edb977fea2..ec26fd9635f3 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateGroupResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateGroupResponse.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerGroupResponse } from "./SensitiveDataScannerGroupResponse"; import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create group response. - */ +*/ export class SensitiveDataScannerCreateGroupResponse { /** * Response data related to the creation of a group. - */ + */ "data"?: SensitiveDataScannerGroupResponse; /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -37,26 +42,52 @@ export class SensitiveDataScannerCreateGroupResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerGroupResponse", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerGroupResponse", }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerCreateGroupResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateRuleResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateRuleResponse.ts index 2b8c3312e273..aa246de09fb1 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerCreateRuleResponse.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; import { SensitiveDataScannerRuleResponse } from "./SensitiveDataScannerRuleResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create rule response. - */ +*/ export class SensitiveDataScannerCreateRuleResponse { /** * Response data related to the creation of a rule. - */ + */ "data"?: SensitiveDataScannerRuleResponse; /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -37,26 +42,52 @@ export class SensitiveDataScannerCreateRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerRuleResponse", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerRuleResponse", }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerCreateRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerFilter.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerFilter.ts index 7c0a5adf72b9..81966f3c147c 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerFilter.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Filter for the Scanning Group. - */ +*/ export class SensitiveDataScannerFilter { /** * Query to filter the events. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class SensitiveDataScannerFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigIncludedItem.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigIncludedItem.ts index 05c6d7f545dd..4ef50af5931d 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigIncludedItem.ts @@ -6,13 +6,15 @@ import { SensitiveDataScannerGroupIncludedItem } from "./SensitiveDataScannerGroupIncludedItem"; import { SensitiveDataScannerRuleIncludedItem } from "./SensitiveDataScannerRuleIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to the configuration. - */ +*/ -export type SensitiveDataScannerGetConfigIncludedItem = - | SensitiveDataScannerRuleIncludedItem - | SensitiveDataScannerGroupIncludedItem - | UnparsedObject; +export type SensitiveDataScannerGetConfigIncludedItem = SensitiveDataScannerRuleIncludedItem | SensitiveDataScannerGroupIncludedItem | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponse.ts index f8e86a809e17..d265305033b1 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponse.ts @@ -7,23 +7,28 @@ import { SensitiveDataScannerGetConfigIncludedItem } from "./SensitiveDataScanne import { SensitiveDataScannerGetConfigResponseData } from "./SensitiveDataScannerGetConfigResponseData"; import { SensitiveDataScannerMeta } from "./SensitiveDataScannerMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Get all groups response. - */ +*/ export class SensitiveDataScannerGetConfigResponse { /** * Response data related to the scanning groups. - */ + */ "data"?: SensitiveDataScannerGetConfigResponseData; /** * Included objects from relationships. - */ + */ "included"?: Array; /** * Meta response containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMeta; /** @@ -42,30 +47,56 @@ export class SensitiveDataScannerGetConfigResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerGetConfigResponseData", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerGetConfigResponseData", }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGetConfigResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponseData.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponseData.ts index 746ffdc35fbc..7823b00e3745 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponseData.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGetConfigResponseData.ts @@ -6,27 +6,32 @@ import { SensitiveDataScannerConfigurationRelationships } from "./SensitiveDataScannerConfigurationRelationships"; import { SensitiveDataScannerConfigurationType } from "./SensitiveDataScannerConfigurationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response data related to the scanning groups. - */ +*/ export class SensitiveDataScannerGetConfigResponseData { /** * Attributes of the Sensitive Data configuration. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * ID of the configuration. - */ + */ "id"?: string; /** * Relationships of the configuration. - */ + */ "relationships"?: SensitiveDataScannerConfigurationRelationships; /** * Sensitive Data Scanner configuration type. - */ + */ "type"?: SensitiveDataScannerConfigurationType; /** @@ -45,34 +50,60 @@ export class SensitiveDataScannerGetConfigResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerConfigurationRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerConfigurationRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerConfigurationType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerConfigurationType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGetConfigResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroup.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroup.ts index 22ceb8a40d95..2d6d29e9bb58 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroup.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroup.ts @@ -5,19 +5,24 @@ */ import { SensitiveDataScannerGroupType } from "./SensitiveDataScannerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A scanning group. - */ +*/ export class SensitiveDataScannerGroup { /** * ID of the group. - */ + */ "id"?: string; /** * Sensitive Data Scanner group type. - */ + */ "type"?: SensitiveDataScannerGroupType; /** @@ -36,26 +41,52 @@ export class SensitiveDataScannerGroup { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "SensitiveDataScannerGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroup.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupAttributes.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupAttributes.ts index 49a91d638311..6a5fa5aa5d77 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupAttributes.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupAttributes.ts @@ -6,31 +6,36 @@ import { SensitiveDataScannerFilter } from "./SensitiveDataScannerFilter"; import { SensitiveDataScannerProduct } from "./SensitiveDataScannerProduct"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the Sensitive Data Scanner group. - */ +*/ export class SensitiveDataScannerGroupAttributes { /** * Description of the group. - */ + */ "description"?: string; /** * Filter for the Scanning Group. - */ + */ "filter"?: SensitiveDataScannerFilter; /** * Whether or not the group is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the group. - */ + */ "name"?: string; /** * List of products the scanning group applies. - */ + */ "productList"?: Array; /** @@ -49,38 +54,64 @@ export class SensitiveDataScannerGroupAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - filter: { - baseName: "filter", - type: "SensitiveDataScannerFilter", + "filter": { + "baseName": "filter", + "type": "SensitiveDataScannerFilter", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - productList: { - baseName: "product_list", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "productList": { + "baseName": "product_list", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreate.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreate.ts index 30c8d2271346..86374c736d69 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreate.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreate.ts @@ -7,23 +7,28 @@ import { SensitiveDataScannerGroupAttributes } from "./SensitiveDataScannerGroup import { SensitiveDataScannerGroupRelationships } from "./SensitiveDataScannerGroupRelationships"; import { SensitiveDataScannerGroupType } from "./SensitiveDataScannerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the creation of a group. - */ +*/ export class SensitiveDataScannerGroupCreate { /** * Attributes of the Sensitive Data Scanner group. - */ + */ "attributes": SensitiveDataScannerGroupAttributes; /** * Relationships of the group. - */ + */ "relationships"?: SensitiveDataScannerGroupRelationships; /** * Sensitive Data Scanner group type. - */ + */ "type": SensitiveDataScannerGroupType; /** @@ -42,32 +47,58 @@ export class SensitiveDataScannerGroupCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerGroupAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerGroupRelationships", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerGroupAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SensitiveDataScannerGroupType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerGroupRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerGroupType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreateRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreateRequest.ts index 4e307c807a64..09d971198938 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupCreateRequest.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerGroupCreate } from "./SensitiveDataScannerGroupCreate"; import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create group request. - */ +*/ export class SensitiveDataScannerGroupCreateRequest { /** * Data related to the creation of a group. - */ + */ "data"?: SensitiveDataScannerGroupCreate; /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -37,26 +42,52 @@ export class SensitiveDataScannerGroupCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerGroupCreate", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerGroupCreate", }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupData.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupData.ts index ddfdb02996df..b7e993767866 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupData.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupData.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerGroup } from "./SensitiveDataScannerGroup"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A scanning group data. - */ +*/ export class SensitiveDataScannerGroupData { /** * A scanning group. - */ + */ "data"?: SensitiveDataScannerGroup; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerGroupData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerGroup", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerGroup", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteRequest.ts index e404124a0751..8f702a9f9a7b 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteRequest.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Delete group request. - */ +*/ export class SensitiveDataScannerGroupDeleteRequest { /** * Meta payload containing information about the API. - */ + */ "meta": SensitiveDataScannerMetaVersionOnly; /** @@ -32,23 +37,49 @@ export class SensitiveDataScannerGroupDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteResponse.ts index fc32eb5aaed5..52584b9fc95e 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupDeleteResponse.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Delete group response. - */ +*/ export class SensitiveDataScannerGroupDeleteResponse { /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerGroupDeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupDeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupIncludedItem.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupIncludedItem.ts index a35041c54800..83c5858f3780 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupIncludedItem.ts @@ -7,27 +7,32 @@ import { SensitiveDataScannerGroupAttributes } from "./SensitiveDataScannerGroup import { SensitiveDataScannerGroupRelationships } from "./SensitiveDataScannerGroupRelationships"; import { SensitiveDataScannerGroupType } from "./SensitiveDataScannerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Scanning Group included item. - */ +*/ export class SensitiveDataScannerGroupIncludedItem { /** * Attributes of the Sensitive Data Scanner group. - */ + */ "attributes"?: SensitiveDataScannerGroupAttributes; /** * ID of the group. - */ + */ "id"?: string; /** * Relationships of the group. - */ + */ "relationships"?: SensitiveDataScannerGroupRelationships; /** * Sensitive Data Scanner group type. - */ + */ "type"?: SensitiveDataScannerGroupType; /** @@ -46,34 +51,60 @@ export class SensitiveDataScannerGroupIncludedItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerGroupAttributes", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerGroupAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerGroupRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerGroupRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupIncludedItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupItem.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupItem.ts index f97dbed32da8..9d62adbbd114 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupItem.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupItem.ts @@ -5,19 +5,24 @@ */ import { SensitiveDataScannerGroupType } from "./SensitiveDataScannerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to a Sensitive Data Scanner Group. - */ +*/ export class SensitiveDataScannerGroupItem { /** * ID of the group. - */ + */ "id"?: string; /** * Sensitive Data Scanner group type. - */ + */ "type"?: SensitiveDataScannerGroupType; /** @@ -36,26 +41,52 @@ export class SensitiveDataScannerGroupItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "SensitiveDataScannerGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupList.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupList.ts index c501d2ba0551..005783e6eb53 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupList.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupList.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerGroupItem } from "./SensitiveDataScannerGroupItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List of groups, ordered. - */ +*/ export class SensitiveDataScannerGroupList { /** * List of groups. The order is important. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerGroupList { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupList.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupRelationships.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupRelationships.ts index 0e5de841608a..f0b25823a72c 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupRelationships.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupRelationships.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerConfigurationData } from "./SensitiveDataScannerConfigurationData"; import { SensitiveDataScannerRuleData } from "./SensitiveDataScannerRuleData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of the group. - */ +*/ export class SensitiveDataScannerGroupRelationships { /** * A Sensitive Data Scanner configuration data. - */ + */ "configuration"?: SensitiveDataScannerConfigurationData; /** * Rules included in the group. - */ + */ "rules"?: SensitiveDataScannerRuleData; /** @@ -37,26 +42,52 @@ export class SensitiveDataScannerGroupRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - configuration: { - baseName: "configuration", - type: "SensitiveDataScannerConfigurationData", + "configuration": { + "baseName": "configuration", + "type": "SensitiveDataScannerConfigurationData", }, - rules: { - baseName: "rules", - type: "SensitiveDataScannerRuleData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "rules": { + "baseName": "rules", + "type": "SensitiveDataScannerRuleData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupResponse.ts index 55d16175c20d..18d6c8723ade 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupResponse.ts @@ -7,27 +7,32 @@ import { SensitiveDataScannerGroupAttributes } from "./SensitiveDataScannerGroup import { SensitiveDataScannerGroupRelationships } from "./SensitiveDataScannerGroupRelationships"; import { SensitiveDataScannerGroupType } from "./SensitiveDataScannerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response data related to the creation of a group. - */ +*/ export class SensitiveDataScannerGroupResponse { /** * Attributes of the Sensitive Data Scanner group. - */ + */ "attributes"?: SensitiveDataScannerGroupAttributes; /** * ID of the group. - */ + */ "id"?: string; /** * Relationships of the group. - */ + */ "relationships"?: SensitiveDataScannerGroupRelationships; /** * Sensitive Data Scanner group type. - */ + */ "type"?: SensitiveDataScannerGroupType; /** @@ -46,34 +51,60 @@ export class SensitiveDataScannerGroupResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerGroupAttributes", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerGroupAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerGroupRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerGroupRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupType.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupType.ts index 7b7c40184454..047c24ebcb28 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupType.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sensitive Data Scanner group type. - */ +*/ -export type SensitiveDataScannerGroupType = - | typeof SENSITIVE_DATA_SCANNER_GROUP - | UnparsedObject; -export const SENSITIVE_DATA_SCANNER_GROUP = "sensitive_data_scanner_group"; +export type SensitiveDataScannerGroupType = typeof SENSITIVE_DATA_SCANNER_GROUP | UnparsedObject; +export const SENSITIVE_DATA_SCANNER_GROUP = 'sensitive_data_scanner_group'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdate.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdate.ts index 2520e3cd35c4..81dd871964cd 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdate.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdate.ts @@ -7,27 +7,32 @@ import { SensitiveDataScannerGroupAttributes } from "./SensitiveDataScannerGroup import { SensitiveDataScannerGroupRelationships } from "./SensitiveDataScannerGroupRelationships"; import { SensitiveDataScannerGroupType } from "./SensitiveDataScannerGroupType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the update of a group. - */ +*/ export class SensitiveDataScannerGroupUpdate { /** * Attributes of the Sensitive Data Scanner group. - */ + */ "attributes"?: SensitiveDataScannerGroupAttributes; /** * ID of the group. - */ + */ "id"?: string; /** * Relationships of the group. - */ + */ "relationships"?: SensitiveDataScannerGroupRelationships; /** * Sensitive Data Scanner group type. - */ + */ "type"?: SensitiveDataScannerGroupType; /** @@ -46,34 +51,60 @@ export class SensitiveDataScannerGroupUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerGroupAttributes", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerGroupAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerGroupRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerGroupRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerGroupType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerGroupType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateRequest.ts index 149e05a0d5c4..401ab2d71caa 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateRequest.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerGroupUpdate } from "./SensitiveDataScannerGroupUpdate"; import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update group request. - */ +*/ export class SensitiveDataScannerGroupUpdateRequest { /** * Data related to the update of a group. - */ + */ "data": SensitiveDataScannerGroupUpdate; /** * Meta payload containing information about the API. - */ + */ "meta": SensitiveDataScannerMetaVersionOnly; /** @@ -37,28 +42,54 @@ export class SensitiveDataScannerGroupUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerGroupUpdate", - required: true, + "data": { + "baseName": "data", + "type": "SensitiveDataScannerGroupUpdate", + "required": true, }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateResponse.ts index 0abc76f7eda8..bb74d7db2822 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerGroupUpdateResponse.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update group response. - */ +*/ export class SensitiveDataScannerGroupUpdateResponse { /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerGroupUpdateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerGroupUpdateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerIncludedKeywordConfiguration.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerIncludedKeywordConfiguration.ts index 96e77a4ea264..c4cae49c1d8d 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerIncludedKeywordConfiguration.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerIncludedKeywordConfiguration.ts @@ -4,29 +4,34 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object defining a set of keywords and a number of characters that help reduce noise. * You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. * If any of the keywords are found within the proximity check, the match is kept. * If none are found, the match is discarded. - */ +*/ export class SensitiveDataScannerIncludedKeywordConfiguration { /** * The number of characters behind a match detected by Sensitive Data Scanner to look for the keywords defined. * `character_count` should be greater than the maximum length of a keyword defined for a rule. - */ + */ "characterCount": number; /** * Keyword list that will be checked during scanning in order to validate a match. * The number of keywords in the list must be less than or equal to 30. - */ + */ "keywords": Array; /** * Should the rule use the underlying standard pattern keyword configuration. If set to `true`, the rule must be tied * to a standard pattern. If set to `false`, the specified keywords and `character_count` are applied. - */ + */ "useRecommendedKeywords"?: boolean; /** @@ -45,33 +50,59 @@ export class SensitiveDataScannerIncludedKeywordConfiguration { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - characterCount: { - baseName: "character_count", - type: "number", - required: true, - format: "int64", - }, - keywords: { - baseName: "keywords", - type: "Array", - required: true, + "characterCount": { + "baseName": "character_count", + "type": "number", + "required": true, + "format": "int64", }, - useRecommendedKeywords: { - baseName: "use_recommended_keywords", - type: "boolean", + "keywords": { + "baseName": "keywords", + "type": "Array", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "useRecommendedKeywords": { + "baseName": "use_recommended_keywords", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerIncludedKeywordConfiguration.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerMeta.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerMeta.ts index 0bddbbb08033..a59d97fc361c 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerMeta.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerMeta.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta response containing information about the API. - */ +*/ export class SensitiveDataScannerMeta { /** * Maximum number of scanning rules allowed for the org. - */ + */ "countLimit"?: number; /** * Maximum number of scanning groups allowed for the org. - */ + */ "groupCountLimit"?: number; /** * (Deprecated) Whether or not scanned events are highlighted in Logs or RUM for the org. - */ + */ "hasHighlightEnabled"?: boolean; /** * (Deprecated) Whether or not scanned events have multi-pass enabled. - */ + */ "hasMultiPassEnabled"?: boolean; /** * Whether or not the org is compliant to the payment card industry standard. - */ + */ "isPciCompliant"?: boolean; /** * Version of the API. - */ + */ "version"?: number; /** @@ -51,45 +56,71 @@ export class SensitiveDataScannerMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - countLimit: { - baseName: "count_limit", - type: "number", - format: "int64", - }, - groupCountLimit: { - baseName: "group_count_limit", - type: "number", - format: "int64", + "countLimit": { + "baseName": "count_limit", + "type": "number", + "format": "int64", }, - hasHighlightEnabled: { - baseName: "has_highlight_enabled", - type: "boolean", + "groupCountLimit": { + "baseName": "group_count_limit", + "type": "number", + "format": "int64", }, - hasMultiPassEnabled: { - baseName: "has_multi_pass_enabled", - type: "boolean", + "hasHighlightEnabled": { + "baseName": "has_highlight_enabled", + "type": "boolean", }, - isPciCompliant: { - baseName: "is_pci_compliant", - type: "boolean", + "hasMultiPassEnabled": { + "baseName": "has_multi_pass_enabled", + "type": "boolean", }, - version: { - baseName: "version", - type: "number", - format: "int64", + "isPciCompliant": { + "baseName": "is_pci_compliant", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerMetaVersionOnly.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerMetaVersionOnly.ts index d838fe721e1c..25440fbc9394 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerMetaVersionOnly.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerMetaVersionOnly.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Meta payload containing information about the API. - */ +*/ export class SensitiveDataScannerMetaVersionOnly { /** * Version of the API (optional). - */ + */ "version"?: number; /** @@ -31,23 +36,49 @@ export class SensitiveDataScannerMetaVersionOnly { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerMetaVersionOnly.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerProduct.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerProduct.ts index 419e0f4d7a8c..3aa5b94602f8 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerProduct.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerProduct.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Datadog product onto which Sensitive Data Scanner can be activated. - */ +*/ -export type SensitiveDataScannerProduct = - | typeof LOGS - | typeof RUM - | typeof EVENTS - | typeof APM - | UnparsedObject; -export const LOGS = "logs"; -export const RUM = "rum"; -export const EVENTS = "events"; -export const APM = "apm"; +export type SensitiveDataScannerProduct = typeof LOGS| typeof RUM| typeof EVENTS| typeof APM | UnparsedObject; +export const LOGS = 'logs'; +export const RUM = 'rum'; +export const EVENTS = 'events'; +export const APM = 'apm'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderConfig.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderConfig.ts index 1d0fbc014e07..a61bfb023819 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderConfig.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderConfig.ts @@ -6,23 +6,28 @@ import { SensitiveDataScannerConfigurationRelationships } from "./SensitiveDataScannerConfigurationRelationships"; import { SensitiveDataScannerConfigurationType } from "./SensitiveDataScannerConfigurationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the reordering of scanning groups. - */ +*/ export class SensitiveDataScannerReorderConfig { /** * ID of the configuration. - */ + */ "id"?: string; /** * Relationships of the configuration. - */ + */ "relationships"?: SensitiveDataScannerConfigurationRelationships; /** * Sensitive Data Scanner configuration type. - */ + */ "type"?: SensitiveDataScannerConfigurationType; /** @@ -41,30 +46,56 @@ export class SensitiveDataScannerReorderConfig { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerConfigurationRelationships", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "SensitiveDataScannerConfigurationType", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerConfigurationRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerConfigurationType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerReorderConfig.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderGroupsResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderGroupsResponse.ts index b43cf1fe9ab1..62dd851fcb4b 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderGroupsResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerReorderGroupsResponse.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMeta } from "./SensitiveDataScannerMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Group reorder response. - */ +*/ export class SensitiveDataScannerReorderGroupsResponse { /** * Meta response containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMeta; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerReorderGroupsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerReorderGroupsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRule.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRule.ts index 6a06b65ed0fa..a342b0fc339a 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRule.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRule.ts @@ -5,19 +5,24 @@ */ import { SensitiveDataScannerRuleType } from "./SensitiveDataScannerRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rule item included in the group. - */ +*/ export class SensitiveDataScannerRule { /** * ID of the rule. - */ + */ "id"?: string; /** * Sensitive Data Scanner rule type. - */ + */ "type"?: SensitiveDataScannerRuleType; /** @@ -36,26 +41,52 @@ export class SensitiveDataScannerRule { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "SensitiveDataScannerRuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRule.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.ts index ada3557ef932..958365e9d4e7 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.ts @@ -6,55 +6,60 @@ import { SensitiveDataScannerIncludedKeywordConfiguration } from "./SensitiveDataScannerIncludedKeywordConfiguration"; import { SensitiveDataScannerTextReplacement } from "./SensitiveDataScannerTextReplacement"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the Sensitive Data Scanner rule. - */ +*/ export class SensitiveDataScannerRuleAttributes { /** * Description of the rule. - */ + */ "description"?: string; /** * Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array. - */ + */ "excludedNamespaces"?: Array; /** * Object defining a set of keywords and a number of characters that help reduce noise. * You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. * If any of the keywords are found within the proximity check, the match is kept. * If none are found, the match is discarded. - */ + */ "includedKeywordConfiguration"?: SensitiveDataScannerIncludedKeywordConfiguration; /** * Whether or not the rule is enabled. - */ + */ "isEnabled"?: boolean; /** * Name of the rule. - */ + */ "name"?: string; /** * Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. * If both are missing the whole event is scanned. - */ + */ "namespaces"?: Array; /** * Not included if there is a relationship to a standard pattern. - */ + */ "pattern"?: string; /** * Integer from 1 (high) to 5 (low) indicating rule issue severity. - */ + */ "priority"?: number; /** * List of tags. - */ + */ "tags"?: Array; /** * Object describing how the scanned event will be replaced. - */ + */ "textReplacement"?: SensitiveDataScannerTextReplacement; /** @@ -73,59 +78,85 @@ export class SensitiveDataScannerRuleAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - excludedNamespaces: { - baseName: "excluded_namespaces", - type: "Array", + "description": { + "baseName": "description", + "type": "string", }, - includedKeywordConfiguration: { - baseName: "included_keyword_configuration", - type: "SensitiveDataScannerIncludedKeywordConfiguration", + "excludedNamespaces": { + "baseName": "excluded_namespaces", + "type": "Array", }, - isEnabled: { - baseName: "is_enabled", - type: "boolean", + "includedKeywordConfiguration": { + "baseName": "included_keyword_configuration", + "type": "SensitiveDataScannerIncludedKeywordConfiguration", }, - name: { - baseName: "name", - type: "string", + "isEnabled": { + "baseName": "is_enabled", + "type": "boolean", }, - namespaces: { - baseName: "namespaces", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - pattern: { - baseName: "pattern", - type: "string", + "namespaces": { + "baseName": "namespaces", + "type": "Array", }, - priority: { - baseName: "priority", - type: "number", - format: "int64", + "pattern": { + "baseName": "pattern", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "priority": { + "baseName": "priority", + "type": "number", + "format": "int64", }, - textReplacement: { - baseName: "text_replacement", - type: "SensitiveDataScannerTextReplacement", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "textReplacement": { + "baseName": "text_replacement", + "type": "SensitiveDataScannerTextReplacement", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreate.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreate.ts index 17c22166be50..a0d5fc0c1d93 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreate.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreate.ts @@ -7,23 +7,28 @@ import { SensitiveDataScannerRuleAttributes } from "./SensitiveDataScannerRuleAt import { SensitiveDataScannerRuleRelationships } from "./SensitiveDataScannerRuleRelationships"; import { SensitiveDataScannerRuleType } from "./SensitiveDataScannerRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the creation of a rule. - */ +*/ export class SensitiveDataScannerRuleCreate { /** * Attributes of the Sensitive Data Scanner rule. - */ + */ "attributes": SensitiveDataScannerRuleAttributes; /** * Relationships of a scanning rule. - */ + */ "relationships": SensitiveDataScannerRuleRelationships; /** * Sensitive Data Scanner rule type. - */ + */ "type": SensitiveDataScannerRuleType; /** @@ -42,33 +47,59 @@ export class SensitiveDataScannerRuleCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerRuleAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerRuleRelationships", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerRuleAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SensitiveDataScannerRuleType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerRuleRelationships", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerRuleType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreateRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreateRequest.ts index 946bfb11fa9b..bd8752d27392 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleCreateRequest.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; import { SensitiveDataScannerRuleCreate } from "./SensitiveDataScannerRuleCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create rule request. - */ +*/ export class SensitiveDataScannerRuleCreateRequest { /** * Data related to the creation of a rule. - */ + */ "data": SensitiveDataScannerRuleCreate; /** * Meta payload containing information about the API. - */ + */ "meta": SensitiveDataScannerMetaVersionOnly; /** @@ -37,28 +42,54 @@ export class SensitiveDataScannerRuleCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerRuleCreate", - required: true, + "data": { + "baseName": "data", + "type": "SensitiveDataScannerRuleCreate", + "required": true, }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleData.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleData.ts index 68c23b1c415c..2d93cd45d630 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleData.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleData.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerRule } from "./SensitiveDataScannerRule"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Rules included in the group. - */ +*/ export class SensitiveDataScannerRuleData { /** * Rules included in the group. The order is important. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerRuleData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteRequest.ts index 29bbb44acccf..2acc734f9edc 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteRequest.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Delete rule request. - */ +*/ export class SensitiveDataScannerRuleDeleteRequest { /** * Meta payload containing information about the API. - */ + */ "meta": SensitiveDataScannerMetaVersionOnly; /** @@ -32,23 +37,49 @@ export class SensitiveDataScannerRuleDeleteRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleDeleteRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteResponse.ts index 7f55e7872189..0a4ab387854e 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleDeleteResponse.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Delete rule response. - */ +*/ export class SensitiveDataScannerRuleDeleteResponse { /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerRuleDeleteResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleDeleteResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleIncludedItem.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleIncludedItem.ts index a3fb86b9f625..abd921566243 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleIncludedItem.ts @@ -7,27 +7,32 @@ import { SensitiveDataScannerRuleAttributes } from "./SensitiveDataScannerRuleAt import { SensitiveDataScannerRuleRelationships } from "./SensitiveDataScannerRuleRelationships"; import { SensitiveDataScannerRuleType } from "./SensitiveDataScannerRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Scanning Rule included item. - */ +*/ export class SensitiveDataScannerRuleIncludedItem { /** * Attributes of the Sensitive Data Scanner rule. - */ + */ "attributes"?: SensitiveDataScannerRuleAttributes; /** * ID of the rule. - */ + */ "id"?: string; /** * Relationships of a scanning rule. - */ + */ "relationships"?: SensitiveDataScannerRuleRelationships; /** * Sensitive Data Scanner rule type. - */ + */ "type"?: SensitiveDataScannerRuleType; /** @@ -46,34 +51,60 @@ export class SensitiveDataScannerRuleIncludedItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerRuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerRuleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerRuleRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerRuleRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerRuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleIncludedItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleRelationships.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleRelationships.ts index 96afef25997f..cd81b2c83e23 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleRelationships.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleRelationships.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerGroupData } from "./SensitiveDataScannerGroupData"; import { SensitiveDataScannerStandardPatternData } from "./SensitiveDataScannerStandardPatternData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of a scanning rule. - */ +*/ export class SensitiveDataScannerRuleRelationships { /** * A scanning group data. - */ + */ "group"?: SensitiveDataScannerGroupData; /** * A standard pattern. - */ + */ "standardPattern"?: SensitiveDataScannerStandardPatternData; /** @@ -37,26 +42,52 @@ export class SensitiveDataScannerRuleRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - group: { - baseName: "group", - type: "SensitiveDataScannerGroupData", + "group": { + "baseName": "group", + "type": "SensitiveDataScannerGroupData", }, - standardPattern: { - baseName: "standard_pattern", - type: "SensitiveDataScannerStandardPatternData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "standardPattern": { + "baseName": "standard_pattern", + "type": "SensitiveDataScannerStandardPatternData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleResponse.ts index ef14f00bb994..3f0b8b30c7da 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleResponse.ts @@ -7,27 +7,32 @@ import { SensitiveDataScannerRuleAttributes } from "./SensitiveDataScannerRuleAt import { SensitiveDataScannerRuleRelationships } from "./SensitiveDataScannerRuleRelationships"; import { SensitiveDataScannerRuleType } from "./SensitiveDataScannerRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response data related to the creation of a rule. - */ +*/ export class SensitiveDataScannerRuleResponse { /** * Attributes of the Sensitive Data Scanner rule. - */ + */ "attributes"?: SensitiveDataScannerRuleAttributes; /** * ID of the rule. - */ + */ "id"?: string; /** * Relationships of a scanning rule. - */ + */ "relationships"?: SensitiveDataScannerRuleRelationships; /** * Sensitive Data Scanner rule type. - */ + */ "type"?: SensitiveDataScannerRuleType; /** @@ -46,34 +51,60 @@ export class SensitiveDataScannerRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerRuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerRuleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerRuleRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerRuleRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerRuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleType.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleType.ts index f3c45e249ab0..b0ebbb78caf4 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleType.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sensitive Data Scanner rule type. - */ +*/ -export type SensitiveDataScannerRuleType = - | typeof SENSITIVE_DATA_SCANNER_RULE - | UnparsedObject; -export const SENSITIVE_DATA_SCANNER_RULE = "sensitive_data_scanner_rule"; +export type SensitiveDataScannerRuleType = typeof SENSITIVE_DATA_SCANNER_RULE | UnparsedObject; +export const SENSITIVE_DATA_SCANNER_RULE = 'sensitive_data_scanner_rule'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdate.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdate.ts index 7f195c9ae89c..fe460d343319 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdate.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdate.ts @@ -7,27 +7,32 @@ import { SensitiveDataScannerRuleAttributes } from "./SensitiveDataScannerRuleAt import { SensitiveDataScannerRuleRelationships } from "./SensitiveDataScannerRuleRelationships"; import { SensitiveDataScannerRuleType } from "./SensitiveDataScannerRuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the update of a rule. - */ +*/ export class SensitiveDataScannerRuleUpdate { /** * Attributes of the Sensitive Data Scanner rule. - */ + */ "attributes"?: SensitiveDataScannerRuleAttributes; /** * ID of the rule. - */ + */ "id"?: string; /** * Relationships of a scanning rule. - */ + */ "relationships"?: SensitiveDataScannerRuleRelationships; /** * Sensitive Data Scanner rule type. - */ + */ "type"?: SensitiveDataScannerRuleType; /** @@ -46,34 +51,60 @@ export class SensitiveDataScannerRuleUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerRuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerRuleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "SensitiveDataScannerRuleRelationships", + "relationships": { + "baseName": "relationships", + "type": "SensitiveDataScannerRuleRelationships", }, - type: { - baseName: "type", - type: "SensitiveDataScannerRuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerRuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateRequest.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateRequest.ts index 5b2e3b37f38d..a1c40c584c03 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateRequest.ts @@ -6,19 +6,24 @@ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; import { SensitiveDataScannerRuleUpdate } from "./SensitiveDataScannerRuleUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update rule request. - */ +*/ export class SensitiveDataScannerRuleUpdateRequest { /** * Data related to the update of a rule. - */ + */ "data": SensitiveDataScannerRuleUpdate; /** * Meta payload containing information about the API. - */ + */ "meta": SensitiveDataScannerMetaVersionOnly; /** @@ -37,28 +42,54 @@ export class SensitiveDataScannerRuleUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerRuleUpdate", - required: true, + "data": { + "baseName": "data", + "type": "SensitiveDataScannerRuleUpdate", + "required": true, }, - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateResponse.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateResponse.ts index 250d2ecd2187..e7766b87fc32 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateResponse.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleUpdateResponse.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerMetaVersionOnly } from "./SensitiveDataScannerMetaVersionOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update rule response. - */ +*/ export class SensitiveDataScannerRuleUpdateResponse { /** * Meta payload containing information about the API. - */ + */ "meta"?: SensitiveDataScannerMetaVersionOnly; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerRuleUpdateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "SensitiveDataScannerMetaVersionOnly", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SensitiveDataScannerMetaVersionOnly", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerRuleUpdateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPattern.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPattern.ts index f483862fd9ee..d13ab6c3f1d0 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPattern.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPattern.ts @@ -5,19 +5,24 @@ */ import { SensitiveDataScannerStandardPatternType } from "./SensitiveDataScannerStandardPatternType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data containing the standard pattern id. - */ +*/ export class SensitiveDataScannerStandardPattern { /** * ID of the standard pattern. - */ + */ "id"?: string; /** * Sensitive Data Scanner standard pattern type. - */ + */ "type"?: SensitiveDataScannerStandardPatternType; /** @@ -36,26 +41,52 @@ export class SensitiveDataScannerStandardPattern { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - type: { - baseName: "type", - type: "SensitiveDataScannerStandardPatternType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerStandardPatternType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerStandardPattern.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.ts index 5bbadb7f1b49..788fa4bae92a 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.ts @@ -4,35 +4,40 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the Sensitive Data Scanner standard pattern. - */ +*/ export class SensitiveDataScannerStandardPatternAttributes { /** * Description of the standard pattern. - */ + */ "description"?: string; /** * List of included keywords. - */ + */ "includedKeywords"?: Array; /** * Name of the standard pattern. - */ + */ "name"?: string; /** * (Deprecated) Regex to match, optionally documented for older standard rules. Refer to the `description` field to understand what the rule does. - */ + */ "pattern"?: string; /** * Integer from 1 (high) to 5 (low) indicating standard pattern issue severity. - */ + */ "priority"?: number; /** * List of tags. - */ + */ "tags"?: Array; /** @@ -51,43 +56,69 @@ export class SensitiveDataScannerStandardPatternAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - includedKeywords: { - baseName: "included_keywords", - type: "Array", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "includedKeywords": { + "baseName": "included_keywords", + "type": "Array", }, - pattern: { - baseName: "pattern", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - priority: { - baseName: "priority", - type: "number", - format: "int64", + "pattern": { + "baseName": "pattern", + "type": "string", }, - tags: { - baseName: "tags", - type: "Array", + "priority": { + "baseName": "priority", + "type": "number", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerStandardPatternAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternData.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternData.ts index 37a528dd7325..398e503c0765 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternData.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternData.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerStandardPattern } from "./SensitiveDataScannerStandardPattern"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A standard pattern. - */ +*/ export class SensitiveDataScannerStandardPatternData { /** * Data containing the standard pattern id. - */ + */ "data"?: SensitiveDataScannerStandardPattern; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerStandardPatternData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SensitiveDataScannerStandardPattern", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SensitiveDataScannerStandardPattern", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerStandardPatternData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternType.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternType.ts index 8ea0651cb873..741e6775c4fd 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternType.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternType.ts @@ -4,14 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sensitive Data Scanner standard pattern type. - */ +*/ -export type SensitiveDataScannerStandardPatternType = - | typeof SENSITIVE_DATA_SCANNER_STANDARD_PATTERN - | UnparsedObject; -export const SENSITIVE_DATA_SCANNER_STANDARD_PATTERN = - "sensitive_data_scanner_standard_pattern"; +export type SensitiveDataScannerStandardPatternType = typeof SENSITIVE_DATA_SCANNER_STANDARD_PATTERN | UnparsedObject; +export const SENSITIVE_DATA_SCANNER_STANDARD_PATTERN = 'sensitive_data_scanner_standard_pattern'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseData.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseData.ts index 55153db68bc2..2640360cad4a 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseData.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseData.ts @@ -5,15 +5,20 @@ */ import { SensitiveDataScannerStandardPatternsResponseItem } from "./SensitiveDataScannerStandardPatternsResponseItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * List Standard patterns response data. - */ +*/ export class SensitiveDataScannerStandardPatternsResponseData { /** * List Standard patterns response. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class SensitiveDataScannerStandardPatternsResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerStandardPatternsResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseItem.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseItem.ts index 584199814ced..65808385921f 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseItem.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternsResponseItem.ts @@ -6,23 +6,28 @@ import { SensitiveDataScannerStandardPatternAttributes } from "./SensitiveDataScannerStandardPatternAttributes"; import { SensitiveDataScannerStandardPatternType } from "./SensitiveDataScannerStandardPatternType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Standard pattern item. - */ +*/ export class SensitiveDataScannerStandardPatternsResponseItem { /** * Attributes of the Sensitive Data Scanner standard pattern. - */ + */ "attributes"?: SensitiveDataScannerStandardPatternAttributes; /** * ID of the standard pattern. - */ + */ "id"?: string; /** * Sensitive Data Scanner standard pattern type. - */ + */ "type"?: SensitiveDataScannerStandardPatternType; /** @@ -41,30 +46,56 @@ export class SensitiveDataScannerStandardPatternsResponseItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SensitiveDataScannerStandardPatternAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SensitiveDataScannerStandardPatternAttributes", }, - type: { - baseName: "type", - type: "SensitiveDataScannerStandardPatternType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerStandardPatternType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerStandardPatternsResponseItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacement.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacement.ts index 1db87f65ab17..d79ebd85482a 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacement.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacement.ts @@ -5,20 +5,25 @@ */ import { SensitiveDataScannerTextReplacementType } from "./SensitiveDataScannerTextReplacementType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object describing how the scanned event will be replaced. - */ +*/ export class SensitiveDataScannerTextReplacement { /** * Required if type == 'partial_replacement_from_beginning' * or 'partial_replacement_from_end'. It must be > 0. - */ + */ "numberOfChars"?: number; /** * Required if type == 'replacement_string'. - */ + */ "replacementString"?: string; /** * Type of the replacement text. None means no replacement. @@ -27,7 +32,7 @@ export class SensitiveDataScannerTextReplacement { * allows a user to partially replace the data from the beginning, and * partial_replacement_from_end on the other hand, allows to replace data from * the end. - */ + */ "type"?: SensitiveDataScannerTextReplacementType; /** @@ -46,31 +51,57 @@ export class SensitiveDataScannerTextReplacement { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - numberOfChars: { - baseName: "number_of_chars", - type: "number", - format: "int64", - }, - replacementString: { - baseName: "replacement_string", - type: "string", + "numberOfChars": { + "baseName": "number_of_chars", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "SensitiveDataScannerTextReplacementType", + "replacementString": { + "baseName": "replacement_string", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SensitiveDataScannerTextReplacementType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SensitiveDataScannerTextReplacement.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacementType.ts b/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacementType.ts index 985c3519845f..5409a6e2b49e 100644 --- a/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacementType.ts +++ b/packages/datadog-api-client-v2/models/SensitiveDataScannerTextReplacementType.ts @@ -4,8 +4,13 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the replacement text. None means no replacement. * hash means the data will be stubbed. replacement_string means that @@ -13,18 +18,11 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; * allows a user to partially replace the data from the beginning, and * partial_replacement_from_end on the other hand, allows to replace data from * the end. - */ +*/ -export type SensitiveDataScannerTextReplacementType = - | typeof NONE - | typeof HASH - | typeof REPLACEMENT_STRING - | typeof PARTIAL_REPLACEMENT_FROM_BEGINNING - | typeof PARTIAL_REPLACEMENT_FROM_END - | UnparsedObject; -export const NONE = "none"; -export const HASH = "hash"; -export const REPLACEMENT_STRING = "replacement_string"; -export const PARTIAL_REPLACEMENT_FROM_BEGINNING = - "partial_replacement_from_beginning"; -export const PARTIAL_REPLACEMENT_FROM_END = "partial_replacement_from_end"; +export type SensitiveDataScannerTextReplacementType = typeof NONE| typeof HASH| typeof REPLACEMENT_STRING| typeof PARTIAL_REPLACEMENT_FROM_BEGINNING| typeof PARTIAL_REPLACEMENT_FROM_END | UnparsedObject; +export const NONE = 'none'; +export const HASH = 'hash'; +export const REPLACEMENT_STRING = 'replacement_string'; +export const PARTIAL_REPLACEMENT_FROM_BEGINNING = 'partial_replacement_from_beginning'; +export const PARTIAL_REPLACEMENT_FROM_END = 'partial_replacement_from_end'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceAccountCreateAttributes.ts b/packages/datadog-api-client-v2/models/ServiceAccountCreateAttributes.ts index b203549ec645..6f00ceae06a1 100644 --- a/packages/datadog-api-client-v2/models/ServiceAccountCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/ServiceAccountCreateAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the created user. - */ +*/ export class ServiceAccountCreateAttributes { /** * The email of the user. - */ + */ "email": string; /** * The name of the user. - */ + */ "name"?: string; /** * Whether the user is a service account. Must be true. - */ + */ "serviceAccount": boolean; /** * The title of the user. - */ + */ "title"?: string; /** @@ -43,36 +48,62 @@ export class ServiceAccountCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - required: true, + "email": { + "baseName": "email", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - serviceAccount: { - baseName: "service_account", - type: "boolean", - required: true, + "serviceAccount": { + "baseName": "service_account", + "type": "boolean", + "required": true, }, - title: { - baseName: "title", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceAccountCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceAccountCreateData.ts b/packages/datadog-api-client-v2/models/ServiceAccountCreateData.ts index 2720a15a50fd..6ee813b1eda2 100644 --- a/packages/datadog-api-client-v2/models/ServiceAccountCreateData.ts +++ b/packages/datadog-api-client-v2/models/ServiceAccountCreateData.ts @@ -7,23 +7,28 @@ import { ServiceAccountCreateAttributes } from "./ServiceAccountCreateAttributes import { UserRelationships } from "./UserRelationships"; import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to create a service account User. - */ +*/ export class ServiceAccountCreateData { /** * Attributes of the created user. - */ + */ "attributes": ServiceAccountCreateAttributes; /** * Relationships of the user object. - */ + */ "relationships"?: UserRelationships; /** * Users resource type. - */ + */ "type": UsersType; /** @@ -42,32 +47,58 @@ export class ServiceAccountCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ServiceAccountCreateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "UserRelationships", + "attributes": { + "baseName": "attributes", + "type": "ServiceAccountCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "UsersType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "UserRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceAccountCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceAccountCreateRequest.ts b/packages/datadog-api-client-v2/models/ServiceAccountCreateRequest.ts index b884e9afffbe..898cc51526bc 100644 --- a/packages/datadog-api-client-v2/models/ServiceAccountCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ServiceAccountCreateRequest.ts @@ -5,15 +5,20 @@ */ import { ServiceAccountCreateData } from "./ServiceAccountCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a service account. - */ +*/ export class ServiceAccountCreateRequest { /** * Object to create a service account User. - */ + */ "data": ServiceAccountCreateData; /** @@ -32,23 +37,49 @@ export class ServiceAccountCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ServiceAccountCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ServiceAccountCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceAccountCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.ts index 3b43f16cf164..97924f007db6 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.ts @@ -5,15 +5,20 @@ */ import { ServiceDefinitionData } from "./ServiceDefinitionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create service definitions response. - */ +*/ export class ServiceDefinitionCreateResponse { /** * Create service definitions response payload. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ServiceDefinitionCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionData.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionData.ts index 364daae9f66c..07d6bd5debc6 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionData.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionData.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionDataAttributes } from "./ServiceDefinitionDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service definition data. - */ +*/ export class ServiceDefinitionData { /** * Service definition attributes. - */ + */ "attributes"?: ServiceDefinitionDataAttributes; /** * Service definition id. - */ + */ "id"?: string; /** * Service definition type. - */ + */ "type"?: string; /** @@ -40,30 +45,56 @@ export class ServiceDefinitionData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "ServiceDefinitionDataAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "ServiceDefinitionDataAttributes", }, - type: { - baseName: "type", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.ts index af051e4b074c..390a4c719cad 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.ts @@ -6,19 +6,24 @@ import { ServiceDefinitionMeta } from "./ServiceDefinitionMeta"; import { ServiceDefinitionSchema } from "./ServiceDefinitionSchema"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service definition attributes. - */ +*/ export class ServiceDefinitionDataAttributes { /** * Metadata about a service definition. - */ + */ "meta"?: ServiceDefinitionMeta; /** * Service definition schema. - */ + */ "schema"?: ServiceDefinitionSchema; /** @@ -37,26 +42,52 @@ export class ServiceDefinitionDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "ServiceDefinitionMeta", + "meta": { + "baseName": "meta", + "type": "ServiceDefinitionMeta", }, - schema: { - baseName: "schema", - type: "ServiceDefinitionSchema", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "schema": { + "baseName": "schema", + "type": "ServiceDefinitionSchema", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.ts index 5d72f5b41c23..d720b5e80c40 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.ts @@ -5,15 +5,20 @@ */ import { ServiceDefinitionData } from "./ServiceDefinitionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Get service definition response. - */ +*/ export class ServiceDefinitionGetResponse { /** * Service definition data. - */ + */ "data"?: ServiceDefinitionData; /** @@ -32,22 +37,48 @@ export class ServiceDefinitionGetResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ServiceDefinitionData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ServiceDefinitionData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionGetResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.ts index f27bccbdf0e6..3fa8d4b32407 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.ts @@ -5,39 +5,44 @@ */ import { ServiceDefinitionMetaWarnings } from "./ServiceDefinitionMetaWarnings"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata about a service definition. - */ +*/ export class ServiceDefinitionMeta { /** * GitHub HTML URL. - */ + */ "githubHtmlUrl"?: string; /** * Ingestion schema version. - */ + */ "ingestedSchemaVersion"?: string; /** * Ingestion source of the service definition. - */ + */ "ingestionSource"?: string; /** * Last modified time of the service definition. - */ + */ "lastModifiedTime"?: string; /** * User defined origin of the service definition. - */ + */ "origin"?: string; /** * User defined origin's detail of the service definition. - */ + */ "originDetail"?: string; /** * A list of schema validation warnings. - */ + */ "warnings"?: Array; /** @@ -56,46 +61,72 @@ export class ServiceDefinitionMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - githubHtmlUrl: { - baseName: "github-html-url", - type: "string", - }, - ingestedSchemaVersion: { - baseName: "ingested-schema-version", - type: "string", + "githubHtmlUrl": { + "baseName": "github-html-url", + "type": "string", }, - ingestionSource: { - baseName: "ingestion-source", - type: "string", + "ingestedSchemaVersion": { + "baseName": "ingested-schema-version", + "type": "string", }, - lastModifiedTime: { - baseName: "last-modified-time", - type: "string", + "ingestionSource": { + "baseName": "ingestion-source", + "type": "string", }, - origin: { - baseName: "origin", - type: "string", + "lastModifiedTime": { + "baseName": "last-modified-time", + "type": "string", }, - originDetail: { - baseName: "origin-detail", - type: "string", + "origin": { + "baseName": "origin", + "type": "string", }, - warnings: { - baseName: "warnings", - type: "Array", + "originDetail": { + "baseName": "origin-detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionMetaWarnings.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionMetaWarnings.ts index 88832734d07d..e42ba6c6a1f4 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionMetaWarnings.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionMetaWarnings.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema validation warnings. - */ +*/ export class ServiceDefinitionMetaWarnings { /** * The warning instance location. - */ + */ "instanceLocation"?: string; /** * The warning keyword location. - */ + */ "keywordLocation"?: string; /** * The warning message. - */ + */ "message"?: string; /** @@ -39,30 +44,56 @@ export class ServiceDefinitionMetaWarnings { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - instanceLocation: { - baseName: "instance-location", - type: "string", - }, - keywordLocation: { - baseName: "keyword-location", - type: "string", + "instanceLocation": { + "baseName": "instance-location", + "type": "string", }, - message: { - baseName: "message", - type: "string", + "keywordLocation": { + "baseName": "keyword-location", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "message": { + "baseName": "message", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionMetaWarnings.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.ts index 4baf3f0d11e1..fc20eaa875af 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.ts @@ -8,15 +8,15 @@ import { ServiceDefinitionV2 } from "./ServiceDefinitionV2"; import { ServiceDefinitionV2Dot1 } from "./ServiceDefinitionV2Dot1"; import { ServiceDefinitionV2Dot2 } from "./ServiceDefinitionV2Dot2"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Service definition schema. - */ +*/ -export type ServiceDefinitionSchema = - | ServiceDefinitionV1 - | ServiceDefinitionV2 - | ServiceDefinitionV2Dot1 - | ServiceDefinitionV2Dot2 - | UnparsedObject; +export type ServiceDefinitionSchema = ServiceDefinitionV1 | ServiceDefinitionV2 | ServiceDefinitionV2Dot1 | ServiceDefinitionV2Dot2 | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.ts index b7a792486a87..f3c52c708edd 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.ts @@ -4,19 +4,19 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schema versions - */ +*/ -export type ServiceDefinitionSchemaVersions = - | typeof V1 - | typeof V2 - | typeof V2_1 - | typeof V2_2 - | UnparsedObject; -export const V1 = "v1"; -export const V2 = "v2"; -export const V2_1 = "v2.1"; -export const V2_2 = "v2.2"; +export type ServiceDefinitionSchemaVersions = typeof V1| typeof V2| typeof V2_1| typeof V2_2 | UnparsedObject; +export const V1 = 'v1'; +export const V2 = 'v2'; +export const V2_1 = 'v2.1'; +export const V2_2 = 'v2.2'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1.ts index 2d94404bcd55..4d1298702b11 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1.ts @@ -10,43 +10,48 @@ import { ServiceDefinitionV1Org } from "./ServiceDefinitionV1Org"; import { ServiceDefinitionV1Resource } from "./ServiceDefinitionV1Resource"; import { ServiceDefinitionV1Version } from "./ServiceDefinitionV1Version"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Deprecated - Service definition V1 for providing additional service metadata and integrations. - */ +*/ export class ServiceDefinitionV1 { /** * Contact information about the service. - */ + */ "contact"?: ServiceDefinitionV1Contact; /** * Extensions to V1 schema. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * A list of external links related to the services. - */ + */ "externalResources"?: Array; /** * Basic information about a service. - */ + */ "info": ServiceDefinitionV1Info; /** * Third party integrations that Datadog supports. - */ + */ "integrations"?: ServiceDefinitionV1Integrations; /** * Org related information about the service. - */ + */ "org"?: ServiceDefinitionV1Org; /** * Schema version being used. - */ + */ "schemaVersion": ServiceDefinitionV1Version; /** * A set of custom tags. - */ + */ "tags"?: Array; /** @@ -65,52 +70,78 @@ export class ServiceDefinitionV1 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "ServiceDefinitionV1Contact", + "contact": { + "baseName": "contact", + "type": "ServiceDefinitionV1Contact", }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - externalResources: { - baseName: "external-resources", - type: "Array", + "externalResources": { + "baseName": "external-resources", + "type": "Array", }, - info: { - baseName: "info", - type: "ServiceDefinitionV1Info", - required: true, + "info": { + "baseName": "info", + "type": "ServiceDefinitionV1Info", + "required": true, }, - integrations: { - baseName: "integrations", - type: "ServiceDefinitionV1Integrations", + "integrations": { + "baseName": "integrations", + "type": "ServiceDefinitionV1Integrations", }, - org: { - baseName: "org", - type: "ServiceDefinitionV1Org", + "org": { + "baseName": "org", + "type": "ServiceDefinitionV1Org", }, - schemaVersion: { - baseName: "schema-version", - type: "ServiceDefinitionV1Version", - required: true, + "schemaVersion": { + "baseName": "schema-version", + "type": "ServiceDefinitionV1Version", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV1.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.ts index 67ea68691b7a..0f8940481143 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Contact information about the service. - */ +*/ export class ServiceDefinitionV1Contact { /** * Service owner’s email. - */ + */ "email"?: string; /** * Service owner’s Slack channel. - */ + */ "slack"?: string; /** @@ -35,26 +40,52 @@ export class ServiceDefinitionV1Contact { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - slack: { - baseName: "slack", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "slack": { + "baseName": "slack", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV1Contact.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.ts index 874a87a6c96a..61e9957dbc02 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Basic information about a service. - */ +*/ export class ServiceDefinitionV1Info { /** * Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog. - */ + */ "ddService": string; /** * A short description of the service. - */ + */ "description"?: string; /** * A friendly name of the service. - */ + */ "displayName"?: string; /** * Service tier. - */ + */ "serviceTier"?: string; /** @@ -43,35 +48,61 @@ export class ServiceDefinitionV1Info { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - ddService: { - baseName: "dd-service", - type: "string", - required: true, + "ddService": { + "baseName": "dd-service", + "type": "string", + "required": true, }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - displayName: { - baseName: "display-name", - type: "string", + "displayName": { + "baseName": "display-name", + "type": "string", }, - serviceTier: { - baseName: "service-tier", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceTier": { + "baseName": "service-tier", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV1Info.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.ts index 6351b26e3f6a..01af2b68b86a 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Third party integrations that Datadog supports. - */ +*/ export class ServiceDefinitionV1Integrations { /** * PagerDuty service URL for the service. - */ + */ "pagerduty"?: string; /** @@ -31,22 +36,48 @@ export class ServiceDefinitionV1Integrations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagerduty: { - baseName: "pagerduty", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagerduty": { + "baseName": "pagerduty", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV1Integrations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.ts index eef406867603..d197e7724143 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Org related information about the service. - */ +*/ export class ServiceDefinitionV1Org { /** * App feature this service supports. - */ + */ "application"?: string; /** * Team that owns the service. - */ + */ "team"?: string; /** @@ -35,26 +40,52 @@ export class ServiceDefinitionV1Org { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - application: { - baseName: "application", - type: "string", + "application": { + "baseName": "application", + "type": "string", }, - team: { - baseName: "team", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "team": { + "baseName": "team", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV1Org.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.ts index fa3ed749df5c..3097bdeac845 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV1ResourceType } from "./ServiceDefinitionV1ResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service's external links. - */ +*/ export class ServiceDefinitionV1Resource { /** * Link name. - */ + */ "name": string; /** * Link type. - */ + */ "type": ServiceDefinitionV1ResourceType; /** * Link URL. - */ + */ "url": string; /** @@ -40,33 +45,59 @@ export class ServiceDefinitionV1Resource { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "ServiceDefinitionV1ResourceType", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "ServiceDefinitionV1ResourceType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV1Resource.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.ts index 8072c6ea673c..74f0d73c26c7 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.ts @@ -4,29 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Link type. - */ +*/ -export type ServiceDefinitionV1ResourceType = - | typeof DOC - | typeof WIKI - | typeof RUNBOOK - | typeof URL - | typeof REPO - | typeof DASHBOARD - | typeof ONCALL - | typeof CODE - | typeof LINK - | UnparsedObject; -export const DOC = "doc"; -export const WIKI = "wiki"; -export const RUNBOOK = "runbook"; -export const URL = "url"; -export const REPO = "repo"; -export const DASHBOARD = "dashboard"; -export const ONCALL = "oncall"; -export const CODE = "code"; -export const LINK = "link"; +export type ServiceDefinitionV1ResourceType = typeof DOC| typeof WIKI| typeof RUNBOOK| typeof URL| typeof REPO| typeof DASHBOARD| typeof ONCALL| typeof CODE| typeof LINK | UnparsedObject; +export const DOC = 'doc'; +export const WIKI = 'wiki'; +export const RUNBOOK = 'runbook'; +export const URL = 'url'; +export const REPO = 'repo'; +export const DASHBOARD = 'dashboard'; +export const ONCALL = 'oncall'; +export const CODE = 'code'; +export const LINK = 'link'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.ts index c1ac1a0b6ca6..4d029947f6de 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schema version being used. - */ +*/ export type ServiceDefinitionV1Version = typeof V1 | UnparsedObject; -export const V1 = "v1"; +export const V1 = 'v1'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2.ts index 55cdfc214892..1063b344da94 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2.ts @@ -10,55 +10,60 @@ import { ServiceDefinitionV2Link } from "./ServiceDefinitionV2Link"; import { ServiceDefinitionV2Repo } from "./ServiceDefinitionV2Repo"; import { ServiceDefinitionV2Version } from "./ServiceDefinitionV2Version"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service definition V2 for providing service metadata and integrations. - */ +*/ export class ServiceDefinitionV2 { /** * A list of contacts related to the services. - */ + */ "contacts"?: Array; /** * Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog. - */ + */ "ddService": string; /** * Experimental feature. A Team handle that matches a Team in the Datadog Teams product. - */ + */ "ddTeam"?: string; /** * A list of documentation related to the services. - */ + */ "docs"?: Array; /** * Extensions to V2 schema. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * Third party integrations that Datadog supports. - */ + */ "integrations"?: ServiceDefinitionV2Integrations; /** * A list of links related to the services. - */ + */ "links"?: Array; /** * A list of code repositories related to the services. - */ + */ "repos"?: Array; /** * Schema version being used. - */ + */ "schemaVersion": ServiceDefinitionV2Version; /** * A set of custom tags. - */ + */ "tags"?: Array; /** * Team that owns the service. - */ + */ "team"?: string; /** @@ -77,64 +82,90 @@ export class ServiceDefinitionV2 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contacts: { - baseName: "contacts", - type: "Array", - }, - ddService: { - baseName: "dd-service", - type: "string", - required: true, + "contacts": { + "baseName": "contacts", + "type": "Array", }, - ddTeam: { - baseName: "dd-team", - type: "string", + "ddService": { + "baseName": "dd-service", + "type": "string", + "required": true, }, - docs: { - baseName: "docs", - type: "Array", + "ddTeam": { + "baseName": "dd-team", + "type": "string", }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "docs": { + "baseName": "docs", + "type": "Array", }, - integrations: { - baseName: "integrations", - type: "ServiceDefinitionV2Integrations", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - links: { - baseName: "links", - type: "Array", + "integrations": { + "baseName": "integrations", + "type": "ServiceDefinitionV2Integrations", }, - repos: { - baseName: "repos", - type: "Array", + "links": { + "baseName": "links", + "type": "Array", }, - schemaVersion: { - baseName: "schema-version", - type: "ServiceDefinitionV2Version", - required: true, + "repos": { + "baseName": "repos", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "schemaVersion": { + "baseName": "schema-version", + "type": "ServiceDefinitionV2Version", + "required": true, }, - team: { - baseName: "team", - type: "string", + "tags": { + "baseName": "tags", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "team": { + "baseName": "team", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.ts index 01ba148bd910..0475d82f57be 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.ts @@ -7,14 +7,15 @@ import { ServiceDefinitionV2Email } from "./ServiceDefinitionV2Email"; import { ServiceDefinitionV2MSTeams } from "./ServiceDefinitionV2MSTeams"; import { ServiceDefinitionV2Slack } from "./ServiceDefinitionV2Slack"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Service owner's contacts information. - */ +*/ -export type ServiceDefinitionV2Contact = - | ServiceDefinitionV2Email - | ServiceDefinitionV2Slack - | ServiceDefinitionV2MSTeams - | UnparsedObject; +export type ServiceDefinitionV2Contact = ServiceDefinitionV2Email | ServiceDefinitionV2Slack | ServiceDefinitionV2MSTeams | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.ts index ecc0fa9d41f2..731da16cb4f2 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service documents. - */ +*/ export class ServiceDefinitionV2Doc { /** * Document name. - */ + */ "name": string; /** * Document provider. - */ + */ "provider"?: string; /** * Document URL. - */ + */ "url": string; /** @@ -39,32 +44,58 @@ export class ServiceDefinitionV2Doc { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - provider: { - baseName: "provider", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, + "provider": { + "baseName": "provider", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Doc.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.ts index 580ee19b2665..e19789054b05 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.ts @@ -8,59 +8,64 @@ import { ServiceDefinitionV2Dot1Integrations } from "./ServiceDefinitionV2Dot1In import { ServiceDefinitionV2Dot1Link } from "./ServiceDefinitionV2Dot1Link"; import { ServiceDefinitionV2Dot1Version } from "./ServiceDefinitionV2Dot1Version"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service definition v2.1 for providing service metadata and integrations. - */ +*/ export class ServiceDefinitionV2Dot1 { /** * Identifier for a group of related services serving a product feature, which the service is a part of. - */ + */ "application"?: string; /** * A list of contacts related to the services. - */ + */ "contacts"?: Array; /** * Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog. - */ + */ "ddService": string; /** * A short description of the service. - */ + */ "description"?: string; /** * Extensions to v2.1 schema. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * Third party integrations that Datadog supports. - */ + */ "integrations"?: ServiceDefinitionV2Dot1Integrations; /** * The current life cycle phase of the service. - */ + */ "lifecycle"?: string; /** * A list of links related to the services. - */ + */ "links"?: Array; /** * Schema version being used. - */ + */ "schemaVersion": ServiceDefinitionV2Dot1Version; /** * A set of custom tags. - */ + */ "tags"?: Array; /** * Team that owns the service. It is used to locate a team defined in Datadog Teams if it exists. - */ + */ "team"?: string; /** * Importance of the service. - */ + */ "tier"?: string; /** @@ -79,68 +84,94 @@ export class ServiceDefinitionV2Dot1 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - application: { - baseName: "application", - type: "string", + "application": { + "baseName": "application", + "type": "string", }, - contacts: { - baseName: "contacts", - type: "Array", + "contacts": { + "baseName": "contacts", + "type": "Array", }, - ddService: { - baseName: "dd-service", - type: "string", - required: true, + "ddService": { + "baseName": "dd-service", + "type": "string", + "required": true, }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", }, - integrations: { - baseName: "integrations", - type: "ServiceDefinitionV2Dot1Integrations", + "integrations": { + "baseName": "integrations", + "type": "ServiceDefinitionV2Dot1Integrations", }, - lifecycle: { - baseName: "lifecycle", - type: "string", + "lifecycle": { + "baseName": "lifecycle", + "type": "string", }, - links: { - baseName: "links", - type: "Array", + "links": { + "baseName": "links", + "type": "Array", }, - schemaVersion: { - baseName: "schema-version", - type: "ServiceDefinitionV2Dot1Version", - required: true, + "schemaVersion": { + "baseName": "schema-version", + "type": "ServiceDefinitionV2Dot1Version", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - team: { - baseName: "team", - type: "string", + "team": { + "baseName": "team", + "type": "string", }, - tier: { - baseName: "tier", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tier": { + "baseName": "tier", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.ts index 27476306657a..2649c3e67fba 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.ts @@ -7,14 +7,15 @@ import { ServiceDefinitionV2Dot1Email } from "./ServiceDefinitionV2Dot1Email"; import { ServiceDefinitionV2Dot1MSTeams } from "./ServiceDefinitionV2Dot1MSTeams"; import { ServiceDefinitionV2Dot1Slack } from "./ServiceDefinitionV2Dot1Slack"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Service owner's contacts information. - */ +*/ -export type ServiceDefinitionV2Dot1Contact = - | ServiceDefinitionV2Dot1Email - | ServiceDefinitionV2Dot1Slack - | ServiceDefinitionV2Dot1MSTeams - | UnparsedObject; +export type ServiceDefinitionV2Dot1Contact = ServiceDefinitionV2Dot1Email | ServiceDefinitionV2Dot1Slack | ServiceDefinitionV2Dot1MSTeams | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.ts index 0422710d7ae1..5072b0fefb15 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2Dot1EmailType } from "./ServiceDefinitionV2Dot1EmailType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's email. - */ +*/ export class ServiceDefinitionV2Dot1Email { /** * Contact value. - */ + */ "contact": string; /** * Contact email. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": ServiceDefinitionV2Dot1EmailType; /** @@ -40,32 +45,58 @@ export class ServiceDefinitionV2Dot1Email { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ServiceDefinitionV2Dot1EmailType", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2Dot1EmailType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1Email.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.ts index 5a9aefdcdcff..e5ca52a2b6c4 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contact type. - */ +*/ export type ServiceDefinitionV2Dot1EmailType = typeof EMAIL | UnparsedObject; -export const EMAIL = "email"; +export const EMAIL = 'email'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.ts index 4311c31f5793..2e65f65bc98e 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.ts @@ -6,19 +6,24 @@ import { ServiceDefinitionV2Dot1Opsgenie } from "./ServiceDefinitionV2Dot1Opsgenie"; import { ServiceDefinitionV2Dot1Pagerduty } from "./ServiceDefinitionV2Dot1Pagerduty"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Third party integrations that Datadog supports. - */ +*/ export class ServiceDefinitionV2Dot1Integrations { /** * Opsgenie integration for the service. - */ + */ "opsgenie"?: ServiceDefinitionV2Dot1Opsgenie; /** * PagerDuty integration for the service. - */ + */ "pagerduty"?: ServiceDefinitionV2Dot1Pagerduty; /** @@ -37,26 +42,52 @@ export class ServiceDefinitionV2Dot1Integrations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - opsgenie: { - baseName: "opsgenie", - type: "ServiceDefinitionV2Dot1Opsgenie", + "opsgenie": { + "baseName": "opsgenie", + "type": "ServiceDefinitionV2Dot1Opsgenie", }, - pagerduty: { - baseName: "pagerduty", - type: "ServiceDefinitionV2Dot1Pagerduty", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagerduty": { + "baseName": "pagerduty", + "type": "ServiceDefinitionV2Dot1Pagerduty", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1Integrations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.ts index 901866472e40..355b847b0769 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.ts @@ -5,27 +5,32 @@ */ import { ServiceDefinitionV2Dot1LinkType } from "./ServiceDefinitionV2Dot1LinkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service's external links. - */ +*/ export class ServiceDefinitionV2Dot1Link { /** * Link name. - */ + */ "name": string; /** * Link provider. - */ + */ "provider"?: string; /** * Link type. - */ + */ "type": ServiceDefinitionV2Dot1LinkType; /** * Link URL. - */ + */ "url": string; /** @@ -44,37 +49,63 @@ export class ServiceDefinitionV2Dot1Link { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - provider: { - baseName: "provider", - type: "string", + "provider": { + "baseName": "provider", + "type": "string", }, - type: { - baseName: "type", - type: "ServiceDefinitionV2Dot1LinkType", - required: true, + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2Dot1LinkType", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1Link.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.ts index 4338d34780ec..0995e7a692c1 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Link type. - */ +*/ -export type ServiceDefinitionV2Dot1LinkType = - | typeof DOC - | typeof REPO - | typeof RUNBOOK - | typeof DASHBOARD - | typeof OTHER - | UnparsedObject; -export const DOC = "doc"; -export const REPO = "repo"; -export const RUNBOOK = "runbook"; -export const DASHBOARD = "dashboard"; -export const OTHER = "other"; +export type ServiceDefinitionV2Dot1LinkType = typeof DOC| typeof REPO| typeof RUNBOOK| typeof DASHBOARD| typeof OTHER | UnparsedObject; +export const DOC = 'doc'; +export const REPO = 'repo'; +export const RUNBOOK = 'runbook'; +export const DASHBOARD = 'dashboard'; +export const OTHER = 'other'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.ts index 568ca1b14e7d..5f288b73e775 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2Dot1MSTeamsType } from "./ServiceDefinitionV2Dot1MSTeamsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's Microsoft Teams. - */ +*/ export class ServiceDefinitionV2Dot1MSTeams { /** * Contact value. - */ + */ "contact": string; /** * Contact Microsoft Teams. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": ServiceDefinitionV2Dot1MSTeamsType; /** @@ -40,32 +45,58 @@ export class ServiceDefinitionV2Dot1MSTeams { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ServiceDefinitionV2Dot1MSTeamsType", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2Dot1MSTeamsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1MSTeams.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.ts index ef045572a719..bb0eccf20af8 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contact type. - */ +*/ -export type ServiceDefinitionV2Dot1MSTeamsType = - | typeof MICROSOFT_TEAMS - | UnparsedObject; -export const MICROSOFT_TEAMS = "microsoft-teams"; +export type ServiceDefinitionV2Dot1MSTeamsType = typeof MICROSOFT_TEAMS | UnparsedObject; +export const MICROSOFT_TEAMS = 'microsoft-teams'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.ts index 95ee168c9d00..be0c97e87894 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.ts @@ -5,19 +5,24 @@ */ import { ServiceDefinitionV2Dot1OpsgenieRegion } from "./ServiceDefinitionV2Dot1OpsgenieRegion"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Opsgenie integration for the service. - */ +*/ export class ServiceDefinitionV2Dot1Opsgenie { /** * Opsgenie instance region. - */ + */ "region"?: ServiceDefinitionV2Dot1OpsgenieRegion; /** * Opsgenie service url. - */ + */ "serviceUrl": string; /** @@ -36,27 +41,53 @@ export class ServiceDefinitionV2Dot1Opsgenie { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - region: { - baseName: "region", - type: "ServiceDefinitionV2Dot1OpsgenieRegion", + "region": { + "baseName": "region", + "type": "ServiceDefinitionV2Dot1OpsgenieRegion", }, - serviceUrl: { - baseName: "service-url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceUrl": { + "baseName": "service-url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1Opsgenie.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.ts index 960f7487e88a..7f660f7be3a9 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Opsgenie instance region. - */ +*/ -export type ServiceDefinitionV2Dot1OpsgenieRegion = - | typeof US - | typeof EU - | UnparsedObject; -export const US = "US"; -export const EU = "EU"; +export type ServiceDefinitionV2Dot1OpsgenieRegion = typeof US| typeof EU | UnparsedObject; +export const US = 'US'; +export const EU = 'EU'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.ts index f43a5d89ba4b..f46ce2d59d07 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * PagerDuty integration for the service. - */ +*/ export class ServiceDefinitionV2Dot1Pagerduty { /** * PagerDuty service url. - */ + */ "serviceUrl"?: string; /** @@ -31,22 +36,48 @@ export class ServiceDefinitionV2Dot1Pagerduty { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - serviceUrl: { - baseName: "service-url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceUrl": { + "baseName": "service-url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1Pagerduty.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.ts index d71bd2a8ff80..a1ae3d58f0f4 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2Dot1SlackType } from "./ServiceDefinitionV2Dot1SlackType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's Slack channel. - */ +*/ export class ServiceDefinitionV2Dot1Slack { /** * Slack Channel. - */ + */ "contact": string; /** * Contact Slack. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": ServiceDefinitionV2Dot1SlackType; /** @@ -40,32 +45,58 @@ export class ServiceDefinitionV2Dot1Slack { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ServiceDefinitionV2Dot1SlackType", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2Dot1SlackType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot1Slack.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.ts index 6be0e4afecb8..b731501ca16d 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contact type. - */ +*/ export type ServiceDefinitionV2Dot1SlackType = typeof SLACK | UnparsedObject; -export const SLACK = "slack"; +export const SLACK = 'slack'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.ts index d103013f2d77..11106891e12e 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schema version being used. - */ +*/ export type ServiceDefinitionV2Dot1Version = typeof V2_1 | UnparsedObject; -export const V2_1 = "v2.1"; +export const V2_1 = 'v2.1'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.ts index 4bca33efc632..c94857805915 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.ts @@ -8,71 +8,76 @@ import { ServiceDefinitionV2Dot2Integrations } from "./ServiceDefinitionV2Dot2In import { ServiceDefinitionV2Dot2Link } from "./ServiceDefinitionV2Dot2Link"; import { ServiceDefinitionV2Dot2Version } from "./ServiceDefinitionV2Dot2Version"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service definition v2.2 for providing service metadata and integrations. - */ +*/ export class ServiceDefinitionV2Dot2 { /** * Identifier for a group of related services serving a product feature, which the service is a part of. - */ + */ "application"?: string; /** * A set of CI fingerprints. - */ + */ "ciPipelineFingerprints"?: Array; /** * A list of contacts related to the services. - */ + */ "contacts"?: Array; /** * Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog. - */ + */ "ddService": string; /** * A short description of the service. - */ + */ "description"?: string; /** * Extensions to v2.2 schema. - */ - "extensions"?: { [key: string]: any }; + */ + "extensions"?: { [key: string]: any; }; /** * Third party integrations that Datadog supports. - */ + */ "integrations"?: ServiceDefinitionV2Dot2Integrations; /** * The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`. - */ + */ "languages"?: Array; /** * The current life cycle phase of the service. - */ + */ "lifecycle"?: string; /** * A list of links related to the services. - */ + */ "links"?: Array; /** * Schema version being used. - */ + */ "schemaVersion": ServiceDefinitionV2Dot2Version; /** * A set of custom tags. - */ + */ "tags"?: Array; /** * Team that owns the service. It is used to locate a team defined in Datadog Teams if it exists. - */ + */ "team"?: string; /** * Importance of the service. - */ + */ "tier"?: string; /** * The type of service. - */ + */ "type"?: string; /** @@ -91,80 +96,106 @@ export class ServiceDefinitionV2Dot2 { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - application: { - baseName: "application", - type: "string", - }, - ciPipelineFingerprints: { - baseName: "ci-pipeline-fingerprints", - type: "Array", - }, - contacts: { - baseName: "contacts", - type: "Array", - }, - ddService: { - baseName: "dd-service", - type: "string", - required: true, - }, - description: { - baseName: "description", - type: "string", - }, - extensions: { - baseName: "extensions", - type: "{ [key: string]: any; }", - }, - integrations: { - baseName: "integrations", - type: "ServiceDefinitionV2Dot2Integrations", - }, - languages: { - baseName: "languages", - type: "Array", - }, - lifecycle: { - baseName: "lifecycle", - type: "string", - }, - links: { - baseName: "links", - type: "Array", - }, - schemaVersion: { - baseName: "schema-version", - type: "ServiceDefinitionV2Dot2Version", - required: true, - }, - tags: { - baseName: "tags", - type: "Array", - }, - team: { - baseName: "team", - type: "string", - }, - tier: { - baseName: "tier", - type: "string", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "application": { + "baseName": "application", + "type": "string", + }, + "ciPipelineFingerprints": { + "baseName": "ci-pipeline-fingerprints", + "type": "Array", + }, + "contacts": { + "baseName": "contacts", + "type": "Array", + }, + "ddService": { + "baseName": "dd-service", + "type": "string", + "required": true, + }, + "description": { + "baseName": "description", + "type": "string", + }, + "extensions": { + "baseName": "extensions", + "type": "{ [key: string]: any; }", + }, + "integrations": { + "baseName": "integrations", + "type": "ServiceDefinitionV2Dot2Integrations", + }, + "languages": { + "baseName": "languages", + "type": "Array", + }, + "lifecycle": { + "baseName": "lifecycle", + "type": "string", + }, + "links": { + "baseName": "links", + "type": "Array", + }, + "schemaVersion": { + "baseName": "schema-version", + "type": "ServiceDefinitionV2Dot2Version", + "required": true, + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "team": { + "baseName": "team", + "type": "string", + }, + "tier": { + "baseName": "tier", + "type": "string", + }, + "type": { + "baseName": "type", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot2.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.ts index b9c25b0f293a..9001510e148a 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's contacts information. - */ +*/ export class ServiceDefinitionV2Dot2Contact { /** * Contact value. - */ + */ "contact": string; /** * Contact Name. - */ + */ "name"?: string; /** * Contact type. Datadog recognizes the following types: `email`, `slack`, and `microsoft-teams`. - */ + */ "type": string; /** @@ -39,32 +44,58 @@ export class ServiceDefinitionV2Dot2Contact { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot2Contact.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.ts index 34d59dff9a5f..cd8a369db448 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.ts @@ -6,19 +6,24 @@ import { ServiceDefinitionV2Dot2Opsgenie } from "./ServiceDefinitionV2Dot2Opsgenie"; import { ServiceDefinitionV2Dot2Pagerduty } from "./ServiceDefinitionV2Dot2Pagerduty"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Third party integrations that Datadog supports. - */ +*/ export class ServiceDefinitionV2Dot2Integrations { /** * Opsgenie integration for the service. - */ + */ "opsgenie"?: ServiceDefinitionV2Dot2Opsgenie; /** * PagerDuty integration for the service. - */ + */ "pagerduty"?: ServiceDefinitionV2Dot2Pagerduty; /** @@ -37,26 +42,52 @@ export class ServiceDefinitionV2Dot2Integrations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - opsgenie: { - baseName: "opsgenie", - type: "ServiceDefinitionV2Dot2Opsgenie", + "opsgenie": { + "baseName": "opsgenie", + "type": "ServiceDefinitionV2Dot2Opsgenie", }, - pagerduty: { - baseName: "pagerduty", - type: "ServiceDefinitionV2Dot2Pagerduty", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagerduty": { + "baseName": "pagerduty", + "type": "ServiceDefinitionV2Dot2Pagerduty", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot2Integrations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.ts index 7d0be383034b..75c98ed6cc49 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service's external links. - */ +*/ export class ServiceDefinitionV2Dot2Link { /** * Link name. - */ + */ "name": string; /** * Link provider. - */ + */ "provider"?: string; /** * Link type. Datadog recognizes the following types: `runbook`, `doc`, `repo`, `dashboard`, and `other`. - */ + */ "type": string; /** * Link URL. - */ + */ "url": string; /** @@ -43,37 +48,63 @@ export class ServiceDefinitionV2Dot2Link { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - provider: { - baseName: "provider", - type: "string", + "provider": { + "baseName": "provider", + "type": "string", }, - type: { - baseName: "type", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot2Link.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.ts index 59310896a77c..14b6cd8c5e3b 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.ts @@ -5,19 +5,24 @@ */ import { ServiceDefinitionV2Dot2OpsgenieRegion } from "./ServiceDefinitionV2Dot2OpsgenieRegion"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Opsgenie integration for the service. - */ +*/ export class ServiceDefinitionV2Dot2Opsgenie { /** * Opsgenie instance region. - */ + */ "region"?: ServiceDefinitionV2Dot2OpsgenieRegion; /** * Opsgenie service url. - */ + */ "serviceUrl": string; /** @@ -36,27 +41,53 @@ export class ServiceDefinitionV2Dot2Opsgenie { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - region: { - baseName: "region", - type: "ServiceDefinitionV2Dot2OpsgenieRegion", + "region": { + "baseName": "region", + "type": "ServiceDefinitionV2Dot2OpsgenieRegion", }, - serviceUrl: { - baseName: "service-url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceUrl": { + "baseName": "service-url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot2Opsgenie.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.ts index 61c80b6fac56..5cec916e19e8 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Opsgenie instance region. - */ +*/ -export type ServiceDefinitionV2Dot2OpsgenieRegion = - | typeof US - | typeof EU - | UnparsedObject; -export const US = "US"; -export const EU = "EU"; +export type ServiceDefinitionV2Dot2OpsgenieRegion = typeof US| typeof EU | UnparsedObject; +export const US = 'US'; +export const EU = 'EU'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.ts index 07668f50087d..fee8098376c0 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * PagerDuty integration for the service. - */ +*/ export class ServiceDefinitionV2Dot2Pagerduty { /** * PagerDuty service url. - */ + */ "serviceUrl"?: string; /** @@ -31,22 +36,48 @@ export class ServiceDefinitionV2Dot2Pagerduty { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - serviceUrl: { - baseName: "service-url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceUrl": { + "baseName": "service-url", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Dot2Pagerduty.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.ts index 72f8d1502595..a639b027a3f7 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schema version being used. - */ +*/ export type ServiceDefinitionV2Dot2Version = typeof V2_2 | UnparsedObject; -export const V2_2 = "v2.2"; +export const V2_2 = 'v2.2'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.ts index be133cd7e00f..50b307484a51 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2EmailType } from "./ServiceDefinitionV2EmailType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's email. - */ +*/ export class ServiceDefinitionV2Email { /** * Contact value. - */ + */ "contact": string; /** * Contact email. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": ServiceDefinitionV2EmailType; /** @@ -40,32 +45,58 @@ export class ServiceDefinitionV2Email { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ServiceDefinitionV2EmailType", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2EmailType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Email.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.ts index 1f0aaea33840..96b14137a94a 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contact type. - */ +*/ export type ServiceDefinitionV2EmailType = typeof EMAIL | UnparsedObject; -export const EMAIL = "email"; +export const EMAIL = 'email'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.ts index 191b4536fdb9..e71501886bfc 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.ts @@ -5,19 +5,24 @@ */ import { ServiceDefinitionV2Opsgenie } from "./ServiceDefinitionV2Opsgenie"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Third party integrations that Datadog supports. - */ +*/ export class ServiceDefinitionV2Integrations { /** * Opsgenie integration for the service. - */ + */ "opsgenie"?: ServiceDefinitionV2Opsgenie; /** * PagerDuty service URL for the service. - */ + */ "pagerduty"?: string; /** @@ -36,26 +41,52 @@ export class ServiceDefinitionV2Integrations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - opsgenie: { - baseName: "opsgenie", - type: "ServiceDefinitionV2Opsgenie", + "opsgenie": { + "baseName": "opsgenie", + "type": "ServiceDefinitionV2Opsgenie", }, - pagerduty: { - baseName: "pagerduty", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagerduty": { + "baseName": "pagerduty", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Integrations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.ts index 3f2bbdcf339a..1a30be430ddc 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2LinkType } from "./ServiceDefinitionV2LinkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service's external links. - */ +*/ export class ServiceDefinitionV2Link { /** * Link name. - */ + */ "name": string; /** * Link type. - */ + */ "type": ServiceDefinitionV2LinkType; /** * Link URL. - */ + */ "url": string; /** @@ -40,33 +45,59 @@ export class ServiceDefinitionV2Link { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "ServiceDefinitionV2LinkType", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2LinkType", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Link.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.ts index c07f6d647418..e6a5c2b5452b 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.ts @@ -4,29 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Link type. - */ +*/ -export type ServiceDefinitionV2LinkType = - | typeof DOC - | typeof WIKI - | typeof RUNBOOK - | typeof URL - | typeof REPO - | typeof DASHBOARD - | typeof ONCALL - | typeof CODE - | typeof LINK - | UnparsedObject; -export const DOC = "doc"; -export const WIKI = "wiki"; -export const RUNBOOK = "runbook"; -export const URL = "url"; -export const REPO = "repo"; -export const DASHBOARD = "dashboard"; -export const ONCALL = "oncall"; -export const CODE = "code"; -export const LINK = "link"; +export type ServiceDefinitionV2LinkType = typeof DOC| typeof WIKI| typeof RUNBOOK| typeof URL| typeof REPO| typeof DASHBOARD| typeof ONCALL| typeof CODE| typeof LINK | UnparsedObject; +export const DOC = 'doc'; +export const WIKI = 'wiki'; +export const RUNBOOK = 'runbook'; +export const URL = 'url'; +export const REPO = 'repo'; +export const DASHBOARD = 'dashboard'; +export const ONCALL = 'oncall'; +export const CODE = 'code'; +export const LINK = 'link'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.ts index 461bb92a7d7a..f91846b3eccf 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2MSTeamsType } from "./ServiceDefinitionV2MSTeamsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's Microsoft Teams. - */ +*/ export class ServiceDefinitionV2MSTeams { /** * Contact value. - */ + */ "contact": string; /** * Contact Microsoft Teams. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": ServiceDefinitionV2MSTeamsType; /** @@ -40,32 +45,58 @@ export class ServiceDefinitionV2MSTeams { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ServiceDefinitionV2MSTeamsType", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2MSTeamsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2MSTeams.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.ts index df825d387ce4..876ceb252fa6 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contact type. - */ +*/ -export type ServiceDefinitionV2MSTeamsType = - | typeof MICROSOFT_TEAMS - | UnparsedObject; -export const MICROSOFT_TEAMS = "microsoft-teams"; +export type ServiceDefinitionV2MSTeamsType = typeof MICROSOFT_TEAMS | UnparsedObject; +export const MICROSOFT_TEAMS = 'microsoft-teams'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.ts index 5c915115559d..9f1fd0b5fc74 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.ts @@ -5,19 +5,24 @@ */ import { ServiceDefinitionV2OpsgenieRegion } from "./ServiceDefinitionV2OpsgenieRegion"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Opsgenie integration for the service. - */ +*/ export class ServiceDefinitionV2Opsgenie { /** * Opsgenie instance region. - */ + */ "region"?: ServiceDefinitionV2OpsgenieRegion; /** * Opsgenie service url. - */ + */ "serviceUrl": string; /** @@ -36,27 +41,53 @@ export class ServiceDefinitionV2Opsgenie { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - region: { - baseName: "region", - type: "ServiceDefinitionV2OpsgenieRegion", + "region": { + "baseName": "region", + "type": "ServiceDefinitionV2OpsgenieRegion", }, - serviceUrl: { - baseName: "service-url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "serviceUrl": { + "baseName": "service-url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Opsgenie.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.ts index f788f22983c1..6d22049897ac 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Opsgenie instance region. - */ +*/ -export type ServiceDefinitionV2OpsgenieRegion = - | typeof US - | typeof EU - | UnparsedObject; -export const US = "US"; -export const EU = "EU"; +export type ServiceDefinitionV2OpsgenieRegion = typeof US| typeof EU | UnparsedObject; +export const US = 'US'; +export const EU = 'EU'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.ts index 2143d4e33762..7ce209f62dbb 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service code repositories. - */ +*/ export class ServiceDefinitionV2Repo { /** * Repository name. - */ + */ "name": string; /** * Repository provider. - */ + */ "provider"?: string; /** * Repository URL. - */ + */ "url": string; /** @@ -39,32 +44,58 @@ export class ServiceDefinitionV2Repo { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, - }, - provider: { - baseName: "provider", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - url: { - baseName: "url", - type: "string", - required: true, + "provider": { + "baseName": "provider", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Repo.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.ts index af82b19a6464..440ec380609c 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.ts @@ -5,23 +5,28 @@ */ import { ServiceDefinitionV2SlackType } from "./ServiceDefinitionV2SlackType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Service owner's Slack channel. - */ +*/ export class ServiceDefinitionV2Slack { /** * Slack Channel. - */ + */ "contact": string; /** * Contact Slack. - */ + */ "name"?: string; /** * Contact type. - */ + */ "type": ServiceDefinitionV2SlackType; /** @@ -40,32 +45,58 @@ export class ServiceDefinitionV2Slack { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - contact: { - baseName: "contact", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "contact": { + "baseName": "contact", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "ServiceDefinitionV2SlackType", - required: true, + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "ServiceDefinitionV2SlackType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionV2Slack.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.ts index e5cdae9d95dc..1affad0d53e0 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Contact type. - */ +*/ export type ServiceDefinitionV2SlackType = typeof SLACK | UnparsedObject; -export const SLACK = "slack"; +export const SLACK = 'slack'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.ts index 7849b5edf179..306f22f81efa 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Schema version being used. - */ +*/ export type ServiceDefinitionV2Version = typeof V2 | UnparsedObject; -export const V2 = "v2"; +export const V2 = 'v2'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.ts index fad4758f2aff..8c94a0e4b390 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.ts @@ -7,15 +7,15 @@ import { ServiceDefinitionV2 } from "./ServiceDefinitionV2"; import { ServiceDefinitionV2Dot1 } from "./ServiceDefinitionV2Dot1"; import { ServiceDefinitionV2Dot2 } from "./ServiceDefinitionV2Dot2"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Create service definitions request. - */ +*/ -export type ServiceDefinitionsCreateRequest = - | ServiceDefinitionV2Dot2 - | ServiceDefinitionV2Dot1 - | ServiceDefinitionV2 - | string - | UnparsedObject; +export type ServiceDefinitionsCreateRequest = ServiceDefinitionV2Dot2 | ServiceDefinitionV2Dot1 | ServiceDefinitionV2 | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.ts b/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.ts index f8707e24cb29..637bd33224b6 100644 --- a/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.ts +++ b/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.ts @@ -5,15 +5,20 @@ */ import { ServiceDefinitionData } from "./ServiceDefinitionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create service definitions response. - */ +*/ export class ServiceDefinitionsListResponse { /** * Data representing service definitions. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class ServiceDefinitionsListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceDefinitionsListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceNowTicket.ts b/packages/datadog-api-client-v2/models/ServiceNowTicket.ts index 3067ad2a580c..5980e3f86eaa 100644 --- a/packages/datadog-api-client-v2/models/ServiceNowTicket.ts +++ b/packages/datadog-api-client-v2/models/ServiceNowTicket.ts @@ -6,19 +6,24 @@ import { Case3rdPartyTicketStatus } from "./Case3rdPartyTicketStatus"; import { ServiceNowTicketResult } from "./ServiceNowTicketResult"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * ServiceNow ticket attached to case - */ +*/ export class ServiceNowTicket { /** * ServiceNow ticket information - */ + */ "result"?: ServiceNowTicketResult; /** * Case status - */ + */ "status"?: Case3rdPartyTicketStatus; /** @@ -37,26 +42,52 @@ export class ServiceNowTicket { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - result: { - baseName: "result", - type: "ServiceNowTicketResult", + "result": { + "baseName": "result", + "type": "ServiceNowTicketResult", }, - status: { - baseName: "status", - type: "Case3rdPartyTicketStatus", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "status": { + "baseName": "status", + "type": "Case3rdPartyTicketStatus", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceNowTicket.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/ServiceNowTicketResult.ts b/packages/datadog-api-client-v2/models/ServiceNowTicketResult.ts index a3421e8dd721..49d94a35aab8 100644 --- a/packages/datadog-api-client-v2/models/ServiceNowTicketResult.ts +++ b/packages/datadog-api-client-v2/models/ServiceNowTicketResult.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * ServiceNow ticket information - */ +*/ export class ServiceNowTicketResult { /** * Link to the Incident created on ServiceNow - */ + */ "sysTargetLink"?: string; /** @@ -31,22 +36,48 @@ export class ServiceNowTicketResult { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - sysTargetLink: { - baseName: "sys_target_link", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sysTargetLink": { + "baseName": "sys_target_link", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return ServiceNowTicketResult.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.ts b/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.ts index e87f63b894a4..ee7097731dcb 100644 --- a/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.ts +++ b/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.ts @@ -5,15 +5,20 @@ */ import { SlackIntegrationMetadataChannelItem } from "./SlackIntegrationMetadataChannelItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Incident integration metadata for the Slack integration. - */ +*/ export class SlackIntegrationMetadata { /** * Array of Slack channels in this integration metadata. - */ + */ "channels": Array; /** @@ -32,23 +37,49 @@ export class SlackIntegrationMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - channels: { - baseName: "channels", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "channels": { + "baseName": "channels", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SlackIntegrationMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.ts b/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.ts index 787106b879bc..1b795b9532b1 100644 --- a/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.ts +++ b/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Item in the Slack integration metadata channel array. - */ +*/ export class SlackIntegrationMetadataChannelItem { /** * Slack channel ID. - */ + */ "channelId": string; /** * Name of the Slack channel. - */ + */ "channelName": string; /** * URL redirecting to the Slack channel. - */ + */ "redirectUrl": string; /** * Slack team ID. - */ + */ "teamId"?: string; /** @@ -43,37 +48,63 @@ export class SlackIntegrationMetadataChannelItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - channelId: { - baseName: "channel_id", - type: "string", - required: true, + "channelId": { + "baseName": "channel_id", + "type": "string", + "required": true, }, - channelName: { - baseName: "channel_name", - type: "string", - required: true, + "channelName": { + "baseName": "channel_name", + "type": "string", + "required": true, }, - redirectUrl: { - baseName: "redirect_url", - type: "string", - required: true, + "redirectUrl": { + "baseName": "redirect_url", + "type": "string", + "required": true, }, - teamId: { - baseName: "team_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "teamId": { + "baseName": "team_id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SlackIntegrationMetadataChannelItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SlackTriggerWrapper.ts b/packages/datadog-api-client-v2/models/SlackTriggerWrapper.ts index c8747f26c439..6feab8c7461c 100644 --- a/packages/datadog-api-client-v2/models/SlackTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/SlackTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Slack-based trigger. - */ +*/ export class SlackTriggerWrapper { /** * Trigger a workflow from Slack. The workflow must be published. - */ + */ "slackTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class SlackTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - slackTrigger: { - baseName: "slackTrigger", - type: "any", - required: true, + "slackTrigger": { + "baseName": "slackTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SlackTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SloReportCreateRequest.ts b/packages/datadog-api-client-v2/models/SloReportCreateRequest.ts index f74bc7feff75..0e60dd61872c 100644 --- a/packages/datadog-api-client-v2/models/SloReportCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/SloReportCreateRequest.ts @@ -5,15 +5,20 @@ */ import { SloReportCreateRequestData } from "./SloReportCreateRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The SLO report request body. - */ +*/ export class SloReportCreateRequest { /** * The data portion of the SLO report request. - */ + */ "data": SloReportCreateRequestData; /** @@ -32,23 +37,49 @@ export class SloReportCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SloReportCreateRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SloReportCreateRequestData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SloReportCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SloReportCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/SloReportCreateRequestAttributes.ts index a9e775d8a518..db4ae7bb5e6c 100644 --- a/packages/datadog-api-client-v2/models/SloReportCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/SloReportCreateRequestAttributes.ts @@ -5,31 +5,36 @@ */ import { SLOReportInterval } from "./SLOReportInterval"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes portion of the SLO report request. - */ +*/ export class SloReportCreateRequestAttributes { /** * The `from` timestamp for the report in epoch seconds. - */ + */ "fromTs": number; /** * The frequency at which report data is to be generated. - */ + */ "interval"?: SLOReportInterval; /** * The query string used to filter SLO results. Some examples of queries include `service:` and `slo-name`. - */ + */ "query": string; /** * The timezone used to determine the start and end of each interval. For example, weekly intervals start at 12am on Sunday in the specified timezone. - */ + */ "timezone"?: string; /** * The `to` timestamp for the report in epoch seconds. - */ + */ "toTs": number; /** @@ -48,43 +53,69 @@ export class SloReportCreateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - fromTs: { - baseName: "from_ts", - type: "number", - required: true, - format: "int64", + "fromTs": { + "baseName": "from_ts", + "type": "number", + "required": true, + "format": "int64", }, - interval: { - baseName: "interval", - type: "SLOReportInterval", + "interval": { + "baseName": "interval", + "type": "SLOReportInterval", }, - query: { - baseName: "query", - type: "string", - required: true, + "query": { + "baseName": "query", + "type": "string", + "required": true, }, - timezone: { - baseName: "timezone", - type: "string", + "timezone": { + "baseName": "timezone", + "type": "string", }, - toTs: { - baseName: "to_ts", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "toTs": { + "baseName": "to_ts", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SloReportCreateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SloReportCreateRequestData.ts b/packages/datadog-api-client-v2/models/SloReportCreateRequestData.ts index a337a2ae45ac..a5b63d0bf048 100644 --- a/packages/datadog-api-client-v2/models/SloReportCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/SloReportCreateRequestData.ts @@ -5,15 +5,20 @@ */ import { SloReportCreateRequestAttributes } from "./SloReportCreateRequestAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data portion of the SLO report request. - */ +*/ export class SloReportCreateRequestData { /** * The attributes portion of the SLO report request. - */ + */ "attributes": SloReportCreateRequestAttributes; /** @@ -32,23 +37,49 @@ export class SloReportCreateRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SloReportCreateRequestAttributes", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "SloReportCreateRequestAttributes", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SloReportCreateRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SoftwareCatalogTriggerWrapper.ts b/packages/datadog-api-client-v2/models/SoftwareCatalogTriggerWrapper.ts index 60ab1b49ad9d..f14a2ab600f9 100644 --- a/packages/datadog-api-client-v2/models/SoftwareCatalogTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/SoftwareCatalogTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Software Catalog-based trigger. - */ +*/ export class SoftwareCatalogTriggerWrapper { /** * Trigger a workflow from Software Catalog. - */ + */ "softwareCatalogTrigger": any; /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** @@ -35,27 +41,53 @@ export class SoftwareCatalogTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - softwareCatalogTrigger: { - baseName: "softwareCatalogTrigger", - type: "any", - required: true, + "softwareCatalogTrigger": { + "baseName": "softwareCatalogTrigger", + "type": "any", + "required": true, }, - startStepNames: { - baseName: "startStepNames", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SoftwareCatalogTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SortDirection.ts b/packages/datadog-api-client-v2/models/SortDirection.ts index cf61fdd4c4bc..287bca78fe55 100644 --- a/packages/datadog-api-client-v2/models/SortDirection.ts +++ b/packages/datadog-api-client-v2/models/SortDirection.ts @@ -4,12 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The direction to sort by. - */ +*/ -export type SortDirection = typeof DESC | typeof ASC | UnparsedObject; -export const DESC = "desc"; -export const ASC = "asc"; +export type SortDirection = typeof DESC| typeof ASC | UnparsedObject; +export const DESC = 'desc'; +export const ASC = 'asc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Span.ts b/packages/datadog-api-client-v2/models/Span.ts index 60ff1b3de4f0..fd23662c9269 100644 --- a/packages/datadog-api-client-v2/models/Span.ts +++ b/packages/datadog-api-client-v2/models/Span.ts @@ -6,23 +6,28 @@ import { SpansAttributes } from "./SpansAttributes"; import { SpansType } from "./SpansType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object description of a spans after being processed and stored by Datadog. - */ +*/ export class Span { /** * JSON object containing all span attributes and their associated values. - */ + */ "attributes"?: SpansAttributes; /** * Unique ID of the Span. - */ + */ "id"?: string; /** * Type of the span. - */ + */ "type"?: SpansType; /** @@ -41,30 +46,56 @@ export class Span { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SpansAttributes", }, - type: { - baseName: "type", - type: "SpansType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Span.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateBucket.ts b/packages/datadog-api-client-v2/models/SpansAggregateBucket.ts index 93780eab06c9..8a75d47fb705 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateBucket.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateBucket.ts @@ -6,23 +6,28 @@ import { SpansAggregateBucketAttributes } from "./SpansAggregateBucketAttributes"; import { SpansAggregateBucketType } from "./SpansAggregateBucketType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Spans aggregate. - */ +*/ export class SpansAggregateBucket { /** * A bucket values. - */ + */ "attributes"?: SpansAggregateBucketAttributes; /** * ID of the spans aggregate. - */ + */ "id"?: string; /** * The spans aggregate bucket type. - */ + */ "type"?: SpansAggregateBucketType; /** @@ -41,30 +46,56 @@ export class SpansAggregateBucket { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansAggregateBucketAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SpansAggregateBucketAttributes", }, - type: { - baseName: "type", - type: "SpansAggregateBucketType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansAggregateBucketType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateBucket.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateBucketAttributes.ts b/packages/datadog-api-client-v2/models/SpansAggregateBucketAttributes.ts index d6250dff314c..7a817e2aaac3 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateBucketAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateBucketAttributes.ts @@ -5,24 +5,29 @@ */ import { SpansAggregateBucketValue } from "./SpansAggregateBucketValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A bucket values. - */ +*/ export class SpansAggregateBucketAttributes { /** * The key, value pairs for each group by. - */ - "by"?: { [key: string]: any }; + */ + "by"?: { [key: string]: any; }; /** * The compute data. - */ + */ "compute"?: any; /** * A map of the metric name -> value for regular compute or list of values for a timeseries. - */ - "computes"?: { [key: string]: SpansAggregateBucketValue }; + */ + "computes"?: { [key: string]: SpansAggregateBucketValue; }; /** * A container for additional, undeclared properties. @@ -40,30 +45,56 @@ export class SpansAggregateBucketAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - by: { - baseName: "by", - type: "{ [key: string]: any; }", - }, - compute: { - baseName: "compute", - type: "any", + "by": { + "baseName": "by", + "type": "{ [key: string]: any; }", }, - computes: { - baseName: "computes", - type: "{ [key: string]: SpansAggregateBucketValue; }", + "compute": { + "baseName": "compute", + "type": "any", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "computes": { + "baseName": "computes", + "type": "{ [key: string]: SpansAggregateBucketValue; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateBucketAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateBucketType.ts b/packages/datadog-api-client-v2/models/SpansAggregateBucketType.ts index a338550a08d1..1c996dac16b2 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateBucketType.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateBucketType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The spans aggregate bucket type. - */ +*/ export type SpansAggregateBucketType = typeof BUCKET | UnparsedObject; -export const BUCKET = "bucket"; +export const BUCKET = 'bucket'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansAggregateBucketValue.ts b/packages/datadog-api-client-v2/models/SpansAggregateBucketValue.ts index c13be4ddb2c0..c6a4fabd072f 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateBucketValue.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateBucketValue.ts @@ -5,14 +5,15 @@ */ import { SpansAggregateBucketValueTimeseriesPoint } from "./SpansAggregateBucketValueTimeseriesPoint"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A bucket value, can be either a timeseries or a single value. - */ +*/ -export type SpansAggregateBucketValue = - | string - | number - | Array - | UnparsedObject; +export type SpansAggregateBucketValue = string | number | Array | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansAggregateBucketValueTimeseriesPoint.ts b/packages/datadog-api-client-v2/models/SpansAggregateBucketValueTimeseriesPoint.ts index 5488eed3624b..3b718f2e5921 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateBucketValueTimeseriesPoint.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateBucketValueTimeseriesPoint.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A timeseries point. - */ +*/ export class SpansAggregateBucketValueTimeseriesPoint { /** * The time value for this point. - */ + */ "time"?: string; /** * The value for this point. - */ + */ "value"?: number; /** @@ -35,27 +40,53 @@ export class SpansAggregateBucketValueTimeseriesPoint { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - time: { - baseName: "time", - type: "string", + "time": { + "baseName": "time", + "type": "string", }, - value: { - baseName: "value", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateBucketValueTimeseriesPoint.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateData.ts b/packages/datadog-api-client-v2/models/SpansAggregateData.ts index ad32c3d61783..bd93160b320b 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateData.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateData.ts @@ -6,19 +6,24 @@ import { SpansAggregateRequestAttributes } from "./SpansAggregateRequestAttributes"; import { SpansAggregateRequestType } from "./SpansAggregateRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing the query content. - */ +*/ export class SpansAggregateData { /** * The object containing all the query parameters. - */ + */ "attributes"?: SpansAggregateRequestAttributes; /** * The type of resource. The value should always be aggregate_request. - */ + */ "type"?: SpansAggregateRequestType; /** @@ -37,26 +42,52 @@ export class SpansAggregateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansAggregateRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "SpansAggregateRequestAttributes", }, - type: { - baseName: "type", - type: "SpansAggregateRequestType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansAggregateRequestType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateRequest.ts b/packages/datadog-api-client-v2/models/SpansAggregateRequest.ts index 1431d5f52470..dc3c764781d1 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateRequest.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateRequest.ts @@ -5,15 +5,20 @@ */ import { SpansAggregateData } from "./SpansAggregateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object sent with the request to retrieve a list of aggregated spans from your organization. - */ +*/ export class SpansAggregateRequest { /** * The object containing the query content. - */ + */ "data"?: SpansAggregateData; /** @@ -32,22 +37,48 @@ export class SpansAggregateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SpansAggregateData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SpansAggregateData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateRequestAttributes.ts b/packages/datadog-api-client-v2/models/SpansAggregateRequestAttributes.ts index 0a82ad5f2da8..3a598b091b2e 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateRequestAttributes.ts @@ -8,28 +8,33 @@ import { SpansGroupBy } from "./SpansGroupBy"; import { SpansQueryFilter } from "./SpansQueryFilter"; import { SpansQueryOptions } from "./SpansQueryOptions"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing all the query parameters. - */ +*/ export class SpansAggregateRequestAttributes { /** * The list of metrics or timeseries to compute for the retrieved buckets. - */ + */ "compute"?: Array; /** * The search and filter query settings. - */ + */ "filter"?: SpansQueryFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** * Global query options that are used during the query. * Note: You should only supply timezone or time offset but not both otherwise the query will fail. - */ + */ "options"?: SpansQueryOptions; /** @@ -48,34 +53,60 @@ export class SpansAggregateRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "Array", + "compute": { + "baseName": "compute", + "type": "Array", }, - filter: { - baseName: "filter", - type: "SpansQueryFilter", + "filter": { + "baseName": "filter", + "type": "SpansQueryFilter", }, - groupBy: { - baseName: "group_by", - type: "Array", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, - options: { - baseName: "options", - type: "SpansQueryOptions", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "options": { + "baseName": "options", + "type": "SpansQueryOptions", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateRequestType.ts b/packages/datadog-api-client-v2/models/SpansAggregateRequestType.ts index c6406ee95c78..4f2e621296a6 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateRequestType.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of resource. The value should always be aggregate_request. - */ +*/ -export type SpansAggregateRequestType = - | typeof AGGREGATE_REQUEST - | UnparsedObject; -export const AGGREGATE_REQUEST = "aggregate_request"; +export type SpansAggregateRequestType = typeof AGGREGATE_REQUEST | UnparsedObject; +export const AGGREGATE_REQUEST = 'aggregate_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansAggregateResponse.ts b/packages/datadog-api-client-v2/models/SpansAggregateResponse.ts index 06323c538def..55ed2795cdc8 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateResponse.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateResponse.ts @@ -6,19 +6,24 @@ import { SpansAggregateBucket } from "./SpansAggregateBucket"; import { SpansAggregateResponseMetadata } from "./SpansAggregateResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object for the spans aggregate API endpoint. - */ +*/ export class SpansAggregateResponse { /** * The list of matching buckets, one item per bucket. - */ + */ "data"?: Array; /** * The metadata associated with a request. - */ + */ "meta"?: SpansAggregateResponseMetadata; /** @@ -37,26 +42,52 @@ export class SpansAggregateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "SpansAggregateResponseMetadata", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SpansAggregateResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateResponseMetadata.ts b/packages/datadog-api-client-v2/models/SpansAggregateResponseMetadata.ts index 4a5cf0d312db..89097d8cad7f 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateResponseMetadata.ts @@ -6,28 +6,33 @@ import { SpansAggregateResponseStatus } from "./SpansAggregateResponseStatus"; import { SpansWarning } from "./SpansWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class SpansAggregateResponseMetadata { /** * The time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The status of the response. - */ + */ "status"?: SpansAggregateResponseStatus; /** * A list of warnings (non fatal errors) encountered, partial results might be returned if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -46,35 +51,61 @@ export class SpansAggregateResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "SpansAggregateResponseStatus", + "status": { + "baseName": "status", + "type": "SpansAggregateResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateResponseStatus.ts b/packages/datadog-api-client-v2/models/SpansAggregateResponseStatus.ts index c3f8222756f3..684aa1aec72a 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateResponseStatus.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateResponseStatus.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The status of the response. - */ +*/ -export type SpansAggregateResponseStatus = - | typeof DONE - | typeof TIMEOUT - | UnparsedObject; -export const DONE = "done"; -export const TIMEOUT = "timeout"; +export type SpansAggregateResponseStatus = typeof DONE| typeof TIMEOUT | UnparsedObject; +export const DONE = 'done'; +export const TIMEOUT = 'timeout'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansAggregateSort.ts b/packages/datadog-api-client-v2/models/SpansAggregateSort.ts index d6360b87edf2..e074d595ab40 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateSort.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateSort.ts @@ -7,27 +7,32 @@ import { SpansAggregateSortType } from "./SpansAggregateSortType"; import { SpansAggregationFunction } from "./SpansAggregationFunction"; import { SpansSortOrder } from "./SpansSortOrder"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A sort rule. - */ +*/ export class SpansAggregateSort { /** * An aggregation function. - */ + */ "aggregation"?: SpansAggregationFunction; /** * The metric to sort by (only used for `type=measure`). - */ + */ "metric"?: string; /** * The order to use, ascending or descending. - */ + */ "order"?: SpansSortOrder; /** * The type of sorting algorithm. - */ + */ "type"?: SpansAggregateSortType; /** @@ -46,34 +51,60 @@ export class SpansAggregateSort { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "SpansAggregationFunction", + "aggregation": { + "baseName": "aggregation", + "type": "SpansAggregationFunction", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - order: { - baseName: "order", - type: "SpansSortOrder", + "order": { + "baseName": "order", + "type": "SpansSortOrder", }, - type: { - baseName: "type", - type: "SpansAggregateSortType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansAggregateSortType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAggregateSort.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansAggregateSortType.ts b/packages/datadog-api-client-v2/models/SpansAggregateSortType.ts index 0156c25f14af..affd07d9eb53 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregateSortType.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregateSortType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of sorting algorithm. - */ +*/ -export type SpansAggregateSortType = - | typeof ALPHABETICAL - | typeof MEASURE - | UnparsedObject; -export const ALPHABETICAL = "alphabetical"; -export const MEASURE = "measure"; +export type SpansAggregateSortType = typeof ALPHABETICAL| typeof MEASURE | UnparsedObject; +export const ALPHABETICAL = 'alphabetical'; +export const MEASURE = 'measure'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansAggregationFunction.ts b/packages/datadog-api-client-v2/models/SpansAggregationFunction.ts index 73876b69fde3..f371dbe93fe2 100644 --- a/packages/datadog-api-client-v2/models/SpansAggregationFunction.ts +++ b/packages/datadog-api-client-v2/models/SpansAggregationFunction.ts @@ -4,35 +4,27 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An aggregation function. - */ +*/ -export type SpansAggregationFunction = - | typeof COUNT - | typeof CARDINALITY - | typeof PERCENTILE_75 - | typeof PERCENTILE_90 - | typeof PERCENTILE_95 - | typeof PERCENTILE_98 - | typeof PERCENTILE_99 - | typeof SUM - | typeof MIN - | typeof MAX - | typeof AVG - | typeof MEDIAN - | UnparsedObject; -export const COUNT = "count"; -export const CARDINALITY = "cardinality"; -export const PERCENTILE_75 = "pc75"; -export const PERCENTILE_90 = "pc90"; -export const PERCENTILE_95 = "pc95"; -export const PERCENTILE_98 = "pc98"; -export const PERCENTILE_99 = "pc99"; -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; -export const MEDIAN = "median"; +export type SpansAggregationFunction = typeof COUNT| typeof CARDINALITY| typeof PERCENTILE_75| typeof PERCENTILE_90| typeof PERCENTILE_95| typeof PERCENTILE_98| typeof PERCENTILE_99| typeof SUM| typeof MIN| typeof MAX| typeof AVG| typeof MEDIAN | UnparsedObject; +export const COUNT = 'count'; +export const CARDINALITY = 'cardinality'; +export const PERCENTILE_75 = 'pc75'; +export const PERCENTILE_90 = 'pc90'; +export const PERCENTILE_95 = 'pc95'; +export const PERCENTILE_98 = 'pc98'; +export const PERCENTILE_99 = 'pc99'; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; +export const MEDIAN = 'median'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansAttributes.ts b/packages/datadog-api-client-v2/models/SpansAttributes.ts index f7de847e6094..b314e59b6126 100644 --- a/packages/datadog-api-client-v2/models/SpansAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansAttributes.ts @@ -4,81 +4,86 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * JSON object containing all span attributes and their associated values. - */ +*/ export class SpansAttributes { /** * JSON object of attributes from your span. - */ - "attributes"?: { [key: string]: any }; + */ + "attributes"?: { [key: string]: any; }; /** * JSON object of custom spans data. - */ - "custom"?: { [key: string]: any }; + */ + "custom"?: { [key: string]: any; }; /** * End timestamp of your span. - */ + */ "endTimestamp"?: Date; /** * Name of the environment from where the spans are being sent. - */ + */ "env"?: string; /** * Name of the machine from where the spans are being sent. - */ + */ "host"?: string; /** * The reason why the span was ingested. - */ + */ "ingestionReason"?: string; /** * Id of the span that's parent of this span. - */ + */ "parentId"?: string; /** * Unique identifier of the resource. - */ + */ "resourceHash"?: string; /** * The name of the resource. - */ + */ "resourceName"?: string; /** * The reason why the span was indexed. - */ + */ "retainedBy"?: string; /** * The name of the application or service generating the span events. * It is used to switch from APM to Logs, so make sure you define the same * value when you use both products. - */ + */ "service"?: string; /** * Whether or not the span was collected as a stand-alone span. Always associated to "single_span" ingestion_reason if true. - */ + */ "singleSpan"?: boolean; /** * Id of the span. - */ + */ "spanId"?: string; /** * Start timestamp of your span. - */ + */ "startTimestamp"?: Date; /** * Array of tags associated with your span. - */ + */ "tags"?: Array; /** * Id of the trace to which the span belongs. - */ + */ "traceId"?: string; /** * The type of the span. - */ + */ "type"?: string; /** @@ -97,88 +102,114 @@ export class SpansAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", - }, - custom: { - baseName: "custom", - type: "{ [key: string]: any; }", - }, - endTimestamp: { - baseName: "end_timestamp", - type: "Date", - format: "date-time", - }, - env: { - baseName: "env", - type: "string", - }, - host: { - baseName: "host", - type: "string", - }, - ingestionReason: { - baseName: "ingestion_reason", - type: "string", - }, - parentId: { - baseName: "parent_id", - type: "string", - }, - resourceHash: { - baseName: "resource_hash", - type: "string", - }, - resourceName: { - baseName: "resource_name", - type: "string", - }, - retainedBy: { - baseName: "retained_by", - type: "string", - }, - service: { - baseName: "service", - type: "string", - }, - singleSpan: { - baseName: "single_span", - type: "boolean", - }, - spanId: { - baseName: "span_id", - type: "string", - }, - startTimestamp: { - baseName: "start_timestamp", - type: "Date", - format: "date-time", - }, - tags: { - baseName: "tags", - type: "Array", - }, - traceId: { - baseName: "trace_id", - type: "string", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", - }, + "attributes": { + "baseName": "attributes", + "type": "{ [key: string]: any; }", + }, + "custom": { + "baseName": "custom", + "type": "{ [key: string]: any; }", + }, + "endTimestamp": { + "baseName": "end_timestamp", + "type": "Date", + "format": "date-time", + }, + "env": { + "baseName": "env", + "type": "string", + }, + "host": { + "baseName": "host", + "type": "string", + }, + "ingestionReason": { + "baseName": "ingestion_reason", + "type": "string", + }, + "parentId": { + "baseName": "parent_id", + "type": "string", + }, + "resourceHash": { + "baseName": "resource_hash", + "type": "string", + }, + "resourceName": { + "baseName": "resource_name", + "type": "string", + }, + "retainedBy": { + "baseName": "retained_by", + "type": "string", + }, + "service": { + "baseName": "service", + "type": "string", + }, + "singleSpan": { + "baseName": "single_span", + "type": "boolean", + }, + "spanId": { + "baseName": "span_id", + "type": "string", + }, + "startTimestamp": { + "baseName": "start_timestamp", + "type": "Date", + "format": "date-time", + }, + "tags": { + "baseName": "tags", + "type": "Array", + }, + "traceId": { + "baseName": "trace_id", + "type": "string", + }, + "type": { + "baseName": "type", + "type": "string", + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansCompute.ts b/packages/datadog-api-client-v2/models/SpansCompute.ts index 660d8ce645a9..c10d9607c042 100644 --- a/packages/datadog-api-client-v2/models/SpansCompute.ts +++ b/packages/datadog-api-client-v2/models/SpansCompute.ts @@ -6,28 +6,33 @@ import { SpansAggregationFunction } from "./SpansAggregationFunction"; import { SpansComputeType } from "./SpansComputeType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A compute rule to compute metrics or timeseries. - */ +*/ export class SpansCompute { /** * An aggregation function. - */ + */ "aggregation": SpansAggregationFunction; /** * The time buckets' size (only used for type=timeseries) * Defaults to a resolution of 150 points. - */ + */ "interval"?: string; /** * The metric to use. - */ + */ "metric"?: string; /** * The type of compute. - */ + */ "type"?: SpansComputeType; /** @@ -46,35 +51,61 @@ export class SpansCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregation: { - baseName: "aggregation", - type: "SpansAggregationFunction", - required: true, + "aggregation": { + "baseName": "aggregation", + "type": "SpansAggregationFunction", + "required": true, }, - interval: { - baseName: "interval", - type: "string", + "interval": { + "baseName": "interval", + "type": "string", }, - metric: { - baseName: "metric", - type: "string", + "metric": { + "baseName": "metric", + "type": "string", }, - type: { - baseName: "type", - type: "SpansComputeType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansComputeType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansComputeType.ts b/packages/datadog-api-client-v2/models/SpansComputeType.ts index 320bb0b7cb45..75abe236ef43 100644 --- a/packages/datadog-api-client-v2/models/SpansComputeType.ts +++ b/packages/datadog-api-client-v2/models/SpansComputeType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of compute. - */ +*/ -export type SpansComputeType = - | typeof TIMESERIES - | typeof TOTAL - | UnparsedObject; -export const TIMESERIES = "timeseries"; -export const TOTAL = "total"; +export type SpansComputeType = typeof TIMESERIES| typeof TOTAL | UnparsedObject; +export const TIMESERIES = 'timeseries'; +export const TOTAL = 'total'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansFilter.ts b/packages/datadog-api-client-v2/models/SpansFilter.ts index 140b4126fce4..c77778f4448e 100644 --- a/packages/datadog-api-client-v2/models/SpansFilter.ts +++ b/packages/datadog-api-client-v2/models/SpansFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The spans filter used to index spans. - */ +*/ export class SpansFilter { /** * The search query - following the [span search syntax](https://docs.datadoghq.com/tracing/trace_explorer/query_syntax/). - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class SpansFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansFilterCreate.ts b/packages/datadog-api-client-v2/models/SpansFilterCreate.ts index 8f3e3e506438..dd5bff3a2a3b 100644 --- a/packages/datadog-api-client-v2/models/SpansFilterCreate.ts +++ b/packages/datadog-api-client-v2/models/SpansFilterCreate.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The spans filter. Spans matching this filter will be indexed and stored. - */ +*/ export class SpansFilterCreate { /** * The search query - following the [span search syntax](https://docs.datadoghq.com/tracing/trace_explorer/query_syntax/). - */ + */ "query": string; /** @@ -31,23 +36,49 @@ export class SpansFilterCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansFilterCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansGroupBy.ts b/packages/datadog-api-client-v2/models/SpansGroupBy.ts index 706a15dc2679..8d0368646211 100644 --- a/packages/datadog-api-client-v2/models/SpansGroupBy.ts +++ b/packages/datadog-api-client-v2/models/SpansGroupBy.ts @@ -8,36 +8,41 @@ import { SpansGroupByHistogram } from "./SpansGroupByHistogram"; import { SpansGroupByMissing } from "./SpansGroupByMissing"; import { SpansGroupByTotal } from "./SpansGroupByTotal"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class SpansGroupBy { /** * The name of the facet to use (required). - */ + */ "facet": string; /** * Used to perform a histogram computation (only for measure facets). * Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. - */ + */ "histogram"?: SpansGroupByHistogram; /** * The maximum buckets to return for this group by. - */ + */ "limit"?: number; /** * The value to use for spans that don't have the facet used to group by. - */ + */ "missing"?: SpansGroupByMissing; /** * A sort rule. - */ + */ "sort"?: SpansAggregateSort; /** * A resulting object to put the given computes in over all the matching records. - */ + */ "total"?: SpansGroupByTotal; /** @@ -56,44 +61,70 @@ export class SpansGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - facet: { - baseName: "facet", - type: "string", - required: true, - }, - histogram: { - baseName: "histogram", - type: "SpansGroupByHistogram", + "facet": { + "baseName": "facet", + "type": "string", + "required": true, }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "histogram": { + "baseName": "histogram", + "type": "SpansGroupByHistogram", }, - missing: { - baseName: "missing", - type: "SpansGroupByMissing", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - sort: { - baseName: "sort", - type: "SpansAggregateSort", + "missing": { + "baseName": "missing", + "type": "SpansGroupByMissing", }, - total: { - baseName: "total", - type: "SpansGroupByTotal", + "sort": { + "baseName": "sort", + "type": "SpansAggregateSort", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "total": { + "baseName": "total", + "type": "SpansGroupByTotal", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansGroupByHistogram.ts b/packages/datadog-api-client-v2/models/SpansGroupByHistogram.ts index 4d1e54507144..677d16d1fda3 100644 --- a/packages/datadog-api-client-v2/models/SpansGroupByHistogram.ts +++ b/packages/datadog-api-client-v2/models/SpansGroupByHistogram.ts @@ -4,26 +4,31 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Used to perform a histogram computation (only for measure facets). * Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. - */ +*/ export class SpansGroupByHistogram { /** * The bin size of the histogram buckets. - */ + */ "interval": number; /** * The maximum value for the measure used in the histogram * (values greater than this one are filtered out). - */ + */ "max": number; /** * The minimum value for the measure used in the histogram * (values smaller than this one are filtered out). - */ + */ "min": number; /** @@ -42,36 +47,62 @@ export class SpansGroupByHistogram { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - interval: { - baseName: "interval", - type: "number", - required: true, - format: "double", - }, - max: { - baseName: "max", - type: "number", - required: true, - format: "double", + "interval": { + "baseName": "interval", + "type": "number", + "required": true, + "format": "double", }, - min: { - baseName: "min", - type: "number", - required: true, - format: "double", + "max": { + "baseName": "max", + "type": "number", + "required": true, + "format": "double", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "min": { + "baseName": "min", + "type": "number", + "required": true, + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansGroupByHistogram.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansGroupByMissing.ts b/packages/datadog-api-client-v2/models/SpansGroupByMissing.ts index e9fc60155182..334e77d0f2f6 100644 --- a/packages/datadog-api-client-v2/models/SpansGroupByMissing.ts +++ b/packages/datadog-api-client-v2/models/SpansGroupByMissing.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The value to use for spans that don't have the facet used to group by. - */ +*/ -export type SpansGroupByMissing = string | number | UnparsedObject; +export type SpansGroupByMissing = string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansGroupByTotal.ts b/packages/datadog-api-client-v2/models/SpansGroupByTotal.ts index c41b72d040ef..8dd528f9563c 100644 --- a/packages/datadog-api-client-v2/models/SpansGroupByTotal.ts +++ b/packages/datadog-api-client-v2/models/SpansGroupByTotal.ts @@ -4,10 +4,15 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * A resulting object to put the given computes in over all the matching records. - */ +*/ -export type SpansGroupByTotal = boolean | string | number | UnparsedObject; +export type SpansGroupByTotal = boolean | string | number | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansListRequest.ts b/packages/datadog-api-client-v2/models/SpansListRequest.ts index 8eb4289247ed..33cdb1080006 100644 --- a/packages/datadog-api-client-v2/models/SpansListRequest.ts +++ b/packages/datadog-api-client-v2/models/SpansListRequest.ts @@ -5,15 +5,20 @@ */ import { SpansListRequestData } from "./SpansListRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The request for a spans list. - */ +*/ export class SpansListRequest { /** * The object containing the query content. - */ + */ "data"?: SpansListRequestData; /** @@ -32,22 +37,48 @@ export class SpansListRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SpansListRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SpansListRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansListRequestAttributes.ts b/packages/datadog-api-client-v2/models/SpansListRequestAttributes.ts index a01277e1ae2a..3e7f6ee404ae 100644 --- a/packages/datadog-api-client-v2/models/SpansListRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansListRequestAttributes.ts @@ -8,28 +8,33 @@ import { SpansQueryFilter } from "./SpansQueryFilter"; import { SpansQueryOptions } from "./SpansQueryOptions"; import { SpansSort } from "./SpansSort"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing all the query parameters. - */ +*/ export class SpansListRequestAttributes { /** * The search and filter query settings. - */ + */ "filter"?: SpansQueryFilter; /** * Global query options that are used during the query. * Note: You should only supply timezone or time offset but not both otherwise the query will fail. - */ + */ "options"?: SpansQueryOptions; /** * Paging attributes for listing spans. - */ + */ "page"?: SpansListRequestPage; /** * Sort parameters when querying spans. - */ + */ "sort"?: SpansSort; /** @@ -48,34 +53,60 @@ export class SpansListRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - filter: { - baseName: "filter", - type: "SpansQueryFilter", + "filter": { + "baseName": "filter", + "type": "SpansQueryFilter", }, - options: { - baseName: "options", - type: "SpansQueryOptions", + "options": { + "baseName": "options", + "type": "SpansQueryOptions", }, - page: { - baseName: "page", - type: "SpansListRequestPage", + "page": { + "baseName": "page", + "type": "SpansListRequestPage", }, - sort: { - baseName: "sort", - type: "SpansSort", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "sort": { + "baseName": "sort", + "type": "SpansSort", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansListRequestData.ts b/packages/datadog-api-client-v2/models/SpansListRequestData.ts index e70bc04757ab..abab01ae919a 100644 --- a/packages/datadog-api-client-v2/models/SpansListRequestData.ts +++ b/packages/datadog-api-client-v2/models/SpansListRequestData.ts @@ -6,19 +6,24 @@ import { SpansListRequestAttributes } from "./SpansListRequestAttributes"; import { SpansListRequestType } from "./SpansListRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object containing the query content. - */ +*/ export class SpansListRequestData { /** * The object containing all the query parameters. - */ + */ "attributes"?: SpansListRequestAttributes; /** * The type of resource. The value should always be search_request. - */ + */ "type"?: SpansListRequestType; /** @@ -37,26 +42,52 @@ export class SpansListRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansListRequestAttributes", + "attributes": { + "baseName": "attributes", + "type": "SpansListRequestAttributes", }, - type: { - baseName: "type", - type: "SpansListRequestType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansListRequestType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansListRequestPage.ts b/packages/datadog-api-client-v2/models/SpansListRequestPage.ts index 3a1b3d4f7406..b197f3d4eda8 100644 --- a/packages/datadog-api-client-v2/models/SpansListRequestPage.ts +++ b/packages/datadog-api-client-v2/models/SpansListRequestPage.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes for listing spans. - */ +*/ export class SpansListRequestPage { /** * List following results with a cursor provided in the previous query. - */ + */ "cursor"?: string; /** * Maximum number of spans in the response. - */ + */ "limit"?: number; /** @@ -35,27 +40,53 @@ export class SpansListRequestPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - cursor: { - baseName: "cursor", - type: "string", + "cursor": { + "baseName": "cursor", + "type": "string", }, - limit: { - baseName: "limit", - type: "number", - format: "int32", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int32", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListRequestPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansListRequestType.ts b/packages/datadog-api-client-v2/models/SpansListRequestType.ts index 55e6f9461f5d..139ec57e6595 100644 --- a/packages/datadog-api-client-v2/models/SpansListRequestType.ts +++ b/packages/datadog-api-client-v2/models/SpansListRequestType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of resource. The value should always be search_request. - */ +*/ export type SpansListRequestType = typeof SEARCH_REQUEST | UnparsedObject; -export const SEARCH_REQUEST = "search_request"; +export const SEARCH_REQUEST = 'search_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansListResponse.ts b/packages/datadog-api-client-v2/models/SpansListResponse.ts index bca2693e869d..8da5a8f463ea 100644 --- a/packages/datadog-api-client-v2/models/SpansListResponse.ts +++ b/packages/datadog-api-client-v2/models/SpansListResponse.ts @@ -7,23 +7,28 @@ import { Span } from "./Span"; import { SpansListResponseLinks } from "./SpansListResponseLinks"; import { SpansListResponseMetadata } from "./SpansListResponseMetadata"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response object with all spans matching the request and pagination information. - */ +*/ export class SpansListResponse { /** * Array of spans matching the request. - */ + */ "data"?: Array; /** * Links attributes. - */ + */ "links"?: SpansListResponseLinks; /** * The metadata associated with a request. - */ + */ "meta"?: SpansListResponseMetadata; /** @@ -42,30 +47,56 @@ export class SpansListResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - links: { - baseName: "links", - type: "SpansListResponseLinks", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "SpansListResponseMetadata", + "links": { + "baseName": "links", + "type": "SpansListResponseLinks", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "SpansListResponseMetadata", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansListResponseLinks.ts b/packages/datadog-api-client-v2/models/SpansListResponseLinks.ts index 59257dee9c23..95124a2f7d4b 100644 --- a/packages/datadog-api-client-v2/models/SpansListResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/SpansListResponseLinks.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class SpansListResponseLinks { /** * Link for the next set of results. Note that the request can also be made using the * POST endpoint. - */ + */ "next"?: string; /** @@ -32,22 +37,48 @@ export class SpansListResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - next: { - baseName: "next", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "next": { + "baseName": "next", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansListResponseMetadata.ts b/packages/datadog-api-client-v2/models/SpansListResponseMetadata.ts index b860d9ef060b..41c9c21ce1f6 100644 --- a/packages/datadog-api-client-v2/models/SpansListResponseMetadata.ts +++ b/packages/datadog-api-client-v2/models/SpansListResponseMetadata.ts @@ -7,32 +7,37 @@ import { SpansAggregateResponseStatus } from "./SpansAggregateResponseStatus"; import { SpansResponseMetadataPage } from "./SpansResponseMetadataPage"; import { SpansWarning } from "./SpansWarning"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The metadata associated with a request. - */ +*/ export class SpansListResponseMetadata { /** * The time elapsed in milliseconds. - */ + */ "elapsed"?: number; /** * Paging attributes. - */ + */ "page"?: SpansResponseMetadataPage; /** * The identifier of the request. - */ + */ "requestId"?: string; /** * The status of the response. - */ + */ "status"?: SpansAggregateResponseStatus; /** * A list of warnings (non fatal errors) encountered, partial results might be returned if * warnings are present in the response. - */ + */ "warnings"?: Array; /** @@ -51,39 +56,65 @@ export class SpansListResponseMetadata { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - elapsed: { - baseName: "elapsed", - type: "number", - format: "int64", + "elapsed": { + "baseName": "elapsed", + "type": "number", + "format": "int64", }, - page: { - baseName: "page", - type: "SpansResponseMetadataPage", + "page": { + "baseName": "page", + "type": "SpansResponseMetadataPage", }, - requestId: { - baseName: "request_id", - type: "string", + "requestId": { + "baseName": "request_id", + "type": "string", }, - status: { - baseName: "status", - type: "SpansAggregateResponseStatus", + "status": { + "baseName": "status", + "type": "SpansAggregateResponseStatus", }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "warnings": { + "baseName": "warnings", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansListResponseMetadata.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricCompute.ts b/packages/datadog-api-client-v2/models/SpansMetricCompute.ts index bf060cec19d4..3bbe0a4c39d0 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricCompute.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricCompute.ts @@ -5,24 +5,29 @@ */ import { SpansMetricComputeAggregationType } from "./SpansMetricComputeAggregationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the span-based metric. - */ +*/ export class SpansMetricCompute { /** * The type of aggregation to use. - */ + */ "aggregationType": SpansMetricComputeAggregationType; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution"). - */ + */ "path"?: string; /** @@ -41,31 +46,57 @@ export class SpansMetricCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationType: { - baseName: "aggregation_type", - type: "SpansMetricComputeAggregationType", - required: true, - }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "aggregationType": { + "baseName": "aggregation_type", + "type": "SpansMetricComputeAggregationType", + "required": true, }, - path: { - baseName: "path", - type: "string", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.ts b/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.ts index 355e3bd8f600..de6652631ce1 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of aggregation to use. - */ +*/ -export type SpansMetricComputeAggregationType = - | typeof COUNT - | typeof DISTRIBUTION - | UnparsedObject; -export const COUNT = "count"; -export const DISTRIBUTION = "distribution"; +export type SpansMetricComputeAggregationType = typeof COUNT| typeof DISTRIBUTION | UnparsedObject; +export const COUNT = 'count'; +export const DISTRIBUTION = 'distribution'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.ts b/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.ts index f666dee45964..ea12b90c5060 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.ts @@ -7,23 +7,28 @@ import { SpansMetricCompute } from "./SpansMetricCompute"; import { SpansMetricFilter } from "./SpansMetricFilter"; import { SpansMetricGroupBy } from "./SpansMetricGroupBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing the Datadog span-based metric to create. - */ +*/ export class SpansMetricCreateAttributes { /** * The compute rule to compute the span-based metric. - */ + */ "compute": SpansMetricCompute; /** * The span-based metric filter. Spans matching this filter will be aggregated in this metric. - */ + */ "filter"?: SpansMetricFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,31 +47,57 @@ export class SpansMetricCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "SpansMetricCompute", - required: true, - }, - filter: { - baseName: "filter", - type: "SpansMetricFilter", + "compute": { + "baseName": "compute", + "type": "SpansMetricCompute", + "required": true, }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "SpansMetricFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricCreateData.ts b/packages/datadog-api-client-v2/models/SpansMetricCreateData.ts index 8df91b80b4ae..a7a346b41968 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricCreateData.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricCreateData.ts @@ -6,23 +6,28 @@ import { SpansMetricCreateAttributes } from "./SpansMetricCreateAttributes"; import { SpansMetricType } from "./SpansMetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new span-based metric properties. - */ +*/ export class SpansMetricCreateData { /** * The object describing the Datadog span-based metric to create. - */ + */ "attributes": SpansMetricCreateAttributes; /** * The name of the span-based metric. - */ + */ "id": string; /** * The type of resource. The value should always be spans_metrics. - */ + */ "type": SpansMetricType; /** @@ -41,33 +46,59 @@ export class SpansMetricCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansMetricCreateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SpansMetricCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SpansMetricType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansMetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.ts b/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.ts index 66223cb40af4..4de27dd24760 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.ts @@ -5,15 +5,20 @@ */ import { SpansMetricCreateData } from "./SpansMetricCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new span-based metric body. - */ +*/ export class SpansMetricCreateRequest { /** * The new span-based metric properties. - */ + */ "data": SpansMetricCreateData; /** @@ -32,23 +37,49 @@ export class SpansMetricCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SpansMetricCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SpansMetricCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricFilter.ts b/packages/datadog-api-client-v2/models/SpansMetricFilter.ts index 9f1050ccdb78..f1a6a0a6ae49 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricFilter.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The span-based metric filter. Spans matching this filter will be aggregated in this metric. - */ +*/ export class SpansMetricFilter { /** * The search query - following the span search syntax. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class SpansMetricFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricGroupBy.ts b/packages/datadog-api-client-v2/models/SpansMetricGroupBy.ts index 29d4c2ce1c10..bb3cf4a9a931 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricGroupBy.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricGroupBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class SpansMetricGroupBy { /** * The path to the value the span-based metric will be aggregated over. - */ + */ "path": string; /** * Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. - */ + */ "tagName"?: string; /** @@ -35,27 +40,53 @@ export class SpansMetricGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - path: { - baseName: "path", - type: "string", - required: true, + "path": { + "baseName": "path", + "type": "string", + "required": true, }, - tagName: { - baseName: "tag_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagName": { + "baseName": "tag_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricResponse.ts b/packages/datadog-api-client-v2/models/SpansMetricResponse.ts index 7e71ec8bf49f..9eaff511b009 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricResponse.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricResponse.ts @@ -5,15 +5,20 @@ */ import { SpansMetricResponseData } from "./SpansMetricResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The span-based metric object. - */ +*/ export class SpansMetricResponse { /** * The span-based metric properties. - */ + */ "data"?: SpansMetricResponseData; /** @@ -32,22 +37,48 @@ export class SpansMetricResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SpansMetricResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SpansMetricResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.ts b/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.ts index b27ae3cbd7d5..e234c1b28ff5 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.ts @@ -7,23 +7,28 @@ import { SpansMetricResponseCompute } from "./SpansMetricResponseCompute"; import { SpansMetricResponseFilter } from "./SpansMetricResponseFilter"; import { SpansMetricResponseGroupBy } from "./SpansMetricResponseGroupBy"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a Datadog span-based metric. - */ +*/ export class SpansMetricResponseAttributes { /** * The compute rule to compute the span-based metric. - */ + */ "compute"?: SpansMetricResponseCompute; /** * The span-based metric filter. Spans matching this filter will be aggregated in this metric. - */ + */ "filter"?: SpansMetricResponseFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,30 +47,56 @@ export class SpansMetricResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "SpansMetricResponseCompute", - }, - filter: { - baseName: "filter", - type: "SpansMetricResponseFilter", + "compute": { + "baseName": "compute", + "type": "SpansMetricResponseCompute", }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "SpansMetricResponseFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.ts b/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.ts index ab180380ebad..a294674daec5 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.ts @@ -5,24 +5,29 @@ */ import { SpansMetricComputeAggregationType } from "./SpansMetricComputeAggregationType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the span-based metric. - */ +*/ export class SpansMetricResponseCompute { /** * The type of aggregation to use. - */ + */ "aggregationType"?: SpansMetricComputeAggregationType; /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** * The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution"). - */ + */ "path"?: string; /** @@ -41,30 +46,56 @@ export class SpansMetricResponseCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - aggregationType: { - baseName: "aggregation_type", - type: "SpansMetricComputeAggregationType", - }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", + "aggregationType": { + "baseName": "aggregation_type", + "type": "SpansMetricComputeAggregationType", }, - path: { - baseName: "path", - type: "string", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "path": { + "baseName": "path", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricResponseCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricResponseData.ts b/packages/datadog-api-client-v2/models/SpansMetricResponseData.ts index 02fe78f2cd73..09eeb8ffe741 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricResponseData.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricResponseData.ts @@ -6,23 +6,28 @@ import { SpansMetricResponseAttributes } from "./SpansMetricResponseAttributes"; import { SpansMetricType } from "./SpansMetricType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The span-based metric properties. - */ +*/ export class SpansMetricResponseData { /** * The object describing a Datadog span-based metric. - */ + */ "attributes"?: SpansMetricResponseAttributes; /** * The name of the span-based metric. - */ + */ "id"?: string; /** * The type of resource. The value should always be spans_metrics. - */ + */ "type"?: SpansMetricType; /** @@ -41,30 +46,56 @@ export class SpansMetricResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansMetricResponseAttributes", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "SpansMetricResponseAttributes", }, - type: { - baseName: "type", - type: "SpansMetricType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansMetricType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.ts b/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.ts index 8257be8d71b9..5c04edc82ab0 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The span-based metric filter. Spans matching this filter will be aggregated in this metric. - */ +*/ export class SpansMetricResponseFilter { /** * The search query - following the span search syntax. - */ + */ "query"?: string; /** @@ -31,22 +36,48 @@ export class SpansMetricResponseFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - query: { - baseName: "query", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "query": { + "baseName": "query", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricResponseFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.ts b/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.ts index 1f699356343b..f0c5bdfb97c3 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A group by rule. - */ +*/ export class SpansMetricResponseGroupBy { /** * The path to the value the span-based metric will be aggregated over. - */ + */ "path"?: string; /** * Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. - */ + */ "tagName"?: string; /** @@ -35,26 +40,52 @@ export class SpansMetricResponseGroupBy { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - path: { - baseName: "path", - type: "string", + "path": { + "baseName": "path", + "type": "string", }, - tagName: { - baseName: "tag_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tagName": { + "baseName": "tag_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricResponseGroupBy.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricType.ts b/packages/datadog-api-client-v2/models/SpansMetricType.ts index 108d7dd5dd64..e0db6070ca61 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricType.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of resource. The value should always be spans_metrics. - */ +*/ export type SpansMetricType = typeof SPANS_METRICS | UnparsedObject; -export const SPANS_METRICS = "spans_metrics"; +export const SPANS_METRICS = 'spans_metrics'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.ts b/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.ts index 7e507853efd5..7bfa11f036a6 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.ts @@ -7,23 +7,28 @@ import { SpansMetricFilter } from "./SpansMetricFilter"; import { SpansMetricGroupBy } from "./SpansMetricGroupBy"; import { SpansMetricUpdateCompute } from "./SpansMetricUpdateCompute"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The span-based metric properties that will be updated. - */ +*/ export class SpansMetricUpdateAttributes { /** * The compute rule to compute the span-based metric. - */ + */ "compute"?: SpansMetricUpdateCompute; /** * The span-based metric filter. Spans matching this filter will be aggregated in this metric. - */ + */ "filter"?: SpansMetricFilter; /** * The rules for the group by. - */ + */ "groupBy"?: Array; /** @@ -42,30 +47,56 @@ export class SpansMetricUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "SpansMetricUpdateCompute", - }, - filter: { - baseName: "filter", - type: "SpansMetricFilter", + "compute": { + "baseName": "compute", + "type": "SpansMetricUpdateCompute", }, - groupBy: { - baseName: "group_by", - type: "Array", + "filter": { + "baseName": "filter", + "type": "SpansMetricFilter", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "groupBy": { + "baseName": "group_by", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.ts b/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.ts index 6f008b5243f3..cf502ddf6dbe 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The compute rule to compute the span-based metric. - */ +*/ export class SpansMetricUpdateCompute { /** * Toggle to include or exclude percentile aggregations for distribution metrics. * Only present when the `aggregation_type` is `distribution`. - */ + */ "includePercentiles"?: boolean; /** @@ -32,22 +37,48 @@ export class SpansMetricUpdateCompute { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includePercentiles": { + "baseName": "include_percentiles", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricUpdateCompute.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricUpdateData.ts b/packages/datadog-api-client-v2/models/SpansMetricUpdateData.ts index ae9a87175b63..197ea597c79e 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricUpdateData.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricUpdateData.ts @@ -6,19 +6,24 @@ import { SpansMetricType } from "./SpansMetricType"; import { SpansMetricUpdateAttributes } from "./SpansMetricUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new span-based metric properties. - */ +*/ export class SpansMetricUpdateData { /** * The span-based metric properties that will be updated. - */ + */ "attributes": SpansMetricUpdateAttributes; /** * The type of resource. The value should always be spans_metrics. - */ + */ "type": SpansMetricType; /** @@ -37,28 +42,54 @@ export class SpansMetricUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SpansMetricUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "SpansMetricUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "SpansMetricType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "SpansMetricType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.ts b/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.ts index 557a808d2a89..396cc3e7c4ce 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { SpansMetricUpdateData } from "./SpansMetricUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The new span-based metric body. - */ +*/ export class SpansMetricUpdateRequest { /** * The new span-based metric properties. - */ + */ "data": SpansMetricUpdateData; /** @@ -32,23 +37,49 @@ export class SpansMetricUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SpansMetricUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "SpansMetricUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansMetricsResponse.ts b/packages/datadog-api-client-v2/models/SpansMetricsResponse.ts index e9132267f08e..30b981e3739f 100644 --- a/packages/datadog-api-client-v2/models/SpansMetricsResponse.ts +++ b/packages/datadog-api-client-v2/models/SpansMetricsResponse.ts @@ -5,15 +5,20 @@ */ import { SpansMetricResponseData } from "./SpansMetricResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * All the available span-based metric objects. - */ +*/ export class SpansMetricsResponse { /** * A list of span-based metric objects. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class SpansMetricsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansMetricsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansQueryFilter.ts b/packages/datadog-api-client-v2/models/SpansQueryFilter.ts index e332cedc8fab..d85cdf3b8088 100644 --- a/packages/datadog-api-client-v2/models/SpansQueryFilter.ts +++ b/packages/datadog-api-client-v2/models/SpansQueryFilter.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The search and filter query settings. - */ +*/ export class SpansQueryFilter { /** * The minimum time for the requested spans, supports date-time ISO8601, date math, and regular timestamps (milliseconds). - */ + */ "from"?: string; /** * The search query - following the span search syntax. - */ + */ "query"?: string; /** * The maximum time for the requested spans, supports date-time ISO8601, date math, and regular timestamps (milliseconds). - */ + */ "to"?: string; /** @@ -39,30 +44,56 @@ export class SpansQueryFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "string", - }, - query: { - baseName: "query", - type: "string", + "from": { + "baseName": "from", + "type": "string", }, - to: { - baseName: "to", - type: "string", + "query": { + "baseName": "query", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansQueryFilter.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansQueryOptions.ts b/packages/datadog-api-client-v2/models/SpansQueryOptions.ts index ae522893366e..647983488555 100644 --- a/packages/datadog-api-client-v2/models/SpansQueryOptions.ts +++ b/packages/datadog-api-client-v2/models/SpansQueryOptions.ts @@ -4,20 +4,25 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Global query options that are used during the query. * Note: You should only supply timezone or time offset but not both otherwise the query will fail. - */ +*/ export class SpansQueryOptions { /** * The time offset (in seconds) to apply to the query. - */ + */ "timeOffset"?: number; /** * The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). - */ + */ "timezone"?: string; /** @@ -36,27 +41,53 @@ export class SpansQueryOptions { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timeOffset: { - baseName: "timeOffset", - type: "number", - format: "int64", + "timeOffset": { + "baseName": "timeOffset", + "type": "number", + "format": "int64", }, - timezone: { - baseName: "timezone", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "timezone": { + "baseName": "timezone", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansQueryOptions.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansResponseMetadataPage.ts b/packages/datadog-api-client-v2/models/SpansResponseMetadataPage.ts index e74010229f97..23d5234a324a 100644 --- a/packages/datadog-api-client-v2/models/SpansResponseMetadataPage.ts +++ b/packages/datadog-api-client-v2/models/SpansResponseMetadataPage.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Paging attributes. - */ +*/ export class SpansResponseMetadataPage { /** * The cursor to use to get the next results, if any. To make the next request, use the same * parameters with the addition of the `page[cursor]`. - */ + */ "after"?: string; /** @@ -32,22 +37,48 @@ export class SpansResponseMetadataPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - after: { - baseName: "after", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "after": { + "baseName": "after", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansResponseMetadataPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpansSort.ts b/packages/datadog-api-client-v2/models/SpansSort.ts index 710f62b7179e..8794d254071b 100644 --- a/packages/datadog-api-client-v2/models/SpansSort.ts +++ b/packages/datadog-api-client-v2/models/SpansSort.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Sort parameters when querying spans. - */ +*/ -export type SpansSort = - | typeof TIMESTAMP_ASCENDING - | typeof TIMESTAMP_DESCENDING - | UnparsedObject; -export const TIMESTAMP_ASCENDING = "timestamp"; -export const TIMESTAMP_DESCENDING = "-timestamp"; +export type SpansSort = typeof TIMESTAMP_ASCENDING| typeof TIMESTAMP_DESCENDING | UnparsedObject; +export const TIMESTAMP_ASCENDING = 'timestamp'; +export const TIMESTAMP_DESCENDING = '-timestamp'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansSortOrder.ts b/packages/datadog-api-client-v2/models/SpansSortOrder.ts index f0a41c647073..33df6e29271e 100644 --- a/packages/datadog-api-client-v2/models/SpansSortOrder.ts +++ b/packages/datadog-api-client-v2/models/SpansSortOrder.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The order to use, ascending or descending. - */ +*/ -export type SpansSortOrder = - | typeof ASCENDING - | typeof DESCENDING - | UnparsedObject; -export const ASCENDING = "asc"; -export const DESCENDING = "desc"; +export type SpansSortOrder = typeof ASCENDING| typeof DESCENDING | UnparsedObject; +export const ASCENDING = 'asc'; +export const DESCENDING = 'desc'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansType.ts b/packages/datadog-api-client-v2/models/SpansType.ts index fb28b60f22cc..68e86c4e3cbe 100644 --- a/packages/datadog-api-client-v2/models/SpansType.ts +++ b/packages/datadog-api-client-v2/models/SpansType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of the span. - */ +*/ export type SpansType = typeof SPANS | UnparsedObject; -export const SPANS = "spans"; +export const SPANS = 'spans'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/SpansWarning.ts b/packages/datadog-api-client-v2/models/SpansWarning.ts index 8e37abe4d33b..7c236d068c75 100644 --- a/packages/datadog-api-client-v2/models/SpansWarning.ts +++ b/packages/datadog-api-client-v2/models/SpansWarning.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A warning message indicating something that went wrong with the query. - */ +*/ export class SpansWarning { /** * A unique code for this type of warning. - */ + */ "code"?: string; /** * A detailed explanation of this specific warning. - */ + */ "detail"?: string; /** * A short human-readable summary of the warning. - */ + */ "title"?: string; /** @@ -39,30 +44,56 @@ export class SpansWarning { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - detail: { - baseName: "detail", - type: "string", + "code": { + "baseName": "code", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "detail": { + "baseName": "detail", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return SpansWarning.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Spec.ts b/packages/datadog-api-client-v2/models/Spec.ts index 0bd66f6a56f2..1369a5b7a8ae 100644 --- a/packages/datadog-api-client-v2/models/Spec.ts +++ b/packages/datadog-api-client-v2/models/Spec.ts @@ -10,39 +10,44 @@ import { OutputSchema } from "./OutputSchema"; import { Step } from "./Step"; import { Trigger } from "./Trigger"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The spec defines what the workflow does. - */ +*/ export class Spec { /** * A list of annotations used in the workflow. These are like sticky notes for your workflow! - */ + */ "annotations"?: Array; /** * A list of connections or connection groups used in the workflow. - */ + */ "connectionEnvs"?: Array; /** * Unique identifier used to trigger workflows automatically in Datadog. - */ + */ "handle"?: string; /** * A list of input parameters for the workflow. These can be used as dynamic runtime values in your workflow. - */ + */ "inputSchema"?: InputSchema; /** * A list of output parameters for the workflow. - */ + */ "outputSchema"?: OutputSchema; /** * A `Step` is a sub-component of a workflow. Each `Step` performs an action. - */ + */ "steps"?: Array; /** * The list of triggers that activate this workflow. At least one trigger is required, and each trigger type may appear at most once. - */ + */ "triggers"?: Array; /** @@ -61,46 +66,72 @@ export class Spec { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - annotations: { - baseName: "annotations", - type: "Array", - }, - connectionEnvs: { - baseName: "connectionEnvs", - type: "Array", + "annotations": { + "baseName": "annotations", + "type": "Array", }, - handle: { - baseName: "handle", - type: "string", + "connectionEnvs": { + "baseName": "connectionEnvs", + "type": "Array", }, - inputSchema: { - baseName: "inputSchema", - type: "InputSchema", + "handle": { + "baseName": "handle", + "type": "string", }, - outputSchema: { - baseName: "outputSchema", - type: "OutputSchema", + "inputSchema": { + "baseName": "inputSchema", + "type": "InputSchema", }, - steps: { - baseName: "steps", - type: "Array", + "outputSchema": { + "baseName": "outputSchema", + "type": "OutputSchema", }, - triggers: { - baseName: "triggers", - type: "Array", + "steps": { + "baseName": "steps", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "triggers": { + "baseName": "triggers", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Spec.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/SpecVersion.ts b/packages/datadog-api-client-v2/models/SpecVersion.ts index 15c8a5fc568a..f4a433644841 100644 --- a/packages/datadog-api-client-v2/models/SpecVersion.ts +++ b/packages/datadog-api-client-v2/models/SpecVersion.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The version of the CycloneDX specification a BOM conforms to. - */ +*/ -export type SpecVersion = - | typeof ONE_ZERO - | typeof ONE_ONE - | typeof ONE_TWO - | typeof ONE_THREE - | typeof ONE_FOUR - | typeof ONE_FIVE - | UnparsedObject; -export const ONE_ZERO = "1.0"; -export const ONE_ONE = "1.1"; -export const ONE_TWO = "1.2"; -export const ONE_THREE = "1.3"; -export const ONE_FOUR = "1.4"; -export const ONE_FIVE = "1.5"; +export type SpecVersion = typeof ONE_ZERO| typeof ONE_ONE| typeof ONE_TWO| typeof ONE_THREE| typeof ONE_FOUR| typeof ONE_FIVE | UnparsedObject; +export const ONE_ZERO = '1.0'; +export const ONE_ONE = '1.1'; +export const ONE_TWO = '1.2'; +export const ONE_THREE = '1.3'; +export const ONE_FOUR = '1.4'; +export const ONE_FIVE = '1.5'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/State.ts b/packages/datadog-api-client-v2/models/State.ts index 14573c3c58e9..a1afb7aa90fb 100644 --- a/packages/datadog-api-client-v2/models/State.ts +++ b/packages/datadog-api-client-v2/models/State.ts @@ -4,13 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The state of the rule evaluation. - */ +*/ -export type State = typeof PASS | typeof FAIL | typeof SKIP | UnparsedObject; -export const PASS = "pass"; -export const FAIL = "fail"; -export const SKIP = "skip"; +export type State = typeof PASS| typeof FAIL| typeof SKIP | UnparsedObject; +export const PASS = 'pass'; +export const FAIL = 'fail'; +export const SKIP = 'skip'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/StateVariable.ts b/packages/datadog-api-client-v2/models/StateVariable.ts index e17681710005..8c08a1e2ca1b 100644 --- a/packages/datadog-api-client-v2/models/StateVariable.ts +++ b/packages/datadog-api-client-v2/models/StateVariable.ts @@ -6,27 +6,32 @@ import { StateVariableProperties } from "./StateVariableProperties"; import { StateVariableType } from "./StateVariableType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A variable, which can be set and read by other components in the app. - */ +*/ export class StateVariable { /** * The ID of the state variable. - */ + */ "id": string; /** * A unique identifier for this state variable. This name is also used to access the variable's value throughout the app. - */ + */ "name": string; /** * The properties of the state variable. - */ + */ "properties": StateVariableProperties; /** * The state variable type. - */ + */ "type": StateVariableType; /** @@ -45,39 +50,65 @@ export class StateVariable { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - properties: { - baseName: "properties", - type: "StateVariableProperties", - required: true, + "properties": { + "baseName": "properties", + "type": "StateVariableProperties", + "required": true, }, - type: { - baseName: "type", - type: "StateVariableType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "StateVariableType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return StateVariable.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/StateVariableProperties.ts b/packages/datadog-api-client-v2/models/StateVariableProperties.ts index 02b90f40d5d5..efa0bc67d0af 100644 --- a/packages/datadog-api-client-v2/models/StateVariableProperties.ts +++ b/packages/datadog-api-client-v2/models/StateVariableProperties.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The properties of the state variable. - */ +*/ export class StateVariableProperties { /** * The default value of the state variable. - */ + */ "defaultValue"?: any; /** @@ -31,22 +36,48 @@ export class StateVariableProperties { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - defaultValue: { - baseName: "defaultValue", - type: "any", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "defaultValue": { + "baseName": "defaultValue", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return StateVariableProperties.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/StateVariableType.ts b/packages/datadog-api-client-v2/models/StateVariableType.ts index 63f2d025d31b..6a1ecfce9365 100644 --- a/packages/datadog-api-client-v2/models/StateVariableType.ts +++ b/packages/datadog-api-client-v2/models/StateVariableType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The state variable type. - */ +*/ export type StateVariableType = typeof STATEVARIABLE | UnparsedObject; -export const STATEVARIABLE = "stateVariable"; +export const STATEVARIABLE = 'stateVariable'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Step.ts b/packages/datadog-api-client-v2/models/Step.ts index ba375cb6ef36..8457a38b092c 100644 --- a/packages/datadog-api-client-v2/models/Step.ts +++ b/packages/datadog-api-client-v2/models/Step.ts @@ -10,47 +10,52 @@ import { Parameter } from "./Parameter"; import { ReadinessGate } from "./ReadinessGate"; import { StepDisplay } from "./StepDisplay"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A Step is a sub-component of a workflow. Each Step performs an action. - */ +*/ export class Step { /** * The unique identifier of an action. - */ + */ "actionId": string; /** * Used to create conditions before running subsequent actions. - */ + */ "completionGate"?: CompletionGate; /** * The unique identifier of a connection defined in the spec. - */ + */ "connectionLabel"?: string; /** * The definition of `StepDisplay` object. - */ + */ "display"?: StepDisplay; /** * The `Step` `errorHandlers`. - */ + */ "errorHandlers"?: Array; /** * Name of the step. - */ + */ "name": string; /** * A list of subsequent actions to run. - */ + */ "outboundEdges"?: Array; /** * A list of inputs for an action. - */ + */ "parameters"?: Array; /** * Used to merge multiple branches into a single branch. - */ + */ "readinessGate"?: ReadinessGate; /** @@ -69,56 +74,82 @@ export class Step { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - actionId: { - baseName: "actionId", - type: "string", - required: true, + "actionId": { + "baseName": "actionId", + "type": "string", + "required": true, }, - completionGate: { - baseName: "completionGate", - type: "CompletionGate", + "completionGate": { + "baseName": "completionGate", + "type": "CompletionGate", }, - connectionLabel: { - baseName: "connectionLabel", - type: "string", + "connectionLabel": { + "baseName": "connectionLabel", + "type": "string", }, - display: { - baseName: "display", - type: "StepDisplay", + "display": { + "baseName": "display", + "type": "StepDisplay", }, - errorHandlers: { - baseName: "errorHandlers", - type: "Array", + "errorHandlers": { + "baseName": "errorHandlers", + "type": "Array", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - outboundEdges: { - baseName: "outboundEdges", - type: "Array", + "outboundEdges": { + "baseName": "outboundEdges", + "type": "Array", }, - parameters: { - baseName: "parameters", - type: "Array", + "parameters": { + "baseName": "parameters", + "type": "Array", }, - readinessGate: { - baseName: "readinessGate", - type: "ReadinessGate", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "readinessGate": { + "baseName": "readinessGate", + "type": "ReadinessGate", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Step.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/StepDisplay.ts b/packages/datadog-api-client-v2/models/StepDisplay.ts index 3ac3fb756994..b903456d6bdb 100644 --- a/packages/datadog-api-client-v2/models/StepDisplay.ts +++ b/packages/datadog-api-client-v2/models/StepDisplay.ts @@ -5,15 +5,20 @@ */ import { StepDisplayBounds } from "./StepDisplayBounds"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `StepDisplay` object. - */ +*/ export class StepDisplay { /** * The definition of `StepDisplayBounds` object. - */ + */ "bounds"?: StepDisplayBounds; /** @@ -32,22 +37,48 @@ export class StepDisplay { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - bounds: { - baseName: "bounds", - type: "StepDisplayBounds", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "bounds": { + "baseName": "bounds", + "type": "StepDisplayBounds", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return StepDisplay.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/StepDisplayBounds.ts b/packages/datadog-api-client-v2/models/StepDisplayBounds.ts index df7cb1150232..824d7aecab1e 100644 --- a/packages/datadog-api-client-v2/models/StepDisplayBounds.ts +++ b/packages/datadog-api-client-v2/models/StepDisplayBounds.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `StepDisplayBounds` object. - */ +*/ export class StepDisplayBounds { /** * The `bounds` `x`. - */ + */ "x"?: number; /** * The `bounds` `y`. - */ + */ "y"?: number; /** @@ -35,28 +40,54 @@ export class StepDisplayBounds { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - x: { - baseName: "x", - type: "number", - format: "double", + "x": { + "baseName": "x", + "type": "number", + "format": "double", }, - y: { - baseName: "y", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "y": { + "baseName": "y", + "type": "number", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return StepDisplayBounds.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/Team.ts b/packages/datadog-api-client-v2/models/Team.ts index 02d2cec5f164..d2758af72100 100644 --- a/packages/datadog-api-client-v2/models/Team.ts +++ b/packages/datadog-api-client-v2/models/Team.ts @@ -7,27 +7,32 @@ import { TeamAttributes } from "./TeamAttributes"; import { TeamRelationships } from "./TeamRelationships"; import { TeamType } from "./TeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A team - */ +*/ export class Team { /** * Team attributes - */ + */ "attributes": TeamAttributes; /** * The team's identifier - */ + */ "id": string; /** * Resources related to a team - */ + */ "relationships"?: TeamRelationships; /** * Team type - */ + */ "type": TeamType; /** @@ -46,37 +51,63 @@ export class Team { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "TeamAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "TeamRelationships", + "relationships": { + "baseName": "relationships", + "type": "TeamRelationships", }, - type: { - baseName: "type", - type: "TeamType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Team.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamAttributes.ts b/packages/datadog-api-client-v2/models/TeamAttributes.ts index a919045fba6b..7f6b259967e5 100644 --- a/packages/datadog-api-client-v2/models/TeamAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamAttributes.ts @@ -4,59 +4,64 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team attributes - */ +*/ export class TeamAttributes { /** * Unicode representation of the avatar for the team, limited to a single grapheme - */ + */ "avatar"?: string; /** * Banner selection for the team - */ + */ "banner"?: number; /** * Creation date of the team - */ + */ "createdAt"?: Date; /** * Free-form markdown description/content for the team's homepage - */ + */ "description"?: string; /** * The team's identifier - */ + */ "handle": string; /** * Collection of hidden modules for the team - */ + */ "hiddenModules"?: Array; /** * The number of links belonging to the team - */ + */ "linkCount"?: number; /** * Modification date of the team - */ + */ "modifiedAt"?: Date; /** * The name of the team - */ + */ "name": string; /** * A brief summary of the team, derived from the `description` - */ + */ "summary"?: string; /** * The number of users belonging to the team - */ + */ "userCount"?: number; /** * Collection of visible modules for the team - */ + */ "visibleModules"?: Array; /** @@ -75,73 +80,99 @@ export class TeamAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - avatar: { - baseName: "avatar", - type: "string", + "avatar": { + "baseName": "avatar", + "type": "string", }, - banner: { - baseName: "banner", - type: "number", - format: "int64", + "banner": { + "baseName": "banner", + "type": "number", + "format": "int64", }, - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", - required: true, + "handle": { + "baseName": "handle", + "type": "string", + "required": true, }, - hiddenModules: { - baseName: "hidden_modules", - type: "Array", + "hiddenModules": { + "baseName": "hidden_modules", + "type": "Array", }, - linkCount: { - baseName: "link_count", - type: "number", - format: "int32", + "linkCount": { + "baseName": "link_count", + "type": "number", + "format": "int32", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - summary: { - baseName: "summary", - type: "string", + "summary": { + "baseName": "summary", + "type": "string", }, - userCount: { - baseName: "user_count", - type: "number", - format: "int32", + "userCount": { + "baseName": "user_count", + "type": "number", + "format": "int32", }, - visibleModules: { - baseName: "visible_modules", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "visibleModules": { + "baseName": "visible_modules", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamCreate.ts b/packages/datadog-api-client-v2/models/TeamCreate.ts index dcc5efdcbfc0..80d426496c5a 100644 --- a/packages/datadog-api-client-v2/models/TeamCreate.ts +++ b/packages/datadog-api-client-v2/models/TeamCreate.ts @@ -7,23 +7,28 @@ import { TeamCreateAttributes } from "./TeamCreateAttributes"; import { TeamCreateRelationships } from "./TeamCreateRelationships"; import { TeamType } from "./TeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team create - */ +*/ export class TeamCreate { /** * Team creation attributes - */ + */ "attributes": TeamCreateAttributes; /** * Relationships formed with the team on creation - */ + */ "relationships"?: TeamCreateRelationships; /** * Team type - */ + */ "type": TeamType; /** @@ -42,32 +47,58 @@ export class TeamCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamCreateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "TeamCreateRelationships", + "attributes": { + "baseName": "attributes", + "type": "TeamCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "TeamType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "TeamCreateRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts b/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts index 2a097ee6cf5b..e63e08c70c32 100644 --- a/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team creation attributes - */ +*/ export class TeamCreateAttributes { /** * Unicode representation of the avatar for the team, limited to a single grapheme - */ + */ "avatar"?: string; /** * Banner selection for the team - */ + */ "banner"?: number; /** * Free-form markdown description/content for the team's homepage - */ + */ "description"?: string; /** * The team's identifier - */ + */ "handle": string; /** * Collection of hidden modules for the team - */ + */ "hiddenModules"?: Array; /** * The name of the team - */ + */ "name": string; /** * Collection of visible modules for the team - */ + */ "visibleModules"?: Array; /** @@ -55,49 +60,75 @@ export class TeamCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - avatar: { - baseName: "avatar", - type: "string", - }, - banner: { - baseName: "banner", - type: "number", - format: "int64", + "avatar": { + "baseName": "avatar", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "banner": { + "baseName": "banner", + "type": "number", + "format": "int64", }, - handle: { - baseName: "handle", - type: "string", - required: true, + "description": { + "baseName": "description", + "type": "string", }, - hiddenModules: { - baseName: "hidden_modules", - type: "Array", + "handle": { + "baseName": "handle", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "hiddenModules": { + "baseName": "hidden_modules", + "type": "Array", }, - visibleModules: { - baseName: "visible_modules", - type: "Array", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "visibleModules": { + "baseName": "visible_modules", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamCreateRelationships.ts b/packages/datadog-api-client-v2/models/TeamCreateRelationships.ts index 2532d8f0219b..0230b9afad9f 100644 --- a/packages/datadog-api-client-v2/models/TeamCreateRelationships.ts +++ b/packages/datadog-api-client-v2/models/TeamCreateRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUsers } from "./RelationshipToUsers"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships formed with the team on creation - */ +*/ export class TeamCreateRelationships { /** * Relationship to users. - */ + */ "users"?: RelationshipToUsers; /** @@ -32,22 +37,48 @@ export class TeamCreateRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - users: { - baseName: "users", - type: "RelationshipToUsers", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "users": { + "baseName": "users", + "type": "RelationshipToUsers", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamCreateRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamCreateRequest.ts b/packages/datadog-api-client-v2/models/TeamCreateRequest.ts index 68a50635cf90..76cb0d3603d6 100644 --- a/packages/datadog-api-client-v2/models/TeamCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/TeamCreateRequest.ts @@ -5,15 +5,20 @@ */ import { TeamCreate } from "./TeamCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request to create a team - */ +*/ export class TeamCreateRequest { /** * Team create - */ + */ "data": TeamCreate; /** @@ -32,23 +37,49 @@ export class TeamCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TeamCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TeamCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamIncluded.ts b/packages/datadog-api-client-v2/models/TeamIncluded.ts index cabb0ad142ee..d74d6b72cadc 100644 --- a/packages/datadog-api-client-v2/models/TeamIncluded.ts +++ b/packages/datadog-api-client-v2/models/TeamIncluded.ts @@ -7,14 +7,15 @@ import { TeamLink } from "./TeamLink"; import { User } from "./User"; import { UserTeamPermission } from "./UserTeamPermission"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Included resources related to the team - */ +*/ -export type TeamIncluded = - | User - | TeamLink - | UserTeamPermission - | UnparsedObject; +export type TeamIncluded = User | TeamLink | UserTeamPermission | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamLink.ts b/packages/datadog-api-client-v2/models/TeamLink.ts index 028fa735ed45..cb655d01f1bc 100644 --- a/packages/datadog-api-client-v2/models/TeamLink.ts +++ b/packages/datadog-api-client-v2/models/TeamLink.ts @@ -6,23 +6,28 @@ import { TeamLinkAttributes } from "./TeamLinkAttributes"; import { TeamLinkType } from "./TeamLinkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team link - */ +*/ export class TeamLink { /** * Team link attributes - */ + */ "attributes": TeamLinkAttributes; /** * The team link's identifier - */ + */ "id": string; /** * Team link type - */ + */ "type": TeamLinkType; /** @@ -41,33 +46,59 @@ export class TeamLink { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamLinkAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "TeamLinkAttributes", + "required": true, }, - type: { - baseName: "type", - type: "TeamLinkType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamLinkType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamLink.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamLinkAttributes.ts b/packages/datadog-api-client-v2/models/TeamLinkAttributes.ts index 34f9abf03a3a..32d84cdaa23d 100644 --- a/packages/datadog-api-client-v2/models/TeamLinkAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamLinkAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team link attributes - */ +*/ export class TeamLinkAttributes { /** * The link's label - */ + */ "label": string; /** * The link's position, used to sort links for the team - */ + */ "position"?: number; /** * ID of the team the link is associated with - */ + */ "teamId"?: string; /** * The URL for the link - */ + */ "url": string; /** @@ -43,37 +48,63 @@ export class TeamLinkAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - label: { - baseName: "label", - type: "string", - required: true, + "label": { + "baseName": "label", + "type": "string", + "required": true, }, - position: { - baseName: "position", - type: "number", - format: "int32", + "position": { + "baseName": "position", + "type": "number", + "format": "int32", }, - teamId: { - baseName: "team_id", - type: "string", + "teamId": { + "baseName": "team_id", + "type": "string", }, - url: { - baseName: "url", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "url": { + "baseName": "url", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamLinkAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamLinkCreate.ts b/packages/datadog-api-client-v2/models/TeamLinkCreate.ts index f6c2e618d443..2a3e67dd0474 100644 --- a/packages/datadog-api-client-v2/models/TeamLinkCreate.ts +++ b/packages/datadog-api-client-v2/models/TeamLinkCreate.ts @@ -6,19 +6,24 @@ import { TeamLinkAttributes } from "./TeamLinkAttributes"; import { TeamLinkType } from "./TeamLinkType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team link create - */ +*/ export class TeamLinkCreate { /** * Team link attributes - */ + */ "attributes": TeamLinkAttributes; /** * Team link type - */ + */ "type": TeamLinkType; /** @@ -37,28 +42,54 @@ export class TeamLinkCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamLinkAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "TeamLinkAttributes", + "required": true, }, - type: { - baseName: "type", - type: "TeamLinkType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamLinkType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamLinkCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.ts b/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.ts index bab8f127226f..5d83230b5549 100644 --- a/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.ts @@ -5,15 +5,20 @@ */ import { TeamLinkCreate } from "./TeamLinkCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team link create request - */ +*/ export class TeamLinkCreateRequest { /** * Team link create - */ + */ "data": TeamLinkCreate; /** @@ -32,23 +37,49 @@ export class TeamLinkCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TeamLinkCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TeamLinkCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamLinkCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamLinkResponse.ts b/packages/datadog-api-client-v2/models/TeamLinkResponse.ts index 33bbf8f6dcaf..7e3834d1a82b 100644 --- a/packages/datadog-api-client-v2/models/TeamLinkResponse.ts +++ b/packages/datadog-api-client-v2/models/TeamLinkResponse.ts @@ -5,15 +5,20 @@ */ import { TeamLink } from "./TeamLink"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team link response - */ +*/ export class TeamLinkResponse { /** * Team link - */ + */ "data"?: TeamLink; /** @@ -32,22 +37,48 @@ export class TeamLinkResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TeamLink", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TeamLink", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamLinkResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamLinkType.ts b/packages/datadog-api-client-v2/models/TeamLinkType.ts index 8403b8c9adf6..7a8f8aceff0f 100644 --- a/packages/datadog-api-client-v2/models/TeamLinkType.ts +++ b/packages/datadog-api-client-v2/models/TeamLinkType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Team link type - */ +*/ export type TeamLinkType = typeof TEAM_LINKS | UnparsedObject; -export const TEAM_LINKS = "team_links"; +export const TEAM_LINKS = 'team_links'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamLinksResponse.ts b/packages/datadog-api-client-v2/models/TeamLinksResponse.ts index 157a77707eda..f076bff2c490 100644 --- a/packages/datadog-api-client-v2/models/TeamLinksResponse.ts +++ b/packages/datadog-api-client-v2/models/TeamLinksResponse.ts @@ -5,15 +5,20 @@ */ import { TeamLink } from "./TeamLink"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team links response - */ +*/ export class TeamLinksResponse { /** * Team links response data - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class TeamLinksResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamLinksResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSetting.ts b/packages/datadog-api-client-v2/models/TeamPermissionSetting.ts index 4e2dc3eb0e0b..40b3039ae5a4 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSetting.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSetting.ts @@ -6,23 +6,28 @@ import { TeamPermissionSettingAttributes } from "./TeamPermissionSettingAttributes"; import { TeamPermissionSettingType } from "./TeamPermissionSettingType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission setting - */ +*/ export class TeamPermissionSetting { /** * Team permission setting attributes - */ + */ "attributes"?: TeamPermissionSettingAttributes; /** * The team permission setting's identifier - */ + */ "id": string; /** * Team permission setting type - */ + */ "type": TeamPermissionSettingType; /** @@ -41,32 +46,58 @@ export class TeamPermissionSetting { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamPermissionSettingAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "TeamPermissionSettingAttributes", }, - type: { - baseName: "type", - type: "TeamPermissionSettingType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamPermissionSettingType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSetting.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.ts index 4b80220a9ce7..8f8dc7e447eb 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.ts @@ -6,31 +6,36 @@ import { TeamPermissionSettingSerializerAction } from "./TeamPermissionSettingSerializerAction"; import { TeamPermissionSettingValue } from "./TeamPermissionSettingValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission setting attributes - */ +*/ export class TeamPermissionSettingAttributes { /** * The identifier for the action - */ + */ "action"?: TeamPermissionSettingSerializerAction; /** * Whether or not the permission setting is editable by the current user - */ + */ "editable"?: boolean; /** * Possible values for action - */ + */ "options"?: Array; /** * The team permission name - */ + */ "title"?: string; /** * What type of user is allowed to perform the specified action - */ + */ "value"?: TeamPermissionSettingValue; /** @@ -49,38 +54,64 @@ export class TeamPermissionSettingAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - action: { - baseName: "action", - type: "TeamPermissionSettingSerializerAction", + "action": { + "baseName": "action", + "type": "TeamPermissionSettingSerializerAction", }, - editable: { - baseName: "editable", - type: "boolean", + "editable": { + "baseName": "editable", + "type": "boolean", }, - options: { - baseName: "options", - type: "Array", + "options": { + "baseName": "options", + "type": "Array", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - value: { - baseName: "value", - type: "TeamPermissionSettingValue", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "TeamPermissionSettingValue", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSettingAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.ts index ca6972ac2dc8..206b540aec9b 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.ts @@ -5,15 +5,20 @@ */ import { TeamPermissionSetting } from "./TeamPermissionSetting"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission setting response - */ +*/ export class TeamPermissionSettingResponse { /** * Team permission setting - */ + */ "data"?: TeamPermissionSetting; /** @@ -32,22 +37,48 @@ export class TeamPermissionSettingResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TeamPermissionSetting", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TeamPermissionSetting", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSettingResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.ts index 1a65d5c16078..099b71dd6449 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.ts @@ -4,15 +4,17 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The identifier for the action - */ +*/ -export type TeamPermissionSettingSerializerAction = - | typeof MANAGE_MEMBERSHIP - | typeof EDIT - | UnparsedObject; -export const MANAGE_MEMBERSHIP = "manage_membership"; -export const EDIT = "edit"; +export type TeamPermissionSettingSerializerAction = typeof MANAGE_MEMBERSHIP| typeof EDIT | UnparsedObject; +export const MANAGE_MEMBERSHIP = 'manage_membership'; +export const EDIT = 'edit'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingType.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingType.ts index 76435e690a85..c700294d9ceb 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingType.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Team permission setting type - */ +*/ -export type TeamPermissionSettingType = - | typeof TEAM_PERMISSION_SETTINGS - | UnparsedObject; -export const TEAM_PERMISSION_SETTINGS = "team_permission_settings"; +export type TeamPermissionSettingType = typeof TEAM_PERMISSION_SETTINGS | UnparsedObject; +export const TEAM_PERMISSION_SETTINGS = 'team_permission_settings'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.ts index 0d65db776743..97ab8157194e 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.ts @@ -6,19 +6,24 @@ import { TeamPermissionSettingType } from "./TeamPermissionSettingType"; import { TeamPermissionSettingUpdateAttributes } from "./TeamPermissionSettingUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission setting update - */ +*/ export class TeamPermissionSettingUpdate { /** * Team permission setting update attributes - */ + */ "attributes"?: TeamPermissionSettingUpdateAttributes; /** * Team permission setting type - */ + */ "type": TeamPermissionSettingType; /** @@ -37,27 +42,53 @@ export class TeamPermissionSettingUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamPermissionSettingUpdateAttributes", + "attributes": { + "baseName": "attributes", + "type": "TeamPermissionSettingUpdateAttributes", }, - type: { - baseName: "type", - type: "TeamPermissionSettingType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamPermissionSettingType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSettingUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.ts index 94b05eeac5af..378b0c092d34 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.ts @@ -5,15 +5,20 @@ */ import { TeamPermissionSettingValue } from "./TeamPermissionSettingValue"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission setting update attributes - */ +*/ export class TeamPermissionSettingUpdateAttributes { /** * What type of user is allowed to perform the specified action - */ + */ "value"?: TeamPermissionSettingValue; /** @@ -32,22 +37,48 @@ export class TeamPermissionSettingUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - value: { - baseName: "value", - type: "TeamPermissionSettingValue", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "TeamPermissionSettingValue", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSettingUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.ts index c3d30ececf56..0ae056823534 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { TeamPermissionSettingUpdate } from "./TeamPermissionSettingUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission setting update request - */ +*/ export class TeamPermissionSettingUpdateRequest { /** * Team permission setting update - */ + */ "data": TeamPermissionSettingUpdate; /** @@ -32,23 +37,49 @@ export class TeamPermissionSettingUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TeamPermissionSettingUpdate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TeamPermissionSettingUpdate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSettingUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.ts index a0d21c211a84..8a4eb73ebcb1 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * What type of user is allowed to perform the specified action - */ +*/ -export type TeamPermissionSettingValue = - | typeof ADMINS - | typeof MEMBERS - | typeof ORGANIZATION - | typeof USER_ACCESS_MANAGE - | typeof TEAMS_MANAGE - | UnparsedObject; -export const ADMINS = "admins"; -export const MEMBERS = "members"; -export const ORGANIZATION = "organization"; -export const USER_ACCESS_MANAGE = "user_access_manage"; -export const TEAMS_MANAGE = "teams_manage"; +export type TeamPermissionSettingValue = typeof ADMINS| typeof MEMBERS| typeof ORGANIZATION| typeof USER_ACCESS_MANAGE| typeof TEAMS_MANAGE | UnparsedObject; +export const ADMINS = 'admins'; +export const MEMBERS = 'members'; +export const ORGANIZATION = 'organization'; +export const USER_ACCESS_MANAGE = 'user_access_manage'; +export const TEAMS_MANAGE = 'teams_manage'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.ts b/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.ts index 057999027009..c74e22575b1a 100644 --- a/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.ts +++ b/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.ts @@ -5,15 +5,20 @@ */ import { TeamPermissionSetting } from "./TeamPermissionSetting"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team permission settings response - */ +*/ export class TeamPermissionSettingsResponse { /** * Team permission settings response data - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class TeamPermissionSettingsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamPermissionSettingsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamRelationships.ts b/packages/datadog-api-client-v2/models/TeamRelationships.ts index 58900f9fc738..2992e18a14ae 100644 --- a/packages/datadog-api-client-v2/models/TeamRelationships.ts +++ b/packages/datadog-api-client-v2/models/TeamRelationships.ts @@ -6,19 +6,24 @@ import { RelationshipToTeamLinks } from "./RelationshipToTeamLinks"; import { RelationshipToUserTeamPermission } from "./RelationshipToUserTeamPermission"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Resources related to a team - */ +*/ export class TeamRelationships { /** * Relationship between a team and a team link - */ + */ "teamLinks"?: RelationshipToTeamLinks; /** * Relationship between a user team permission and a team - */ + */ "userTeamPermissions"?: RelationshipToUserTeamPermission; /** @@ -37,26 +42,52 @@ export class TeamRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - teamLinks: { - baseName: "team_links", - type: "RelationshipToTeamLinks", + "teamLinks": { + "baseName": "team_links", + "type": "RelationshipToTeamLinks", }, - userTeamPermissions: { - baseName: "user_team_permissions", - type: "RelationshipToUserTeamPermission", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "userTeamPermissions": { + "baseName": "user_team_permissions", + "type": "RelationshipToUserTeamPermission", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamRelationshipsLinks.ts b/packages/datadog-api-client-v2/models/TeamRelationshipsLinks.ts index c13ecbe23f77..ea065f86c7ce 100644 --- a/packages/datadog-api-client-v2/models/TeamRelationshipsLinks.ts +++ b/packages/datadog-api-client-v2/models/TeamRelationshipsLinks.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Links attributes. - */ +*/ export class TeamRelationshipsLinks { /** * Related link. - */ + */ "related"?: string; /** @@ -31,22 +36,48 @@ export class TeamRelationshipsLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - related: { - baseName: "related", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "related": { + "baseName": "related", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamRelationshipsLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamResponse.ts b/packages/datadog-api-client-v2/models/TeamResponse.ts index 4723b4038294..ff85bfbf7beb 100644 --- a/packages/datadog-api-client-v2/models/TeamResponse.ts +++ b/packages/datadog-api-client-v2/models/TeamResponse.ts @@ -5,15 +5,20 @@ */ import { Team } from "./Team"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with a team - */ +*/ export class TeamResponse { /** * A team - */ + */ "data"?: Team; /** @@ -32,22 +37,48 @@ export class TeamResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Team", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Team", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamType.ts b/packages/datadog-api-client-v2/models/TeamType.ts index 33b93e29f7c2..ed166fa72247 100644 --- a/packages/datadog-api-client-v2/models/TeamType.ts +++ b/packages/datadog-api-client-v2/models/TeamType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Team type - */ +*/ export type TeamType = typeof TEAM | UnparsedObject; -export const TEAM = "team"; +export const TEAM = 'team'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamUpdate.ts b/packages/datadog-api-client-v2/models/TeamUpdate.ts index 573398a030bd..056f8a0bb3c4 100644 --- a/packages/datadog-api-client-v2/models/TeamUpdate.ts +++ b/packages/datadog-api-client-v2/models/TeamUpdate.ts @@ -7,23 +7,28 @@ import { TeamType } from "./TeamType"; import { TeamUpdateAttributes } from "./TeamUpdateAttributes"; import { TeamUpdateRelationships } from "./TeamUpdateRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team update request - */ +*/ export class TeamUpdate { /** * Team update attributes - */ + */ "attributes": TeamUpdateAttributes; /** * Team update relationships - */ + */ "relationships"?: TeamUpdateRelationships; /** * Team type - */ + */ "type": TeamType; /** @@ -42,32 +47,58 @@ export class TeamUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TeamUpdateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "TeamUpdateRelationships", + "attributes": { + "baseName": "attributes", + "type": "TeamUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "TeamType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "TeamUpdateRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts b/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts index 80b5b752a252..e3ba9ccf68d3 100644 --- a/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts @@ -4,39 +4,44 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team update attributes - */ +*/ export class TeamUpdateAttributes { /** * Unicode representation of the avatar for the team, limited to a single grapheme - */ + */ "avatar"?: string; /** * Banner selection for the team - */ + */ "banner"?: number; /** * Free-form markdown description/content for the team's homepage - */ + */ "description"?: string; /** * The team's identifier - */ + */ "handle": string; /** * Collection of hidden modules for the team - */ + */ "hiddenModules"?: Array; /** * The name of the team - */ + */ "name": string; /** * Collection of visible modules for the team - */ + */ "visibleModules"?: Array; /** @@ -55,49 +60,75 @@ export class TeamUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - avatar: { - baseName: "avatar", - type: "string", - }, - banner: { - baseName: "banner", - type: "number", - format: "int64", + "avatar": { + "baseName": "avatar", + "type": "string", }, - description: { - baseName: "description", - type: "string", + "banner": { + "baseName": "banner", + "type": "number", + "format": "int64", }, - handle: { - baseName: "handle", - type: "string", - required: true, + "description": { + "baseName": "description", + "type": "string", }, - hiddenModules: { - baseName: "hidden_modules", - type: "Array", + "handle": { + "baseName": "handle", + "type": "string", + "required": true, }, - name: { - baseName: "name", - type: "string", - required: true, + "hiddenModules": { + "baseName": "hidden_modules", + "type": "Array", }, - visibleModules: { - baseName: "visible_modules", - type: "Array", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "visibleModules": { + "baseName": "visible_modules", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamUpdateRelationships.ts b/packages/datadog-api-client-v2/models/TeamUpdateRelationships.ts index a4f12dc1e992..413b33204b4e 100644 --- a/packages/datadog-api-client-v2/models/TeamUpdateRelationships.ts +++ b/packages/datadog-api-client-v2/models/TeamUpdateRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToTeamLinks } from "./RelationshipToTeamLinks"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team update relationships - */ +*/ export class TeamUpdateRelationships { /** * Relationship between a team and a team link - */ + */ "teamLinks"?: RelationshipToTeamLinks; /** @@ -32,22 +37,48 @@ export class TeamUpdateRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - teamLinks: { - baseName: "team_links", - type: "RelationshipToTeamLinks", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "teamLinks": { + "baseName": "team_links", + "type": "RelationshipToTeamLinks", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamUpdateRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamUpdateRequest.ts b/packages/datadog-api-client-v2/models/TeamUpdateRequest.ts index 3eee3d285a40..4794ac896a5e 100644 --- a/packages/datadog-api-client-v2/models/TeamUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/TeamUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { TeamUpdate } from "./TeamUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team update request - */ +*/ export class TeamUpdateRequest { /** * Team update request - */ + */ "data": TeamUpdate; /** @@ -32,23 +37,49 @@ export class TeamUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TeamUpdate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TeamUpdate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamsField.ts b/packages/datadog-api-client-v2/models/TeamsField.ts index 9a4ecbe046bb..2511cb8fa664 100644 --- a/packages/datadog-api-client-v2/models/TeamsField.ts +++ b/packages/datadog-api-client-v2/models/TeamsField.ts @@ -4,41 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Supported teams field. - */ +*/ -export type TeamsField = - | typeof ID - | typeof NAME - | typeof HANDLE - | typeof SUMMARY - | typeof DESCRIPTION - | typeof AVATAR - | typeof BANNER - | typeof VISIBLE_MODULES - | typeof HIDDEN_MODULES - | typeof CREATED_AT - | typeof MODIFIED_AT - | typeof USER_COUNT - | typeof LINK_COUNT - | typeof TEAM_LINKS - | typeof USER_TEAM_PERMISSIONS - | UnparsedObject; -export const ID = "id"; -export const NAME = "name"; -export const HANDLE = "handle"; -export const SUMMARY = "summary"; -export const DESCRIPTION = "description"; -export const AVATAR = "avatar"; -export const BANNER = "banner"; -export const VISIBLE_MODULES = "visible_modules"; -export const HIDDEN_MODULES = "hidden_modules"; -export const CREATED_AT = "created_at"; -export const MODIFIED_AT = "modified_at"; -export const USER_COUNT = "user_count"; -export const LINK_COUNT = "link_count"; -export const TEAM_LINKS = "team_links"; -export const USER_TEAM_PERMISSIONS = "user_team_permissions"; +export type TeamsField = typeof ID| typeof NAME| typeof HANDLE| typeof SUMMARY| typeof DESCRIPTION| typeof AVATAR| typeof BANNER| typeof VISIBLE_MODULES| typeof HIDDEN_MODULES| typeof CREATED_AT| typeof MODIFIED_AT| typeof USER_COUNT| typeof LINK_COUNT| typeof TEAM_LINKS| typeof USER_TEAM_PERMISSIONS | UnparsedObject; +export const ID = 'id'; +export const NAME = 'name'; +export const HANDLE = 'handle'; +export const SUMMARY = 'summary'; +export const DESCRIPTION = 'description'; +export const AVATAR = 'avatar'; +export const BANNER = 'banner'; +export const VISIBLE_MODULES = 'visible_modules'; +export const HIDDEN_MODULES = 'hidden_modules'; +export const CREATED_AT = 'created_at'; +export const MODIFIED_AT = 'modified_at'; +export const USER_COUNT = 'user_count'; +export const LINK_COUNT = 'link_count'; +export const TEAM_LINKS = 'team_links'; +export const USER_TEAM_PERMISSIONS = 'user_team_permissions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TeamsResponse.ts b/packages/datadog-api-client-v2/models/TeamsResponse.ts index c1cfd23498a1..706a67a24276 100644 --- a/packages/datadog-api-client-v2/models/TeamsResponse.ts +++ b/packages/datadog-api-client-v2/models/TeamsResponse.ts @@ -8,27 +8,32 @@ import { TeamIncluded } from "./TeamIncluded"; import { TeamsResponseLinks } from "./TeamsResponseLinks"; import { TeamsResponseMeta } from "./TeamsResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response with multiple teams - */ +*/ export class TeamsResponse { /** * Teams response data - */ + */ "data"?: Array; /** * Resources related to the team - */ + */ "included"?: Array; /** * Teams response links. - */ + */ "links"?: TeamsResponseLinks; /** * Teams response metadata. - */ + */ "meta"?: TeamsResponseMeta; /** @@ -47,34 +52,60 @@ export class TeamsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - included: { - baseName: "included", - type: "Array", + "included": { + "baseName": "included", + "type": "Array", }, - links: { - baseName: "links", - type: "TeamsResponseLinks", + "links": { + "baseName": "links", + "type": "TeamsResponseLinks", }, - meta: { - baseName: "meta", - type: "TeamsResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "TeamsResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamsResponseLinks.ts b/packages/datadog-api-client-v2/models/TeamsResponseLinks.ts index 59cc027d78ab..9c00adf54438 100644 --- a/packages/datadog-api-client-v2/models/TeamsResponseLinks.ts +++ b/packages/datadog-api-client-v2/models/TeamsResponseLinks.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Teams response links. - */ +*/ export class TeamsResponseLinks { /** * First link. - */ + */ "first"?: string; /** * Last link. - */ + */ "last"?: string; /** * Next link. - */ + */ "next"?: string; /** * Previous link. - */ + */ "prev"?: string; /** * Current link. - */ + */ "self"?: string; /** @@ -47,38 +52,64 @@ export class TeamsResponseLinks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - first: { - baseName: "first", - type: "string", + "first": { + "baseName": "first", + "type": "string", }, - last: { - baseName: "last", - type: "string", + "last": { + "baseName": "last", + "type": "string", }, - next: { - baseName: "next", - type: "string", + "next": { + "baseName": "next", + "type": "string", }, - prev: { - baseName: "prev", - type: "string", + "prev": { + "baseName": "prev", + "type": "string", }, - self: { - baseName: "self", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "self": { + "baseName": "self", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamsResponseLinks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamsResponseMeta.ts b/packages/datadog-api-client-v2/models/TeamsResponseMeta.ts index fb4885c753f2..fda45c28ebd2 100644 --- a/packages/datadog-api-client-v2/models/TeamsResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/TeamsResponseMeta.ts @@ -5,15 +5,20 @@ */ import { TeamsResponseMetaPagination } from "./TeamsResponseMetaPagination"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Teams response metadata. - */ +*/ export class TeamsResponseMeta { /** * Teams response metadata. - */ + */ "pagination"?: TeamsResponseMetaPagination; /** @@ -32,22 +37,48 @@ export class TeamsResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - pagination: { - baseName: "pagination", - type: "TeamsResponseMetaPagination", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pagination": { + "baseName": "pagination", + "type": "TeamsResponseMetaPagination", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamsResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TeamsResponseMetaPagination.ts b/packages/datadog-api-client-v2/models/TeamsResponseMetaPagination.ts index 06299f98b7eb..a933a392628a 100644 --- a/packages/datadog-api-client-v2/models/TeamsResponseMetaPagination.ts +++ b/packages/datadog-api-client-v2/models/TeamsResponseMetaPagination.ts @@ -4,43 +4,48 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Teams response metadata. - */ +*/ export class TeamsResponseMetaPagination { /** * The first offset. - */ + */ "firstOffset"?: number; /** * The last offset. - */ + */ "lastOffset"?: number; /** * Pagination limit. - */ + */ "limit"?: number; /** * The next offset. - */ + */ "nextOffset"?: number; /** * The offset. - */ + */ "offset"?: number; /** * The previous offset. - */ + */ "prevOffset"?: number; /** * Total results. - */ + */ "total"?: number; /** * Offset type. - */ + */ "type"?: string; /** @@ -59,57 +64,83 @@ export class TeamsResponseMetaPagination { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - firstOffset: { - baseName: "first_offset", - type: "number", - format: "int64", + "firstOffset": { + "baseName": "first_offset", + "type": "number", + "format": "int64", }, - lastOffset: { - baseName: "last_offset", - type: "number", - format: "int64", + "lastOffset": { + "baseName": "last_offset", + "type": "number", + "format": "int64", }, - limit: { - baseName: "limit", - type: "number", - format: "int64", + "limit": { + "baseName": "limit", + "type": "number", + "format": "int64", }, - nextOffset: { - baseName: "next_offset", - type: "number", - format: "int64", + "nextOffset": { + "baseName": "next_offset", + "type": "number", + "format": "int64", }, - offset: { - baseName: "offset", - type: "number", - format: "int64", + "offset": { + "baseName": "offset", + "type": "number", + "format": "int64", }, - prevOffset: { - baseName: "prev_offset", - type: "number", - format: "int64", + "prevOffset": { + "baseName": "prev_offset", + "type": "number", + "format": "int64", }, - total: { - baseName: "total", - type: "number", - format: "int64", + "total": { + "baseName": "total", + "type": "number", + "format": "int64", }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TeamsResponseMetaPagination.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryRequest.ts b/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryRequest.ts index 5c58d24401ae..7005cc12e0c5 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryRequest.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryRequest.ts @@ -5,15 +5,20 @@ */ import { TimeseriesFormulaRequest } from "./TimeseriesFormulaRequest"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request wrapper around a single timeseries query to be executed. - */ +*/ export class TimeseriesFormulaQueryRequest { /** * A single timeseries query to be executed. - */ + */ "data": TimeseriesFormulaRequest; /** @@ -32,23 +37,49 @@ export class TimeseriesFormulaQueryRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TimeseriesFormulaRequest", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "TimeseriesFormulaRequest", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesFormulaQueryRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryResponse.ts b/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryResponse.ts index a23b4a05a6b8..0a0cceb22fd2 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryResponse.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesFormulaQueryResponse.ts @@ -5,19 +5,24 @@ */ import { TimeseriesResponse } from "./TimeseriesResponse"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A message containing one response to a timeseries query made with timeseries formula query request. - */ +*/ export class TimeseriesFormulaQueryResponse { /** * A message containing the response to a timeseries query. - */ + */ "data"?: TimeseriesResponse; /** * The error generated by the request. - */ + */ "errors"?: string; /** @@ -36,26 +41,52 @@ export class TimeseriesFormulaQueryResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "TimeseriesResponse", + "data": { + "baseName": "data", + "type": "TimeseriesResponse", }, - errors: { - baseName: "errors", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "errors": { + "baseName": "errors", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesFormulaQueryResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesFormulaRequest.ts b/packages/datadog-api-client-v2/models/TimeseriesFormulaRequest.ts index f1f35bde892a..a9b020a24340 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesFormulaRequest.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesFormulaRequest.ts @@ -6,19 +6,24 @@ import { TimeseriesFormulaRequestAttributes } from "./TimeseriesFormulaRequestAttributes"; import { TimeseriesFormulaRequestType } from "./TimeseriesFormulaRequestType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single timeseries query to be executed. - */ +*/ export class TimeseriesFormulaRequest { /** * The object describing a timeseries formula request. - */ + */ "attributes": TimeseriesFormulaRequestAttributes; /** * The type of the resource. The value should always be timeseries_request. - */ + */ "type": TimeseriesFormulaRequestType; /** @@ -37,28 +42,54 @@ export class TimeseriesFormulaRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TimeseriesFormulaRequestAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "TimeseriesFormulaRequestAttributes", + "required": true, }, - type: { - baseName: "type", - type: "TimeseriesFormulaRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TimeseriesFormulaRequestType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesFormulaRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestAttributes.ts b/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestAttributes.ts index e692ae6bcd75..079a2e807926 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestAttributes.ts @@ -6,34 +6,39 @@ import { QueryFormula } from "./QueryFormula"; import { TimeseriesQuery } from "./TimeseriesQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a timeseries formula request. - */ +*/ export class TimeseriesFormulaRequestAttributes { /** * List of formulas to be calculated and returned as responses. - */ + */ "formulas"?: Array; /** * Start date (inclusive) of the query in milliseconds since the Unix epoch. - */ + */ "from": number; /** * A time interval in milliseconds. * May be overridden by a larger interval if the query would result in * too many points for the specified timeframe. * Defaults to a reasonable interval for the given timeframe. - */ + */ "interval"?: number; /** * List of queries to be run and used as inputs to the formulas. - */ + */ "queries": Array; /** * End date (exclusive) of the query in milliseconds since the Unix epoch. - */ + */ "to": number; /** @@ -52,44 +57,70 @@ export class TimeseriesFormulaRequestAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - formulas: { - baseName: "formulas", - type: "Array", + "formulas": { + "baseName": "formulas", + "type": "Array", }, - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", + "from": { + "baseName": "from", + "type": "number", + "required": true, + "format": "int64", }, - interval: { - baseName: "interval", - type: "number", - format: "int64", + "interval": { + "baseName": "interval", + "type": "number", + "format": "int64", }, - queries: { - baseName: "queries", - type: "Array", - required: true, + "queries": { + "baseName": "queries", + "type": "Array", + "required": true, }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "to": { + "baseName": "to", + "type": "number", + "required": true, + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesFormulaRequestAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestType.ts b/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestType.ts index d897f4457296..3e3df16aa121 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestType.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesFormulaRequestType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be timeseries_request. - */ +*/ -export type TimeseriesFormulaRequestType = - | typeof TIMESERIES_REQUEST - | UnparsedObject; -export const TIMESERIES_REQUEST = "timeseries_request"; +export type TimeseriesFormulaRequestType = typeof TIMESERIES_REQUEST | UnparsedObject; +export const TIMESERIES_REQUEST = 'timeseries_request'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TimeseriesFormulaResponseType.ts b/packages/datadog-api-client-v2/models/TimeseriesFormulaResponseType.ts index f6c4b67517e9..113860dfba46 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesFormulaResponseType.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesFormulaResponseType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of the resource. The value should always be timeseries_response. - */ +*/ -export type TimeseriesFormulaResponseType = - | typeof TIMESERIES_RESPONSE - | UnparsedObject; -export const TIMESERIES_RESPONSE = "timeseries_response"; +export type TimeseriesFormulaResponseType = typeof TIMESERIES_RESPONSE | UnparsedObject; +export const TIMESERIES_RESPONSE = 'timeseries_response'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TimeseriesQuery.ts b/packages/datadog-api-client-v2/models/TimeseriesQuery.ts index f012df8e33ec..9d28e36244ce 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesQuery.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesQuery.ts @@ -6,13 +6,15 @@ import { EventsTimeseriesQuery } from "./EventsTimeseriesQuery"; import { MetricsTimeseriesQuery } from "./MetricsTimeseriesQuery"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An individual timeseries query to one of the basic Datadog data sources. - */ +*/ -export type TimeseriesQuery = - | MetricsTimeseriesQuery - | EventsTimeseriesQuery - | UnparsedObject; +export type TimeseriesQuery = MetricsTimeseriesQuery | EventsTimeseriesQuery | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TimeseriesResponse.ts b/packages/datadog-api-client-v2/models/TimeseriesResponse.ts index 5f92dfc64d7e..9724302129ae 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesResponse.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesResponse.ts @@ -6,19 +6,24 @@ import { TimeseriesFormulaResponseType } from "./TimeseriesFormulaResponseType"; import { TimeseriesResponseAttributes } from "./TimeseriesResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A message containing the response to a timeseries query. - */ +*/ export class TimeseriesResponse { /** * The object describing a timeseries response. - */ + */ "attributes"?: TimeseriesResponseAttributes; /** * The type of the resource. The value should always be timeseries_response. - */ + */ "type"?: TimeseriesFormulaResponseType; /** @@ -37,26 +42,52 @@ export class TimeseriesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "TimeseriesResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "TimeseriesResponseAttributes", }, - type: { - baseName: "type", - type: "TimeseriesFormulaResponseType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "TimeseriesFormulaResponseType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesResponseAttributes.ts b/packages/datadog-api-client-v2/models/TimeseriesResponseAttributes.ts index 7aabcef468fb..dc0a5ed2baf5 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesResponseAttributes.ts @@ -4,24 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ import { TimeseriesResponseSeries } from "./TimeseriesResponseSeries"; +import { TimeseriesResponseTimesItem } from "./TimeseriesResponseTimesItem"; +import { TimeseriesResponseValues } from "./TimeseriesResponseValues"; +import { TimeseriesResponseValuesItem } from "./TimeseriesResponseValuesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The object describing a timeseries response. - */ +*/ export class TimeseriesResponseAttributes { /** * Array of response series. The index here corresponds to the index in the `formulas` or `queries` array from the request. - */ + */ "series"?: Array; /** * Array of times, 1-1 match with individual values arrays. - */ + */ "times"?: Array; /** * Array of value-arrays. The index here corresponds to the index in the `formulas` or `queries` array from the request. - */ + */ "values"?: Array>; /** @@ -40,32 +48,58 @@ export class TimeseriesResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - series: { - baseName: "series", - type: "Array", - }, - times: { - baseName: "times", - type: "Array", - format: "int64", + "series": { + "baseName": "series", + "type": "Array", }, - values: { - baseName: "values", - type: "Array>", - format: "double", + "times": { + "baseName": "times", + "type": "Array", + "format": "int64", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "values": { + "baseName": "values", + "type": "Array>", + "format": "double", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.ts b/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.ts index b508bfc57aa0..ab0aefb1d5ee 100644 --- a/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.ts +++ b/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.ts @@ -3,28 +3,34 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { GroupTagsItem } from "./GroupTagsItem"; import { Unit } from "./Unit"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** */ export class TimeseriesResponseSeries { /** * List of tags that apply to a single response value. - */ + */ "groupTags"?: Array; /** * The index of the query in the "formulas" array (or "queries" array if no "formulas" was specified). - */ + */ "queryIndex"?: number; /** * Detailed information about the unit. * The first element describes the "primary unit" (for example, `bytes` in `bytes per second`). * The second element describes the "per unit" (for example, `second` in `bytes per second`). * If the second element is not present, the API returns null. - */ + */ "unit"?: Array; /** @@ -43,31 +49,57 @@ export class TimeseriesResponseSeries { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - groupTags: { - baseName: "group_tags", - type: "Array", + "groupTags": { + "baseName": "group_tags", + "type": "Array", }, - queryIndex: { - baseName: "query_index", - type: "number", - format: "int32", + "queryIndex": { + "baseName": "query_index", + "type": "number", + "format": "int32", }, - unit: { - baseName: "unit", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "unit": { + "baseName": "unit", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TimeseriesResponseSeries.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TokenType.ts b/packages/datadog-api-client-v2/models/TokenType.ts index 2881accf6a4b..06ea253f55e2 100644 --- a/packages/datadog-api-client-v2/models/TokenType.ts +++ b/packages/datadog-api-client-v2/models/TokenType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `TokenType` object. - */ +*/ export type TokenType = typeof SECRET | UnparsedObject; -export const SECRET = "SECRET"; +export const SECRET = 'SECRET'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Trigger.ts b/packages/datadog-api-client-v2/models/Trigger.ts index 521d0dec767a..420a8ed0494a 100644 --- a/packages/datadog-api-client-v2/models/Trigger.ts +++ b/packages/datadog-api-client-v2/models/Trigger.ts @@ -20,27 +20,15 @@ import { SlackTriggerWrapper } from "./SlackTriggerWrapper"; import { SoftwareCatalogTriggerWrapper } from "./SoftwareCatalogTriggerWrapper"; import { WorkflowTriggerWrapper } from "./WorkflowTriggerWrapper"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * One of the triggers that can start the execution of a workflow. - */ +*/ -export type Trigger = - | APITriggerWrapper - | AppTriggerWrapper - | CaseTriggerWrapper - | ChangeEventTriggerWrapper - | DatabaseMonitoringTriggerWrapper - | DashboardTriggerWrapper - | GithubWebhookTriggerWrapper - | IncidentTriggerWrapper - | MonitorTriggerWrapper - | NotebookTriggerWrapper - | ScheduleTriggerWrapper - | SecurityTriggerWrapper - | SelfServiceTriggerWrapper - | SlackTriggerWrapper - | SoftwareCatalogTriggerWrapper - | WorkflowTriggerWrapper - | UnparsedObject; +export type Trigger = APITriggerWrapper | AppTriggerWrapper | CaseTriggerWrapper | ChangeEventTriggerWrapper | DatabaseMonitoringTriggerWrapper | DashboardTriggerWrapper | GithubWebhookTriggerWrapper | IncidentTriggerWrapper | MonitorTriggerWrapper | NotebookTriggerWrapper | ScheduleTriggerWrapper | SecurityTriggerWrapper | SelfServiceTriggerWrapper | SlackTriggerWrapper | SoftwareCatalogTriggerWrapper | WorkflowTriggerWrapper | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/TriggerRateLimit.ts b/packages/datadog-api-client-v2/models/TriggerRateLimit.ts index dd85a54e19d1..f44abdad481c 100644 --- a/packages/datadog-api-client-v2/models/TriggerRateLimit.ts +++ b/packages/datadog-api-client-v2/models/TriggerRateLimit.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Defines a rate limit for a trigger. - */ +*/ export class TriggerRateLimit { /** * The `TriggerRateLimit` `count`. - */ + */ "count"?: number; /** * The `TriggerRateLimit` `interval`. The expected format is the number of seconds ending with an s. For example, 1 day is 86400s - */ + */ "interval"?: string; /** @@ -35,27 +40,53 @@ export class TriggerRateLimit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - count: { - baseName: "count", - type: "number", - format: "int64", + "count": { + "baseName": "count", + "type": "number", + "format": "int64", }, - interval: { - baseName: "interval", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "interval": { + "baseName": "interval", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return TriggerRateLimit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/TriggerSource.ts b/packages/datadog-api-client-v2/models/TriggerSource.ts index e9df193d8f34..cb401414ae26 100644 --- a/packages/datadog-api-client-v2/models/TriggerSource.ts +++ b/packages/datadog-api-client-v2/models/TriggerSource.ts @@ -4,16 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The type of security issues on which the rule applies. Notification rules based on security signals need to use the trigger source "security_signals", * while notification rules based on security vulnerabilities need to use the trigger source "security_findings". - */ +*/ -export type TriggerSource = - | typeof SECURITY_FINDINGS - | typeof SECURITY_SIGNALS - | UnparsedObject; -export const SECURITY_FINDINGS = "security_findings"; -export const SECURITY_SIGNALS = "security_signals"; +export type TriggerSource = typeof SECURITY_FINDINGS| typeof SECURITY_SIGNALS | UnparsedObject; +export const SECURITY_FINDINGS = 'security_findings'; +export const SECURITY_SIGNALS = 'security_signals'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Unit.ts b/packages/datadog-api-client-v2/models/Unit.ts index 882e23b3e769..0e5f34ccc19a 100644 --- a/packages/datadog-api-client-v2/models/Unit.ts +++ b/packages/datadog-api-client-v2/models/Unit.ts @@ -4,31 +4,36 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object containing the metric unit family, scale factor, name, and short name. - */ +*/ export class Unit { /** * Unit family, allows for conversion between units of the same family, for scaling. - */ + */ "family"?: string; /** * Unit name - */ + */ "name"?: string; /** * Plural form of the unit name. - */ + */ "plural"?: string; /** * Factor for scaling between units of the same family. - */ + */ "scaleFactor"?: number; /** * Abbreviation of the unit. - */ + */ "shortName"?: string; /** @@ -47,39 +52,65 @@ export class Unit { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - family: { - baseName: "family", - type: "string", + "family": { + "baseName": "family", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - plural: { - baseName: "plural", - type: "string", + "plural": { + "baseName": "plural", + "type": "string", }, - scaleFactor: { - baseName: "scale_factor", - type: "number", - format: "double", + "scaleFactor": { + "baseName": "scale_factor", + "type": "number", + "format": "double", }, - shortName: { - baseName: "short_name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "shortName": { + "baseName": "short_name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Unit.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UnpublishAppResponse.ts b/packages/datadog-api-client-v2/models/UnpublishAppResponse.ts index 2a8d1424d0cd..074fc08b3f5a 100644 --- a/packages/datadog-api-client-v2/models/UnpublishAppResponse.ts +++ b/packages/datadog-api-client-v2/models/UnpublishAppResponse.ts @@ -5,15 +5,20 @@ */ import { Deployment } from "./Deployment"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after an app is successfully unpublished. - */ +*/ export class UnpublishAppResponse { /** * The version of the app that was published. - */ + */ "data"?: Deployment; /** @@ -32,22 +37,48 @@ export class UnpublishAppResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Deployment", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Deployment", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UnpublishAppResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.ts b/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.ts index 6af0a7785267..c04d101e759a 100644 --- a/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.ts +++ b/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.ts @@ -5,15 +5,20 @@ */ import { ActionConnectionDataUpdate } from "./ActionConnectionDataUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to update an action connection. - */ +*/ export class UpdateActionConnectionRequest { /** * Data related to the connection update. - */ + */ "data": ActionConnectionDataUpdate; /** @@ -32,23 +37,49 @@ export class UpdateActionConnectionRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ActionConnectionDataUpdate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ActionConnectionDataUpdate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateActionConnectionRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.ts b/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.ts index b23086d5c677..7c09834df7f9 100644 --- a/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.ts +++ b/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.ts @@ -5,15 +5,20 @@ */ import { ActionConnectionData } from "./ActionConnectionData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response for an updated connection. - */ +*/ export class UpdateActionConnectionResponse { /** * Data related to the connection. - */ + */ "data"?: ActionConnectionData; /** @@ -32,22 +37,48 @@ export class UpdateActionConnectionResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "ActionConnectionData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "ActionConnectionData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateActionConnectionResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateAppRequest.ts b/packages/datadog-api-client-v2/models/UpdateAppRequest.ts index 8254ef9a439c..5312994a60d2 100644 --- a/packages/datadog-api-client-v2/models/UpdateAppRequest.ts +++ b/packages/datadog-api-client-v2/models/UpdateAppRequest.ts @@ -5,15 +5,20 @@ */ import { UpdateAppRequestData } from "./UpdateAppRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request object for updating an existing app. - */ +*/ export class UpdateAppRequest { /** * The data object containing the new app definition. Any fields not included in the request remain unchanged. - */ + */ "data"?: UpdateAppRequestData; /** @@ -32,22 +37,48 @@ export class UpdateAppRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UpdateAppRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UpdateAppRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateAppRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateAppRequestData.ts b/packages/datadog-api-client-v2/models/UpdateAppRequestData.ts index 4cddb42b8bd6..0ceea453f33d 100644 --- a/packages/datadog-api-client-v2/models/UpdateAppRequestData.ts +++ b/packages/datadog-api-client-v2/models/UpdateAppRequestData.ts @@ -6,23 +6,28 @@ import { AppDefinitionType } from "./AppDefinitionType"; import { UpdateAppRequestDataAttributes } from "./UpdateAppRequestDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object containing the new app definition. Any fields not included in the request remain unchanged. - */ +*/ export class UpdateAppRequestData { /** * App definition attributes to be updated, such as name, description, and components. - */ + */ "attributes"?: UpdateAppRequestDataAttributes; /** * The ID of the app to update. The app ID must match the ID in the URL path. - */ + */ "id"?: string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -41,32 +46,58 @@ export class UpdateAppRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UpdateAppRequestDataAttributes", - }, - id: { - baseName: "id", - type: "string", - format: "uuid", + "attributes": { + "baseName": "attributes", + "type": "UpdateAppRequestDataAttributes", }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateAppRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.ts index b02ec67161f5..056d58779862 100644 --- a/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.ts @@ -6,35 +6,40 @@ import { ComponentGrid } from "./ComponentGrid"; import { Query } from "./Query"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * App definition attributes to be updated, such as name, description, and components. - */ +*/ export class UpdateAppRequestDataAttributes { /** * The new UI components that make up the app. If this field is set, all existing components are replaced with the new components under this field. - */ + */ "components"?: Array; /** * The new human-readable description for the app. - */ + */ "description"?: string; /** * The new name of the app. - */ + */ "name"?: string; /** * The new array of queries, such as external actions and state variables, that the app uses. If this field is set, all existing queries are replaced with the new queries under this field. - */ + */ "queries"?: Array; /** * The new name of the root component of the app. This must be a `grid` component that contains all other components. - */ + */ "rootInstanceName"?: string; /** * The new list of tags for the app, which can be used to filter apps. If this field is set, any existing tags not included in the request are removed. - */ + */ "tags"?: Array; /** @@ -53,42 +58,68 @@ export class UpdateAppRequestDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - components: { - baseName: "components", - type: "Array", - }, - description: { - baseName: "description", - type: "string", + "components": { + "baseName": "components", + "type": "Array", }, - name: { - baseName: "name", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - queries: { - baseName: "queries", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - rootInstanceName: { - baseName: "rootInstanceName", - type: "string", + "queries": { + "baseName": "queries", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "rootInstanceName": { + "baseName": "rootInstanceName", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateAppRequestDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateAppResponse.ts b/packages/datadog-api-client-v2/models/UpdateAppResponse.ts index 1705bfaed51f..a284c28fdc01 100644 --- a/packages/datadog-api-client-v2/models/UpdateAppResponse.ts +++ b/packages/datadog-api-client-v2/models/UpdateAppResponse.ts @@ -8,27 +8,32 @@ import { AppRelationship } from "./AppRelationship"; import { Deployment } from "./Deployment"; import { UpdateAppResponseData } from "./UpdateAppResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after an app is successfully updated. - */ +*/ export class UpdateAppResponse { /** * The data object containing the updated app definition. - */ + */ "data"?: UpdateAppResponseData; /** * Data on the version of the app that was published. - */ + */ "included"?: Array; /** * Metadata of an app. - */ + */ "meta"?: AppMeta; /** * The app's publication relationship and custom connections. - */ + */ "relationship"?: AppRelationship; /** @@ -47,34 +52,60 @@ export class UpdateAppResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UpdateAppResponseData", + "data": { + "baseName": "data", + "type": "UpdateAppResponseData", }, - included: { - baseName: "included", - type: "Array", + "included": { + "baseName": "included", + "type": "Array", }, - meta: { - baseName: "meta", - type: "AppMeta", + "meta": { + "baseName": "meta", + "type": "AppMeta", }, - relationship: { - baseName: "relationship", - type: "AppRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "relationship": { + "baseName": "relationship", + "type": "AppRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateAppResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateAppResponseData.ts b/packages/datadog-api-client-v2/models/UpdateAppResponseData.ts index d443498ff6cc..aefa8ebc054f 100644 --- a/packages/datadog-api-client-v2/models/UpdateAppResponseData.ts +++ b/packages/datadog-api-client-v2/models/UpdateAppResponseData.ts @@ -6,23 +6,28 @@ import { AppDefinitionType } from "./AppDefinitionType"; import { UpdateAppResponseDataAttributes } from "./UpdateAppResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data object containing the updated app definition. - */ +*/ export class UpdateAppResponseData { /** * The updated app definition attributes, such as name, description, and components. - */ + */ "attributes": UpdateAppResponseDataAttributes; /** * The ID of the updated app. - */ + */ "id": string; /** * The app definition type. - */ + */ "type": AppDefinitionType; /** @@ -41,34 +46,60 @@ export class UpdateAppResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UpdateAppResponseDataAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, - format: "uuid", + "attributes": { + "baseName": "attributes", + "type": "UpdateAppResponseDataAttributes", + "required": true, }, - type: { - baseName: "type", - type: "AppDefinitionType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, + "format": "uuid", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AppDefinitionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateAppResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.ts index b28e28496e55..d5c34be6fe8b 100644 --- a/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.ts @@ -6,39 +6,44 @@ import { ComponentGrid } from "./ComponentGrid"; import { Query } from "./Query"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The updated app definition attributes, such as name, description, and components. - */ +*/ export class UpdateAppResponseDataAttributes { /** * The UI components that make up the app. - */ + */ "components"?: Array; /** * The human-readable description for the app. - */ + */ "description"?: string; /** * Whether the app is marked as a favorite by the current user. - */ + */ "favorite"?: boolean; /** * The name of the app. - */ + */ "name"?: string; /** * An array of queries, such as external actions and state variables, that the app uses. - */ + */ "queries"?: Array; /** * The name of the root component of the app. This must be a `grid` component that contains all other components. - */ + */ "rootInstanceName"?: string; /** * A list of tags for the app, which can be used to filter apps. - */ + */ "tags"?: Array; /** @@ -57,46 +62,72 @@ export class UpdateAppResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - components: { - baseName: "components", - type: "Array", - }, - description: { - baseName: "description", - type: "string", + "components": { + "baseName": "components", + "type": "Array", }, - favorite: { - baseName: "favorite", - type: "boolean", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "favorite": { + "baseName": "favorite", + "type": "boolean", }, - queries: { - baseName: "queries", - type: "Array", + "name": { + "baseName": "name", + "type": "string", }, - rootInstanceName: { - baseName: "rootInstanceName", - type: "string", + "queries": { + "baseName": "queries", + "type": "Array", }, - tags: { - baseName: "tags", - type: "Array", + "rootInstanceName": { + "baseName": "rootInstanceName", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "tags": { + "baseName": "tags", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateAppResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.ts b/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.ts index 09b59001e9d2..8d97d2cb433f 100644 --- a/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.ts +++ b/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.ts @@ -5,15 +5,20 @@ */ import { UpdateOpenAPIResponseData } from "./UpdateOpenAPIResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response for `UpdateOpenAPI`. - */ +*/ export class UpdateOpenAPIResponse { /** * Data envelope for `UpdateOpenAPIResponse`. - */ + */ "data"?: UpdateOpenAPIResponseData; /** @@ -32,22 +37,48 @@ export class UpdateOpenAPIResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UpdateOpenAPIResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UpdateOpenAPIResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateOpenAPIResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.ts b/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.ts index f881f837b333..86d75462123e 100644 --- a/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.ts @@ -5,15 +5,20 @@ */ import { OpenAPIEndpoint } from "./OpenAPIEndpoint"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes for `UpdateOpenAPI`. - */ +*/ export class UpdateOpenAPIResponseAttributes { /** * List of endpoints which couldn't be parsed. - */ + */ "failedEndpoints"?: Array; /** @@ -32,22 +37,48 @@ export class UpdateOpenAPIResponseAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - failedEndpoints: { - baseName: "failed_endpoints", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "failedEndpoints": { + "baseName": "failed_endpoints", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateOpenAPIResponseAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.ts b/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.ts index 99e0df52eedc..5eddfd69a99a 100644 --- a/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.ts +++ b/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.ts @@ -5,19 +5,24 @@ */ import { UpdateOpenAPIResponseAttributes } from "./UpdateOpenAPIResponseAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data envelope for `UpdateOpenAPIResponse`. - */ +*/ export class UpdateOpenAPIResponseData { /** * Attributes for `UpdateOpenAPI`. - */ + */ "attributes"?: UpdateOpenAPIResponseAttributes; /** * API identifier. - */ + */ "id"?: string; /** @@ -36,27 +41,53 @@ export class UpdateOpenAPIResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UpdateOpenAPIResponseAttributes", + "attributes": { + "baseName": "attributes", + "type": "UpdateOpenAPIResponseAttributes", }, - id: { - baseName: "id", - type: "string", - format: "uuid", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", + "format": "uuid", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateOpenAPIResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateRuleRequest.ts b/packages/datadog-api-client-v2/models/UpdateRuleRequest.ts index 8cde98ba2351..cf251470ab62 100644 --- a/packages/datadog-api-client-v2/models/UpdateRuleRequest.ts +++ b/packages/datadog-api-client-v2/models/UpdateRuleRequest.ts @@ -5,15 +5,20 @@ */ import { UpdateRuleRequestData } from "./UpdateRuleRequestData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request to update a scorecard rule. - */ +*/ export class UpdateRuleRequest { /** * Data for the request to update a scorecard rule. - */ + */ "data"?: UpdateRuleRequestData; /** @@ -32,22 +37,48 @@ export class UpdateRuleRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UpdateRuleRequestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UpdateRuleRequestData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateRuleRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateRuleRequestData.ts b/packages/datadog-api-client-v2/models/UpdateRuleRequestData.ts index 9684c0907249..e2430f611835 100644 --- a/packages/datadog-api-client-v2/models/UpdateRuleRequestData.ts +++ b/packages/datadog-api-client-v2/models/UpdateRuleRequestData.ts @@ -6,19 +6,24 @@ import { RuleAttributes } from "./RuleAttributes"; import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data for the request to update a scorecard rule. - */ +*/ export class UpdateRuleRequestData { /** * Details of a rule. - */ + */ "attributes"?: RuleAttributes; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -37,26 +42,52 @@ export class UpdateRuleRequestData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "RuleAttributes", }, - type: { - baseName: "type", - type: "RuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateRuleRequestData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateRuleResponse.ts b/packages/datadog-api-client-v2/models/UpdateRuleResponse.ts index 68a966aa6830..53f81c19a0d9 100644 --- a/packages/datadog-api-client-v2/models/UpdateRuleResponse.ts +++ b/packages/datadog-api-client-v2/models/UpdateRuleResponse.ts @@ -5,15 +5,20 @@ */ import { UpdateRuleResponseData } from "./UpdateRuleResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response from a rule update request. - */ +*/ export class UpdateRuleResponse { /** * The data for a rule update response. - */ + */ "data"?: UpdateRuleResponseData; /** @@ -32,22 +37,48 @@ export class UpdateRuleResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UpdateRuleResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UpdateRuleResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateRuleResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateRuleResponseData.ts b/packages/datadog-api-client-v2/models/UpdateRuleResponseData.ts index ecc75a54eea2..80807cd240fc 100644 --- a/packages/datadog-api-client-v2/models/UpdateRuleResponseData.ts +++ b/packages/datadog-api-client-v2/models/UpdateRuleResponseData.ts @@ -7,27 +7,32 @@ import { RelationshipToRule } from "./RelationshipToRule"; import { RuleAttributes } from "./RuleAttributes"; import { RuleType } from "./RuleType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data for a rule update response. - */ +*/ export class UpdateRuleResponseData { /** * Details of a rule. - */ + */ "attributes"?: RuleAttributes; /** * The unique ID for a scorecard rule. - */ + */ "id"?: string; /** * Scorecard create rule response relationship. - */ + */ "relationships"?: RelationshipToRule; /** * The JSON:API type for scorecard rules. - */ + */ "type"?: RuleType; /** @@ -46,34 +51,60 @@ export class UpdateRuleResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "RuleAttributes", + "attributes": { + "baseName": "attributes", + "type": "RuleAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "RelationshipToRule", + "relationships": { + "baseName": "relationships", + "type": "RelationshipToRule", }, - type: { - baseName: "type", - type: "RuleType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "RuleType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateRuleResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateWorkflowRequest.ts b/packages/datadog-api-client-v2/models/UpdateWorkflowRequest.ts index f2afe4ebc3c6..ab583fabc3fe 100644 --- a/packages/datadog-api-client-v2/models/UpdateWorkflowRequest.ts +++ b/packages/datadog-api-client-v2/models/UpdateWorkflowRequest.ts @@ -5,15 +5,20 @@ */ import { WorkflowDataUpdate } from "./WorkflowDataUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A request object for updating an existing workflow. - */ +*/ export class UpdateWorkflowRequest { /** * Data related to the workflow being updated. - */ + */ "data": WorkflowDataUpdate; /** @@ -32,23 +37,49 @@ export class UpdateWorkflowRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowDataUpdate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowDataUpdate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateWorkflowRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpdateWorkflowResponse.ts b/packages/datadog-api-client-v2/models/UpdateWorkflowResponse.ts index 693eb32de407..a30cf037c1ee 100644 --- a/packages/datadog-api-client-v2/models/UpdateWorkflowResponse.ts +++ b/packages/datadog-api-client-v2/models/UpdateWorkflowResponse.ts @@ -5,15 +5,20 @@ */ import { WorkflowDataUpdate } from "./WorkflowDataUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The response object after updating a workflow. - */ +*/ export class UpdateWorkflowResponse { /** * Data related to the workflow being updated. - */ + */ "data"?: WorkflowDataUpdate; /** @@ -32,22 +37,48 @@ export class UpdateWorkflowResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowDataUpdate", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowDataUpdate", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpdateWorkflowResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpsertCatalogEntityRequest.ts b/packages/datadog-api-client-v2/models/UpsertCatalogEntityRequest.ts index 1caccabcc07f..734bff7f7770 100644 --- a/packages/datadog-api-client-v2/models/UpsertCatalogEntityRequest.ts +++ b/packages/datadog-api-client-v2/models/UpsertCatalogEntityRequest.ts @@ -5,10 +5,15 @@ */ import { EntityV3 } from "./EntityV3"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Create or update entity request. - */ +*/ -export type UpsertCatalogEntityRequest = EntityV3 | string | UnparsedObject; +export type UpsertCatalogEntityRequest = EntityV3 | string | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponse.ts b/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponse.ts index ecbff760c3e6..bb0515b36385 100644 --- a/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponse.ts +++ b/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponse.ts @@ -7,23 +7,28 @@ import { EntityData } from "./EntityData"; import { EntityResponseMeta } from "./EntityResponseMeta"; import { UpsertCatalogEntityResponseIncludedItem } from "./UpsertCatalogEntityResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Upsert entity response. - */ +*/ export class UpsertCatalogEntityResponse { /** * List of entity data. - */ + */ "data"?: Array; /** * Upsert entity response included. - */ + */ "included"?: Array; /** * Entity metadata. - */ + */ "meta"?: EntityResponseMeta; /** @@ -42,30 +47,56 @@ export class UpsertCatalogEntityResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "EntityResponseMeta", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "EntityResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UpsertCatalogEntityResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponseIncludedItem.ts index 512c59a3e871..befe4890572a 100644 --- a/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/UpsertCatalogEntityResponseIncludedItem.ts @@ -5,12 +5,15 @@ */ import { EntityResponseIncludedSchema } from "./EntityResponseIncludedSchema"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Upsert entity response included item. - */ +*/ -export type UpsertCatalogEntityResponseIncludedItem = - | EntityResponseIncludedSchema - | UnparsedObject; +export type UpsertCatalogEntityResponseIncludedItem = EntityResponseIncludedSchema | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UrlParam.ts b/packages/datadog-api-client-v2/models/UrlParam.ts index 615d77485921..8c0cac6fe78c 100644 --- a/packages/datadog-api-client-v2/models/UrlParam.ts +++ b/packages/datadog-api-client-v2/models/UrlParam.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `UrlParam` object. - */ +*/ export class UrlParam { /** * Name for tokens. - */ + */ "name": string; /** * The `UrlParam` `value`. - */ + */ "value": string; /** @@ -35,28 +40,54 @@ export class UrlParam { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - value: { - baseName: "value", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UrlParam.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UrlParamUpdate.ts b/packages/datadog-api-client-v2/models/UrlParamUpdate.ts index 779eb9851ecd..d56efbecbb22 100644 --- a/packages/datadog-api-client-v2/models/UrlParamUpdate.ts +++ b/packages/datadog-api-client-v2/models/UrlParamUpdate.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `UrlParamUpdate` object. - */ +*/ export class UrlParamUpdate { /** * Should the header be deleted. - */ + */ "deleted"?: boolean; /** * Name for tokens. - */ + */ "name": string; /** * The `UrlParamUpdate` `value`. - */ + */ "value"?: string; /** @@ -39,31 +44,57 @@ export class UrlParamUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - deleted: { - baseName: "deleted", - type: "boolean", - }, - name: { - baseName: "name", - type: "string", - required: true, + "deleted": { + "baseName": "deleted", + "type": "boolean", }, - value: { - baseName: "value", - type: "string", + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UrlParamUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageApplicationSecurityMonitoringResponse.ts b/packages/datadog-api-client-v2/models/UsageApplicationSecurityMonitoringResponse.ts index 892554be83bd..a8c3db1b0624 100644 --- a/packages/datadog-api-client-v2/models/UsageApplicationSecurityMonitoringResponse.ts +++ b/packages/datadog-api-client-v2/models/UsageApplicationSecurityMonitoringResponse.ts @@ -5,15 +5,20 @@ */ import { UsageDataObject } from "./UsageDataObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Application Security Monitoring usage response. - */ +*/ export class UsageApplicationSecurityMonitoringResponse { /** * Response containing Application Security Monitoring usage. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class UsageApplicationSecurityMonitoringResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageApplicationSecurityMonitoringResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageAttributesObject.ts b/packages/datadog-api-client-v2/models/UsageAttributesObject.ts index fd1861c8b399..b3a097cbc15e 100644 --- a/packages/datadog-api-client-v2/models/UsageAttributesObject.ts +++ b/packages/datadog-api-client-v2/models/UsageAttributesObject.ts @@ -6,35 +6,40 @@ import { HourlyUsageType } from "./HourlyUsageType"; import { UsageTimeSeriesObject } from "./UsageTimeSeriesObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Usage attributes data. - */ +*/ export class UsageAttributesObject { /** * The organization name. - */ + */ "orgName"?: string; /** * The product for which usage is being reported. - */ + */ "productFamily"?: string; /** * The organization public ID. - */ + */ "publicId"?: string; /** * The region of the Datadog instance that the organization belongs to. - */ + */ "region"?: string; /** * List of usage data reported for each requested hour. - */ + */ "timeseries"?: Array; /** * Usage type that is being measured. - */ + */ "usageType"?: HourlyUsageType; /** @@ -53,42 +58,68 @@ export class UsageAttributesObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - orgName: { - baseName: "org_name", - type: "string", - }, - productFamily: { - baseName: "product_family", - type: "string", + "orgName": { + "baseName": "org_name", + "type": "string", }, - publicId: { - baseName: "public_id", - type: "string", + "productFamily": { + "baseName": "product_family", + "type": "string", }, - region: { - baseName: "region", - type: "string", + "publicId": { + "baseName": "public_id", + "type": "string", }, - timeseries: { - baseName: "timeseries", - type: "Array", + "region": { + "baseName": "region", + "type": "string", }, - usageType: { - baseName: "usage_type", - type: "HourlyUsageType", + "timeseries": { + "baseName": "timeseries", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "usageType": { + "baseName": "usage_type", + "type": "HourlyUsageType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageAttributesObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageDataObject.ts b/packages/datadog-api-client-v2/models/UsageDataObject.ts index 04fbed58d822..fe5d44ff0dc4 100644 --- a/packages/datadog-api-client-v2/models/UsageDataObject.ts +++ b/packages/datadog-api-client-v2/models/UsageDataObject.ts @@ -6,23 +6,28 @@ import { UsageAttributesObject } from "./UsageAttributesObject"; import { UsageTimeSeriesType } from "./UsageTimeSeriesType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Usage data. - */ +*/ export class UsageDataObject { /** * Usage attributes data. - */ + */ "attributes"?: UsageAttributesObject; /** * Unique ID of the response. - */ + */ "id"?: string; /** * Type of usage data. - */ + */ "type"?: UsageTimeSeriesType; /** @@ -41,30 +46,56 @@ export class UsageDataObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UsageAttributesObject", - }, - id: { - baseName: "id", - type: "string", + "attributes": { + "baseName": "attributes", + "type": "UsageAttributesObject", }, - type: { - baseName: "type", - type: "UsageTimeSeriesType", + "id": { + "baseName": "id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsageTimeSeriesType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageDataObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageLambdaTracedInvocationsResponse.ts b/packages/datadog-api-client-v2/models/UsageLambdaTracedInvocationsResponse.ts index 7895af6826d2..c64f5ddb4efc 100644 --- a/packages/datadog-api-client-v2/models/UsageLambdaTracedInvocationsResponse.ts +++ b/packages/datadog-api-client-v2/models/UsageLambdaTracedInvocationsResponse.ts @@ -5,15 +5,20 @@ */ import { UsageDataObject } from "./UsageDataObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Lambda Traced Invocations usage response. - */ +*/ export class UsageLambdaTracedInvocationsResponse { /** * Response containing Lambda Traced Invocations usage. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class UsageLambdaTracedInvocationsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageLambdaTracedInvocationsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageObservabilityPipelinesResponse.ts b/packages/datadog-api-client-v2/models/UsageObservabilityPipelinesResponse.ts index 44d7d506bd4d..7f23fa6754c6 100644 --- a/packages/datadog-api-client-v2/models/UsageObservabilityPipelinesResponse.ts +++ b/packages/datadog-api-client-v2/models/UsageObservabilityPipelinesResponse.ts @@ -5,15 +5,20 @@ */ import { UsageDataObject } from "./UsageDataObject"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Observability Pipelines usage response. - */ +*/ export class UsageObservabilityPipelinesResponse { /** * Response containing Observability Pipelines usage. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class UsageObservabilityPipelinesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageObservabilityPipelinesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageTimeSeriesObject.ts b/packages/datadog-api-client-v2/models/UsageTimeSeriesObject.ts index ffc68411d930..3fc5bccad73e 100644 --- a/packages/datadog-api-client-v2/models/UsageTimeSeriesObject.ts +++ b/packages/datadog-api-client-v2/models/UsageTimeSeriesObject.ts @@ -4,19 +4,24 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Usage timeseries data. - */ +*/ export class UsageTimeSeriesObject { /** * Datetime in ISO-8601 format, UTC. The hour for the usage. - */ + */ "timestamp"?: Date; /** * Contains the number measured for the given usage_type during the hour. - */ + */ "value"?: number; /** @@ -35,28 +40,54 @@ export class UsageTimeSeriesObject { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - timestamp: { - baseName: "timestamp", - type: "Date", - format: "date-time", + "timestamp": { + "baseName": "timestamp", + "type": "Date", + "format": "date-time", }, - value: { - baseName: "value", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "value": { + "baseName": "value", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsageTimeSeriesObject.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsageTimeSeriesType.ts b/packages/datadog-api-client-v2/models/UsageTimeSeriesType.ts index afc0a310524e..c941386ef193 100644 --- a/packages/datadog-api-client-v2/models/UsageTimeSeriesType.ts +++ b/packages/datadog-api-client-v2/models/UsageTimeSeriesType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Type of usage data. - */ +*/ export type UsageTimeSeriesType = typeof USAGE_TIMESERIES | UnparsedObject; -export const USAGE_TIMESERIES = "usage_timeseries"; +export const USAGE_TIMESERIES = 'usage_timeseries'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/User.ts b/packages/datadog-api-client-v2/models/User.ts index 94e959a02159..a2272f74978c 100644 --- a/packages/datadog-api-client-v2/models/User.ts +++ b/packages/datadog-api-client-v2/models/User.ts @@ -7,27 +7,32 @@ import { UserAttributes } from "./UserAttributes"; import { UserResponseRelationships } from "./UserResponseRelationships"; import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User object returned by the API. - */ +*/ export class User { /** * Attributes of user object returned by the API. - */ + */ "attributes"?: UserAttributes; /** * ID of the user. - */ + */ "id"?: string; /** * Relationships of the user object returned by the API. - */ + */ "relationships"?: UserResponseRelationships; /** * Users resource type. - */ + */ "type"?: UsersType; /** @@ -46,34 +51,60 @@ export class User { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserAttributes", + "attributes": { + "baseName": "attributes", + "type": "UserAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "UserResponseRelationships", + "relationships": { + "baseName": "relationships", + "type": "UserResponseRelationships", }, - type: { - baseName: "type", - type: "UsersType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return User.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserAttributes.ts b/packages/datadog-api-client-v2/models/UserAttributes.ts index c589ecee41b0..e2e7ac066b5f 100644 --- a/packages/datadog-api-client-v2/models/UserAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserAttributes.ts @@ -4,59 +4,64 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of user object returned by the API. - */ +*/ export class UserAttributes { /** * Creation time of the user. - */ + */ "createdAt"?: Date; /** * Whether the user is disabled. - */ + */ "disabled"?: boolean; /** * Email of the user. - */ + */ "email"?: string; /** * Handle of the user. - */ + */ "handle"?: string; /** * URL of the user's icon. - */ + */ "icon"?: string; /** * If user has MFA enabled. - */ + */ "mfaEnabled"?: boolean; /** * Time that the user was last modified. - */ + */ "modifiedAt"?: Date; /** * Name of the user. - */ + */ "name"?: string; /** * Whether the user is a service account. - */ + */ "serviceAccount"?: boolean; /** * Status of the user. - */ + */ "status"?: string; /** * Title of the user. - */ + */ "title"?: string; /** * Whether the user is verified. - */ + */ "verified"?: boolean; /** @@ -75,68 +80,94 @@ export class UserAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - disabled: { - baseName: "disabled", - type: "boolean", + "disabled": { + "baseName": "disabled", + "type": "boolean", }, - email: { - baseName: "email", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - handle: { - baseName: "handle", - type: "string", + "handle": { + "baseName": "handle", + "type": "string", }, - icon: { - baseName: "icon", - type: "string", + "icon": { + "baseName": "icon", + "type": "string", }, - mfaEnabled: { - baseName: "mfa_enabled", - type: "boolean", + "mfaEnabled": { + "baseName": "mfa_enabled", + "type": "boolean", }, - modifiedAt: { - baseName: "modified_at", - type: "Date", - format: "date-time", + "modifiedAt": { + "baseName": "modified_at", + "type": "Date", + "format": "date-time", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - serviceAccount: { - baseName: "service_account", - type: "boolean", + "serviceAccount": { + "baseName": "service_account", + "type": "boolean", }, - status: { - baseName: "status", - type: "string", + "status": { + "baseName": "status", + "type": "string", }, - title: { - baseName: "title", - type: "string", + "title": { + "baseName": "title", + "type": "string", }, - verified: { - baseName: "verified", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "verified": { + "baseName": "verified", + "type": "boolean", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserCreateAttributes.ts b/packages/datadog-api-client-v2/models/UserCreateAttributes.ts index 24d9e0b45bde..6ea7d0421ea4 100644 --- a/packages/datadog-api-client-v2/models/UserCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserCreateAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the created user. - */ +*/ export class UserCreateAttributes { /** * The email of the user. - */ + */ "email": string; /** * The name of the user. - */ + */ "name"?: string; /** * The title of the user. - */ + */ "title"?: string; /** @@ -39,31 +44,57 @@ export class UserCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - email: { - baseName: "email", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", + "email": { + "baseName": "email", + "type": "string", + "required": true, }, - title: { - baseName: "title", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "title": { + "baseName": "title", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserCreateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserCreateData.ts b/packages/datadog-api-client-v2/models/UserCreateData.ts index fb8a8ecffdcc..c2219feddca6 100644 --- a/packages/datadog-api-client-v2/models/UserCreateData.ts +++ b/packages/datadog-api-client-v2/models/UserCreateData.ts @@ -7,23 +7,28 @@ import { UserCreateAttributes } from "./UserCreateAttributes"; import { UserRelationships } from "./UserRelationships"; import { UsersType } from "./UsersType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to create a user. - */ +*/ export class UserCreateData { /** * Attributes of the created user. - */ + */ "attributes": UserCreateAttributes; /** * Relationships of the user object. - */ + */ "relationships"?: UserRelationships; /** * Users resource type. - */ + */ "type": UsersType; /** @@ -42,32 +47,58 @@ export class UserCreateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserCreateAttributes", - required: true, - }, - relationships: { - baseName: "relationships", - type: "UserRelationships", + "attributes": { + "baseName": "attributes", + "type": "UserCreateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "UsersType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "UserRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserCreateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserCreateRequest.ts b/packages/datadog-api-client-v2/models/UserCreateRequest.ts index 2aab69e65f27..1e7fc743860c 100644 --- a/packages/datadog-api-client-v2/models/UserCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/UserCreateRequest.ts @@ -5,15 +5,20 @@ */ import { UserCreateData } from "./UserCreateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Create a user. - */ +*/ export class UserCreateRequest { /** * Object to create a user. - */ + */ "data": UserCreateData; /** @@ -32,23 +37,49 @@ export class UserCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UserCreateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UserCreateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationData.ts b/packages/datadog-api-client-v2/models/UserInvitationData.ts index 9be17ef0b2c7..aca2aa51a910 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationData.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationData.ts @@ -6,19 +6,24 @@ import { UserInvitationRelationships } from "./UserInvitationRelationships"; import { UserInvitationsType } from "./UserInvitationsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to create a user invitation. - */ +*/ export class UserInvitationData { /** * Relationships data for user invitation. - */ + */ "relationships": UserInvitationRelationships; /** * User invitations type. - */ + */ "type": UserInvitationsType; /** @@ -37,28 +42,54 @@ export class UserInvitationData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - relationships: { - baseName: "relationships", - type: "UserInvitationRelationships", - required: true, + "relationships": { + "baseName": "relationships", + "type": "UserInvitationRelationships", + "required": true, }, - type: { - baseName: "type", - type: "UserInvitationsType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserInvitationsType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationDataAttributes.ts b/packages/datadog-api-client-v2/models/UserInvitationDataAttributes.ts index 5300229f44ef..74899c9ed1dd 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationDataAttributes.ts @@ -4,27 +4,32 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of a user invitation. - */ +*/ export class UserInvitationDataAttributes { /** * Creation time of the user invitation. - */ + */ "createdAt"?: Date; /** * Time of invitation expiration. - */ + */ "expiresAt"?: Date; /** * Type of invitation. - */ + */ "inviteType"?: string; /** * UUID of the user invitation. - */ + */ "uuid"?: string; /** @@ -43,36 +48,62 @@ export class UserInvitationDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "created_at", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "created_at", + "type": "Date", + "format": "date-time", }, - expiresAt: { - baseName: "expires_at", - type: "Date", - format: "date-time", + "expiresAt": { + "baseName": "expires_at", + "type": "Date", + "format": "date-time", }, - inviteType: { - baseName: "invite_type", - type: "string", + "inviteType": { + "baseName": "invite_type", + "type": "string", }, - uuid: { - baseName: "uuid", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "uuid": { + "baseName": "uuid", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationRelationships.ts b/packages/datadog-api-client-v2/models/UserInvitationRelationships.ts index 6782a84c5f0c..f017994e708c 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationRelationships.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToUser } from "./RelationshipToUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships data for user invitation. - */ +*/ export class UserInvitationRelationships { /** * Relationship to user. - */ + */ "user": RelationshipToUser; /** @@ -32,23 +37,49 @@ export class UserInvitationRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - user: { - baseName: "user", - type: "RelationshipToUser", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "user": { + "baseName": "user", + "type": "RelationshipToUser", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationResponse.ts b/packages/datadog-api-client-v2/models/UserInvitationResponse.ts index 727be50640ed..f626721f137f 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationResponse.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationResponse.ts @@ -5,15 +5,20 @@ */ import { UserInvitationResponseData } from "./UserInvitationResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User invitation as returned by the API. - */ +*/ export class UserInvitationResponse { /** * Object of a user invitation returned by the API. - */ + */ "data"?: UserInvitationResponseData; /** @@ -32,22 +37,48 @@ export class UserInvitationResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UserInvitationResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UserInvitationResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationResponseData.ts b/packages/datadog-api-client-v2/models/UserInvitationResponseData.ts index 0086cfd42820..806bccd41d1d 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationResponseData.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationResponseData.ts @@ -7,27 +7,32 @@ import { UserInvitationDataAttributes } from "./UserInvitationDataAttributes"; import { UserInvitationRelationships } from "./UserInvitationRelationships"; import { UserInvitationsType } from "./UserInvitationsType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object of a user invitation returned by the API. - */ +*/ export class UserInvitationResponseData { /** * Attributes of a user invitation. - */ + */ "attributes"?: UserInvitationDataAttributes; /** * ID of the user invitation. - */ + */ "id"?: string; /** * Relationships data for user invitation. - */ + */ "relationships"?: UserInvitationRelationships; /** * User invitations type. - */ + */ "type"?: UserInvitationsType; /** @@ -46,34 +51,60 @@ export class UserInvitationResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserInvitationDataAttributes", + "attributes": { + "baseName": "attributes", + "type": "UserInvitationDataAttributes", }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "UserInvitationRelationships", + "relationships": { + "baseName": "relationships", + "type": "UserInvitationRelationships", }, - type: { - baseName: "type", - type: "UserInvitationsType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserInvitationsType", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationsRequest.ts b/packages/datadog-api-client-v2/models/UserInvitationsRequest.ts index d9e78cad8ec5..3e36cac43469 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationsRequest.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationsRequest.ts @@ -5,15 +5,20 @@ */ import { UserInvitationData } from "./UserInvitationData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to invite users to join the organization. - */ +*/ export class UserInvitationsRequest { /** * List of user invitations. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class UserInvitationsRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationsRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationsResponse.ts b/packages/datadog-api-client-v2/models/UserInvitationsResponse.ts index f9dde2b111ef..5b0dea9e765a 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationsResponse.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationsResponse.ts @@ -5,15 +5,20 @@ */ import { UserInvitationResponseData } from "./UserInvitationResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User invitations as returned by the API. - */ +*/ export class UserInvitationsResponse { /** * Array of user invitations. - */ + */ "data"?: Array; /** @@ -32,22 +37,48 @@ export class UserInvitationsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserInvitationsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserInvitationsType.ts b/packages/datadog-api-client-v2/models/UserInvitationsType.ts index d76c37f56181..a13cbf287207 100644 --- a/packages/datadog-api-client-v2/models/UserInvitationsType.ts +++ b/packages/datadog-api-client-v2/models/UserInvitationsType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * User invitations type. - */ +*/ export type UserInvitationsType = typeof USER_INVITATIONS | UnparsedObject; -export const USER_INVITATIONS = "user_invitations"; +export const USER_INVITATIONS = 'user_invitations'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserRelationshipData.ts b/packages/datadog-api-client-v2/models/UserRelationshipData.ts index 84aaf850fa36..0d6202374b3c 100644 --- a/packages/datadog-api-client-v2/models/UserRelationshipData.ts +++ b/packages/datadog-api-client-v2/models/UserRelationshipData.ts @@ -5,19 +5,24 @@ */ import { UserResourceType } from "./UserResourceType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to user object. - */ +*/ export class UserRelationshipData { /** * A unique identifier that represents the user. - */ + */ "id": string; /** * User resource type. - */ + */ "type": UserResourceType; /** @@ -36,28 +41,54 @@ export class UserRelationshipData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "UserResourceType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserResourceType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserRelationshipData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserRelationships.ts b/packages/datadog-api-client-v2/models/UserRelationships.ts index 139165a6447f..7cb3cd6b3662 100644 --- a/packages/datadog-api-client-v2/models/UserRelationships.ts +++ b/packages/datadog-api-client-v2/models/UserRelationships.ts @@ -5,15 +5,20 @@ */ import { RelationshipToRoles } from "./RelationshipToRoles"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of the user object. - */ +*/ export class UserRelationships { /** * Relationship to roles. - */ + */ "roles"?: RelationshipToRoles; /** @@ -32,22 +37,48 @@ export class UserRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - roles: { - baseName: "roles", - type: "RelationshipToRoles", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "roles": { + "baseName": "roles", + "type": "RelationshipToRoles", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserResourceType.ts b/packages/datadog-api-client-v2/models/UserResourceType.ts index 50c8c2225b17..ecd2b30edecb 100644 --- a/packages/datadog-api-client-v2/models/UserResourceType.ts +++ b/packages/datadog-api-client-v2/models/UserResourceType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * User resource type. - */ +*/ export type UserResourceType = typeof USER | UnparsedObject; -export const USER = "user"; +export const USER = 'user'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserResponse.ts b/packages/datadog-api-client-v2/models/UserResponse.ts index 6bd11d5bb604..b7b6616d68e3 100644 --- a/packages/datadog-api-client-v2/models/UserResponse.ts +++ b/packages/datadog-api-client-v2/models/UserResponse.ts @@ -6,19 +6,24 @@ import { User } from "./User"; import { UserResponseIncludedItem } from "./UserResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about a single user. - */ +*/ export class UserResponse { /** * User object returned by the API. - */ + */ "data"?: User; /** * Array of objects related to the user. - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class UserResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "User", + "data": { + "baseName": "data", + "type": "User", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserResponseIncludedItem.ts b/packages/datadog-api-client-v2/models/UserResponseIncludedItem.ts index ef4839d1b739..1e088c91558b 100644 --- a/packages/datadog-api-client-v2/models/UserResponseIncludedItem.ts +++ b/packages/datadog-api-client-v2/models/UserResponseIncludedItem.ts @@ -7,14 +7,15 @@ import { Organization } from "./Organization"; import { Permission } from "./Permission"; import { Role } from "./Role"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * An object related to a user. - */ +*/ -export type UserResponseIncludedItem = - | Organization - | Permission - | Role - | UnparsedObject; +export type UserResponseIncludedItem = Organization | Permission | Role | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserResponseRelationships.ts b/packages/datadog-api-client-v2/models/UserResponseRelationships.ts index 5912fb0daba5..5d152054f72f 100644 --- a/packages/datadog-api-client-v2/models/UserResponseRelationships.ts +++ b/packages/datadog-api-client-v2/models/UserResponseRelationships.ts @@ -8,27 +8,32 @@ import { RelationshipToOrganizations } from "./RelationshipToOrganizations"; import { RelationshipToRoles } from "./RelationshipToRoles"; import { RelationshipToUsers } from "./RelationshipToUsers"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationships of the user object returned by the API. - */ +*/ export class UserResponseRelationships { /** * Relationship to an organization. - */ + */ "org"?: RelationshipToOrganization; /** * Relationship to organizations. - */ + */ "otherOrgs"?: RelationshipToOrganizations; /** * Relationship to users. - */ + */ "otherUsers"?: RelationshipToUsers; /** * Relationship to roles. - */ + */ "roles"?: RelationshipToRoles; /** @@ -47,34 +52,60 @@ export class UserResponseRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - org: { - baseName: "org", - type: "RelationshipToOrganization", + "org": { + "baseName": "org", + "type": "RelationshipToOrganization", }, - otherOrgs: { - baseName: "other_orgs", - type: "RelationshipToOrganizations", + "otherOrgs": { + "baseName": "other_orgs", + "type": "RelationshipToOrganizations", }, - otherUsers: { - baseName: "other_users", - type: "RelationshipToUsers", + "otherUsers": { + "baseName": "other_users", + "type": "RelationshipToUsers", }, - roles: { - baseName: "roles", - type: "RelationshipToRoles", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "roles": { + "baseName": "roles", + "type": "RelationshipToRoles", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserResponseRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeam.ts b/packages/datadog-api-client-v2/models/UserTeam.ts index e37e24650929..4dc74b49b327 100644 --- a/packages/datadog-api-client-v2/models/UserTeam.ts +++ b/packages/datadog-api-client-v2/models/UserTeam.ts @@ -7,27 +7,32 @@ import { UserTeamAttributes } from "./UserTeamAttributes"; import { UserTeamRelationships } from "./UserTeamRelationships"; import { UserTeamType } from "./UserTeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A user's relationship with a team - */ +*/ export class UserTeam { /** * Team membership attributes - */ + */ "attributes"?: UserTeamAttributes; /** * The ID of a user's relationship with a team - */ + */ "id": string; /** * Relationship between membership and a user - */ + */ "relationships"?: UserTeamRelationships; /** * Team membership type - */ + */ "type": UserTeamType; /** @@ -46,36 +51,62 @@ export class UserTeam { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserTeamAttributes", + "attributes": { + "baseName": "attributes", + "type": "UserTeamAttributes", }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "UserTeamRelationships", + "relationships": { + "baseName": "relationships", + "type": "UserTeamRelationships", }, - type: { - baseName: "type", - type: "UserTeamType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeam.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamAttributes.ts b/packages/datadog-api-client-v2/models/UserTeamAttributes.ts index 1681ab8045bb..fc1e3521842d 100644 --- a/packages/datadog-api-client-v2/models/UserTeamAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserTeamAttributes.ts @@ -5,24 +5,29 @@ */ import { UserTeamRole } from "./UserTeamRole"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team membership attributes - */ +*/ export class UserTeamAttributes { /** * The mechanism responsible for provisioning the team relationship. * Possible values: null for added by a user, "service_account" if added by a service account, and "saml_mapping" if provisioned via SAML mapping. - */ + */ "provisionedBy"?: string; /** * UUID of the User or Service Account who provisioned this team membership, or null if provisioned via SAML mapping. - */ + */ "provisionedById"?: string; /** * The user's role within the team - */ + */ "role"?: UserTeamRole; /** @@ -41,30 +46,56 @@ export class UserTeamAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - provisionedBy: { - baseName: "provisioned_by", - type: "string", - }, - provisionedById: { - baseName: "provisioned_by_id", - type: "string", + "provisionedBy": { + "baseName": "provisioned_by", + "type": "string", }, - role: { - baseName: "role", - type: "UserTeamRole", + "provisionedById": { + "baseName": "provisioned_by_id", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "role": { + "baseName": "role", + "type": "UserTeamRole", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamCreate.ts b/packages/datadog-api-client-v2/models/UserTeamCreate.ts index e66157bb0545..cf6075bf19d3 100644 --- a/packages/datadog-api-client-v2/models/UserTeamCreate.ts +++ b/packages/datadog-api-client-v2/models/UserTeamCreate.ts @@ -7,23 +7,28 @@ import { UserTeamAttributes } from "./UserTeamAttributes"; import { UserTeamRelationships } from "./UserTeamRelationships"; import { UserTeamType } from "./UserTeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A user's relationship with a team - */ +*/ export class UserTeamCreate { /** * Team membership attributes - */ + */ "attributes"?: UserTeamAttributes; /** * Relationship between membership and a user - */ + */ "relationships"?: UserTeamRelationships; /** * Team membership type - */ + */ "type": UserTeamType; /** @@ -42,31 +47,57 @@ export class UserTeamCreate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserTeamAttributes", - }, - relationships: { - baseName: "relationships", - type: "UserTeamRelationships", + "attributes": { + "baseName": "attributes", + "type": "UserTeamAttributes", }, - type: { - baseName: "type", - type: "UserTeamType", - required: true, + "relationships": { + "baseName": "relationships", + "type": "UserTeamRelationships", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamCreate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamIncluded.ts b/packages/datadog-api-client-v2/models/UserTeamIncluded.ts index 1a6ea9813146..dfb53ce1a7d9 100644 --- a/packages/datadog-api-client-v2/models/UserTeamIncluded.ts +++ b/packages/datadog-api-client-v2/models/UserTeamIncluded.ts @@ -6,10 +6,15 @@ import { Team } from "./Team"; import { User } from "./User"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Included resources related to the team membership - */ +*/ -export type UserTeamIncluded = User | Team | UnparsedObject; +export type UserTeamIncluded = User | Team | UnparsedObject; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserTeamPermission.ts b/packages/datadog-api-client-v2/models/UserTeamPermission.ts index ef27d0557543..1b324f8ab30e 100644 --- a/packages/datadog-api-client-v2/models/UserTeamPermission.ts +++ b/packages/datadog-api-client-v2/models/UserTeamPermission.ts @@ -6,23 +6,28 @@ import { UserTeamPermissionAttributes } from "./UserTeamPermissionAttributes"; import { UserTeamPermissionType } from "./UserTeamPermissionType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A user's permissions for a given team - */ +*/ export class UserTeamPermission { /** * User team permission attributes - */ + */ "attributes"?: UserTeamPermissionAttributes; /** * The user team permission's identifier - */ + */ "id": string; /** * User team permission type - */ + */ "type": UserTeamPermissionType; /** @@ -41,32 +46,58 @@ export class UserTeamPermission { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserTeamPermissionAttributes", - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "UserTeamPermissionAttributes", }, - type: { - baseName: "type", - type: "UserTeamPermissionType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamPermissionType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamPermission.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts b/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts index 68a90c83cf74..6d42a9c17c7e 100644 --- a/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * User team permission attributes - */ +*/ export class UserTeamPermissionAttributes { /** * Object of team permission actions and boolean values that a logged in user can perform on this team. - */ + */ "permissions"?: any; /** @@ -31,22 +36,48 @@ export class UserTeamPermissionAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - permissions: { - baseName: "permissions", - type: "any", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "permissions": { + "baseName": "permissions", + "type": "any", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamPermissionAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamPermissionType.ts b/packages/datadog-api-client-v2/models/UserTeamPermissionType.ts index 921da4191564..a65fb4529f4f 100644 --- a/packages/datadog-api-client-v2/models/UserTeamPermissionType.ts +++ b/packages/datadog-api-client-v2/models/UserTeamPermissionType.ts @@ -4,13 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * User team permission type - */ +*/ -export type UserTeamPermissionType = - | typeof USER_TEAM_PERMISSIONS - | UnparsedObject; -export const USER_TEAM_PERMISSIONS = "user_team_permissions"; +export type UserTeamPermissionType = typeof USER_TEAM_PERMISSIONS | UnparsedObject; +export const USER_TEAM_PERMISSIONS = 'user_team_permissions'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserTeamRelationships.ts b/packages/datadog-api-client-v2/models/UserTeamRelationships.ts index 5d014557c1d0..9885328499af 100644 --- a/packages/datadog-api-client-v2/models/UserTeamRelationships.ts +++ b/packages/datadog-api-client-v2/models/UserTeamRelationships.ts @@ -6,19 +6,24 @@ import { RelationshipToUserTeamTeam } from "./RelationshipToUserTeamTeam"; import { RelationshipToUserTeamUser } from "./RelationshipToUserTeamUser"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship between membership and a user - */ +*/ export class UserTeamRelationships { /** * Relationship between team membership and team - */ + */ "team"?: RelationshipToUserTeamTeam; /** * Relationship between team membership and user - */ + */ "user"?: RelationshipToUserTeamUser; /** @@ -37,26 +42,52 @@ export class UserTeamRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - team: { - baseName: "team", - type: "RelationshipToUserTeamTeam", + "team": { + "baseName": "team", + "type": "RelationshipToUserTeamTeam", }, - user: { - baseName: "user", - type: "RelationshipToUserTeamUser", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "user": { + "baseName": "user", + "type": "RelationshipToUserTeamUser", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamRequest.ts b/packages/datadog-api-client-v2/models/UserTeamRequest.ts index 9759468993c1..1ccfec1df24d 100644 --- a/packages/datadog-api-client-v2/models/UserTeamRequest.ts +++ b/packages/datadog-api-client-v2/models/UserTeamRequest.ts @@ -5,15 +5,20 @@ */ import { UserTeamCreate } from "./UserTeamCreate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team membership request - */ +*/ export class UserTeamRequest { /** * A user's relationship with a team - */ + */ "data": UserTeamCreate; /** @@ -32,23 +37,49 @@ export class UserTeamRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UserTeamCreate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UserTeamCreate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamResponse.ts b/packages/datadog-api-client-v2/models/UserTeamResponse.ts index f42c555392c8..4fec1ea5ab26 100644 --- a/packages/datadog-api-client-v2/models/UserTeamResponse.ts +++ b/packages/datadog-api-client-v2/models/UserTeamResponse.ts @@ -6,19 +6,24 @@ import { UserTeam } from "./UserTeam"; import { UserTeamIncluded } from "./UserTeamIncluded"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team membership response - */ +*/ export class UserTeamResponse { /** * A user's relationship with a team - */ + */ "data"?: UserTeam; /** * Resources related to the team memberships - */ + */ "included"?: Array; /** @@ -37,26 +42,52 @@ export class UserTeamResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UserTeam", + "data": { + "baseName": "data", + "type": "UserTeam", }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "included": { + "baseName": "included", + "type": "Array", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamRole.ts b/packages/datadog-api-client-v2/models/UserTeamRole.ts index d9e346e2f4f6..8790a2b8f63c 100644 --- a/packages/datadog-api-client-v2/models/UserTeamRole.ts +++ b/packages/datadog-api-client-v2/models/UserTeamRole.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The user's role within the team - */ +*/ export type UserTeamRole = typeof ADMIN | UnparsedObject; -export const ADMIN = "admin"; +export const ADMIN = 'admin'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserTeamTeamType.ts b/packages/datadog-api-client-v2/models/UserTeamTeamType.ts index 8bbee460ae39..53766cf08c2c 100644 --- a/packages/datadog-api-client-v2/models/UserTeamTeamType.ts +++ b/packages/datadog-api-client-v2/models/UserTeamTeamType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * User team team type - */ +*/ export type UserTeamTeamType = typeof TEAM | UnparsedObject; -export const TEAM = "team"; +export const TEAM = 'team'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserTeamType.ts b/packages/datadog-api-client-v2/models/UserTeamType.ts index c8941892d9d0..f335e1b5f2e8 100644 --- a/packages/datadog-api-client-v2/models/UserTeamType.ts +++ b/packages/datadog-api-client-v2/models/UserTeamType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Team membership type - */ +*/ export type UserTeamType = typeof TEAM_MEMBERSHIPS | UnparsedObject; -export const TEAM_MEMBERSHIPS = "team_memberships"; +export const TEAM_MEMBERSHIPS = 'team_memberships'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserTeamUpdate.ts b/packages/datadog-api-client-v2/models/UserTeamUpdate.ts index 9e7e6086c5f9..a76d37136bbf 100644 --- a/packages/datadog-api-client-v2/models/UserTeamUpdate.ts +++ b/packages/datadog-api-client-v2/models/UserTeamUpdate.ts @@ -6,19 +6,24 @@ import { UserTeamAttributes } from "./UserTeamAttributes"; import { UserTeamType } from "./UserTeamType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A user's relationship with a team - */ +*/ export class UserTeamUpdate { /** * Team membership attributes - */ + */ "attributes"?: UserTeamAttributes; /** * Team membership type - */ + */ "type": UserTeamType; /** @@ -37,27 +42,53 @@ export class UserTeamUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserTeamAttributes", + "attributes": { + "baseName": "attributes", + "type": "UserTeamAttributes", }, - type: { - baseName: "type", - type: "UserTeamType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UserTeamType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.ts b/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.ts index 8e555623ad0c..f4702e0d7af7 100644 --- a/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { UserTeamUpdate } from "./UserTeamUpdate"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team membership request - */ +*/ export class UserTeamUpdateRequest { /** * A user's relationship with a team - */ + */ "data": UserTeamUpdate; /** @@ -32,23 +37,49 @@ export class UserTeamUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UserTeamUpdate", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UserTeamUpdate", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserTeamUserType.ts b/packages/datadog-api-client-v2/models/UserTeamUserType.ts index 03a7f0b7b1b7..41c94bf340c1 100644 --- a/packages/datadog-api-client-v2/models/UserTeamUserType.ts +++ b/packages/datadog-api-client-v2/models/UserTeamUserType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * User team user type - */ +*/ export type UserTeamUserType = typeof USERS | UnparsedObject; -export const USERS = "users"; +export const USERS = 'users'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/UserTeamsResponse.ts b/packages/datadog-api-client-v2/models/UserTeamsResponse.ts index f113e2492075..fabd3e77967d 100644 --- a/packages/datadog-api-client-v2/models/UserTeamsResponse.ts +++ b/packages/datadog-api-client-v2/models/UserTeamsResponse.ts @@ -8,27 +8,32 @@ import { TeamsResponseMeta } from "./TeamsResponseMeta"; import { UserTeam } from "./UserTeam"; import { UserTeamIncluded } from "./UserTeamIncluded"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Team memberships response - */ +*/ export class UserTeamsResponse { /** * Team memberships response data - */ + */ "data"?: Array; /** * Resources related to the team memberships - */ + */ "included"?: Array; /** * Teams response links. - */ + */ "links"?: TeamsResponseLinks; /** * Teams response metadata. - */ + */ "meta"?: TeamsResponseMeta; /** @@ -47,34 +52,60 @@ export class UserTeamsResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - included: { - baseName: "included", - type: "Array", + "included": { + "baseName": "included", + "type": "Array", }, - links: { - baseName: "links", - type: "TeamsResponseLinks", + "links": { + "baseName": "links", + "type": "TeamsResponseLinks", }, - meta: { - baseName: "meta", - type: "TeamsResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "TeamsResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserTeamsResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserUpdateAttributes.ts b/packages/datadog-api-client-v2/models/UserUpdateAttributes.ts index 532867f6463f..b3dc95df3014 100644 --- a/packages/datadog-api-client-v2/models/UserUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserUpdateAttributes.ts @@ -4,23 +4,28 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Attributes of the edited user. - */ +*/ export class UserUpdateAttributes { /** * If the user is enabled or disabled. - */ + */ "disabled"?: boolean; /** * The email of the user. - */ + */ "email"?: string; /** * The name of the user. - */ + */ "name"?: string; /** @@ -39,30 +44,56 @@ export class UserUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - disabled: { - baseName: "disabled", - type: "boolean", - }, - email: { - baseName: "email", - type: "string", + "disabled": { + "baseName": "disabled", + "type": "boolean", }, - name: { - baseName: "name", - type: "string", + "email": { + "baseName": "email", + "type": "string", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "name": { + "baseName": "name", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserUpdateData.ts b/packages/datadog-api-client-v2/models/UserUpdateData.ts index 3ca29fe66ab2..72a685cf563f 100644 --- a/packages/datadog-api-client-v2/models/UserUpdateData.ts +++ b/packages/datadog-api-client-v2/models/UserUpdateData.ts @@ -6,23 +6,28 @@ import { UsersType } from "./UsersType"; import { UserUpdateAttributes } from "./UserUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Object to update a user. - */ +*/ export class UserUpdateData { /** * Attributes of the edited user. - */ + */ "attributes": UserUpdateAttributes; /** * ID of the user. - */ + */ "id": string; /** * Users resource type. - */ + */ "type": UsersType; /** @@ -41,33 +46,59 @@ export class UserUpdateData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "UserUpdateAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, + "attributes": { + "baseName": "attributes", + "type": "UserUpdateAttributes", + "required": true, }, - type: { - baseName: "type", - type: "UsersType", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "UsersType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserUpdateData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UserUpdateRequest.ts b/packages/datadog-api-client-v2/models/UserUpdateRequest.ts index 9778c3fd79ab..38c7e1199d58 100644 --- a/packages/datadog-api-client-v2/models/UserUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/UserUpdateRequest.ts @@ -5,15 +5,20 @@ */ import { UserUpdateData } from "./UserUpdateData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Update a user. - */ +*/ export class UserUpdateRequest { /** * Object to update a user. - */ + */ "data": UserUpdateData; /** @@ -32,23 +37,49 @@ export class UserUpdateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "UserUpdateData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "UserUpdateData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UserUpdateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsersRelationship.ts b/packages/datadog-api-client-v2/models/UsersRelationship.ts index bbe4fd87aaf3..998e6eecd07e 100644 --- a/packages/datadog-api-client-v2/models/UsersRelationship.ts +++ b/packages/datadog-api-client-v2/models/UsersRelationship.ts @@ -5,15 +5,20 @@ */ import { UserRelationshipData } from "./UserRelationshipData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship to users. - */ +*/ export class UsersRelationship { /** * Relationships to user objects. - */ + */ "data": Array; /** @@ -32,23 +37,49 @@ export class UsersRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsersRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsersResponse.ts b/packages/datadog-api-client-v2/models/UsersResponse.ts index 36b36c073e31..365fde0990c0 100644 --- a/packages/datadog-api-client-v2/models/UsersResponse.ts +++ b/packages/datadog-api-client-v2/models/UsersResponse.ts @@ -7,23 +7,28 @@ import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; import { User } from "./User"; import { UserResponseIncludedItem } from "./UserResponseIncludedItem"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response containing information about multiple users. - */ +*/ export class UsersResponse { /** * Array of returned users. - */ + */ "data"?: Array; /** * Array of objects related to the users. - */ + */ "included"?: Array; /** * Object describing meta attributes of response. - */ + */ "meta"?: ResponseMetaAttributes; /** @@ -42,30 +47,56 @@ export class UsersResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "ResponseMetaAttributes", + "included": { + "baseName": "included", + "type": "Array", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "ResponseMetaAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return UsersResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/UsersType.ts b/packages/datadog-api-client-v2/models/UsersType.ts index 7077036c482d..e9beb092aaa7 100644 --- a/packages/datadog-api-client-v2/models/UsersType.ts +++ b/packages/datadog-api-client-v2/models/UsersType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * Users resource type. - */ +*/ export type UsersType = typeof USERS | UnparsedObject; -export const USERS = "users"; +export const USERS = 'users'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/VulnerabilitiesType.ts b/packages/datadog-api-client-v2/models/VulnerabilitiesType.ts index 6c6e992188e5..d1c27c391562 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilitiesType.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilitiesType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The JSON:API type. - */ +*/ export type VulnerabilitiesType = typeof VULNERABILITIES | UnparsedObject; -export const VULNERABILITIES = "vulnerabilities"; +export const VULNERABILITIES = 'vulnerabilities'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/Vulnerability.ts b/packages/datadog-api-client-v2/models/Vulnerability.ts index 88de875f8994..b15154af5baa 100644 --- a/packages/datadog-api-client-v2/models/Vulnerability.ts +++ b/packages/datadog-api-client-v2/models/Vulnerability.ts @@ -7,27 +7,32 @@ import { VulnerabilitiesType } from "./VulnerabilitiesType"; import { VulnerabilityAttributes } from "./VulnerabilityAttributes"; import { VulnerabilityRelationships } from "./VulnerabilityRelationships"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * A single vulnerability - */ +*/ export class Vulnerability { /** * The JSON:API attributes of the vulnerability. - */ + */ "attributes": VulnerabilityAttributes; /** * The unique ID for this vulnerability. - */ + */ "id": string; /** * Related entities object. - */ + */ "relationships": VulnerabilityRelationships; /** * The JSON:API type. - */ + */ "type": VulnerabilitiesType; /** @@ -46,38 +51,64 @@ export class Vulnerability { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "VulnerabilityAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "VulnerabilityAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - relationships: { - baseName: "relationships", - type: "VulnerabilityRelationships", - required: true, + "relationships": { + "baseName": "relationships", + "type": "VulnerabilityRelationships", + "required": true, }, - type: { - baseName: "type", - type: "VulnerabilitiesType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "VulnerabilitiesType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return Vulnerability.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityAttributes.ts b/packages/datadog-api-client-v2/models/VulnerabilityAttributes.ts index 440a0a02bf30..7f5d835cf7b0 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityAttributes.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityAttributes.ts @@ -14,91 +14,96 @@ import { VulnerabilityStatus } from "./VulnerabilityStatus"; import { VulnerabilityTool } from "./VulnerabilityTool"; import { VulnerabilityType } from "./VulnerabilityType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The JSON:API attributes of the vulnerability. - */ +*/ export class VulnerabilityAttributes { /** * Vulnerability advisory ID. - */ + */ "advisoryId"?: string; /** * Code vulnerability location. - */ + */ "codeLocation"?: CodeLocation; /** * Vulnerability CVE list. - */ + */ "cveList": Array; /** * Vulnerability severities. - */ + */ "cvss": VulnerabilityCvss; /** * Static library vulnerability location. - */ + */ "dependencyLocations"?: VulnerabilityDependencyLocations; /** * Vulnerability description. - */ + */ "description": string; /** * The related vulnerability asset ecosystem. - */ + */ "ecosystem"?: VulnerabilityEcosystem; /** * Vulnerability exposure time in seconds. - */ + */ "exposureTime": number; /** * First detection of the vulnerability in [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) format - */ + */ "firstDetection": string; /** * Whether the vulnerability has a remediation or not. - */ + */ "fixAvailable": boolean; /** * Vulnerability language. - */ + */ "language": string; /** * Last detection of the vulnerability in [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) format - */ + */ "lastDetection": string; /** * Vulnerability library. - */ + */ "library"?: Library; /** * List of remediations. - */ + */ "remediations": Array; /** * Vulnerability `repo_digest` list (when the vulnerability is related to `Image` asset). - */ + */ "repoDigests"?: Array; /** * Vulnerability risks. - */ + */ "risks": VulnerabilityRisks; /** * The vulnerability status. - */ + */ "status": VulnerabilityStatus; /** * Vulnerability title. - */ + */ "title": string; /** * The vulnerability tool. - */ + */ "tool": VulnerabilityTool; /** * The vulnerability type. - */ + */ "type": VulnerabilityType; /** @@ -117,113 +122,139 @@ export class VulnerabilityAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - advisoryId: { - baseName: "advisory_id", - type: "string", - }, - codeLocation: { - baseName: "code_location", - type: "CodeLocation", - }, - cveList: { - baseName: "cve_list", - type: "Array", - required: true, - }, - cvss: { - baseName: "cvss", - type: "VulnerabilityCvss", - required: true, - }, - dependencyLocations: { - baseName: "dependency_locations", - type: "VulnerabilityDependencyLocations", - }, - description: { - baseName: "description", - type: "string", - required: true, - }, - ecosystem: { - baseName: "ecosystem", - type: "VulnerabilityEcosystem", - }, - exposureTime: { - baseName: "exposure_time", - type: "number", - required: true, - format: "int64", - }, - firstDetection: { - baseName: "first_detection", - type: "string", - required: true, - }, - fixAvailable: { - baseName: "fix_available", - type: "boolean", - required: true, - }, - language: { - baseName: "language", - type: "string", - required: true, - }, - lastDetection: { - baseName: "last_detection", - type: "string", - required: true, - }, - library: { - baseName: "library", - type: "Library", - }, - remediations: { - baseName: "remediations", - type: "Array", - required: true, - }, - repoDigests: { - baseName: "repo_digests", - type: "Array", - }, - risks: { - baseName: "risks", - type: "VulnerabilityRisks", - required: true, - }, - status: { - baseName: "status", - type: "VulnerabilityStatus", - required: true, - }, - title: { - baseName: "title", - type: "string", - required: true, - }, - tool: { - baseName: "tool", - type: "VulnerabilityTool", - required: true, - }, - type: { - baseName: "type", - type: "VulnerabilityType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "advisoryId": { + "baseName": "advisory_id", + "type": "string", + }, + "codeLocation": { + "baseName": "code_location", + "type": "CodeLocation", + }, + "cveList": { + "baseName": "cve_list", + "type": "Array", + "required": true, + }, + "cvss": { + "baseName": "cvss", + "type": "VulnerabilityCvss", + "required": true, + }, + "dependencyLocations": { + "baseName": "dependency_locations", + "type": "VulnerabilityDependencyLocations", + }, + "description": { + "baseName": "description", + "type": "string", + "required": true, + }, + "ecosystem": { + "baseName": "ecosystem", + "type": "VulnerabilityEcosystem", + }, + "exposureTime": { + "baseName": "exposure_time", + "type": "number", + "required": true, + "format": "int64", + }, + "firstDetection": { + "baseName": "first_detection", + "type": "string", + "required": true, + }, + "fixAvailable": { + "baseName": "fix_available", + "type": "boolean", + "required": true, + }, + "language": { + "baseName": "language", + "type": "string", + "required": true, }, + "lastDetection": { + "baseName": "last_detection", + "type": "string", + "required": true, + }, + "library": { + "baseName": "library", + "type": "Library", + }, + "remediations": { + "baseName": "remediations", + "type": "Array", + "required": true, + }, + "repoDigests": { + "baseName": "repo_digests", + "type": "Array", + }, + "risks": { + "baseName": "risks", + "type": "VulnerabilityRisks", + "required": true, + }, + "status": { + "baseName": "status", + "type": "VulnerabilityStatus", + "required": true, + }, + "title": { + "baseName": "title", + "type": "string", + "required": true, + }, + "tool": { + "baseName": "tool", + "type": "VulnerabilityTool", + "required": true, + }, + "type": { + "baseName": "type", + "type": "VulnerabilityType", + "required": true, + }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityCvss.ts b/packages/datadog-api-client-v2/models/VulnerabilityCvss.ts index 3e783ccfcc56..c75765578785 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityCvss.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityCvss.ts @@ -5,19 +5,24 @@ */ import { CVSS } from "./CVSS"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability severities. - */ +*/ export class VulnerabilityCvss { /** * Vulnerability severity. - */ + */ "base": CVSS; /** * Vulnerability severity. - */ + */ "datadog": CVSS; /** @@ -36,28 +41,54 @@ export class VulnerabilityCvss { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - base: { - baseName: "base", - type: "CVSS", - required: true, + "base": { + "baseName": "base", + "type": "CVSS", + "required": true, }, - datadog: { - baseName: "datadog", - type: "CVSS", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "datadog": { + "baseName": "datadog", + "type": "CVSS", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityCvss.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.ts b/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.ts index e3ae1ac3df04..b40672493f3a 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.ts @@ -5,23 +5,28 @@ */ import { DependencyLocation } from "./DependencyLocation"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Static library vulnerability location. - */ +*/ export class VulnerabilityDependencyLocations { /** * Static library vulnerability location. - */ + */ "block": DependencyLocation; /** * Static library vulnerability location. - */ + */ "name"?: DependencyLocation; /** * Static library vulnerability location. - */ + */ "version"?: DependencyLocation; /** @@ -40,31 +45,57 @@ export class VulnerabilityDependencyLocations { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - block: { - baseName: "block", - type: "DependencyLocation", - required: true, - }, - name: { - baseName: "name", - type: "DependencyLocation", + "block": { + "baseName": "block", + "type": "DependencyLocation", + "required": true, }, - version: { - baseName: "version", - type: "DependencyLocation", + "name": { + "baseName": "name", + "type": "DependencyLocation", }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "version": { + "baseName": "version", + "type": "DependencyLocation", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityDependencyLocations.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.ts b/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.ts index ca8101e2e488..994f2ebdee86 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.ts @@ -4,33 +4,26 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The related vulnerability asset ecosystem. - */ +*/ -export type VulnerabilityEcosystem = - | typeof PYPI - | typeof MAVEN - | typeof NUGET - | typeof NPM - | typeof RUBY_GEMS - | typeof GO - | typeof PACKAGIST - | typeof D_DEB - | typeof RPM - | typeof APK - | typeof WINDOWS - | UnparsedObject; -export const PYPI = "PyPI"; -export const MAVEN = "Maven"; -export const NUGET = "NuGet"; -export const NPM = "Npm"; -export const RUBY_GEMS = "RubyGems"; -export const GO = "Go"; -export const PACKAGIST = "Packagist"; -export const D_DEB = "Ddeb"; -export const RPM = "Rpm"; -export const APK = "Apk"; -export const WINDOWS = "Windows"; +export type VulnerabilityEcosystem = typeof PYPI| typeof MAVEN| typeof NUGET| typeof NPM| typeof RUBY_GEMS| typeof GO| typeof PACKAGIST| typeof D_DEB| typeof RPM| typeof APK| typeof WINDOWS | UnparsedObject; +export const PYPI = 'PyPI'; +export const MAVEN = 'Maven'; +export const NUGET = 'NuGet'; +export const NPM = 'Npm'; +export const RUBY_GEMS = 'RubyGems'; +export const GO = 'Go'; +export const PACKAGIST = 'Packagist'; +export const D_DEB = 'Ddeb'; +export const RPM = 'Rpm'; +export const APK = 'Apk'; +export const WINDOWS = 'Windows'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/VulnerabilityRelationships.ts b/packages/datadog-api-client-v2/models/VulnerabilityRelationships.ts index 6bbe348b1cf8..8790305d8c06 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityRelationships.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityRelationships.ts @@ -5,15 +5,20 @@ */ import { VulnerabilityRelationshipsAffects } from "./VulnerabilityRelationshipsAffects"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Related entities object. - */ +*/ export class VulnerabilityRelationships { /** * Relationship type. - */ + */ "affects": VulnerabilityRelationshipsAffects; /** @@ -32,23 +37,49 @@ export class VulnerabilityRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - affects: { - baseName: "affects", - type: "VulnerabilityRelationshipsAffects", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "affects": { + "baseName": "affects", + "type": "VulnerabilityRelationshipsAffects", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.ts b/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.ts index 7fb8a2d6b0ab..2c080bd88da0 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.ts @@ -5,15 +5,20 @@ */ import { VulnerabilityRelationshipsAffectsData } from "./VulnerabilityRelationshipsAffectsData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Relationship type. - */ +*/ export class VulnerabilityRelationshipsAffects { /** * Asset affected by this vulnerability. - */ + */ "data": VulnerabilityRelationshipsAffectsData; /** @@ -32,23 +37,49 @@ export class VulnerabilityRelationshipsAffects { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "VulnerabilityRelationshipsAffectsData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "VulnerabilityRelationshipsAffectsData", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityRelationshipsAffects.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.ts b/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.ts index 24bb165017c0..055cb018fdde 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.ts @@ -5,19 +5,24 @@ */ import { AssetEntityType } from "./AssetEntityType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Asset affected by this vulnerability. - */ +*/ export class VulnerabilityRelationshipsAffectsData { /** * The unique ID for this related asset. - */ + */ "id": string; /** * The JSON:API type. - */ + */ "type": AssetEntityType; /** @@ -36,28 +41,54 @@ export class VulnerabilityRelationshipsAffectsData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "AssetEntityType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "AssetEntityType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityRelationshipsAffectsData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilityRisks.ts b/packages/datadog-api-client-v2/models/VulnerabilityRisks.ts index e956ed79ae43..baf2b744fc2d 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityRisks.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityRisks.ts @@ -5,31 +5,36 @@ */ import { EPSS } from "./EPSS"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Vulnerability risks. - */ +*/ export class VulnerabilityRisks { /** * Vulnerability EPSS severity. - */ + */ "epss"?: EPSS; /** * Vulnerability public exploit availability. - */ + */ "exploitAvailable": boolean; /** * Vulnerability exploit sources. - */ + */ "exploitSources": Array; /** * Vulnerability exploitation probability. - */ + */ "exploitationProbability": boolean; /** * Vulnerability POC exploit availability. - */ + */ "pocExploitAvailable": boolean; /** @@ -48,42 +53,68 @@ export class VulnerabilityRisks { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - epss: { - baseName: "epss", - type: "EPSS", + "epss": { + "baseName": "epss", + "type": "EPSS", }, - exploitAvailable: { - baseName: "exploit_available", - type: "boolean", - required: true, + "exploitAvailable": { + "baseName": "exploit_available", + "type": "boolean", + "required": true, }, - exploitSources: { - baseName: "exploit_sources", - type: "Array", - required: true, + "exploitSources": { + "baseName": "exploit_sources", + "type": "Array", + "required": true, }, - exploitationProbability: { - baseName: "exploitation_probability", - type: "boolean", - required: true, + "exploitationProbability": { + "baseName": "exploitation_probability", + "type": "boolean", + "required": true, }, - pocExploitAvailable: { - baseName: "poc_exploit_available", - type: "boolean", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "pocExploitAvailable": { + "baseName": "poc_exploit_available", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return VulnerabilityRisks.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/VulnerabilitySeverity.ts b/packages/datadog-api-client-v2/models/VulnerabilitySeverity.ts index 0a84854a86a4..84d3d970d79f 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilitySeverity.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilitySeverity.ts @@ -4,23 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The vulnerability severity. - */ +*/ -export type VulnerabilitySeverity = - | typeof UNKNOWN - | typeof NONE - | typeof LOW - | typeof MEDIUM - | typeof HIGH - | typeof CRITICAL - | UnparsedObject; -export const UNKNOWN = "Unknown"; -export const NONE = "None"; -export const LOW = "Low"; -export const MEDIUM = "Medium"; -export const HIGH = "High"; -export const CRITICAL = "Critical"; +export type VulnerabilitySeverity = typeof UNKNOWN| typeof NONE| typeof LOW| typeof MEDIUM| typeof HIGH| typeof CRITICAL | UnparsedObject; +export const UNKNOWN = 'Unknown'; +export const NONE = 'None'; +export const LOW = 'Low'; +export const MEDIUM = 'Medium'; +export const HIGH = 'High'; +export const CRITICAL = 'Critical'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/VulnerabilityStatus.ts b/packages/datadog-api-client-v2/models/VulnerabilityStatus.ts index da67add49714..ab0b4d2cc02a 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityStatus.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityStatus.ts @@ -4,21 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The vulnerability status. - */ +*/ -export type VulnerabilityStatus = - | typeof OPEN - | typeof MUTED - | typeof REMEDIATED - | typeof INPROGRESS - | typeof AUTOCLOSED - | UnparsedObject; -export const OPEN = "Open"; -export const MUTED = "Muted"; -export const REMEDIATED = "Remediated"; -export const INPROGRESS = "InProgress"; -export const AUTOCLOSED = "AutoClosed"; +export type VulnerabilityStatus = typeof OPEN| typeof MUTED| typeof REMEDIATED| typeof INPROGRESS| typeof AUTOCLOSED | UnparsedObject; +export const OPEN = 'Open'; +export const MUTED = 'Muted'; +export const REMEDIATED = 'Remediated'; +export const INPROGRESS = 'InProgress'; +export const AUTOCLOSED = 'AutoClosed'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/VulnerabilityTool.ts b/packages/datadog-api-client-v2/models/VulnerabilityTool.ts index 2574e7c42250..8ac14939471e 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityTool.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityTool.ts @@ -4,17 +4,18 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The vulnerability tool. - */ +*/ -export type VulnerabilityTool = - | typeof IAST - | typeof SCA - | typeof INFRA - | UnparsedObject; -export const IAST = "IAST"; -export const SCA = "SCA"; -export const INFRA = "Infra"; +export type VulnerabilityTool = typeof IAST| typeof SCA| typeof INFRA | UnparsedObject; +export const IAST = 'IAST'; +export const SCA = 'SCA'; +export const INFRA = 'Infra'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/VulnerabilityType.ts b/packages/datadog-api-client-v2/models/VulnerabilityType.ts index 8f430b36ff2c..2d7b43a44a30 100644 --- a/packages/datadog-api-client-v2/models/VulnerabilityType.ts +++ b/packages/datadog-api-client-v2/models/VulnerabilityType.ts @@ -4,96 +4,57 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The vulnerability type. - */ +*/ -export type VulnerabilityType = - | typeof ADMIN_CONSOLE_ACTIVE - | typeof CODE_INJECTION - | typeof COMMAND_INJECTION - | typeof COMPONENT_WITH_KNOWN_VULNERABILITY - | typeof DANGEROUS_WORKFLOWS - | typeof DEFAULT_APP_DEPLOYED - | typeof DEFAULT_HTML_ESCAPE_INVALID - | typeof DIRECTORY_LISTING_LEAK - | typeof EMAIL_HTML_INJECTION - | typeof END_OF_LIFE - | typeof HARDCODED_PASSWORD - | typeof HARDCODED_SECRET - | typeof HEADER_INJECTION - | typeof HSTS_HEADER_MISSING - | typeof INSECURE_AUTH_PROTOCOL - | typeof INSECURE_COOKIE - | typeof INSECURE_JSP_LAYOUT - | typeof LDAP_INJECTION - | typeof MALICIOUS_PACKAGE - | typeof MANDATORY_REMEDIATION - | typeof NO_HTTP_ONLY_COOKIE - | typeof NO_SAME_SITE_COOKIE - | typeof NO_SQL_MONGO_DB_INJECTION - | typeof PATH_TRAVERSAL - | typeof REFLECTION_INJECTION - | typeof RISKY_LICENSE - | typeof SESSION_REWRITING - | typeof SESSION_TIMEOUT - | typeof SQL_INJECTION - | typeof SSRF - | typeof STACK_TRACE_LEAK - | typeof TRUST_BOUNDARY_VIOLATION - | typeof UNMAINTAINED - | typeof UNTRUSTED_DESERIALIZATION - | typeof UNVALIDATED_REDIRECT - | typeof VERB_TAMPERING - | typeof WEAK_CIPHER - | typeof WEAK_HASH - | typeof WEAK_RANDOMNESS - | typeof X_CONTENT_TYPE_HEADER_MISSING - | typeof X_PATH_INJECTION - | typeof XSS - | UnparsedObject; -export const ADMIN_CONSOLE_ACTIVE = "AdminConsoleActive"; -export const CODE_INJECTION = "CodeInjection"; -export const COMMAND_INJECTION = "CommandInjection"; -export const COMPONENT_WITH_KNOWN_VULNERABILITY = - "ComponentWithKnownVulnerability"; -export const DANGEROUS_WORKFLOWS = "DangerousWorkflows"; -export const DEFAULT_APP_DEPLOYED = "DefaultAppDeployed"; -export const DEFAULT_HTML_ESCAPE_INVALID = "DefaultHtmlEscapeInvalid"; -export const DIRECTORY_LISTING_LEAK = "DirectoryListingLeak"; -export const EMAIL_HTML_INJECTION = "EmailHtmlInjection"; -export const END_OF_LIFE = "EndOfLife"; -export const HARDCODED_PASSWORD = "HardcodedPassword"; -export const HARDCODED_SECRET = "HardcodedSecret"; -export const HEADER_INJECTION = "HeaderInjection"; -export const HSTS_HEADER_MISSING = "HstsHeaderMissing"; -export const INSECURE_AUTH_PROTOCOL = "InsecureAuthProtocol"; -export const INSECURE_COOKIE = "InsecureCookie"; -export const INSECURE_JSP_LAYOUT = "InsecureJspLayout"; -export const LDAP_INJECTION = "LdapInjection"; -export const MALICIOUS_PACKAGE = "MaliciousPackage"; -export const MANDATORY_REMEDIATION = "MandatoryRemediation"; -export const NO_HTTP_ONLY_COOKIE = "NoHttpOnlyCookie"; -export const NO_SAME_SITE_COOKIE = "NoSameSiteCookie"; -export const NO_SQL_MONGO_DB_INJECTION = "NoSqlMongoDbInjection"; -export const PATH_TRAVERSAL = "PathTraversal"; -export const REFLECTION_INJECTION = "ReflectionInjection"; -export const RISKY_LICENSE = "RiskyLicense"; -export const SESSION_REWRITING = "SessionRewriting"; -export const SESSION_TIMEOUT = "SessionTimeout"; -export const SQL_INJECTION = "SqlInjection"; -export const SSRF = "Ssrf"; -export const STACK_TRACE_LEAK = "StackTraceLeak"; -export const TRUST_BOUNDARY_VIOLATION = "TrustBoundaryViolation"; -export const UNMAINTAINED = "Unmaintained"; -export const UNTRUSTED_DESERIALIZATION = "UntrustedDeserialization"; -export const UNVALIDATED_REDIRECT = "UnvalidatedRedirect"; -export const VERB_TAMPERING = "VerbTampering"; -export const WEAK_CIPHER = "WeakCipher"; -export const WEAK_HASH = "WeakHash"; -export const WEAK_RANDOMNESS = "WeakRandomness"; -export const X_CONTENT_TYPE_HEADER_MISSING = "XContentTypeHeaderMissing"; -export const X_PATH_INJECTION = "XPathInjection"; -export const XSS = "Xss"; +export type VulnerabilityType = typeof ADMIN_CONSOLE_ACTIVE| typeof CODE_INJECTION| typeof COMMAND_INJECTION| typeof COMPONENT_WITH_KNOWN_VULNERABILITY| typeof DANGEROUS_WORKFLOWS| typeof DEFAULT_APP_DEPLOYED| typeof DEFAULT_HTML_ESCAPE_INVALID| typeof DIRECTORY_LISTING_LEAK| typeof EMAIL_HTML_INJECTION| typeof END_OF_LIFE| typeof HARDCODED_PASSWORD| typeof HARDCODED_SECRET| typeof HEADER_INJECTION| typeof HSTS_HEADER_MISSING| typeof INSECURE_AUTH_PROTOCOL| typeof INSECURE_COOKIE| typeof INSECURE_JSP_LAYOUT| typeof LDAP_INJECTION| typeof MALICIOUS_PACKAGE| typeof MANDATORY_REMEDIATION| typeof NO_HTTP_ONLY_COOKIE| typeof NO_SAME_SITE_COOKIE| typeof NO_SQL_MONGO_DB_INJECTION| typeof PATH_TRAVERSAL| typeof REFLECTION_INJECTION| typeof RISKY_LICENSE| typeof SESSION_REWRITING| typeof SESSION_TIMEOUT| typeof SQL_INJECTION| typeof SSRF| typeof STACK_TRACE_LEAK| typeof TRUST_BOUNDARY_VIOLATION| typeof UNMAINTAINED| typeof UNTRUSTED_DESERIALIZATION| typeof UNVALIDATED_REDIRECT| typeof VERB_TAMPERING| typeof WEAK_CIPHER| typeof WEAK_HASH| typeof WEAK_RANDOMNESS| typeof X_CONTENT_TYPE_HEADER_MISSING| typeof X_PATH_INJECTION| typeof XSS | UnparsedObject; +export const ADMIN_CONSOLE_ACTIVE = 'AdminConsoleActive'; +export const CODE_INJECTION = 'CodeInjection'; +export const COMMAND_INJECTION = 'CommandInjection'; +export const COMPONENT_WITH_KNOWN_VULNERABILITY = 'ComponentWithKnownVulnerability'; +export const DANGEROUS_WORKFLOWS = 'DangerousWorkflows'; +export const DEFAULT_APP_DEPLOYED = 'DefaultAppDeployed'; +export const DEFAULT_HTML_ESCAPE_INVALID = 'DefaultHtmlEscapeInvalid'; +export const DIRECTORY_LISTING_LEAK = 'DirectoryListingLeak'; +export const EMAIL_HTML_INJECTION = 'EmailHtmlInjection'; +export const END_OF_LIFE = 'EndOfLife'; +export const HARDCODED_PASSWORD = 'HardcodedPassword'; +export const HARDCODED_SECRET = 'HardcodedSecret'; +export const HEADER_INJECTION = 'HeaderInjection'; +export const HSTS_HEADER_MISSING = 'HstsHeaderMissing'; +export const INSECURE_AUTH_PROTOCOL = 'InsecureAuthProtocol'; +export const INSECURE_COOKIE = 'InsecureCookie'; +export const INSECURE_JSP_LAYOUT = 'InsecureJspLayout'; +export const LDAP_INJECTION = 'LdapInjection'; +export const MALICIOUS_PACKAGE = 'MaliciousPackage'; +export const MANDATORY_REMEDIATION = 'MandatoryRemediation'; +export const NO_HTTP_ONLY_COOKIE = 'NoHttpOnlyCookie'; +export const NO_SAME_SITE_COOKIE = 'NoSameSiteCookie'; +export const NO_SQL_MONGO_DB_INJECTION = 'NoSqlMongoDbInjection'; +export const PATH_TRAVERSAL = 'PathTraversal'; +export const REFLECTION_INJECTION = 'ReflectionInjection'; +export const RISKY_LICENSE = 'RiskyLicense'; +export const SESSION_REWRITING = 'SessionRewriting'; +export const SESSION_TIMEOUT = 'SessionTimeout'; +export const SQL_INJECTION = 'SqlInjection'; +export const SSRF = 'Ssrf'; +export const STACK_TRACE_LEAK = 'StackTraceLeak'; +export const TRUST_BOUNDARY_VIOLATION = 'TrustBoundaryViolation'; +export const UNMAINTAINED = 'Unmaintained'; +export const UNTRUSTED_DESERIALIZATION = 'UntrustedDeserialization'; +export const UNVALIDATED_REDIRECT = 'UnvalidatedRedirect'; +export const VERB_TAMPERING = 'VerbTampering'; +export const WEAK_CIPHER = 'WeakCipher'; +export const WEAK_HASH = 'WeakHash'; +export const WEAK_RANDOMNESS = 'WeakRandomness'; +export const X_CONTENT_TYPE_HEADER_MISSING = 'XContentTypeHeaderMissing'; +export const X_PATH_INJECTION = 'XPathInjection'; +export const XSS = 'Xss'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts b/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts index c4ecefc756bc..362ed3292415 100644 --- a/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts +++ b/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts @@ -4,41 +4,30 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The available timeframes depend on the widget you are using. - */ +*/ -export type WidgetLiveSpan = - | typeof PAST_ONE_MINUTE - | typeof PAST_FIVE_MINUTES - | typeof PAST_TEN_MINUTES - | typeof PAST_FIFTEEN_MINUTES - | typeof PAST_THIRTY_MINUTES - | typeof PAST_ONE_HOUR - | typeof PAST_FOUR_HOURS - | typeof PAST_ONE_DAY - | typeof PAST_TWO_DAYS - | typeof PAST_ONE_WEEK - | typeof PAST_ONE_MONTH - | typeof PAST_THREE_MONTHS - | typeof PAST_SIX_MONTHS - | typeof PAST_ONE_YEAR - | typeof ALERT - | UnparsedObject; -export const PAST_ONE_MINUTE = "1m"; -export const PAST_FIVE_MINUTES = "5m"; -export const PAST_TEN_MINUTES = "10m"; -export const PAST_FIFTEEN_MINUTES = "15m"; -export const PAST_THIRTY_MINUTES = "30m"; -export const PAST_ONE_HOUR = "1h"; -export const PAST_FOUR_HOURS = "4h"; -export const PAST_ONE_DAY = "1d"; -export const PAST_TWO_DAYS = "2d"; -export const PAST_ONE_WEEK = "1w"; -export const PAST_ONE_MONTH = "1mo"; -export const PAST_THREE_MONTHS = "3mo"; -export const PAST_SIX_MONTHS = "6mo"; -export const PAST_ONE_YEAR = "1y"; -export const ALERT = "alert"; +export type WidgetLiveSpan = typeof PAST_ONE_MINUTE| typeof PAST_FIVE_MINUTES| typeof PAST_TEN_MINUTES| typeof PAST_FIFTEEN_MINUTES| typeof PAST_THIRTY_MINUTES| typeof PAST_ONE_HOUR| typeof PAST_FOUR_HOURS| typeof PAST_ONE_DAY| typeof PAST_TWO_DAYS| typeof PAST_ONE_WEEK| typeof PAST_ONE_MONTH| typeof PAST_THREE_MONTHS| typeof PAST_SIX_MONTHS| typeof PAST_ONE_YEAR| typeof ALERT | UnparsedObject; +export const PAST_ONE_MINUTE = '1m'; +export const PAST_FIVE_MINUTES = '5m'; +export const PAST_TEN_MINUTES = '10m'; +export const PAST_FIFTEEN_MINUTES = '15m'; +export const PAST_THIRTY_MINUTES = '30m'; +export const PAST_ONE_HOUR = '1h'; +export const PAST_FOUR_HOURS = '4h'; +export const PAST_ONE_DAY = '1d'; +export const PAST_TWO_DAYS = '2d'; +export const PAST_ONE_WEEK = '1w'; +export const PAST_ONE_MONTH = '1mo'; +export const PAST_THREE_MONTHS = '3mo'; +export const PAST_SIX_MONTHS = '6mo'; +export const PAST_ONE_YEAR = '1y'; +export const ALERT = 'alert'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/WorkflowData.ts b/packages/datadog-api-client-v2/models/WorkflowData.ts index 7d44966c7bb4..0497bec88853 100644 --- a/packages/datadog-api-client-v2/models/WorkflowData.ts +++ b/packages/datadog-api-client-v2/models/WorkflowData.ts @@ -7,27 +7,32 @@ import { WorkflowDataAttributes } from "./WorkflowDataAttributes"; import { WorkflowDataRelationships } from "./WorkflowDataRelationships"; import { WorkflowDataType } from "./WorkflowDataType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the workflow. - */ +*/ export class WorkflowData { /** * The definition of `WorkflowDataAttributes` object. - */ + */ "attributes": WorkflowDataAttributes; /** * The workflow identifier - */ + */ "id"?: string; /** * The definition of `WorkflowDataRelationships` object. - */ + */ "relationships"?: WorkflowDataRelationships; /** * The definition of `WorkflowDataType` object. - */ + */ "type": WorkflowDataType; /** @@ -46,36 +51,62 @@ export class WorkflowData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "WorkflowDataAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "WorkflowDataAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "WorkflowDataRelationships", + "relationships": { + "baseName": "relationships", + "type": "WorkflowDataRelationships", }, - type: { - baseName: "type", - type: "WorkflowDataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "WorkflowDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowDataAttributes.ts b/packages/datadog-api-client-v2/models/WorkflowDataAttributes.ts index 18d4c9e7ca07..5bba34f1b7d6 100644 --- a/packages/datadog-api-client-v2/models/WorkflowDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/WorkflowDataAttributes.ts @@ -5,43 +5,48 @@ */ import { Spec } from "./Spec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `WorkflowDataAttributes` object. - */ +*/ export class WorkflowDataAttributes { /** * When the workflow was created. - */ + */ "createdAt"?: Date; /** * Description of the workflow. - */ + */ "description"?: string; /** * Name of the workflow. - */ + */ "name": string; /** * Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published. - */ + */ "published"?: boolean; /** * The spec defines what the workflow does. - */ + */ "spec": Spec; /** * Tags of the workflow. - */ + */ "tags"?: Array; /** * When the workflow was last updated. - */ + */ "updatedAt"?: Date; /** * If a Webhook trigger is defined on this workflow, a webhookSecret is required and should be provided here. - */ + */ "webhookSecret"?: string; /** @@ -60,54 +65,80 @@ export class WorkflowDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "createdAt", + "type": "Date", + "format": "date-time", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", - required: true, + "name": { + "baseName": "name", + "type": "string", + "required": true, }, - published: { - baseName: "published", - type: "boolean", + "published": { + "baseName": "published", + "type": "boolean", }, - spec: { - baseName: "spec", - type: "Spec", - required: true, + "spec": { + "baseName": "spec", + "type": "Spec", + "required": true, }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - updatedAt: { - baseName: "updatedAt", - type: "Date", - format: "date-time", + "updatedAt": { + "baseName": "updatedAt", + "type": "Date", + "format": "date-time", }, - webhookSecret: { - baseName: "webhookSecret", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "webhookSecret": { + "baseName": "webhookSecret", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowDataRelationships.ts b/packages/datadog-api-client-v2/models/WorkflowDataRelationships.ts index 22e646902a3e..5037745f9979 100644 --- a/packages/datadog-api-client-v2/models/WorkflowDataRelationships.ts +++ b/packages/datadog-api-client-v2/models/WorkflowDataRelationships.ts @@ -5,19 +5,24 @@ */ import { WorkflowUserRelationship } from "./WorkflowUserRelationship"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `WorkflowDataRelationships` object. - */ +*/ export class WorkflowDataRelationships { /** * The definition of `WorkflowUserRelationship` object. - */ + */ "creator"?: WorkflowUserRelationship; /** * The definition of `WorkflowUserRelationship` object. - */ + */ "owner"?: WorkflowUserRelationship; /** @@ -36,26 +41,52 @@ export class WorkflowDataRelationships { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - creator: { - baseName: "creator", - type: "WorkflowUserRelationship", + "creator": { + "baseName": "creator", + "type": "WorkflowUserRelationship", }, - owner: { - baseName: "owner", - type: "WorkflowUserRelationship", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "owner": { + "baseName": "owner", + "type": "WorkflowUserRelationship", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowDataRelationships.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowDataType.ts b/packages/datadog-api-client-v2/models/WorkflowDataType.ts index 8e79f2f1aa4d..b90a8e4ef0f8 100644 --- a/packages/datadog-api-client-v2/models/WorkflowDataType.ts +++ b/packages/datadog-api-client-v2/models/WorkflowDataType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `WorkflowDataType` object. - */ +*/ export type WorkflowDataType = typeof WORKFLOWS | UnparsedObject; -export const WORKFLOWS = "workflows"; +export const WORKFLOWS = 'workflows'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/WorkflowDataUpdate.ts b/packages/datadog-api-client-v2/models/WorkflowDataUpdate.ts index 2d7a39dd6dcc..210b0c42460c 100644 --- a/packages/datadog-api-client-v2/models/WorkflowDataUpdate.ts +++ b/packages/datadog-api-client-v2/models/WorkflowDataUpdate.ts @@ -7,27 +7,32 @@ import { WorkflowDataRelationships } from "./WorkflowDataRelationships"; import { WorkflowDataType } from "./WorkflowDataType"; import { WorkflowDataUpdateAttributes } from "./WorkflowDataUpdateAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data related to the workflow being updated. - */ +*/ export class WorkflowDataUpdate { /** * The definition of `WorkflowDataUpdateAttributes` object. - */ + */ "attributes": WorkflowDataUpdateAttributes; /** * The workflow identifier - */ + */ "id"?: string; /** * The definition of `WorkflowDataRelationships` object. - */ + */ "relationships"?: WorkflowDataRelationships; /** * The definition of `WorkflowDataType` object. - */ + */ "type": WorkflowDataType; /** @@ -46,36 +51,62 @@ export class WorkflowDataUpdate { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "WorkflowDataUpdateAttributes", - required: true, + "attributes": { + "baseName": "attributes", + "type": "WorkflowDataUpdateAttributes", + "required": true, }, - id: { - baseName: "id", - type: "string", + "id": { + "baseName": "id", + "type": "string", }, - relationships: { - baseName: "relationships", - type: "WorkflowDataRelationships", + "relationships": { + "baseName": "relationships", + "type": "WorkflowDataRelationships", }, - type: { - baseName: "type", - type: "WorkflowDataType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "WorkflowDataType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowDataUpdate.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowDataUpdateAttributes.ts b/packages/datadog-api-client-v2/models/WorkflowDataUpdateAttributes.ts index 0fbae7055be1..5a31efbbc8bb 100644 --- a/packages/datadog-api-client-v2/models/WorkflowDataUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/WorkflowDataUpdateAttributes.ts @@ -5,43 +5,48 @@ */ import { Spec } from "./Spec"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `WorkflowDataUpdateAttributes` object. - */ +*/ export class WorkflowDataUpdateAttributes { /** * When the workflow was created. - */ + */ "createdAt"?: Date; /** * Description of the workflow. - */ + */ "description"?: string; /** * Name of the workflow. - */ + */ "name"?: string; /** * Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published. - */ + */ "published"?: boolean; /** * The spec defines what the workflow does. - */ + */ "spec"?: Spec; /** * Tags of the workflow. - */ + */ "tags"?: Array; /** * When the workflow was last updated. - */ + */ "updatedAt"?: Date; /** * If a Webhook trigger is defined on this workflow, a webhookSecret is required and should be provided here. - */ + */ "webhookSecret"?: string; /** @@ -60,52 +65,78 @@ export class WorkflowDataUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - createdAt: { - baseName: "createdAt", - type: "Date", - format: "date-time", + "createdAt": { + "baseName": "createdAt", + "type": "Date", + "format": "date-time", }, - description: { - baseName: "description", - type: "string", + "description": { + "baseName": "description", + "type": "string", }, - name: { - baseName: "name", - type: "string", + "name": { + "baseName": "name", + "type": "string", }, - published: { - baseName: "published", - type: "boolean", + "published": { + "baseName": "published", + "type": "boolean", }, - spec: { - baseName: "spec", - type: "Spec", + "spec": { + "baseName": "spec", + "type": "Spec", }, - tags: { - baseName: "tags", - type: "Array", + "tags": { + "baseName": "tags", + "type": "Array", }, - updatedAt: { - baseName: "updatedAt", - type: "Date", - format: "date-time", + "updatedAt": { + "baseName": "updatedAt", + "type": "Date", + "format": "date-time", }, - webhookSecret: { - baseName: "webhookSecret", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "webhookSecret": { + "baseName": "webhookSecret", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowDataUpdateAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.ts b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.ts index 1b68fa85436d..34aa0b2f211b 100644 --- a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.ts +++ b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.ts @@ -4,16 +4,21 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Additional information for creating a workflow instance. - */ +*/ export class WorkflowInstanceCreateMeta { /** * The input parameters to the workflow. - */ - "payload"?: { [key: string]: any }; + */ + "payload"?: { [key: string]: any; }; /** * A container for additional, undeclared properties. @@ -31,22 +36,48 @@ export class WorkflowInstanceCreateMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - payload: { - baseName: "payload", - type: "{ [key: string]: any; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "payload": { + "baseName": "payload", + "type": "{ [key: string]: any; }", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowInstanceCreateMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.ts b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.ts index dec08665544c..90afa6039a0d 100644 --- a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.ts @@ -5,15 +5,20 @@ */ import { WorkflowInstanceCreateMeta } from "./WorkflowInstanceCreateMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Request used to create a workflow instance. - */ +*/ export class WorkflowInstanceCreateRequest { /** * Additional information for creating a workflow instance. - */ + */ "meta"?: WorkflowInstanceCreateMeta; /** @@ -32,22 +37,48 @@ export class WorkflowInstanceCreateRequest { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - meta: { - baseName: "meta", - type: "WorkflowInstanceCreateMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "WorkflowInstanceCreateMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowInstanceCreateRequest.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.ts b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.ts index 0db3da17f187..605cff71d294 100644 --- a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.ts +++ b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.ts @@ -5,15 +5,20 @@ */ import { WorkflowInstanceCreateResponseData } from "./WorkflowInstanceCreateResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response returned upon successful workflow instance creation. - */ +*/ export class WorkflowInstanceCreateResponse { /** * Data about the created workflow instance. - */ + */ "data"?: WorkflowInstanceCreateResponseData; /** @@ -32,22 +37,48 @@ export class WorkflowInstanceCreateResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowInstanceCreateResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowInstanceCreateResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowInstanceCreateResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.ts b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.ts index 9a1da6ed1f00..342110f23599 100644 --- a/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.ts +++ b/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data about the created workflow instance. - */ +*/ export class WorkflowInstanceCreateResponseData { /** * The ID of the workflow execution. It can be used to fetch the execution status. - */ + */ "id"?: string; /** @@ -31,22 +36,48 @@ export class WorkflowInstanceCreateResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowInstanceCreateResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.ts b/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.ts index 91203ee93cbd..73c749e66a2d 100644 --- a/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.ts +++ b/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * An item in the workflow instances list. - */ +*/ export class WorkflowInstanceListItem { /** * The ID of the workflow instance - */ + */ "id"?: string; /** @@ -31,22 +36,48 @@ export class WorkflowInstanceListItem { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowInstanceListItem.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.ts b/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.ts index 7c46d3bacb6a..4f8d63f20419 100644 --- a/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.ts +++ b/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.ts @@ -6,19 +6,24 @@ import { WorkflowInstanceListItem } from "./WorkflowInstanceListItem"; import { WorkflowListInstancesResponseMeta } from "./WorkflowListInstancesResponseMeta"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Response returned when listing workflow instances. - */ +*/ export class WorkflowListInstancesResponse { /** * A list of workflow instances. - */ + */ "data"?: Array; /** * Metadata about the instances list - */ + */ "meta"?: WorkflowListInstancesResponseMeta; /** @@ -37,26 +42,52 @@ export class WorkflowListInstancesResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", + "data": { + "baseName": "data", + "type": "Array", }, - meta: { - baseName: "meta", - type: "WorkflowListInstancesResponseMeta", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "meta": { + "baseName": "meta", + "type": "WorkflowListInstancesResponseMeta", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowListInstancesResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.ts b/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.ts index fa95066f3e16..35963fb20cc5 100644 --- a/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.ts @@ -5,15 +5,20 @@ */ import { WorkflowListInstancesResponseMetaPage } from "./WorkflowListInstancesResponseMetaPage"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Metadata about the instances list - */ +*/ export class WorkflowListInstancesResponseMeta { /** * Page information for the list instances response. - */ + */ "page"?: WorkflowListInstancesResponseMetaPage; /** @@ -32,22 +37,48 @@ export class WorkflowListInstancesResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - page: { - baseName: "page", - type: "WorkflowListInstancesResponseMetaPage", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "page": { + "baseName": "page", + "type": "WorkflowListInstancesResponseMetaPage", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowListInstancesResponseMeta.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.ts b/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.ts index b18171b0e099..2832326680f8 100644 --- a/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.ts +++ b/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Page information for the list instances response. - */ +*/ export class WorkflowListInstancesResponseMetaPage { /** * The total count of items. - */ + */ "totalCount"?: number; /** @@ -31,23 +36,49 @@ export class WorkflowListInstancesResponseMetaPage { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - totalCount: { - baseName: "totalCount", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "totalCount": { + "baseName": "totalCount", + "type": "number", + "format": "int64", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowListInstancesResponseMetaPage.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowTriggerWrapper.ts b/packages/datadog-api-client-v2/models/WorkflowTriggerWrapper.ts index 6f4c4fb2aab9..eac829de9b82 100644 --- a/packages/datadog-api-client-v2/models/WorkflowTriggerWrapper.ts +++ b/packages/datadog-api-client-v2/models/WorkflowTriggerWrapper.ts @@ -3,20 +3,26 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { StartStepNamesItem } from "./StartStepNamesItem"; + +import { HttpFile } from "../../datadog-api-client-common/http/http"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Schema for a Workflow-based trigger. - */ +*/ export class WorkflowTriggerWrapper { /** * A list of steps that run first after a trigger fires. - */ + */ "startStepNames"?: Array; /** * Trigger a workflow from the Datadog UI. Only required if no other trigger exists. - */ + */ "workflowTrigger": any; /** @@ -35,27 +41,53 @@ export class WorkflowTriggerWrapper { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - startStepNames: { - baseName: "startStepNames", - type: "Array", + "startStepNames": { + "baseName": "startStepNames", + "type": "Array", }, - workflowTrigger: { - baseName: "workflowTrigger", - type: "any", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "workflowTrigger": { + "baseName": "workflowTrigger", + "type": "any", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowTriggerWrapper.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowUserRelationship.ts b/packages/datadog-api-client-v2/models/WorkflowUserRelationship.ts index 97375fbeb103..1dac20a8eb59 100644 --- a/packages/datadog-api-client-v2/models/WorkflowUserRelationship.ts +++ b/packages/datadog-api-client-v2/models/WorkflowUserRelationship.ts @@ -5,15 +5,20 @@ */ import { WorkflowUserRelationshipData } from "./WorkflowUserRelationshipData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `WorkflowUserRelationship` object. - */ +*/ export class WorkflowUserRelationship { /** * The definition of `WorkflowUserRelationshipData` object. - */ + */ "data"?: WorkflowUserRelationshipData; /** @@ -32,22 +37,48 @@ export class WorkflowUserRelationship { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorkflowUserRelationshipData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorkflowUserRelationshipData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowUserRelationship.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowUserRelationshipData.ts b/packages/datadog-api-client-v2/models/WorkflowUserRelationshipData.ts index 84fe3507af37..d52adb3e0e53 100644 --- a/packages/datadog-api-client-v2/models/WorkflowUserRelationshipData.ts +++ b/packages/datadog-api-client-v2/models/WorkflowUserRelationshipData.ts @@ -5,19 +5,24 @@ */ import { WorkflowUserRelationshipType } from "./WorkflowUserRelationshipType"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The definition of `WorkflowUserRelationshipData` object. - */ +*/ export class WorkflowUserRelationshipData { /** * The user identifier - */ + */ "id": string; /** * The definition of `WorkflowUserRelationshipType` object. - */ + */ "type": WorkflowUserRelationshipType; /** @@ -36,28 +41,54 @@ export class WorkflowUserRelationshipData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - required: true, + "id": { + "baseName": "id", + "type": "string", + "required": true, }, - type: { - baseName: "type", - type: "WorkflowUserRelationshipType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "type": { + "baseName": "type", + "type": "WorkflowUserRelationshipType", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorkflowUserRelationshipData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorkflowUserRelationshipType.ts b/packages/datadog-api-client-v2/models/WorkflowUserRelationshipType.ts index 0396628293e3..a6a1a175f305 100644 --- a/packages/datadog-api-client-v2/models/WorkflowUserRelationshipType.ts +++ b/packages/datadog-api-client-v2/models/WorkflowUserRelationshipType.ts @@ -4,11 +4,16 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * The definition of `WorkflowUserRelationshipType` object. - */ +*/ export type WorkflowUserRelationshipType = typeof USERS | UnparsedObject; -export const USERS = "users"; +export const USERS = 'users'; \ No newline at end of file diff --git a/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.ts b/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.ts index 563bf4ee0347..0a0f98405afc 100644 --- a/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.ts +++ b/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.ts @@ -5,15 +5,20 @@ */ import { WorklflowCancelInstanceResponseData } from "./WorklflowCancelInstanceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Information about the canceled instance. - */ +*/ export class WorklflowCancelInstanceResponse { /** * Data about the canceled instance. - */ + */ "data"?: WorklflowCancelInstanceResponseData; /** @@ -32,22 +37,48 @@ export class WorklflowCancelInstanceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorklflowCancelInstanceResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorklflowCancelInstanceResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorklflowCancelInstanceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.ts b/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.ts index aa389e2080b8..b3b66a2ad74e 100644 --- a/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.ts +++ b/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Data about the canceled instance. - */ +*/ export class WorklflowCancelInstanceResponseData { /** * The id of the canceled instance - */ + */ "id"?: string; /** @@ -31,22 +36,48 @@ export class WorklflowCancelInstanceResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorklflowCancelInstanceResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.ts b/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.ts index 068a3fcc4655..32119635a729 100644 --- a/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.ts +++ b/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.ts @@ -5,15 +5,20 @@ */ import { WorklflowGetInstanceResponseData } from "./WorklflowGetInstanceResponseData"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The state of the given workflow instance. - */ +*/ export class WorklflowGetInstanceResponse { /** * The data of the instance response. - */ + */ "data"?: WorklflowGetInstanceResponseData; /** @@ -32,22 +37,48 @@ export class WorklflowGetInstanceResponse { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "WorklflowGetInstanceResponseData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "data": { + "baseName": "data", + "type": "WorklflowGetInstanceResponseData", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorklflowGetInstanceResponse.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.ts b/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.ts index f79856d5046b..eb64bc30349f 100644 --- a/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.ts +++ b/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.ts @@ -5,15 +5,20 @@ */ import { WorklflowGetInstanceResponseDataAttributes } from "./WorklflowGetInstanceResponseDataAttributes"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The data of the instance response. - */ +*/ export class WorklflowGetInstanceResponseData { /** * The attributes of the instance response data. - */ + */ "attributes"?: WorklflowGetInstanceResponseDataAttributes; /** @@ -32,22 +37,48 @@ export class WorklflowGetInstanceResponseData { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "WorklflowGetInstanceResponseDataAttributes", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "attributes": { + "baseName": "attributes", + "type": "WorklflowGetInstanceResponseDataAttributes", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorklflowGetInstanceResponseData.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.ts index 3f0f4eec6aca..065389128dcb 100644 --- a/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * The attributes of the instance response data. - */ +*/ export class WorklflowGetInstanceResponseDataAttributes { /** * The id of the instance. - */ + */ "id"?: string; /** @@ -31,22 +36,48 @@ export class WorklflowGetInstanceResponseDataAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "id": { + "baseName": "id", + "type": "string", }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return WorklflowGetInstanceResponseDataAttributes.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.ts b/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.ts index 3fc73de28bbf..7bd7b2cd999a 100644 --- a/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.ts +++ b/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Include all services. - */ +*/ export class XRayServicesIncludeAll { /** * Include all services. - */ + */ "includeAll": boolean; /** @@ -31,23 +36,49 @@ export class XRayServicesIncludeAll { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeAll: { - baseName: "include_all", - type: "boolean", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includeAll": { + "baseName": "include_all", + "type": "boolean", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return XRayServicesIncludeAll.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.ts b/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.ts index 8a11aac9c856..2531d1efbf28 100644 --- a/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.ts +++ b/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.ts @@ -4,15 +4,20 @@ * Copyright 2020-Present Datadog, Inc. */ +import { HttpFile } from "../../datadog-api-client-common/http/http"; + import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + + + /** * Include only these services. Defaults to `[]`. - */ +*/ export class XRayServicesIncludeOnly { /** * Include only these services. - */ + */ "includeOnly": Array; /** @@ -31,23 +36,49 @@ export class XRayServicesIncludeOnly { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - includeOnly: { - baseName: "include_only", - type: "Array", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "any", + "includeOnly": { + "baseName": "include_only", + "type": "Array", + "required": true, }, + "additionalProperties": { + "baseName": "additionalProperties", + "type": "any", + } }; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { + + + + return XRayServicesIncludeOnly.attributeTypeMap; + } - public constructor() {} + public constructor() { + + + + + + + + + + + + } } + + + + + + + + + diff --git a/packages/datadog-api-client-v2/models/XRayServicesList.ts b/packages/datadog-api-client-v2/models/XRayServicesList.ts index f74d7c2a37d2..cb7acec52ff9 100644 --- a/packages/datadog-api-client-v2/models/XRayServicesList.ts +++ b/packages/datadog-api-client-v2/models/XRayServicesList.ts @@ -6,13 +6,15 @@ import { XRayServicesIncludeAll } from "./XRayServicesIncludeAll"; import { XRayServicesIncludeOnly } from "./XRayServicesIncludeOnly"; +import { HttpFile } from "../../datadog-api-client-common/http/http"; + + + import { UnparsedObject } from "../../datadog-api-client-common/util"; + /** * AWS X-Ray services to collect traces from. Defaults to `include_only`. - */ +*/ -export type XRayServicesList = - | XRayServicesIncludeAll - | XRayServicesIncludeOnly - | UnparsedObject; +export type XRayServicesList = XRayServicesIncludeAll | XRayServicesIncludeOnly | UnparsedObject; \ No newline at end of file